uid
stringlengths 6
55
| question
stringlengths 34
465
| context_short
sequence | context_long
sequence | tags
sequence | answer
stringlengths 1
25
| relation
stringclasses 1
value |
---|---|---|---|---|---|---|
struts2-jquery-plugin@web@51 | struts2-jquery-plugin -- a plugin for the struts2 @placeholder framework that provides ajax functionality and ui widgets based on the jquery javascript-framework . | {
"confidence": [
94.77780151367188,
64.84564971923828,
52.28569793701172,
50.8863410949707,
49.32870101928711,
47.34451675415039,
46.897193908691406,
45.3779411315918,
41.13669967651367,
40.39647674560547,
39.41888427734375,
37.25173568725586,
32.91114807128906,
31.28879165649414,
30.249248504638672,
30.052207946777344,
28.439695358276367,
25.92266845703125,
25.418746948242188,
25.36728286743164,
22.98723793029785,
20.60379409790039,
19.496768951416016,
19.432838439941406,
19.352054595947266,
16.290512084960938,
14.814538955688477,
14.162748336791992,
13.316597938537598,
13.316597938537598,
13.316597938537598,
13.316597938537598,
13.316597938537598,
13.316597938537598,
13.316597938537598,
13.316597938537598,
13.316597938537598,
13.316597938537598,
13.316597938537598,
10.885088920593262,
10.885088920593262,
10.885088920593262,
10.885088920593262,
10.885088920593262,
10.885088920593262,
10.885088920593262,
10.885088920593262,
10.885088920593262,
10.885088920593262,
10.885088920593262,
10.885088920593262,
10.885088920593262,
10.885088920593262,
10.885088920593262,
10.885088920593262,
10.885088920593262,
10.885088920593262,
10.885088920593262,
10.885088920593262,
10.885088920593262,
10.885088920593262,
10.885088920593262,
10.885088920593262,
10.885088920593262,
10.885088920593262,
10.885088920593262,
10.885088920593262,
10.885088920593262,
10.885088920593262,
10.885088920593262,
10.885088920593262,
10.885088920593262,
10.885088920593262,
10.885088920593262,
10.885088920593262,
10.885088920593262,
10.885088920593262,
10.885088920593262,
10.885088920593262,
10.885088920593262,
10.885088920593262,
10.885088920593262,
10.885088920593262,
10.885088920593262,
10.885088920593262,
10.885088920593262,
10.885088920593262,
10.885088920593262,
10.885088920593262,
10.885088920593262,
10.885088920593262,
10.885088920593262,
10.885088920593262,
10.885088920593262,
10.885088920593262,
10.885088920593262,
10.885088920593262,
10.885088920593262,
10.885088920593262,
10.885088920593262
],
"content": [
"A Plugin for the popular java web framework struts2 to provide ajax functionality and UI Widgets based on the jQuery javascript-framework .",
"Now this plugin is deprecated and struts2-jquery-plugin https : github.com struts-community-plugins struts2-jquery could be used instead .",
"I wanted to know the difference between Struts2 and Struts2 jQuery tags",
"I m trying to populate a drop down list in a grid column using the Struts2-jQuery-grid-3.7.0 https : code.google.com p struts2-jquery downloads detail name struts2-jquery-grid-plugin-3.7.0.jar can 2 q plugin as follows .",
"I could use the jQuery plugin on Struts2 2.3.14 I just removed the Target directory of the application and used the following dependencies .",
"It adds replaces the Ajax being used by struts2 dojo plugin https : struts.apache.org docs ajax-tags.html .",
"Is there any way to target a column in a jqGrid in my case Struts2-jQuery-Grid Plugin 3.7.0 on certain rows only",
"Based on this question http : stackoverflow.com questions 15087557 can-not-find-the-tag-library-descriptor-for-struts2-jquery-tags-in-jsp I changed struts to struts2 and based on this one http : stackoverflow.com questions 20772405 struts2-jquery-plugin-java-lang-classnotfoundexception-org-apache-struts2-views I added the bean to struts.xml file but to no avail .",
"The first one is used for Struts2 core tag library https : struts.apache.org docs struts-tags.html .. . .. . The framework provides a tag library decoupled from the view technology .",
"I am going to use struts-jquery taglib https : code.google.com p struts2-jquery wiki DatePickerTag Datepicker with different options and animations but the application throws the following errors .",
"I am new to Struts2 .",
"Added struts2-jquery tag because it has 31 followers while your other sj tags have 3 followers.. .",
"You have dependency problem : .. . .. . class TagLibraryDirectiveProvider exists in struts2-core jar but in newer version 2.3.16 than you declared 2.3.8 : http : struts.apache.org release 2.3.x struts2-core apidocs org apache struts2 views TagLibraryDirectiveProvider.html .. . .. . So simple upgrade the dependency .",
"Add Struts2 jQuery Plugin Tag lib to your JSP .. . .. . Enable jQuery Grid Plugin in your Head Tag .. . .. . update : .. . .. . Specify an Edit Url in your JSP .. . .. . And enable Edit by setting following attributes in your JSP .. . .. . then define which Column should be editable .. . .. . Example for an Edit Options : .. . .. . Example for an Edit Rules : .. . .. . update : 1",
"For the records the solution for the fake scenario described in the question using Struts2-jQuery-Grid Plugin instead of the raw jqGrid would be :",
"Regarding Solution 1 I don t think is possible in Struts2-jQuery-Grid it does not have cellattr exposed since I m using checkbox formatter I will create a custom one with another formatter as in Solution 2b .",
"the second is added via plugin .",
"For example I want to show the content of the 2nd column only if the 1th column value is Movie : .. . .. . I ve tried to use conditional OGNL expressions in hidden and cssClass fields of the GridColumnTag http : code.google.com p struts2-jquery wiki GridColumnTag but immediately noticed they evaluate once against the whole column not at every iteration .",
"I posted a question for it as well stackoverflow.com questions 22600204 http : stackoverflow.com questions 22600204 how-to-have-access-to-servletrequestaware-on-struts2-core-2-3-16-1",
"Dojo plugin is deprecated .. . .. . The Dojo plugin will be deprecated on Struts 2.1 .. . .. . Struts 2.0 versus Struts 2.1 and the Dojo tags .. . .. . The easiest way to get documentation for Struts 2.0 Dojo tag usage is to look at older Struts 2 documentation like the Struts 2.0.11 Ajax tags wiki documentation .",
"Many Actions need drop-down lists http : www.mkyong.com struts2 struts-2-sselect-drop-down-box-example and other controls pre-populated before the page displays .",
"Here I am facing some issue when replace struts-dojo autocompleter to struts-jquery autocompleter .",
".. . The types of tags can be broken in to two types : generic and UI .",
"getting below response from server : .. . .. . firstName : Bulwark Technologies LLC partnerId : 925 firstName : Bulwark Technologies LLC1 partnerId : 926 firstName : Bulwark Technologies LLC2 partnerId : 927 .. . .. . For displaying at client-side I am using Struts2-jquey-autocompleter - .. . .. . I am getting undefined multiple times - based on result found in query at server-side in textbox .",
"Currently I am doing struts up-gradation task struts2.0 to struts2.5 .I want to replace struts dojo tag with struts-jquery .",
"The data is obtained via an AJAX call and should be a valid HTML select element with the desired options One .",
"Regarding to the documentation connected with gridColumn and editoptions property : .. . .. . dataUrl .. . .. . This option is valid only for elements of type select - i.e . edittype : select and should be the URL to get the AJAX data for the select element .",
"As a workaround I can manually hide the columns in that rows with javascript after the grid is populated but that is a hack and I m wondering if there is a clean solution to conditionally do something on a columns per-row .",
"In this section we describe each tag in general terms such as the attributes it supports what the behaviors are and so forth .",
"Most tags are supported in all template languages see JSP Tags Velocity Tags and FreeMarker Tags but some are currently only specific to one language .",
"Whenever a tag doesn t have complete support for every language it is noted on the tag s reference page .",
"Besides function and responsibility the biggest difference between the two is that the HTML tags support templates and themes .",
"In addition to the general tag reference we also provide examples for using these generic tags in each of the support languages .",
"thank you for the informative description .",
"welcome don t forget to upvote it",
"Exceptions .. . .. . POM.xml",
"Why are you using the Struts 1.3 taglib",
"if I change that to 2.3.16.1 which is the latest one I can not use ServletResponseAware interface anymore",
"And : .. . .. . I compiled and added them in my classes folder",
"NOTE : I can t simply erase the content from the source List as it would be obvious because COL 2 in my real case is a Boolean represented as checkbox .",
"There are many ways how you can implement the requirement .",
"One of the most easy is the setting of color : transparent CSS on the cells which you need to hide .",
"For example you define the CSS rule .. . .. . and you assign the class hiddenCell to specified cells of the COL 2 .",
"You can use cellattr property of COL 2 for it : .. . .. . The demo http : www.ok-soft-gmbh.com jqGrid transparentTextInColumn.htm demonstrates the approach .",
"Disadvantage of the approach - the hidden text still exist on HTML page and so one can examine it if required .",
"Another way is the usage of custom formatters .",
"For example you can define the following formatter callback .. . .. . The demo http : www.ok-soft-gmbh.com jqGrid removeTextInColumn.htm demonstrates the second approach .",
"Disadvantage of the approach - it s a little difficult to combine usage of custom formatter with another formatter like formatter : select in the example above .",
"Nevertheless one can do it too : .. . .. . like the next demo http : www.ok-soft-gmbh.com jqGrid removeTextInColumn .htm .",
"If you loads the data from the server then probably the best choice would be to modify the input data the input data for the column COL 2 inside of beforeProcessing callback .",
"See the answer http : stackoverflow.com a 9855764 315935 or this one http : stackoverflow.com a 9722466 315935 for code examples .",
"Great answer .",
"Thanks a lot .",
"It worked like a charm .",
"Two side effects checkbox is not centered in the td anymore and rows with even only one field empty returned from the formatter have an higher line-height 33 instead of 24",
".",
"Returning prevents the second one .",
"@AndreaLigios : You are welcome",
"I think that the usage of nbsp instead of or would be better .",
"And the action where the CategoryList action is mapped is as follows .",
"When a given edit link on the grid is clicked the load method is executed where a list of categories is loaded from the database .",
"The list in the grid however displays nothing in edit mode when the edit link is clicked .",
"I cannot find relative examples that may demonstrate this kind of thing .",
"How to populate this drop down list especially how to give this drop down labels using the catName property and values using the catId of Long type property separately while category in the list has-many other attributes",
"I don t find relevant examples to map a java.util.List E to sjg : grid .",
".. . .. . subCategory.category.catName is a nested property of Product entity .",
"In this case even after populating the list it should also be noted that the display value of this column is catName category name of type String .",
"The value of the selected item however to be set to an instance of Product should be catId category id of type Long which doesn t seem possible as the name of this column is subCategory.category.catName .",
"Intuitively catId subCategory.category.catId would be mapped to catName subCategory.category.catName which would be wrong if I could envision correctly as-if the list were already populated .",
"Please add answer s if someone has .",
"In Struts 2 the HTML drop down list can be rendered via s : select tag .",
"To auto select a default-value for a drop down list just declared a value attribute in the tag and set the default-value accordingly .",
"Example : .. . .. . A Java list to generate the select options for the drop down box .",
"tag to render the HTML drop down box .",
"The value defaultSearchEngine will call the corresponds Action class getDefaultSearchEngine method to return a default search-engine value .",
"Many Actions share common concerns .",
"Some Actions need input validated .",
"Other Actions may need a file-upload to be pre-processed .",
"Another Action might need protection from a double submit .",
"In this example the drop down box will auto select the yahoo.com as the default option .",
"I know about this stray s : select but I need a drop down list inside sjg : gridColumn .",
"This should have something to do with the attribute editoptions dataUrl : dataURL or something else .",
"@Tiny look at my new update answer... .",
"editoptions are dynamic .",
"They should be populated from the database .",
"Given the example in the question catId as value and catName as label of select option option select .",
"How can this be dynamic - editoptions value : France : France USA : USA Australia : Australia Norway : Norway Sp ain : Spain",
"The list is populated in the CategoryList class .",
"It should be mapped to editoptions catId as value and catName as label of select option option select .",
"Can this be done",
"@Tiny look at my update : 1 answer .",
"You can use option group .",
"your action has to return valid select element .",
"That means that your Product.jsp result need to look like this : .. . .. . Reference : http : www.trirand.com jqgridwiki doku.php id wiki : common rules",
"This can be done if there is s : select alone .",
"Can we have s : select inside a grid column",
"If I understand you correctly the select is rendered when there is no taglib declaration inside Product.jsp right",
"I am sure that you have some taglib declaration in JSP where you have placed gridColumn element then it will work without additional declaration inside Product.jsp .",
"Could you please demonstrate it in conjunction with an sjg : grid",
"I cannot envision this thing ."
]
} | {
"confidence": [
99.53877258300781,
68.81855773925781,
67.2459716796875,
64.5924301147461,
59.19207763671875,
53.42568588256836,
50.383174896240234,
46.86259078979492,
38.33354949951172
],
"content": [
"Question : I am new to Struts2 . I wanted to know the difference between Struts2 and Struts2 jQuery tags .. . Answer : The first one is used for Struts2 core tag library https : struts.apache.org docs struts-tags.html .. . .. . The framework provides a tag library decoupled from the view technology . In this section we describe each tag in general terms such as the attributes it supports what the behaviors are and so forth . Most tags are supported in all template languages see JSP Tags Velocity Tags and FreeMarker Tags but some are currently only specific to one language . Whenever a tag doesn t have complete support for every language it is noted on the tag s reference page . .. . The types of tags can be broken in to two types : generic and UI . Besides function and responsibility the biggest difference between the two is that the HTML tags support templates and themes . In addition to the general tag reference we also provide examples for using these generic tags in each of the support languages . the second is added via plugin . It adds replaces the Ajax being used by struts2 dojo plugin https : struts.apache.org docs ajax-tags.html . Dojo plugin is deprecated .. . .. . The Dojo plugin will be deprecated on Struts 2.1 .. . .. . Struts 2.0 versus Struts 2.1 and the Dojo tags .. . .. . The easiest way to get documentation for Struts 2.0 Dojo tag usage is to look at older Struts 2 documentation like the Struts 2.0.11 Ajax tags wiki documentation . Now this plugin is deprecated and struts2-jquery-plugin https : github.com struts-community-plugins struts2-jquery could be used instead . A Plugin for the popular java web framework struts2 to provide ajax functionality and UI Widgets based on the jQuery javascript-framework . Comment : thank you for the informative description . Comment : welcome don t forget to upvote it",
"Question : I am going to use struts-jquery taglib https : code.google.com p struts2-jquery wiki DatePickerTag Datepicker with different options and animations but the application throws the following errors . Based on this question http : stackoverflow.com questions 15087557 can-not-find-the-tag-library-descriptor-for-struts2-jquery-tags-in-jsp I changed struts to struts2 and based on this one http : stackoverflow.com questions 20772405 struts2-jquery-plugin-java-lang-classnotfoundexception-org-apache-struts2-views I added the bean to struts.xml file but to no avail . Exceptions .. . .. . POM.xml Comment : Why are you using the Struts 1.3 taglib .. . Answer : I could use the jQuery plugin on Struts2 2.3.14 I just removed the Target directory of the application and used the following dependencies .",
"Question : I am going to use struts-jquery taglib https : code.google.com p struts2-jquery wiki DatePickerTag Datepicker with different options and animations but the application throws the following errors . Based on this question http : stackoverflow.com questions 15087557 can-not-find-the-tag-library-descriptor-for-struts2-jquery-tags-in-jsp I changed struts to struts2 and based on this one http : stackoverflow.com questions 20772405 struts2-jquery-plugin-java-lang-classnotfoundexception-org-apache-struts2-views I added the bean to struts.xml file but to no avail . Exceptions .. . .. . POM.xml Comment : Why are you using the Struts 1.3 taglib .. . Answer : And : .. . .. . I compiled and added them in my classes folder",
"Question : I am going to use struts-jquery taglib https : code.google.com p struts2-jquery wiki DatePickerTag Datepicker with different options and animations but the application throws the following errors . Based on this question http : stackoverflow.com questions 15087557 can-not-find-the-tag-library-descriptor-for-struts2-jquery-tags-in-jsp I changed struts to struts2 and based on this one http : stackoverflow.com questions 20772405 struts2-jquery-plugin-java-lang-classnotfoundexception-org-apache-struts2-views I added the bean to struts.xml file but to no avail . Exceptions .. . .. . POM.xml Comment : Why are you using the Struts 1.3 taglib .. . Answer : You have dependency problem : .. . .. . class TagLibraryDirectiveProvider exists in struts2-core jar but in newer version 2.3.16 than you declared 2.3.8 : http : struts.apache.org release 2.3.x struts2-core apidocs org apache struts2 views TagLibraryDirectiveProvider.html .. . .. . So simple upgrade the dependency . Comment : if I change that to 2.3.16.1 which is the latest one I can not use ServletResponseAware interface anymore Comment : I posted a question for it as well stackoverflow.com questions 22600204 http : stackoverflow.com questions 22600204 how-to-have-access-to-servletrequestaware-on-struts2-core-2-3-16-1",
"Question : Is there any way to target a column in a jqGrid in my case Struts2-jQuery-Grid Plugin 3.7.0 on certain rows only For example I want to show the content of the 2nd column only if the 1th column value is Movie : .. . .. . I ve tried to use conditional OGNL expressions in hidden and cssClass fields of the GridColumnTag http : code.google.com p struts2-jquery wiki GridColumnTag but immediately noticed they evaluate once against the whole column not at every iteration . As a workaround I can manually hide the columns in that rows with javascript after the grid is populated but that is a hack and I m wondering if there is a clean solution to conditionally do something on a columns per-row . NOTE : I can t simply erase the content from the source List as it would be obvious because COL 2 in my real case is a Boolean represented as checkbox . .. . Answer : For the records the solution for the fake scenario described in the question using Struts2-jQuery-Grid Plugin instead of the raw jqGrid would be :",
"Question : I m trying to populate a drop down list in a grid column using the Struts2-jQuery-grid-3.7.0 https : code.google.com p struts2-jquery downloads detail name struts2-jquery-grid-plugin-3.7.0.jar can 2 q plugin as follows . And the action where the CategoryList action is mapped is as follows . When a given edit link on the grid is clicked the load method is executed where a list of categories is loaded from the database . The list in the grid however displays nothing in edit mode when the edit link is clicked . I cannot find relative examples that may demonstrate this kind of thing . How to populate this drop down list especially how to give this drop down labels using the catName property and values using the catId of Long type property separately while category in the list has-many other attributes I don t find relevant examples to map a java.util.List E to sjg : grid . .. . .. . subCategory.category.catName is a nested property of Product entity . In this case even after populating the list it should also be noted that the display value of this column is catName category name of type String . The value of the selected item however to be set to an instance of Product should be catId category id of type Long which doesn t seem possible as the name of this column is subCategory.category.catName . Intuitively catId subCategory.category.catId would be mapped to catName subCategory.category.catName which would be wrong if I could envision correctly as-if the list were already populated . Comment : Added struts2-jquery tag because it has 31 followers while your other sj tags have 3 followers.. . Comment : Please add answer s if someone has . .. . Answer : In Struts 2 the HTML drop down list can be rendered via s : select tag . To auto select a default-value for a drop down list just declared a value attribute in the tag and set the default-value accordingly . Example : .. . .. . A Java list to generate the select options for the drop down box . tag to render the HTML drop down box . The value defaultSearchEngine will call the corresponds Action class getDefaultSearchEngine method to return a default search-engine value . Many Actions share common concerns . Some Actions need input validated . Other Actions may need a file-upload to be pre-processed . Another Action might need protection from a double submit . Many Actions need drop-down lists http : www.mkyong.com struts2 struts-2-sselect-drop-down-box-example and other controls pre-populated before the page displays . In this example the drop down box will auto select the yahoo.com as the default option . Add Struts2 jQuery Plugin Tag lib to your JSP .. . .. . Enable jQuery Grid Plugin in your Head Tag .. . .. . update : .. . .. . Specify an Edit Url in your JSP .. . .. . And enable Edit by setting following attributes in your JSP .. . .. . then define which Column should be editable .. . .. . Example for an Edit Options : .. . .. . Example for an Edit Rules : .. . .. . update : 1 Comment : I know about this stray s : select but I need a drop down list inside sjg : gridColumn . This should have something to do with the attribute editoptions dataUrl : dataURL or something else . Comment : @Tiny look at my new update answer... . Comment : editoptions are dynamic . They should be populated from the database . Given the example in the question catId as value and catName as label of select option option select . How can this be dynamic - editoptions value : France : France USA : USA Australia : Australia Norway : Norway Sp ain : Spain Comment : The list is populated in the CategoryList class . It should be mapped to editoptions catId as value and catName as label of select option option select . Can this be done Comment : @Tiny look at my update : 1 answer .",
"Question : I m trying to populate a drop down list in a grid column using the Struts2-jQuery-grid-3.7.0 https : code.google.com p struts2-jquery downloads detail name struts2-jquery-grid-plugin-3.7.0.jar can 2 q plugin as follows . And the action where the CategoryList action is mapped is as follows . When a given edit link on the grid is clicked the load method is executed where a list of categories is loaded from the database . The list in the grid however displays nothing in edit mode when the edit link is clicked . I cannot find relative examples that may demonstrate this kind of thing . How to populate this drop down list especially how to give this drop down labels using the catName property and values using the catId of Long type property separately while category in the list has-many other attributes I don t find relevant examples to map a java.util.List E to sjg : grid . .. . .. . subCategory.category.catName is a nested property of Product entity . In this case even after populating the list it should also be noted that the display value of this column is catName category name of type String . The value of the selected item however to be set to an instance of Product should be catId category id of type Long which doesn t seem possible as the name of this column is subCategory.category.catName . Intuitively catId subCategory.category.catId would be mapped to catName subCategory.category.catName which would be wrong if I could envision correctly as-if the list were already populated . Comment : Added struts2-jquery tag because it has 31 followers while your other sj tags have 3 followers.. . Comment : Please add answer s if someone has . .. . Answer : Regarding to the documentation connected with gridColumn and editoptions property : .. . .. . dataUrl .. . .. . This option is valid only for elements of type select - i.e . edittype : select and should be the URL to get the AJAX data for the select element . The data is obtained via an AJAX call and should be a valid HTML select element with the desired options One . You can use option group . your action has to return valid select element . That means that your Product.jsp result need to look like this : .. . .. . Reference : http : www.trirand.com jqgridwiki doku.php id wiki : common rules Comment : This can be done if there is s : select alone . Can we have s : select inside a grid column Comment : If I understand you correctly the select is rendered when there is no taglib declaration inside Product.jsp right I am sure that you have some taglib declaration in JSP where you have placed gridColumn element then it will work without additional declaration inside Product.jsp . Comment : Could you please demonstrate it in conjunction with an sjg : grid I cannot envision this thing . I have implemented such kind of things in JSF and its component library PrimeFaces where there is a p : rowEditor inside p : dataTable in which we can put a component of our choice like p : selectOneMenu . It is a different scenario .",
"Question : Is there any way to target a column in a jqGrid in my case Struts2-jQuery-Grid Plugin 3.7.0 on certain rows only For example I want to show the content of the 2nd column only if the 1th column value is Movie : .. . .. . I ve tried to use conditional OGNL expressions in hidden and cssClass fields of the GridColumnTag http : code.google.com p struts2-jquery wiki GridColumnTag but immediately noticed they evaluate once against the whole column not at every iteration . As a workaround I can manually hide the columns in that rows with javascript after the grid is populated but that is a hack and I m wondering if there is a clean solution to conditionally do something on a columns per-row . NOTE : I can t simply erase the content from the source List as it would be obvious because COL 2 in my real case is a Boolean represented as checkbox . .. . Answer : There are many ways how you can implement the requirement . One of the most easy is the setting of color : transparent CSS on the cells which you need to hide . For example you define the CSS rule .. . .. . and you assign the class hiddenCell to specified cells of the COL 2 . You can use cellattr property of COL 2 for it : .. . .. . The demo http : www.ok-soft-gmbh.com jqGrid transparentTextInColumn.htm demonstrates the approach . Disadvantage of the approach - the hidden text still exist on HTML page and so one can examine it if required . Another way is the usage of custom formatters . For example you can define the following formatter callback .. . .. . The demo http : www.ok-soft-gmbh.com jqGrid removeTextInColumn.htm demonstrates the second approach . Disadvantage of the approach - it s a little difficult to combine usage of custom formatter with another formatter like formatter : select in the example above . Nevertheless one can do it too : .. . .. . like the next demo http : www.ok-soft-gmbh.com jqGrid removeTextInColumn .htm . If you loads the data from the server then probably the best choice would be to modify the input data the input data for the column COL 2 inside of beforeProcessing callback . See the answer http : stackoverflow.com a 9855764 315935 or this one http : stackoverflow.com a 9722466 315935 for code examples . Comment : Great answer . Regarding Solution 1 I don t think is possible in Struts2-jQuery-Grid it does not have cellattr exposed since I m using checkbox formatter I will create a custom one with another formatter as in Solution 2b . Thanks a lot . Comment : It worked like a charm . Two side effects checkbox is not centered in the td anymore and rows with even only one field empty returned from the formatter have an higher line-height 33 instead of 24 . Comment : Returning prevents the second one . Comment : @AndreaLigios : You are welcome I think that the usage of nbsp instead of or would be better .",
"Question : null .. . Answer : Currently I am doing struts up-gradation task struts2.0 to struts2.5 .I want to replace struts dojo tag with struts-jquery . Here I am facing some issue when replace struts-dojo autocompleter to struts-jquery autocompleter . getting below response from server : .. . .. . firstName : Bulwark Technologies LLC partnerId : 925 firstName : Bulwark Technologies LLC1 partnerId : 926 firstName : Bulwark Technologies LLC2 partnerId : 927 .. . .. . For displaying at client-side I am using Struts2-jquey-autocompleter - .. . .. . I am getting undefined multiple times - based on result found in query at server-side in textbox . could some one please help here Thanks in advance . enter image description here http : i.stack.imgur.com 0W4P0.png Comment : I think your attribute value for list is wrong . I always use something like this : mylist : key : 1 value : Foo key : 2 value : Bar and the autocompleter : sj : autocompleter href .. . list mylist listKey key listValue value"
]
} | [
"yes-answer-long",
"yes-answer-short"
] | web | UNK_RELATION |
qcolor@rgb@72 | qcolor -- in the qt platform the qcolor class provides colors based on @placeholder hsv or cmyk values . | {
"confidence": [
55.25004577636719,
54.82019805908203,
46.83000183105469,
44.34843826293945,
43.81792449951172,
42.63209533691406,
40.30934524536133,
38.97202682495117,
38.97202682495117,
38.97202682495117,
37.72307586669922,
37.29050064086914,
35.63151931762695,
34.34576416015625,
33.0968132019043,
30.444766998291016,
30.413555145263672,
30.265438079833984,
30.258525848388672,
28.343151092529297,
27.808040618896484,
24.900144577026367,
24.738201141357422,
22.922786712646484,
22.709121704101562,
22.70827293395996,
22.10790252685547,
21.86534881591797,
21.86534881591797,
21.712839126586914,
21.537460327148438,
21.200679779052734,
21.12578582763672,
20.399635314941406,
20.124008178710938,
20.124008178710938,
20.07950782775879,
19.946636199951172,
19.58113670349121,
19.58113670349121,
19.58113670349121,
19.08829689025879,
18.326129913330078,
18.326129913330078,
18.326129913330078,
18.326129913330078,
18.326129913330078,
18.149873733520508,
17.907169342041016,
17.839345932006836,
17.45183563232422,
17.280025482177734,
17.023775100708008,
17.023775100708008,
16.6977481842041,
16.6977481842041,
16.6977481842041,
16.6657772064209,
16.42508316040039,
16.42508316040039,
16.028766632080078,
15.796573638916016,
15.315790176391602,
14.812185287475586,
14.227765083312988,
13.773395538330078,
12.362547874450684,
12.362547874450684,
12.362547874450684,
12.362547874450684,
12.362547874450684,
12.362547874450684,
12.362547874450684,
12.362547874450684,
12.362547874450684,
12.362547874450684,
12.362547874450684,
12.362547874450684,
12.362547874450684,
12.362547874450684,
12.362547874450684,
12.362547874450684,
12.362547874450684,
12.362547874450684,
12.362547874450684,
12.362547874450684,
12.362547874450684,
12.362547874450684,
12.362547874450684,
12.362547874450684,
12.362547874450684,
12.362547874450684,
12.362547874450684,
12.362547874450684,
12.362547874450684,
12.362547874450684,
12.362547874450684,
12.362547874450684,
12.362547874450684
],
"content": [
"It isn t an exception in Qt but a question of class design of QColor .",
"qcolor -- scalar .. . .. . scalar -- qcolor",
"This requires an overload for qHash QColor",
"I set invalid color values for a QColor object by purpose so that get : .. . .. . QColor : : setRgb : RGB parameters out of range .. . .. . on the console .",
"So I have simple code .. . .. . The error message is .. . .. . no match for operator operand types are const QColor and const QColor .",
"It looks like QColor has several overloaded constructors one of which should do the trick for you QColor const char name see here http : qt-project.org doc qt-4.8 qcolor.html",
"I am using opencv+Qt c++ and I want convert a QColor RGB pixel to an opencv BGR pixel :",
"Question is : Is it possible to store QColor in a QMap as key as value and not by reference",
"@Gombat by why do you think that it s question of design of QColor but not QMap",
"@cassandradied It s not possible unless you define operator for QColor yourself .",
"If you already grabbed the QColor in color you can try for a QLabel label :",
"You could also use the following static method : .. . .. . QColor QColor : : fromRgb int r int g int b int a 255 static http : qt-project.org doc qt-5 qcolor.html fromRgb-2 .. . .. . Static convenience function that returns a QColor constructed from the RGB color values r red g green b blue and a alpha-channel i.e .",
"I will assume that you are using RGBA so you can use the corresponding constructor : .. . .. . QColor : : QColor int r int g int b int a 255 http : qt-project.org doc qt-5 qcolor.html QColor-2 .. . .. . Constructs a color with the RGB value r g b and the alpha-channel transparency value of a .",
"An option would be to define operator for QColor yourself but I wouldn t advise it as I m not sure it s supposed to be defined .",
"So individual element assignment as in the original question is actually the most direct way to get from a char 4 to a QColor",
"No because QColor doesn t provide operator http : doc.qt.io qt-4.8 qcolor.html which is required http : doc.qt.io qt-5 qmap.html by QMap s Key type : .. . .. . The key type of a QMap must provide operator specifying a total order .",
"Qt already provides such function .",
"I have a char 4 and I want to be able to cast it into a QColor is there a way that I can directly convert rather than doing this :",
"Here : .. . .. . I call this fill .. . function inside mousePressEvent here : .. . .. . The really don t understand how it is working only on black color when passing argument QColor of different colors .",
"QColor is a combination of 3 bytes RGB so you should be looking for a color range from 0 to 2 24-1 0 16777215 .. . .. . You could do something like : .. . .. . Regards .",
"So should creating these brushes work : QBrush darkBrown QColor 83 71 65 QBrush clickedBrown QColor 122 83 66 Then this if-statement as a way of changing the colour rather than chnaging the colour of one brush but using two brushes and drawing with different brushes : if Pressed true painter- setBrush clickedBrown else painter- setBrush darkBrown because it doesn t either .",
"It repeatedly tells me .. . .. . I have tried all manner of variations of how to create a QColor but it never seems happy with it.This is what I am currently trying : - .. . .. . But it still gives me the same invalid type error.. . .. . .. . Any ideas",
"Why you d expect Qt to know how your colors should look when it s disabled",
"Why Qt : : blue is less than Qt : : red",
"I need to use the colors as follows : QColor color 3 color 0 .setHsv 249 249 249 color 1 .setHsv 181 181 181 color 2 .setHsv 214 214 214 the last color is the same as the first one so the order needs to be : color 0 color 1 color 2 color 0 .",
"And this still does not answer the question : How can I get disabled style colors based on existing colors and disabled style text even for black and white text .",
"doc.qt.io qt-5 debug.html http : doc.qt.io qt-5 debug.html",
"But you ve set custom colors to that button",
"It s logically not right to compare colors .",
"This is a missing Qt feature .",
"As said above best is probably to create your own disabled colors adapted to your custom colors .",
"It s a Qt bug pretty much .",
"It s right that we can t compare colors .",
"It is in fact looking for a string formatted color as described here qt-project.org doc qt-4.8 qcolor.html setNamedColor http : qt-project.org doc qt-4.8 qcolor.html setNamedColor 5D",
"I don t know how to make colors look disabled .",
"So qMapLessThanKey is trying unsuccessfully to instantiate comparer of two colors and it s impossible .",
"See documentation here http : doc.qt.io qt-5 qcolor.html rgb and here http : doc.qt.io qt-5 qcolor.html QRgb-typedef .",
"The operator we defined provides such partial ordering .",
"http : doc.qt.io qt-5 qcolordialog.html getColor .. . .. . Hope that helps .",
".. . .. . Sidenote : In Qt 5.6 there seems to be no method setBackgroundColor for QTreeWidgetItems only setBackground .",
"So the solution may depend slightly on the used version of Qt .",
"@cassandradied unexpected for me that there is some collection in QT that restricts type which it able to store That s normal all collections stdc++ Qt boost .. . have certain requirements to the types that are used with them .",
"See Customizing QPushButton http : doc.qt.io qt-5 stylesheet-examples.html customizing-qpushbutton .. . .. . 2 .",
"But it looks for me strange that there is any exceptions in QT on what I can store in map or cannot .",
"It s just unexpected for me that there is some collection in QT that restricts type which it able to store .",
"You probably want to swap B and R since in OpenCV you usually work on BGR while in Qt in RGB .",
"Also it is good practice to use qt stylesheet system It is easy and has a lot of perks .",
"QWidget : : paintEvent http : qt-project.org doc qt-4.8 qwidget.html paintEvent worth exploring .",
"Install you own message handler that can filter you can probably chain and invoke the default handler I m sure I ve done this before yes the return-value is the previous handler doc.qt.io qt-5 qtglobal.html qInstallMessageHandler http : doc.qt.io qt-5 qtglobal.html qInstallMessageHandler",
"You could consider using QPalette http : doc.qt.io qt-5 qwidget.html palette-prop instead or probably the fastest option override paintEvent http : doc.qt.io qt-5 qwidget.html paintEvent and paint the widget yourself .",
"I have a class that inherits QWidget .",
"How would you set a custom color using RBG values to a QBrush",
"The widget has some color buttons that are set from a list of colors : .. . .. . Calling myWidget.setEnabled enabledOption disables the widget grays out all text and every other items in the widget - except for these color buttons .",
"I just don t know how to apply a stylesheet with that gray shade - or possibly have a disabled option in the stylesheet even.. . .. . What do colors look like in disabled",
"You can set a special style for disabled state http : doc.qt.io qt-5 stylesheet-reference.html list-of-pseudo-states in the stylesheet : .. . .. . edit : changed code for the widget instead of a global stylesheet . .. . .. . .. . .. . To keep the default disabled style .",
"For example : .. . .. . note that using this example the inverse color of middle grey 128 128 128 is exactly the same color .. . .. . See QPainter : : CompositionMode http : doc.qt.io qt-5 qpainter.html CompositionMode-enum",
"In the documentation it refers to the Standard Dialogs http : doc.qt.io qt-5 qtwidgets-dialogs-standarddialogs-dialog-cpp.html example : .. . .. . Note in QColorDialog : : getColor how it specifies an initial color .",
".. . All the values must be in the range 0-255 .",
"You can implement the comparison operator yourself comparing the R G B A values lexicographically :",
"In C++ there are values semantics https : akrzemi1.wordpress.com 2012 02 03 value-semantics .",
"But when it comes to filling different colors it just puts one pixel in chosen color .",
"Did you written above code in PaintEvent of you sub class Try to write it in PaintEvent and call Update function in mousePressEvent .",
"Since you changed the background-color with .. . .. . you can as well read out the default brush before .. . .. . and set it back to this later on when you want to return to the default values .",
"I decided to use so called floodFill algorithm and after few hours of fighting I am a beginner in Qt I have managed to make it work .",
"If you know that each colour is based off 249 you could do something like this : .. . .. . This allows you to use any colour for the color property so long as all components are the same and the other colours will scale automatically .",
"Don t do the drawing from just any method called in your class .",
"Under certain circumstances I wish to set it disabled .",
"So I am thinking of making my own action : .. . .. . How can I make my buttons - of a background-color and text color that I don t know but the button does - have that disabled look",
"Note - the color update works on disabled items too - that is not really complicated though - whatever style sheet I apply on setting widget disabled can be applied in the colorUpdate function .",
"Just add the custom color change bindings to your setWidgetEnabled",
"Easy way out is to to modify color balances for example hue and saturation .",
"It s your custom data so you know best how it should look like when disabled .",
"Thanks that is the biggest question I don t want the button to look custom different - just have the same washed out look as everything else .",
"Right - but I imagine disabled applies some sort of colorize or like you said a certain change in hue and saturation .",
"I would like to know what that is .",
"Well I d expect the rules to change between themes but setting custom styles explicitly overrides the defaults from the theme so you should figure out the disabled style you want too for your case .",
"Decreasing saturation makes it look washed making the color darker or grayer makes it look disabled .",
"Making fonts gray instead of whatever color may help too .",
"I m not a designer so I can t tell you what your thing should do and SO anyway isn t Designer as a Service.. .",
"To set your own style for the disable state .",
"You can set your custom style only for the enabled state then when the widget is disabled the style does not apply :",
"The style MUST apply in disabled state .",
"I just want it to looked washed-out as-if it was disabled .",
"The first part of the answer I imagine I would need to subclass my button to do.. .",
"But I think I will use the comment to the question and decrease the color saturation .",
"I misunderstood the question then .",
"And to answer your comment no you don t need to subclass the button I gave a global QSS example but you can do this directly : m colorButton- setStyleSheet : enabled color : + foreground + background-color : + color + : disabled color : + disabledForeground + background-color : + disabledColor +",
"How can I get the pressed background-color of a QPushButton",
"Thanks in advance",
"Welcome to Stackoverflow .",
"Could you explain what are you trying to do",
"It seems that getting of this color is not a good idea .",
"May be we can find better solution of your initial problem",
"I have a QPushButton subclass when the button is long pressed I want to draw a circle with the inverse color of the background then inside it is a check symbol with the background-color .",
"Another option for me is to erase some portion of the circle making that portion transparent to create a check mark .",
"What I am trying to do is an overlay circle in my button with a check shaped whole in the middle of it .",
"It s for the checked property of the button like having a check box but I want to render it as drawing .",
"This should give you current value for the Background Color .",
"I have tried to use update and or repaint above setDown true but it s not getting the current value for Background color ."
]
} | {
"confidence": [
71.88384246826172,
63.70855712890625,
63.003814697265625,
59.3041877746582,
59.00787353515625,
47.90376281738281,
43.56620788574219,
40.39404296875,
39.413978576660156,
38.144287109375,
37.244014739990234,
33.6691780090332,
28.65567398071289,
26.223779678344727,
23.601455688476562,
20.217376708984375,
20.117931365966797,
18.3212833404541,
14.844060897827148,
12.36292552947998
],
"content": [
"Question : So I have simple code .. . .. . The error message is .. . .. . no match for operator operand types are const QColor and const QColor . So qMapLessThanKey is trying unsuccessfully to instantiate comparer of two colors and it s impossible . Question is : Is it possible to store QColor in a QMap as key as value and not by reference Just curious . I know how to write what I want in other way . But it looks for me strange that there is any exceptions in QT on what I can store in map or cannot . Comment : It isn t an exception in Qt but a question of class design of QColor . A map cannot work without the operator as Jefffrey points out . It is just that std : : map is more flexible in construction . Comment : @Gombat by why do you think that it s question of design of QColor but not QMap It s right that we can t compare colors . And it s obvious that often we need to have key-value collection sorted by value and not by key . I can t figure out the reason of such implementation . Comment : The key-value collection has to be sorted by key to find the key-value pair fastly . Without key comparison a binary-tree search would not work . Comment : Besides std : : map QHash is also an option . This requires an overload for qHash QColor Comment : @cassandradied : A key-value collection by definition is sorted by key not value . That is because a Key-value collection stores data pairs and the half of the pair by which the collection is indexed is what s called the key . The other part which we call value may hold any data and is not subject to constraints . .. . Answer : Sure it s possible . This is a missing Qt feature . You can implement the comparison operator yourself comparing the R G B A values lexicographically : Comment : It s logically not right to compare colors . Why Qt : : blue is less than Qt : : red Comment : @cassandradied Why not All that QMap requires is a partial ordering of the key type . The operator we defined provides such partial ordering . And that s that . You can define any partial ordering on a given key type whether it makes sense doesn t matter . It needs to be a partial ordering https : en.wikipedia.org wiki Partially ordered set and that s that .",
"Question : I have a char 4 and I want to be able to cast it into a QColor is there a way that I can directly convert rather than doing this : Comment : It looks like QColor has several overloaded constructors one of which should do the trick for you QColor const char name see here http : qt-project.org doc qt-4.8 qcolor.html Comment : What is wrong with this way Comment : A better way is very subjective the question is unfit for stackoverflow since the answer would be primarily opinion-based . Please define what a better way would be like . Comment : @Cyber I had looked at the const char ctor but it doesn t support an alpha channel . It is in fact looking for a string formatted color as described here qt-project.org doc qt-4.8 qcolor.html setNamedColor http : qt-project.org doc qt-4.8 qcolor.html setNamedColor 5D .. . Answer : I will assume that you are using RGBA so you can use the corresponding constructor : .. . .. . QColor : : QColor int r int g int b int a 255 http : qt-project.org doc qt-5 qcolor.html QColor-2 .. . .. . Constructs a color with the RGB value r g b and the alpha-channel transparency value of a . .. . The color is left invalid if any of the arguments are invalid . You could also use the following static method : .. . .. . QColor QColor : : fromRgb int r int g int b int a 255 static http : qt-project.org doc qt-5 qcolor.html fromRgb-2 .. . .. . Static convenience function that returns a QColor constructed from the RGB color values r red g green b blue and a alpha-channel i.e . transparency . .. . All the values must be in the range 0-255 . Comment : So individual element assignment as in the original question is actually the most direct way to get from a char 4 to a QColor Comment : @JonathanMee : yes there is no char overridden version . That would not work for different rgba orders for instance .",
"Question : So I have simple code .. . .. . The error message is .. . .. . no match for operator operand types are const QColor and const QColor . So qMapLessThanKey is trying unsuccessfully to instantiate comparer of two colors and it s impossible . Question is : Is it possible to store QColor in a QMap as key as value and not by reference Just curious . I know how to write what I want in other way . But it looks for me strange that there is any exceptions in QT on what I can store in map or cannot . Comment : It isn t an exception in Qt but a question of class design of QColor . A map cannot work without the operator as Jefffrey points out . It is just that std : : map is more flexible in construction . Comment : @Gombat by why do you think that it s question of design of QColor but not QMap It s right that we can t compare colors . And it s obvious that often we need to have key-value collection sorted by value and not by key . I can t figure out the reason of such implementation . Comment : The key-value collection has to be sorted by key to find the key-value pair fastly . Without key comparison a binary-tree search would not work . Comment : Besides std : : map QHash is also an option . This requires an overload for qHash QColor Comment : @cassandradied : A key-value collection by definition is sorted by key not value . That is because a Key-value collection stores data pairs and the half of the pair by which the collection is indexed is what s called the key . The other part which we call value may hold any data and is not subject to constraints . .. . Answer : No because QColor doesn t provide operator http : doc.qt.io qt-4.8 qcolor.html which is required http : doc.qt.io qt-5 qmap.html by QMap s Key type : .. . .. . The key type of a QMap must provide operator specifying a total order . An option would be to define operator for QColor yourself but I wouldn t advise it as I m not sure it s supposed to be defined . I would recommend just to use std : : map with a custom comparator the third template argument along the lines of : Comment : Unfortunately I m using QMap and not std : : map and there is no way to pass comparator to constructor . The question is more about is it bad design of QMap or there is another suitable collection for storing key-value and have a fast way to update value . Comment : @cassandradied It s not possible unless you define operator for QColor yourself . Why can t you use std : : map exactly Comment : I can . It s just unexpected for me that there is some collection in QT that restricts type which it able to store . Comment : I m not sure it s supposed to be defined . It won t hurt any to define it . It s a Qt bug pretty much . Comment : @cassandradied unexpected for me that there is some collection in QT that restricts type which it able to store That s normal all collections stdc++ Qt boost .. . have certain requirements to the types that are used with them . In particular QMap requires that there exist a partial ordering on the key type expressed by bool operator const K const K where K is the key type . Other containers have other requirements .e.g . QHash doesn t care about ordering but needs a hash-function to exist .",
"Question : I am using opencv+Qt c++ and I want convert a QColor RGB pixel to an opencv BGR pixel : .. . Answer : qcolor -- scalar .. . .. . scalar -- qcolor Comment : You probably want to swap B and R since in OpenCV you usually work on BGR while in Qt in RGB . Also you should use the qreal variant getRgbF since Scalar contains doubles Comment : Thank you for your reminder",
"Question : null .. . Answer : I set invalid color values for a QColor object by purpose so that get : .. . .. . QColor : : setRgb : RGB parameters out of range .. . .. . on the console . How can I prevent this message Comment : doc.qt.io qt-5 debug.html http : doc.qt.io qt-5 debug.html Install you own message handler that can filter you can probably chain and invoke the default handler I m sure I ve done this before yes the return-value is the previous handler doc.qt.io qt-5 qtglobal.html qInstallMessageHandler http : doc.qt.io qt-5 qtglobal.html qInstallMessageHandler",
"Question : I am using opencv+Qt c++ and I want convert a QColor RGB pixel to an opencv BGR pixel : .. . Answer : You have not given a programming language . In python you can use commands such as : .. . .. . For C++ the commands are similar . You may also want to have a look here : How to combine OpenCV with PyQt to create a simple GUI http : stackoverflow.com questions 28282434 how-to-combine-opencv-with-pyqt-to-create-a-simple-gui",
"Question : I have been creating a basic graphics program like MS Paint with simple GUI . I have two classes where one is a MainWindow which holds all buttons sliders etc and a second class is a custom widget called drawingArea on which a user is able to draw . Basicly I ve implemented most of functions but unfortunetly I stucked at filling function which should work just like one in MS Paint . I decided to use so called floodFill algorithm and after few hours of fighting I am a beginner in Qt I have managed to make it work . But not at all . The problem is I am only able to fill black-colored regions shapes lines points etc with the color I choose . But when it comes to filling different colors it just puts one pixel in chosen color . In funcion fill .. . below I am passing two arguments - point mouseClicked and a color of that point . Here : .. . .. . I call this fill .. . function inside mousePressEvent here : .. . .. . The really don t understand how it is working only on black color when passing argument QColor of different colors . I would really appreciate any help or ideas . .. . Answer : There is a fundamental problem with your code . Don t do the drawing from just any method called in your class . The drawing needs to be done in paint event callback that you define . QWidget : : paintEvent http : qt-project.org doc qt-4.8 qwidget.html paintEvent worth exploring . Other than that it is hard to say what else is wrong . BTW you can trigger drawing event by repaint or update . You need to consider how the exact area of redraw is defined in your code .",
"Question : At the moment I use this to create a QBrush : .. . .. . But apparently this leaks memory . How else could you do it I ve tried this : .. . .. . But that hasn t worked either . I want to be able to declare the brush as one colour then be able to change it . Edit : full problem my bad . Comment : Please give more information why the second version wouldn t work . It actually is the correct way to do it . Comment : @ypnos Yes it does work my bad I did not print out the full problem . Yes I can set the colour but I cannot change it as I would have expected . Could you help Thanks : D .. . Answer : The only way to change the color of a brush is via QBrush : : setColor . The brush takes a copy of the color you specify and not a reference . Maybe you are used to other programming-languages like Java where basically everything is a reference . In C++ there are values semantics https : akrzemi1.wordpress.com 2012 02 03 value-semantics . Comment : So should creating these brushes work : QBrush darkBrown QColor 83 71 65 QBrush clickedBrown QColor 122 83 66 Then this if-statement as a way of changing the colour rather than chnaging the colour of one brush but using two brushes and drawing with different brushes : if Pressed true painter- setBrush clickedBrown else painter- setBrush darkBrown because it doesn t either . Comment : Your if check is wrong since you always set Pressed to true Pressed true is an assignment . What you want is if Pressed true or simpler if Pressed . A decent compiler should print a warning . You should most likely increase the warning level of the compiler you use . Comment : facepalm thanks you were right : D",
"Question : I have a simple problem but I can t solve it yet . I hame something like this : .. . .. . After this I need to get color code that in range 0-65535 I pay your attention that I don t need color-codes in range 0-255 . So what I must to do Maybe something like : .. . Answer : QColor is a combination of 3 bytes RGB so you should be looking for a color range from 0 to 2 24-1 0 16777215 .. . .. . You could do something like : .. . .. . Regards .",
"Question : I have a ColorPicker dialog like : .. . .. . The result-of that I put in a QLineEdit via color.name e.g . ff0000 . I would like to display that color as the red field in this example too .. . .. . enter image description here http : i.stack.imgur.com OoHFM.png .. . .. . I don t know what Widget to pick for this to display QPicture Comment : you can use QFrame .. . Answer : I enhanced this answer here http : www.qtcentre.org archive index.php t-5944.html . If you already grabbed the QColor in color you can try for a QLabel label :",
"Question : I am bringing up a QcolorDialog like so : - .. . .. . What I want to know is how to set the colours of the custom color swatches before I bring up the dialog I have searched a lot and found the method setCustomColor but I just can t get it to work . It repeatedly tells me .. . .. . I have tried all manner of variations of how to create a QColor but it never seems happy with it.This is what I am currently trying : - .. . .. . But it still gives me the same invalid type error.. . .. . .. . Any ideas .. . Answer : All you need to do is : Comment : Thanks Worked great Comment : Please mark my answer as the accepted answer if this has sorted it for you . Comment : Done . Thanks again",
"Question : I m trying to apply a soft color change to a QPushButton clicked event . My first approach with QPropertyAnimation works like a charm . header : .. . .. . and source : .. . .. . But since my Button does have a lineargradient as a background I need more than one color to be changed . Tried it with changing the header like so : .. . .. . My question : How do I edit the setStartValue and setEndValue in the source file correctly EDIT 1 : The buttons in my app look like this : button 1 http : i.stack.imgur.com qcFYA.png .. . .. . Stylesheet of the QPushButton : .. . .. . Stylesheet for the pressed event : .. . .. . After clicking the silver ish gradient turns into a blue gradient . After releasing they should fade softly into the silver ish look again . As previously said the first approach does exactly that but with only one flat color . I ve never worked with QPainter or a custom paintEvent before so any help would be highly appreciated Thanks Micha Comment : What s an example of the colours you would set Are they all unique or do you generate them all from one colour Comment : I need to use the colors as follows : QColor color 3 color 0 .setHsv 249 249 249 color 1 .setHsv 181 181 181 color 2 .setHsv 214 214 214 the last color is the same as the first one so the order needs to be : color 0 color 1 color 2 color 0 . Comment : It is a bad idea to do animations by modifying QSS . Because it s very slow . Comment : Fading one color into another works perfectly fine though . But if you have another approach in mind please feel free to share Always looking for better solutions . .. . Answer : The simplest way to do so would be to define a property for each stop : .. . .. . It s pretty ugly though . In your comment you mentioned that the RGB component of each colour is the same and the components were basically 249 181 214 and 249 . If you know that each colour is based off 249 you could do something like this : .. . .. . This allows you to use any colour for the color property so long as all components are the same and the other colours will scale automatically . As mentioned by @SaZ modifying stylesheets in this manner can be slow . You could consider using QPalette http : doc.qt.io qt-5 qwidget.html palette-prop instead or probably the fastest option override paintEvent http : doc.qt.io qt-5 qwidget.html paintEvent and paint the widget yourself . Comment : Thank you for your efforts Mitch But since I m not familiar with either QPalette or custom paintEvents could you please provide me with an example Comment : Here s a custom QWidget with paintEvent overridden : gist.github.com mitchcurtis 233f78d42d62e654f773 https : gist.github.com mitchcurtis 233f78d42d62e654f773 Comment : Hm sorry not able to transfer it to my issue.. . : Comment : animating the style sheet is total overkill . I would never do that . Comment : @MichaW . then you need to improve your question to be more specific .",
"Question : I have a class that inherits QWidget . Under certain circumstances I wish to set it disabled . The widget has some color buttons that are set from a list of colors : .. . .. . Calling myWidget.setEnabled enabledOption disables the widget grays out all text and every other items in the widget - except for these color buttons . So I am thinking of making my own action : .. . .. . How can I make my buttons - of a background-color and text color that I don t know but the button does - have that disabled look Note - the color update works on disabled items too - that is not really complicated though - whatever style sheet I apply on setting widget disabled can be applied in the colorUpdate function . I just don t know how to apply a stylesheet with that gray shade - or possibly have a disabled option in the stylesheet even.. . .. . What do colors look like in disabled Comment : Just add the custom color change bindings to your setWidgetEnabled Easy way out is to to modify color balances for example hue and saturation . It s your custom data so you know best how it should look like when disabled . Comment : Thanks that is the biggest question I don t want the button to look custom different - just have the same washed out look as everything else . I don t know how to make colors look disabled . Comment : But you ve set custom colors to that button Why you d expect Qt to know how your colors should look when it s disabled Comment : Right - but I imagine disabled applies some sort of colorize or like you said a certain change in hue and saturation . I would like to know what that is . Comment : Well I d expect the rules to change between themes but setting custom styles explicitly overrides the defaults from the theme so you should figure out the disabled style you want too for your case . Decreasing saturation makes it look washed making the color darker or grayer makes it look disabled . Making fonts gray instead of whatever color may help too . I m not a designer so I can t tell you what your thing should do and SO anyway isn t Designer as a Service.. . .. . Answer : To set your own style for the disable state . You can set a special style for disabled state http : doc.qt.io qt-5 stylesheet-reference.html list-of-pseudo-states in the stylesheet : .. . .. . edit : changed code for the widget instead of a global stylesheet . .. . .. . .. . .. . To keep the default disabled style . You can set your custom style only for the enabled state then when the widget is disabled the style does not apply : Comment : The style MUST apply in disabled state . I just want it to looked washed-out as-if it was disabled . The first part of the answer I imagine I would need to subclass my button to do.. . And this still does not answer the question : How can I get disabled style colors based on existing colors and disabled style text even for black and white text . But I think I will use the comment to the question and decrease the color saturation . Comment : I misunderstood the question then . As said above best is probably to create your own disabled colors adapted to your custom colors . And to answer your comment no you don t need to subclass the button I gave a global QSS example but you can do this directly : m colorButton- setStyleSheet : enabled color : + foreground + background-color : + color + : disabled color : + disabledForeground + background-color : + disabledColor +",
"Question : I have a simple problem but I can t solve it yet . I hame something like this : .. . .. . After this I need to get color code that in range 0-65535 I pay your attention that I don t need color-codes in range 0-255 . So what I must to do Maybe something like : .. . Answer : Qt already provides such function . See documentation here http : doc.qt.io qt-5 qcolor.html rgb and here http : doc.qt.io qt-5 qcolor.html QRgb-typedef . What it says :",
"Question : How do I remove the backgroundColor or reset it to default Comment : How did you set it before Comment : treeWidgetItem.setBackgroundColor 0 QtGui.QColor green -like that Comment : Why would you need to struggle you would simply do treeWidgetItem.setBackgroundColor 0 QtGui.QColor white .. . Answer : The default-value may depend on the OS and other factors . Since you changed the background-color with .. . .. . you can as well read out the default brush before .. . .. . and set it back to this later on when you want to return to the default values . .. . .. . Sidenote : In Qt 5.6 there seems to be no method setBackgroundColor for QTreeWidgetItems only setBackground . So the solution may depend slightly on the used version of Qt .",
"Question : How can I get the pressed background-color of a QPushButton Thanks in advance Comment : Welcome to Stackoverflow . Could you explain what are you trying to do It seems that getting of this color is not a good idea . May be we can find better solution of your initial problem Comment : I have a QPushButton subclass when the button is long pressed I want to draw a circle with the inverse color of the background then inside it is a check symbol with the background-color . Another option for me is to erase some portion of the circle making that portion transparent to create a check mark . Comment : What I am trying to do is an overlay circle in my button with a check shaped whole in the middle of it . It s for the checked property of the button like having a check box but I want to render it as drawing . Comment : Did you written above code in PaintEvent of you sub class Try to write it in PaintEvent and call Update function in mousePressEvent . This should give you current value for the Background Color . Comment : I have tried to use update and or repaint above setDown true but it s not getting the current value for Background color . .. . Answer : It s very difficult if not impossible to find a way to get the backgound color of a button when it s pressed because it depends on the style and it s not guaranteed that the style respects the palette . However I suggest two different approaches : .. . .. . 1 . You can set you own background-color using style sheets simpler or implement the painting of the button yourself using styles or reimplementing paintEvent . See Customizing QPushButton http : doc.qt.io qt-5 stylesheet-examples.html customizing-qpushbutton .. . .. . 2 . To paint over the button with the inverse color you can set a composition mode to the painter in order to get the inverse color . For example : .. . .. . note that using this example the inverse color of middle grey 128 128 128 is exactly the same color .. . .. . See QPainter : : CompositionMode http : doc.qt.io qt-5 qpainter.html CompositionMode-enum",
"Question : When I open a QColorPicker I click in the coloor map in the top center and select any color lets say red this color appears as black in the selected color bar bottom center . I have to move additionally the slider on the top right see red arrow enter image description here http : i.stack.imgur.com j061v.png to its top position to approach the selected color . Why is this slider not initially set to the highest value so I do not see black always Comment : Set it to the desired position yourself . Every parameter is default set to 0 I guess . .. . Answer : In the documentation it refers to the Standard Dialogs http : doc.qt.io qt-5 qtwidgets-dialogs-standarddialogs-dialog-cpp.html example : .. . .. . Note in QColorDialog : : getColor how it specifies an initial color . This should set the brightness bar for you . http : doc.qt.io qt-5 qcolordialog.html getColor .. . .. . Hope that helps .",
"Question : How do I remove the backgroundColor or reset it to default Comment : How did you set it before Comment : treeWidgetItem.setBackgroundColor 0 QtGui.QColor green -like that Comment : Why would you need to struggle you would simply do treeWidgetItem.setBackgroundColor 0 QtGui.QColor white .. . Answer : I am not sure if there is any way of doing it with setBackgroundColor But i would use setStyleSheet . Stylesheet s work with every QtGui widget and are more easier to use overall . If you want to set the QTreeWidget background-color to green : .. . .. . If you want to reset the Stylesheet of QTreeWidget simply type this : .. . .. . This would reset any widget s color to default one without giving any exceptions . Also it is good practice to use qt stylesheet system It is easy and has a lot of perks .",
"Question : How would you set a custom color using RBG values to a QBrush And then draw a rectangle with the brush on a GraphicsView . So far I ve tried : .. . .. . The error message is : .. . .. . error : C2664 : QGraphicsRectItem QGraphicsScene : : addRect qreal qreal qreal qreal const QPen const QBrush : cannot convert argument 6 from QBrush to const QBrush Reason : cannot convert from QBrush to const QBrush No constructor could take the source type or constructor overload-resolution was ambiguous .. . .. . Then when I replace the first line with : .. . .. . The message is only slightly changed to : .. . .. . error : C2664 : QGraphicsRectItem QGraphicsScene : : addRect qreal qreal qreal qreal const QPen const QBrush : cannot convert argument 6 from const QBrush to const QBrush Reason : cannot convert from const QBrush to const QBrush No constructor could take the source type or constructor overload-resolution was ambiguous .. . Answer : You should replace scene- addRect 0 415 20 50 noPen goldBrush with scene- addRect 0 415 20 50 noPen goldBrush . The way you are doing it you are passing an adress to a position on the memory instead of a reference to the variable . Comment : Brilliant thanks I did not know that .",
"Question : null .. . Answer : How can I set QTableWidgetItem editor background-color I set item with not white background .. . .. . While I am editing text of this item background is white . I need to make its background-color as when it is not in editing state . Comment : Which kind of Model Which kind of view Is there a reason why you want to change background-color by delegate instead of using the model Comment : What does mean which kind of model and kind of view Comment : @Ufx he means give us more informations about your code Comment : the view still draws the item even if it has an editor open afaik . so the editor should have a valid background brush in its palette or its style itself . Comment : Do you want to change the bg color of the widget itself or do you want to change the bg color of the cell the widget is embedded in"
]
} | [
"yes-answer-long",
"yes-answer-short"
] | rgb | UNK_RELATION |
uibarmetrics@sdk@115 | uibarmetrics -- uibarmetrics are the constants to specify metrics to use for appearance of uibarbuttonitem in ios @placeholder . | {
"confidence": [
48.16638946533203,
42.41338348388672,
42.41338348388672,
23.089195251464844,
23.057252883911133,
22.235010147094727,
21.817096710205078,
21.696868896484375,
21.069869995117188,
21.069869995117188,
19.51943588256836,
19.51943588256836,
18.06240463256836,
18.06240463256836,
17.497230529785156,
17.198640823364258,
16.93399429321289,
16.39516830444336,
14.951766967773438,
14.763580322265625,
13.721939086914062,
13.686508178710938,
12.82673454284668,
12.186488151550293,
12.113561630249023,
12.113561630249023,
12.113561630249023,
12.113561630249023,
12.113561630249023,
12.113561630249023,
12.113561630249023,
12.113561630249023,
12.113561630249023,
12.113561630249023,
12.113561630249023,
12.113561630249023,
12.113561630249023,
12.113561630249023,
12.113561630249023,
12.113561630249023,
12.113561630249023,
12.113561630249023,
12.113561630249023,
12.113561630249023,
12.113561630249023,
12.113561630249023,
12.113561630249023,
12.113561630249023,
12.113561630249023,
12.113561630249023,
12.113561630249023,
12.113561630249023,
12.113561630249023,
12.113561630249023,
12.113561630249023,
12.113561630249023,
12.113561630249023,
12.113561630249023,
12.113561630249023,
12.113561630249023,
12.113561630249023,
12.113561630249023,
12.113561630249023,
12.113561630249023,
12.113561630249023,
12.113561630249023,
12.113561630249023,
12.113561630249023,
12.113561630249023,
12.113561630249023,
12.113561630249023,
12.113561630249023,
12.113561630249023,
12.113561630249023,
12.113561630249023,
12.113561630249023,
12.113561630249023,
12.113561630249023,
12.113561630249023,
12.113561630249023,
12.113561630249023,
10.481973648071289,
10.481973648071289,
10.481973648071289,
10.481973648071289,
10.481973648071289,
10.481973648071289,
10.481973648071289,
10.481973648071289
],
"content": [
"BarMetrics is an UIBarMetrics type you cannot pass it as an int .",
"Is there anyway to have the UIBarMetrics of a custom UIToolbar change when the device is rotated",
"The UINavigationController must be doing something with the UIBarMetrics that is not happening automatically with a stand-alone toolbar .",
"It basically set the same appearance again .",
"UIBarButtonItem customization of back button background-image for UIBarMetricsDefaultPrompt or UIBarMetricsLandscapePhonePrompt is ignored",
"Customise the navigation bar background via the appearance proxy .",
"To get rid of the warning use .. . .. . or .. . .. . because metrics is an NSInteger and numberWithInt accepts int not NSInteger .",
"UINavigationBar appearance setBackgroundImage : UIImage imageWithColor : UIColor redColor forBarMetrics : UIBarMetricsDefault .. . UINavigationBar appearance setBackgroundImage : UIImage imageWithColor : UIColor blueColor forBarMetrics : UIBarMetricsCompact .. . .. . return YES .. . .. . .. . .. . 4 .",
"I ran into this issue in iOS 8 where the wrong background-image for the navigation bar is displayed in any of these situations : .. . .. . the view controller-based status bar appearance is set to YES default and the navigation controller is presented modally .",
"Yes I have been struggling with this after I add View controller-based status bar appearance in target s plist file it is working again on iOS 8 remember to set it to NO .",
"the view controller-based status bar appearance is set to NO and the status bar is initially hidden .",
"This almost solves the problem if you are willing to give up on the view controller-based status bar appearance .",
"I m not currently using the iOS 7.1 betas but I trust you re correct .",
"You have my word tested on both device with 7.1b3 iOS and Simulator .",
"To isolate the problem where the view controller-based status bar appearance is set to YES default and the navigation controller is presented modally I created a test project from scratch following these steps : .. . .. . 1 .",
"I am using swift to make an IOS application .",
"I think you need .. . .. . UIToolbar toolbar UIToolbar appearance .. . .. . toolbar setBackgroundImage : UIImage imageNamed : @ toolbarLandscapePhone forToolbarPosition : UIToolbarPositionBottom barMetrics : UIBarMetricsLandscapePhone .. . .. . You can simple to setBarMetrics to UIBarMetricsLandscapePhone",
"This issue isn t reproducible when using new beta iOS SDK so seems like this bug was fixed and you don t have to worry about it anymore .",
"Use two different images for portrait UIBarMetricsDefault and landscape UIBarMetricsCompact .",
"So I did a search and found this https : developer.apple.com library prerelease ios documentation UIKit Reference UIBarPositioning Protocol index.html apple ref c tdef UIBarPosition documentation .",
"I use the following code in Objective-C to do that : .. . .. . Now when I rewrote the code in swift it looks like this : .. . .. . And this showed the errors that Use of unresolved type UIBarMetricsDefault and Use of unresolved type UIToolbarPositionAny .",
"It only changes if I use the toolbar from a UINavigationController .",
"I would like to use UIAppearance so manually adjusting the height of the bar won t work .",
"So your code should look like this : .. . .. . I recommend you look at the Introduction to Swift document on http : developer.apple.com for more info on how to write use enums .",
"The problem is the navigation bar s image sits below the status bar .",
"Navigation bar sits below status bar http : i.stack.imgur.com VooyE.png .. . .. . I had this previously working by adding a subview to the navigation bar but it seems stupid to do that when I only want an image .",
"I subclassed UINavigationController to deliver this behaviour for me .",
"From reading the docs the UIBarPositioning.TopAttached enum should allow this .",
"The code is below .",
"Thanks for the help .",
"I have a simple storyboard with a table view inside a navigation view controller that pushes from the table view to another view controller that has a full screen image view .",
"The table view has a prompt text in it s navigation bar .",
"When I tap on the table view cell in the table view I receive the warning below .",
"I m not customizing the back button at all .",
"I created a sample project showing the issue .",
"https : github.com stevemoser UIBarButtonItemCustomizationWarningExampleProject .. . .. . Anyone have an idea why I m receiving this warning",
"I ve tried your code in a lot of combinations : Xcode 5.0.2 beta one iPhone 5 iPhone 5s and various Simulators .",
"Excellent .",
"I ll award the bounty in the 22 hours .",
"Glad to help",
"How can I solve this warning",
"enter image description here http : i.stack.imgur.com ECxNC.png",
"But what you really want is",
"Technically you ll also want to cast the item in the array as a UIImage since objects in NSArray are id : UIImage image UIImage self background NSNumber numberWithInteger : metrics",
"@richarddas A cast there would serve no purpose .",
"You try to pass NSNumber as a index to your array but you should pass int instead : .. . .. . I assume backgroundImages is array .",
"You can do something like that :",
"In this case the navigation controller does not need to be presented modally to display the wrong image .",
"Create a new project with the Master-Detail Application template .",
"2 .",
"Open Main.storyboard and add a Navigation Controller to it .",
"Remove its root view controller and connect the Master View Controller with a modal segue .",
"Then connect the Detail View Controller as its root view controller .",
"You should end up with something like this : .. . .. .",
"enter image description here http : i.stack.imgur.com Gj1Xz.png .. . .. . 3 .",
"I used a category on UIImage to create the images from solid colors .",
"- BOOL application : UIApplication application didFinishLaunchingWithOptions : NSDictionary launchOptions .. . Override point for customization after application launch .",
"Run the app .",
"The Master view controller displays the right navigation bar background images for portrait and landscape orientations : .. . .. .",
"enter image description here http : i.stack.imgur.com UecAK.png .. . .. .",
"enter image description here http : i.stack.imgur.com y1CNn.png .. . .. . 5 .",
"Now present the Detail view controller modally .",
"To do so tap on the Add button and then select the newly created row .",
"The Detail view controller displays the right navigation bar background-image .",
"6 .",
"Rotate the interface .",
"The Detail view controller will not change the navigation bar background-image wrong : .. . .. .",
"enter image description here http : i.stack.imgur.com XZoTQ.png .. . .. . 7 .",
"Rotate the interface back to its original orientation .",
"The Detail view controller will-change the navigation bar background-image wrong : .. . .. .",
"enter image description here http : i.stack.imgur.com GsPjU.png .. . .. . Has anyone else struggled with this",
"In MasterViewController add this to avoid wrong background-image when detailViewController is dismissed .",
"+1 .",
"Now when the Detail view controller is rotated the right navigation bar background-image is displayed .",
"However when the Detail view controller is dismissed after at least one rotation the Master view controller displays the wrong navigation bar background-image until the interface is rotated again .",
"Does the same happen to you",
"Yes It happened to me too please see the edit .",
"Thanks for sharing your knowledge with me .",
"This fixes the issue if the status bar is not initially hidden .",
"I m accepting your answer although it s more a hacky workaround for a nasty bug than a clean solution .",
"Yes there are problems when status bar is initially hidden more work need to be done to fix all issues .",
"I would prefer it happen automatically but if there is something I can do during rotation that would also be ok .",
"Yes I am setting the background-image for UIBarMetricsLandscapePhone but the bar is not changing when I rotate it .",
"I have a UIToolBar in my application and I need to change its background .",
"According to the documentation I changed the code like this : .. . .. . But it still shows the same error .",
"Anyone got any idea what is wrong here",
"Enums are done a little differently in Swift .",
"For example instead of saying : UIBarMetricsDefault you say .Default .",
"Exactly. . You said it. . : D"
]
} | {
"confidence": [
57.82661437988281,
46.925682067871094,
26.092262268066406,
25.975894927978516,
21.364784240722656,
16.432846069335938,
12.049238204956055
],
"content": [
"Question : Is there anyway to have the UIBarMetrics of a custom UIToolbar change when the device is rotated I would prefer it happen automatically but if there is something I can do during rotation that would also be ok . I would like to use UIAppearance so manually adjusting the height of the bar won t work . .. . Answer : I think you need .. . .. . UIToolbar toolbar UIToolbar appearance .. . .. . toolbar setBackgroundImage : UIImage imageNamed : @ toolbarLandscapePhone forToolbarPosition : UIToolbarPositionBottom barMetrics : UIBarMetricsLandscapePhone .. . .. . You can simple to setBarMetrics to UIBarMetricsLandscapePhone Comment : Yes I am setting the background-image for UIBarMetricsLandscapePhone but the bar is not changing when I rotate it . It only changes if I use the toolbar from a UINavigationController . The UINavigationController must be doing something with the UIBarMetrics that is not happening automatically with a stand-alone toolbar .",
"Question : How can I solve this warning enter image description here http : i.stack.imgur.com ECxNC.png .. . Answer : You try to pass NSNumber as a index to your array but you should pass int instead : .. . .. . I assume backgroundImages is array . BarMetrics is an UIBarMetrics type you cannot pass it as an int . You can do something like that :",
"Question : I ran into this issue in iOS 8 where the wrong background-image for the navigation bar is displayed in any of these situations : .. . .. . the view controller-based status bar appearance is set to YES default and the navigation controller is presented modally . the view controller-based status bar appearance is set to NO and the status bar is initially hidden . In this case the navigation controller does not need to be presented modally to display the wrong image . To isolate the problem where the view controller-based status bar appearance is set to YES default and the navigation controller is presented modally I created a test project from scratch following these steps : .. . .. . 1 . Create a new project with the Master-Detail Application template . 2 . Open Main.storyboard and add a Navigation Controller to it . Remove its root view controller and connect the Master View Controller with a modal segue . Then connect the Detail View Controller as its root view controller . You should end up with something like this : .. . .. . enter image description here http : i.stack.imgur.com Gj1Xz.png .. . .. . 3 . Customise the navigation bar background via the appearance proxy . Use two different images for portrait UIBarMetricsDefault and landscape UIBarMetricsCompact . I used a category on UIImage to create the images from solid colors . - BOOL application : UIApplication application didFinishLaunchingWithOptions : NSDictionary launchOptions .. . Override point for customization after application launch . UINavigationBar appearance setBackgroundImage : UIImage imageWithColor : UIColor redColor forBarMetrics : UIBarMetricsDefault .. . UINavigationBar appearance setBackgroundImage : UIImage imageWithColor : UIColor blueColor forBarMetrics : UIBarMetricsCompact .. . .. . return YES .. . .. . .. . .. . 4 . Run the app . The Master view controller displays the right navigation bar background images for portrait and landscape orientations : .. . .. . enter image description here http : i.stack.imgur.com UecAK.png .. . .. . enter image description here http : i.stack.imgur.com y1CNn.png .. . .. . 5 . Now present the Detail view controller modally . To do so tap on the Add button and then select the newly created row . The Detail view controller displays the right navigation bar background-image . 6 . Rotate the interface . The Detail view controller will not change the navigation bar background-image wrong : .. . .. . enter image description here http : i.stack.imgur.com XZoTQ.png .. . .. . 7 . Rotate the interface back to its original orientation . The Detail view controller will-change the navigation bar background-image wrong : .. . .. . enter image description here http : i.stack.imgur.com GsPjU.png .. . .. . Has anyone else struggled with this .. . Answer : Yes I have been struggling with this after I add View controller-based status bar appearance in target s plist file it is working again on iOS 8 remember to set it to NO . In MasterViewController add this to avoid wrong background-image when detailViewController is dismissed . It basically set the same appearance again . Comment : +1 . This almost solves the problem if you are willing to give up on the view controller-based status bar appearance . Now when the Detail view controller is rotated the right navigation bar background-image is displayed . However when the Detail view controller is dismissed after at least one rotation the Master view controller displays the wrong navigation bar background-image until the interface is rotated again . Does the same happen to you Comment : Yes It happened to me too please see the edit . Comment : Thanks for sharing your knowledge with me . This fixes the issue if the status bar is not initially hidden . I m accepting your answer although it s more a hacky workaround for a nasty bug than a clean solution . Comment : Yes there are problems when status bar is initially hidden more work need to be done to fix all issues .",
"Question : I have a simple storyboard with a table view inside a navigation view controller that pushes from the table view to another view controller that has a full screen image view . The table view has a prompt text in it s navigation bar . When I tap on the table view cell in the table view I receive the warning below . I m not customizing the back button at all . I created a sample project showing the issue . https : github.com stevemoser UIBarButtonItemCustomizationWarningExampleProject .. . .. . Anyone have an idea why I m receiving this warning UIBarButtonItem customization of back button background-image for UIBarMetricsDefaultPrompt or UIBarMetricsLandscapePhonePrompt is ignored .. . Answer : I ve tried your code in a lot of combinations : Xcode 5.0.2 beta one iPhone 5 iPhone 5s and various Simulators . This issue isn t reproducible when using new beta iOS SDK so seems like this bug was fixed and you don t have to worry about it anymore . Comment : Excellent . I m not currently using the iOS 7.1 betas but I trust you re correct . I ll award the bounty in the 22 hours . Comment : You have my word tested on both device with 7.1b3 iOS and Simulator . Glad to help",
"Question : How can I solve this warning enter image description here http : i.stack.imgur.com ECxNC.png .. . Answer : To get rid of the warning use .. . .. . or .. . .. . because metrics is an NSInteger and numberWithInt accepts int not NSInteger . But what you really want is Comment : Technically you ll also want to cast the item in the array as a UIImage since objects in NSArray are id : UIImage image UIImage self background NSNumber numberWithInteger : metrics Comment : @richarddas A cast there would serve no purpose .",
"Question : I am using swift to make an IOS application . I have a UIToolBar in my application and I need to change its background . I use the following code in Objective-C to do that : .. . .. . Now when I rewrote the code in swift it looks like this : .. . .. . And this showed the errors that Use of unresolved type UIBarMetricsDefault and Use of unresolved type UIToolbarPositionAny . So I did a search and found this https : developer.apple.com library prerelease ios documentation UIKit Reference UIBarPositioning Protocol index.html apple ref c tdef UIBarPosition documentation . According to the documentation I changed the code like this : .. . .. . But it still shows the same error . Anyone got any idea what is wrong here .. . Answer : Enums are done a little differently in Swift . For example instead of saying : UIBarMetricsDefault you say .Default . So your code should look like this : .. . .. . I recommend you look at the Introduction to Swift document on http : developer.apple.com for more info on how to write use enums . Comment : Exactly. . You said it. . : D",
"Question : null .. . Answer : The problem is the navigation bar s image sits below the status bar . Navigation bar sits below status bar http : i.stack.imgur.com VooyE.png .. . .. . I had this previously working by adding a subview to the navigation bar but it seems stupid to do that when I only want an image . I subclassed UINavigationController to deliver this behaviour for me . From reading the docs the UIBarPositioning.TopAttached enum should allow this . The code is below . Thanks for the help ."
]
} | [
"yes-answer-long",
"yes-answer-short"
] | sdk | UNK_RELATION |
geshi@markup@102 | geshi -- geshi is a free software library that allows syntax-highlighting of source code for several @placeholder and programming-languages . | {
"confidence": [
55.84048843383789,
55.033668518066406,
52.32159423828125,
50.17259979248047,
48.288108825683594,
46.97807693481445,
45.763275146484375,
45.57646942138672,
45.2256965637207,
45.13334655761719,
44.271873474121094,
43.51633834838867,
43.00059509277344,
42.55487060546875,
42.178707122802734,
42.178707122802734,
42.178707122802734,
42.035587310791016,
41.15256118774414,
41.035377502441406,
41.01616668701172,
40.802490234375,
40.802490234375,
40.802490234375,
40.802490234375,
40.718955993652344,
40.43553161621094,
39.63995361328125,
39.63995361328125,
39.63995361328125,
39.59315490722656,
39.55335235595703,
39.27299118041992,
39.27299118041992,
39.24490737915039,
39.20595169067383,
39.20595169067383,
38.66548156738281,
38.490196228027344,
38.186058044433594,
38.082366943359375,
37.95130157470703,
37.87965774536133,
37.45357131958008,
37.45357131958008,
37.45357131958008,
37.45357131958008,
37.45357131958008,
37.45357131958008,
37.15849685668945,
36.78876495361328,
36.73655700683594,
36.61217498779297,
36.3256950378418,
36.29103088378906,
36.29103088378906,
35.40612030029297,
35.40612030029297,
35.39543151855469,
34.89769744873047,
34.694976806640625,
34.694976806640625,
34.694976806640625,
34.54538345336914,
34.52925491333008,
34.498722076416016,
33.91173553466797,
33.48701477050781,
33.47962951660156,
33.36961364746094,
33.126243591308594,
33.126243591308594,
32.942596435546875,
32.942596435546875,
32.942596435546875,
32.942596435546875,
32.942596435546875,
32.942596435546875,
32.942596435546875,
32.942596435546875,
32.643550872802734,
32.52147674560547,
32.32801055908203,
32.32801055908203,
32.32801055908203,
31.934162139892578,
31.780057907104492,
31.780057907104492,
31.780057907104492,
31.612634658813477,
31.436691284179688,
31.215801239013672,
31.215120315551758,
31.16547203063965,
30.765865325927734,
30.3867244720459,
30.181781768798828,
30.181781768798828,
29.658893585205078
],
"content": [
"As you know there is a Syntax highlighter for PHP called GeSHi http : qbnz.com highlighter which supports a great number of Programming Languages or Code formats .",
"I am using GeSHi for Syntax Highlighting .",
"I use GeSHi http : qbnz.com highlighter for syntax-highlighting .",
"techpint.com programming http : www.techpint.com programming syntax-highlighting-using-geshi-filter-and-fckeditor-drupal",
"If your patch is to the files inside geshi submit the patch to the GeSHi Sourceforge group .",
"I have installed the Geshi extension to allow for syntax-highlighting on my MediaWiki-powered website .",
"Geshi parse the code server-side .",
"github.com cglosser geshi-1.0 blob master src geshi https : github.com cglosser geshi-1.0 blob master src geshi mathematica.php",
"GeShi is a syntax-highlighting tool used by projects and vendors like MediaWiki and pastebin.com respectively .",
"I am using GeSHi http : drupal.org project geshifilter for syntax-highlighting my code .",
"There is a rather complete answer in this post http : www.danielhanold.com story source-code-highlighting-using-fckeditor-and-geshi-for-drupal .",
"However GeShi does not natively support MediaWiki markup syntax .",
"WP-Syntax uses GeSHi to do the highlighting the WordPress Syntax Highlighter uses the Javascript SyntaxHighlighter http : code.google.com p syntaxhighlighter wiki Overview",
"If your patch is to the files not in geshi submit it to MediaWiki s bugzilla .",
"It is available at wordpress.org extend plugins wp-geshi-highlight http : wordpress.org extend plugins wp-geshi-highlight .",
"Not sure what that means but Geshi has supported R in the past though I note it is not listed on the Geshi website front page .",
"I m using WP-GeSHi https : wordpress.org plugins wp-geshi-highlight in WordPress and largely I m very happy with it .",
"Its simplicity and the fact that it is based on a well-established library GeSHi are the main arguments .",
"Now this works perfectly most of the time but for some languages certain pieces of code make GeSHi produce 50x errors .",
"I understand that you were looking to extend Markdown adding support for GeSHi syntax-highlighting .",
"Look at this - it may help ckeditor-and-geshi-filter http : peterpetrik.com blog ckeditor-and-geshi-filter",
"I use websvn with default on geshi colourise option .",
"So I thought of getting GeSHi work with Markdown .",
"Output is basically the span style that geshi outputs .",
"So I installed the GeSHi class in my project .",
"Now GeSHi filter is not working with FCKeditor .",
"I use de PHP Geshi for highlight the code via jQuery .",
"Which version of Drupal CKEditor GeSHi are you using",
"Make sure GeSHi filter is highest in the order .",
"Geshi can t do that since it run on server-side .",
"I have read of the Geshi http : qbnz.com highlighter toll that maybe could help me but since it s on php and not a java plugin i have no idea how can i integrate Geshi with my pdf creator IText .. . Is there any way to create my syntax highlight using IText and Geshi combined",
"Barring that you could run Geshi locally and pipe source code through it that would also beat an HTTP round trip .",
"However that should not affect CKeditor or GeSHi crashing on parsing code .",
"i found this php script which use GeSHi to color code .",
"With Thanks to Benny Baumann on the geshi-users list .. . .. . Strings in GeSHi 1.0.X have the limitation that start and end marker need to be the same .",
"Is it possible to instruct GeSHi http : qbnz.com highlighter to generate link-to single line .",
"GeSHi Sourceforge group redirects MediaWiki-related issues to MediaWiki .",
"I don t believe that SO is using geshi for code highlighting but regardless of whose highlighter it is it doesn t handle Lua sources nicely at all .",
"I suppose you could contribute the respective highlighting code to the geshi project if you like .",
"Does Geshi support the R programming language http : en.wikipedia.org wiki R 28programming language 29",
"I m not super attached to CKeditor or GeSHi although I ve generally been pleased with CKeditor so far and I like the fact that GeSHi does MATLAB formatting .",
"I m using blockcode and geshi module on my blog http : tintifax.dyndns.org to highlight syntax in my posts .",
"In a world of Geshi noone wants to look at black text code .",
"If I turn off geshi in websvn config there is no problems with large-files .",
"It is not clear if you are using Geshi separately are via the Mediawiki plugin .",
"If the former this should work if your Geshi is reasonably up-to-date .",
"DokuWiki does not use inline styles when rendering GeSHi .",
"to SYMBOLS back to KEYWORDS allowed geshi to apply said regex filters .",
"I am on the latest version of the GeSHi plug-in and the problem is still occurring .",
"Is it possible to indent a block of code in MediaWiki using SyntaxHighlight GeSHi http : www.mediawiki.org wiki Extension 3aSyntaxHighlight GeSHi",
"You can t do this with GeSHi because it doesn t offer editing capabilities it only syntax-highlights your markup .",
"enter image description here http : i.stack.imgur.com 9oD9g.jpg .. . .. . EDIT : .. . .. . So if you don t want to use another plugin then I ll tell you about the coding : .. . .. . First open wp-content plugins wp-geshi-highlight geshi geshi tsql.php in your text-editor .",
"Im trying to get GeSHi to work with markdown .",
"MediaWiki v1.19.23 24 with geshi 1.0.8.11 12 : .. . .. . Edit the Mediawiki : Geshi.css file to be : .. . .. . This will work for both the inline source lang XXX console none CODE source and for the normal divs source lang XXX CODE source .",
"I was hoping to use CKeditor with GeSHi but I m having some major difficulties .",
"If I then save GeSHi does its thing nicely and the snippet looks good .",
"I am storing my new Lua code in to a Dokuwiki system which uses the geshi highlighter written in php .",
"I suspect I might need to take a dig in the geshi code for an answer or avoid using multi-line strings .",
"Is it possible to use the GeShi syntax highlighter http : qbnz.com highlighter written with PHP with Zotonic CMS written with erlang",
"Is there any way to set width of PRE tag generated by GeSHi",
"As you know the MediaWiki extension lives in a directory named SyntaxHighlight GeSHi and contains a subdirectory geshi .",
"If your patch is to both hopefully the part of the patch to files inside geshi is independently useful .",
"If the patch to the geshi files is not independently useful you may have problems convincing either group to take it .",
"I use the GeSHi Syntax Highlighter Plugin http : qbnz.com highlighter index.php in my blog http : blog.cdleary.com and I find it works well .",
"My current regular expression to match a made up syntax cpp syntax bbcode is the following : .. . .. . You will notice I capture the language and the content how on earth would I connect it to the GeSHi code",
"I ve already installed the MediaWiki extension SyntaxHighlight GeSHi http : www.mediawiki.org wiki Extension 3aSyntaxHighlight GeSHi and verified that it works for other languages .",
"In my articles I put some code snippet using the preinstalled Code Highlighter GeSHi plugin .",
"the last link claims : Colorer-take5 supports more than hundred programming-languages scripts and markups .",
"It seems that it is possible to run GeSHi http : qbnz.com highlighter from Java : GeSHi4J https : github.com collegeman geshi4j it seems to be a wrapper that run the PHP library on the JVM .",
"I have currenly this code to parse just some basics bbcode and GeSHi code : .. . .. . If the user submits in textarea the following example : .. . .. . The HTML output is : .. . .. . ...with no p tags .",
"I know that Wikipedia supports Geshi however Geshi lacks Mathematica support http : stackoverflow.com q 17768345 45963 and I want to avoid messing with that as I haven t done regex for a while .",
"You can find some more details on the compatibility issues by visiting the FCKeditor module issue page filtered for geshi http : drupal.org project issues fckeditor text geshi status All .",
"I noticed however that it does not make best use of WordPress and GeSHi and that it was not actively developed anymore .",
"Edit I forgot that GeSHi is the highlighter associated with the Wordpress SyntaxHighlighter plugin http : wordpress.org extend plugins syntaxhighlighter .",
"Therefore you cannot write preg-replace .. . e geshi 2 1 .. . as you would need .",
"It was added to Geshi in version 1.0.8.5 as indicated from the CHANGES file snippet thereof : .. . .. . And there is no indication it was removed at a later date .",
"So it appears Geshi itself supports R but perhaps the Mediawiki plugin doesn t yet",
"@AmV Geshi does support R under moniker rsplus from version 1.0.8.5 .",
"You can add or overwrite the GeSHi styling in your conf userstyle.css create the file and make sure to refresh DokuWiki s cache .",
"However this topic explains why geshi won t work in textarea : Why isn t textarea an input type textarea",
"For example I would like the code container below to be aligned with the third-level list .. . .. . I have tried wrapping the GeSHi code container with colons http : en.wikipedia.org wiki Colon 28punctuation 29 using MediaWiki s standard indentation syntax http : www.mediawiki.org wiki Help 3aFormatting but that prevents SyntaxHighlight GeSHi from parsing the code correctly .",
"Now for GeSHi which I really wish to implement the syntax highlighter it requires the most simple code like this : .. . .. . Now this is the easy part but what I wish to do is allow my bbcode to call it .",
"Thanks my problem is not so much the output here which I suspect is using a similar highlighter but my Knowledge base as it uses geshi to display the code .",
"preg-replace seems to just be able to replace it with a string not an expression I am not sure how to use those two lines-of-code for GeSHi up there with the captured data. .",
".. . .. . code .. . .. . .. . And this will be stored on my MySQL DB in TEXT format so how can I set PHP to recognize code s and use the GeSHi class to parse it",
"enter image description here http : i.stack.imgur.com f8Bwu.png .. . .. . I have tried looking at Geshi options http : www.mediawiki.org wiki Extension 3aSyntaxHighlight GeSHi to no avail .",
"I m using Drupal 6.20 CKEditor 6.x-1.2 GeSHi 6.x-1.4 .",
"Under Input Formats - Full HTML GeSHi is enabled along with HTML Corrector Line Break Converter and URL filter .",
"Under Rearrange their order from top to bottom is URL HTML Corrector Line Break GeSHi .",
"And when I send text from my TextArea to GeSHi it generates a PRE tag highlighting my code but then it creates a long line instead wrapping like textarea does .",
"How ever I am having a problem with long string definitions in lua for example .. . .. . It is possible to correct this using the geshi lua.php file I have already taken a quick look at the documentation at http : qbnz.com highlighter geshi-doc.html and multiline comments are working fine it s just multiline strings which are not .",
"Beautify s approach to GeSHi code blocks differs from drm Markdown Geshi https : github.com drm Markdown Geshi in that fences are used .",
"Does the Mediawiki extension SyntaxHighlight GeSHi https : www.mediawiki.org wiki Extension : SyntaxHighlight GeSHi come with highlighting support for bash ash sh for example by coloring program arguments strings and numbers or emphasizing commands",
"I assume that s because server-side some change that CKeditor has made to the code snippet is making GeSHi crash or vice versa .",
"Syntax Highlighting is not working .",
"I haven t used GeSHi but you can probably set some CSS for your PRE tag with this",
"This table http : www.mediawiki.org wiki Extension 3aSyntaxHighlight GeSHi Supported languages Geshi for MediaWiki does not list R so I guess the answer is no but I just wanted to check .",
"What I d like is for GeSHi to completely ignore keywords that aren t whole words whether they are prefixed by @ or immediately surrounded by other letters numbers .",
"Just to clarify I would like to avoid wrapping my code with code code as I need proper syntax-highlighting ."
]
} | {
"confidence": [
74.39665985107422,
73.69617462158203,
70.52804565429688,
69.73445892333984,
68.64679718017578,
66.82489776611328,
64.22724914550781,
62.42144775390625,
62.39697265625,
62.07280731201172,
61.29930114746094,
61.262123107910156,
60.80377197265625,
60.395606994628906,
60.31812286376953,
60.297752380371094,
59.64686584472656,
59.579833984375,
58.86347961425781,
58.290618896484375
],
"content": [
"Question : As you know there is a Syntax highlighter for PHP called GeSHi http : qbnz.com highlighter which supports a great number of Programming Languages or Code formats . However I couldn t find such a library for Java which supports programming-languages that I need ADA ASP BNF Bash Brainfuck C C++ C CSS Cobol ColdFusion D Fortran Haskell HTML INI Config Java JavaScript Lisp Make Objective C PASCAL Perl PHP PLSQL Prolog Python Ruby Scheme SQL VB.NET Verilog VHDL Visual Basic XML . Do you know one or should I prefer inefficient way which is retrieving the highlighted code from a remote PHP server via http transaction Any ideas Thanks . Comment : Do you mean written in Java .. . Answer : Two related questions : .. . .. . http : stackoverflow.com questions 221570 what-code-highlighting-libs-are-there-for-java http : stackoverflow.com questions 864688 where-can-i-find-a-syntax-highlighting-library-for-java .. . .. . And one library I found : http : colorer.sourceforge.net Comment : All these have a small number of languages . : Thanks anyway . Comment : the last link claims : Colorer-take5 supports more than hundred programming-languages scripts and markups . I haven t checked though",
"Question : Which is the best module for Syntax Highligting in Drupal . I am using GeSHi http : drupal.org project geshifilter for syntax-highlighting my code . It was working fine then I installed a second module FCKeditor http : drupal.org project fckeditor . Now GeSHi filter is not working with FCKeditor . Do anyone have any idea why these modules are not working together . Thanks in advance . Comment : Thanks I have written my own code in fckeditor.config.js . techpint.com programming http : www.techpint.com programming syntax-highlighting-using-geshi-filter-and-fckeditor-drupal .. . Answer : There is a rather complete answer in this post http : www.danielhanold.com story source-code-highlighting-using-fckeditor-and-geshi-for-drupal . The post gives you some more details but in essence is a matter of adding to the fckeditor.config.js file the following line : .. . .. . which essentially tells FCKeditor to leave the blockcode with syntax-highlighting alone . You can find some more details on the compatibility issues by visiting the FCKeditor module issue page filtered for geshi http : drupal.org project issues fckeditor text geshi status All . Hope this helps Comment : Thanks but adding this line does nt work for me . I have to add code for specific language . techpint.com programming http : www.techpint.com programming syntax-highlighting-using-geshi-filter-and-fckeditor-drupal",
"Question : As you know there is a Syntax highlighter for PHP called GeSHi http : qbnz.com highlighter which supports a great number of Programming Languages or Code formats . However I couldn t find such a library for Java which supports programming-languages that I need ADA ASP BNF Bash Brainfuck C C++ C CSS Cobol ColdFusion D Fortran Haskell HTML INI Config Java JavaScript Lisp Make Objective C PASCAL Perl PHP PLSQL Prolog Python Ruby Scheme SQL VB.NET Verilog VHDL Visual Basic XML . Do you know one or should I prefer inefficient way which is retrieving the highlighted code from a remote PHP server via http transaction Any ideas Thanks . Comment : Do you mean written in Java .. . Answer : You could use Pygments http : pygments.org through Jython . Won t be as fast as a Java solution but much faster than interacting with a remote-server . Barring that you could run Geshi locally and pipe source code through it that would also beat an HTTP round trip . Comment : Nice solution . thanks .",
"Question : As you know there is a Syntax highlighter for PHP called GeSHi http : qbnz.com highlighter which supports a great number of Programming Languages or Code formats . However I couldn t find such a library for Java which supports programming-languages that I need ADA ASP BNF Bash Brainfuck C C++ C CSS Cobol ColdFusion D Fortran Haskell HTML INI Config Java JavaScript Lisp Make Objective C PASCAL Perl PHP PLSQL Prolog Python Ruby Scheme SQL VB.NET Verilog VHDL Visual Basic XML . Do you know one or should I prefer inefficient way which is retrieving the highlighted code from a remote PHP server via http transaction Any ideas Thanks . Comment : Do you mean written in Java .. . Answer : jedit http : jedit.org is a text-editor with syntax-highlighting support for some 170+ languages via modes . It also allows you to specify your own syntaxes . You can use the StandaloneTextArea component in your own application as follows : .. . .. . Extract source eg : jedit4.3source.tar.bz2 to d : source jedit .. . Use ant to copy all the textarea files to . . textarea eg : .. . .. . D : Source jedit jEdit ant prepare-textArea .. . .. . However it misses the file BufferUndoListener.java . Copy this manually by executing .. . .. . D : Source jedit jEdit copy org gjt sp jedit buffer BufferUndoListener.java . . textarea src org gjt sp jedit buffer .. . .. . In Eclipse create a Java Project from existing source in the directory D : Source jedit textarea .. . .. . Navigate to org.gjt.sp.jedit.textarea.StandaloneTextArea.java .. . Change the line .. . .. . .. . mode.setProperty file modes xml.xml .. . .. . .. . to .. . .. . .. . mode.setProperty file src modes xml.xml .. . .. . .. . Run . Copy and paste an XML into the editor and see the syntax-highlighting is working . Comment : that is a nice idea . thanks .",
"Question : As you know there is a Syntax highlighter for PHP called GeSHi http : qbnz.com highlighter which supports a great number of Programming Languages or Code formats . However I couldn t find such a library for Java which supports programming-languages that I need ADA ASP BNF Bash Brainfuck C C++ C CSS Cobol ColdFusion D Fortran Haskell HTML INI Config Java JavaScript Lisp Make Objective C PASCAL Perl PHP PLSQL Prolog Python Ruby Scheme SQL VB.NET Verilog VHDL Visual Basic XML . Do you know one or should I prefer inefficient way which is retrieving the highlighted code from a remote PHP server via http transaction Any ideas Thanks . Comment : Do you mean written in Java .. . Answer : It seems that it is possible to run GeSHi http : qbnz.com highlighter from Java : GeSHi4J https : github.com collegeman geshi4j it seems to be a wrapper that run the PHP library on the JVM .",
"Question : Is it possible to indent a block of code in MediaWiki using SyntaxHighlight GeSHi http : www.mediawiki.org wiki Extension 3aSyntaxHighlight GeSHi For example I would like the code container below to be aligned with the third-level list .. . .. . I have tried wrapping the GeSHi code container with colons http : en.wikipedia.org wiki Colon 28punctuation 29 using MediaWiki s standard indentation syntax http : www.mediawiki.org wiki Help 3aFormatting but that prevents SyntaxHighlight GeSHi from parsing the code correctly . Just to clarify I would like to avoid wrapping my code with code code as I need proper syntax-highlighting . Any suggestions .. . Answer : You can put the source inside a table and then indent the table :",
"Question : null .. . Answer : I am using IText to create a pdf file with source code from many files java xml php.. . from any project . But i want the code on my pdf to have color . But not just any color i want to do syntax highlight just like in Sublime text 2 where the methods are one color the variables are another and so goes on . I have read of the Geshi http : qbnz.com highlighter toll that maybe could help me but since it s on php and not a java plugin i have no idea how can i integrate Geshi with my pdf creator IText .. . Is there any way to create my syntax highlight using IText and Geshi combined Comment : This may be related to the following SO questions : stackoverflow.com questions 1853419 syntax-highlighter-for-java http : stackoverflow.com questions 1853419 syntax-highlighter-for-java stackoverflow.com questions 221570 http : stackoverflow.com questions 221570 what-code-highlighting-libs-are-there-for-java stackoverflow.com questions 864688 http : stackoverflow.com questions 864688 where-can-i-find-a-syntax-highlighting-library-for-java",
"Question : I d like to syntax highlight Mathematica code on a MediaWiki site . I ve already installed the MediaWiki extension SyntaxHighlight GeSHi http : www.mediawiki.org wiki Extension 3aSyntaxHighlight GeSHi and verified that it works for other languages . I tried simply putting a Mathematica langauge data file mathematica.php https : github.com MathCraft geshi-mathematica-language-file blob master mathematica.php into MediaWiki s extension path wiki extensions SyntaxHighlight GeSHi geshi however it didn t correctly highlight a Mathematica code block such as : .. . .. . Any ideas .. . Answer : I do not see Mathematica listed as a supported language at http : qbnz.com highlighter so I suppose GeSHi simply doesn t know it . I suppose you could contribute the respective highlighting code to the geshi project if you like .",
"Question : As you know there is a Syntax highlighter for PHP called GeSHi http : qbnz.com highlighter which supports a great number of Programming Languages or Code formats . However I couldn t find such a library for Java which supports programming-languages that I need ADA ASP BNF Bash Brainfuck C C++ C CSS Cobol ColdFusion D Fortran Haskell HTML INI Config Java JavaScript Lisp Make Objective C PASCAL Perl PHP PLSQL Prolog Python Ruby Scheme SQL VB.NET Verilog VHDL Visual Basic XML . Do you know one or should I prefer inefficient way which is retrieving the highlighted code from a remote PHP server via http transaction Any ideas Thanks . Comment : Do you mean written in Java .. . Answer : Have a look at JHighlighter https : jhighlight.dev.java.net or jEdit Syntax Package http : syntax.jedit.org . All mentioned languages aren t supported out of the box . However you have the sources so I guess it should be possible to add language support . Not a direct answer but if client-side syntax-highlighting is an option the SyntaxHighlighter http : alexgorbatchev.com library from Alex Gorbatchev is an awesome javascript library supports lots of languages http : www.undermyhat.org blog 2009 09 list-of-brushes-syntaxhighligher and is highly extensible http : alexgorbatchev.com wiki SyntaxHighlighter 3ABrushes 3ACustom . Comment : Nice links . Thanks . Comment : I prefer the SyntaxHighlighter - works great keeps the work out of server lowers the traffic leaves the code intact for search engines . Comment : @Ondra I totally agree with you . Actually SyntaxHighlighter is so great that it became a kind of de facto standard on the web nowadays .",
"Question : null .. . Answer : I use GeSHi http : qbnz.com highlighter for syntax-highlighting . Now this works perfectly most of the time but for some languages certain pieces of code make GeSHi produce 50x errors . For example.. . copy this code : http : pastebin.com NLQX05R5 .. . .. . Go to http : qbnz.com highlighter demo.php and select PHP as the language . That demo will also produce a 500 error . If you set light lighting to text or certain other languages it will just go ahead and do it s thing . But PHP spawns a nasty error . LUA also has a lot of issues with many valid LUA scripts . My Question : .. . .. . Is there a way we can catch these errors and IF such an error is found that it re-tries the script but without that certain syntax language and just set text as default . Right now the geshi.php file just shows a 50x error and I want to prevent this from happening . Comment : Anyone Any help would be appreciated .",
"Question : Which is the best module for Syntax Highligting in Drupal . I am using GeSHi http : drupal.org project geshifilter for syntax-highlighting my code . It was working fine then I installed a second module FCKeditor http : drupal.org project fckeditor . Now GeSHi filter is not working with FCKeditor . Do anyone have any idea why these modules are not working together . Thanks in advance . Comment : Thanks I have written my own code in fckeditor.config.js . techpint.com programming http : www.techpint.com programming syntax-highlighting-using-geshi-filter-and-fckeditor-drupal .. . Answer : My suggestion for a code highlighter on a Drupal site would be a purely client-side one one that doesn t involve any hooks and any potential namespace conflicts . The one I ve the most luck with in various environments but never tried alongside FCKEditor is google-code-prettify http : code.google.com p google-code-prettify . If it doesn t work alongside FCKEditor you may want to have a look at the comments on getting it working with Wordpress since I think some of those problems may be related to FCKEditor . Comment : Hmm it s CKEditor now .",
"Question : As you know there is a Syntax highlighter for PHP called GeSHi http : qbnz.com highlighter which supports a great number of Programming Languages or Code formats . However I couldn t find such a library for Java which supports programming-languages that I need ADA ASP BNF Bash Brainfuck C C++ C CSS Cobol ColdFusion D Fortran Haskell HTML INI Config Java JavaScript Lisp Make Objective C PASCAL Perl PHP PLSQL Prolog Python Ruby Scheme SQL VB.NET Verilog VHDL Visual Basic XML . Do you know one or should I prefer inefficient way which is retrieving the highlighted code from a remote PHP server via http transaction Any ideas Thanks . Comment : Do you mean written in Java .. . Answer : A couple of highlighters that work really well are : .. . .. . highlight.js http : softwaremaniacs.org soft highlight en .. . prettify.js https : code.google.com p google-code-prettify .. . .. . Both are easy to implement client-side and support a wide variety of languages . They also have a handsome range of css themes that make the code look like it does in your favorite editor .",
"Question : I had made a personal note software in PHP so I can store and organize my notes and wished for a nice simple format to write them in . I had done it in Markdown but found it was a little confusing and there was no simple syntax-highlighting so I did bbcode before and wished to implement that . Now for GeSHi which I really wish to implement the syntax highlighter it requires the most simple code like this : .. . .. . Now this is the easy part but what I wish to do is allow my bbcode to call it . My current regular expression to match a made up syntax cpp syntax bbcode is the following : .. . .. . You will notice I capture the language and the content how on earth would I connect it to the GeSHi code preg-replace seems to just be able to replace it with a string not an expression I am not sure how to use those two lines-of-code for GeSHi up there with the captured data. . I really am excited about this project and wish to overcome this . .. . Answer : Use preg-match :",
"Question : As you know there is a Syntax highlighter for PHP called GeSHi http : qbnz.com highlighter which supports a great number of Programming Languages or Code formats . However I couldn t find such a library for Java which supports programming-languages that I need ADA ASP BNF Bash Brainfuck C C++ C CSS Cobol ColdFusion D Fortran Haskell HTML INI Config Java JavaScript Lisp Make Objective C PASCAL Perl PHP PLSQL Prolog Python Ruby Scheme SQL VB.NET Verilog VHDL Visual Basic XML . Do you know one or should I prefer inefficient way which is retrieving the highlighted code from a remote PHP server via http transaction Any ideas Thanks . Comment : Do you mean written in Java .. . Answer : There is a port of prettify.js https : code.google.com p google-code-prettify for Java : java-prettify https : code.google.com p java-prettify . It can be used to produce HTML computed in Java as I discussed here : Use the java-prettify parser to create HTML https : groups.google.com forum topic java-prettify AANTzgRe81k",
"Question : Which is the best module for Syntax Highligting in Drupal . I am using GeSHi http : drupal.org project geshifilter for syntax-highlighting my code . It was working fine then I installed a second module FCKeditor http : drupal.org project fckeditor . Now GeSHi filter is not working with FCKeditor . Do anyone have any idea why these modules are not working together . Thanks in advance . Comment : Thanks I have written my own code in fckeditor.config.js . techpint.com programming http : www.techpint.com programming syntax-highlighting-using-geshi-filter-and-fckeditor-drupal .. . Answer : If I were you I would switch to using the WYSIWYG module http : drupal.org project wysiwyg with TinyMCE http : tinymce.moxiecode.com amd use the Syntax Highlighter module http : drupal.org project syntaxhighlighter for the syntax-highlighting . Follow these instructions for integrating the SyntaxHighlighter with TinyMCE http : www.cliffordmeece.com content drupal-wysiwyg-tinymce-syntaxhighlighter - you can get a button that gives you a popup window from where you can select the language php MySQL Bash etc etc and enter your code . You should probably also install my wysiwyg preelementfix module http : drupal.org project wysiwyg 5Fpreelementfix which ensures that characters are not escaped or double-escaped . That is what I do on the KirkDesigns blog http : www.kirkdesigns.co.uk blog and it seems to work pretty well . Failing that I also wrote some instructions for using Geshi and FCKEditor together in Drupal http : www.kirkdesigns.co.uk howto-use-geshifilter-fckeditor-drupal Comment : Point Noted Thanks .",
"Question : I had made a personal note software in PHP so I can store and organize my notes and wished for a nice simple format to write them in . I had done it in Markdown but found it was a little confusing and there was no simple syntax-highlighting so I did bbcode before and wished to implement that . Now for GeSHi which I really wish to implement the syntax highlighter it requires the most simple code like this : .. . .. . Now this is the easy part but what I wish to do is allow my bbcode to call it . My current regular expression to match a made up syntax cpp syntax bbcode is the following : .. . .. . You will notice I capture the language and the content how on earth would I connect it to the GeSHi code preg-replace seems to just be able to replace it with a string not an expression I am not sure how to use those two lines-of-code for GeSHi up there with the captured data. . I really am excited about this project and wish to overcome this . .. . Answer : It looks to me like you already got the regex right . Your problem lies in the invocation so I suggest making a wrapper function : .. . .. . Now this would normally suffice but the source code is likely to contain single or dobule quotes itself . Therefore you cannot write preg-replace .. . e geshi 2 1 .. . as you would need . Note that 1 and 2 need quotes because preg-replace just substitutes the 1 2 placeholders but this needs to be valid php inline code . That s why you need to use preg-replace-callback to avoid escaping issues in the e exec replacement code . So for example : .. . .. . And I d make a second wrapper but you can combine it with the original code : Comment : This answers my original problem Thank you I was writing this really late couldn t find any solution this makes sense : P",
"Question : null .. . Answer : I have installed the Geshi extension to allow for syntax-highlighting on my MediaWiki-powered website . I am trying to figure out how to make syntax-highlighting easily copyable . Currently when I try to copy code-formatting the line numbers get copied alongside the code : .. . .. . enter image description here http : i.stack.imgur.com f8Bwu.png .. . .. . I have tried looking at Geshi options http : www.mediawiki.org wiki Extension 3aSyntaxHighlight GeSHi to no avail . Comment : Have you considered turning off the line numbers Comment : That works but I want line numbers too .. . Comment : What HTML could achieve that As long it s a numbered list with ol this sounds hard to fix . CSS Tables",
"Question : I am using GeSHi for Syntax Highlighting . Is there any way to set width of PRE tag generated by GeSHi What I mean is I have a textarea with the width of 500px and therefore as usual text is word-wrapped for long lines . And when I send text from my TextArea to GeSHi it generates a PRE tag highlighting my code but then it creates a long line instead wrapping like textarea does . Something like this .. . .. . In below textarea long lines are word-wrapped like .. . .. . A PRE syntax highlighted code generated by GeSHi has output something like this .. . .. . I want to limit this PRE tag width to 500px and word-wrap just like textarea . Is there anything possible Comment : possible duplicate of How do I wrap text in a pre tag http : stackoverflow.com questions 248011 how-do-i-wrap-text-in-a-pre-tag .. . Answer : I haven t used GeSHi but you can probably set some CSS for your PRE tag with this",
"Question : I had made a personal note software in PHP so I can store and organize my notes and wished for a nice simple format to write them in . I had done it in Markdown but found it was a little confusing and there was no simple syntax-highlighting so I did bbcode before and wished to implement that . Now for GeSHi which I really wish to implement the syntax highlighter it requires the most simple code like this : .. . .. . Now this is the easy part but what I wish to do is allow my bbcode to call it . My current regular expression to match a made up syntax cpp syntax bbcode is the following : .. . .. . You will notice I capture the language and the content how on earth would I connect it to the GeSHi code preg-replace seems to just be able to replace it with a string not an expression I am not sure how to use those two lines-of-code for GeSHi up there with the captured data. . I really am excited about this project and wish to overcome this . .. . Answer : I wrote this class a while back the reason for the class was to allow easy customization parsing . Maybe a little overkill but works well and I needed it overkill for my application . The usage is pretty simple : .. . .. . ---- OR ---- .. . .. . I had to do some chopping from other custom items I had but pending no syntax errors from the chopping it should work . Feel free to use it . Comment : I wish I could +10 I will definitely pick at and use this class . Thank you . Comment : One of the regexes I had to replace the delimiters from to and it works perfectly : Comment : Which one I will fix it so others do not get the same confusion . Comment : Excuse the bad format but this function : private function preFilter content return preg-replace-callback s syntax . . syntax s siU array this substitute content Otherwise PHP will complain a pile of unknown modifiers such as y b etc . Comment : Updated thanks .",
"Question : I am storing my new Lua code in to a Dokuwiki system which uses the geshi highlighter written in php . How ever I am having a problem with long string definitions in lua for example .. . .. . It is possible to correct this using the geshi lua.php file I have already taken a quick look at the documentation at http : qbnz.com highlighter geshi-doc.html and multiline comments are working fine it s just multiline strings which are not . Comment : I normally go change Lua code fragments from being Markdown code indent four spaces to being pre tagged because of the wacky highlighting that Lua gets . But for this question it makes sense to leave the strange highlight intact as emphasis . - Comment : Thanks my problem is not so much the output here which I suspect is using a similar highlighter but my Knowledge base as it uses geshi to display the code . I suspect I might need to take a dig in the geshi code for an answer or avoid using multi-line strings . Comment : I ve upvoted both Q and A for your efforts... . I don t believe that SO is using geshi for code highlighting but regardless of whose highlighter it is it doesn t handle Lua sources nicely at all . I did fuss a primitive Lua mode into the weird and ancient emacs clone epsilon from www.luguru.com I use on Windows mostly so it would get indentation closer to right . I certainly heartily endorse fixing the highlighter rather than avoiding .. . strings . Comment : @RBerteig - Thanks for the votes I will take a look at epsilon on www.lugaru.com and see what I make of it . I normally use PsPad for editing on windows . I ll remember to use the pre tip here if I need to post any code . Comment : I started using epsilon on DOS before Windows 3.0 was shipping and have kept paying them for upgrades ever since . I have to admire a company that is that stubbornly still in business . And they hired Duane Bibby to illustrate their manual after seeing his work on the TeX Book even though you could easily argue that an editor manual didn t need artwork... . .. . Answer : With Thanks to Benny Baumann on the geshi-users list .. . .. . Strings in GeSHi 1.0.X have the limitation that start and end marker need to be the same . If this constraint is not fulfilled you have to resort to highlighting the strings using COMMENT REGEXP . To correctly colour code the long strings In lua.php In the language data array add .. . .. . In the style sheet add .. . .. . to change only second comment type to look like a string when used on a Lua source ."
]
} | [
"yes-answer-long",
"yes-answer-short"
] | markup | UNK_RELATION |
dci@dci@38 | dci -- data context interactions dci @placeholder was invented by professor trygve reenskaug to solve a specific problem in oo code it s very hard to read oo code for a specific use-case since it is often spread across many different classes and the control-flow between the methods of these classes depend on which objects are instantiated to which variables.with dci reenskaug proposed a new way of coding for use-cases where each use-case is implemented as a . | {
"confidence": [
92.09062194824219,
88.4377670288086,
80.75074005126953,
80.5155029296875,
78.51681518554688,
78.11786651611328,
77.93321990966797,
76.43246459960938,
74.9156265258789,
74.28886413574219,
72.25428771972656,
72.2061538696289,
70.42247772216797,
67.90203857421875,
67.90203857421875,
66.86038208007812,
66.57811737060547,
66.28435516357422,
65.20059204101562,
64.30367279052734,
63.889225006103516,
63.84927749633789,
63.74109649658203,
63.635440826416016,
62.525936126708984,
61.83943557739258,
61.54747009277344,
61.363975524902344,
61.198551177978516,
60.98123550415039,
60.353492736816406,
58.748409271240234,
57.978759765625,
57.978759765625,
57.849876403808594,
57.8015251159668,
57.398948669433594,
56.98672103881836,
56.83720779418945,
56.82497024536133,
56.5301628112793,
56.50943374633789,
56.443180084228516,
56.4239387512207,
56.22719955444336,
56.09492492675781,
56.040218353271484,
55.974491119384766,
55.93996047973633,
55.39035415649414,
55.384498596191406,
55.33281326293945,
55.33281326293945,
54.75178909301758,
54.698265075683594,
54.539127349853516,
54.44393539428711,
54.44393539428711,
54.44393539428711,
54.43669891357422,
54.04055404663086,
53.95994567871094,
53.89445877075195,
53.339046478271484,
52.78414535522461,
52.78414535522461,
52.53727722167969,
52.35005187988281,
52.33095932006836,
52.33095932006836,
52.33095932006836,
52.21697998046875,
51.473628997802734,
51.43147659301758,
51.29734420776367,
51.1719856262207,
50.559391021728516,
50.52894973754883,
50.36331558227539,
50.36331558227539,
50.36331558227539,
50.36331558227539,
50.36331558227539,
50.36331558227539,
50.36331558227539,
50.36331558227539,
50.35215377807617,
50.279598236083984,
50.24088668823242,
50.17885208129883,
50.1075325012207,
49.91701889038086,
49.655818939208984,
49.655818939208984,
49.655818939208984,
49.56898880004883,
49.387603759765625,
49.371337890625,
49.208778381347656,
49.208778381347656
],
"content": [
"It s managed by Trygve Reenskaug and James O . Coplien the creators of DCI and I .",
"Trygve makes a presentation of DCI in http : oredev.org videos dci--re-thinking-the-foundations-of-oo .. . .. . DCI has been created to solve a problem in object orientation : it s too difficult to review OO code .",
"You can use MVC and DCI simultaneously which is no coincidence since Trygve Renskaug is the father of both MVC and DCI .",
"DCI is about objects and not classes .",
"What DCI proposes is that code for a given use-case is separated out from the classes and put into a different artifact called context .",
"DDD is Domain-Driven Design it is a methodology that include ubiquitous language root entity value object and aggregations. . .. . .. . DCI : Data Context Interactions is a programming paradigm invented by Trygve Reenskaug .",
"What are the differences between DCI and use-case slices",
"any application that can be implemented with OO can be implemented with DCI .",
"I recently saw the following presentation on DCI by Trygve Reenskaug : https : vimeo.com 43536416 It kinda blew my mind .",
"DCI is OO but enforces constraints to how to do OO .",
"Long story overly short though : DCI fits within a Bounded Context where you d then have a DCI context per use-case .",
"The whole point of DCI is to make OO code more readable",
"DCI is not a pattern but a paradigm on the level where you find OO and FP",
"Most DCI examples omit the restricted OO parts for brevity .",
"Question : What languages are pure OO languages from the perspective of DCI",
"For my eventual DCI use-case I just dropped the concept of roles .",
"Most examples of a DCI Context are implemented as a Command pattern .",
"The code for one use-case in OO is typicall spread out between lots of classes .",
"It seems that DCI and use-case slices are based on the same or at least similar idea .",
"So the best way to do DCI with angulusJS is to do DCI the JS way which is pretty close to how DCI is formulated in the first place .",
"DCI promotes dumb data .",
"I ve been playing around with DCI after following along with The Right Way to Code DCI in Ruby http : mikepackdev.com blog posts 24-the-right-way-to-code-dci-in-ruby .",
"DCI deals with a Context uses Roles as identifiers to map a mental model use-case to code and requires no wrappers to be used methods are bound directly to the object at runtime so this has nothing to do with DCI really .",
"There only very little in common between command and DCI .",
"There s a contrast between Command and DCI .",
"In DCI the behaviour of an already instantiated object is extended with role methods .",
"In DCI this is done at M0 code basically by means of OO techniques not aspects as far as I understand .",
"What is DCI",
"So you say that DCI is architecture reflecting use cases and use-case slices are a modeling technique for use cases unrelated to architecture right",
"Also there is an effort to port the canonical DDD sample to DCI at the DCI github page .",
"For the people who are wondering whats DCI stands for. . .. . .. . DCI stands for Data Context Interaction",
"The concern of persisting data is in general ortogonal to DCI .",
"Does DCI work for that model at all",
"And DCI roles should be purely behaviour .",
"The source and destination are DCI roles .",
"In this artima article http : www.artima.com articles dci vision.html on DCI the author presents a way to get a DCI architecture in Scala which looks like what you are aiming for .",
"To the question about whether or not an context method can take arguments it s a bit philosophical but as far as I remember the last time I debatted it with Trygve Reenskaug we agreed that they could take arguments and I know that I ve implemented a few examples the moneytransfer at the DCI site http : fullOO.info included where they do .",
"DCI argues that you often have a fairly complex object graph but in any one use-case you often only want to work with a sub-graph .",
"Not DCI specifically but Googling for Rails service objects will give a taste of how DCI-like concepts can be applied .",
"A recent debate with a co-worker about different approaches to design and code the models in a Rails application brought me across DCI in the context of Rails http : andrzejonsoftware.blogspot.com 2011 02 dci-and-rails.html .",
"Thanks for elaborating the DCI stuff .",
"You can get more details from .. . .. . http : dimitri-christodoulou.blogspot.com search label DCI .. . .. . and source code here : .. . .. . https : github.com dimitrs DCI-NIDS",
"I ve considered a mixture between DCI and State patterns to solve this .",
"What are possibles designs for implementation of the DCI data contexts interactions architecture in different OOP languages",
"@JimRaden DCI is Dataq Context interaction and is a paradigm formulated firstly by the father of MVC Trygve Reenskauge .",
"It was created by Trygve Reenskaug as you note with several goals in mind .",
".. . Source : http : www.artima.com articles dci vision.html .. . .. . I m trying to understand the difference between a pure OO language and a non-pure one in terms of DCI .",
"I have implemented an experimental network protocol analyzer in C++ based on the DCI .",
"Take a look at either fulloo.info http : fulloo.info or the examples at github.com runefs Moby https : github.com runefs Moby or for how to use maroon to do DCI in Ruby and what DCI is runefs.com http : runefs.com What DCI is .",
"There s quite a few places where it seems that you ve not quite gotten what DCI is making it even harder to answer some of the questions in a DCI context .",
"The Qi4j Java framework comes with samples one of each DCI-Cargo is an implementation of the cargo application from the DDD book using DCI .",
"DCI is a paradigm and as such there s no angularJS way of doing it either the language support DCI or it doesn t .",
"DCI is just in there for reference that I might not only have a model but split it in the DCI way .",
"I m looking at this https : github.com vsavkin DCI-Sample example of using DCI in a Rails application .",
"@horsdal has some good examples on how close you can come to DCI in C However you can t do DCI in C .",
"But could you expand on the difference between dci and evented",
"DCI doesn t really concern itself with persistance .",
"DCI is outside that scope because it doesn t matter",
"Or it s a valid concern that is just not addressed by DCI",
"I have similar impression - I think Jacobson was trying to do DCI since beginning of the use cases but I think use cases are useful in a quite different way.. .",
"I m in different boat than some of those examples since I tend to use DCI one a lower level than the examples just as Guge mentions in a comment I m might very well use DCI in the persistence layer",
"That said I don t see much DCI in your example code .",
"I m thinking how and when a DCI context can be used in a Web application .",
"@Paulsm4 one of the goals of DCI is to make use-case implementations simple so your comment is self contradicting",
"The last part of the answer contradicts the goals of DCI .",
"This is not a constraint from DCI but a design choice for Marvin .",
"DCI is tough in Java but using Qi4J get s you very close .",
"That said it is border territory for DCI at present .",
"EDIT There s no simply answer to the question What is DCI DCI is a paradigm just like OOP is a paradigm .",
"AngularJS.org doesn t even mention the DCI acronym : Your search - site : angularjs.org dci - did not match any documents .",
"wrappers such as Facades are generally discouraged in DCI you can achieve the same result without the wrappers if the language in question supports DCI",
"I ve been trying to understand DCI http : www.infoq.com news 2009 05 dci-coplien-reenskau architecture by reading lean software architecture http : www.leansoftwarearchitecture.com .",
"In general testing an interaction in a DCI context should be fairly easy .",
"So my first question is is there a need for a DCI-context in those cases isn t plain MVC enough",
"DCI has a lot to say about data but not so much where it comes from or where it goes .",
"Focus on the use cases and don t worry about buzzwords like DCI State Patterns or any other other cool terminology .",
"@Hendy Irawan : DCI not only promotes dumb data it also promotes roles that can be assigned to these dumb data objects .",
"In general DCI data objects should consist of just the data plus very basic domain logic like basic validation logic .",
"@yagooar even including it at runtime wouldn t make it DCI .",
"If you wish to see a ruby DCI example implementation .",
"Changed the text so it doesn t mention DCI at all .",
"If it s not that s probably a sign that it s not really DCI .",
"I d mostly like to understand what is DCI .",
"I guess that this is precisely what DCI is trying to do .",
"I just added a link for DCI as a reference .",
"It s mostly with RUby examples but the DCI stuff is agnostic to that .",
"So being event-driven is orthogonal to DCI but I guess you are actually referring to asynchronous which is a very different thing",
"I guess you could even use DCI in your persistance layer in the sense that persisting data is a use-case that begins when the user selects File Save from the menu .",
"In Command you distribute the interaction between objects in DCI you centralize the interaction through rolemethods .",
"In DCI the roles are usually aware of the context and the context can act a repository for all the relavant roles .",
"DCI is concern with capturing in code which object send which message to what object .",
"DCI is a paradigm and just as you can build an application using any other paradigm with persistence execluding pure FP since persistence is a side effect so can you with DCI .",
"Persistance is always a valid concern but DCI is more of a paradigm than an architecture .",
"I ve just released a DCI library in C with generously commented examples .",
"Check it out any comments are welcome : .. . .. . https : github.com ciscoheat ivento-dci",
"What is the best description of Data Context and Interaction DCI http : www.gertrudandcope.com-a.googlepages.com thedciarchitecture to pitch it to an organization",
"To make this example more DCI like shouldn t the data be outside of ListService",
"Since DCI works in tandem with MVC I thought it wouldn t be too hard to make the API RESTful at the same time .",
"DCI is a paradigm and hence much more than a way to design an application .",
"That said the standard way of dealing with DCI in ruby is method injection ."
]
} | {
"confidence": [
173.3630828857422,
153.66485595703125,
144.84933471679688,
138.9102783203125,
129.97927856445312,
128.7711639404297,
128.35931396484375,
127.93777465820312,
122.03688049316406,
118.43344116210938,
118.18681335449219,
118.17393493652344,
116.78314971923828,
115.3884506225586,
111.60595703125,
109.79664611816406,
103.3834228515625,
100.9383773803711,
99.82095336914062,
94.32994079589844
],
"content": [
"Question : What is the best description of Data Context and Interaction DCI http : www.gertrudandcope.com-a.googlepages.com thedciarchitecture to pitch it to an organization It s created by Trygve Reenskaug http : folk.uio.no trygver the creator of the MVC-pattern http : en.wikipedia.org wiki Model-view-controller . Is it really the successor to MVC or just another pattern And what are its pros and cons Comment : +1 Good question .. . Answer : Trygve makes a presentation of DCI in http : oredev.org videos dci--re-thinking-the-foundations-of-oo .. . .. . DCI has been created to solve a problem in object orientation : it s too difficult to review OO code . The code for one use-case in OO is typicall spread out between lots of classes . To understand how the code works you must also know the relationships between objects in runtime . These relationships aren t set in code they depend on the situation . What DCI proposes is that code for a given use-case is separated out from the classes and put into a different artifact called context . Objects of different classes can enter into a relationship in this context and take part in interaction where they have different roles . The whole point of DCI is to make OO code more readable That s how I would pitch it . Comment : +1 for presentation link Comment : Yep +1 for the link . I was actually searching for it Comment : Nice answer wanted to add by bit that one of the roles is to ease change in business logic as context represents the actual business logic and interactions among DUMB model objects . So it would be easy to change the business logic if it is present at one place which will also reduce the amount of bugs introduced .",
"Question : DDD is Domain-Driven Design it is a methodology that include ubiquitous language root entity value object and aggregations. . .. . .. . DCI : Data Context Interactions is a programming paradigm invented by Trygve Reenskaug . how can I combine with them in a new system .. . Answer : This is a subject of on going discussion and something you ll probably find better answers to at the object-composition Google group where it has been discussed earlier . Also there is an effort to port the canonical DDD sample to DCI at the DCI github page . Long story overly short though : DCI fits within a Bounded Context where you d then have a DCI context per use-case . Comment : thanks here is a article about it : jivejdon.blogspot.com 2011 09 http : jivejdon.blogspot.com 2011 09 ddd-dci-and-domain-events-example.html Comment : DCI promotes dumb data . while DDD promotes methods on domain-model classes . so Comment : @Hendy Irawan : DCI not only promotes dumb data it also promotes roles that can be assigned to these dumb data objects . These roles implement the domain behavior . So the dumb data classes have next to no behavior but the objects have behavior .",
"Question : What is the best description of Data Context and Interaction DCI http : www.gertrudandcope.com-a.googlepages.com thedciarchitecture to pitch it to an organization It s created by Trygve Reenskaug http : folk.uio.no trygver the creator of the MVC-pattern http : en.wikipedia.org wiki Model-view-controller . Is it really the successor to MVC or just another pattern And what are its pros and cons Comment : +1 Good question .. . Answer : A good question and an often occurring question . The short answer is that it s a paradigm on it s own based upon the founding ideas of OO by Kay Dahl and others . It was created by Trygve Reenskaug as you note with several goals in mind . One of them being tha aim of making IO operations first class citizens of the program . not IO as in disk operations but all communication between two different objects . Another important goal of DCI is to split what the system does functionality behavior from what the system is data",
"Question : DDD is Domain-Driven Design it is a methodology that include ubiquitous language root entity value object and aggregations. . .. . .. . DCI : Data Context Interactions is a programming paradigm invented by Trygve Reenskaug . how can I combine with them in a new system .. . Answer : If you read through this https : msdn.microsoft.com en-us library jj554200.aspx I believe the DCI notion of a context would be synonymous with a process manager . Instead of the process manager calling methods on the aggregates it would apply roles to the aggregates and coordinate using those . A bounded context could have several process managers aka contexts . What do you think",
"Question : Most examples of a DCI Context are implemented as a Command pattern . When using Dependency Injection though it s useful to have the dependencies injected in the constructor and send the parameters into the executing method . Compare the Command pattern class : .. . .. . With the Dependency injected class : .. . .. . The last one seems a bit nicer but I ve never seen it implemented like this so I m curious if there are any things to consider . Comment : There only very little in common between command and DCI . DCI is not a pattern but a paradigm on the level where you find OO and FP Comment : Of course I just saw some similarities in the implementation not suggesting anything else . : Comment : The code you describe looks a lot like the use-case driven design described here http : www.cuttingedge.it blogs steven pivot entry.php id 91 . Just replace the name Command with SomeRole and CommandHandler with SomeContext . Comment : It does but I m a bit regretful that I mentioned DCI and a pattern together it leads to confusion . Also the answer where I commented about the problem with parameters in the Execute method has been deleted . .. . Answer : There s a contrast between Command and DCI . In Command you distribute the interaction between objects in DCI you centralize the interaction through rolemethods . In the MoneyTRansfer example the accounts will not have the ability to withdraw or deposit becasue they are simple data with no behavior . however in a context such as Transfer that behavior will exist for the roles . So when the source account role is bound to an account object the account object gets the withdraw behavior and the same is true for the destination account . In the command-pattern they have the behavior but the execution of the behavior is scripted in the command object and can be passed around . The entire interaction is not part of the command object but typically distributed between the participating objects . In Marvin a language build to support DCI as a result-of the realization that most modern languages only partly supports DCI you can only bind roles to objects in the constructor . How you call the constructor is of no concern to the context . This ensures that the binding is done once for all roles . Rebinding is then only possible by instantiation of another context . This is not a constraint from DCI but a design choice for Marvin . To the question about whether or not an context method can take arguments it s a bit philosophical but as far as I remember the last time I debatted it with Trygve Reenskaug we agreed that they could take arguments and I know that I ve implemented a few examples the moneytransfer at the DCI site http : fullOO.info included where they do .",
"Question : A recent debate with a co-worker about different approaches to design and code the models in a Rails application brought me across DCI in the context of Rails http : andrzejonsoftware.blogspot.com 2011 02 dci-and-rails.html . However I just can t seem to wrap my head around that entire concept even after going over this example application https : github.com anachronistic DCI-Rails-Example . Currently I tend to just go more or less by the book http : pragprog.com book rails3 agile-web-development-with-rails when writing a Rails app . So there are a few things I d like to ask -- .. . .. . What is DCI and what are its advantages when implemented alongside MVC over plain old MVC and vanilla ActiveRecord in Rails And how can it be implemented in Rails or in other words what s with all the modules Edit .. . .. . I d like to even further expand my question in the context of RoR - is another level of abstraction between the models and the controllers in Rails recommended How widespread is it in different-scale applications Comment : your question is extremely broad and there for very difficult to answer . There s quite a few places where it seems that you ve not quite gotten what DCI is making it even harder to answer some of the questions in a DCI context . I can help you with the DCI stuff if that s the goal but you d need to narrow down the scope then Comment : I d mostly like to understand what is DCI . As for a Rails implementation a simple example or even a two-line explanation would be great . Comment : Great question . I didn t know until reading this that there was a name for the paradigm that I ve been hankering for just lately . I ve been looking at code I maintain that I didn t write and thinking What this needs is classwise separation between data and behaviour . I guess that this is precisely what DCI is trying to do . Comment : Not DCI specifically but Googling for Rails service objects will give a taste of how DCI-like concepts can be applied . And self promotingly : sitepoint.com using-wisper-to-decompose-applications http : www.sitepoint.com using-wisper-to-decompose-applications Comment : If you are still looking for RUby related examples for DCI have a look at a presentation That was inspired by several DCI questions here this being one of them youtube.com watch v ZUADinlqHwk http : www.youtube.com watch v ZUADinlqHwk .. . Answer : At the heart of DCI http : www.artima.com articles dci vision.html is the cognitive tools it provides the developer . I m not sure if you ve seen all the great James Coplien Trygve Reenskaug http : www.tele-task.de archive lecture overview 6269 lectures but I will try to distill the gist of it for anyone new to the concepts . It is about moving system behavior out of the systems interacting domain objects data entities or what the system is and into behavior objects what the system does as first class citizens which mediate the collaboration between objects by injecting them with functionality in the context of a use-case just-in-time . Think BDD . We code the behavior not across many objects like particulates of functionality spread out all over our data objects which are highly coupled to the persistence layer but within cohesive objects that exist solely for a use-case story and which inject capabilities into and coordinate the interactions of these dumb data objects . Like sheer layers of a physical architecture slowly changing data objects are not loaded up with rapidly changing feature implementation that they carry around all the time . Rather Ruby provides us the ability to easily inject the behavior into the objects at runtime when if needed only in the context of a use-case . As an example in ROR if you have a controller action involved in a use-case in which there is an event probability matrix where most entries may be triggered in only a small percentage of requests then instantiating a network of bloated behavior-heavy objects with the knowledge to execute every event for every possible use-case of the data is unnecessary . Also not having to dig through 18 files in my text-editor to understand how that interaction works vs . having all the logic cleanly abstracted to patterns in an interface provided by the context object is a definite plus as well . Regarding your question about another layer of abstraction between controllers and models in rails I m not sure which other one your referring to . Regardless Yes . By all means . No problem . Design patterns http : en.wikipedia.org wiki Command pattern and Uncle Bobs SOLID http : en.wikipedia.org wiki SOLID 28object-oriented design 29 principles are pretty much generally accepted best practices in OO design . Both of these strongly encourage loosely coupled abstractions between policy and implementation . They both help avoid catostrophic brain dumps of roman empire demolishing magnitude because they provide a common framework everyone understands . DCI for me provides the same type of cognitive framework but for making a system easier to comprehend and deal with effectively and this is the holy grail for any object oriented designer .",
"Question : null .. . Answer : I am looking for some examples at Java in order to better understand what is DCI and how it should be used . I have found some great DCI example at C++ here http : fulloo.info Examples C++Examples Account1 .. . .. . If you are not familiar with DCI architecture read about it here http : www.artima.com articles dci vision.html or watch some introduction here http : www.tele-task.de archive video flash 16130 Last link is more about OO weaknesses . Bonus question : Does DCI is indeed the next paradigm shift Comment : What is DCI full form please. . Comment : @mtk It is data context interaction for more see artima.com articles dci vision.html http : www.artima.com articles dci vision.html Comment : looks more like an invitation to visit your website not a real question . voted to close Comment : This is not my site.. . Comment : @yegor256 alexsmail is not the owner nor author of that site . It s managed by Trygve Reenskaug and James O . Coplien the creators of DCI and I . The article on artima i Work by Trygve and James . The DCI site fullOO.info do at the moment not have any Java examples . For that I do believe this is actually a valid question in regards to some authorative examples in Java",
"Question : What is the best description of Data Context and Interaction DCI http : www.gertrudandcope.com-a.googlepages.com thedciarchitecture to pitch it to an organization It s created by Trygve Reenskaug http : folk.uio.no trygver the creator of the MVC-pattern http : en.wikipedia.org wiki Model-view-controller . Is it really the successor to MVC or just another pattern And what are its pros and cons Comment : +1 Good question .. . Answer : The impression I got is that it s not a successor to MVC so much as a complement for example figure 5 in the artima article on DCI http : www.artima.com articles dci 5Fvision.html has both . I think it s supposed to help make the distinction between model and controller more sane or maybe between different part of the controller or different parts of the model . The basic idea seems to be to split logic for particular actions our of your data classes and move it to traits mixins whatever one per user action . You ll have many small pieces of code instead of a few large pieces . Also it sounds like adding new mixins is supposed to be better than adding functionality to your base classes . The code for individual actions will probably I think be more spread out but code for different actions should be more clearly and obviously separated . Comment : The code for individual actions will be less spread out as they will be put into the contexts . Comment : The last part of the answer contradicts the goals of DCI . An explicit goal of DCI is to keep the parts of an algorithm in one place . Usually examplified by keeping the implementation of a use-case in one place",
"Question : All the examples of DCI I ve seen seems to be based on the object as the ultimate holder of information and the transaction boundaries are defined inside the methods . I would like to see an example of a persistent application where there is some sort of persistence layer i.e . where there can be duplicate object copies of the underlying persistence storage and where a change to an object is a change to a copy that will later be persisted . Does DCI work for that model at all Comment : any application that can be implemented with OO can be implemented with DCI . DCI is OO but enforces constraints to how to do OO . That said there are no objects in a persistence layer nor are there copies of an object there are classes in a persistence layer and multiple objects representing the same information . DCI is not concerned with classes they are a language feature and syncronizing different representations of what s suppossed to be the same is an issue ortogonal to all paradigms that accept side effects and can be solved in various ways in them all too .. . Answer : DCI is a paradigm and just as you can build an application using any other paradigm with persistence execluding pure FP since persistence is a side effect so can you with DCI . It s not mentioned in DCI examples because it s not a concern to the paradigm and is unrelated to understanding the paradigm . That said you re not the first to ask the question and will not be the last I m sure . The concern of persisting data is in general ortogonal to DCI . DCI tries to partition the design into .. . .. . What the system is .. . What the system does .. . .. . The first is the domain-model and the second is the functionality of the system . Whether what the system is is kept in memory flat files or a DB is important of course but a separate concern and is usually implemented using restricted OO https : groups.google.com forum msg object-composition umY w1rXBEw hyAF-jPgFn4J Comment : What you say makes sense but I think the reason it s brought up so often is that e.g . in the Artima article there s explicit use of transaction boundaries . This implies something about persistence and as such leaves people with the question . Comment : @nilskp agreed and that s where restrict OO comes in . Most DCI examples omit the restricted OO parts for brevity . I m in different boat than some of those examples since I tend to use DCI one a lower level than the examples just as Guge mentions in a comment I m might very well use DCI in the persistence layer",
"Question : In his book Aspect-Oriented Software Development with Use Cases http : rads.stackoverflow.com amzn click 0321268881 Ivar Jacobson introduces use-case slices . It seems that DCI and use-case slices are based on the same or at least similar idea . What are the differences between DCI and use-case slices Comment : I have similar impression - I think Jacobson was trying to do DCI since beginning of the use cases but I think use cases are useful in a quite different way.. . .. . Answer : It seems to me they both derive from Feature Oriented Programming . The idea behind is to arrange the design of a system architecture in a set of views each one defining the way the system address a function . In use-case slices this is done at the M1 level of the OMG MDA Stack . It defines a UML profile to model the way aspects extend system classes to add properties and operations aimed at realizing specific use cases . In DCI this is done at M0 code basically by means of OO techniques not aspects as far as I understand . Anyway it is a good question years ago I had the same concern about Context Oriented Programming and Aspect Oriented Programming . I am still a bit convinced the former is a specific application of the latter . Comment : So you say that DCI is architecture reflecting use cases and use-case slices are a modeling technique for use cases unrelated to architecture right That is the way I understand it . Comment : They are both an architectural reflection of use cases . I guess they just exploit different technologies in different level of abstractions . Use case slices define a modeling approach to design architecture of objects and aspects satisfying use cases . Hence they are related to architecture as well . Comment : They first taught us how important was encapsulation and now the want us to break it be means of aspects or other crosscutting constructs : Comment : So you say use-case slices are ment to be visible in code Can you give reference to that I read only in Jacobsons summary they should be a modeling concept.. . Comment : yes this is my understanding :",
"Question : All the examples of DCI I ve seen seems to be based on the object as the ultimate holder of information and the transaction boundaries are defined inside the methods . I would like to see an example of a persistent application where there is some sort of persistence layer i.e . where there can be duplicate object copies of the underlying persistence storage and where a change to an object is a change to a copy that will later be persisted . Does DCI work for that model at all Comment : any application that can be implemented with OO can be implemented with DCI . DCI is OO but enforces constraints to how to do OO . That said there are no objects in a persistence layer nor are there copies of an object there are classes in a persistence layer and multiple objects representing the same information . DCI is not concerned with classes they are a language feature and syncronizing different representations of what s suppossed to be the same is an issue ortogonal to all paradigms that accept side effects and can be solved in various ways in them all too .. . Answer : DCI doesn t really concern itself with persistance . Comment : What does that mean That it s an orthogonal concern i.e . DCI is outside that scope because it doesn t matter Or it s a valid concern that is just not addressed by DCI Comment : Persistance is always a valid concern but DCI is more of a paradigm than an architecture . So I think it s orthogonal . DCI has a lot to say about data but not so much where it comes from or where it goes . I guess you could even use DCI in your persistance layer in the sense that persisting data is a use-case that begins when the user selects File Save from the menu .",
"Question : What is the best description of Data Context and Interaction DCI http : www.gertrudandcope.com-a.googlepages.com thedciarchitecture to pitch it to an organization It s created by Trygve Reenskaug http : folk.uio.no trygver the creator of the MVC-pattern http : en.wikipedia.org wiki Model-view-controller . Is it really the successor to MVC or just another pattern And what are its pros and cons Comment : +1 Good question .. . Answer : It totally looks to me as the Policy based design by Andrei Alexandrescu in Modern C++ design however that work is more low-level DCI looks like an architecture with parts of methodology use cases drive the design . Comment : You didn t answer the question .",
"Question : I recently saw the following presentation on DCI by Trygve Reenskaug : https : vimeo.com 43536416 It kinda blew my mind . Mmmh seeing in code the interaction between different components of a software is an attractive idea . I tried to find examples of DCI in javascript unsuccessfully . Then I started wondering . Isn t the DCI pattern opposed to the evented programming pattern Evented programming is trendy in javascript i guess because it allows decoupling and because classical inheritance concepts are not native to js . I think I understand the benefits of evented programming but I also noticed that debugging can be damn hard when it requires to follow event message . Is it correct to say that both concepts are opposed Or did I got it wrong Is there some example implementations of DCI in js that I missed What should I look at in order to dig the concept .. . Answer : Firstly event programming or inheritance are ortogonal to DCI . You can do DCI without inheritance and with event programing or without . JavaScript is in somerespect one of the best languages to do DCI in . Most languages has some issues with following DCI stricyly . In JavaScript the issues are could be solved if there was a finalizer but the lack of a finalizer means you will have to dispose your self meaning some noilerplate code . I ve written an example in JavaScript that I will put online on http : fullOO.info where you will find the examples Trygve Jim and I have created together with some other people have created as well . fullOO.info is also the answer to where you could go to get more familiar with DCI or you can join object-composition a google group for discussion regarding DCI . The example I ve written in JS is the canonical DCI example money transfer and the interesting part that is everything but boilerplate library code can be seen below : .. . .. . The rest can be seen at http : jsfiddle.net K543c 17 Comment : Thanks a lot very interesting . I will study the code once I am back home . But could you expand on the difference between dci and evented isn t an event send by one component and listened by another one an interaction between components When I watched folk.uio.no trygver themes babyide babyide-index.html http : folk.uio.no trygver themes babyide babyide-index.html I had events in mind . These days events are used for everything in js webapps . They are used to access methods on other components instead of direct access in order to achieve decoupling and prevent the app to break completely if one components breaks . Comment : @olivvv Events are just another way of sending messages between objects . DCI is concern with capturing in code which object send which message to what object . You could also view events as something that starts a context . So being event-driven is orthogonal to DCI but I guess you are actually referring to asynchronous which is a very different thing Comment : No I am not reffering to asynchronous but pub sub communication . For instance one component watches keyboard and mouse activity and broadcast events for other components to let them know if the user is active or not . There can be a lot of components listening . How would a context take that into account Comment : @Olivvv By definition all communication between objects in DCI is captured in a context one context for each network of communicating objects so you ve would simply have roles that communicated . That said it is border territory for DCI at present . Comment : So components should handle events in a context method",
"Question : All the examples of DCI I ve seen seems to be based on the object as the ultimate holder of information and the transaction boundaries are defined inside the methods . I would like to see an example of a persistent application where there is some sort of persistence layer i.e . where there can be duplicate object copies of the underlying persistence storage and where a change to an object is a change to a copy that will later be persisted . Does DCI work for that model at all Comment : any application that can be implemented with OO can be implemented with DCI . DCI is OO but enforces constraints to how to do OO . That said there are no objects in a persistence layer nor are there copies of an object there are classes in a persistence layer and multiple objects representing the same information . DCI is not concerned with classes they are a language feature and syncronizing different representations of what s suppossed to be the same is an issue ortogonal to all paradigms that accept side effects and can be solved in various ways in them all too .. . Answer : At http : blog.maxant.co.uk pebble files dci java example for object composition google group 201010052226.zip I have posted an example in Java which incorporates JPA ORM for persisting entities . It s part of a white paper to be posted soon at www.maxant.co.uk whitepapers.jsp .. . .. . A further example showing DCI being integrated into an app server will be in that paper . Hope that helps",
"Question : What are possibles designs for implementation of the DCI data contexts interactions architecture in different OOP languages I thought of Policy based design Andrei Alexandrescu for C++ DI and AOP for Java . However I also thought about using State design pattern for representing roles and some sort of Template method for the interactions.. . What are the other possibilities Comment : From the original paper there are also traits in Scala and open classes in Ruby . My Stete design pattern suggestion is wrong because if I understand DCI correctly the data should be isolated from knowing abou all the contexts in which it can be . Comment : Your understanding is correct it s one of the main concerns of DCI to make what the system is data independent of what the system is .. . Answer : In Java without byte-code generation I would use Decorator pattern for contexts however I will instead of classes decorate interfaces which will be more flexible . Data than will be represented through classes implementing the interfaces . The interactions will be done using manual dependency-injection into Template methods . Comment : DCI is tough in Java but using Qi4J get s you very close . The main problem that arises from different implementations in Java is identity problems . DCI is about objects and not classes . The decorator pattern is class based . In DCI the behaviour of an already instantiated object is extended with role methods . Those methods are internal to the context not some other class nor some other object . In other words you can t do DCI with the decorator pattern",
"Question : What is the best description of Data Context and Interaction DCI http : www.gertrudandcope.com-a.googlepages.com thedciarchitecture to pitch it to an organization It s created by Trygve Reenskaug http : folk.uio.no trygver the creator of the MVC-pattern http : en.wikipedia.org wiki Model-view-controller . Is it really the successor to MVC or just another pattern And what are its pros and cons Comment : +1 Good question .. . Answer : I think improved system comprehension is a huge win for any organization but you could also make the case that DCI is an improvement on MVC due to the following additional factors : .. . .. . 1 . Cleanly separating system behavior and data provides numerous benefits to data aggregation activities including more performant real-time analytics due to smaller footprint of domain objects . 2 . Data object and behavior object reuse is much easier across functional divisions when they have their own place to live rather than being particulates as-if randomly placed across a subset of the mixed data behavior objects in a system . 3 . As BDD is becoming the defacto agile methodology the organization will be leap years ahead of the rest of the industry in this practice and possibly a role model for other like minded organizations .",
"Question : I am working with AngularJS for my latest project . In the documentation and tutorials all model data is put into the controller scope . I understand that is has to be there to be available for the controller and thus within the corresponding views . However I dont think the model should actually be implemented there . It might be complex and have private attributes for example . Furthermore one might want to reuse it in another context app . Putting everything into the controller totally breaks MVC pattern . The same holds true for the behaviour of any model . If I would use DCI architecture http : www.artima.com articles dci vision.html and separate behaviour from the data model I would have to introduce additional objects to hold the behaviour . This would be done by introducing roles and contexts . Of course model data and behaviour could be implemented with plain javascript-objects or any class pattern . But what would be the AngularJS way to do it Using services So it comes down to this question : .. . .. . How do you implement models decoupled from the controller following AngularJS best practices Comment : I would up-vote this question if you could define DCI or at least provide the spelled out form . I have never seen this acronym in any software literature . Thanks . Comment : I just added a link for DCI as a reference . Comment : @JimRaden DCI is Dataq Context interaction and is a paradigm formulated firstly by the father of MVC Trygve Reenskauge . There quite some litterature on the subject by now . A good read is Coplien and Bj rnvig Lean architecture Comment : Thanks . For better or worse most people don t even know about the original literature by now . There are 55 million articles about MVC according to Google but only 250 000 that mention MCI and MVC . And on Microsoft.com 7 . AngularJS.org doesn t even mention the DCI acronym : Your search - site : angularjs.org dci - did not match any documents . Comment : Resource objects are basically the models in Angular.js. . am extending them . .. . Answer : DCI is a paradigm and as such there s no angularJS way of doing it either the language support DCI or it doesn t . JS support DCI rather well if you are willing to use source transformation and with some drawbacks if you are not . Again DCI has no more to do with dependency-injection than say a C class has and is definitely not a service either . So the best way to do DCI with angulusJS is to do DCI the JS way which is pretty close to how DCI is formulated in the first place . Unless you do source transformation you will not be able to do it fully since the role methods will be part of the object even outside the context but that s generally the problem with method injection based DCI . If you look at fullOO.info http : FullOO.info the authoritative site for DCI you could have a look at the ruby implementations they also use method injection or you could have a look at here http : runefs.com category dci for more information on DCI . It s mostly with RUby examples but the DCI stuff is agnostic to that . One of the keys to DCI is that what the system does is separated from what the system is . So the data object are pretty dumb but once bound to a role in a context role methods make certain behaviour available . A role is simply an identifier nothing more an when accessing an object through that identifier then role methods are available . There s no role object class . With method injection the scoping of role methods is not exactly as described but close . An example of a context in JS could be Comment : Thanks for elaborating the DCI stuff . It is a great read . But my questions really aims at where to put the model objects in angularjs . DCI is just in there for reference that I might not only have a model but split it in the DCI way . Will edit the question to make it more clear .",
"Question : I ve been playing around with DCI after following along with The Right Way to Code DCI in Ruby http : mikepackdev.com blog posts 24-the-right-way-to-code-dci-in-ruby . I find that I keep wanting my roles to add properties to my data objects . For instance if I have a user object . The user may play the role of a customer . To make this work I need to add a cart method . Does the shopping cart really belong in the user object It feels like the role should add the cart to the data object as needed . .. . Answer : In general DCI data objects should consist of just the data plus very basic domain logic like basic validation logic . And DCI roles should be purely behaviour . Adding the cart to the user in a role feels like a violation of that second . Maybe your missing a data object-type or a role Remember roles can use other roles from the context so maybe your role should just expect an object playing the role of a cart to be part of the current context . Comment : I hadn t thought of a context taking a cart . I ll give that a go and see how it turns out . Comment : @JonMR Did you ever go any further with this I m in a similar place and am curious what you wound up doing . Comment : @JStroop I didn t get much farther with it unfortunately . For my eventual DCI use-case I just dropped the concept of roles . In that case add to cart just moved into it s own class . Hopefully that makes sense . : Comment : @JonMR It does I think . DCI seems to really shine when you have complex or highly customized interactions between two objects when it s just one class that needs to do something it starts to feel like modelling overhead and concerns or plain old instance methods seem a lot easier . Everything has its place . Thanks for getting back .",
"Question : In DCI discussions there is a usually mention of pure object oriented languages : .. . .. . Object-oriented programming-languages particularly the pure ones expressed everything in terms of objects or methods on objects . Of course most programming-languages used classes to do this . The point is that nothing was supposed to exist outside of an object framework . .. . Source : http : www.artima.com articles dci vision.html .. . .. . I m trying to understand the difference between a pure OO language and a non-pure one in terms of DCI . To help put the differences into context it would be good to have an example of a pure OO language so that I can contrast it with my experience with class based language such as java . Question : What languages are pure OO languages from the perspective of DCI Comment : Potential closers : if you feel this post isn t valid for stack-overflow can you please help me understand how I can fix it rather than just marking it as a close Comment : You can fix it by deleting it . It s not a good question for Stack Overflow http : stackoverflow.com . See How to Ask http : stackoverflow.com questions how-to-ask . Comment : This goes close to the border or opinion-based or opene-ended discussions . However I don t think it actually crosses it I think it s on-topic . Comment : @LennartRegebro thanks for the info . This type of feedback is invaluable for posters . Without this type of feedback it is sometimes very difficult to know why your question is considered a bad fit . .. . Answer : A non-pure OO language in this context is a language were not everything is objects . Java for example have primitive-types which behave differently than objects . For example Java s primitive-types are passed by value while Java passes references when it passes it s objects . In contrast Python treats everything as objects and although it has built-in types it has no primitive-types everything is objects . I think you misunderstand the reference to classes . I don t think they say that a pure OO language does not have classes . Comment : Is there an OO language that does not have classes I have never encountered one . Comment : @SHC Javascript for example . Comment : Another OO language without classes : Self . Comment : Part of the point of that qoute AFAIK is that class-oriented languages like Java C C++ etc make us think in classes more than in objects . Thus more class oriented than object oriented . Comment : Classes are write- and compile-time artifacts . Objects are what exists at runtime . Thinking more in objects than in classed brings our thinking closer how the system will run and by consequence to what the user interacts with .",
"Question : I m writing a simple webgame to experiment the DCI pattern and I was wondering how to test the context properly . https : gist.github.com 1718889 .. . .. . I have a context CharacterAttacksAnotherCharacter which take two characters and extend them with two roles Attacker and Target . Then the context is executed . But how can I test the behaviour of this execution instead of the implementation Thanks Comment : I think depend how do your attack method . You can t stub it if you want test behaviour . .. . Answer : In general testing an interaction in a DCI context should be fairly easy . One of the goals of the context is to be self-contained so binding roles to objects that suits the testing should be straight forward . If it s not that s probably a sign that it s not really DCI . I have a hard time finding any role methods in your code . That might be due to my lack of ruby skills . In general the interaction should be a complete algorithm and that is what you would want to test when creating unit test for a context . However a goal of DCI is to create a verifiable code unit so if that goal is reach there d be other parts of the code where the testing efforts yield a higher value compared to using reviews to verify the implementation of the context and it s interactions"
]
} | [
"yes-answer-long",
"yes-answer-short"
] | dci | UNK_RELATION |
cpputest@xunit@44 | cpputest -- cpputest is a c c++ based unit @placeholder test framework for unit-testing and test-driving code . | {
"confidence": [
67.01167297363281,
58.25907897949219,
57.414085388183594,
56.617774963378906,
54.21342468261719,
52.05436325073242,
52.05436325073242,
51.07483673095703,
50.179962158203125,
48.87701416015625,
47.49977111816406,
47.482688903808594,
47.36518478393555,
46.98031234741211,
46.937660217285156,
46.7183723449707,
45.874671936035156,
45.7315559387207,
45.48210144042969,
45.04624938964844,
45.02192306518555,
44.9061279296875,
44.50011444091797,
44.50011444091797,
43.89649200439453,
43.7574577331543,
43.41998291015625,
43.189720153808594,
42.37004089355469,
42.139678955078125,
42.040618896484375,
42.040618896484375,
42.01036071777344,
41.5322151184082,
41.38823699951172,
40.935577392578125,
40.749183654785156,
40.73841094970703,
40.69175720214844,
40.67359161376953,
40.67359161376953,
40.299705505371094,
39.58671569824219,
39.548160552978516,
39.192420959472656,
38.993873596191406,
38.993873596191406,
38.993873596191406,
37.9779052734375,
37.61761474609375,
37.29742431640625,
37.29742431640625,
37.29742431640625,
37.29742431640625,
37.29742431640625,
37.20800018310547,
36.7429313659668,
36.63685607910156,
36.17198944091797,
36.17198944091797,
36.17198944091797,
35.99510955810547,
35.51155090332031,
35.44261932373047,
35.412864685058594,
35.21326446533203,
34.82312774658203,
34.82312774658203,
34.4613037109375,
34.446189880371094,
34.198997497558594,
33.24085235595703,
33.089683532714844,
33.089683532714844,
32.74974060058594,
32.74974060058594,
32.74974060058594,
32.74974060058594,
32.74974060058594,
32.74974060058594,
32.74974060058594,
32.74974060058594,
32.74974060058594,
32.74974060058594,
32.664249420166016,
32.60361099243164,
32.01892852783203,
31.836536407470703,
31.66428565979004,
31.62430763244629,
31.62430763244629,
31.62430763244629,
31.31009292602539,
31.122529983520508,
31.081623077392578,
30.67845916748047,
30.580474853515625,
30.421161651611328,
30.27544593811035
],
"content": [
"I m trying to learn TDD using CPPUTest for embedded C unit-testing .",
"I use cygwin and gcc the test framework is CppUtest .",
"I m using CppUTest to test the C code defined in a fornol.c source file .",
"It s a unit test project using the CppUTest framework older than 3.4 - I think .",
"For example my production code say it builds to an executable has .. . .. . For unit test I am using CppUTest .",
"I was trying to compile the c++ files that come with CPPUTest .",
"And I am using CppUTest C++ for unittesting .",
"For inherits of C function in CppUTest I should write .. . .. . Is any alternative to inherit all C project into Cpp for CppUTest",
"I m using CppUTest as framework .",
"I m starting using CppUTest for some C C++ projects .",
"That is a bug in cpputest .",
"I have never used any unit test framework with C++ .",
"Download and extract Cpputest to c : cpputest-x.x .. . .. . Configure and install cpputest : Start cygwin and input the following shell commands .. . .. . cd c : cpputest-x.x .. . . configure .. . make .. . make check .. . .. . Install helper scripts optional step .. . .. . cd scripts .. . . InstallScripts.sh .. . .. . Add CPPUTEST HOME as an environment variable : in c : cygwin64 home your user name.bash profile add .. . .. . export CPPUTEST HOME cygdrive c cpputest-x.x .. . .. . You should now be good to go .",
"I am using cpputest library to test my application .",
"You can either file an issue https : github.com cpputest cpputest issues or open a pull request https : github.com cpputest cpputest pulls for your fix .",
"Download CppUTest .. . 3 .",
"In the CppuTest makefile have included CPPUTEST CPPFLAGS + -std c++1y .",
"Trying to set up an embedded TDD environment in Eclipse : .. . .. . Application Project set up for GNU-ARM cross-compilation .. . CppUTest Project to build CppUTest via Cygwin working great .. . Test Project to house unit tests test groups test runner .. . .. . Trouble I m having is that the Test Project builds its unit tests into .o files but won t build the tested .h .c files so the linker fails on undefined references to the missing objects .",
"I am trying to learn cpputest so went to the cpputest manual and copied the below code in my ubuntu 14.04lts laptop and tried to make .",
"If I change CppUTest framework code can I then commit changes",
"The cpputest version wasn t the same .",
"For running the cpputest cases you need two file .",
"I am trying to understand use a pre-defined Makefile from CppUTest MakefileWorker.mk https : github.com cpputest cpputest blob master build MakefileWorker.mk .",
"TEST GROUP macro creates a struct https : github.com cpputest cpputest blob 32dd4276545dd947e166b6bc9ae646f1e2895973 include CppUTest UtestMacros.h and then you create a static member in that struct .",
"What is the disadvantages of extern in CppUTest",
"It s possible the cpputest binaries and headers are not found under windows it may help to add cpputest binaries path to PATH .",
"I am getting started with Test Driven Development for embedded C and I started to read the book : Test-Driven development for embedded C in which they recommend two development system test-environments : Unity and CppUTest .",
"I found out that the problem here is the version of cpputest framework .",
"Is it possible and how to achieve this with CPPUtest mocking facility",
"I am sure this is a very common scenario for unit-testing c code .",
"So I decided to try CppUTest .",
"Please answer if you are familiar with CppUTest .",
"The basic theory behind this is that if you are always including .c files it quickly becomes impossible to unit test since the whole idea of unit-testing is drilling down and testing one bit of code without depending on the rest of it .",
"you can enable CppuTest C++11 by using this call : cmake -DC++11 ON . . .",
"Now you should really be reading the CppUTest documentation or the excellent book Test Driven Development for Embedded C https : pragprog.com book jgade test-driven-development-for-embedded-c .",
"I have CppUTest-3.6 configured with visual-studio-2010 according to D : cpputest-3.6 docsWalkThrough VS21010.docx .. . .. . Hasan",
"I would like to use the mock in following way in TEST function : .. . .. . I cannot find such example in CppUTest Mocking documentation .",
"Here is the calling code in a cpputest test file : .. . .. . And here is the definition of the operator function itself : .. . .. . Please note that : .. . .. . 1 .",
"I agree that cpputest documentations sucks .",
"I am learning TDD and using CppUTest in eclipse .",
"Has anyone managed to build CppUTest 3.71 with MinGW",
"Happy embedded C development and happy unit-testing",
"I m a newby in cppuTest and actually I m trying to build the . examples within the CppuTest root directory .",
"Now I took CppUTest version 3.6 .",
"You may be fine with not having separate test case for each scenario or CppUTest may have support for programmatic way of adding test cases .",
"I just installed CppUTest on my MAC using brew as indicated by the guide .",
"The error you are getting is a linker-error and it suggests that you are not linking the CppUTest library .",
"If not write to the CppUTest google group theres always friendly people willing to help .",
"I assume you have downloaded the stable release so you can try with the current Git Snapshot https : github.com cpputest cpputest .",
"I created a static CPP library for the CppUTest Framework which copiled successfuly after a small change .",
"In which source include file is the version number of CppUTest http : cpputest.github.io defined",
"I m setting up CppUTest for our embedded system project .",
"I ll try to do something with CppUTest before confirming this works .",
"I compiled CppUTest with cygwin in codeblocks I use MinGW .",
"In build options add CppUTest lib to search directories for the linker .",
"Compile CppUTest in cygwin .. . .. . I think I ve completed the two first steps but I have no idea how to compile CppUTest in cygwin I ve never used cygwin before .",
"CppUTest http : cpputest.github.io index.html is the perfect fit for embedded C development since it is the only testing framework that allows to mock free functions in your case write to i2c and read from i2c .",
"gcc below contains the path where g++ is installed mnt.. . .. . .. . Now when I make the CppuTest to build the Unit Tests for my code I get the following error .",
"Here is the idea using CppUTest : .. . .. . Usage example : .. . .. . Thanks Edy .",
"I am using CppUTest in eclipse-cdt ubuntu 14.0 .",
"I ve been using CppUTest with g++ 4.7.2 for a while now without problems .",
"But current unit test frameworks only work on code lebel.. .",
"I installed cpputest on Ubuntu by : .. . .. . Now I am trying to build the examples from the book and it fails : .. . .. . It seems like it cannot find where apt-get installed cpputest .",
"I have the code as below : .. . .. . and I use CPPUTEST with the test code as below : .. . .. . But the error is : Allocation deallocation type mismatch .. . .. . I don t know why please help .",
"Then I have now added a few lines-of-code setting up mocking using the CppUTest and now things work again...maybe a bug in the old CppUTest framework.. . .. . .. . EDIT2 : Now in another location I can step into the subroutine but then I m stuck at the top line of the routine .",
"I downloaded the pthreads package for MinGW they I handled the timespec redefinition by adding preprocessor two lines to CppUTest source code .",
"The furthest I got was to compile the CppUTest and run its tests and that is it .",
"Considering cpputest this work : .. . .. . That is also basically what is written in README.md",
"Regarding your answer I already managed to do that compiling CppUTest but my problem is how to run the first test of one of my modules .",
"We managed to get it to work by using a mirror of the old programmers computer and then copying the directories for cygwin and CppUTest .",
"Try something like this- .. . .. . File : cpputest1.cpp .. . .. . File : cpputestmain.cpp .. . .. . Make sure that your these two files under same folder tests in your cpputest directory .",
"I am currently trying to compile and link the CppUTest library with my project .",
"Java does make unit-testing easier .",
"Absolutely true aspect of unit-testing +1",
"A new feature has been added to CppUTest which lets you specify an output parameter for mocks .",
"The latest version according to CppUtest homepage is 3.4 and I want to see if our system is using that or not .",
"https : groups.google.com forum topic cpputest N--j9TW667Y .. . .. . If you use the source distribution then it is in the configure.ac file .",
"I m trying to use CppUTest in Windows first step is to get it to work and I already have problems .",
"Does anyone know how to build CppUTest 3.7 latest release with MinGW or CMake",
"For this I ve attempted the following : .. . .. . In build options add CppUTest include to search directories for the compiler .",
"and Conflicts with my own overload .. . .. . TL DR .. . .. . In UncrosserTest add includes for CppUTest after your s .",
"The issue here was as suggest @Jonathan Wakely that cpputest defines macro NEW which prevent new from being included correctly .",
"To resolve the issue we reorder the includes to include all libs before including cpputest headers .",
"The identifier NEW is a reserved name http : stackoverflow.com q 228783 981959 so a library like cpputest must not use it .",
"I am trying to compile the following test application using CodeBlocks and CppUTest however no matter what I do I always get the undefined-reference error .",
"It keeps the module code clean for general use it allows the unit test to probe more deeply than it would otherwise .",
"I m doing Unit Testing of embedded C code without running on target hardware.Here is one part of the code : .. . .. . The function write to i2c writes a value to a specific register .",
"I m writing an unit test where I have to perform different calls to a mocked object .",
"Last part is the Unit Test : .. . .. . This UT will actually give 100 branch coverage .",
"CppUTest uses old style casts for compatibility reasons and the current makefiles already contain compiler-flags to disable that warning .",
"I m not familiar with CppUTest but it s not possible to just create an accessor and return the mock variable when needed",
"Hey Paul I wonder if you still have the same problems with a more recent version of CppUTest.. .",
"See also .. . .. . include Test Double http : www.renaissancesoftware.net blog archives 231 .. . Test Driven Development for Embedded C James Grenning .. . Testing Code for Embedded Application http : stackoverflow.com questions 1572601 testing-code-for-embedded-application",
"when I call SConScriptUtest I get the following error : .. . .. . cannot find -lCppUTest cannot find -lCppUTestExt .. . .. . This is while I have included the path for finding CppUTest and CppUTestExt : .. . .. . LIBPATH points to where your libraries reside : testenv.Append LIBPATH . . cpputest lib .. . .. . my . . cpputest lib path has both CppUTest.lib and CppUTestExt.lib .. . .. . So why is it not picking up",
"You may have an old version of CppUTest that only defines the second form of RunAllTests .. . .. . I usually use the RUN ALL TESTS macro and define argc as const char like this :",
"It converts the test code from black-box-testing to a form of white-box-testing - the test can see more of the tested code than a regular black-box test can .",
"Apparently you want to debug rather than perform unit-testing .. .",
"If the problem is unit-testing needing to probe more deeply than consumers need to probe then I don t see anything wrong with the test code using include sourcecode.c .",
"that the memory actually gets freed just only after CppUTest already reported the leaks ."
]
} | {
"confidence": [
75.18635559082031,
73.04346466064453,
72.30848693847656,
71.37570190429688,
70.91796112060547,
68.27532196044922,
66.8475570678711,
66.84381866455078,
66.41758728027344,
64.73387145996094,
60.07536315917969,
60.027400970458984,
57.82954406738281,
57.72334289550781,
56.82401657104492,
56.177791595458984,
54.61609649658203,
54.326568603515625,
54.23638916015625,
54.14250564575195
],
"content": [
"Question : I ve taken over a programming project from another programmer . This project uses a lot of unit tests to verify the code which I intend to continue using . I have no prior experience with unit-testing apart from some theoretical knowledge so he wrote a very small guide for how to get it working before he left the company . That guide looks like this . 1 . Install cygwin with support for gcc g++ .. . 2 . Download CppUTest .. . 3 . Compile CppUTest in cygwin .. . .. . I think I ve completed the two first steps but I have no idea how to compile CppUTest in cygwin I ve never used cygwin before . I tried some quick googling on the Title of this question but I couldn t find something useful . .. . Answer : You can use either CMake http : www.cmake.org or autoconf . CMake .. . .. . Open a cygwin terminal and : .. . .. . Or use the CMake GUI .. . .. . Btw . you can enable CppuTest C++11 by using this call : cmake -DC++11 ON . . . Cmake will print this line then : .. . .. . autoconf .. . .. . With a cygwin terminal : Comment : Ok I did it the CMake way . A lot of text were printed out in the terminal so I m pretty sure it worked . The next problem is running the actuall tests . In the instructions the other programmer left it says Go to C : .. . . . . . cpputests the folder which has his tests in the terminal and then write make . When I do this I get an error Makefile44 : build MakefileWorker.mk : No such file or directory . The compiled files and the existing unit tests are currently in differant directiories so I guess this is the problem . But I m not sure how the folder structure is supposed to look . Comment : Do you have to build the complete project before Eg . run make within the project s root . Can you also check your makefile for the exact error It s possible the cpputest binaries and headers are not found under windows it may help to add cpputest binaries path to PATH . Comment : I don t know if I have ti build teh complete project . That s pretty much the entire problem I have no clue what to do to make it work . I m not at work anymore so I can t check the exact error until monday Comment : Ok if you are back there can you check how your project application eg . is build usually It s often the case you build the project maybe running make in it s root dir building and running test like make test within the test dir . Or building the the test you ll get some kind of test application and running those . Comment : Hi sorry for not-responding . We managed to get it to work by using a mirror of the old programmers computer and then copying the directories for cygwin and CppUTest . Anyway thanks for your effort to help",
"Question : I m doing Unit Testing of embedded C code without running on target hardware.Here is one part of the code : .. . .. . The function write to i2c writes a value to a specific register . The function read from i2c reads back the value from the register . Further I m using the variable tempReadback to compare if the read back value is the same as the written one . So far OK and this works on the target hardware . Now I m doing the Uni Tests without running the code on target Hardware Software in the Loop . This means the expression tempReadback msg- value will never be true tempReadback is 0 and I will run each time in the statement somethingB . Is there any way to fake the register read back I m using CppUTest as framework . Will be thankful Comment : I gave you a very detailed answer did you read it Comment : Hi @marco.m thank you very much for the detailed explanation Sorry I have been on vacation and just now reading your message . I will try it and inform about the results . .. . Answer : CppUTest http : cpputest.github.io index.html is the perfect fit for embedded C development since it is the only testing framework that allows to mock free functions in your case write to i2c and read from i2c . Now you should really be reading the CppUTest documentation or the excellent book Test Driven Development for Embedded C https : pragprog.com book jgade test-driven-development-for-embedded-c . Anyway the following code shows how to do it . Your Unit Under Test UUT written in a way that is compilable next time you ask a question on SO please make the effort : .. . .. . As you wrote we need to fake or more exactly we need to mock write to i2c and read from i2c . We put the mocks in a separate file say i2c mock.cpp so that when building the Unit Test we link against the mock and not against the real implementation : .. . .. . Please refer to the CppUMock documentation for details . This is just classic CppUMock boilerplate . Last part is the Unit Test : .. . .. . This UT will actually give 100 branch coverage . Again I cannot explain all the details . If you observe and compare test cases somethingA and somethingB you will see what is needed to cause the UUT to once go in the path that calls somethingA and once to go in the path that calls somethingB . Let s take for example .. . .. . Here we are saying to CppUmock to expect a call to function read from i2c to ignore what the parameters are and this is of fundamental importance to return-value + 1 or anything else you fancy that is different from value . This will cause the UUT to go in the path that calls somethingB . Happy embedded C development and happy unit-testing",
"Question : I ve taken over a programming project from another programmer . This project uses a lot of unit tests to verify the code which I intend to continue using . I have no prior experience with unit-testing apart from some theoretical knowledge so he wrote a very small guide for how to get it working before he left the company . That guide looks like this . 1 . Install cygwin with support for gcc g++ .. . 2 . Download CppUTest .. . 3 . Compile CppUTest in cygwin .. . .. . I think I ve completed the two first steps but I have no idea how to compile CppUTest in cygwin I ve never used cygwin before . I tried some quick googling on the Title of this question but I couldn t find something useful . .. . Answer : I made a mini guide for internal use at my company have been working fine for us so far . It goes something like this : .. . .. . Install cygwin default and development packages . Download and extract Cpputest to c : cpputest-x.x .. . .. . Configure and install cpputest : Start cygwin and input the following shell commands .. . .. . cd c : cpputest-x.x .. . . configure .. . make .. . make check .. . .. . Install helper scripts optional step .. . .. . cd scripts .. . . InstallScripts.sh .. . .. . Add CPPUTEST HOME as an environment variable : in c : cygwin64 home your user name.bash profile add .. . .. . export CPPUTEST HOME cygdrive c cpputest-x.x .. . .. . You should now be good to go . If not write to the CppUTest google group theres always friendly people willing to help .",
"Question : This is a simple question I believe.. . I want the variable virtualLeds to be shared between all the tests in the test group LedDriverTests this is the code : .. . .. . When I try to compile I get the following error : .. . .. . Any ideas Comment : I don t see any good reason to share state between tests here . Sharing state between tests as opposed to fresh state for each test results in order dependencies between tests and fragile tests http : xunitpatterns.com Fragile 20Test.html that can intermittently fail as the code changes . Your best option is to use a fresh fixture http : xunitpatterns.com Fresh 20Fixture.html for each test case . .. . Answer : TEST GROUP macro creates a struct https : github.com cpputest cpputest blob 32dd4276545dd947e166b6bc9ae646f1e2895973 include CppUTest UtestMacros.h and then you create a static member in that struct . See more about static-members in struct http : stackoverflow.com a 19469639 1517864 . In short that s why you re unable to access it in this way virtualLeds 0xFFFF .. . .. . Looking at your code . I think what you want to do is : .. . .. . setup is called before running each TEST .. . .. . Remember that unit tests should pass or fail independently of other tests https : pragprog.com magazines 2012-01 unit-tests-are-first . Comment : Absolutely true aspect of unit-testing +1",
"Question : I have never used any unit test framework with C++ . Now I took CppUTest version 3.6 . I am trying to compile library according to README InstallCppUTest.txt file : .. . .. . . configure OK .. . .. . make Not OK .. . .. . Shall I correct all of these compiling error or can I somehow skip the errors I know that g++ is symbolic link-to clang in OSX . Previously I tried to use gtest . Basically it was very nice when making dummy test e.g . EXPECT EQ 1 1 . When I tried to test a class of normal production code it was difficult to find how to use stubs or mocs . So I decided to try CppUTest . Comment : Preferences and opinions . IMHO the use of the old-style cast can hide certain types of conversion errors and thus should be edited to one or sometimes more of the new style casts which can be very tedious . Comment : Ok . If I change CppUTest framework code can I then commit changes Please answer if you are familiar with CppUTest . Comment : Pasi I d recommend you use the current head from github . I am pretty sure the error will be gone . CppUTest uses old style casts for compatibility reasons and the current makefiles already contain compiler-flags to disable that warning . You could of course locally change the make for 3.6 but I don t remember offhand where you d have to do that and the current code is already fixed.. . Comment : The flag in question is -Wno-old-style-cast . .. . Answer : Shall I correct all of these compiling error or can I somehow skip the errors You may disable the warning or remove -Werror - it turns all warnings into errors . I assume you have downloaded the stable release so you can try with the current Git Snapshot https : github.com cpputest cpputest . However this may not be stable . Ok . If I change CppUTest framework code can I then commit changes You should frist check the current sources link above . If it s not fixed yet it s always a good idea to contribute your fix to the project . You can either file an issue https : github.com cpputest cpputest issues or open a pull request https : github.com cpputest cpputest pulls for your fix .",
"Question : Trying to set up an embedded TDD environment in Eclipse : .. . .. . Application Project set up for GNU-ARM cross-compilation .. . CppUTest Project to build CppUTest via Cygwin working great .. . Test Project to house unit tests test groups test runner .. . .. . Trouble I m having is that the Test Project builds its unit tests into .o files but won t build the tested .h .c files so the linker fails on undefined references to the missing objects . I can t depend on the object-files from the Application project or that project s builds because they re cross-compiled to ARM EABI objects . I need the Test Project to also build the Application project s source files . Is there a way to tell Eclipse to do this or do I need to set up a pre-build script to copy the tested files into a source tree within the Test Project .. . Answer : I was able to get this working by linking the Application Project s source tree into my Test Project s list of source locations under : Test Project -- Properties -- C C++ General -- Paths and Symbols -- Source Location . The downside to this approach is that unless both the Application and Test Projects are inside the Eclipse workspace an absolute path is required to add the source location .",
"Question : I have a C module and I want to refactor a little bit . There are some global-variables and structures which are not hidden in the module.h file . I use this variables in some test case but nowhere else so I thought it s a good idea to set them to static . In my test cases I extern these variables and fill with test values . But if they will be static-variables I can t reach them from the test case . I don t want to write getter and setter methods and put it to the .h file because I want to hide this variables . I know if I include the .c file into my test case I can see the static-variables . Is there any other way to fill these variables I use cygwin and gcc the test framework is CppUtest . Thanks in advance . Comment : Apparently you want to debug rather than perform unit-testing .. . .. . Answer : Often its a good idea to create these static-variables in a separate file some like to call it scaffolding so that you can get away from including the .c . The basic theory behind this is that if you are always including .c files it quickly becomes impossible to unit test since the whole idea of unit-testing is drilling down and testing one bit of code without depending on the rest of it . Once you re including all these exterior .c files you aren t doing this . Comment : Thanks for the advice it sounds better than I include the whole c file to the test case . But.. . I came from java and jUnit and a little bit difficult to switch the c approach - : Comment : Java does make unit-testing easier . I loved how you could have a main method in each file . Oh well I like C anyway .",
"Question : I m trying to learn TDD using CPPUTest for embedded C unit-testing . I was able to compile a basic C code using gcc on eclipse CDT . I was trying to compile the c++ files that come with CPPUTest . The machine I m trying to run is 64-bit Windows 7 OS . I have installed i686-w64-mingw32 binary package from sourceforge for gcc . The compilation of the test cpp files and linking using make all was successful . But when the tests started running I got the following error . The Program can t start because libstdc++-6.dll is missing from your computer . Try reinstalling the program to fix the problem . But I find libstdc++6.dll under mingw mingw lib . I have added this to the path . Still it doesn t seem to run the tests . Any suggestions to fix this will be helpful . .. . Answer : hi go to this address and download TDM-GCC compiler and befor instal that clean last mingw http : tdm-gcc.tdragon.net",
"Question : Installed g++ 4.9.0 experimental version under Ubuntu I am using certain features provided by this version .. . .. . When building my code I use cmake from a script and it builds correctly . gcc below contains the path where g++ is installed mnt.. . .. . .. . Now when I make the CppuTest to build the Unit Tests for my code I get the following error . In the CppuTest makefile have included CPPUTEST CPPFLAGS + -std c++1y . I guess that am missing some flags in this makefile because as I said the C++ experimental library is building correctly in my regular code . What am I missing .. . Answer : Possible it s an include problem see CppUTest Manual http : cpputest.github.io manual.html memory leak detection - section Conflicts with operator new macros STL and Conflicts with my own overload .. . .. . TL DR .. . .. . In UncrosserTest add includes for CppUTest after your s . Instead of .. . .. . do",
"Question : null .. . Answer : I ve been using the same CodeBlocks 13.12 with the same GDB 7.5 for the same code-project for over two years now . It s a unit test project using the CppUTest framework older than 3.4 - I think . The code is constantly changing of course - maybe that s a red herring - but maybe some change in the code caused my recent problem : .. . .. . Basically since a couple of weeks - when and where ever I set a breakpoint - I get to the breakpoint alright but then I can t move on I can t step over step into continue nothing . If I try I just stay at the same line of code where the breakpoint is and I get the associated .. . .. . debugger output as-if I ask the debugger to go to that same breakpoint again and again . Any idea someone I tried my best to google it but no luck . : - .. . .. . EDIT : To make this more interesting this is actually not consistent behavior . I just set another breakpoint in a subroutine and now things work as expected . Then I have now added a few lines-of-code setting up mocking using the CppUTest and now things work again...maybe a bug in the old CppUTest framework.. . .. . .. . EDIT2 : Now in another location I can step into the subroutine but then I m stuck at the top line of the routine . : -",
"Question : I am using CppUTest in eclipse-cdt ubuntu 14.0 . For inherits of C function in CppUTest I should write .. . .. . Is any alternative to inherit all C project into Cpp for CppUTest What is the disadvantages of extern in CppUTest .. . Answer : Well one alternative is of course to move the extern C declarations into your C-project s headers protected by if defined cplusplus of course . That will however mean that you have to go through the entire project and fix it . It sounds as-if just doing the above in your test code which is where you re using C++ would be easier . Many people do that as a way to make their C code usable from C++ . Personally I think it s a bit dirty since you re mixing languages don t cross the streams http : en.wikipedia.org wiki Proton pack Crossing the streams but it s still very common . See this question http : stackoverflow.com questions 3789340 combining-c-and-c-how-does-ifdef-cplusplus-work for lots of discussion about this . Comment : It works great .",
"Question : I have a C module and I want to refactor a little bit . There are some global-variables and structures which are not hidden in the module.h file . I use this variables in some test case but nowhere else so I thought it s a good idea to set them to static . In my test cases I extern these variables and fill with test values . But if they will be static-variables I can t reach them from the test case . I don t want to write getter and setter methods and put it to the .h file because I want to hide this variables . I know if I include the .c file into my test case I can see the static-variables . Is there any other way to fill these variables I use cygwin and gcc the test framework is CppUtest . Thanks in advance . Comment : Apparently you want to debug rather than perform unit-testing .. . .. . Answer : There are two main possibilities : .. . .. . 1 . The difficulty of testing is showing that the interface provided by the module is incomplete . 2 . Your unit-testing is prying into the internals of the module in a way that consumers would never need to do . If the problem is an incomplete interface then you can add the extra interfaces that make the module more easily testable and more generally usable . For example if the static-variables are counters of some sort you might need to add a reset method to set the counters back to zero ready for the next part of the unit-testing or in the more general use-case to allow the statistics to be zeroed so that you can accumulate the statistics afresh . If the problem is unit-testing needing to probe more deeply than consumers need to probe then I don t see anything wrong with the test code using include sourcecode.c . It keeps the module code clean for general use it allows the unit test to probe more deeply than it would otherwise . It converts the test code from black-box-testing to a form of white-box-testing - the test can see more of the tested code than a regular black-box test can . But that s sometimes helpful . It is often an intermediate stage during development . Once you have all the black-box-testing in-place you may not need to be concerned with probing the internals in the same way - until you make changes . Comment : I think in my case the intarface isn t incomplete . I m inclined to include the whole c file to my test case . Technically it means they are in the same compilation unit so the test case can see the static-variables . But to be honest : I don t like the idea . It looks like a workaround . Is there any solution which I didn t notice Comment : No that s why I outlined the two possibilities . If the interface is incomplete I recommend completing it . For example I am working on some locale-related formatting code . The simpler functions use the current locale but testing that would be a complete bitch . I ve completed the interface by providing generic functions which take a locale as an argument and the most easily used functions without the locale simply find the current locale and then call the generic functions . I can test the generic functions with all sorts of oddball locales in ways which were not possible otherwise . Comment : Thanks Jonathan I realized that is a viable option . So I included the whole c file and gave init value to the static-variables . I can test the module now . Comment : See also How to test a static function http : stackoverflow.com questions 593414 .",
"Question : I am trying to compile the following test application using CodeBlocks and CppUTest however no matter what I do I always get the undefined-reference error . I compiled CppUTest with cygwin in codeblocks I use MinGW . The project directory just has two files main.cpp and tests.cpp I am trying to get this to compile . This is the main.cpp file : .. . .. . This is the tests.cpp file : .. . .. . I already have the libraries libCppUTest.a and libCppUTestExt.a now I have to link them to the project . For this I ve attempted the following : .. . .. . In build options add CppUTest include to search directories for the compiler . In build options add CppUTest lib to search directories for the linker . In link settings add libCppUTest.a and libCppUTestExt.a to link libraries . Also tried with the full path to these libraries . I think the problem is not Codeblocks because I ve tried with every guide I ve found to link the libraries and I always get undefined-reference . I ve also tried to add these as global settings but I get the same error undefined-reference . Any ideas Comment : This is no C code . Do not add C tag for C++ . Comment : Ok that s fine . Apologies . Comment : Libraries in C++ have no standard format and are not inter-operable even with different compiler versions . I m suspecting it s because of the different compilers . Read about name-mangling in C++ shared-libraries . Comment : can t you use Cmake on windows to compile it and can t you use DLL libraries Comment : I tried to use Cmake GUI and MinGW make however CppUTest 3.7.1 latest version doesn t build with MinGW due to an issue of this compiler with pthreads . So I used cygwin to compile it . .. . Answer : As pointed out by @Sreekar the problem is that I was using MinGW in codeblocks and the libraries were compiled with cygwin . Changing the compiler to cygwin in Codeblocks fixed the issue for me . This describes the process to change the compiler to cygwin in codeblocks if needed : .. . .. . https : www.youtube.com watch v oVmd0P85D8o",
"Question : I am getting started with Test Driven Development for embedded C and I started to read the book : Test-Driven development for embedded C in which they recommend two development system test-environments : Unity and CppUTest . Thus I decided to download the code of both and also downloaded and installed Cygwin in order to compile the stuff . However once I download everything I get really lost since there is not good documentation of this kind : .. . .. . 1- First go to XXX . 2- Run XXX . 3- Copy XXX file into XXX folder . 4- And voila all set .. . .. . The only thing I find when I download CppUTest and Unity is a ton of folders with makefiles and stuff and some READMEs that for me are like written in Chinese . The furthest I got was to compile the CppUTest and run its tests and that is it . So here is my question . Imagine that I already have my Module.c Module.h and ModuleTest.cpp . What do I have to do to compile it and run the test I wonder if you have experience with this tools and can give me some tips and advices . Thank you and best regards . Comment : http : cpputest.github.io manual.html seems clear to me . But I miss why you think embedded C and cygwin should be related . Comment : Well I need Cygwin to follow the examples in the book . I didn t go much further in the book but I guess that you can simulate hardware in some way for example if you have to write to an array of leds you just need the address where they are located but the program doesn t actually care if this address is actually connected to hardware or not so you could just have virtual leds . Also I followed that tutorial but didn t get anything . So lets assume I have my module.c module.h and test module.c what do I have to do to run the test .. . Answer : Please in the future follow the rule : one problem and one specific question . Vague question will hardly receive good answer . Considering cpputest this work : .. . .. . That is also basically what is written in README.md Comment : Hello Matzeri you are right and I modified the title and the text body to make my question more clear . I hope it is more understandable now . Regarding your answer I already managed to do that compiling CppUTest but my problem is how to run the first test of one of my modules . As i just edited in my question lets assume I have my module.c module.h and ModuleTest.cpp what do I have to do to run the test Comment : I agree that cpputest documentations sucks . Try odd-e.com material 2009 JAOO TDD C Tutorial https : www.odd-e.com material 2009 JAOO TDD C Tutorial TDD in C JAOO tutorial.pdf",
"Question : null .. . Answer : I m writing an unit test where I have to perform different calls to a mocked object . However I m expecting different return output parameters and input parameters on each calls . If I write something like this : .. . .. . It doesn t work because I have an error on the second call with unexpected parameters they seem to be compared with the expected parameters set at the first expectation or the other way around respectively . I tried with different expectations such as expectNCalls but it doesn t work either . Is it possible and how to achieve this with CPPUtest mocking facility",
"Question : null .. . Answer : I am using cpputest library to test my application . I am using scons . when I call SConScriptUtest I get the following error : .. . .. . cannot find -lCppUTest cannot find -lCppUTestExt .. . .. . This is while I have included the path for finding CppUTest and CppUTestExt : .. . .. . LIBPATH points to where your libraries reside : testenv.Append LIBPATH . . cpputest lib .. . .. . my . . cpputest lib path has both CppUTest.lib and CppUTestExt.lib .. . .. . So why is it not picking up Comment : Are you using the testenv environment to build your test program testenv.Program .. . If that s not it can you post the full build command scons generates and the full resulting error Comment : @KennethE.Bellock I have my scons code added above . Comment : SConscript is helpful but even more so if you can scale it down to a minimal example . Can you post the build line scons generates to make your test executable and the full resulting error Comment : @KennethE.Bellock the problem is building for platform . I was building for posix whereas it s gotta be building for win32 platfrom thanks for your help anyways .",
"Question : I m doing Unit Testing of embedded C code without running on target hardware.Here is one part of the code : .. . .. . The function write to i2c writes a value to a specific register . The function read from i2c reads back the value from the register . Further I m using the variable tempReadback to compare if the read back value is the same as the written one . So far OK and this works on the target hardware . Now I m doing the Uni Tests without running the code on target Hardware Software in the Loop . This means the expression tempReadback msg- value will never be true tempReadback is 0 and I will run each time in the statement somethingB . Is there any way to fake the register read back I m using CppUTest as framework . Will be thankful Comment : I gave you a very detailed answer did you read it Comment : Hi @marco.m thank you very much for the detailed explanation Sorry I have been on vacation and just now reading your message . I will try it and inform about the results . .. . Answer : I take a look into your proposed book about TDD and the mock objects . OK so as I understand for example in this line mocks are already created : .. . .. . the program jumps to the mocked read from i2c function from i2c mock.cpp with parameters defined by myself and not the real one from the Unit Under Test Or we really call our function from Unit Under Test but we manipulate this function with the parameters defined in the mock",
"Question : I ve following problem . When I try to compile .so library everything works fine . By when I try to create executable which use for example logger.cpp eg . test file I get wall of errors . Full log is here http : pastebin.com AAbMTz6k . However the most funny thing that it compiles on ones developer computer . We check compiler version cmake version and everything is the same . The cpputest version wasn t the same . Maybe anyone of you have face such problem and know what we doing wrong . .. . Answer : Finally we beat that problem . The issue here was as suggest @Jonathan Wakely that cpputest defines macro NEW which prevent new from being included correctly . To resolve the issue we reorder the includes to include all libs before including cpputest headers . Comment : That is a bug in cpputest . The identifier NEW is a reserved name http : stackoverflow.com q 228783 981959 so a library like cpputest must not use it . Comment : I ll report this on theirs site .",
"Question : null .. . Answer : I ve been using CppUTest with g++ 4.7.2 for a while now without problems . However I ve just flipped the -std c++11 option on so I can start using std : : unique-ptr and it fails immediately . Even just compiling the main module : .. . .. . fails with variations on : .. . .. . Removing the -std c++11 option makes everything work just fine again . The CppUTest documentation makes some comments about the macros conflicting with overloaded new operators and suggests including the standard headers first but I get this problem without including any headers at all although it looks like CppUTest CommandLineTestRunner.h is including string itself . Anyone come across this before or know what the issue is Comment : Hey Paul I wonder if you still have the same problems with a more recent version of CppUTest.. .",
"Question : Is there any way to mock static global variable to use in test function Or any workaround for that Below example of such situation : Comment : I m not familiar with CppUTest but it s not possible to just create an accessor and return the mock variable when needed Comment : Yes I ve think about that . But in this way I produce not really usable code so I was wondering if there is possible to mock just the global variable . .. . Answer : We often forget about the linker . We can use a different object file to mock an interface . This mock-obj would contain a different definition of your global . But current unit test frameworks only work on code lebel.. . So spme build-fu will be needed to add mock objs to the test build ."
]
} | [
"yes-answer-long",
"yes-answer-short"
] | xunit | UNK_RELATION |
fluentbootstrap@css@133 | fluentbootstrap -- fluentbootstrap provides extensions helper classes model-binding and other goodies to help you use the bootstrap @placeholder framework from .net code . | {
"confidence": [
49.07025146484375,
48.19232940673828,
47.567447662353516,
42.524322509765625,
42.413455963134766,
41.728397369384766,
39.3016357421875,
38.02259063720703,
36.717586517333984,
26.936641693115234,
26.06741714477539,
26.009830474853516,
25.89666175842285,
24.776771545410156,
24.565702438354492,
24.565702438354492,
23.772640228271484,
22.806346893310547,
22.544727325439453,
21.145401000976562,
21.075347900390625,
20.934165954589844,
20.686609268188477,
20.471872329711914,
20.4346923828125,
20.353816986083984,
18.64384651184082,
18.64384651184082,
18.64384651184082,
18.64384651184082,
18.64384651184082,
18.64384651184082,
18.64384651184082,
18.64384651184082,
18.64384651184082,
18.64384651184082,
18.64384651184082,
18.318878173828125,
18.05876922607422,
16.78852081298828,
16.348798751831055,
15.974115371704102,
15.819114685058594,
15.725530624389648,
15.604207992553711,
15.44127082824707,
15.44127082824707,
15.33862018585205,
15.220563888549805,
15.220563888549805,
15.220563888549805,
14.923272132873535,
14.875885963439941,
14.643310546875,
14.38594913482666,
13.51059341430664,
13.51059341430664,
13.51059341430664,
13.51059341430664,
13.51059341430664,
13.51059341430664,
13.51059341430664,
13.51059341430664,
13.51059341430664,
13.51059341430664,
13.51059341430664,
13.51059341430664,
13.51059341430664,
13.51059341430664,
13.51059341430664,
13.51059341430664,
13.51059341430664,
13.51059341430664,
13.51059341430664,
13.51059341430664,
13.51059341430664,
13.51059341430664,
13.011302947998047,
12.724685668945312,
12.603363037109375,
12.440425872802734,
12.440425872802734,
11.740478515625,
10.509748458862305,
10.509748458862305,
10.509748458862305,
10.509748458862305
],
"content": [
"Alternatively can you suggest any other ways to get a multi columns layout in FluentBootstrap",
"You don t need to use the form instance to make FluentBootstrap recognize you re in a form .",
"Is it possible to use validation messages in FluentBootstrap http : fluentbootstrap.com on form element level",
"There is an example of this as well as some other examples here : https : github.com daveaglick FluentBootstrap blob develop FluentBootstrap.Tests.Web Views MvcTests MvcForms.cshtml",
"For example here s a validation errors getting set : github.com daveaglick FluentBootstrap blob develop https : github.com daveaglick FluentBootstrap blob develop FluentBootstrap.Tests.Web Controllers MvcTestsController.cs L32 and here s the test that shows it : github.com daveaglick FluentBootstrap blob develop https : github.com daveaglick FluentBootstrap blob develop FluentBootstrap.Tests.Web Views MvcTests MvcForms.cshtml L32 Is it not working for you",
"I m using fluentbootstrap http : fluentbootstrap.com library in my MVC 5 project .",
"I m using fluentbootstrap and i m trying to add a button with icon near an input of my form .",
"I ll have to setup a new sample project as I have continued on this project without FluentBootstrap but it is something I would like to use in future projects .",
"I have installed FluentBootstrap v3.3.5 and Bootstrap v3.3.5 in my project but this in this View Html.Bootstrap gives me a compilation error : .. . .. . I have also included FluentBootrap in the namespace section of the Views web.config .",
"I have checked the source code and column size classes are explicitly removed from the form-group and applied to a new contained div element .",
"I m experimenting with Fluent Bootstrap but am finding the API documentation sparse .",
"It s just a convenience to make calling the extensions appropriate to a form easier .",
"You can also just call something like Bootstrap.DisplayFor x x.Name right from the global Bootstrap object in your partial and it will respect any settings you ve placed in the containing form defined in the containing view .",
"A lot of work was spent ensuring that the Bootstrap control stack would carry-over into partial-views .",
"You have two options here : .. . .. . The first is to just pass the form object to the partial action as part of the model .",
"In your case you would just add it as another property in the anonymous model object you re sending to the action .",
"I was able to achieve the layout I wanted using : .. . .. . or .. . .. . or .. . .. . or .. . .. . but I d like a cleaner syntax like the following : .. . .. . but this would require adding a new extension AND not removing col sizing classes from form-group elements .",
"The net result is that the inner control is resized properly but as the form-group is still considered a 12 units sized element the next control is placed in a different line .",
"Should this control just be in a half-width column with other arbitrary content",
"You beat me to it : - glad you got it to work",
"Adding the extra extension wouldn t be a problem a flag could just be set to prevent the class removal from the containing form-group .",
"Maybe I am just missing the concept of fluent bootstrap usage.. .",
"Seems like most everything can use the begin method to create a wrapper around inner elements such as : .. . .. . This works and produces the desired markup .",
"However I d like to understand the actual problem a little more - are you able to post a screen shot of what you want it to look like",
"I have a view that renders a form with code similar to the following : .. . .. . How can I access the form object in the partial view so that the same layout is applied to the whole form",
"Thank you very much for pointing me in the right direction :",
"It worked perfectly",
"Especially the second option made eveything very easy .",
"I am trying to have fields arranged in 2 columns within a horizontal form but I cannot add a col-md-6 class to a form-group element .",
"The form should like something like this Fiddle https : jsfiddle.net Giovax xvfcns13 2 .",
"Would this be possible",
"In the examples above we ve got a half-width control but what about the controls around it",
"Dave I have added a Fiddle with the desired outcome .",
"In the last cell of each table row I want to place two buttons i.e .",
"edit delete .",
"The problem is that the @row.TableData component builder is being passed two MVC HtmlStrings and is expecting a string",
"maybe",
"How can i use my dynamic variable img like this : .. . .. . There is a error when i try to execute my code .",
"If there is no particular reason to use InpuFor you can do the following .",
"Depending on the model property type the editor template could have an input or it could have a textarea or it could have a whole bunch of form elements for a really complex editing experience .",
"When I use : .. . .. . There is no validation except validation error class on input tag .",
"Code : .. . .. . The result for the third row with the field Name is the control label + the input in the same row but the button is on the next row .",
"Unfortunately you can t do what you want to at this time .",
"Comment when you update .",
"That should work with what you have .",
"You mean validation for Name if there are any validation errors",
"Until you compile intellisense will show this error .",
"If you include 3rd party libraries in your project that contain HTML helpers you typically have to compile first before Visual Studio will recognize them .",
"Just add @form.ValidationSummary where you want the general validation summary to appear .",
"This will show what error message you put on your Name property s attribute .",
"If you are referring img as dynamic object because of var it is not a dynamic object .",
"As far as I know you wouldn t be able to do it in straight ASP.NET MVC either .",
"2- When you use @form.EditorFor and you have a UIHint attribute on the corresponding model s property and defined an EditorTemplate .",
"I have a simple-form that works fine on my machine but gives me error on production server : .. . .. . this is the code in the form : .. . .. . the original form had more controls but I removed other parts to find problematic part .",
"Your sample code looks fine to me you don t need the semicolon after EditorFor but that wouldn t cause a crash .",
"@form.EditorFor .AddAttributes new @class class makes a div wrapper with added attributes is there any way to actually add class to input itself instead of wrapping it around",
"Sorry it took so long for me to find this - still not used to coming on StackOverflow and searching for my libs : .",
"The problem is that calling EditorFor really just farms out to an editor template Scott Hanselman has a nice little real-world example on his blog http : www.hanselman.com blog ASPNETMVCDisplayTemplateAndEditorTemplatesForEntityFrameworkDbGeographySpatialTypes.aspx .",
"Since we don t know what the EditorFor might return we have no way of knowing to which element or even if the extra attributes should be applied .",
"I want to show validation message for Name property and has-error class on form-group container .",
"This is summary .",
"And what about form item level validation",
"Yes it works but the class has-error on field container form-group is not set .",
"Such as",
"I want my button in the same row of my input just after the input .",
"What is the solution",
"Thanks .",
"This layout is a bit tricky - the key is to manually layout the last form group including manually positioning the label :",
"Thanks there is another solution :",
"img is simply System.String .",
"What am I missing",
"Can we see the corresponding part of your web.config",
"Maybe there is something wrong",
"Give me a day and I ll update my question .",
"I have compiled .",
"Cleaned and recompiled as well .",
"Was the first thing I tried .",
"When you publish are you publishing all files",
"Are you still having this problem",
"AND you have an error in the template file .",
"Any chance you could post send the project",
"But instead of seeing the actual error you see this error .",
"I have found tow situations where this error will occur : .. . .. . 1- When you forget to copy HtmlAgilityPack.dll to production server That s me",
"and I still see the error even with a single control on the form .",
"It seems like a bug in the library .",
"The error you re seeing is usually caused when a control is created but not disposed before it s container is disposed .",
"Since HTML is a tree this is primarily a sanity check ."
]
} | {
"confidence": [
66.17366790771484,
62.3475456237793,
57.55442810058594,
48.93324661254883,
47.791954040527344,
47.357948303222656,
47.357948303222656,
39.08898162841797,
25.94978141784668,
16.59322166442871,
15.336095809936523
],
"content": [
"Question : Is it possible to use validation messages in FluentBootstrap http : fluentbootstrap.com on form element level When I use : .. . .. . There is no validation except validation error class on input tag . I want to show validation message for Name property and has-error class on form-group container . .. . Answer : Just add @form.ValidationSummary where you want the general validation summary to appear . There is an example of this as well as some other examples here : https : github.com daveaglick FluentBootstrap blob develop FluentBootstrap.Tests.Web Views MvcTests MvcForms.cshtml Comment : This is summary . And what about form item level validation Comment : You mean validation for Name if there are any validation errors That should work with what you have . For example here s a validation errors getting set : github.com daveaglick FluentBootstrap blob develop https : github.com daveaglick FluentBootstrap blob develop FluentBootstrap.Tests.Web Controllers MvcTestsController.cs L32 and here s the test that shows it : github.com daveaglick FluentBootstrap blob develop https : github.com daveaglick FluentBootstrap blob develop FluentBootstrap.Tests.Web Views MvcTests MvcForms.cshtml L32 Is it not working for you Comment : Yes it works but the class has-error on field container form-group is not set . Maybe I am just missing the concept of fluent bootstrap usage.. .",
"Question : I have a view that renders a form with code similar to the following : .. . .. . How can I access the form object in the partial view so that the same layout is applied to the whole form .. . Answer : A lot of work was spent ensuring that the Bootstrap control stack would carry-over into partial-views . You have two options here : .. . .. . The first is to just pass the form object to the partial action as part of the model . In your case you would just add it as another property in the anonymous model object you re sending to the action . You don t need to use the form instance to make FluentBootstrap recognize you re in a form . It s just a convenience to make calling the extensions appropriate to a form easier . You can also just call something like Bootstrap.DisplayFor x x.Name right from the global Bootstrap object in your partial and it will respect any settings you ve placed in the containing form defined in the containing view . Comment : It worked perfectly Especially the second option made eveything very easy . Thank you very much for pointing me in the right direction :",
"Question : I have installed FluentBootstrap v3.3.5 and Bootstrap v3.3.5 in my project but this in this View Html.Bootstrap gives me a compilation error : .. . .. . I have also included FluentBootrap in the namespace section of the Views web.config . What am I missing Comment : Can we see the corresponding part of your web.config Maybe there is something wrong Comment : I ll have to setup a new sample project as I have continued on this project without FluentBootstrap but it is something I would like to use in future projects . Give me a day and I ll update my question . Comment : Comment when you update . .. . Answer : If you include 3rd party libraries in your project that contain HTML helpers you typically have to compile first before Visual Studio will recognize them . Until you compile intellisense will show this error . Comment : I have compiled . Cleaned and recompiled as well . Was the first thing I tried .",
"Question : null .. . Answer : I am trying to have fields arranged in 2 columns within a horizontal form but I cannot add a col-md-6 class to a form-group element . The form should like something like this Fiddle https : jsfiddle.net Giovax xvfcns13 2 . I have checked the source code and column size classes are explicitly removed from the form-group and applied to a new contained div element . The net result is that the inner control is resized properly but as the form-group is still considered a 12 units sized element the next control is placed in a different line . I was able to achieve the layout I wanted using : .. . .. . or .. . .. . or .. . .. . or .. . .. . but I d like a cleaner syntax like the following : .. . .. . but this would require adding a new extension AND not removing col sizing classes from form-group elements . Would this be possible Alternatively can you suggest any other ways to get a multi columns layout in FluentBootstrap Comment : Adding the extra extension wouldn t be a problem a flag could just be set to prevent the class removal from the containing form-group . Comment : However I d like to understand the actual problem a little more - are you able to post a screen shot of what you want it to look like In the examples above we ve got a half-width control but what about the controls around it Should this control just be in a half-width column with other arbitrary content Comment : Dave I have added a Fiddle with the desired outcome .",
"Question : Is it possible to use validation messages in FluentBootstrap http : fluentbootstrap.com on form element level When I use : .. . .. . There is no validation except validation error class on input tag . I want to show validation message for Name property and has-error class on form-group container . .. . Answer : If there is no particular reason to use InpuFor you can do the following . This will show what error message you put on your Name property s attribute . Such as",
"Question : I m using fluentbootstrap and i m trying to add a button with icon near an input of my form . Code : .. . .. . The result for the third row with the field Name is the control label + the input in the same row but the button is on the next row . I want my button in the same row of my input just after the input . What is the solution Thanks . .. . Answer : This layout is a bit tricky - the key is to manually layout the last form group including manually positioning the label :",
"Question : I m using fluentbootstrap and i m trying to add a button with icon near an input of my form . Code : .. . .. . The result for the third row with the field Name is the control label + the input in the same row but the button is on the next row . I want my button in the same row of my input just after the input . What is the solution Thanks . .. . Answer : Thanks there is another solution :",
"Question : I m using fluentbootstrap http : fluentbootstrap.com library in my MVC 5 project . I have a simple-form that works fine on my machine but gives me error on production server : .. . .. . this is the code in the form : .. . .. . the original form had more controls but I removed other parts to find problematic part . and I still see the error even with a single control on the form . It seems like a bug in the library . Comment : When you publish are you publishing all files Comment : Sorry it took so long for me to find this - still not used to coming on StackOverflow and searching for my libs : . The error you re seeing is usually caused when a control is created but not disposed before it s container is disposed . Since HTML is a tree this is primarily a sanity check . Your sample code looks fine to me you don t need the semicolon after EditorFor but that wouldn t cause a crash . Are you still having this problem Any chance you could post send the project .. . Answer : I have found tow situations where this error will occur : .. . .. . 1- When you forget to copy HtmlAgilityPack.dll to production server That s me 2- When you use @form.EditorFor and you have a UIHint attribute on the corresponding model s property and defined an EditorTemplate . AND you have an error in the template file . But instead of seeing the actual error you see this error .",
"Question : I m experimenting with Fluent Bootstrap but am finding the API documentation sparse . In the last cell of each table row I want to place two buttons i.e . edit delete . The problem is that the @row.TableData component builder is being passed two MVC HtmlStrings and is expecting a string maybe .. . Answer : Seems like most everything can use the begin method to create a wrapper around inner elements such as : .. . .. . This works and produces the desired markup . Comment : You beat me to it : - glad you got it to work",
"Question : @form.EditorFor .AddAttributes new @class class makes a div wrapper with added attributes is there any way to actually add class to input itself instead of wrapping it around .. . Answer : Sorry it took so long for me to find this - still not used to coming on StackOverflow and searching for my libs : . Unfortunately you can t do what you want to at this time . As far as I know you wouldn t be able to do it in straight ASP.NET MVC either . The problem is that calling EditorFor really just farms out to an editor template Scott Hanselman has a nice little real-world example on his blog http : www.hanselman.com blog ASPNETMVCDisplayTemplateAndEditorTemplatesForEntityFrameworkDbGeographySpatialTypes.aspx . Depending on the model property type the editor template could have an input or it could have a textarea or it could have a whole bunch of form elements for a really complex editing experience . Since we don t know what the EditorFor might return we have no way of knowing to which element or even if the extra attributes should be applied .",
"Question : null .. . Answer : How can i use my dynamic variable img like this : .. . .. . There is a error when i try to execute my code . Comment : If you are referring img as dynamic object because of var it is not a dynamic object . img is simply System.String ."
]
} | [
"yes-answer-long",
"yes-answer-short"
] | css | UNK_RELATION |
jri@interface@24 | jri -- jri is a java r @placeholder which allows to run r inside java applications as a single thread . | {
"confidence": [
64.28720092773438,
59.91161346435547,
59.91161346435547,
58.213138580322266,
58.213138580322266,
58.213138580322266,
57.93704605102539,
57.086360931396484,
57.086360931396484,
56.912662506103516,
55.73588562011719,
55.33528137207031,
55.17732238769531,
55.17732238769531,
53.35255432128906,
51.74433135986328,
51.72988510131836,
51.0018196105957,
50.6552619934082,
50.22697067260742,
50.031410217285156,
50.031410217285156,
50.031410217285156,
50.031410217285156,
49.154518127441406,
48.802425384521484,
48.52849578857422,
46.323448181152344,
45.97674560546875,
45.63591384887695,
45.01276779174805,
44.84996795654297,
43.926673889160156,
43.926673889160156,
43.11162567138672,
42.89312744140625,
42.84239959716797,
42.688880920410156,
42.253379821777344,
42.13151931762695,
42.03449249267578,
42.030517578125,
41.795860290527344,
41.7553825378418,
41.7553825378418,
41.72180938720703,
41.419090270996094,
41.173709869384766,
41.0626335144043,
41.0626335144043,
40.90373992919922,
40.81903839111328,
40.3681755065918,
40.036468505859375,
39.935855865478516,
39.720611572265625,
39.720611572265625,
39.720611572265625,
39.670738220214844,
39.35493087768555,
39.33683776855469,
39.10244369506836,
39.043766021728516,
38.593833923339844,
38.593833923339844,
38.593833923339844,
38.5723762512207,
38.15338134765625,
38.053619384765625,
37.418304443359375,
36.91151428222656,
36.470924377441406,
36.45490264892578,
36.45490264892578,
36.33420181274414,
36.33420181274414,
36.20215606689453,
36.01088333129883,
35.71982955932617,
35.71982955932617,
35.66141128540039,
35.328125,
34.71275329589844,
34.60995101928711,
34.59305191040039,
34.40386962890625,
33.75448989868164,
33.75448989868164,
33.732967376708984,
33.59934616088867,
33.59934616088867,
33.58597183227539,
33.42646408081055,
33.32646560668945,
33.12443161010742,
32.911476135253906,
32.86536407470703,
32.75137710571289,
32.734031677246094,
32.734031677246094
],
"content": [
"i m using JRI to talk to R through Java .",
"So I m trying to make use of R from Java through JRI .",
"I m running an R script in Jboss a java application server using JRI .",
"I am using the JRI api to use R in Java .",
"I am attempting to load the JRI for R integration in Java .",
"I am doing java and R integration using JRI .",
"I am trying to use JRI so that I can run R inside a Java executable .",
"I have a Java program calling a R script using JRI .",
"I also want to integrate Java with R using JRI .",
"http : stackoverflow.com questions 8037411 how-i-can-load-a-r-script-into-jri-and-execute-from-java .. . .. . Problem loading R own created libraries in Java JRI code http : stackoverflow.com questions 2477398 problem-loading-r-own-created-libraries-in-java-jri-code .. . .. . but I still get a NullPointerException .",
"I am trying to user jri as interface for R and java .",
"I have recently started using JRI to run R code script within Java .",
"Therefore this is what I have : .. . .. . Java program in JBoss -- invokes JRI and runs R script -- invokes Java program .",
"However when I m trying to use rJava JRI to call Java from R and Java code instance new REngine .",
"I was using R to plot the graph using JRI .",
"Use install.packages rJava in R - that will install rJava which includes JRI .",
"also could you post the Java Code with JRI R so i can see the full problem",
"There are two different approach to connect Java and R . .. . .. . If you want to use JRI you have to start your java program using the JVM parameter -Djava.library.path pointing at the folder that contains JRI library .",
"Does Java look for the dependency of the JRI DLL",
"I need to build an application with JRI that works similarly to the R console .",
"http : blog.comsysto.com 2013 07 10 java-r-integration-with-jri-for-on-demand-predictions .. . .. . This is the error the console gives me .",
"I tried the answers provided in the following questions .. . .. . How I can load a R script into JRI and execute from Java",
"I m running a test class that came with my JRI Java-R interface package .",
"I am using JRI and want to get a numeric value from R as primitive long into java .",
"I want to call some R code from within Java on a Linux machine that has R installed already so the Java R Interface JRI is needed .",
"Once installed you can ask R about the location of JRI with system.file jri package rJava .. . .. . Note that in order to use JRI you will need to setup the environment properly typically using R CMD and set java.library.path to include the JRI location .",
"I m using R 2.10 and the latest JRI 0.5-0 under Windows .",
"But in JRI it doesn t",
"I believe asDouble http : www.rosuda.org r nightly javadoc org rosuda JRI REXP.html asDouble and asDoubleArray http : www.rosuda.org r nightly javadoc org rosuda JRI REXP.html asDoubleArray are what you need .",
"One more thing when i run above code in R it creates the image using JRI it shows blank image .",
"My java project uses an external library its called jri .",
"you need to set up your VM options for example in netbeans ive inserted the following option for JRI -Djava.library.path C : Program Files R R-2.15.3 library rJava jri x64",
"I am using JRI .",
"It says the JRI library was not found .",
"This is how I load it : .. . .. . But I m also trying to call that functions from Java JRI http : www.rforge.net JRI code and when I load the new R package Java doesn t seem to find the pacakge throwing the message Error in library Media : object Media not found .. . .. . This is my current code using JRI : .. . .. . It also fails without the setwd command and simple calls to existing R functions work fine .",
"I am actually a little bit confused - I was under the assumption that the issue is with JRI as the exact same statements could run in RStudio R console successfully .",
"Java -cp could run the jar successfull as below lib java -cp usr lib64 R library rJava jri REngine.jar : usr lib64 R library rJava jri JRI.j ar : usr lib64 R library rJava jri JRIEngine.jar : . rjava.jar testRJava 0.9858369643334299 REAL 1.0 3.0 2.0 5.0 result : STRING -0.04885 -1.680110 -1.292430 -0.748090 0.008118 0.642391 1.174235 histval mids : REAL -1.75 -1.25 -0.75 -0.25 0.25 0.75 1.25 1.75 2.25 2.75 histval counts : INT 6 6 20 21 17 17 7 4 1 1",
"This http : stackoverflow.com questions 26329094 trying-to-integrate-r-with-my-java-application-using-jri-but-im-getting-error rq 1 thread involves the same error and some of the suggestions might be of help .",
"Two helpful posts on setting up rJava and JRI in Eclipse : stackoverflow.com questions 3311940 http : stackoverflow.com questions 3311940 r-rjava-package-install-failing and binfalse.de 2011 02 talking-r-through-java http : binfalse.de 2011 02 talking-r-through-java",
"Unfortunately the JRI library is not found on the classpath .",
"For instance : .. . .. . If you have trouble finding JRI installation directory try to look for the JRI SO library : .. . .. . In addition make sure you have created R HOME and LD LIBRARY PATH in your environment : .. . .. . R HOME : Pointing to your local R installation Ej : Library Frameworks R.framework Resources .. . LD LIBRARY PATH : Pointing to R lib directory as well as JRI directory EJ : LD LIBRARY PATH : app vendor R lib R lib : app vendor R lib R bin .. . .. . Here is an example : .. . .. . On the other hand if you want to use Rserve you need to start Rserve in a separate process and then create a RConnection from your java process .",
"I am new to R and trying to load fgarch library using JRI REngine .",
"One can only create a single instance of Rengine using JRI .",
"Do the statements need to be written differently when calling from Java via JRI",
"You may want to have a look at JGR http : rforge.net JGR - it is a Java console implemented using JRI .",
"I am trying to run R summary command through JRI to get the result for mulitvariate Linear Regression .. . .. . Now When i try to run the same command through JRI and trying to get only coefficients for same data will fetch below result : .. . .. . From the above result what i get from JRI will fetch me only coefficient values not the parameters like what we get in R Console Departments list and Grade in this Case .",
"There is a mailing list where rJava and JRI topics are discussed .",
"I know that is possible to run rJava from within JRI but is it possible in an application server like Jboss instead of a plain Java object",
"The JRI homepage http : www.rforge.net JRI says that the package is bundled in rJava http : www.rforge.net rJava .",
"I have JRI running and the very last thing is to take the data from an ArrayDeque and give it to JRI to its job .",
"I drew a simple R plot with JRI and want to include this plot in my customized JFrame .",
"You can have a look at the run script and the JRI examples .",
"The second step is where I am hitting huge problems - I still see an error with finding the R DLL which is a dependency of the JRI DLL .",
"The JRI Files section http : www.rforge.net JRI files though in addition to the above 2 JARs also includes JRI.jar and all three of these libraries are more recent than the 2 in inst jri .",
"@YehoshaphatSchellekens I added System.setProperty JRI -Djava.library.path D : Misc RLib rJava jri x64 to my code .",
"btw this project is really cool the JRI alternative is terrible .",
"Also couldn t find any JRI documentation .",
"Ok sorry for that I meant JRI and not rjava .",
"I have created a web-service which has the JRI code .",
"I have a java code and I m using Rserve to run my R code inside the java .",
"It s an error in R not in Java .",
"I declare the JRI engine as follows in my Java program : .. . .. . This works fine however I would like to get the console output in a Java String instead of the Java console .",
"Instead JRI allows you to have R do all the work for you - you just implement the console callbacks RMainLoopCallbacks to handle all your console I O and then start the event-loop .",
"How can this be performed by JRI Rserv Rcaller",
"Or is JRI allocating space that actually isn t needed",
"I was using JRI to plot a graph in JSP .",
"I could call R from Java and call Java function from R successfully both .",
"I have this simple piece of code that tries to load the JRI module .",
"Try this out : .. . .. . You ll see that for the first two commands a you receive .. . .. . But the rest b goes like this : .. . .. . It s a problem with R in general usually this works but not in JRI",
"i meant where is the Java implementation of R",
"I m currently using JRI the Java package in order to use some of the functions provided by R . .. . .. . Let s say my R command goes like this : .. . .. . If I put this into my REngine.eval function it crashes because I m supposed to enter the whole command into one eval command .",
"I don t have the JRI set up on my computer but I think you should be able to pass a string array to R using re.assign and then convert that to a factor in R using re.eval .",
"I m using the JRI package to build an application using the catR package .",
"here s my code I m using JRI interface for my function .",
"I installed rJava and integrate JRI with java and every thing work correctly coz i tried a simple example calculate the mean of a list .",
"Here s what I know to make it work : .. . -Make sure that the path to the JRI DLL is in the java.library.path so java can load the native library .",
"Hello although you are running your process from Java using JRI i would recommend you to try reproducing your test outside Java if not done yet at least it would allow to check if there is an unexpected behavior in the R business logic .",
"How do we invoke R language R script from java",
"Java objects will be wrapped as R external objects .",
"Below is the R code and some Java code .",
"I am trying to run an example of JRI and being unsuccessful here is a link-to the example .",
"I am new to JRI rJava JavaGD and have some problems with it .",
"You may want to scan the stats-rosuda-devel mailing list which is the canonical place to ask about rJava JRI .",
"Within the R script I have a call to a Java class .",
"Is the Memory used by R included into the Java Heap",
"The constructor without arguments create s a new engine by hooking into an existing initialized R instance which is calling this constructor from the doc http : rforge.net org doc org rosuda JRI Rengine.html .",
"I am passing the java.library.path as VM arguments but JRI fails to load with the following error : .. . .. . Thanks in advance for your help .",
"The very last thing for my project is that I have to make ARIMA to work under JRI .",
"The output of my java.library.path and R HOME appears correct too : .. . .. . System.getProperty java.library.path : C : Users .. . Documents R win-library 3.1 rJava jri x64 C : Program Files R R-3.1.1 bin x64 .. . .. . System.getenv R HOME : C : Program Files R R-3.1.1 .. . .. . Does anybody have any suggestion as to what the issue might be",
"No JAR files alone are not enough - you have to make sure you have java.library.path setup to find the JRI dynamic library and also set environment-variables required by R such as R HOME .",
"When I try the following in R terminal .. . .. . I get the following as the result .. . .. . But when I try this in a JRI application .. . .. . This is what I get .. . .. . How am I supposed to retrieve the first column A B C. . of the result",
"While testing rtest.java which comes in rJava JRI package some commands are failing but some are sucessfull .",
"Normally this is caused by an error of R . Is it possible to get the output of the R-Console into Java in order to read the error",
"I added the three JAR files found here https : www.rforge.net JRI files to my build path and I copy and pasted the code found in the accepted answer here http : stackoverflow.com questions 2180235 r-from-within-java .",
"it seems like you haven t activated any R code within Java im looking for Java code like engine.eval some r code.... . is this all the code you used",
"I was wondering if it is possible to write to a csv file in R from Java .",
"Here are the steps I have taken : .. . .. . 1 Install R .. . .. . 2 Execute install.packages rJava in R to install rJava .. . .. . 3 Create a R HOME system variable with value C : Program Files R R-3.1.2 .. . .. . 4 Add the following to my PATH variable : C : Program Files R R-3.1.2 bin x64 C : Users USERNAME Documents R win-library 3.1 rJava jri x64 .. . .. . 5 Added the JRI.jar located in C : Users USERNAME Documents R win-library 3.1 rJava jri as a dependency in IntelliJ .. . .. . 6 Set the VM options in IntelliJ to -Djava.library.path C : Users USERNAME Documents R win-library 3.1 rJava jri x64 .. . .. . 7 Start R and execute library rJava .. . .. . 8 Run my program to test if everything is set up .. . .. . Get the following error : .. . .. . If I remove the VM option so that java.library.path isn t specified then I get the following error :",
"I am trying to integrate R code inside java code.Primary objective is to be able to use predictions on models created in R . I am able to set up the environment properly and basic R commands are working fine .",
"I am using Rengine to run R scripts in Java I tried to stop destroy the Rengine object but it did not work .",
"I use org.rosuda.jri lib to run an R script that implements the ordinary kirging algorithm via java ."
]
} | {
"confidence": [
77.30130767822266,
75.06979370117188,
74.05853271484375,
73.34315490722656,
71.17903137207031,
70.77838897705078,
70.05601501464844,
69.31722259521484,
67.57940673828125,
66.06878662109375,
65.21243286132812,
65.18000793457031,
64.56187438964844,
63.80976867675781,
63.69248962402344,
62.91288757324219,
62.284820556640625,
61.97846984863281,
61.74350357055664,
61.07891845703125
],
"content": [
"Question : I could call R from Java and call Java function from R successfully both . However when I m trying to use rJava JRI to call Java from R and Java code instance new REngine . It failed reports R is already initialized and then quit R directly . My class : .. . .. . then I call the Jar from R .. . .. . Any one know why Any solution about this error Comment : Java -cp could run the jar successfull as below lib java -cp usr lib64 R library rJava jri REngine.jar : usr lib64 R library rJava jri JRI.j ar : usr lib64 R library rJava jri JRIEngine.jar : . rjava.jar testRJava 0.9858369643334299 REAL 1.0 3.0 2.0 5.0 result : STRING -0.04885 -1.680110 -1.292430 -0.748090 0.008118 0.642391 1.174235 histval mids : REAL -1.75 -1.25 -0.75 -0.25 0.25 0.75 1.25 1.75 2.25 2.75 histval counts : INT 6 6 20 21 17 17 7 4 1 1 .. . Answer : library rJava .. . .. . .jinit . .. . .jengine TRUE .. . .. . 1 Java-Object Thread Thread-0 5 main .. . .. . b - .jnew testRJava .. . .. . b callSample",
"Question : I want to call some R code from within Java on a Linux machine that has R installed already so the Java R Interface JRI is needed . However I am not sure how to go about this . The JRI homepage http : www.rforge.net JRI says that the package is bundled in rJava http : www.rforge.net rJava . So I downloaded rJava-0.9.3.tar.gz from the rJava Files section http : www.rforge.net rJava files and unzipped it getting among other things a lot of Java source files and their corresponding classes in the src java folder plus 2 JARs JRIEngine.jar and REngine.jar in the inst jri folder . The JRI Files section http : www.rforge.net JRI files though in addition to the above 2 JARs also includes JRI.jar and all three of these libraries are more recent than the 2 in inst jri . In addition none of these 3 JARs includes the binaries for the classes found in src java which appear to be necessary for calling R from within Java . Running make all in the java src folder seems to just execute some tests and no JAR is produced . I would expect that all necessary classes come bundled in JAR files so that they could be easily added in the classpath and in IDE projects e.g . in Eclipse . How can I get to that point .. . Answer : Use install.packages rJava in R - that will install rJava which includes JRI . You ll get the same effect by using R CMD INSTALL rJava 0.9-3.tar.gz . Both are the documented ways to install R packages . Make sure you have JDK installed and configured R with Java support before . Once installed you can ask R about the location of JRI with system.file jri package rJava .. . .. . Note that in order to use JRI you will need to setup the environment properly typically using R CMD and set java.library.path to include the JRI location . You may want to scan the stats-rosuda-devel mailing list which is the canonical place to ask about rJava JRI . Comment : Thanks for the answer . I read about the install.packages command but was puzzled as to how I would make the result work with Eclipse . I have now run it and added a User Library in Eclipse that points to the 3 JAR files installed . Given that Eclipse takes care of Java-related path declarations should that work out of the box Comment : No JAR files alone are not enough - you have to make sure you have java.library.path setup to find the JRI dynamic library and also set environment-variables required by R such as R HOME . I don t use Eclipse so I don t know how it handles those settings . You can have a look at the run script and the JRI examples . Comment : Indeed . R HOME can be set in the Project Preferences Run Debug Settings whereas for the ld.library.paht one can edit the Native library setting in each of the 3 JARs of JRI as per this StackOverflow post : stackoverflow.com questions 957700 http : stackoverflow.com questions 957700 how-to-set-the-java-library-path-from-eclipse . Comment : Two helpful posts on setting up rJava and JRI in Eclipse : stackoverflow.com questions 3311940 http : stackoverflow.com questions 3311940 r-rjava-package-install-failing and binfalse.de 2011 02 talking-r-through-java http : binfalse.de 2011 02 talking-r-through-java",
"Question : I am using the JRI api to use R in Java . I have created a web-service which has the JRI code . When I consume this web-service for the first time it works properly but with a subsequent request the JVM crashes and says : The crash happened outside the Java Virtual Machine in native-code . Is this somehow connected to the fact that R has no threading support you can run only one instance of R within a multi-threaded application I am using Rengine to run R scripts in Java I tried to stop destroy the Rengine object but it did not work . How can I make sure that Rengine instance is garbage-collected before the second request . Please let me know how can I solve this issue . .. . Answer : One can only create a single instance of Rengine using JRI . So use Rserve instead which supports threading .",
"Question : I am working with a Java and I need to use an add-on R library and use the functions within that library . I tried the answers provided in the following questions .. . .. . How I can load a R script into JRI and execute from Java http : stackoverflow.com questions 8037411 how-i-can-load-a-r-script-into-jri-and-execute-from-java .. . .. . Problem loading R own created libraries in Java JRI code http : stackoverflow.com questions 2477398 problem-loading-r-own-created-libraries-in-java-jri-code .. . .. . but I still get a NullPointerException . Can anyone point out the error . Thankyou .. . .. . Here is the code which I am using : .. . Answer : I tried to look for the R package PROcess you just mentioned but i didn t find it so i cant test your code but generally add-in packages work perfect in JRI here is an example using packages forecast and plyr : .. . .. . 1 . Now look at the console : .. . .. . run : Connected to R 524.0 597.0 530.0 440.0 406.0 435.0 479.0 523.0 580.0 574.0 BUILD SUCCESSFUL total time : 4 seconds .. . .. . My guess i that you downloaded the package PROcess which i couldn t find on a earlier version of R not 3.0 if that is the case just reload the package into your R 3.0 folder .",
"Question : null .. . Answer : I am trying to use JRI so that I can run R inside a Java executable . I added the three JAR files found here https : www.rforge.net JRI files to my build path and I copy and pasted the code found in the accepted answer here http : stackoverflow.com questions 2180235 r-from-within-java . However my code will not compile as in the first line in the main method I get the error : .. . .. . What is wrong Thanks in advance .",
"Question : null .. . Answer : I m running an R script in Jboss a java application server using JRI . Within the R script I have a call to a Java class . Therefore this is what I have : .. . .. . Java program in JBoss -- invokes JRI and runs R script -- invokes Java program . When I attempt to run the following script in JRI : .. . .. . The program runs however throws the following exception : .. . .. . 12 : 18 : 16 786 ERROR stderr http-localhost-127.0.0.1-8080-1 java.lang.NoClassDefFoundError : RJavaClassLoader .. . .. . 12 : 18 : 16 786 ERROR stderr http-localhost-127.0.0.1-8080-1 at org.rosuda.JRI.Rengine.rniEval Native Method .. . .. . 12 : 18 : 16 786 ERROR stderr http-localhost-127.0.0.1-8080-1 at org.rosuda.REngine.JRI.JRIEngine.eval JRIEngine.java : 281 .. . .. . 12 : 18 : 16 802 ERROR stderr http-localhost-127.0.0.1-8080-1 at org.rosuda.REngine.REngine.parseAndEval REngine.java : 102 .. . .. . 12 : 18 : 16 803 ERROR stderr http-localhost-127.0.0.1-8080-1 at org.rosuda.REngine.REngine.parseAndEval REngine.java : 108 .. . .. . The first time I run an rJava statement I get the exception . From then on it almost works fine the main problem is that the environment is not stable as I see many exceptions from time to time . I know that is possible to run rJava from within JRI but is it possible in an application server like Jboss instead of a plain Java object",
"Question : I am trying to run an example of JRI and being unsuccessful here is a link-to the example . http : blog.comsysto.com 2013 07 10 java-r-integration-with-jri-for-on-demand-predictions .. . .. . This is the error the console gives me . As far as I know I have the external JRI 2014-10-19 jar attached to the project correctly . I have R 3.1.2 installed and I have the rJava 0.9-6 package installed . Line 10 is rengine.eval String.format greeting - s Hello R World . And Line 17 is hello.helloRWorld . Please Let me know if you have an idea as to why it s throwing these exceptions... . : Comment : Well you never initialized rengine . Comment : You mean the jar Thanks I ll try that I though I wouldn t have to because it wasn t being imported.. . Comment : No . This is java and rengine starts out as null until you assign it a valid reference . For example Rengine rengine Rengine.getMainEngine .. . Answer : There are two different approach to connect Java and R . .. . .. . If you want to use JRI you have to start your java program using the JVM parameter -Djava.library.path pointing at the folder that contains JRI library . For instance : .. . .. . If you have trouble finding JRI installation directory try to look for the JRI SO library : .. . .. . In addition make sure you have created R HOME and LD LIBRARY PATH in your environment : .. . .. . R HOME : Pointing to your local R installation Ej : Library Frameworks R.framework Resources .. . LD LIBRARY PATH : Pointing to R lib directory as well as JRI directory EJ : LD LIBRARY PATH : app vendor R lib R lib : app vendor R lib R bin .. . .. . Here is an example : .. . .. . On the other hand if you want to use Rserve you need to start Rserve in a separate process and then create a RConnection from your java process . For example : .. . .. . rserveConf is the path to Rserv conf file and rexe is the full path to R executable . For instance in my MacOS computer I can start Rserve executing this line : .. . .. . This command outputs something like this : .. . .. . Make sure to specify --slave parameter when you start Rserve . If you want to see more examples I have a demo project that use both approaches JRI and RServe in my github : .. . .. . https : github.com jfcorugedo RJavaServer",
"Question : null .. . Answer : I am trying to run R summary command through JRI to get the result for mulitvariate Linear Regression .. . .. . Now When i try to run the same command through JRI and trying to get only coefficients for same data will fetch below result : .. . .. . From the above result what i get from JRI will fetch me only coefficient values not the parameters like what we get in R Console Departments list and Grade in this Case . How to get coefficient values along with parameters . Comment : Already asked here : stat.ethz.ch pipermail r-help 2015-June 429807.html https : stat.ethz.ch pipermail r-help 2015-June 429807.html Comment : Can you please paste both Java code dput for R data you used ill show you how to do it :",
"Question : I need to build an application with JRI that works similarly to the R console . The issue is that sometimes the console will respond displaying a line for example after entering x below and sometimes it doesn t for example after entering x 1 .. . .. . enter image description here http : i.stack.imgur.com UrFb0.png .. . .. . I tried to analyze eng.parseAndEval statement where statement is the command entered on the console but cannot tell when to display the response on the console and when not . Any ideas .. . Answer : What you are seeing is the visibility flag maintained by R which tells the regular event-loop when to print and when not . See withVisible in R for details . However you really don t want to get into re-implementing the R event-loop . Instead JRI allows you to have R do all the work for you - you just implement the console callbacks RMainLoopCallbacks to handle all your console I O and then start the event-loop . You may want to have a look at JGR http : rforge.net JGR - it is a Java console implemented using JRI .",
"Question : I created my own new R library called Media . There is no problem when I try to load it with RGui and I can call the functions defined in the new package . This is how I load it : .. . .. . But I m also trying to call that functions from Java JRI http : www.rforge.net JRI code and when I load the new R package Java doesn t seem to find the pacakge throwing the message Error in library Media : object Media not found .. . .. . This is my current code using JRI : .. . .. . It also fails without the setwd command and simple calls to existing R functions work fine . I m using R 2.10 and the latest JRI 0.5-0 under Windows . Any help would be appreciated . Thank you very much . Edit : .. . .. . The parameter lib.loc seems to work at least this sentence does not return an error : .. . .. . But after that calling a function in the package with re.eval myfunction still fails as the function is not properly found . .. . Answer : You can modify the library path - see .libPaths in R you simply want to add your private library to the path . The GUI does that for you but if you are outside it doesn t happen . For example : .. . .. . Then load your package . Comment : This has been useful for me . But I had to use : re.eval .libPaths c : users foo Documents R win-library 3.2 in windows .",
"Question : null .. . Answer : Here s the situation . I am attempting to load the JRI for R integration in Java . Here s what I know to make it work : .. . -Make sure that the path to the JRI DLL is in the java.library.path so java can load the native library . -Make sure that the path to the R DLL is in the system path so the system can resolve a DLL dependency . If both of these are true before my application loads the library will load with no problem . However I am having problems with loading it if I try to do it automatically without use involvement . Here s how I am trying to make it work : .. . -If the JRI DLL is not in the java.library.path add it at runtime using reflection and try to load the library again immediately - this works great . -If the R DLL is not in the system Path add it using the setx command . The second step is where I am hitting huge problems - I still see an error with finding the R DLL which is a dependency of the JRI DLL . My code sets the system Path as it should immediately as I check this in the control panel however loading the JRI library fails on a dependency . I know setting the path correctly fixes the dependency issue if I set it before running my application so why it does not work in this case I do not understand . If I kill my application and start it from scratch it works fine as the Path was set from the last time it was run . When a dependency failure occurs on loading a DLL where is the error actually happening Does Java look for the dependency of the JRI DLL I had assumed Java played no part in the resolving a dependency of a DLL was I wrong If the operating-system is responsible for resolving the dependency of a DLL then why is my Path change not recognised Do environment-variables get passed to a DLL when Java tries to load it I should add that I am developing this in Netbeans however I see the same behaviour if I build a JAR and run that directly in the terminal . I often see that a Path update is not seen until a restart of Netbeans however I had thought that a DLL resolving its dependencies would use the Path directly . It s pretty frustrating so it d be great to hear your thoughts on this . Comment : setx doesn t change the environment-variables for the current process or for child processes only for brand new processes . To be more precise only for processes created by applications such as Explorer that explicitly look for changes in the environment variable settings . In your case you need to change the environment-variables for the Java process . I m not sure how you do that hopefully someone else can answer but setx won t do it . Comment : @HarryJohnston My confusion is whether the thing resolving DLL dependencies is receiving its environment through Java or whether it is a system component and entirely separate from the the process hierarchy I create when I start my application . Does loading a native library cause a sub-process to be created Comment : I should also add that I can and do change the environment-variables in the Java process but this appears to have no effect on the resolution of the DLL s dependencies though it does allow my DLL to be found in the first place by Java . Comment : In cases where the PATH is used in resolving dependencies which seems to be true here since setting it ahead of time works then it is read from the environment variable block of the process that is loading the DLL . The first thing you should double-check is whether you ve successfully changed the process environment-variables . You can do this with Process Explorer which is available free of charge from the MS web site . This will also show you whether there are any sub-processes or not .",
"Question : I m new to R and was attempting to call a simple rJava test program from java . I have done the necessary path settings and when I am attempting to create a Rengine instance the code is failing . The issue seems to be with C R.dll+0x26036 . However I am new to this and not being able to figure out the issue . Any help will be welcome . My code : .. . .. . .. . .. . The output : .. . .. . Start Starting Rengine. . R HOME D : Program Files R R-3.2.0 bin .. . .. . A fatal-error has been detected by the Java Runtime Environment : .. . .. . EXCEPTION ACCESS VIOLATION 0xc0000005 at pc 0x000000006c726036 pid 4588 tid 1872 .. . .. . JRE version : Java TM SE Runtime Environment 8.0 45-b14 build 1.8.0 45-b14 Java VM : Java HotSpot TM 64-Bit Server VM 25.45-b02 mixed-mode windows-amd64 compressed oops Problematic frame : C R.dll+0x26036 .. . .. . Failed to write core dump . Minidumps are not enabled by default on client versions of Windows .. . .. . An error report file with more information is saved as : Comment : Have you set the VM options you need to set up your VM options for example in netbeans ive inserted the following option for JRI -Djava.library.path C : Program Files R R-2.15.3 library rJava jri x64 Comment : You re question ended abruptly : An error report file with more information is saved as : .. . Comment : @YehoshaphatSchellekens I added System.setProperty JRI -Djava.library.path D : Misc RLib rJava jri x64 to my code . It still returns the same error . Also as I have installed rJava to my exclipse I have set the path for the dlls and JRI in my preferences . .. . Answer : In Your environment setup please change R HOME to D : Program Files R R-3.2.0 and not R HOME D : Program Files R R-3.2.0 bin please let me know if that does the job : notice that the your code works for me using nicola s advice as well .. . .. . the output : .. . .. . Also you need to set up D : Program Files R R-3.2.0 bin x64 D : Misc RLib rJava jri x64 This you need to set up in vm options and not as environment variable . this is how its done in Netbeans that what im using : .. . .. . 1 . Right click on the project then click on properties .. . 2 . Then choose the run .. . 3 . Insert the VM options as following : How to set VM options in Net beans http : i.stack.imgur.com dYFzo.png Comment : it still does not work for me . Am i doing something wrong with the settings I am posting the full output here : Comment : Can you please post all your environment-variables Comment : Have you set the JAVA HOME and PATH properly Comment : JAVA HOME : C : Program Files Java jdk1.8.0 45 JRE HOME : C : Program Files Java jre1.8.0 45 PATH : SystemRoot system32 SystemRoot SystemRoot System32 Wbem SYSTEMROOT Syste m32 WindowsPowerShell v1.0 C : Program Files x86 MySQL MySQL Server 5.5 bin D : 650444 Work Tools Octave Octave3.6.4 gcc4.6.2 bin C : Program Files Java jdk1.8.0 45 bin C : Program Files Java jre1.8.0 45 bin server D : Program Files R R-3.2.0 bin x64 D : Misc RLib rJava jri x64 Comment : Look at my new answer",
"Question : null .. . Answer : I want to make scala talk to R using the rJava library . Unfortunately the JRI library is not found on the classpath . But in my sbt build it is included directly from a sub-directory . What is wrong with my setup A minimal example can be found here : https : github.com geoHeil scalaRcran-rJava .. . .. . executing a sbt run will throw the error .. . .. . My Setup : .. . .. . osx 10.11.4 java8 in particular .. . java version 1.8.0 74 Java TM SE Runtime Environment build 1.8.0 74-b02 Java HotSpot TM 64-Bit Server VM build 25.74-b02 mixed-mode Scala 2.11.8 R 3.2.4 and the current rJava library from CRAN .. . .. . setting the -Djava.library.path externalLib jri via sbt seems to have no effect at all . Setting this option via intelliJ results in a different error : .. . .. . edit .. . .. . running the run script and the examples works just fine in the Library Frameworks R.framework Resources library rJava jri folder . Comment : I don t see the error message as supporting the assertion that rJava is not found . It says the JRI library was not found . Those are not the same things . I see nothing regarding the presence or absence or possible location of the rJava package . There might be an rJava subdirectory that hold an rJava package but there is no rJava library . Comment : But in the build.sbt file it was imported . And intelliJ shows no linting errors . Comment : We seem to be talking at cross purposes . Your comment did not address any of the concerns I raised . Comment : Ok sorry for that I meant JRI and not rjava . Comment : Maybe you should remove the r and rjava tags",
"Question : I am trying to run an example of JRI and being unsuccessful here is a link-to the example . http : blog.comsysto.com 2013 07 10 java-r-integration-with-jri-for-on-demand-predictions .. . .. . This is the error the console gives me . As far as I know I have the external JRI 2014-10-19 jar attached to the project correctly . I have R 3.1.2 installed and I have the rJava 0.9-6 package installed . Line 10 is rengine.eval String.format greeting - s Hello R World . And Line 17 is hello.helloRWorld . Please Let me know if you have an idea as to why it s throwing these exceptions... . : Comment : Well you never initialized rengine . Comment : You mean the jar Thanks I ll try that I though I wouldn t have to because it wasn t being imported.. . Comment : No . This is java and rengine starts out as null until you assign it a valid reference . For example Rengine rengine Rengine.getMainEngine .. . Answer : Try this : is works : .. . .. . Notice that you had several errors including not including a main class and not creating the proper constructor .",
"Question : I m new to R and was attempting to call a simple rJava test program from java . I have done the necessary path settings and when I am attempting to create a Rengine instance the code is failing . The issue seems to be with C R.dll+0x26036 . However I am new to this and not being able to figure out the issue . Any help will be welcome . My code : .. . .. . .. . .. . The output : .. . .. . Start Starting Rengine. . R HOME D : Program Files R R-3.2.0 bin .. . .. . A fatal-error has been detected by the Java Runtime Environment : .. . .. . EXCEPTION ACCESS VIOLATION 0xc0000005 at pc 0x000000006c726036 pid 4588 tid 1872 .. . .. . JRE version : Java TM SE Runtime Environment 8.0 45-b14 build 1.8.0 45-b14 Java VM : Java HotSpot TM 64-Bit Server VM 25.45-b02 mixed-mode windows-amd64 compressed oops Problematic frame : C R.dll+0x26036 .. . .. . Failed to write core dump . Minidumps are not enabled by default on client versions of Windows .. . .. . An error report file with more information is saved as : Comment : Have you set the VM options you need to set up your VM options for example in netbeans ive inserted the following option for JRI -Djava.library.path C : Program Files R R-2.15.3 library rJava jri x64 Comment : You re question ended abruptly : An error report file with more information is saved as : .. . Comment : @YehoshaphatSchellekens I added System.setProperty JRI -Djava.library.path D : Misc RLib rJava jri x64 to my code . It still returns the same error . Also as I have installed rJava to my exclipse I have set the path for the dlls and JRI in my preferences . .. . Answer : You have to initialize properly your Rengine . Try this : .. . .. . when you create the engine and everything should work . The constructor without arguments create s a new engine by hooking into an existing initialized R instance which is calling this constructor from the doc http : rforge.net org doc org rosuda JRI Rengine.html . This causes the error since there is not an existing Rengine running I guess . Comment : I had tried this previously when I was trying to debug my error . Using this line of code does not throw the stack-trace error that i have printed in my question but the program execution terminates with a return code of 2 . Using debugging mode in eclipse i can see it is faling in this Rengine instance creation line .",
"Question : null .. . Answer : I have a Java program calling a R script using JRI . On calling re.eval setMatValue + id + + x + + y + + value + i get a java out-of-memory exception which is strange to me as neither the function in R is returning a value of any kind nor am i mapping the not existing result to a java object . The matrices are only stored in the R context and referrenced by strings . Is the Memory used by R included into the Java Heap Or is JRI allocating space that actually isn t needed For the greater scope : I am trying to outsource the handling of the matrices used by my Code Analyzation implemented in Java to R . The matrices get very big and therefore were taking up too much space in java and I didn t find any matrix implementation in java able to create matrices of that size . Comment : I also want to integrate Java with R using JRI . Is there any good tutorial which I can follow . Comment : If it is only java if using netbeans IDE go to the home folder and find the conf file and chnage the memory values -Xms to higher value . Comment : For the first steps i found this very useful : studytrails.com RJava-Eclipse-Plugin http : www.studytrails.com RJava-Eclipse-Plugin . Unfortunately it is an R application ran by Eclipse which does not allow me to change the JVM Paramters . I set them globally for the JVM and the Memory is actually being used . But as stated in the question thats exactly what im using R for namely to prevent Java from using too much memory Comment : Can you please post the full code that is in your .Java file the one with class main Comment : Do you actually want the class containing the main method or the class initializing and calling the REngine",
"Question : null .. . Answer : I am trying to user jri as interface for R and java . I have setup the native library path R HOME and the code works fine in a single machine but when I try to run it in distributed mode I get the issue .",
"Question : I have followed guides on the web and looked at questions on stackoverflow but I am still not able to set up JRI on Windows . Here are the steps I have taken : .. . .. . 1 Install R .. . .. . 2 Execute install.packages rJava in R to install rJava .. . .. . 3 Create a R HOME system variable with value C : Program Files R R-3.1.2 .. . .. . 4 Add the following to my PATH variable : C : Program Files R R-3.1.2 bin x64 C : Users USERNAME Documents R win-library 3.1 rJava jri x64 .. . .. . 5 Added the JRI.jar located in C : Users USERNAME Documents R win-library 3.1 rJava jri as a dependency in IntelliJ .. . .. . 6 Set the VM options in IntelliJ to -Djava.library.path C : Users USERNAME Documents R win-library 3.1 rJava jri x64 .. . .. . 7 Start R and execute library rJava .. . .. . 8 Run my program to test if everything is set up .. . .. . Get the following error : .. . .. . If I remove the VM option so that java.library.path isn t specified then I get the following error : .. . Answer : How you instantiating Rengine It should be something like this : .. . .. . Rengine rengine new Rengine args false null .. . .. . where the args could be from your main method . Let me know if this works Comment : It worked great Thanks",
"Question : I created my own new R library called Media . There is no problem when I try to load it with RGui and I can call the functions defined in the new package . This is how I load it : .. . .. . But I m also trying to call that functions from Java JRI http : www.rforge.net JRI code and when I load the new R package Java doesn t seem to find the pacakge throwing the message Error in library Media : object Media not found .. . .. . This is my current code using JRI : .. . .. . It also fails without the setwd command and simple calls to existing R functions work fine . I m using R 2.10 and the latest JRI 0.5-0 under Windows . Any help would be appreciated . Thank you very much . Edit : .. . .. . The parameter lib.loc seems to work at least this sentence does not return an error : .. . .. . But after that calling a function in the package with re.eval myfunction still fails as the function is not properly found . .. . Answer : My work-around was to copy the package from my personal library USERPROFILE Documents R to the global library R HOME library . It s not the best because this requires Administrator privileges which not all users will have.. . Comment : Sadly I didn t find a solution yours seems a nice workaround . I finally inlined the functions in a re.eval call instead of making them part of a library as I was trying to do .",
"Question : I m trying to create a data frame in R taking the data from an ArrayList in Java . The code below seems to be the official JRI test suite see this link http : www.rforge.net DATRAS files org rosuda REngine JRI test RTest.java however it doesn t even compile for example in the first statement RList doesn t have a put method and REXP.createDataFrame method doesn t exist . Is there any updated example of REXP.createDataFrame Couldn t find a concrete functional example online . Also couldn t find any JRI documentation . UPDATE .. . .. . I found out that there are two REXP classes org.rosuda.JRI.REXP and org.rosuda.REngine.REXP the latter has the method createDataFrame l however the assignment doesn t work . How to assing a data frame to an R variable Comment : Have you noticed that there is no put method in org.rosuda.JRI.RList Comment : Look at the link I posted and export the same libraries .. . Answer : If it helps : my solution to create a data frame with JRI-REngine gives some thing like this : .. . .. . In eclipse console : .. . .. . col1 col2 col3 1 a1 b1 1 2 a2 b2 2 3 a3 b3 3 4 a4 b4 4"
]
} | [
"yes-answer-long",
"yes-answer-short"
] | interface | UNK_RELATION |
wlst@scripting@56 | wlst -- wlst weblogic scripting tool is a command-line @placeholder environment that can be used to create manage and monitor weblogic domains . | {
"confidence": [
70.59463500976562,
58.89234161376953,
57.441341400146484,
55.73320007324219,
55.73320007324219,
54.60000991821289,
51.298728942871094,
50.99812698364258,
50.53511428833008,
49.701805114746094,
47.9936637878418,
47.9936637878418,
47.9936637878418,
47.9936637878418,
47.179779052734375,
46.8604736328125,
46.8604736328125,
45.50231170654297,
44.51774978637695,
44.43088912963867,
43.384559631347656,
43.384559631347656,
43.31574630737305,
43.25690460205078,
43.055015563964844,
42.69369888305664,
41.95212173461914,
41.708675384521484,
41.5406608581543,
41.21803283691406,
41.12352752685547,
40.243980407714844,
40.243980407714844,
40.243980407714844,
40.20234680175781,
39.417266845703125,
39.11079025268555,
39.11079025268555,
38.66432571411133,
38.10041046142578,
37.75263214111328,
37.56745529174805,
37.47969436645508,
37.359798431396484,
36.94158935546875,
36.925697326660156,
36.925697326660156,
36.925697326660156,
36.925697326660156,
36.81836700439453,
36.81836700439453,
36.81836700439453,
36.27543258666992,
36.16486740112305,
35.95195007324219,
35.79250717163086,
35.79250717163086,
35.787986755371094,
35.57820129394531,
35.532466888427734,
35.52561569213867,
35.45595932006836,
35.06880187988281,
34.5128288269043,
34.5128288269043,
34.5128288269043,
34.445011138916016,
34.445011138916016,
34.24380874633789,
34.16413116455078,
34.15985107421875,
34.10421371459961,
34.03725814819336,
33.593299865722656,
33.46088790893555,
32.455989837646484,
32.455989837646484,
32.455989837646484,
32.455989837646484,
32.455989837646484,
32.455989837646484,
32.455989837646484,
32.455989837646484,
32.455989837646484,
32.455989837646484,
32.45170974731445,
32.45170974731445,
32.18806457519531,
31.676597595214844,
31.322799682617188,
31.322799682617188,
31.322799682617188,
31.318519592285156,
31.15630340576172,
30.248943328857422,
30.024208068847656,
30.024208068847656,
30.022546768188477,
30.022546768188477,
29.964641571044922
],
"content": [
"One of the elegant things about WebLogic is WLST Weblogic Scripting .",
"I am trying to create a datasource jdbc for weblogic using WLST offline .",
"I am trying to untarget a JDBCResource in weblogic using wlst script .",
"I m writing a WLST script to deploy an application with WebLogic 11g .",
"I am new to weblogic and WLST and would appreciate any help .",
"I am not familiar at all with Weblogic environments WLST etc .",
"I am just starting in wlst scripting .",
"using addTemplate WLST command .",
"I have tried with WLST and WLST nested in ANT .",
"Long Version : I m trying to script via WLST for WebLogic 12c a way to update data sources and then bounce them .",
"I am looking for that weblogic inbuilt method in WLST or any other way to get names of hogging threads .",
"Please suggest with any example to change one of the customization entry in a OSB proxy business service using the WLST in the WebLogic 12c .",
"I m using an AIX machine which has Weblogic 9.21 installed and it also has jython as part of its installation WLST .",
"thing is like it comes with weblogic server and wlst uses that version i can t really change the version though",
"Ultimately I m building a command-line tool to check if any EJB s are in a suspended state and using WLST to get the info .",
"I am deploying an application using wlst script in Weblogic 12.1.2 and JDK 1.7.0.75 .",
"Is there any possibility to upload WAR EAR on the WebLogic server via WLST before deploying it",
"I ve a batch-file that does the installation of weblogic during the setup it will invoke wlst to run some jython scripts .",
"Is there a way to do that though WLST",
"Does anyone know how to do this with the weblogic scripting tool",
"I have no experience of wlst .",
"I m new to Python and WLST .",
"Please find the following link for WLST Exception http : wlstbyexamples.blogspot.in 2010 01 wlst-errors-and-exceptions.html .V3C4fPl96Uk .. . .. . Thanks pavan",
"Could you please help the procedure to follow for executing the WLST script on OSB 12c i.e from SOA suite weblogic 12c server domain .",
"Is there any log wlst generates that can be looked into",
"I am quite new to WLST .",
"The WLST script has been embedded in an Ant script .",
"I have got a task to create weblogic domains for SOA silently .",
"I am writing a WLST script to monitor JDBC connection statistics and output them as csv ready to be read into a Zabbix monitor .",
"I have written a wlst script to create multiple connection factories .",
"How can I get the value of the excessConnectionsList WLST variable in the checkConnections target",
"Trying to access an OAM identity asserter through WLST .",
"Even if i try this wlst cmd prompt .",
"Is it possible to shutdown and start bridges through wlst .",
"another approach is to use WLST scripts",
"Just gave it as some of it might of help to you .. . .. . Edit : Suspend weblogic datasource on command-line http : stackoverflow.com questions 955318 suspend-weblogic-datasource-on-command-line .",
"I trying to connect to em console through wlst .",
"I don t know about wlst script .",
"I ve used WLST and checked that all apps are listed in domainRuntime .",
"How do you know that WebLogic handles such command",
"This is where I invoke wlst in the bat file .",
"To return a value from the wlst python script to the cmd file in my simple case i did the following : .. . .. . python wlst .. . .. . cmd",
"I don t know which jars are required for wlst embeded mode Development environment is set without any errors .",
"weblogic 12.1",
"If I understand you correctly you want to restart Datasource via WLST.If so you can follow the below WLST commands you can use them in WLST command mode or as script Note : Replace Strings below starting and ending with with your own values .",
"I am executing WLST commands in a Linux bash script .",
"Ok from what I read it isn t possible to change security in the WLST .",
"Not sure what you have in the WLST script could you try with the following :",
"Is there a way to run jython code without having to initialize the WLST first",
"When I do connect t3 : hostname : port WLST tries to connect to the given url using username weblogic which I don t know where it is getting from",
"The script I am trying to run is the one shown in WebLogic Server JMS WLST Script Who is Connected To My Server https : blogs.oracle.com jamesbayer entry weblogic server jms wlst script .",
"Reference : .. . .. . http : docs.oracle.com cd E13222 01 wls docs92 config scripting reference.html wp1024321 .. . .. . Another example : .. . .. . http : zachxu.blogspot.com 2010 08 how-to-use-weblogic-wlst-to-redeploy.html",
"Problem invoking WLST - Traceback innermost last : File wls domains ionix dl SingleTouchIonix wlstByExamples IonixDL JMSConfig.py line 220 in",
"I have a .py script to create weblogic domain .",
"I am deploying application to weblogic .",
"Then using WLST online I was able to do cd straight to it .. .",
"I m trying to perform remote uploading and deploying via WLST .",
"The following links all have examples on how to edit soa-infra properties : .. . .. . http : rreddy.blogspot.com 2012 03 wlst-soa-mbeans-examples.html .. . .. . http : bibeksoa.blogspot.com 2013 10 wlst-script-soa-process-deployment.html .. . .. . http : www.qualogy.com wlst-change-script-to-soa-common-bpel-an-bpmn-properties .. . .. . http : go2kavinkumar.wordpress.com 2011 08 28 using-wlst-to-manage-web-service-policies .. . .. . Specifically you want to grab the Application soa-infra object to use it .",
"What version of weblogic",
"I am launching a wlst python script like this : .. . .. . cmd file : .. . .. . The python script is checking if a datasource is up : .. . .. . How can i return a value from the wlst python script to the cmd file",
"However in the Jython environment I find myself in WLST https : docs.oracle.com middleware 1221 wls WLSTG using wlst.htm WLSTG119 if I do : .. . .. . ...then it appears to raise a java.lang.Exception : .. . .. . How can I raise a Python Exception in this environment",
"I want to update the application using wlst command by giving the new source path .",
"I have gone though WLST command reference : http : docs.oracle.com cd E25054 01 web.1111 e13813 reference.htm i1155751 But there is no template information related command .",
"prints values as None .. . .. . How can i access existing bridges through wlst",
"I can do it manually though admin console but for me it is required through WLST script .",
"You could try with the following option at your WLST prompt : .. . .. . Then you can try to with the your commands set .",
"Restart your WebLogic instance .",
"I m running weblogic 12C .",
"I have an existing weblogic domain .",
"Trying to do the same thing via WLST and I m assuming the restartSystemResource method corresponds to the Restart console action .",
"I deployed two weblogic managed instance .",
"Couple of things to try : .. . .. . 1 - Setting CompatibilityMBeanServerEnabled to true perform these steps from command-line wlst replace username password hostname adminport DomainName with your settings .. . .. . now check the value of CompatibilityMBeanServerEnabled parameter if its false then do the following .. . .. . startup the AdminServer now and try invoking your WLST Embedded code .. . .. . 2 - If the above fix doesn t work then add dumpStack in your WLST Embedded code to get the stack-trace which will help in identifying the root cause .",
"Personally I d extend Configurator https : github.com tomecode OSB-Config-WLST-Configurator wiki OSB-Config-WLST-Configurator so I could add it to the sb-jar preferably before it goes into a Maven repository .",
"But it fails during runtime with following exception - .. . .. . Exception in thread main java.lang.NoClassDefFoundError : weblogic management scripting utils WLSTMsgTextFormatter at weblogic.management.scripting.utils.WLSTUtilHelper .",
"You can give the cd line as below : .. . .. . You can also get some more clarity on JMS module creation using WLST by Examples http : wlstbyexamples.blogspot.in 2013 01 this-post-is-continous-series-of-jms.html",
"Other than that the session is started successfully running the wlst script from oracle common common bin .",
"I am trying to automate WLST script to uncheck Automatically Acquire Lock and Activate Changes and save changes .",
"when i did it through WLST script recording it is recording only below lines .",
"I am a bit knowledgeable in wlst however I couldn t find on which property the JDBC datasource type is kept .",
"I am indeed looking for a reply for other area in security policy selection in OSB proxy service using WLST .",
"it seems to be a problem with WLST anyway it is always better to use the mentioned start-up script or use node manager directly",
"i m having a prolem about getting Role from java when using wlst .",
"3- To answer your question on which jar is required for WLST Embed mode its weblogic.jar",
"2 enable env variables for GCDomain .. . .. . 3 enable the RuntimeMBeanServerEnabled from WLST java weblogic.WLST .. . .. . Hope it works for you too .",
"But I would rather get it through WLST than using file parsing on this .xml .",
"There is a weblogic script test.sh which has the below code .",
"The second script must then be called by weblogic instead of helloworld.py .",
"Take a look at WLST deploy command reference http : docs.oracle.com cd E13222 01 wls docs103 config scripting reference.html wp1024285 This link is for version 10gR3 .",
"All the tasks create domain cofigure Admin Server Start Server connect written in wlst script works except for application deployment .",
"It would appear you can t use slashes in names when using WLST Offline .",
"Tucked away in the WLST Documentation http : docs.oracle.com cd E28280 01 web.1111 e13715 using wlst.htm WLSTG139 .. .",
"Do I have to set any specific memory settings in wlst script for it to deploy successfully",
"But I could connect only to weblogic admin console .",
"at the end dot is must for Windows you could writ as : .. . .. . On the Linux UNIX platforms .. . .. . After setting in your command-prompt you can proceed with your Embedded WLST program .",
"i understand but the WebLogic Server does not allow to update a shared lib when it is used by one or several appications",
"I want to get names of thread marked as Hogger in weblogic .",
"I m connect to weblogic to get role from java but i have a problem .",
"You can use Weblogic Ant task instead of writing an application to do that .",
"You can follow this example http : middlewaremagic.com weblogic p 373 as well .",
"The execution runs fine but just does it doesnt exit the wlst and continue on with the rest of the bat file execution ."
]
} | {
"confidence": [
74.81546020507812,
71.81632995605469,
71.49657440185547,
71.3882827758789,
71.23928833007812,
70.52775573730469,
70.52104187011719,
70.26303100585938,
69.00682830810547,
68.43602752685547,
68.24900817871094,
66.2038803100586,
65.24174499511719,
64.9372787475586,
64.42201232910156,
63.756900787353516,
63.67329406738281,
63.267032623291016,
63.0763053894043,
62.956329345703125
],
"content": [
"Question : Short Version : I m trying to find a real-world example of restartSystemResource usage . Searched the internet and Oracle Knowledge Base and found nothing . Long Version : I m trying to script via WLST for WebLogic 12c a way to update data sources and then bounce them . If I update data sources manually in the console they show up in the Restart Checklist View changes and restarts and then I can select them and click the Restart button . Trying to do the same thing via WLST and I m assuming the restartSystemResource method corresponds to the Restart console action . When I connect and run domainRuntime and ls I see the restartSystemResource method . I ve looked at the Oracle MBean Reference for restartSystemResource http : docs.oracle.com cd E14571 01 apirefs.1111 e13951 core index.html and frankly it s confusing as I m not a Java programmer and I don t know how to interpret create the argument requirements in Jython Python . Any help would be much appreciated Operation Name restartSystemResource Parameters Object .. . .. . where : .. . .. . Signature String weblogic.management.configuration.SystemResourceMBean .. . Answer : If I understand you correctly you want to restart Datasource via WLST.If so you can follow the below WLST commands you can use them in WLST command mode or as script Note : Replace Strings below starting and ending with with your own values . The example below restarts datasource datasource name running in adminserver .. . .. . Please refer : http : middlewaremagic.com weblogic p 2515 its old . Just gave it as some of it might of help to you .. . .. . Edit : Suspend weblogic datasource on command-line http : stackoverflow.com questions 955318 suspend-weblogic-datasource-on-command-line . This thread will be of help . You can do cmo.stop and cmo.start for restarting instead of cmo.suspend as the answer there was for suspend and resume .",
"Question : I have an existing weblogic domain . I want to get a list of domain creation and extention templates which have already been added to that domain . using addTemplate WLST command . Is there a way to do that though WLST I am new to weblogic and WLST and would appreciate any help . The templates which have been already added to domain their information is maintained in DOMAIN HOME init-info domain-info.xml . But I would rather get it through WLST than using file parsing on this .xml . If someone can suggest a solution where we can browse to some diectory in domain tree after doing readDomain which will have applied template information this will solve my purpose . I have gone though WLST command reference : http : docs.oracle.com cd E25054 01 web.1111 e13813 reference.htm i1155751 But there is no template information related command . Thanks in advance for response .. . Answer : showTemplates will do the trick . First read the domain using readDomain command and then use showTemplates .",
"Question : I am deploying an application using wlst script in Weblogic 12.1.2 and JDK 1.7.0.75 . All the tasks create domain cofigure Admin Server Start Server connect written in wlst script works except for application deployment . App Deployment script : .. . .. . Through console the application is deployed without any memory issues . In console I have chosen : Target style as Install this deployment as an application Security Model as DD Only : Use only roles and policies that are defined in the deployment descriptors . Staging Mode Source Accessibility as I will make the deployment accessible from the following location and Plan Staging Mode Plan Source Accessibility Use the same accessibility as the application . Do I have to set any specific memory settings in wlst script for it to deploy successfully Out of Memory Exception : .. . .. . org.springframework.beans.factory.BeanDefinitionStoreException : Unexpected exception parsing XML document from class path resource beans-config.xml nested exception is java.lang.OutOfMemoryError : PermGen space .. . Answer : I don t know about wlst script . But when i happen to see such errors while working with WebLogic I change the permgen values in the following file : .. . .. . Oracle Middleware Oracle Home user projects domains mydomain bin setDomainEnv.cmd .. . .. . if you are working on UNIX system see the setDomainEnv.sh file . Look for attributes .. . .. . Based on your Operating System 32-bit or 64 bit set these values to higher digits . Restart your WebLogic instance . Comment : I am using windows OS and could deploy successfully using weblogic Admin console . So the memory settings in SetDomainEnv.bat might be fine . I would like to know whether I could set any memory attributes in wlst script before deploying to avoid the out-of-memory exception . Comment : The application that you are trying to deploy would be requiring more permsize and hence might be the issue . However I was trying to find information on Oracle website and i found the following page docs.oracle.com cd E13222 01 wls docs90 config scripting https : docs.oracle.com cd E13222 01 wls docs90 config scripting config WLS.html 1003498 which i felt could give a hint to you . This page specifies only how to monitor the JVM parameters .",
"Question : I m trying to build a small Utility for tasks like 1 connecting to weblogic admin server . 2 Add managed server . 3 Register domain with nodemanager etcetera . I started development in eclipse added all the jars of weblogic wlserver103 server lib to my project buildpath . I don t know which jars are required for wlst embeded mode Development environment is set without any errors . When I m trying to run the simple task like connecting to admin server . An exception was thrown as shown below .. . .. . I can do the same connect from wlst offline mode with the same username and password which works well.As a workaround I ve also tried giving userconfig and userKey secure files as parameters to connect command . Note : Admin server is already started and running . .. . Answer : Couple of things to try : .. . .. . 1 - Setting CompatibilityMBeanServerEnabled to true perform these steps from command-line wlst replace username password hostname adminport DomainName with your settings .. . .. . now check the value of CompatibilityMBeanServerEnabled parameter if its false then do the following .. . .. . startup the AdminServer now and try invoking your WLST Embedded code .. . .. . 2 - If the above fix doesn t work then add dumpStack in your WLST Embedded code to get the stack-trace which will help in identifying the root cause . 3- To answer your question on which jar is required for WLST Embed mode its weblogic.jar",
"Question : I am quite new to WLST . I am trying this example from here - https : docs.oracle.com cd E13222 01 wls docs92 config scripting using WLST.html wp1075595 .. . .. . This requires me to import following classes - .. . .. . Could someone tell which jar I need to add to the build path in order to import these classes . I added weblogic-classes.jar and I don t see any compile-time errors . But it fails during runtime with following exception - .. . .. . Exception in thread main java.lang.NoClassDefFoundError : weblogic management scripting utils WLSTMsgTextFormatter at weblogic.management.scripting.utils.WLSTUtilHelper . WLSTUtilHelper.java : 33 at weblogic.management.scripting.utils.WLSTInterpreter . WLSTInterpreter.java : 80 .. . .. . Would appreciate any help on this . .. . Answer : You could set the environment-variables CLASSPATH with WL HOME server lib weblogic.jar . at the end dot is must for Windows you could writ as : .. . .. . On the Linux UNIX platforms .. . .. . After setting in your command-prompt you can proceed with your Embedded WLST program . Lets know your feedback after using above HTH",
"Question : Per Oracle s suggestion I added a credential mapping to myrealm and attempted to restart all servers . Now unfortunately I am unable to restart the admin server or any of the other servers . At this point I just want to delete my credential mapping and get with oracle before implementing it . Does anyone know how to do this with the weblogic scripting tool Thanks in advance . weblogic 12.1 .. . Answer : Ok from what I read it isn t possible to change security in the WLST . However I was able to delete the credential mapping from config.xml and restart the admin servers and all managed servers .",
"Question : I m trying to perform remote uploading and deploying via WLST . I succeed to deploy applications already present in the path of the WebLogic server . But now I would like to deploy one remotely available . Is there any possibility to upload WAR EAR on the WebLogic server via WLST before deploying it I m running weblogic 12C . I tried with : .. . .. . give me as return : .. . .. . And when i check on the server nothing is deployed . .. . Answer : I found the solution : We must not use the tmp directory as source because the weblogic.Deployer use this directory . So the command is :",
"Question : I m trying to build a small Utility for tasks like 1 connecting to weblogic admin server . 2 Add managed server . 3 Register domain with nodemanager etcetera . I started development in eclipse added all the jars of weblogic wlserver103 server lib to my project buildpath . I don t know which jars are required for wlst embeded mode Development environment is set without any errors . When I m trying to run the simple task like connecting to admin server . An exception was thrown as shown below .. . .. . I can do the same connect from wlst offline mode with the same username and password which works well.As a workaround I ve also tried giving userconfig and userKey secure files as parameters to connect command . Note : Admin server is already started and running . .. . Answer : Asumming that your WLS domain is located in oracle app oracle gc inst user projects domains GCDomain the following WLST commands worked for me on WLS10.3.6 and allow us to enable RuntimeMBeanServer : .. . .. . 1 Enable Platform MBean Server if disabled : 1.1 . From WLS admin console go to GCDomain Configuration General Advanced 1.2 . Select Platform MBean Server Enabled save the changes and activate the changes . 1.3 . Restart the admin server . 2 enable env variables for GCDomain .. . .. . 3 enable the RuntimeMBeanServerEnabled from WLST java weblogic.WLST .. . .. . Hope it works for you too .",
"Question : One of the elegant things about WebLogic is WLST Weblogic Scripting . Is it possible to script actions done in ALSB Aqualogic Service Bus For example : Exporting resources from the bus . .. . Answer : The short answer is yes . Check out Using deployment APIs http : download.oracle.com docs cd E13171 5F01 alsb docs30 deploy config 5Fappx.html .",
"Question : null .. . Answer : Requirement is to monitor bridges and restart them if they are inactive . prints below text .. . .. . prints list and i can see MessagingBridgeRuntime as below .. . .. . it has null value next to it . prints values as None .. . .. . How can i access existing bridges through wlst Is it possible to shutdown and start bridges through wlst . Comment : I tried to edit your question but.. . your question is very confusing . Are you following something like community.oracle.com thread 2411319 https : community.oracle.com thread 2411319 What version of weblogic 9.2 users have reported errors",
"Question : I m trying to perform remote uploading and deploying via WLST . I succeed to deploy applications already present in the path of the WebLogic server . But now I would like to deploy one remotely available . Is there any possibility to upload WAR EAR on the WebLogic server via WLST before deploying it I m running weblogic 12C . I tried with : .. . .. . give me as return : .. . .. . And when i check on the server nothing is deployed . .. . Answer : Written myself can do undeploy + deploy . The deploy line is : .. . .. . deploy project archive apptargets stage plan remote true upload true archiveVersion archiveversion planVersion planversion .. . .. . disadvantage of using version number in deploy is that redeploy with plan is not working .. . .. . Complete script : line next code out yourself I had to add some spaces to place it here .. . .. . Have fun with it .",
"Question : One of the elegant things about WebLogic is WLST Weblogic Scripting . Is it possible to script actions done in ALSB Aqualogic Service Bus For example : Exporting resources from the bus . .. . Answer : I found out how to export . You need to grab an instance of ALSBConfigurationMBean like so . From there you just do a query for the correct references . Documentation for ALSBConfigurationMBean is here http : download.oracle.com docs cd E11036 5F01 alsb30 javadoc com bea wli sb management configuration ALSBConfigurationMBean.html .. . .. . Found some sample Jython code here http : code.google.com p guavatools source browse trunk JardenPOC ALSBSync conf export.py spec svn57 r 57",
"Question : I trying to connect to em console through wlst . But I could connect only to weblogic admin console . I need to change some of the mediator properties soa-infra which is a web application through em console . Can anyone please help me in connecting to emconsole and thereby changing the mediator properties . For this I executed oracle home oracle common common bin wlst.sh .. . Answer : Everything goes through the admin console since that controls the entire domain and deployments applications . The following links all have examples on how to edit soa-infra properties : .. . .. . http : rreddy.blogspot.com 2012 03 wlst-soa-mbeans-examples.html .. . .. . http : bibeksoa.blogspot.com 2013 10 wlst-script-soa-process-deployment.html .. . .. . http : www.qualogy.com wlst-change-script-to-soa-common-bpel-an-bpmn-properties .. . .. . http : go2kavinkumar.wordpress.com 2011 08 28 using-wlst-to-manage-web-service-policies .. . .. . Specifically you want to grab the Application soa-infra object to use it .",
"Question : I m trying to perform remote uploading and deploying via WLST . I succeed to deploy applications already present in the path of the WebLogic server . But now I would like to deploy one remotely available . Is there any possibility to upload WAR EAR on the WebLogic server via WLST before deploying it I m running weblogic 12C . I tried with : .. . .. . give me as return : .. . .. . And when i check on the server nothing is deployed . .. . Answer : Yes there is . Take a look at WLST deploy command reference http : docs.oracle.com cd E13222 01 wls docs103 config scripting reference.html wp1024285 This link is for version 10gR3 . You can specify the remote and the upload options with true since their default values are false . PS 1 : The remote option is not available on WebLogic 9.0 and older versions but you can always get a newer weblogic.jar and try . PS 2 : You will need to have remote-access to the administrative interfaces usually ports 7001 and or 7002 . That means opening firewalls etc . PS 3 : Please provide the version of your WebLogic server as this might help us help you . Comment : I ve updated my post . Comment : Never seen such error . Will take a look and let you know if I find something . Comment : OK I m trying too Comment : I got J2EE Deployment SPI : 260080 Unable to define the application install directory at tmp helloworld.war . Directory could not be created or is a file . Comment : A couple of things you might try : First : please add -source before your .war path .. . -deploy -source tmp HelloWorld.war .. . . Second : take a look into your server s tmp folder and look for a helloworld.war file . If it exists delete it and try again . Third : add something like -Djava.io.tmpdir WL DOMAIN HOME tmp to your managed and admin startup scripts . It might be possible that your WL is using tmp filename as default . Let me know how it goes .",
"Question : I am basically a configuration-management and automation expert . I have got a task to create weblogic domains for SOA silently . The document that I have to follow is .. . http : docs.oracle.com cd E23943 01 core.1111 e12036 create domain.htm SOEDG532 .. . .. . I created the domain silently using a response file however oracle confirmed that JDBC cannot be configured this way and only wlst scripts can be used . This is what I need to get using wlst script .. . .. . products .. . .. . Basic WebLogic Server Domain .. . Oracle Enterprise Manager .. . Oracle WSM Policy Manager .. . Oracle JRF .. . .. . Component schema .. . .. . component schema - OWSM MDS Schema .. . schema owner - DEV MDS .. . username - abc .. . password - xyz .. . service listener - XXYYZZ .. . port - 1554 .. . .. . Admin Server .. . .. . Name : AdminServer .. . Listen Address : enter ADMINVHN . Listen Port : 7001 .. . SSL listen port : N A .. . .. . Managed Servers .. . .. . WLS WSM1 xx.xx.xx.xx 7010 .. . WLS WSM2 xx.xx.xx.xx 7010 .. . .. . Cluster .. . .. . WSM-PM Cluster .. . .. . Assign WLS WSM and WLS WSM2 to WSM-PM Cluster .. . .. . Node MAnagers machines .. . .. . SOAHOST1 xx.xx.xx.xx .. . SOAHOST2 xx.xx.xx.xx .. . ADMINHOST xx.xx.xx.xx .. . .. . Assign Servers to machines .. . .. . SOAHOST1 : WLS WSM1 .. . SOAHOST2 : WLS WSM2 .. . ADMINHOST : AdminServer .. . .. . Target Deployments to Clusters or Servers the wsm-pm application is targeted to the WSM-PM Cluster only . All other deployments are targeted to the AdminServer . All JDBC system resources should be targeted to both the Admin Server and WSM-PM Cluster . Can some one help me with a sample script I can build upon that . I have no experience of wlst . .. . Answer : I am in the same situation . The better script that a found is in that tutorial : http : middlewaresnippets.blogspot.co.uk 2014 08 set-up-12c-soabpm-infrastructure.html .. . .. . This guy automatize everything with linux bash.. . so some times the problem is understand what he is doing.. . I hope this help you .. . .. . If you found a better solution let me know",
"Question : I m using an AIX machine which has Weblogic 9.21 installed and it also has jython as part of its installation WLST . Is there a way to run jython code without having to initialize the WLST first I have the following jars too if they bring in any ideas : .. . .. . Right now I m invoking the jython code using : .. . Answer : Paste below code in a shell script say jythonExec.sh and use it .. . .. . Example Usage : bin bash jythonExec.sh file.py Comment : Perfect Thanks .",
"Question : I am deploying an application using wlst script in Weblogic 12.1.2 and JDK 1.7.0.75 . All the tasks create domain cofigure Admin Server Start Server connect written in wlst script works except for application deployment . App Deployment script : .. . .. . Through console the application is deployed without any memory issues . In console I have chosen : Target style as Install this deployment as an application Security Model as DD Only : Use only roles and policies that are defined in the deployment descriptors . Staging Mode Source Accessibility as I will make the deployment accessible from the following location and Plan Staging Mode Plan Source Accessibility Use the same accessibility as the application . Do I have to set any specific memory settings in wlst script for it to deploy successfully Out of Memory Exception : .. . .. . org.springframework.beans.factory.BeanDefinitionStoreException : Unexpected exception parsing XML document from class path resource beans-config.xml nested exception is java.lang.OutOfMemoryError : PermGen space .. . Answer : The application was deployed successfully after starting the server by specifing memory arguments as described below : startServer AdminServer my domain t3 : localhost : 7001 weblogic password user projects domain my domain true 60000 false jvmArgs -XX : MaxPermSize 256m -Xms512m -Xmx512m",
"Question : Could you please help the procedure to follow for executing the WLST script on OSB 12c i.e from SOA suite weblogic 12c server domain . As I see I am not able to run a sample script to display the available proxies from the 12c OSB domain . I see the error as ImportError : No Module named WLI I saw from the OTN forum few sb jars are to be added to the classpath to resolve this issue I don t see those specific jars in the 12c domain let me know where to see them sb-kernal-api sb-kernal-impl configwk- version but I have added them from the existing 11g OSB domain it didn t help work further I see many nullPointerExceptions in the WebLogic 12c server console for referring the jars from the 11g domain . Please suggest with any example to change one of the customization entry in a OSB proxy business service using the WLST in the WebLogic 12c . Thanks in advance . .. . Answer : You must edit ORACLE HOME oracle common common bin wlst.sh .. . .. . Change .. . .. . With .. . .. . With this change you can user the OSB Management API . Examples : .. . .. . https : redstack.wordpress.com 2011 08 25 getting-started-with-continuous-integration-for-osb .. . http : www.albinsblog.com 2013 08 customizing-osb-project-through-wlst.html .. . .. . I hope that helps . Comment : Thanks a lot Juan and Pang . I am able to run the script in my local after editing the classpath as mentioned by you I believe this information is not available any where-in the documentations . If you have come across could you please advice how it can be done to select the OWSM security policy to a proxy service using the wlst script in 11g domain we have many proxy services referring to the wls policies now as per the Oracle recommendation in 12c instead of Weblogic security policy want to select the policy from the OWSM store . Thanks a lot again . Comment : Subash if it worked for you please select it as right answer to resolve the issue . Comment : Pavan yes it is really helpful . I am indeed looking for a reply for other area in security policy selection in OSB proxy service using WLST . Comment : Hi Juan I see now getting another error - import error : no module named security when importing this line from com.bea.wli.sb.security.management.configuration import ServiceSecurityConfigurationMBean I see security related jar in the OSB HOME lib folder so I have added it to classpath in the wlst.cmd file but still getting this error any idea how to resolve this please as I have to modify the security policy in the proxy services to OWSM policy . Comment : Hi Subash try with from com.bea.wli.sb.management.configuration import ServiceSecurityConfigurationMBean . The jar is oracle.servicebus.resources.service.jar . I hope this helps . Juan",
"Question : I am trying to untarget a JDBCResource in weblogic using wlst script . I tried the following : .. . .. . but it fails with the following exception : .. . .. . Why does it say ObjectName not supported .. . Answer : If you know the name of the target you can remove it explicitly with something like : .. . .. . If you don t know the targets that is easy to find out as well :",
"Question : I am trying to untarget a JDBCResource in weblogic using wlst script . I tried the following : .. . .. . but it fails with the following exception : .. . .. . Why does it say ObjectName not supported .. . Answer : Basically i was trying in an offline mode and from one of the oracle documents i found that we can use unassign function to untarget in an offline mode Comment : Jinu unassign command this would be the answer that you found for your question Please select right answer ."
]
} | [
"yes-answer-long",
"yes-answer-short"
] | scripting | UNK_RELATION |
regasm@.net@176 | regasm -- regasm is an assembly registration tool that reads the metadata within an assembly and adds the necessary entries to the registry which allows com clients to create @placeholder framework classes transparently . | {
"confidence": [
81.09379577636719,
59.205894470214844,
54.67055892944336,
53.9345817565918,
50.7378044128418,
48.75294494628906,
48.389408111572266,
47.50321960449219,
46.27442932128906,
45.58821487426758,
45.01369094848633,
44.731197357177734,
43.32233810424805,
43.01585388183594,
41.79813003540039,
41.69341278076172,
41.59514236450195,
40.84873962402344,
40.16352844238281,
40.136722564697266,
39.517822265625,
39.517822265625,
39.1718635559082,
39.06120681762695,
38.860694885253906,
38.76107406616211,
38.46963119506836,
38.25929260253906,
38.25929260253906,
38.25929260253906,
38.25929260253906,
38.25929260253906,
38.19782257080078,
37.925811767578125,
37.887115478515625,
37.665283203125,
37.631229400634766,
37.482845306396484,
37.482845306396484,
37.482845306396484,
37.32566452026367,
37.219520568847656,
36.96027755737305,
36.96027755737305,
36.592411041259766,
36.592411041259766,
36.43586349487305,
36.34297180175781,
36.34297180175781,
36.34297180175781,
36.34297180175781,
36.34297180175781,
36.34297180175781,
35.78569793701172,
35.78569793701172,
35.763092041015625,
35.63150405883789,
35.5423469543457,
35.513572692871094,
35.43046569824219,
34.95941925048828,
34.892356872558594,
34.87834548950195,
34.735633850097656,
34.51806640625,
34.50456237792969,
34.50456237792969,
34.44603729248047,
34.3726692199707,
34.26005172729492,
34.24873352050781,
34.0373420715332,
34.03437805175781,
33.913238525390625,
33.51653289794922,
33.48197937011719,
33.39030456542969,
33.37657928466797,
33.37657928466797,
33.37657928466797,
33.37657928466797,
33.19866943359375,
32.99439239501953,
32.84675598144531,
32.80387878417969,
32.32875061035156,
32.32875061035156,
32.326515197753906,
32.326515197753906,
32.326515197753906,
32.326515197753906,
32.326515197753906,
32.326515197753906,
32.326515197753906,
32.23041915893555,
32.222564697265625,
32.17066955566406,
32.135311126708984,
32.03759765625,
32.01115417480469
],
"content": [
"Regasm http : msdn.microsoft.com en-us library tzat5yw6 28VS.71 29.aspx can read the metadata within an assembly and adds the necessary entries to the registry which allows COM clients to create .NET Framework classes transparently .",
"It will extract the COM Regasm metadata and author it as Registry table entries .",
"However nothing seems to appear in the registry when running regasm on the assembly .",
"regasm will register a COM-exposed .NET assembly as a COM server .",
"Then I register my assembly with the regasm tool and the codebase tlb options .",
"Be it with the Register COM Interop checkbox or be it with the RegAsm tool .",
"You just have to use regasm on the assembly as Hans suggested : .. . .. . Put the assembly somewhere on the target system and call regasm tlb codebase assembly name .",
"This will create a new .tlb file and the necessary registry entries to make the assembly and type library COM visible in their current location .",
"Like Interop.CoreScanner is a .NET assembly I use regasm to register the COM objects but the error still occurs .",
"If you open YourDLL.reg in a text-editor you ll see the entries that Regasm is adding to the registry : entries to HKEY Classes Root which is really just a redirect to HKLM Software Classes .",
"And of course reregistering the assembly for COM interop will properly relocate necessary registry keys .",
"To see what registry entries Regasm is adding you can run it with the regfile parameter : .. . .. . Regasm YourDLL.dll codebase regfile .. . .. . The regfile option is invalid with the tlb parameter .",
"However the MSBuild does not produce a bTest.tlb file and the resulting assembly still fails with the RegAsm 4.0 tool .",
"If I want to make a .NET assembly usable as a COM server I have to add a set of attributes and then use regasm to register it as a COM server .",
"If I m in the right way why regasm is not able to generate the missing registry entries",
"@PetrSr : my experience was that the only entries that were missing entirely with regasm regfile were the CodeBase entries but regasm codebase regfile fixed that .",
"I have registered a .NET DLL using REGASM and registration is successful .",
"The reg file is generated by regasm itself and is supposed to simply replicate the changes made to the registry by the tool .",
"2 . regasm unregister .. . 3 .",
"Also tried running regasm with the regfile switch to generate a regfile which generates this : .. . .. . I m no COM wizard of any measure but the registration looks valid to me .",
"And since RegAsm uses reflection to walk through all types in the assembly this will always load all dependencies .",
"I was just looking for a cleaner way of registering the assembly on the fly other than invoking regasm directly .",
"A workaround for calling regasm without the admin rights was described here already : .. . .. . COM Interop without regasm http : stackoverflow.com questions 1354581 com-interop-without-regasm .. . .. . I m trying to create a COM library that my users can deploy and use from Excel VBA without the admin privileges .",
"There is a lot more that would need to happen besides the COM registration for the assembly to work .",
"The account under which you run regasm doesn t have rights to write to C : Program Files FooProg and that s why regasm fails to write the .tlb .",
"Remove the registration entries from HKLM by using regasm : .. . .. . Make sure things don t work .. . .. . In order to make sure that our change worked and that you re not just successful because of the registration you did with regasm originally we need to make sure that VBA cannot create the object right now .",
"RegAsm output from MSbuild built bTest.dll : .. . .. . RegAsm output from Visual Studio 2010 built bTest.dll : .. . .. . For the above the bTest.csProj file had the Register COM interop was unchecked and RegAsm was done as a post build step .",
"I have a simple C project when built with MSBuild it builds an assembly that can t be registered with RegAsm error RA000 .",
"The exact same .csProj built with Visual Studio 2010 creates valid assembly and RegAsm registers successfully",
"I ve written an assembly that registers and works fine on my development-machine using regasm .",
"If I try this I ve the following message Error : RegAsm : error RA0000 : Failed to load . MyDLL.dll because it is not a valide .NET assembly",
"How can I use the VIsual Studio setup-project to do the following things : .. . .. . Register the assembly currently using regasm .",
"Here is my questions : C : Windows Microsoft.NET Framework v4.030319 regasm XXX.dll codebase .",
"Run regasm under an account with administrator priviledges .",
"I see warnings like RegAsm : warning RA0000 : No types were registered when running RegAsm on some of my other assemblies which may be incorrectly exposed to COM .",
"Which version of regasm did you use",
"I have a dll that registers fine using .Net2.0 s regasm but when attempting to register with a .NET4.0 regasm I get the error Could not load file or assembly FILENAMEHERE or one of it s dependencies .",
"Regasm is doing several things here .",
"regasm has nothing to do with the GAC .",
"Is the effect of regasm and caspol only temporary",
"I am asked to register a dll by using regasm but new to it .",
"I have a COM component which is registered using regasm and now I could see a multiple class Ids for this COM Component using oleview.exe under CLSIDs in registry Log.Main .",
"The RegAsm executable is located in the .Net Framework version folder but that is not by default in your path .",
"Here is code and regasm : .. . .. . C : Windows Microsoft.NET Framework v4.0.30319 regasm.exe excelDll.dll",
"I have a .Net DLL which I want to register using regasm .",
"In a VS2005 setup-project there is a setting called InstallAllUsers which seems to affect RegAsm .",
"RegAsm failing for a .NET 4.0 assembly using Microsoft.Bcl.Async with the following message : .. . .. . My assembly MyAssembly.dll uses the latest Microsoft.Bcl.Async NuGet package here s the project s packages.config : .. . .. . It bundles System.Threading.Tasks.dll Version : 2.6.6.0 which is a part of that NuGet package .",
"I do this and register it using regasm my.dll codebase .",
"you want use regasm to register a .NET DLL",
"RegAsm is a .NET application with its own dependencies .",
"I think that fits with what your read in regasm .",
"I believe Regasm must be run by an administrator .",
"Therefore whatever is done with Regasm will be done for all users .",
"I will have to look at the registry after registering with regasm and then after using the .reg and see what the differences are .",
"What is going on here can I trust anything except the registry and what about the on off warnings from regasm",
"Hmm I ve tried using a Process to directly call regasm on the generated assembly as well as your posted solution above and both additional methods still lock the assembly somehow .",
"It s likely that this second library will be automatically loaded as RegAsm scans the first but it shouldn t load the third as long as you keep its types out of the first assembly .",
"As an alternative he can do what that checkbox does which is to use RegAsm .",
"I liked the regasm workaround since it seems that people don t have much success with using registration-free COM objects from Excel VBA .",
"Make assembly COM-Visible is checked .",
"But i get : regasm : warning ra0000 : no types were unregistered for unregistering .",
"The problem comes when we try and register our wrapper DLL with regasm which fails with : .. . .. . RegAsm : error RA0000 : Could not load file or assembly 3rdParty.Application.Library Version 5.3.0.0 Culture neutral PublicKeyToken 0123456789abcdef or one of its dependencies .",
"Install the .NET DLL in the GAC .. . .. . This is the customer s observation and also supported by the RegAsm documentation http : msdn.microsoft.com en-us library tzat5yw6 28VS.80 29.aspx : .. . .. . After registering an assembly using Regasm.exe you can install it in the global-assembly-cache so that it can be activated from any COM client .",
"When i apply the RegAsm its not adding the registry to 64-bit path but only adding it to 32-bit path .",
"Only one class has the ClassInterfaceAttribute and GUID stuff set and I can test that the add-on only requires the COM registry keys for this class -- and yet REGASM generates GUIDs and registry keys for every class in the entire project .",
"if you used the Framework64 version against an x86 assembly you ll get an error message stating RegAsm : error RA0000 : Failed to load YourLib.dll because it is not a valid .NET assembly .",
"I have successfully registered the assembly and the type library on my development-machine using RegAsm like so : .. . .. . The above command generates the type library MyAssembly.tlb and registers it as well as registering the assembly .",
"If the assembly is not signed with a strong name regasm when run with codebase key shows a RA0000 warning saying that the assembly could interfere with other assemblies on the same computer and I should sign it with a strong name but registration succeeds and it even works just fine .",
"This answer http : stackoverflow.com questions 12807 how-to-register-com-from-vs-setup-project 14604 14604 suggests using the regfile command of regasm and then using the import tool on the Registry in the Setup Project .",
"Even the simple class below as the only class in an assembly that is signed and marked with ComVisible false still warning persists : .. . .. . I ve tried to run regasm from the command-line on the output which gladly states Types registered successfully .",
"Make sure you call the right version of regasm on the other machine either from Framework64 or in Framework for x86 .",
"So I m thinking that somehow the method is not visible to COM or that it s not getting registered via regasm .",
"I did try the codebase option in regasm as well .",
"You just need to register them with the standard .NET regasm utility and you can invoke the regasm utility as an external process using the System.Diagnostics.Proces object .",
"Signing an assembly that is meant to act as a COM server ensures that the assembly doesn t collide with other COM-registered assemblies on the same computer .",
"I want to register a .net-assembly as COM .",
"When trying to run regasm in Win2008 Server : .. . .. . I get the following error : .. . .. . RegAsm : error RA0000 : An error occurred while saving the exported type library : Access is denied .",
"The problem with the way of working in the question is in finding the correct location of RegAsm .",
"when i try to register that DLL using REGASM it is throwing error as below",
"It Started working once I use codebase with Regasm .. . .. . Earlier I was doing :",
"Is there any C code to regasm my DLL in windows application",
"Use the 32-bit regasm from the Framework directory not the Framework64 directory to have your component registered in the Wow6432Node .",
"It looks like the assembly wasn t being registered because it didn t contain any classes available for registration just the one interface .",
"Tried running regasm from within the install folder directly so it could find all dependencies there .",
"i just cant register some dll files that has been built with .net framework 4 in some systems that both client and extended versions of .net framework 4 is installed when i copy regasm.exe from .net framework 4 folder and paste it among some dll files that i want to register them using regasm it gives me this error : .. . .. . RegAsm : error RA0000 : Could not load file or assembly file : file address RegAsm.exe or one of its dependencies .",
"You need to run regasm with the codebase argument and you also need to make sure your javascript runs with the same bitness as the assembly both x86 or both x64 .",
"Wrong.Type is also in the assembly so I assume something is going wrong with the type library but I have tried regenerating using regasm codebase tlb MyLib.dll and this hasn t helped .",
"Is there an identifier to let regasm know that that my second string parameter is actually an output",
"I have then registered the dll s using regasm using the codebase argument .",
"Allthough it is a little tedious with 6 dll s the regasm works fine .",
"When i need to deploy it i normally use regasm .",
"Why are you using regasm what do you think it does",
"Consequently I need to run regasm and caspol on this .NET component .",
"Are you sure that both regasm and caspol need to be re-run",
"When you let Visual Studio take care of the registration with the Project + Properties Build tab Register for COM interop option then you get the exact equivalent of Regasm codebase tlb .",
"The registration of COM assemblies in the system registry does not help with resolution at runtime .",
"To support unmanaged clients I modified the example CSExeCOMServer http : support.microsoft.com kb 977996 to output a TLB file using a post-build event and regasm .",
"I have the .NET component installed checked GAC as well using regasm tool generated and registered type libraries .",
"When using regasm and caspol to register and grant trust to assemblies will it matter under which user account these utilties are executed",
"I am Not a COM or COM+ person but a few posts i have seen talks about running the regasm command with codebase option ."
]
} | {
"confidence": [
109.0768814086914,
78.02159118652344,
77.6509017944336,
75.2623519897461,
74.79854583740234,
73.06320190429688,
72.95333099365234,
69.05838775634766,
68.63740539550781,
68.12603759765625,
67.05400085449219,
66.6659927368164,
66.57518005371094,
65.29533386230469,
63.83229064941406,
63.72013854980469,
63.170589447021484,
63.14454650878906,
63.110572814941406,
61.91067886352539
],
"content": [
"Question : When using regasm and caspol to register and grant trust to assemblies will it matter under which user account these utilties are executed Could there arise a situation where assemblies are registered and or granted trust only for certain users on a machine or domain .. . Answer : I believe Regasm must be run by an administrator . Regasm http : msdn.microsoft.com en-us library tzat5yw6 28VS.71 29.aspx can read the metadata within an assembly and adds the necessary entries to the registry which allows COM clients to create .NET Framework classes transparently . Once a class is registered any COM client can use it as though the class were a COM class . Therefore whatever is done with Regasm will be done for all users . So no when using regasm there won t be a situation where assemblies are registered only for certain users on a machine or domain . Caspol can be run by users other than administrators . Caspol http : msdn.microsoft.com en-us library cb6t8dtz 28VS.80 29.aspx enables users and administrators to modify security policy for the machine policy level the user policy level and the enterprise policy level . If you do not currently have administrative permissions your default view is the Users view . A list of the Security Policy Levels http : msdn.microsoft.com en-us library 628s5x1x 28v VS.80 29.aspx shows the variations . Therefore Caspol allows user and machine specific security policies and the type of user running Caspol will have an impact on what can be achieved . So yes when using Caspol there can be a sitation where assemblies have a different security policy based on machine and user .",
"Question : I m attempting to expose our library via COM but seem to be fighting the tools more than the actual problem . Regardless of how I write my COM exposed class I get the warning : XXX.dll does not contain any types that can be registered for COM interop marked project as Register for COM interop in the project properties . Even the simple class below as the only class in an assembly that is signed and marked with ComVisible false still warning persists : .. . .. . I ve tried to run regasm from the command-line on the output which gladly states Types registered successfully . However running with the verbose switch no extra information is displayed I seem to recall that it lists the name or perhaps just the number of registered types . Also tried running regasm with the regfile switch to generate a regfile which generates this : .. . .. . I m no COM wizard of any measure but the registration looks valid to me . However nothing seems to appear in the registry when running regasm on the assembly . So my question is whether I m missing something in my simple example to have the registration work am I seeing false indications and is the registration actually correct and how can I better determine if the COM registration actually works .. . .. . EDIT : Using the alterations suggested by Kev I could not avoid the warnings from VS2008 but I could actually get something registered in the registry using regasm directly nothing in the registry from just the VS2008 integration . I then tried to remove the simple class so I had an empty assembly . Running regasm on this did not report any sort of warnings only Types registered successfully . I see warnings like RegAsm : warning RA0000 : No types were registered when running RegAsm on some of my other assemblies which may be incorrectly exposed to COM . What is going on here can I trust anything except the registry and what about the on off warnings from regasm Comment : What version of Windows are you building on XP Vista Win7 32bit-64bit Comment : I m on XP 32-bit Comment : Unfortunately I don t have a copy of XP to try this on : . I just can t reproduce the problem you re having . Comment : Thanks for being so persistent Kev . A re-guiding of the COM exposed types and a reboot helped with the simple example . Still struggling with exposing types for larger assemblies though . .. . Answer : I created a class-library project based on your code as follows : .. . .. . In the project properties page select the Signing tab . Check the Sign the assembly checkbox and select New.. . from the Choose a strong name key file : drop down box . I then added the following class Example.cs : .. . .. . I then built the project then dropped to a command-line where the DLL was output from the build . To register : .. . .. . regasm.exe COMInteropTesting.dll register codebase tlb .. . .. . If your component needs to be accessible to multiple applications : .. . .. . gacutil.exe -i COMInteropTesting.dll .. . .. . This all worked fine on Windows 2003 32bit Windows 2008 32bit and Windows 7 64 bit . One gotcha though is that if you re testing the component with say CScript on a 64 bit system you need to run the correct CScript interpreter . If you registered the assembly using 32bit RegAsm.exe at C : Windows Microsoft.NET Framework v2.0.50727 then you need to run the 32-bit CScript interpreter at c : Windows SysWOW64 . Comment : Still same warning from VS2008...sigh... . However seems to actually appear in registry . Was hoping for a clearer indication of success . A side question : do I really need to add it to the gac if I register with codebase Comment : Ah...I have a COM component that we register in the GAC . That said I find your predicament very strange . Comment : Marking this as the answer as this will produce a working sample",
"Question : Recently I wrote a class-library in C for use in Office applications including a critical Access application used by 70 people . For users with admin rights registering the DLL is trivial but getting the DLL working on other machines was problematic . Registering the DLL for use with admin privileges .. . .. . Build the DLL in Visual Studio . Ensure these options are selected on the project s Application tab : .. . Output Type : Class Library .. . Assembly Information : Make assembly COM-visible : Checked .. . Use an elevated command-prompt to register the assembly : .. . RegAsm YourDll.dll tlb codebase .. . Add a reference to YourDll.tlb in VBA : Tools-- References .. . Verify that you can create an instance of your object .. . .. . What is happening Regasm is doing several things here . First it is creating a type library YourDLL.tlb which provides information about the classes that are in your DLL . Second it is storing the information about the library in the registry so that the system knows what you mean when you ask for a class to be instantiated as an object . To see what registry entries Regasm is adding you can run it with the regfile parameter : .. . .. . Regasm YourDLL.dll codebase regfile .. . .. . The regfile option is invalid with the tlb parameter . If the codebase option tells Regasm to include information about where YourDLL.dll is located on disk which is important for creating the objects . If you open YourDLL.reg in a text-editor you ll see the entries that Regasm is adding to the registry : entries to HKEY Classes Root which is really just a redirect to HKLM Software Classes . Unfortunately you need admin privileges to modify HKLM so this isn t going to work for our other users . There are a few other threads e.g . Registering a COM without Admin rights http : stackoverflow.com questions 35782404 registering-a-com-without-admin-rights Register COM DLL for use by VBA http : stackoverflow.com questions 10157735 register-com-dll-for-use-by-vba Register DLL ActiveX for non-admin user http : stackoverflow.com questions 2250511 register-dll-activex-for-non-admin-user Unable to register .NET COM DLL http : stackoverflow.com questions 16562861 unable-to-register-net-com-dll COM Interop without regasm http : stackoverflow.com questions 1354581 com-interop-without-regasm that discuss the problem but their solutions are complex e.g . require registry redirection or incomplete assume you already know at least half of the answer or do not work in mixed 64 32-bit environments e.g . Win64 Office32 . So how do you register a COM DLL created in Visual Studio for use in VBA 32 and 64 bit environments for the current user without administrative privileges .. . Answer : Setting up the registry files .. . .. . To register the components for use in 32 and 64 bit environments we are going to need to modify the registry file we created in our test case . Open it with your favorite text-editor . The entries should look something like this : .. . .. . Make sure that it includes CodeBase entries . Do a global find replace : .. . .. . Change HKEY CLASSES ROOT which is aliasing to HKLM Software Classes .. . To HKEY CURRENT USER Software Classes .. . .. . Copy all of the registry keys and their values which are listed below the keys to a second text file . In the second text file : .. . .. . Delete all of the keys and their related values that do not contain CLSID .. . Do a global find replace : .. . Change Classes CLSID .. . To : Classes Wow6432Node CLSID .. . .. . Copy all of the keys from the second text file to your original .reg file and save it . Remove the registration entries from HKLM by using regasm : .. . .. . Make sure things don t work .. . .. . In order to make sure that our change worked and that you re not just successful because of the registration you did with regasm originally we need to make sure that VBA cannot create the object right now . Open up your favorite VBA application and add a reference to YourDLL.tlb . Create a new procedure that is something like this : .. . .. . Run TestYourDLL . You should receive the error : .. . .. . If you don t receive the error your DLL is still registered . Save and exit your VBA application . Making sure they work .. . .. . Now run the YourDLL.reg that you created earlier to import the entries to the registry . If you get an Access denied message you forgot to change from HKEY CLASSES ROOT to HKEY CURRENT USER Software Classes .. . .. . Open your VBA application again and run TestYourDLL . You should now see Apparently this worked . in your immediate window . Congratulations You ve registered the DLL If you get an Automation error : The system cannot find the file specified -type error your registry file is either missing the Codebase entries or they are not pointing to the actual location of your DLL . Additional steps .. . .. . In my case I m going to be installing the DLL on a bunch of other users computers alongside my application so at installation time I ll update the CodeBase value to refer to the location where I m installing the DLL and I ll also install the registry entries through code rather than by executing the .reg file . But now that I know the required entries doing that is trivial . Comment : I tried a similar process some time ago and it did not work for me because the generated reg file did not contain all the necessary entries http : stackoverflow.com questions 14652483 why-does-regasm-regfile-seem-incomplete . This might not affect you but you should be aware of this limitation.. . Comment : @PetrSr : my experience was that the only entries that were missing entirely with regasm regfile were the CodeBase entries but regasm codebase regfile fixed that . Of course the 32-bit registration was also missing which is why I had to create those entries myself using the basic info as a base . Were you able to figure out which entries were missing for you Comment : The TypeLib and Interface IDs were missing and I was not able to get my DLL to work without them . As described in regasm documentation https : msdn.microsoft.com en-us library tzat5yw6 v vs.110 .aspx Anchor 2 these entries will always be missing with the regfile option . I tried to harvest the missing etnries directly from the registry but it proved to be a rather tedious task . I eventually gave up and asked my boss to register the DLL using his admin account for me.. . : - Comment : @PetrSr That would be really tedious . My test case didn t involve interfaces so I missed that . I ll see if I can figure out how the interface and type library IDs are registered and add that info if I can .",
"Question : I made a COM Wrapper for c to use it in vba . I compiled it after with gacutil and regasm I installed it on my pc after I refered it in vba and it worked perfectly . Now I want to use this foo.tlb in another PC but it doesn t have gacutil or VS . I just have to execute regasm.exe for this tlb Or what else I need to do it Comment : COM components should have an installer . Most programmers equate creating one to having a root-canal done . But simple with the right utility like this VS extension https : visualstudiogallery.msdn.microsoft.com 9abe329c-9bba-44a1-be59-0fbf6151054d . You don t have to have one you can limp along with Regasm.exe without putting it in the GAC . Use the tlb and codebase options . .. . Answer : You just have to use regasm on the assembly as Hans suggested : .. . .. . Put the assembly somewhere on the target system and call regasm tlb codebase assembly name . This will create a new .tlb file and the necessary registry entries to make the assembly and type library COM visible in their current location . Without the codebase the assembly needs to be in the GAC to be found .",
"Question : I have a COM visible dll suitable for 32 and 64 bit architechtures that I use to add a menu item to the windows-explorer context menu . Using regasm myassembly.dll codebase I register the dll and see the new menu item . Great . Unregistering works fine also . Now I want to create a .reg file so I can add the menu item to non development machines . I use regasm myassembly.dll codebase regfile that produces a reg file that I can import with regedit . The problem is after importing the .reg I cannot see the menu icon . Why might the registration have failed Note I am on a 64 bit system . Comment : Probably a 64 32-bit thing see also stackoverflow.com questions 8172392 http : stackoverflow.com questions 8172392 regasm-regfile-switch-not-giving-same-output-as-codebase-switch Comment : I think this is likely the case . I will have to look at the registry after registering with regasm and then after using the .reg and see what the differences are . .. . Answer : You should know that this is a really really bad idea . Please read this classic post on the subject . http : blogs.msdn.com b oldnewthing archive 2006 12 18 1317290.aspx .. . .. . Then this recent update : .. . .. . http : blogs.msdn.com b oldnewthing archive 2013 02 22 10396079.aspx .. . .. . Even if you insisted on trying this or if the assembly was intended for something other that an Add-in it s still a bad idea to try to use a .reg file to register the assembly . There is a lot more that would need to happen besides the COM registration for the assembly to work . Most likely you would have to add it to the GAC so that .NET can find it . Also a future version of .NET might require more information or different information to be added on the registry . Even today I suspect REGASM might need to put different information on different environments x86 vs . x64 . Comment : Thanks for the information . There are a few other articles regarding this here http : sharpshell.codeplex.com wikipage title Managed 20Shell 20Extensions referringTitle Documentation not all of which dismiss the idea . The reg file is generated by regasm itself and is supposed to simply replicate the changes made to the registry by the tool . There is also no need to add the dll to the GAC as the codebase flag stores the location of the dll in the registry . This being said I will have a look at the alternatives since this is proving to be troublesome . Comment : @Matt thanks for pointing out that link . It is an interesting summary on clearly conflicting views . Obviously the person has done a good deal of research . Personally I have to defer to the official guidance from MS - which is official for a reason - and the position of Raymond Chen whose opinion I deeply respect . Maybe I can withdraw one of the really from my post as a compromise : -",
"Question : I have a COM visible dll suitable for 32 and 64 bit architechtures that I use to add a menu item to the windows-explorer context menu . Using regasm myassembly.dll codebase I register the dll and see the new menu item . Great . Unregistering works fine also . Now I want to create a .reg file so I can add the menu item to non development machines . I use regasm myassembly.dll codebase regfile that produces a reg file that I can import with regedit . The problem is after importing the .reg I cannot see the menu icon . Why might the registration have failed Note I am on a 64 bit system . Comment : Probably a 64 32-bit thing see also stackoverflow.com questions 8172392 http : stackoverflow.com questions 8172392 regasm-regfile-switch-not-giving-same-output-as-codebase-switch Comment : I think this is likely the case . I will have to look at the registry after registering with regasm and then after using the .reg and see what the differences are . .. . Answer : Registering a shell extension requires writing more registry keys than normally required to register a ComVisible .NET assembly . You also have to write the keys http : msdn.microsoft.com en-us library windows desktop cc144110 28v vs.85 29.aspx handlernames that Explorer reads to discover extensions . You didn t mention at all how you took care of that this normally requires a custom ComRegisterFunction . But sure the .reg file isn t going to contain those keys since a custom registration function requires running code . Comment : Thanks for the input here . I am using SharpShell http : www.codeproject.com Articles 512956 NET-Shell-Extensions-Shell-Context-Menus to take care of the nasty work so I simply need to register the com visible assembly in this case . Comment : Yes it has a ComRegisterFunction . Clearly you won t get the keys it writes in your .reg file .",
"Question : Why would you need to run regasm and caspol on a .NET component more than once I have a COM client that uses a .NET component residing on another machine . Consequently I need to run regasm and caspol on this .NET component . What could cause there to be the need to do this again on the same machine to the same component Is the effect of regasm and caspol only temporary Or can I assume that someone has reset or cleared something on a machine if I am having to do this again EDIT : Only capsol needs to be run . Comment : A system restore jumps to mind . Comment : What about a different user being logged in Comment : A different user wouldn t matter since the settings are not stored in the per user part of the registry . All COM registration entries are machine specific and I d assume it would be the same for caspol . .. . Answer : Are you sure that both regasm and caspol need to be re-run If so Hans Passant s suggestion of a system restore seems likely . However if it is just caspol that actually needs to be re-run a .NET Framework upgrade may be resposible . CAS policy is specific to the version of the .NET CLR under which the component is run so installing .NET 2.0 on a machine that previously had only 1.x might be causing your problem . The 32- and 64-bit CLRs also use different security policies so installing an alternate bitness .NET Framework might also cause you assembly to be loaded under an CAS policy that you have not yet tweaked . Comment : In fact it is just caspol that needs to be run . The assembly that needs caspol re-run is from a third party . Would the CAS policy on that assembly need tweaking after a .NET upgrade Comment : The version-dependency of CAS policy applies to all assemblies so it s quite possible .",
"Question : I ve registered a .NET assembly using regasm.exe . Everything is fine but I have one problem . When I run registration from Admin user assembly is visible only by this user . Registration : .. . .. . So how can I register assembly for all users Comment : regasm has nothing to do with the GAC . It only registers the COM interfaces exposed by your assembly nothing more . You re probably looking for gacutil . Comment : @Fr d ricHamidi that s my fault I probably mean regasm.exe . Comment : So again what are you trying to do : do you want to register a COM interface with Windows or a .NET assembly with the assembly cache The latter can contain the former but should be done using a proper installer anyway not gacutil which is a development tool . Why are you using regasm what do you think it does What are you trying to achieve how are you going to utilize this registration Comment : Anyway regasm not registering for all users simply means you don t have administrative privileges making it register in HKCU instead of HKLM . Comment : Your installer toolchain should take care of this for you automatically assuming that you set the proper switch . Which one are you using It makes negative sense to write your own installation code . .. . Answer : As @Fr d ricHamidi mentioned you need to use gacutil for .net-assemblies . Alternatively you can do this in code requires elevation and can also be used to update dlls : .. . .. . If you have a Managed COM dll make sure you are using the right version 64 or 32-bit of regasm.exe https : msdn.microsoft.com en-us library tzat5yw6 28v vs.110 29.aspx in that case this question might be a duplicate of that question http : stackoverflow.com questions 6820637 dll-not-registering-for-all-users .. . .. . If you have an Unmanaged COM dll use regsvr32 https : msdn.microsoft.com en-us library tzat5yw6 28v vs.110 29.aspx Comment : The question seems to be about registering a COM DLL not necessarily a .NET assembly . You also shouldn t use GacUtil nor its API on client machines it s a development tool . Comment : @CodeCaster Then the question AND the tags are both wrong .. . Comment : That wouldn t be the first question where that d be the case . The OP is clearly misguided and this answer isn t going to help them I m afraid . Comment : @CodeCaster True maybe it can help someone who found this googling the right question . Comment : Then still you should not advise them to use gacutil nor its managed equivalent . It s even in the docs https : msdn.microsoft.com en-us library system.enterpriseservices.internal.publish v vs.110 .aspx : Publish is used internally by the .NET Framework . You do not need to use it directly in your code .",
"Question : A workaround for calling regasm without the admin rights was described here already : .. . .. . COM Interop without regasm http : stackoverflow.com questions 1354581 com-interop-without-regasm .. . .. . I m trying to create a COM library that my users can deploy and use from Excel VBA without the admin privileges . I liked the regasm workaround since it seems that people don t have much success with using registration-free COM objects from Excel VBA . I also want early-binding so my users can benefit from syntax completion . The accepted answer in the question mentioned above however doesn t describe where to put the assembly dll on the user s computer . Admin rights are required to install the assembly in the GAC so I m wondering where one can put the dll file . I presume that the application s dir is being searched for any referenced dlls but I can t put my dll in the Excel s dir without the admin rights again . Is it possible to use the workaround with the Excel client Is there any other way to call COM objects from VBA without the need of the admin privileges to deploy them first .. . Answer : Calling regasm without administrative rights for COM interop .. . .. . I think it should be possible to use RegistrationServices.RegisterAssembly http : msdn.microsoft.com en-us library system.runtime.interopservices.registrationservices.registerassembly 28v vs.110 29.aspx and RegOverridePredefKey http : msdn.microsoft.com en-us library windows desktop ms724901 28v vs.85 29.aspx APIs together to implement automatic registration under the HKCU hive in a UAC-friendly way . I ve posted a more detailed answer here http : stackoverflow.com a 23077042 1768303 . Comment : That s an interesting idea . I ll give it a try . Comment : I wrote a simple C++ CLI console app and it worked : int main array System : : String args HKEY key Console : : WriteLine RegOpenKeyEx HKEY CURRENT USER TEXT Software Classes 0 KEY ALL ACCESS key Console : : WriteLine RegOverridePredefKey HKEY CLASSES ROOT key auto rs gcnew RegistrationServices rs- RegisterAssembly Assembly : : LoadFile C : lib-net.dll AssemblyRegistrationFlags : : SetCodeBase return 0",
"Question : I want to register a .net-assembly as COM . In fact what that means as far as I know is that instead of HKEY CLASSES ROOT I want the entries to be written in HKEY CURRENT USER Software Classes so that UAC Admin rights are not needed . Found two solutions of that problem with both I m struggling : .. . .. . 1 Programmatically way with following code : .. . .. . in this approach overrideKeyResult is 6 which corresponds to ERROR INVALID HANDLE thus the RegisterAssembly throw a access denied exception because it tries to write to HKEY CLASSES ROOT . on a side note : each time I run the RegOpenKeyEx the key-value is different is that ok 2 with regasm .. . .. . by using regasm.exe with the regfile flag and then replacing in the generated .reg file all HKEY CLASSES ROOT occurences with HKEY CURRENT USER Software Classes .. . .. . this I think should work but how do I unregister such assembly when I wan t to uninstall my Outlook AddIn as I see I can t make it in the same way as register because : .. . .. . var openKeyresult RegOpenKeyEx HKEY CURRENT USER SOFTWARE Classes 0 int RegistrySecurity.KEY WOW64 64KEY out key .. . Answer : For what it s worth I ve written a set of C utilities that register unregister a .NET type should be marked as ComVisible of course in user s registry without requiring regasm nor UAC prompts : Comment : Exactly what I worked out only implemented not so clean : -",
"Question : I ve created a .NET assembly for COM interop and it is working well on my development-machine . I m currently trying to figure out how to deploy the DLL to a target machine using Visual Studio s Setup Project . How can I use the VIsual Studio setup-project to do the following things : .. . .. . Register the assembly currently using regasm . The assembly needs to be registered successfully strike and the type library .tlb needs to be registered successfully strike . This answer http : stackoverflow.com questions 239465 how-to-register-a-net-ccw-with-regasm-from-a-visual-studio-2008-setup-project 1883517 1883517 suggests scrapping regasm in favor of custom code . I this is a good idea If so how does this code get included in the setup-project This answer http : stackoverflow.com questions 12807 how-to-register-com-from-vs-setup-project 14604 14604 suggests using the regfile command of regasm and then using the import tool on the Registry in the Setup Project . Will this work Install the assembly in the GAC currently using gacutil .. . I m aware of the Global Assembly Cache Folder in the File System on Target Machine . Is there anything special I need to do in including the assembly in the setup-project Any other advice or concerns would be much appreciated . .. . Answer : Gacutil.exe won t be available on the target machine . Not a problem MSI can get the job done . Right-click File System on Target Machine Add GAC . Right-click that added folder Add Project Output . That ensures the assembly is gac-ed . It can also register the assembly like Regasm.exe does . Set the Register property of the project output reference to vsdrpCOM . Comment : Will the register property being set to vsdrpCOM automatically create and register the .tlb file as well If not how do I include the .tlb in the set up project it doesn t seem to like being shared in the GAC folder in the setup-project Comment : That s a great point . I got so used to typing regasm tlb.. . that I just assumed I would need it but you bring up a great point - the client machine s won t be writing code against these assemblies . Much thanks . Comment : To answer Ben s question in his comment using vsdrpCOM will automatically create and register the .tlb file . Comment : So what You are saying is that just setting register property to vsdrpCOM does exactly the same as the whole long solution in here stackoverflow.com questions 239465 http : stackoverflow.com questions 239465 how-to-register-a-net-ccw-with-regasm-from-a-visual-studio-2008-setup-project 1883517 1883517 if so then absolutely brilliant Comment : To conifrm : to make the Regasm automatic both steps from Hans Passant answer needs to be done .",
"Question : I have a simple C project when built with MSBuild it builds an assembly that can t be registered with RegAsm error RA000 . The exact same .csProj built with Visual Studio 2010 creates valid assembly and RegAsm registers successfully I am using C : windows microsoft.net framework64 v4.0.30319 msbuild.exe .. . .. . Both builds MSBuild 4.0 and Visual Studio 2010 are being done as administrator privileges so the authority to register is enabled . I am seeking a way to solve understand debug - this frustrating anomaly . Might there be a fix SPx for MSBuild 4.0 that I am missing Is there a tool to create a map like file or other .dll formatter so I can compare the two resulting assemblies for differences RegAsm output from MSbuild built bTest.dll : .. . .. . RegAsm output from Visual Studio 2010 built bTest.dll : .. . .. . For the above the bTest.csProj file had the Register COM interop was unchecked and RegAsm was done as a post build step . If builds are done with the Register COM interop checked thus enabled the Visual Studio 2010 builds correctly producing the bTest.tlb . However the MSBuild does not produce a bTest.tlb file and the resulting assembly still fails with the RegAsm 4.0 tool . Thank you in advance . Kevin Waite .. . Answer : I am using Jenkins and this job had inherited this specific platform setting form being copied from another very similar job that is also likely wrong as I know understand . Having this PlatformTarget x86 renders the resulting assembly .dll un-register-able . Be it with the Register COM Interop checkbox or be it with the RegAsm tool . And I doubt such a tainted .dll is what is wanted . If MSBuild uses these Jenkins defined command-line-arguments the resulting .dll will be unregisterable . And of course Visual Studio 2010 builds are not doing this and thus build successfully.. . .. . .. . Correcting to the following and job builds successfully and creates the .tlb perfectly fine too SOLVED Comment : Which version of regasm did you use if you used the Framework64 version against an x86 assembly you ll get an error message stating RegAsm : error RA0000 : Failed to load YourLib.dll because it is not a valid .NET assembly . Use the x86 version and it would work .",
"Question : We have a .Net DLL that is available via COM interop which acts as a wrapper for a 3rd party s .NET library . This 3rd party library isn t needed in the vast majority of situations so isn t included in our setup but our wrapper DLL is . The problem comes when we try and register our wrapper DLL with regasm which fails with : .. . .. . RegAsm : error RA0000 : Could not load file or assembly 3rdParty.Application.Library Version 5.3.0.0 Culture neutral PublicKeyToken 0123456789abcdef or one of its dependencies . The system cannot find the file specified . As our wrapper already reports meaningful errors when it can t load the 3rd party library is there a way to make regasm NOT try and load it like delayload so our application can load it and get the error at run time This article http : www.thegatesofdawn.ca wordpress posts 2009 07 17 delay-loading-assemblies-in-net suggests that assemblies are already delay loaded but that doesn t seem to apply when registering COM interop assemblies . Comment : Similarish question : Dynamic load a .NET assembly with some other dll dependency http : stackoverflow.com q 26119874 588306 Comment : This does not bode well Regasm.exe does try pretty hard to avoid having dependencies involved . There s more than one way to register an assembly it just takes writing the correct registry keys . First thing to try is to use the Regasm.exe regfile option so you get a .reg file that you can then test with the dependency missing . A custom ComRegisterFunction is another way . Or just a plain installer that writes the keys directly . But do test the .reg file first . You can get a call stack for a failure from RegistrationServices.RegisterAssembly . Comment : Thanks creating a registry file and importing it separately was joint last resort with late-binding everything and not referencing it at all . Comment : The ComRegisterFunction doesn t replace the whole DllRegisterServer equivalent but is rather called per type that needs registering and will still hit the same assembly resolution problem . Writing direct to the registry may well be the only option . Comment : Hmm as long as you have no idea why the dependency is needed you can t know if ComRegisterFunction is going to fix it . Show us the call stack you get from RegistrationServices.RegisterAssembly if you want help . .. . Answer : Typically .NET dependencies are delay-loaded but the delay is until static construction of a type containing a method or field that references something in the dependant assembly . And since RegAsm uses reflection to walk through all types in the assembly this will always load all dependencies . One thing that you may be able to do to mitigate this is to break up your COM assembly putting anything that references the non-distributed library into a separate non-COM library that you always distribute . It s likely that this second library will be automatically loaded as RegAsm scans the first but it shouldn t load the third as long as you keep its types out of the first assembly . Ideally keep the COM-visible types as thin as possible with the real implementation in a separate .NET assembly . This also means that .NET clients can skip the COM layer entirely .",
"Question : If I want to make a .NET assembly usable as a COM server I have to add a set of attributes and then use regasm to register it as a COM server . If the assembly is not signed with a strong name regasm when run with codebase key shows a RA0000 warning saying that the assembly could interfere with other assemblies on the same computer and I should sign it with a strong name but registration succeeds and it even works just fine . AFAIK strong names are intended to prevent so-called DLL hell . But COM was also meant to prevent DLL hell . If I change any interface exposed to COM I must either change the GUID or at least maintain binary compatibility . So signing with a strong name doesn t seem to add anything useful - nothing prevents me from breaking COM interfaces then signing with the same keypair and having full-blown DLL hell . What s the use of signing with as strong name in case of COM-exposed .NET assemblies .. . Answer : To my knowledge COM was not meant to prevent DLL hell it was the pit of Hades itself . The term DLL Hell comes from the problem of multiple libraries each with same-named methods . The registration of COM assemblies in the system registry does not help with resolution at runtime . Signing an assembly that is meant to act as a COM server ensures that the assembly doesn t collide with other COM-registered assemblies on the same computer . Without the signing if two COM-registered assemblies had methods of the same name it could cause problems .",
"Question : Why would you need to run regasm and caspol on a .NET component more than once I have a COM client that uses a .NET component residing on another machine . Consequently I need to run regasm and caspol on this .NET component . What could cause there to be the need to do this again on the same machine to the same component Is the effect of regasm and caspol only temporary Or can I assume that someone has reset or cleared something on a machine if I am having to do this again EDIT : Only capsol needs to be run . Comment : A system restore jumps to mind . Comment : What about a different user being logged in Comment : A different user wouldn t matter since the settings are not stored in the per user part of the registry . All COM registration entries are machine specific and I d assume it would be the same for caspol . .. . Answer : I don t know that much about caspol but regasm will write to the registry so the changes should not disappear by themselves I assume caspol is similar . So it does sound like someone else have been messing about with that computer . Possibly this could be affected if someone boots the machine and tells it to use the last known good settings or whatever it s called .",
"Question : I m trying to run COM.Scanner https : github.com josephrodriguez miscelaneas.git project but the follow exception is thrown : .. . .. . Retrieving the COM class-factory for component with CLSID 9F8D4F16-0F61-4A38-98B3-1F6F80F11C87 failed due to the following error : 80040154 Class not registered Exception from HRESULT : 0x80040154 REGDB E CLASSNOTREG . Like Interop.CoreScanner is a .NET assembly I use regasm to register the COM objects but the error still occurs . I come to read this good post http : stackoverflow.com questions 1036856 retrieving-the-com-class-factory-for-component-with-clsid-xxxx-failed-due-to-t but none of answers solved the problem . This the information of Corflags https : msdn.microsoft.com en-us library ms164699 v vs.110 .aspx : .. . .. . The generated .reg file with regasm and regfile option is : .. . .. . Environment : .. . .. . OS : Windows 10 x64 .. . Visual Studio 2015 .. . .. . QUESTION .. . .. . This smells like that there are missing entries on registry but I don t know which . If I m in the right way why regasm is not able to generate the missing registry entries Comment : Never never never register an interop library . You must register the native COM component instead using Regsvr32.exe or preferably the vendor s installer . If you don t have that installer then use a telephone looks like you need to call Zebra . If you did have it then your use of Regasm.exe destroyed the install you ll have to re-install . Comment : If I don t want as requirements to the clients install a SDK I need a native COM component and register it with Regsvr32.exe Comment : Again use a telephone to talk to the vendor and ask for specific-install advice . Asking for a merge module that you can integrate with your own installer is best . Comment : Obviously my knowledge about COM is not of most advanced then any final consumer of native component let say on X language need a compiled Interop library on X that works as a bridge Since I published the question had great faith in you were going to clarify the doubts @Hans . Grateful . Comment : I recently ran into this exact same problem . It required me finding a machine which the program ran successfully then checking the registry for the key and running regsvr32.exe on it : stackoverflow.com questions 7197506 http : stackoverflow.com questions 7197506 how-to-repair-comexception-error-80040154 5D .. . Answer : It seems https : stackoverflow.com questions 25440900 wince-barcode-scanner-com-exception-when-initializing-ccorescannerclass that the missing component is installed together with Motorolas EMDK SDK https : portal.motorolasolutions.com Support US-EN Resolution solutionId 88177 productDetailGUID f5563b1ca4151410VgnVCM10000001c7b00aRCRD detailChannelGUID a0bde8cea8151410VgnVCM10000001c7b00aRCRD . Installing the SDK should solve your issue . Registering the interop assembly does not take you any further as the interop assembly is just a library containing the type definitions of the COM component so that you are able to compile your C code with static-typing and early-binding . The actual thing that needs to be registered is the underlying COM component . To register that you would use regasm.exe only if the actual COM component if the COM component was written in .NET . Otherwise you need to use the classic regsvr32.exe or use the installer of the component vendor . Comment : Let me try with this link @Dirk grateful for your answer and time . Comment : I solved with that link . Also installing the Scanner SDK here https : www.zebra.com us en products software scanning-systems scanner-drivers-and-utilities scanner-sdk-for-windows.html solve the problem .",
"Question : I am asked to register a dll by using regasm but new to it . Here is my questions : C : Windows Microsoft.NET Framework v4.030319 regasm XXX.dll codebase . It says error RA0000 : Unable to locate input assembly xxx.dll codebase or one of its dependencies . .. . Answer : Put a space after the dll before codebase .",
"Question : I have a dll that s registered for com-interop so under HKLM Software Classes CLSID my guid InprocServer32 my version no Codebase it has the path of the registered dll . However I ve rearranged my folder structure so that path is no longer correct . Is there a way of unregistering that dll without putting it back then unregistering then removing the file again And what if I don t have that dll any more or only have one with a different version number .. . Answer : Different version numbers generally do not matter . As long as the newer DLL contains all the GUIDs which appear in the older version it will be unregistered properly using the new one with regasm exe . And of course reregistering the assembly for COM interop will properly relocate necessary registry keys .",
"Question : If I want to make a .NET assembly usable as a COM server I have to add a set of attributes and then use regasm to register it as a COM server . If the assembly is not signed with a strong name regasm when run with codebase key shows a RA0000 warning saying that the assembly could interfere with other assemblies on the same computer and I should sign it with a strong name but registration succeeds and it even works just fine . AFAIK strong names are intended to prevent so-called DLL hell . But COM was also meant to prevent DLL hell . If I change any interface exposed to COM I must either change the GUID or at least maintain binary compatibility . So signing with a strong name doesn t seem to add anything useful - nothing prevents me from breaking COM interfaces then signing with the same keypair and having full-blown DLL hell . What s the use of signing with as strong name in case of COM-exposed .NET assemblies .. . Answer : Strong naming is mainly used to put the Dlls into the GAC . So you can have several versions of the Dll with the same name safely on the same computer which with regular COM-Dlls often produced issues . Not signing the Dlls removes the ability to GAC it . You don t have any immediate problems because of that but you don t use a useful feature so you get a warning .",
"Question : I want to know if it s possible to register a type library without using the RegAsm tool http : msdn.microsoft.com en-us library tzat5yw6 28VS.80 29.aspx . Here is my situation which will hopefully explain why I want to do this : .. . .. . I m developing an assembly in .NET that will provide some modern functionality for our older VB6 applications . I have successfully registered the assembly and the type library on my development-machine using RegAsm like so : .. . .. . The above command generates the type library MyAssembly.tlb and registers it as well as registering the assembly . I need the type library registered so that I can have Intellisense in VB6 . My problem with this method is that I don t have the same level of control when generating the type library file as I do with TlbExp.exe http : msdn.microsoft.com en-gb library hfzzah2c 28VS.80 29.aspx . In particular I need to use TlbExp s names flag to specify the proper case http : social.msdn.microsoft.com Forums en-US clr thread 5003c486-ed3f-4ec8-8398-a1251b0f9e74 of my property names RegAsm butchers them . So if I use TlbExp to generate my tlb file is there any way that I can register it separately from the assembly registration process Edit : da m n s answer is correct for the question I asked . However I was under the faulty assumption that just because RegAsm could register a type library that it was necessary to register the tlb in order reference it in VB6 . So for now I m registering the assembly and referencing the unregistered TlbExp-generated tlb with the fixed names . Comment : Actually I think I might be mistaken in the assumption that I must register the tlb file in order to reference it in VB6 . Perhaps this question is for nothing . I ll look into it tomorrow . Comment : And now I can t find regtlib.exe on my computer . I can find regtlibv12.exe but no documentation at all . Looks to me like MS is no longer keen on .NET anymore . .. . Answer : Use regtlib.exe to register the tlbexp generated tlb file ."
]
} | [
"yes-answer-long",
"yes-answer-short"
] | .net | UNK_RELATION |
blacklist@blacklist@111 | blacklist -- a blacklist is a list of entities that are banned from some access or action entities not in the @placeholder are authorized including unknown entities . | {
"confidence": [
59.275447845458984,
44.53058624267578,
39.92605972290039,
39.73162078857422,
39.15443420410156,
38.79605484008789,
38.73488235473633,
38.73488235473633,
38.73488235473633,
38.57990646362305,
38.377098083496094,
37.190635681152344,
37.190635681152344,
36.39335632324219,
36.12559509277344,
36.12559509277344,
35.870635986328125,
35.20610427856445,
35.11669921875,
35.11669921875,
34.80559539794922,
34.051658630371094,
34.051658630371094,
33.9128532409668,
33.898590087890625,
33.09271240234375,
32.52879333496094,
32.52879333496094,
32.37902069091797,
32.30743408203125,
32.30743408203125,
32.30743408203125,
32.30743408203125,
32.30743408203125,
32.30743408203125,
32.30743408203125,
32.30743408203125,
32.30743408203125,
31.23046112060547,
30.954875946044922,
30.954875946044922,
30.954875946044922,
30.82143783569336,
30.82143783569336,
30.12879180908203,
30.12879180908203,
30.12879180908203,
30.12879180908203,
29.75639533996582,
29.75639533996582,
29.56650161743164,
28.523374557495117,
28.523374557495117,
28.523374557495117,
28.523374557495117,
28.523374557495117,
28.523374557495117,
28.523374557495117,
28.523374557495117,
28.523374557495117,
28.523374557495117,
28.523374557495117,
28.523374557495117,
28.32577896118164,
27.96194076538086,
27.8128662109375,
27.521013259887695,
27.458332061767578,
27.458332061767578,
27.458332061767578,
27.458332061767578,
27.458332061767578,
27.458332061767578,
27.260135650634766,
27.260135650634766,
26.41637420654297,
26.355783462524414,
26.207447052001953,
26.207447052001953,
26.207447052001953,
26.207447052001953,
26.195093154907227,
26.18185043334961,
26.18185043334961,
25.9842529296875,
25.38109588623047,
25.38109588623047,
25.351329803466797,
25.290740966796875,
25.142406463623047,
25.142406463623047,
24.923999786376953,
24.486881256103516,
24.31605339050293,
23.865922927856445,
23.865922927856445,
23.613525390625,
23.613525390625,
23.613525390625,
22.548484802246094
],
"content": [
"Conversely a blacklist is a list or compilation that identifies entities that are denied unrecognized or ostracized .",
"From Wikipedia : .. . .. . Blacklist http : en.wikipedia.org wiki Blacklist 5F 28computing 29 : In computing a blacklist is a basic access-control mechanism that allows everyone access except for the members of the black list i.e .",
"Yes using etc postfix blacklist with postmap hash : etc postfix blacklist",
"No blacklist is required .",
"Blacklist validation is weaker because a skilled attacker could evade your validation functions or send values that your function did not expect from OWASP Sanitize with Blacklist : .. . .. . Eliminate or translate characters such as to HTML entities or to remove quotes in an effort to make the input safe .",
"My IP is on blacklist RATS Dyna .",
"Blacklist - everything but these things .",
"So this is a blacklist input validation .",
"This would be useful for a blacklist .",
"You need to create a list of numbers in blacklist by your application s User interface .",
"i want to minimize access times to the ip-blacklist and minimize access overhead in general for every request while still being able to check if an ip is banned .",
"Blacklist VS Whitelist restriction .. . .. . i .",
"exatly removed files contain blacklist",
"so a Blacklist instead of a Whitelist",
"we need blacklist for .apk extension .",
"Is there a blacklist or whitelist I can use",
"So I suppose that Gmail has put the domain in blacklist for some reason .",
"I m working on a way to run a blacklist report for over 1000 IPs against about a dozen different blacklist reports .",
"If there are more allowed chars than disallowed then blacklist .",
"Is there a mechanism for accessing my account s Twilio SMS blacklist",
"I d like to do some url blacklist matching in elasticsearch or elasticHQ",
"It seems the answer is No way .. . .. . There is no way to specify a blacklist in the manifest .",
"I also want to blacklist specific words .",
"I ve been tasked with implementing a blacklist-based profanity filter for a Rails app .",
"Some of these rows are trash unneeded spam that I d like to blacklist from being created .",
"You can use Blacklist IP Addresses Live Database from myip.ms - .. . .. . http : myip.ms browse blacklist Blacklist IP Blacklist IP Addresses Live Database Real-time .. . .. . They have latest Blacklist IPs collected during the last 10 days for use in .htaccess file or in website firewall .",
"I started off using : .. . .. . but my blacklist has grown exponentially and so I need to compare the two files instead .",
"I want to delete rows where column 4 matches a string in my blacklist .",
"A Blacklist XSS and SQL Injection handling verifies a desired input against a list of negative input s .",
"And I guess if something is on both the whitelist and the blacklist you have a problem",
"Greylist items may be reviewed or further tested for inclusion in a blacklist or whitelist .",
"I am assuming the blacklist words are written in a file named blacklist.txt :",
"Is it possible to create application blacklist or whitelist when creating .mobileconfig for an iOS device",
"This has now caused Wordpress to blacklist my CMS User Agent .",
"Is there any other step I need to take to make the blacklist work",
"The blacklist is going to grow so I need to take this into account .",
"How can I blacklist certain usernames for registration in Devise",
"Is there a better way to maintain a dynamic blacklist perhaps writing to a cache every minute",
"Whitelist http : en.wikipedia.org wiki Whitelist : A whitelist or white list is a list or register of entities that for one reason or another are being provided a particular privilege service mobility access or recognition .",
"Is there an SQL statement that I can send to blacklist a row from being created if it has a specific field name",
"Sends an email to every user whose apps contain any application from my blacklist .",
"To prevent usernames from colliding with future features I want to implement a blacklist on certain usernames .",
"I am looking for bash on linux or php file .. . .. . file : cron.php or cron.sh .. . .. . dir : files .. . .. . blacklist : blacklist.txt .. . .. . cron.php runs every minute and search for file names containing blacklist .",
"Also you would want to use a more complete : Blacklist checker https : www.unlocktheinbox.com blacklist bl .. . .. . I think it checks over a 100 more than the one you are using .",
"I know there are a ton of issues with blacklist-based filtering but the decision was made above my head .",
"I have been looking for best practices to optimise the Load caused by web-server blacklist .",
"My Application is quite vulnerable to business-specific bot activity but can recognise bots rather quickly and blacklist them .",
"I export my blacklist to etc nginx blockips.conf and include it in nginx.conf but the file gets rather huge over time .",
"I ran a blacklist scan of the website and it s gave me several warnings saying the site was on the blacklist namely CBL which explained that malware was present that was using the website in a botnet it is a WordPress site .",
"It s also good to monitor your domain for Blacklists I use Unlock The Inbox Blacklist Monitor https : www.unlocktheinbox.com blacklist-monitoring.html since they package a bunch of tools together but there are many good options available .",
"I don t know if you only asking for the Google blacklist but since Kafka Erdem Damir suggested another list a few friends of mine used the shallalist .",
"This question has become academic because the real problem was that the server on the LashBack blacklist was not actually ours",
"I came across these terms called whitelist data and blacklist data I tried to find out on google but couldn t . .",
"With a lot of public web proxy you know.. . such the blacklist used by the Global blocking of Wikipedia .",
"I find that SPAM comes form popular domains with different sub domains to make it hard to blacklist .",
"I wish i could just blacklist any emails coming in with subdomains just like these examples .",
"The new console doesn t appear to show the blacklist at all but the old one does and shows that the above address is blacklisted .",
"I would like to reflect blacklist SMS requests responses in my application instead of just letting Twilio handle it .",
"How can I put my IP in whitelist that I won t face BlackList in Cpanel anymore",
"I tried following way but no success I mean still my IP is in blackList .. . .. . 1 .",
"Suggestion for an in solution : put the blacklist in a dict and check for each word of the text if the word is in the dict .",
"@h2ooooooo This is true although this would be true of any blacklist if I m not mistaken and feel free to correct me if I am",
"For the second query I think you meant release time so as to get still-valid blacklist entries",
"At this time as far as I am aware you can t blacklist numbers to prevent them from sending SMS messages to your Twilio number .",
"I don t know how it pertains to your XPCOM component but in general terms : .. . .. . A whitelist is a list of things that you know are good .. . A blacklist is a list of things you know are bad .",
"We also attempted to take out blacklist and have that translated which was a complete failure because most English profanities don t have equivalents in other languages .",
"I use the RewriteMap http : httpd.apache.org docs 2.0 mod mod rewrite.html rewritemap feature from Apache s RewriteModule as a whitelist like this : .. . .. . With some tweaking you could make this a blacklist .",
"But now I am facing problem to blacklist exact that item that has received at least 30 downvotes .",
"But as soon as there is a second line comments as a second line are working though in the blacklist file Apache aborts startup .",
"What is wrong with this blacklist file and how can I get it to work with multiple directories patterns",
"Is there something obvious I am missing that makes the SmartScreen Filter situational and not as I had assumed a global blacklist",
"Looking at the technique Intercom is using I thought that it is a good way to solve the blacklist issue .",
"I supposed I d blacklist www dot dot dot and all variations of that without blacklisting the word dot itself .",
"STOP recieving SMSes when using Twilio with C .net http : stackoverflow.com questions 21548739 stop-recieving-smses-when-using-twilio-with-c-net .. . .. . Twilio SMS gateway - Blacklist STOP back to database http : stackoverflow.com questions 28548844 twilio-sms-gateway-blacklist-stop-back-to-database rq 1",
"For every failed login attempt whether through a blacklist rule or through an invalid username password I execute : .. . .. . Unfortunately I m hitting the database at least 3 times clearing the blacklist getting an IP address incrementing failures as the minimum .",
"I managed to do this by accessing Profile Manager s PostgreSQL database and retrieving a list of apps for users then comparing it to my applications blacklist and finally sending emails to all users who have blacklisted apps installed on their devices .",
"The only prompt remedy available from Lashback is to use their free offer to remove our server from their blacklist once per month but will not solve the problem and we can t afford to do that every month .",
"Well I am taking this to mean this input only has numbers whitelist or that input cannot ever have dashes or slashes blacklist .",
"Well it is more than 48 hours later and either they have stopped requesting or the blacklist is finally working I don t know which hopefully both .",
"I m using the term sandbox loosely here - the only sandboxing that s performed is blacklisting certain packages and refusing to compile code that imports packages on this blacklist .",
"I ve got burned before by doing it as a blacklist since there always are those little gotcha s that end up getting through like deceze s examples .",
"Take a look at this post too : stackoverflow.com questions 1327112 http : stackoverflow.com questions 1327112 blacklist-of-words-on-content-to-filter-message If I may suggest a line of code for blacklist then it might be echo str-replace array not allowed not allowed etc etc",
"Create your own blacklist class just like this one : .. . .. . Now you are going to block the roles you want :",
"Ok I understand about blacklist and I know that usually servers recycle IP s .",
"Aside from that you can try to reach out to whoever maintains the blacklist you re on but it d probably be easier to just request a new IP .",
"A spam filter would be a good example - you have a whitelist of people you re willing to receive email from without checking for spam and a blacklist of known spammers whose emails get automatically deleted .",
"I m not sure why it wouldn t but I haven t seen this question asked : Is it possible to basically blacklist numbers that send SMS to a Twilio number by sending STOP to their number from the Twilio number",
"The solution I can think of is to have a words list like BLACKLIST : bad bad word woord craap craaaap We can fill this with all the blacklisted words .",
"The SQL query is probably like : Select From web.url INTERSECT Select From blacklist.message .. . .. . index : web type : logs field : url .. . .. . index : blacklist type : malware field : message",
"I have OPcache configured in my php.ini file as follows : .. . .. . If there is just one file pattern inside the blacklist file everything works fine .",
"Rather than doing this is there a way to add a blacklist to CakePHP s validator to block all invalid characters rather than allowing valid ones",
"Some retail stores have the same model -- a Google search on banned from Wal-Mart results in 1.5 million hits including Megan Fox -- although you have to wonder about enforcement .",
"Within Google Chrome Dev Tools debugger -- settings -- Blackboxing one can add files to blacklist those from popping up in the debugger .",
"My friend who is hosting the server from home told me that my IP does not appear on the blacklist and nor does any other IP address in our country .",
"I want to obviously have my code centralized in one place rather than compare against the blacklist for each and every form .",
"I hired a web server in Brazil Locaweb and now that my website is live my guests can t enter because says that my IP is in a blacklist .",
"As far as I can tell Postfix tries to send it to mailman but there is no mailman any more and eventually Postfix gives up and sends a nondelivery notice which causes LashBack to blacklist us .",
"By a blacklist approach like this it is easy to forget to add a validator to an input and it works perfectly without that so you would not notice the vulnerability only when it is too late.. . .. . .. . A hypothetical whitelist approach would look like something like this :",
"You might want to limit the blacklist to a cookie the IP + the userstring or something else however all these lack the problem that with enough knownledge they can easily be modified programmatically to brute-force logins .",
"The tutorial I found on installing maldet which worked on my own machine said to : .. . .. . then .. . .. . and here is the output : .. . .. . I was told about this blacklist by my boss but multiple sources don t say the same thing ."
]
} | {
"confidence": [
69.47683715820312,
43.6588020324707,
43.544166564941406,
42.363182067871094,
42.318973541259766,
41.697425842285156,
41.62819290161133,
41.095130920410156,
40.826236724853516,
40.669837951660156,
40.27883529663086,
39.961055755615234,
39.961055755615234,
39.94872283935547,
39.6826171875,
39.37974166870117,
39.14680099487305,
39.137271881103516,
38.842647552490234,
38.749916076660156
],
"content": [
"Question : I was reading about development of XPCOM component . I came across these terms called whitelist data and blacklist data I tried to find out on google but couldn t . . I do not know how its related to programming so forgive me if I placed the question at wrong place. . .. . Answer : From Wikipedia : .. . .. . Blacklist http : en.wikipedia.org wiki Blacklist 5F 28computing 29 : In computing a blacklist is a basic access-control mechanism that allows everyone access except for the members of the black list i.e . list of denied accesses . The opposite is a whitelist which means allow nobody except members of the white list . As a sort of middle ground a greylist contains entries that are temporarily blocked or temporarily allowed . Greylist items may be reviewed or further tested for inclusion in a blacklist or whitelist . Whitelist http : en.wikipedia.org wiki Whitelist : A whitelist or white list is a list or register of entities that for one reason or another are being provided a particular privilege service mobility access or recognition . As a verb to whitelist can mean to authorize access or grant membership . Conversely a blacklist is a list or compilation that identifies entities that are denied unrecognized or ostracized .",
"Question : I have been trying to implement a sort of IP blacklisting in PHP where I store failed login attempts to a MySQL table with the following schema : .. . .. . On my login check I first delete any blacklist entries that have a release time before the current time if the release time has already passed with the following query : .. . .. . I then execute the following : .. . .. . If I retrieve no rows or if the row failures that I get back exceeds 5 I allow for checking of the username and password . Otherwise I reject the login altogether . For every failed login attempt whether through a blacklist rule or through an invalid username password I execute : .. . .. . Unfortunately I m hitting the database at least 3 times clearing the blacklist getting an IP address incrementing failures as the minimum . Is there a better way to maintain a dynamic blacklist perhaps writing to a cache every minute I did see that Banning by IP with php mysql http : stackoverflow.com questions 2986154 banning-by-ip-with-php-mysql is similar to my question but I m allowing for people to be removed from the blacklist if they stop attempting logins for a good period of time . This way people who simply forget their credentials are affected less than people attempting to brute-force their way into gaining credentials . Comment : You should be aware that if anyone uses this on a shared line university school library anywhere were several people share an IP then you ll ban the whole IP . Just something to keep in mind . Comment : @h2ooooooo This is true although this would be true of any blacklist if I m not mistaken and feel free to correct me if I am Comment : If we re talking about IP blacklists which is definitely the most safe then you re correct . You might want to limit the blacklist to a cookie the IP + the userstring or something else however all these lack the problem that with enough knownledge they can easily be modified programmatically to brute-force logins . Comment : Mr . Downvoter could you please explain the rationale behind the vote Thank you .. . Answer : The following query doesn t need run regularly and could be moved to a cron job : .. . .. . This boolean query will return 1 if the person is blacklisted 0 otherwise : .. . .. . It might speed things up as your not using PHP to count rows and compare numbers : .. . .. . I don t think you can avoid the last one really . Comment : I m just a tad hesitant regarding the cron job mainly so that I m not modifying the database when I don t have to granted there could be many wasted deletes anyway . What time range would you suggest Possibly 5 10 minutes For the second query I think you meant release time so as to get still-valid blacklist entries Comment : If you have other cron jobs eg . deleting old inactive accounts you can just lump it in with those and run it on a daily basis . It s worth considering how much traffic failed login attempts per IP we are talking about here. . how many hundreds thousands millions of rows will it take for your failures table to become too slow If we are talking high volumes and persisting these failures forever isn t important you might consider storing the failure list in memory : bookofzeus.com articles http : www.bookofzeus.com articles validate-if-an-ip-is-banned-using-memcached Thanks fixed copy-paste mistake .",
"Question : which is the preferred approach in sanitizing inputs coming from the user thank you .. . Answer : As a general rule it s best to use whitelist validation since it s easier to accept only characters you know should go there for example if you have a field where the user inputs his her phone-number you could just do a regex and check that the values received are only numbers drop everything else and just store the numbers . Note that you should proceed to validate the resulting numbers as well . Blacklist validation is weaker because a skilled attacker could evade your validation functions or send values that your function did not expect from OWASP Sanitize with Blacklist : .. . .. . Eliminate or translate characters such as to HTML entities or to remove quotes in an effort to make the input safe . Like blacklists this approach requires maintenance and is usually incomplete . As most fields have a particular grammar it is simpler faster and more secure to simply validate a single correct positive test than to try to include complex and slow sanitization routines for all current and future attacks . Realize that this validation is just a first front defense against attacks . For XSS you should always Escape your output so you can print any character s needed but they are escaped meaning that they are changed to their HTML entity and thus the browser knows it s data and not something that the parser should interpret thus effectively shutting down all XSS attacks . For SQL injections escape all data before storing it try to never use dynamic queries as they are the easiest type of query to exploit . Try to use parameterized store procedures . Also remember to use connections relevant to what the connection has to do . If the connection only needs to read data create a db account with only Read privileges this depends mostly on the roles of the users . For more information please check the links from where this information was extracted from : .. . .. . Data Validation OWASP https : www.owasp.org index.php Data Validation .. . .. . Guide to SQL Injection OWASP https : www.owasp.org index.php Guide to SQL Injection",
"Question : How can I put my IP in whitelist that I won t face BlackList in Cpanel anymore I tried following way but no success I mean still my IP is in blackList .. . .. . 1 . In cPanel find the Databases section . 2 . Select Remote MySQL . 3 . Enter the IP address you wish to whitelist in the field provided . 4 . Click Add Host . I really appreciate your advice here . Regards Comment : Ip blocked where For access to any service For access to mysql remotely Are Cpanel user account or WHM root .. . Answer : You need to add your IP in server firewall allow list but with the cPanel access you can t do it . You will have to contact your hosting provider to add your IP in a firewall allow list .",
"Question : I was reading about development of XPCOM component . I came across these terms called whitelist data and blacklist data I tried to find out on google but couldn t . . I do not know how its related to programming so forgive me if I placed the question at wrong place. . .. . Answer : I don t know how it pertains to your XPCOM component but in general terms : .. . .. . A whitelist is a list of things that you know are good .. . A blacklist is a list of things you know are bad . A spam filter would be a good example - you have a whitelist of people you re willing to receive email from without checking for spam and a blacklist of known spammers whose emails get automatically deleted . Emails from anyone not on either list might be examined using a Bayesian filter or similar to determine whether they look like spam or not . Comment : And I guess if something is on both the whitelist and the blacklist you have a problem I wonder if there are any real world scenarios where this can happen and which one is enforced",
"Question : I am using Profile Manager from OS X Server as an MDM . I managed to configure everything but still one thing remains and I cannot seem to find any options for it . Is it possible to create application blacklist or whitelist when creating .mobileconfig for an iOS device The only thing I found would be to use Single Sign-On payload and use Limit this accound to specific apps but it seems like an aweful idea even if it would somehow work . .. . Answer : I managed to do this by accessing Profile Manager s PostgreSQL database and retrieving a list of apps for users then comparing it to my applications blacklist and finally sending emails to all users who have blacklisted apps installed on their devices . You can access Profile Manager s Database on OS X by typing : .. . .. . I wrote my script in Python but it can be just as easily written in PHP or other language . Hope that helps someone . My script runs once a day and does several things : .. . .. . 1 . Accesses a database .. . 2 . Queries users their emails and their apps by joining 3 tables users devices installed ios applications .. . 3 . Sends an email to every user whose apps contain any application from my blacklist .",
"Question : null .. . Answer : I d like to do some url blacklist matching in elasticsearch or elasticHQ How to list all matching result in elasticsearch Thanks . The SQL query is probably like : Select From web.url INTERSECT Select From blacklist.message .. . .. . index : web type : logs field : url .. . .. . index : blacklist type : malware field : message",
"Question : New to using Grep . Basically I have two text-files blacklist.txt and many foo.txt in different directories . I started off using : .. . .. . but my blacklist has grown exponentially and so I need to compare the two files instead . In foo.txt there are four columns with columns 1 2 3 being unique . I want to delete rows where column 4 matches a string in my blacklist . .. . .. . Sample of a foo.txt .. . .. . blacklist.txt .. . .. . .. . .. . Desired output : filtered foo.txt .. . .. . .. . .. . I have tried different things in grep such as : .. . Answer : Use the -f option to get the patterns from a file . Comment : Thank you for your help",
"Question : I am looking for bash on linux or php file .. . .. . file : cron.php or cron.sh .. . .. . dir : files .. . .. . blacklist : blacklist.txt .. . .. . cron.php runs every minute and search for file names containing blacklist . delete files based on file name .. . .. . reason : clean download center from explicit files .. . .. . .. . .. . bash or php code for delete files based on backlist word .. . Answer : files directory contain many files i dont know whats some files contain +18 string or xxx or . . based on blacklist.txt .. . .. . exp : .. . .. . files video contain +18 watch.mp4 .. . .. . this code should find it and remove it by blacklist words per line",
"Question : Question Summary : In ASP.NET MVC is there a clean way to prevent a specific user or role from accessing an action Obviously the following would allow roles Admin and Editor to access the entire controller . If I only wanted the Admin role to have access to the About action I could do the following : .. . .. . Is there a way to accomplish this without listing every single role that needs access and only specifying the roles that should be prevented from having access Comment : so a Blacklist instead of a Whitelist Comment : @Jonesy - Yes essentially . Comment : you could write your own BlackListAttribute that accepts roles in the same fashion Comment : agree with Jonesy you could extend a new class from AuthorizeAttribute and build your own Comment : We consider what .Net calls a role a permission we grant permission to Users so rather than saying Authorize Roles Admin we use Authorize Roles Home.About . Now what we call Roles is a set of permissions . User s are put in our roles . .. . Answer : Create your own blacklist class just like this one : .. . .. . Now you are going to block the roles you want :",
"Question : null .. . Answer : I have been looking for best practices to optimise the Load caused by web-server blacklist . My Application is quite vulnerable to business-specific bot activity but can recognise bots rather quickly and blacklist them . I export my blacklist to etc nginx blockips.conf and include it in nginx.conf but the file gets rather huge over time . I am afraid that it will cause too much Load for NGINX to process the file once it gets several thousands lines of : .. . .. . What are the best practices using large blacklists with NGINX",
"Question : Is there an open database of blacklisted IP for the Web With a lot of public web proxy you know.. . such the blacklist used by the Global blocking of Wikipedia . Comment : There are many black lists out there . Anything specific you re looking for Comment : Yes I would like a IP database of public web proxies in order to block them requests . Comment : Depending on where or how you re looking at using this you might be better off asking on serverfault . Comment : The Peerblock lists are good . .. . Answer : You can use Blacklist IP Addresses Live Database from myip.ms - .. . .. . http : myip.ms browse blacklist Blacklist IP Blacklist IP Addresses Live Database Real-time .. . .. . They have latest Blacklist IPs collected during the last 10 days for use in .htaccess file or in website firewall .",
"Question : I am looking for bash on linux or php file .. . .. . file : cron.php or cron.sh .. . .. . dir : files .. . .. . blacklist : blacklist.txt .. . .. . cron.php runs every minute and search for file names containing blacklist . delete files based on file name .. . .. . reason : clean download center from explicit files .. . .. . .. . .. . bash or php code for delete files based on backlist word .. . Answer : I am assuming the blacklist words are written in a file named blacklist.txt : Comment : word containing i havent full name of files to delete Comment : I misunderstood your situation tell me if this is what you want . edited my answer Comment : great thanks my friend tnx a lottttttttttt exatly removed files contain blacklist",
"Question : How can I put my IP in whitelist that I won t face BlackList in Cpanel anymore I tried following way but no success I mean still my IP is in blackList .. . .. . 1 . In cPanel find the Databases section . 2 . Select Remote MySQL . 3 . Enter the IP address you wish to whitelist in the field provided . 4 . Click Add Host . I really appreciate your advice here . Regards Comment : Ip blocked where For access to any service For access to mysql remotely Are Cpanel user account or WHM root .. . Answer : The steps you have mentioned are used to allow remote MySQL access on an IP address from cPanel . If cPanel access is getting blocked then you will have to add your IP in server firewall . This can only help you if you have a static IP address .",
"Question : I ve been tasked with implementing a blacklist-based profanity filter for a Rails app . I know there are a ton of issues with blacklist-based filtering but the decision was made above my head . Challenge : I m looking for a good list of Spanish profanity to run into the filter . For English we re building on a list which exhaustively lists conjugations plurals etc one per line of a text file . Does such a list exist in the public domain for Spanish .. . Answer : Finding good lists and having them tuned is difficult . It also sounds like you are doing a lot of manual work that can be automated i.e . conjugation . I did a lot of this for my company s profanity filter named CleanSpeak http : www.inversoft.com features profanity-filter and much of this can be automated using POS identifiers for words and in many cases you can manually do POS tagging or find a POS source . You ll also need to consider the quality of the lists and the up-keep and management of a filter . A lot of people think it is simple and then realize that it is extremely difficult to prevent false-positives . All that said we found the majority of our lists for other languages difficult to come by online and ended up paying to have many of the built or purchased from other companies . The lists we did find online ended up being nearly worthless once we had them translated . We also attempted to take out blacklist and have that translated which was a complete failure because most English profanities don t have equivalents in other languages . I would suggest purchasing lists or working with students at your local university to generate lists . A number of our customers found this method relatively good and not overly expensive . I would also suggest that you take a look at some of the resources out there that define the best ways to manage User Generated Content . These will help guide you through any build vs . buy decisions . Comment : POS Point of Sale Comment : POS Part of Speech . Thanks for the feedback Brian lots of food for thought here .",
"Question : I know that browsers use Google safe-browsing service to detect if a domain is blacklisted or not . The client for example Firefox basically downloads a hashed list of these domains and then checks if a url is blacklisted or not . My question is that is it possible to access this list of domains not their hash values which is not reversible .. . Answer : I don t know if you only asking for the Google blacklist but since Kafka Erdem Damir suggested another list a few friends of mine used the shallalist . Unfortunately it s a German service . http : www.shallalist.de",
"Question : I was reading about development of XPCOM component . I came across these terms called whitelist data and blacklist data I tried to find out on google but couldn t . . I do not know how its related to programming so forgive me if I placed the question at wrong place. . .. . Answer : White lists and black lists are two ways of filtering data . If you have a white list then you will filter in only data on the white list if you have a black list you will filter out only data on that list . For example consider automatically rejecting incoming phone calls . You could have a black list of marketing companies so everyone but them would be able to call you . Or you could have white list containing your friends numbers so only they would be able to call you . TL DR : .. . .. . Whitelist - only these things . Blacklist - everything but these things .",
"Question : Our mail-server has been blacklisted by lashback.com because Sender has sent to LashBack Unsubscribe Probe accounts but we haven t hosted any mailing lists for years . Our server responds to such requests whether legitimate or merely Lashback probes as undelivered mail see log fragment below . Is that the wrong behavior If so what is the correct behavior Well over a year ago we removed mailman from our server altogether which was long after we ceased to operate any mailing lists . According to its website Lashback s blacklist is developed from a number of tests including the following that appear to be possibly relevant : .. . .. . Which senders fail to provide a working unsubscribe mechanism .. . Which senders do not honor unsubscribe requests within 10 business days .. . .. . I have tried to contact lashback.com by phone and e-mail without success . Phone calls are answered by a robot literally that suggests an e-mail address . When I sent a message to it asking for information as to the correct behavior my message blocked by Google Groups as bulk-email . I guess this was because our mail-server is blacklisted by lashback we know of no other blacklistings of our server and my message didn t look any more like bulk e-mail than this StackOverflow question does . The only prompt remedy available from Lashback is to use their free offer to remove our server from their blacklist once per month but will not solve the problem and we can t afford to do that every month . Lashback asks a significant monthly fee for any other service . I wonder . Is Lashback actually a scam Or are they just having a Very Bad Day with their systems Here is a possibly-relevant fragment of our server s mail log . It might be from Lashback s probe account . We don t get much mail to this long-defunct mailing list . As far as I can tell Postfix tries to send it to mailman but there is no mailman any more and eventually Postfix gives up and sends a nondelivery notice which causes LashBack to blacklist us . .. . Answer : This question has become academic because the real problem was that the server on the LashBack blacklist was not actually ours When our registrar discovered the problem our server s reputation at mxtoolbox.com was immediately restored . The source of the problem turned out to be one of a series of unfortunate system glitches that occurred when we started using our registrar s default name service . Prior to that we had been using free name service which worked perfectly until the presumably-automatic switchover when the glitches occurred . There is no substitute for dig or for careful attention to its output or for actually seeing the surprises that may be in that output .",
"Question : Not finding much any info on this subject so thought I would go ahead and post a question . I would like to reflect blacklist SMS requests responses in my application instead of just letting Twilio handle it . Is there a mechanism for accessing my account s Twilio SMS blacklist Or a message status on responses Or do I just need to parse every single response for keywords .. . Answer : Finally finding some very similar questions that basically address this challenge . Sounds like parsing the returning message for STOP is really about the only option to capture the opt out request in real-time that is . STOP recieving SMSes when using Twilio with C .net http : stackoverflow.com questions 21548739 stop-recieving-smses-when-using-twilio-with-c-net .. . .. . Twilio SMS gateway - Blacklist STOP back to database http : stackoverflow.com questions 28548844 twilio-sms-gateway-blacklist-stop-back-to-database rq 1",
"Question : I was reading about development of XPCOM component . I came across these terms called whitelist data and blacklist data I tried to find out on google but couldn t . . I do not know how its related to programming so forgive me if I placed the question at wrong place. . .. . Answer : Bruce Schneider has an excellent explanation of black-list vs . white-list in context of computer security : https : www.schneier.com blog archives 2011 01 whitelisting vs.html . Physical security works generally on a whitelist model : if you have a key you can open the door if you know the combination you can open the lock . We do it this way not because it s easier -- although it is generally much easier to make a list of people who should be allowed through your office door than a list of people who shouldn t--but because it s a security system that can be implemented automatically without people . .. . To find blacklists in the real world you have to start looking at environments where almost everyone is allowed . Casinos are a good example : everyone can come in and gamble except those few specifically listed in the casino s black book or the more general Griffin book . Some retail stores have the same model -- a Google search on banned from Wal-Mart results in 1.5 million hits including Megan Fox -- although you have to wonder about enforcement . Does Wal-Mart have the same sort of security manpower as casinos"
]
} | [
"yes-answer-long",
"yes-answer-short"
] | blacklist | UNK_RELATION |
config-designer-csd@xsd@229 | config-designer-csd -- configuration section designer : a free oss visual-studio add-in that allows you to graphically design .net configuration sections and automatically generates all the required code and a schema definition @placeholder for them . | {
"confidence": [
60.065147399902344,
59.26448059082031,
50.33435821533203,
48.44796371459961,
41.955650329589844,
39.464420318603516,
37.5281982421875,
37.10081481933594,
36.19484329223633,
34.33368682861328,
32.10772705078125,
30.745391845703125,
30.41405487060547,
27.692989349365234,
27.692989349365234,
27.322998046875,
27.217370986938477,
26.339080810546875,
25.974964141845703,
25.0556697845459,
24.956953048706055,
24.814048767089844,
24.610761642456055,
24.51229476928711,
23.3244686126709,
22.74370574951172,
22.690290451049805,
22.6773681640625,
22.522890090942383,
22.282146453857422,
21.911632537841797,
21.746795654296875,
21.530336380004883,
21.530336380004883,
21.530336380004883,
21.530336380004883,
21.530336380004883,
21.530336380004883,
21.530336380004883,
21.530336380004883,
21.530336380004883,
21.530336380004883,
21.530336380004883,
21.530336380004883,
21.530336380004883,
21.530336380004883,
21.530336380004883,
21.530336380004883,
21.530336380004883,
20.09002685546875,
19.309032440185547,
19.011741638183594,
19.011741638183594,
19.011741638183594,
18.316255569458008,
17.599061965942383,
17.599061965942383,
17.599061965942383,
17.599061965942383,
17.599061965942383,
17.599061965942383,
17.599061965942383,
17.599061965942383,
17.599061965942383,
17.599061965942383,
17.599061965942383,
17.599061965942383,
17.599061965942383,
17.599061965942383,
17.599061965942383,
17.599061965942383,
17.599061965942383,
17.599061965942383,
17.599061965942383,
17.599061965942383,
17.599061965942383,
17.599061965942383,
17.599061965942383,
16.538455963134766,
13.171612739562988,
13.171612739562988,
13.171612739562988,
13.171612739562988,
13.171612739562988,
13.171612739562988,
13.171612739562988,
13.171612739562988,
13.171612739562988,
13.171612739562988,
13.171612739562988,
13.171612739562988,
13.171612739562988,
13.171612739562988,
13.171612739562988
],
"content": [
"I m using Configuration Section Designer CSD to manage my ASP.NET site services and so far I m lovin it .",
"I m using Configuration Section Designer CSD http : csd.codeplex.com to manage my .NET app.config file structure and so far I m lovin it .",
"I am using the Configuration Section Designer http : csd.codeplex.com for .NET to build a simple ConfigurationElementCollection .",
"I am using the CSD tool to create custom configuration sections in my asp.net-3.5 web application .",
"UPDATE .. . .. . It looks like the namespace Intellisense from the DLL in the nuget-package is coming from a Configuration Section Designer xsd file which is a .csd.xsd file .",
"I tried another add-in called Configuration Generation Designer or something like that and I couldnt get it to work .",
"The project Configuration Section Designer http : csd.codeplex.com is such a great tool but now I ve moved to VS2010 forced actually and it doesn t support 2010 .",
"MyCustomConfiguration inherits from ConfigurationSection automatically via the CSD generation tool .. . .. . Sample XML output that should be modeled is below .",
"the collection is empty even though as you can see in my example XML I have clearly put them there : .. . .. . Example configuration .. . .. . Miscellaneous .. . .. . In the designer all I have is what you see here a ConfigurationSection a ConfigurationElementCollection and a ConfigurationElement - there are no additional configuration elements sections groups .. . I am not adding or removing anything at run-time .. . I have tried both generating and not generating the Singleton property but neither the singleton instance nor an instance of the settings class seem to work .. . For the ID attribute the Is Key property is set to true and all other attributes are marked true for Is Required .. . .. . Has anyone ever run into this",
"I ll try to see if I can bend CSD to allow that .",
"This is what CSD says when I try to configure it like this : .. . .. . The Item Type of this collection does not have a key property .",
"I talked to the CSD devs and apparently this feature is being currently implemented apparently using the idea from the SO post I mentioned in the question .",
"Unfortunately even though I have added elements to the collection in the configuration section they do not exist at run-time it shows the collection s Length property to be 0 - i.e .",
"I have no problem with setting up the section elements and collections .",
"I created the section collection and collection item attributes only easy .",
"Problem is View Schema https : drive.google.com file d 0B4oqlkkf0yHDMHo0M21PZzBZeEU edit usp sharing",
"Since I was using NUnit to run the tests the configuration file from the test project was overriding the development one for the class-library .",
"One of them the Core project has a .xsd file in it with a targetNameSpace of urn : CustomNamespace .",
"more information here : http : csd.codeplex.com discussions 73703 ProjectName csd",
"It appears that everything builds just fine and the code is automatically generated since the sub-elements are visible with Intellisense .",
"This answer http : stackoverflow.com a 1471051 11545 suggests I add a bogus unique GUID property to the objects in the collection and use that as the key .",
"Ugh the thought of using appSettings to store configuration is just horrid .",
"Nuget is likely adding the schema file to the project referencing your Core project .",
"An example of the code I m using that should return the XML is below .",
"Browse to the xsd file - and this bit is key - instead of clicking Add click the little arrow next to Add and select Add as link .",
"Config files are only available at the application level http : www.velocityreviews.com forums showpost.php p 517169 postcount 3 .",
"By adding the following configSection to the app.config within the test project : .. . .. . and filling in the corresponding section the data could be accessed as expected .",
"Then add a reference and try importing the namespace .",
"You need to do following : .. . .. . 1 . for JsonWebApiService element set property Has Custom Child Elements to true .. . 2 . you would also need to provide function in a separate cs file which parses that inner content : .. . .. . public partial class JsonWebApiService : ConfigurationElement .. . .. . private bool HandleUnrecognizedElement string elementName .. . System.Xml.XmlReader reader .. . .. . parse your Json here .. . return true .. . .. .",
"It looks this is a VS add-in located at https : csd.codeplex.com .",
"Please report bugs to the issues page and I will get to them ASAP .",
"Right-click the non-core project select Add Existing item .",
"However when I create new instances of these to represent what I need to persist to the file system I cannot obtain the resultant XML .",
"I m hoping somebody may have ran across this before as well .",
"The instances I create programatically to model this are perfect but no matter what my output is blank .",
"Figured this one out on my own moments ago .",
"Turns out I needed to serialize from base rather than the method described above .",
"Problem is I need a collection of items that doesn t lend itself to having a key .",
"This is a list of permissions having a type User Group and a name .",
"There can be several items of the same type and several items of the same name .",
"It makes sense not to be able to do this using a collection of type BasicMap but what about AddRemoveClearMap collections",
"Ok the map in AddRemoveClearMap doesn t help I need list semantics .",
"enter image description here http : i.stack.imgur.com ADChI.png .. . .. . Any pointers are welcome .",
"PS .",
"The status is being discussed here : http : csd.codeplex.com discussions 406983",
"The problem is how to create Json Element in the jsonWebApiService type of string .",
"I think I need to create a custom-element and converter maybe .",
"Not sure any advice links or ideas would be helpful .",
"Tkanks .",
"I updated your answer to reflect my situation-- the nuget-package did in fact add the xsd directly to the project which is why I was able to import that namespace .",
"You can reference the same xsd file by adding it as a link-to the referring project .",
"You can try starting with Global . or use the Object Browser in the IDE F2 key",
"It appears that you were correct that I would need to link-to the file in order to import the namespace from the xsd .",
"I added a bounty then found the file in my project-- I ll give you the bounty as soon as my waiting period is over .",
"I use this tool a great deal but now I can t and I have a ton of config stuff to write .",
"I have a VB solution with many VB projects in it .",
"In the Core project I am able to import the xsd namespace by doing the following : .. . .. . How can I get this Imports statement to work in a project that references the Core project",
"In the Core the xsd s namespace shows up with Intellisense .",
"This is not the case in the referring project .",
"I know this can be done somehow as we are consuming a nuget-package that has an xsd that we are importing .",
"There are other related files to this but I essentially want the same functionality that comes with referencing a package that has a .csd.xsd file .",
"I ll likely pull down the project to try to find out how they re doing it but I d appreciate an answer if someone knows how it s done .",
"I don t want to do that if there s a way to import the xsd namespace without importing the xsd .",
"E.g . I can import Core.Namespace without having to do anything more than reference the project .",
"Is this how nuget packages achieve this",
"Hmm .",
"Try deleting the Root namespace in the project properties tab of the core module if there is one .",
"Glad I could help .",
"Thanks for the bounty .",
"Happy programming",
": -",
"If so what change do I have to make to get this to work as intended",
"Well I grossly overcomplicated the true issue by specifying the problem down to a specific element when it turns out not even a simple test attribute on the ConfigurationSection would return an expected value .",
"I also realized that I couldn t access AppSettings which resulted in a raging clue .",
"The ultimate cause",
"The project was compiled as a class-library .",
"This is probably obvious to any developers who are not stuck in ASP.NET land .",
"Hopefully this will save someone hours of debugging .",
"I was able to fix the code to support VisualStudio 2010 .",
"Is there an alternative to this tool that will work with VS2010",
"I m hoping for a good solution and not having to do a project in VS2008 and manually import the generated files .",
"There is an open discussion regrading this matter .",
"currently it seems like there is no formal version that is built for vs2010 .",
"+1 thanks but i ve already seen that .",
"Just hacks at best .",
"I m hoping for a working made for 2010 version .",
"There is a working release for 2010 .",
"Furthermore there is an unofficial build for 2013 distributed directly by the author though a discussion thread .",
"csd.codeplex.com discussions 459444 https : csd.codeplex.com discussions 459444",
"I was recently added as a contributor to this project andym1978 .",
"We want to do more testing before releasing to the official 2.0 downloads area but I ve uploaded an unofficial 2.0 release HERE http : csd.codeplex.com wikipage title Installation 20Visual 20Studio 202010 .",
"bout time",
"The version for VS 2010 is now available .",
"http : csd.codeplex.com"
]
} | {
"confidence": [
67.02347564697266,
65.07563781738281,
64.4120864868164,
59.352481842041016,
55.80625915527344,
51.838157653808594,
47.98944854736328,
41.62614440917969
],
"content": [
"Question : I am using the Configuration Section Designer http : csd.codeplex.com for .NET to build a simple ConfigurationElementCollection . It appears that everything builds just fine and the code is automatically generated since the sub-elements are visible with Intellisense . Unfortunately even though I have added elements to the collection in the configuration section they do not exist at run-time it shows the collection s Length property to be 0 - i.e . the collection is empty even though as you can see in my example XML I have clearly put them there : .. . .. . Example configuration .. . .. . Miscellaneous .. . .. . In the designer all I have is what you see here a ConfigurationSection a ConfigurationElementCollection and a ConfigurationElement - there are no additional configuration elements sections groups .. . I am not adding or removing anything at run-time .. . I have tried both generating and not generating the Singleton property but neither the singleton instance nor an instance of the settings class seem to work .. . For the ID attribute the Is Key property is set to true and all other attributes are marked true for Is Required .. . .. . Has anyone ever run into this If so what change do I have to make to get this to work as intended .. . Answer : Well I grossly overcomplicated the true issue by specifying the problem down to a specific element when it turns out not even a simple test attribute on the ConfigurationSection would return an expected value . I also realized that I couldn t access AppSettings which resulted in a raging clue . The ultimate cause The project was compiled as a class-library . Config files are only available at the application level http : www.velocityreviews.com forums showpost.php p 517169 postcount 3 . Since I was using NUnit to run the tests the configuration file from the test project was overriding the development one for the class-library . This is probably obvious to any developers who are not stuck in ASP.NET land . By adding the following configSection to the app.config within the test project : .. . .. . and filling in the corresponding section the data could be accessed as expected . Hopefully this will save someone hours of debugging .",
"Question : I m using Configuration Section Designer CSD http : csd.codeplex.com to manage my .NET app.config file structure and so far I m lovin it . Problem is I need a collection of items that doesn t lend itself to having a key . This is a list of permissions having a type User Group and a name . There can be several items of the same type and several items of the same name . It makes sense not to be able to do this using a collection of type BasicMap but what about AddRemoveClearMap collections Ok the map in AddRemoveClearMap doesn t help I need list semantics . This is what CSD says when I try to configure it like this : .. . .. . The Item Type of this collection does not have a key property . enter image description here http : i.stack.imgur.com ADChI.png .. . .. . Any pointers are welcome . PS . This answer http : stackoverflow.com a 1471051 11545 suggests I add a bogus unique GUID property to the objects in the collection and use that as the key . I ll try to see if I can bend CSD to allow that . .. . Answer : I talked to the CSD devs and apparently this feature is being currently implemented apparently using the idea from the SO post I mentioned in the question . The status is being discussed here : http : csd.codeplex.com discussions 406983",
"Question : I m using Configuration Section Designer CSD to manage my ASP.NET site services and so far I m lovin it . I created the section collection and collection item attributes only easy . The problem is how to create Json Element in the jsonWebApiService type of string . I think I need to create a custom-element and converter maybe . Not sure any advice links or ideas would be helpful . Tkanks . Problem is View Schema https : drive.google.com file d 0B4oqlkkf0yHDMHo0M21PZzBZeEU edit usp sharing .. . Answer : You need to do following : .. . .. . 1 . for JsonWebApiService element set property Has Custom Child Elements to true .. . 2 . you would also need to provide function in a separate cs file which parses that inner content : .. . .. . public partial class JsonWebApiService : ConfigurationElement .. . .. . private bool HandleUnrecognizedElement string elementName .. . System.Xml.XmlReader reader .. . .. . parse your Json here .. . return true .. . .. .",
"Question : I am using the CSD tool to create custom configuration sections in my asp.net-3.5 web application . I have no problem with setting up the section elements and collections . However when I create new instances of these to represent what I need to persist to the file system I cannot obtain the resultant XML . I m hoping somebody may have ran across this before as well . An example of the code I m using that should return the XML is below . MyCustomConfiguration inherits from ConfigurationSection automatically via the CSD generation tool .. . .. . Sample XML output that should be modeled is below . The instances I create programatically to model this are perfect but no matter what my output is blank . .. . Answer : Figured this one out on my own moments ago . Turns out I needed to serialize from base rather than the method described above .",
"Question : The project Configuration Section Designer http : csd.codeplex.com is such a great tool but now I ve moved to VS2010 forced actually and it doesn t support 2010 . I use this tool a great deal but now I can t and I have a ton of config stuff to write . Is there an alternative to this tool that will work with VS2010 I m hoping for a good solution and not having to do a project in VS2008 and manually import the generated files . Ugh the thought of using appSettings to store configuration is just horrid . .. . Answer : There is an open discussion regrading this matter . currently it seems like there is no formal version that is built for vs2010 . more information here : http : csd.codeplex.com discussions 73703 ProjectName csd Comment : +1 thanks but i ve already seen that . Just hacks at best . I m hoping for a working made for 2010 version . Comment : There is a working release for 2010 . Furthermore there is an unofficial build for 2013 distributed directly by the author though a discussion thread . csd.codeplex.com discussions 459444 https : csd.codeplex.com discussions 459444",
"Question : The project Configuration Section Designer http : csd.codeplex.com is such a great tool but now I ve moved to VS2010 forced actually and it doesn t support 2010 . I use this tool a great deal but now I can t and I have a ton of config stuff to write . Is there an alternative to this tool that will work with VS2010 I m hoping for a good solution and not having to do a project in VS2008 and manually import the generated files . Ugh the thought of using appSettings to store configuration is just horrid . .. . Answer : I was recently added as a contributor to this project andym1978 . I was able to fix the code to support VisualStudio 2010 . We want to do more testing before releasing to the official 2.0 downloads area but I ve uploaded an unofficial 2.0 release HERE http : csd.codeplex.com wikipage title Installation 20Visual 20Studio 202010 . Please report bugs to the issues page and I will get to them ASAP . Comment : bout time I tried another add-in called Configuration Generation Designer or something like that and I couldnt get it to work .",
"Question : The project Configuration Section Designer http : csd.codeplex.com is such a great tool but now I ve moved to VS2010 forced actually and it doesn t support 2010 . I use this tool a great deal but now I can t and I have a ton of config stuff to write . Is there an alternative to this tool that will work with VS2010 I m hoping for a good solution and not having to do a project in VS2008 and manually import the generated files . Ugh the thought of using appSettings to store configuration is just horrid . .. . Answer : The version for VS 2010 is now available . http : csd.codeplex.com",
"Question : I have a VB solution with many VB projects in it . One of them the Core project has a .xsd file in it with a targetNameSpace of urn : CustomNamespace . In the Core project I am able to import the xsd namespace by doing the following : .. . .. . How can I get this Imports statement to work in a project that references the Core project In the Core the xsd s namespace shows up with Intellisense . This is not the case in the referring project . I know this can be done somehow as we are consuming a nuget-package that has an xsd that we are importing . UPDATE .. . .. . It looks like the namespace Intellisense from the DLL in the nuget-package is coming from a Configuration Section Designer xsd file which is a .csd.xsd file . There are other related files to this but I essentially want the same functionality that comes with referencing a package that has a .csd.xsd file . It looks this is a VS add-in located at https : csd.codeplex.com . I ll likely pull down the project to try to find out how they re doing it but I d appreciate an answer if someone knows how it s done . .. . Answer : Nuget is likely adding the schema file to the project referencing your Core project . You can reference the same xsd file by adding it as a link-to the referring project . Right-click the non-core project select Add Existing item . Browse to the xsd file - and this bit is key - instead of clicking Add click the little arrow next to Add and select Add as link . Comment : I don t want to do that if there s a way to import the xsd namespace without importing the xsd . E.g . I can import Core.Namespace without having to do anything more than reference the project . Is this how nuget packages achieve this Comment : Hmm . Try deleting the Root namespace in the project properties tab of the core module if there is one . Then add a reference and try importing the namespace . You can try starting with Global . or use the Object Browser in the IDE F2 key Comment : It appears that you were correct that I would need to link-to the file in order to import the namespace from the xsd . I updated your answer to reflect my situation-- the nuget-package did in fact add the xsd directly to the project which is why I was able to import that namespace . I added a bounty then found the file in my project-- I ll give you the bounty as soon as my waiting period is over . Comment : Glad I could help . Thanks for the bounty . Happy programming : -"
]
} | [
"yes-answer-long",
"yes-answer-short"
] | xsd | UNK_RELATION |
osx-mountain-lion@operating-system@128 | osx-mountain-lion -- mac os x mountain lion 10.8 is the ninth and current major release of mac os x apple s desktop and server @placeholder for macintosh computers . | {
"confidence": [
100.51740264892578,
97.8860855102539,
93.58348083496094,
92.95355987548828,
90.4598617553711,
90.4598617553711,
89.4634017944336,
85.52352905273438,
85.49667358398438,
85.49667358398438,
84.32630157470703,
83.76299285888672,
80.35618591308594,
79.74173736572266,
79.45793914794922,
79.05354309082031,
78.48799133300781,
78.30945587158203,
77.7361068725586,
76.83751678466797,
76.64197540283203,
76.58745574951172,
76.5528335571289,
75.1551742553711,
74.88141632080078,
73.40643310546875,
71.74370574951172,
71.74370574951172,
71.74370574951172,
71.30045318603516,
71.2701416015625,
70.78807067871094,
70.50447082519531,
69.94889068603516,
69.46943664550781,
69.16143798828125,
69.16143798828125,
69.1383285522461,
68.88140869140625,
68.85722351074219,
68.85722351074219,
68.85722351074219,
68.72079467773438,
68.63436889648438,
68.58942413330078,
68.20604705810547,
67.1698226928711,
67.1698226928711,
66.91034698486328,
66.45201873779297,
66.43888854980469,
66.1756362915039,
66.10211181640625,
66.03182983398438,
66.03182983398438,
66.03182983398438,
65.72712707519531,
65.72712707519531,
65.62151336669922,
65.0976333618164,
64.92626190185547,
64.52156066894531,
64.34950256347656,
64.27880096435547,
64.2016830444336,
63.84929656982422,
63.8045654296875,
63.8045654296875,
62.87754821777344,
62.72455596923828,
62.23729705810547,
62.23729705810547,
62.23729705810547,
62.17473602294922,
62.0299072265625,
62.0299072265625,
61.08879852294922,
61.08879852294922,
61.08879852294922,
61.08879852294922,
60.489654541015625,
59.846717834472656,
59.78635025024414,
59.78635025024414,
59.78635025024414,
59.594688415527344,
59.573089599609375,
59.570274353027344,
59.35185241699219,
59.122528076171875,
59.08301544189453,
59.08301544189453,
59.08301544189453,
58.44096374511719,
58.324981689453125,
58.134681701660156,
58.06370544433594,
57.98255157470703,
57.75916290283203,
57.75916290283203
],
"content": [
"Support for Mac OS X 10.8 Mountain Lion has been improved .",
"Is the JDK path changed in Mac OS X mountain Lion",
"Can anybody tell me how to set environment variable for Mac OS X 10.8 Mountain Lion .",
"I m running Mac OS X Mountain Lion 10.8.2 .",
"I used Homebrew to install CppUnit on OS X 10.8 Mountain Lion .",
"I just upgraded to OS X 10.8 Mountain Lion .",
"On Lion OS X 10.7 this worked fine however on Mountain Lion OS X 10.8 I receive an EXC BAD ACCESS on this line .",
"I am trying to export an apple distribution code-signing-certificate into a .p12 format on a Mac OS X Mountain Lion .",
"I am attempting this in Mac OS X 10.8 Mountain Lion using XCode 4.4.1 .",
"On Mac OS X 10.8 Mountain Lion the following error occurs with no option to choose Allow .",
"And it worked well in Mac OS X lion .",
"I just upgraded from OS X Lion to OS X Mountain Lion .",
"These instructions are good for OSX Lion and Mountain Lion .",
"My Environment is OS X Mountain Lion also Mavericks .",
"How can you simulate a retina-display HiDPI mode in Mac OS X 10.8 Mountain Lion on a non-retina display",
"I m on a mac running mountain lion .",
"I just upgraded my MacMini Server from Lion Server to Mountain Lion using OS X Server .",
"I m having trouble building MySQLdb on Mac OSX Mountain Lion .",
"Can someone please provide step by step instructions for getting cppunit working on OS X 10.8 Mountain Lion",
"Is it possible to use GLUT on OS X Lion or OS X Mountain Lion using core profile so I can use GLSL 1.50",
"The problem is finding and downloading the Mac OS X Mountain Lion on my windows machine to load into virtualbox .",
"However you re correct that the verification logic was changed on OS X Mountain Lion .",
"I am trying to build Fox-toolkit http : www.fox-toolkit.org with opengl support in Mac OSX mountain lion 10.8 .",
"I am using Mountain Lion Mac OSX 10.8.4 .",
"I would like to know about alternative ways to build a development-machine for Ruby 1.9.3 on OS X 10.8 Mountain Lion that does not require Xcode .",
"I just upgrade my Mac to Mac OS X 10.8 .",
"How do I get the command-line builds tools installed with Xcode 4.4 Mac OS X v10.8 Mountain Lion or later",
"How do I get the command-line builds tools installed with Xcode 4.4 Mac OS X v10.8 Mountain Lion or later",
"I m asking this question because I m having problems installing Little Snitch 3.1 on Mac OS X Mountain Lion 10.8.3 .",
"I m running Mountain Lion Server .",
"Running OSX Mountain Lion in a Rails 3.0 project .",
"You need at least Mac OS X Lion OS X 10.7 or higher for the basic support of OpenGL 3.2 .",
"And I have installed MacOS 10.8 Mountain Lion to my VirtualBox guest .",
"I have been trying without success to transfer the creation date from one file to another on OS X 10.8 Mountain Lion using Bash .",
"Apple OS X 10.8",
"I have Mac OS X Mountain Lion 10.8 and XCode 4.4 installed with the Command Line Tools http : stackoverflow.com questions 9329243 xcode-4-4-command-line-tools 9329325 9329325 package installed .",
"I just upgraded from Mac OS X 10.6 to 10.8 Mountain Lion and then installed XCode 4 formerly I had Developer Applications Xcode 3.something .",
"Is there any tool to profile cache misses on Mac OS X Lion and iOS .",
"I have a feeling it has something to do with libpq not properly running or loading on Mountain Lion OS X .",
"Anyone tried this on Mountain Lion",
"Worked on Mountain Lion for me .",
"Is there a profiler for Mountain Lion",
"I am using Mountain Lion .",
"My situation was upgrading from Lion to Mountain Lion .",
"@jfmercer : I think that s what Mountain Lion Mac OS X 10.8.4 would have given are you sure you updated upgraded",
"I get Illegal Instruction : 4 errors with binaries compiled with GCC 4.7.2 under Mac OS X 10.8.2 Mountain Lion when those binaries are run under Mac OS X 10.7.x Lion and earlier versions .",
"It seems to me that SDK10.5 may not be available on Mountain Lion .",
"XQuartz seems to work fine under Mountain Lion .",
"But Apple has changed this behaviour on Mountain Lion .",
"After upgrading to OSX Mountain Lion from OSX Lion I have downloaded and installed Xcode 4.4 also .",
"On previous OSX-Versions you had to add the MAVEN OPTS variable to .. . .. . see also Set environment-variables on Mac OS X Lion http : stackoverflow.com questions 7501678 set-environment-variables-on-mac-os-x-lion This worked for OSX Lion perfectly .",
"I have a local Mac Server Mountain Lion - 10.8.5 as the destination and a remote CloudLinux cPanel Server as the source .",
"I don t have that gfortran the Xcode I have 4.5 only came with OSX SDKs 10.7 and 10.8 Lion and Mountain Lion .",
"Mountain Lion comes with Python 2.7.2 .",
"This worked for me in Mountain Lion 10.8.2 .",
"But 4.3 is not working under Mountain Lion .",
"Recently I performed a clean install of OS X Mountain Lion and restored my system from a Time Machine backup .",
"Does anyone know how to sign a Dashboard widget OS-X Mountain Lion that was made by Dashcode with a Gatekeeper ID",
"Ideally we would like to use these categories if the client OS is older than Mountain Lion and not use them if it s Mountain Lion .",
"I have recently updated to OSX Mountain Lion Xcode 4.4 .",
"Has anybody succeeded in installing gdb on Mountain Lion",
"This question is actually a duplicate of IKDeviceBrowserView displays no contents on OSX Mountain Lion http : stackoverflow.com questions 11841349 ikdevicebrowserview-displays-no-contents-on-osx-mountain-lion which I couldn t find before .",
"How to install MySQLdb on Mountain Lion http : stackoverflow.com questions 11787012 how-to-install-mysqldb-on-mountain-lion",
"The binaries work properly under Mac OS X 10.8.x .",
"I used to use valgrind http : www.valgrind.org to detect memory-leaks for my C C++ applications on Mac OS X 10.6 Snow Leopard and 10.7 Lion but I find it s not supported on recent releases like 10.8 Mountain Lion and 10.9 Mavericks when I upgraded my OS .",
"You don t like to know there are problems with Mac OS X 10.8",
"The code was tested on lion and I have mountain lion so that might be the issue .",
"I have found some fixes for Lion but none for Mountain Lion yet .",
"Is there a way to get fix this in Mountain Lion .",
"This seem to be a simillar problem to yours : stackoverflow.com questions 11465258 http : stackoverflow.com questions 11465258 xlib-h-not-found-when-building-graphviz-on-mac-os-x-10-8-mountain-lion",
"Upon the update to Mountain Lion it no longer works .",
"confirm that this works for me in Mountain Lion 10.8.2",
"Is there any possibility to distribute Apps unter Mountain Lion",
"Running OS X Mountain Lion I ve the full bundle listed beneath the traces .",
"What is the cleanest way to install Ruby 1.9.3 on Mountain Lion without Xcode",
"@holyredbeard brew install automake installed fine for me on Mountain Lion .",
"I have installed GIT on my Mac mountain lion 10.8.5 I cannot get the GIT commands to execute .",
"Some details maybe it would be usefull for some guys : .. . .. . On board : mac mini + mountain lion + Server.app .",
"I am having trouble re-installing gfortran on my mac after upgrading to mountain lion .",
"source : http : quantumtunnel.wordpress.com 2012 07 29 matlab-for-mac-in-mountain-lion-without-x11 .. . .. . Good Luck .",
"I m on OS X 10.8 .",
"possible duplicate of Install ree-1.8.7 with RVM on Mountain Lion http : stackoverflow.com questions 11660673 install-ree-1-8-7-with-rvm-on-mountain-lion",
"I am facing issues with installing rmagick in mountain lion .",
"I just updated to Mountain Lion this morning and had rmagick troubles .",
"Is it a good chance to install MacOS Mountain Lion to my PC",
"Download the Command Line Tools for Xcode appropriate for your version of OSX .. . .. . For me that was Command Line Tools OS X Mountain Lion for Xcode - April 2014 .. . .. . 4 .",
"Shark CHUD package do not install on Mac OS X Lion and later so I can t use shark .",
"Where can I download a windows friendly version the Mac OS X Mountain Lion and is this the easiest most practical way to translate create my android app to ios platform",
"Wishing to migrate I am trying to install and use an existing compass project using bootstrap-sass on a server with OSX 10.8 Mountain Lion installed .",
"Mountain Lion is based on Darwin 12.x Mavericks is based on Darwin 13.x .",
"These methods have been added in Mountain Lion .",
"Notifications in Mountain Lion are handled by two classes .",
"This is because of a new feature in Mountain Lion known as Gatekeeper .",
"If you install Mac OS X 10.8 on your PC you will encounter several issues with your videocard : .. . .. . 1 .",
"As is well-known Mac OS X 10.8 requires Java applications to be signed with Apple Developer ID .",
"So after updating my mac pro to Mountain Lion my ruby environment started screaming with different errors one after another .",
"Tried to compile with Xcode 4.3.2 on Mac OS X 10.7.4 .",
"After making a fresh install of Mac OS X 10.8 Mountain Lion and after installing Ruby 1.9.3 and Ruby on Rails 3.2.6 I started the Rails console and I got this warning message : .. . .. . WARNING : Nokogiri was built against LibXML version 2.7.3 but has dynamically loaded 2.7.8 .. . .. . How can I fix it",
"Requires Mac OS X 10.7.3 or later .",
"Installing scipy on Mac OS X with pip is possible"
]
} | {
"confidence": [
114.94763946533203,
114.13399505615234,
114.13399505615234,
108.46650695800781,
106.90059661865234,
102.37147521972656,
101.9246826171875,
101.88750457763672,
97.9170150756836,
97.59086608886719,
96.75028991699219,
96.61324310302734,
95.99008178710938,
95.14678192138672,
95.09907531738281,
94.52542114257812,
93.76053619384766,
93.70001983642578,
93.54912567138672,
92.54025268554688
],
"content": [
"Question : Can anybody tell me how to set environment variable for Mac OS X 10.8 Mountain Lion . I just upgrade my Mac to Mac OS X 10.8 . When I run a script . It said that .. . .. . Users ruijiaoli lejos-nxj bin nxj : line 64 : System Library Java JavaVirtualMachines 1.6.0.jdk Contents Home bin java : No such file or directory .. . .. . I found that JDK in the directory within the path above . And it worked well in Mac OS X lion . Is the JDK path changed in Mac OS X mountain Lion The version of Java on my system is 1.6 . .. . Answer : I ve found the following post very helpful - .. . .. . http : www.cyberciti.biz faq appleosx-bash-unix-change-set-path-environment-variable .. . .. . It explains how to set the path for a single user or system wide OS X Leopard+",
"Question : Can anybody tell me how to set environment variable for Mac OS X 10.8 Mountain Lion . I just upgrade my Mac to Mac OS X 10.8 . When I run a script . It said that .. . .. . Users ruijiaoli lejos-nxj bin nxj : line 64 : System Library Java JavaVirtualMachines 1.6.0.jdk Contents Home bin java : No such file or directory .. . .. . I found that JDK in the directory within the path above . And it worked well in Mac OS X lion . Is the JDK path changed in Mac OS X mountain Lion The version of Java on my system is 1.6 . .. . Answer : This is what I have tried : .. . .. . create the bash profile : .. . .. . add this to the file : .. . .. . execute the source command .. . .. . echo JAVA HOME :",
"Question : Can anybody tell me how to set environment variable for Mac OS X 10.8 Mountain Lion . I just upgrade my Mac to Mac OS X 10.8 . When I run a script . It said that .. . .. . Users ruijiaoli lejos-nxj bin nxj : line 64 : System Library Java JavaVirtualMachines 1.6.0.jdk Contents Home bin java : No such file or directory .. . .. . I found that JDK in the directory within the path above . And it worked well in Mac OS X lion . Is the JDK path changed in Mac OS X mountain Lion The version of Java on my system is 1.6 . .. . Answer : browsing arround I found this link you can follow with instructions from oracle http : docs.oracle.com cd E19509-01 820-3208 6neopagg5 index.html Comment : Please discuss the solution given on the Link . It s generally not recommended to just post links as answers .",
"Question : Can anybody tell me how to set environment variable for Mac OS X 10.8 Mountain Lion . I just upgrade my Mac to Mac OS X 10.8 . When I run a script . It said that .. . .. . Users ruijiaoli lejos-nxj bin nxj : line 64 : System Library Java JavaVirtualMachines 1.6.0.jdk Contents Home bin java : No such file or directory .. . .. . I found that JDK in the directory within the path above . And it worked well in Mac OS X lion . Is the JDK path changed in Mac OS X mountain Lion The version of Java on my system is 1.6 . .. . Answer : I created a file .bash-profile and added : .. . .. . And all s working great for me.. . Comment : Where did you placed the file Comment : represents the user directory so in other words Users user .bash-profile Comment : That method works only for the user s own environment . If you need such environment-variables as a system-wide level apparently you need to put corresponding setenv commands into a file etc launchd.conf .",
"Question : I would like to know about alternative ways to build a development-machine for Ruby 1.9.3 on OS X 10.8 Mountain Lion that does not require Xcode . Mountain Lion is now Golden Master as I m writing this question so it could be considered as final version . That cannot be said about Xcode that is a preview release yet . RVM recommends to install osx-gcc-installer over Xcode but I would like not to mess my system . What is the cleanest way to install Ruby 1.9.3 on Mountain Lion without Xcode .. . Answer : I also had to add this : .. . .. . export CC usr bin gcc-4.2 .. . .. . in order to make the Apple command-line tools work with the rvm . Without this I had repeated llvm issues : .. . .. . The provided CC gcc is LLVM based it is not yet fully supported by ruby and gems please read rvm requirements .",
"Question : I have java applet signed with thwate certificate and need to sign it with Apple Developer ID . As is well-known Mac OS X 10.8 requires Java applications to be signed with Apple Developer ID . It causes some problems with running Java applets Gatekeeper says that The digital-signature could not be verified . There are the same issues OS X 10.8 Gatekeeper and Java applets http : stackoverflow.com questions 11665386 os-x-10-8-gatekeeper-and-java-applets and Sign java applet so that it works on OS X 10.8 Mountain Lion and Windows http : stackoverflow.com questions 12088680 sign-java-applet-so-that-it-works-on-os-x-10-8-mountain-lion-and-windows .. . .. . I also found this in Oracle s Mac FAQ : http : docs.oracle.com javase 7 docs technotes guides jweb mac-faq.html gatekeeper .. . .. . So I requested and downloaded Apple Developer ID certificate to my Mac but I cannot find any where how to sign java applets with Apple Developer ID . I ve tried the following : .. . .. . 1 . Sign the applet on Mac using codesign tool . codesign -s Developer ID Application : MyCompany MyApplet.jar .. . .. . .. . But the jar file was not actually be modified by this command no date file size or binary content was changed . 2 . Export Apple certificate to p12 and use jarsigner . I exported Apple Root CA Apple Timestamp Certification Authority and Developer ID Application : MyCompany to p12 and sign my jar in a common way . 3 . Import my thawte certificate to Mac Keychain Access and export both Apple and thawte certificates to p12 . All three ways give me nothing . When I open a page with the applet Gatekeeper still says that it could not be verified . Could anybody provide me with step by step instructions on how to sign my applet .. . Answer : Oh there is no way to do it Java applets cannot participate in the Developer ID program . The Apple s answer is here http : stackoverflow.com a 12210534 1068878 .",
"Question : since the upgrade to OSX Mountain Lion I ve got some problems with setting the environment-variables for eclipse and maven . My goal is to run a maven command in Eclipse . This command needs to download artefacts resolve dependencies from a remote repository . The repository is authenticated via HTTPS . I ve followed the Guide to Remote repository access through authenticated HTTPS http : maven.apache.org guides mini guide-repository-ssl.html and added the lines below to my .bash profil . If I m running maven in the terminal everythings works fine . But this does only work for the terminal and not for applications . On previous OSX-Versions you had to add the MAVEN OPTS variable to .. . .. . see also Set environment-variables on Mac OS X Lion http : stackoverflow.com questions 7501678 set-environment-variables-on-mac-os-x-lion This worked for OSX Lion perfectly . But Apple has changed this behaviour on Mountain Lion . I ve read the environment.plist is no longer supported and the new way is to edit the Info.plist of the .app itself Where are system environment-variables set in Mountain Lion http : apple.stackexchange.com questions 57385 where-are-system-environment-variables-set-in-mountain-lion . It seems you have to add a LSEnvironment http : developer.apple.com library ios documentation general Reference InfoPlistKeyReference Articles LaunchServicesKeys.html dictionary containing all you variables . As you can see I changed the Info.plist of my Eclipse.app . But this did not work . I start maven within Eclipse . But maven is not able to download the artefacts because the remote repository is not trusted . I think Eclipse does not use the environment-variables I defined in the Info.plist .. . .. . Do you have any suggestions how to solve this problem Thanks for your answers .. . Answer : Unfortunately this seems to be the best option for setting a global environment variable in OS X 10.8.x Mountain Lion : .. . .. . http : stackoverflow.com a 588442 705157 .. . .. . For temporary environment-variables run this command in Terminal.app and restart any apps that need to access the variable : .. . .. . To make an environment variable persistent across reboots create etc launchd.conf and add a line like this for each variable then reboot your entire system : .. . .. . This worked for me to set a global environment variable that could be inherited by IntelliJ IDEA CE 12.0 on OS X 10.8.2 . Not very elegant but it works . Alternatively you can set the environment variable in Terminal.app then launch the App from which you want to access the environment variable from the command-line . The launched app will inherit the environment from your terminal session . In Terminal.app set the environment variable and launch another app with a command like open -a App Name : .. . .. . This opens IntelliJ IDEA and my code can access MYVARIABLE in its environment .",
"Question : I would like to know about alternative ways to build a development-machine for Ruby 1.9.3 on OS X 10.8 Mountain Lion that does not require Xcode . Mountain Lion is now Golden Master as I m writing this question so it could be considered as final version . That cannot be said about Xcode that is a preview release yet . RVM recommends to install osx-gcc-installer over Xcode but I would like not to mess my system . What is the cleanest way to install Ruby 1.9.3 on Mountain Lion without Xcode .. . Answer : I had to add .. . .. . as well as .. . .. . I was still getting compilation errors due to readline things like readline.c : In function readline s vi editing mode p : in the make.log file and the RVM readline page https : rvm.io packages readline didn t seem to help so I ran .. . .. . followed by",
"Question : I used to use valgrind http : www.valgrind.org to detect memory-leaks for my C C++ applications on Mac OS X 10.6 Snow Leopard and 10.7 Lion but I find it s not supported on recent releases like 10.8 Mountain Lion and 10.9 Mavericks when I upgraded my OS . Is there something else like valgrind that can be installed on Mac OS X 10.9 Comment : xcode has instruments which has a memory analyzer and leak finder . Your code needs to be in xcode and you have to find your way around the guis . Comment : I use valgrind on a library written by c++ c codes can instruments deal with that Comment : This is not off topic because it s asking for any tool not the best tool which would attract opinions and spam . Comment : Also valgrind is not primarily a leak detector it s an invalid access detector . There is no replacement for valgrind certainly not static-analysis anyway . The answers here might work for you but you might rephrase the question . In which case it could become off topic for the given reason . Comment : This question should not have been closed please re-open it . The rule about closing tool questions cites flame-war prevision as its primary motivation . This question really isn t likely to start a flame-war or a spam fest so closing it goes against the spirit of the rule . Someone going 75 in a 60 might get a ticket for speeding but hopefully not if they re driving a critically injured passenger to a nearby hospital . Don t apply rules blindly use your intelligent discretion . Reopen this question it s useful . .. . Answer : On 2013-11-01 the valgrind http : www.valgrind.org team announced Valgrind 3.9.0 : .. . .. . We are pleased to announce a new release of Valgrind version 3.9.0 available from http : www.valgrind.org . .. . 3.9.0 is a feature release with many improvements and the usual collection of bug fixes . This release adds support for MIPS64 Linux Intel AVX2 instructions and POWER8 instructions . DFP support has been added for S390 . Initial support for hardware transactional memory has been added for Intel and POWER platforms . Support for Mac OS X 10.8 Mountain Lion has been improved . Accuracy of Memcheck on vectorized code has been improved . It remains to be seen whether the improved Mountain Lion support means it works OK for Mavericks . It does mention that the support is only for 64-bit code . ...time passeth...downloads happen...hopes are raised...configuration is attempted...hopes are dashed.. . .. . .. . Urgh Mountain Lion is based on Darwin 12.x Mavericks is based on Darwin 13.x . I m not sure about the messaging in the error messages but out of the box Valgrind 3.9.0 does not compile on OS X Mavericks . Comment : good news to know thanks Comment : @jfmercer : I think that s what Mountain Lion Mac OS X 10.8.4 would have given are you sure you updated upgraded Running uname -a on a machine definitely running Mavericks gives : Darwin machine-name.example.com 13.0.0 Darwin Kernel Version 13.0.0 : Thu Sep 19 22 : 22 : 27 PDT 2013 root : xnu-2422.1.72 6 RELEASE X86 64 x86-64 . And echo OSTYPE yields darwin13 . You can also see 13.0.0 in the version information detected by configure too . Comment : Heh I compiled the program when I was on Mountain Lion upgraded to Mavericks and have an executable valgrind on Mavericks . However it doesn t debug any application correctly . It crashes every time .",
"Question : I just upgraded to OS X 10.8 Mountain Lion . Now adb devices doesn t list my Galaxy Nexus or my Nexus One . I can t believe it isn t working as I m sure there must be Android devs at Google that use Google phones with Mountain Lion . Please help Comment : I think you need to reinstall configure the drivers . Comment : I too upgraded to Mountain Lion but did not experience any problems with my Galaxy Nexus . adb is sometimes flaky regardless of desktop OS . Try 1 add kill-server and 2 a different cable . Comment : try adb kill-server followed by adb start-server Comment : then adb devices . If this does not work and not cable then its the drivers Collins . Comment : Also see if other devices are recognized . .. . Answer : It works for me .",
"Question : since the upgrade to OSX Mountain Lion I ve got some problems with setting the environment-variables for eclipse and maven . My goal is to run a maven command in Eclipse . This command needs to download artefacts resolve dependencies from a remote repository . The repository is authenticated via HTTPS . I ve followed the Guide to Remote repository access through authenticated HTTPS http : maven.apache.org guides mini guide-repository-ssl.html and added the lines below to my .bash profil . If I m running maven in the terminal everythings works fine . But this does only work for the terminal and not for applications . On previous OSX-Versions you had to add the MAVEN OPTS variable to .. . .. . see also Set environment-variables on Mac OS X Lion http : stackoverflow.com questions 7501678 set-environment-variables-on-mac-os-x-lion This worked for OSX Lion perfectly . But Apple has changed this behaviour on Mountain Lion . I ve read the environment.plist is no longer supported and the new way is to edit the Info.plist of the .app itself Where are system environment-variables set in Mountain Lion http : apple.stackexchange.com questions 57385 where-are-system-environment-variables-set-in-mountain-lion . It seems you have to add a LSEnvironment http : developer.apple.com library ios documentation general Reference InfoPlistKeyReference Articles LaunchServicesKeys.html dictionary containing all you variables . As you can see I changed the Info.plist of my Eclipse.app . But this did not work . I start maven within Eclipse . But maven is not able to download the artefacts because the remote repository is not trusted . I think Eclipse does not use the environment-variables I defined in the Info.plist .. . .. . Do you have any suggestions how to solve this problem Thanks for your answers .. . Answer : From here : http : stackoverflow.com a 10374886 325742 .. . .. . Then use the steps on http : mathiasbynens.be notes shell-script-mac-apps to turn the above script into an application that can be kept on the dock . Comment : Thanks for fast reply Comment : Unfortunately this did not solve my problem . When I start Eclipse with the script it still does not use the MAVEN OPTS . But if I export for example a different M2 HOME Eclipse uses this new Maven-Home .",
"Question : I would like to know about alternative ways to build a development-machine for Ruby 1.9.3 on OS X 10.8 Mountain Lion that does not require Xcode . Mountain Lion is now Golden Master as I m writing this question so it could be considered as final version . That cannot be said about Xcode that is a preview release yet . RVM recommends to install osx-gcc-installer over Xcode but I would like not to mess my system . What is the cleanest way to install Ruby 1.9.3 on Mountain Lion without Xcode .. . Answer : osx-gcc-installer turns out to be a very good option to replace Xcode in order to install Ruby 1.9.3 .. . .. . These are the steps I have followed : .. . .. . 1 . Download install the latest version of osx-gcc-installer here GCC-10.7-v2 is fine : https : github.com kennethreitz osx-gcc-installer .. . 2 . Install RVM as usual and select 1.9.3-head as the default ruby installation : https : rvm.io rvm install .. . 3 . Install Homebrew : https : github.com mxcl homebrew wiki installation .. . 4 . Install libksba to resolve some dependencies with Ruby 1.9.3 : brew install libksba .. . .. . That s it You should now have Ruby 1.9.3 installed on Mountain Lion working perfectly . If you need some other packages install them now through Homebrew such as Imagemagick for example : brew install imagemagick .. . .. . It s possible that you need XQuartz for Homebrew to work properly as Apple is not shipping X11 since Mountain Lion . You can download it here : http : xquartz.macosforge.org trac wiki .. . .. . EDIT : .. . .. . Now since 29th July Command line tools for Xcode 4.4 are available . So the new steps are these : .. . .. . 1 . Download install Command line tools for Xcode 4.4 you don t need to download Xcode : https : developer.apple.com downloads index.action .. . 2 . Install Homebrew : https : github.com mxcl homebrew wiki installation .. . 3 . Install automake : brew install automake .. . 4 . Install RVM as usual and select 1.9.3-head as the default ruby installation : https : rvm.io rvm install .. . .. . Optional step : You may need XQuartz for some components for example for Imagemagick so download install XQuartz : http : xquartz.macosforge.org trac wiki Comment : I needed XQuartz too for fink and MacPorts well not need but it was checked in the configs . XQuartz seems to work fine under Mountain Lion . Comment : brew install automake doesn t work anymore Comment : @holyredbeard brew install automake installed fine for me on Mountain Lion . Comment : The rvm.io website is hideous . For step 4 I followed the instructions here : octopress.org docs setup rvm http : octopress.org docs setup rvm and then after that I also installed rails using gem install rails --version 3.2.0",
"Question : I have java applet signed with thwate certificate and need to sign it with Apple Developer ID . As is well-known Mac OS X 10.8 requires Java applications to be signed with Apple Developer ID . It causes some problems with running Java applets Gatekeeper says that The digital-signature could not be verified . There are the same issues OS X 10.8 Gatekeeper and Java applets http : stackoverflow.com questions 11665386 os-x-10-8-gatekeeper-and-java-applets and Sign java applet so that it works on OS X 10.8 Mountain Lion and Windows http : stackoverflow.com questions 12088680 sign-java-applet-so-that-it-works-on-os-x-10-8-mountain-lion-and-windows .. . .. . I also found this in Oracle s Mac FAQ : http : docs.oracle.com javase 7 docs technotes guides jweb mac-faq.html gatekeeper .. . .. . So I requested and downloaded Apple Developer ID certificate to my Mac but I cannot find any where how to sign java applets with Apple Developer ID . I ve tried the following : .. . .. . 1 . Sign the applet on Mac using codesign tool . codesign -s Developer ID Application : MyCompany MyApplet.jar .. . .. . .. . But the jar file was not actually be modified by this command no date file size or binary content was changed . 2 . Export Apple certificate to p12 and use jarsigner . I exported Apple Root CA Apple Timestamp Certification Authority and Developer ID Application : MyCompany to p12 and sign my jar in a common way . 3 . Import my thawte certificate to Mac Keychain Access and export both Apple and thawte certificates to p12 . All three ways give me nothing . When I open a page with the applet Gatekeeper still says that it could not be verified . Could anybody provide me with step by step instructions on how to sign my applet .. . Answer : This may be a bit late for you but in case it helps anyone else : it is possible to bundle the JAR file along with the Java Runtime Environment into a .app . You can then sign the .app using your Apple certificate just as-if you had written in with xcode . Search for javapackager which is just one of many ways to do this . In theory you can even submit such an app to the app-store .",
"Question : I have a Java Web Start application which I ve tested on Windows 7 Linux and Mac OS X 10.7 works fine on all . On Mac OS X 10.8 Mountain Lion the following error occurs with no option to choose Allow . The error looks like this : http : i.stack.imgur.com 7sXoO.png http : i.stack.imgur.com v4oiL.png .. . .. . Does anyone know of a workaround for this Comment : Who signed this Java Web Start application using what key Comment : Check this thread http : stackoverflow.com questions 6868628 java-signed-applet-certificate-revoked-only-on-mac-osx10-7-lion . .. . Answer : I recommend going to command-line and using the following .. . .. . and viewing the output . If you receive an error about the installer being untrusted and you know the source is accurate and you want to install it anyway then .. . .. . This is an issue with MacOS 10.8 and older installers using a different code-signing tool than what Mountain Lion likes . Or so I m told .",
"Question : since the upgrade to OSX Mountain Lion I ve got some problems with setting the environment-variables for eclipse and maven . My goal is to run a maven command in Eclipse . This command needs to download artefacts resolve dependencies from a remote repository . The repository is authenticated via HTTPS . I ve followed the Guide to Remote repository access through authenticated HTTPS http : maven.apache.org guides mini guide-repository-ssl.html and added the lines below to my .bash profil . If I m running maven in the terminal everythings works fine . But this does only work for the terminal and not for applications . On previous OSX-Versions you had to add the MAVEN OPTS variable to .. . .. . see also Set environment-variables on Mac OS X Lion http : stackoverflow.com questions 7501678 set-environment-variables-on-mac-os-x-lion This worked for OSX Lion perfectly . But Apple has changed this behaviour on Mountain Lion . I ve read the environment.plist is no longer supported and the new way is to edit the Info.plist of the .app itself Where are system environment-variables set in Mountain Lion http : apple.stackexchange.com questions 57385 where-are-system-environment-variables-set-in-mountain-lion . It seems you have to add a LSEnvironment http : developer.apple.com library ios documentation general Reference InfoPlistKeyReference Articles LaunchServicesKeys.html dictionary containing all you variables . As you can see I changed the Info.plist of my Eclipse.app . But this did not work . I start maven within Eclipse . But maven is not able to download the artefacts because the remote repository is not trusted . I think Eclipse does not use the environment-variables I defined in the Info.plist .. . .. . Do you have any suggestions how to solve this problem Thanks for your answers .. . Answer : You can set env variable directly in eclipse under maven Debug Configurations - Environment tab",
"Question : I just upgraded to OS X 10.8 Mountain Lion . Now adb devices doesn t list my Galaxy Nexus or my Nexus One . I can t believe it isn t working as I m sure there must be Android devs at Google that use Google phones with Mountain Lion . Please help Comment : I think you need to reinstall configure the drivers . Comment : I too upgraded to Mountain Lion but did not experience any problems with my Galaxy Nexus . adb is sometimes flaky regardless of desktop OS . Try 1 add kill-server and 2 a different cable . Comment : try adb kill-server followed by adb start-server Comment : then adb devices . If this does not work and not cable then its the drivers Collins . Comment : Also see if other devices are recognized . .. . Answer : Me and my team was also seeing similar issues with mountain lion but the issues mainly because of ADB not working properly . As described in comments .. . .. . is your best friend . Always worked for us . However please note that you may have to do it multiple times meaning it hangs do it again . Infact the automated test script that we have written goes to an extent of executing these commands the moment it feels we are not getting response .",
"Question : I get Illegal Instruction : 4 errors with binaries compiled with GCC 4.7.2 under Mac OS X 10.8.2 Mountain Lion when those binaries are run under Mac OS X 10.7.x Lion and earlier versions . The binaries work properly under Mac OS X 10.8.x . I added -mmacosx-version-min 10.5 to my compile flags and this seems to help resolve the issue for 10.5.x 10.6.x and 10.7.x clients whatever that issue is . Which gets to my question s : .. . .. . What is the Illegal Instruction : 4 error Why does -mmacosx-version-min 10.x fix this specific error on 10.x and greater clients I d like to apply this fix to my makefiles but would like to know what it is doing before I pull the trigger . Will I have larger binaries Do I still have 64-bit binaries Are there gotchas with this approach I should know about Unintended side-effects Etc . Comment : Snow Leopard is Mac OSX 10.6 please clarify correct Comment : Corrected thanks . Comment : A missing return-value may cause an Illegal Instruction : 4 . I ran into this yesterday . Paying attention to my compiler-warnings brought me on the right track . .. . Answer : From the Apple Developer Forum https : devforums.apple.com message 773142 account required : .. . .. . The compiler and linker are capable of using features and performing optimizations that do not work on older OS versions . -mmacosx-version-min tells the tools what OS versions you need to work with so the tools can disable optimizations that won t run on those OS versions . If you need to run on older OS versions then you must use this flag . .. . The downside to -mmacosx-version-min is that the app s performance may be worse on newer OS versions then it could have been if it did not need to be backwards-compatible . In most cases the differences are small .",
"Question : I have a Java Web Start application which I ve tested on Windows 7 Linux and Mac OS X 10.7 works fine on all . On Mac OS X 10.8 Mountain Lion the following error occurs with no option to choose Allow . The error looks like this : http : i.stack.imgur.com 7sXoO.png http : i.stack.imgur.com v4oiL.png .. . .. . Does anyone know of a workaround for this Comment : Who signed this Java Web Start application using what key Comment : Check this thread http : stackoverflow.com questions 6868628 java-signed-applet-certificate-revoked-only-on-mac-osx10-7-lion . .. . Answer : This is because of a new feature in Mountain Lion known as Gatekeeper . Following is a brief description : .. . .. . Choose where apps are installed from : Gatekeeper gives you three security options for downloading and installing apps for your Mac . You can download and install apps from anywhere with the same protection that OS X Lion provides . For maximum security choose to allow only apps from the Mac App Store to be installed . Or download and install apps from the Mac App Store and apps that have been signed with a Developer ID . Gatekeeper alert : Mountain Lion alerts you if you download and try to install an application from a developer who does not have a Developer ID . Manual override : If you receive an alert that an app is from an unidentified developer you can still choose to install it . Control-click the installer or the application icon to reveal a contextual menu . Choose Open and you ll see a dialog that allows you to install the application . Comment : That manual override does not seem to work for Java web start applications at least on 10.8.2 . Comment : The answer is not really helpful solving the issue . Anyway the actual description isn t wrong .",
"Question : I have a Java Web Start application which I ve tested on Windows 7 Linux and Mac OS X 10.7 works fine on all . On Mac OS X 10.8 Mountain Lion the following error occurs with no option to choose Allow . The error looks like this : http : i.stack.imgur.com 7sXoO.png http : i.stack.imgur.com v4oiL.png .. . .. . Does anyone know of a workaround for this Comment : Who signed this Java Web Start application using what key Comment : Check this thread http : stackoverflow.com questions 6868628 java-signed-applet-certificate-revoked-only-on-mac-osx10-7-lion . .. . Answer : I had this same problem . I would also add that once the app is installed and you know it s working . You can revert the setting that you changed to set your mind at ease in terms of your OS X Security . Regards",
"Question : After making a fresh install of Mac OS X 10.8 Mountain Lion and after installing Ruby 1.9.3 and Ruby on Rails 3.2.6 I started the Rails console and I got this warning message : .. . .. . WARNING : Nokogiri was built against LibXML version 2.7.3 but has dynamically loaded 2.7.8 .. . .. . How can I fix it Comment : This is the answer : stackoverflow.com questions 16921700 http : stackoverflow.com questions 16921700 how-to-load-correct-version-of-dynamic-libraries-and-gems-libxml-nokogiri-wit 5D 5B1 5D 1 : stackoverflow.com questions 16921700 http : stackoverflow.com questions 16921700 how-to-load-correct-version-of-dynamic-libraries-and-gems-libxml-nokogiri-wit .. . Answer : I have found some fixes for Lion but none for Mountain Lion yet . Nonetheless I have tried this and it works : .. . .. . Source for Lion : https : gist.github.com 1349681 Comment : This probably works however for a Rails RVM environment @kyubey s answer is probably more general . Comment : It depends . There are times where @kyubey s answer does not work especially on systems with old ruby installations . On newly installed OS X there are no problems AFAIK . Comment : Hi guys does this wokr for Yosemite"
]
} | [
"yes-answer-long",
"yes-answer-short"
] | operating-system | UNK_RELATION |
openfaces@jsf@66 | openfaces -- openfaces is an open-source library of ajax-powered @placeholder components an ajax framework and a client-side validation framework . | {
"confidence": [
49.9476432800293,
35.86385726928711,
35.86385726928711,
35.828826904296875,
32.24340057373047,
27.30908966064453,
27.30908966064453,
25.20801544189453,
25.03399658203125,
22.082048416137695,
21.191314697265625,
21.078353881835938,
14.223149299621582,
14.223149299621582,
14.223149299621582,
14.223149299621582,
14.223149299621582,
14.223149299621582,
14.223149299621582,
14.223149299621582,
14.223149299621582,
14.223149299621582,
14.223149299621582,
14.223149299621582,
14.223149299621582,
14.223149299621582,
14.223149299621582,
14.223149299621582,
14.223149299621582,
11.064037322998047,
11.064037322998047,
11.064037322998047,
11.064037322998047,
11.064037322998047,
11.064037322998047,
11.064037322998047,
11.064037322998047,
11.064037322998047,
11.064037322998047,
11.064037322998047,
11.064037322998047,
11.064037322998047,
11.064037322998047,
11.064037322998047,
11.064037322998047
],
"content": [
"This is essentially a bug in OpenFaces .",
"I believe this issue is caused by openfaces data table because when I replaced with jsf datatable everything works fine .",
"I have to use openfaces datatable as it suits my requirement with pagination filtering etc .",
"im working with JSF 2.0 and the OpenFaces o : tabbedPane .. . .. . im having some troubles changing the tabs. . i have an index with four jsf pages includes .",
"I am using using myfaces 2.1.10 faces engine along with open faces 3.1 openfaces-3.1.EA1.1198.jar in my web application running on weblogic server 12c .",
"Anyway what do you mean by saying to go to the bean .. . using Ajax",
"Should anything be reloaded with Ajax just submitted or something else",
"When I enter text to search and then by clicking the search button system returns some data and populates the openfaces data table component that I have placed in the same page but when I am trying to search again I am getting exception as pasted below .",
"u know if there is a way to go to the bean with a button without the submit action.. . just the ajax.. . and then move to other panel",
"Anyway it should be possible to use the usual Ajax capabilities like the render execute attributes in o : commandButton or you can use f : ajax o : ajax on you existing h : commandButton to implement both of the mentioned cases.. .",
".. . Workaround : .. . .. . .. . public class UIOutputPanelWorkaround extends UIOutputPanel .. . .. . public boolean isKeepTransient .. . Boolean value Boolean getStateHelper .eval Properties.keepTransient false .. . return-value .. . .. . .. . .. . .. . and in faces-config : .. . .. . .. . component .. . component-type org.richfaces.OutputPanel component-type .. . component-class com.example.UIOutputPanelWorkaround component-class .. . component .. . .. . .. . It seems that this bug is already reported to OpenFaces as issue 206 http : requests.openfaces.org browse OF-206 but there doesn t seem to be any progress .",
"Did you consider a possible validation error on those pages",
"like this .. . .. . inside the jsf pages. . i have forms with their h : commandButton like this .. . .. . when its goes to the actionListener on the Bean the first time works fine.. . and changes the o : tabbedPane to the second o : subPanel but",
"when i use the h : commandButton of the second o : subPanel does not work.. . is not reaching the actionListener on the Bean.. .",
"Please help me if you know what im doing wrong.. .",
"Thanks",
"First note that o : tabbedPane should be placed inside of a form and I suppose that it is inside a form in your case .",
"Second you re mentioning that you have forms with buttons inside of JSF pages .",
"Are these the pages that are included into o : subPanel of your tabbed pane",
"If so then you actually have nested-forms as a result on your page which is not allowed .",
"If this is true then the solution in this case can be as easy as removing the form tags from the included sub-pages .",
"Hi Dmitry. . thanks i remove all the inside forms like you said. . but the problem persist. . i have a h : commandButton inside of every o : subPanel the first one works.. . but the others doesnt reach the bean.. . just refresh the page.. . is a problem with having multiples submits",
"Add h : messages somewhere outside of o : tabbedPane to see if there are any errors.. .",
"Hi. . thanks",
"i used the inmediate true on the commandButton and it works. .",
"I tried before with the nested-forms and nothing.. . thank you very much",
"because i have one form separated on 4 pages.. . and i need to keep that info on the inputs fields while the user go through the four subPanels and when the commandButton goes to the bean and change the subPanel some info is lost. .",
"Thanks",
"I m not sure about stackoverflow rules this must probably have been another question as it s a different issue.. .",
"The web application is using facelets template to load header content footer pages .xhtml .",
"In the content page I have placed a input text field along with a search button along with openfaces s datatable .",
"For Clarity I am pasting code-snippets from web.xml and the content page roleMaintenance.xhtml .",
"Thanks in advance for all your help and support .",
"web.xml : .. . .. . roleMaintenance.xhtml : .. . .. . error print stack-trace",
"This bug is caused by a disabled partial state saving .",
"If you remove the following entries from web.xml .. . .. . then it should theoretically work .",
"It is somehow forcing a non-transient state while it has to be transient .",
"RichFaces 4.2.0 has previously had such a bug which is in detail explained in this JBoss community thread https : community.jboss.org message 783414 .",
"See also the below relevant extract : .. . .. . So during encoding - all children of UIOutputPanel are set as non-transient even nodes of UIInstructions type .",
"You might want to comment vote it in order to push it .",
"Or just turn back on the partial state saving .",
"Whatever problem you thought to solve with disabling the partial state saving may need to be solved in a different way .",
"Thanks for your valuable suggestion .",
"Actually I did try all the different option like removing PARTIAL STATE SAVING entry in web.xml but didn t have successful result .",
"The problem got resolved when I use weblogic app server version 11gR1 instead of 12c I guess it is something to do with version j2ee jars packed with 12c version ."
]
} | {
"confidence": [
54.163421630859375,
48.173553466796875
],
"content": [
"Question : I am using using myfaces 2.1.10 faces engine along with open faces 3.1 openfaces-3.1.EA1.1198.jar in my web application running on weblogic server 12c . The web application is using facelets template to load header content footer pages .xhtml . In the content page I have placed a input text field along with a search button along with openfaces s datatable . When I enter text to search and then by clicking the search button system returns some data and populates the openfaces data table component that I have placed in the same page but when I am trying to search again I am getting exception as pasted below . I believe this issue is caused by openfaces data table because when I replaced with jsf datatable everything works fine . I have to use openfaces datatable as it suits my requirement with pagination filtering etc . For Clarity I am pasting code-snippets from web.xml and the content page roleMaintenance.xhtml . Thanks in advance for all your help and support . web.xml : .. . .. . roleMaintenance.xhtml : .. . .. . error print stack-trace .. . Answer : This bug is caused by a disabled partial state saving . If you remove the following entries from web.xml .. . .. . then it should theoretically work . This is essentially a bug in OpenFaces . It is somehow forcing a non-transient state while it has to be transient . RichFaces 4.2.0 has previously had such a bug which is in detail explained in this JBoss community thread https : community.jboss.org message 783414 . See also the below relevant extract : .. . .. . So during encoding - all children of UIOutputPanel are set as non-transient even nodes of UIInstructions type . .. . Workaround : .. . .. . .. . public class UIOutputPanelWorkaround extends UIOutputPanel .. . .. . public boolean isKeepTransient .. . Boolean value Boolean getStateHelper .eval Properties.keepTransient false .. . return-value .. . .. . .. . .. . .. . and in faces-config : .. . .. . .. . component .. . component-type org.richfaces.OutputPanel component-type .. . component-class com.example.UIOutputPanelWorkaround component-class .. . component .. . .. . .. . It seems that this bug is already reported to OpenFaces as issue 206 http : requests.openfaces.org browse OF-206 but there doesn t seem to be any progress . You might want to comment vote it in order to push it . Or just turn back on the partial state saving . Whatever problem you thought to solve with disabling the partial state saving may need to be solved in a different way . Comment : Thanks for your valuable suggestion . Actually I did try all the different option like removing PARTIAL STATE SAVING entry in web.xml but didn t have successful result . Comment : The problem got resolved when I use weblogic app server version 11gR1 instead of 12c I guess it is something to do with version j2ee jars packed with 12c version .",
"Question : im working with JSF 2.0 and the OpenFaces o : tabbedPane .. . .. . im having some troubles changing the tabs. . i have an index with four jsf pages includes . like this .. . .. . inside the jsf pages. . i have forms with their h : commandButton like this .. . .. . when its goes to the actionListener on the Bean the first time works fine.. . and changes the o : tabbedPane to the second o : subPanel but when i use the h : commandButton of the second o : subPanel does not work.. . is not reaching the actionListener on the Bean.. . Please help me if you know what im doing wrong.. . Thanks .. . Answer : First note that o : tabbedPane should be placed inside of a form and I suppose that it is inside a form in your case . Second you re mentioning that you have forms with buttons inside of JSF pages . Are these the pages that are included into o : subPanel of your tabbed pane If so then you actually have nested-forms as a result on your page which is not allowed . If this is true then the solution in this case can be as easy as removing the form tags from the included sub-pages . Comment : Hi Dmitry. . thanks i remove all the inside forms like you said. . but the problem persist. . i have a h : commandButton inside of every o : subPanel the first one works.. . but the others doesnt reach the bean.. . just refresh the page.. . is a problem with having multiples submits Comment : Did you consider a possible validation error on those pages Add h : messages somewhere outside of o : tabbedPane to see if there are any errors.. . Comment : Hi. . thanks i used the inmediate true on the commandButton and it works. . I tried before with the nested-forms and nothing.. . thank you very much u know if there is a way to go to the bean with a button without the submit action.. . just the ajax.. . and then move to other panel because i have one form separated on 4 pages.. . and i need to keep that info on the inputs fields while the user go through the four subPanels and when the commandButton goes to the bean and change the subPanel some info is lost. . Thanks Comment : I m not sure about stackoverflow rules this must probably have been another question as it s a different issue.. . Anyway what do you mean by saying to go to the bean .. . using Ajax Should anything be reloaded with Ajax just submitted or something else Anyway it should be possible to use the usual Ajax capabilities like the render execute attributes in o : commandButton or you can use f : ajax o : ajax on you existing h : commandButton to implement both of the mentioned cases.. ."
]
} | [
"yes-answer-long",
"yes-answer-short"
] | jsf | UNK_RELATION |
twitter-button@twitter@83 | twitter-button -- twitter buttons help your visitors share content and connect on @placeholder . | {
"confidence": [
42.83432388305664,
38.95254898071289,
37.86248779296875,
36.354366302490234,
36.354366302490234,
36.354366302490234,
35.564292907714844,
33.612754821777344,
33.60953903198242,
32.94915771484375,
32.36251449584961,
32.33613204956055,
31.961639404296875,
31.957984924316406,
31.160167694091797,
30.867923736572266,
30.867923736572266,
30.867923736572266,
30.867923736572266,
30.58328628540039,
30.454010009765625,
29.91226577758789,
29.91226577758789,
29.91226577758789,
29.91226577758789,
29.232019424438477,
29.005634307861328,
28.66524314880371,
28.596315383911133,
28.49771499633789,
28.49771499633789,
28.101825714111328,
27.649457931518555,
27.170652389526367,
27.170652389526367,
26.974285125732422,
26.899425506591797,
26.2086238861084,
25.479694366455078,
25.46082305908203,
24.539287567138672,
24.21380043029785,
24.21380043029785,
23.963348388671875,
23.86800765991211,
22.719209671020508,
21.879074096679688,
21.879074096679688,
21.321481704711914,
21.115047454833984,
20.434730529785156,
20.240825653076172,
19.953466415405273,
19.617767333984375,
19.43282127380371,
19.405282974243164,
19.338031768798828,
19.338031768798828,
19.066936492919922,
18.821754455566406,
18.366085052490234,
18.121973037719727,
18.10076332092285,
17.731693267822266,
17.695453643798828,
17.693117141723633,
17.49921226501465,
17.363819122314453,
16.930644989013672,
16.810392379760742,
16.79490852355957,
16.79490852355957,
16.79490852355957,
16.596416473388672,
16.596416473388672,
16.581262588500977,
16.29857063293457,
16.080141067504883,
15.971338272094727,
15.954639434814453,
15.863832473754883,
15.832880973815918,
15.579423904418945,
15.412036895751953,
15.383455276489258,
15.38035774230957,
15.38035774230957,
15.38035774230957,
15.072845458984375,
15.061250686645508,
14.990079879760742,
14.990079879760742,
14.990079879760742,
14.990079879760742,
14.990079879760742,
14.953840255737305,
14.843193054199219,
14.843193054199219,
14.843193054199219,
14.838971138000488
],
"content": [
"It looks like you are using the Twitter Share button instead of the Twitter Follow button .",
"I have a website which holds both Facebook and Twitter share buttons .",
"I m currently working on a button like the Facebook like and Twitter buttons .",
"I m trying to use the Twitter Tweet button on a site .",
"Is there a way to integrate the twitter-button without the default a code",
"So the twitter-button gets wrapped inside an iframe .",
"div style overflow : hidden width : 130px float : right a href twitter-follow button a script twitter javascript script div",
"Thanks Gaurav We can add Twitter button .",
"My twitter-button is inside a div which is inside an a tag .",
"Twitter has changed its tweet and follow buttons recently but the problem is that there is no count with tweet button .",
"I m getting some peculiar behavior on my twitter-follow button .",
"if you want to do it yourself here is a reference : Custom Twitter button and Custom Facebook button http : blog.noczone.com p 131 facebook : .. . .. . twitter :",
"I m including the Facebook Like Button Twitter Button and Google+ Button .",
"As it says on the links you provided Twitter no longer supplies a share number .",
"I m trying to use Content-Security-Policy CSP headers for a site that has social media buttons youtube twitter facebook .",
"I am using SocialEngine4 and trying to integrate Twitter Follow Button in it .",
"So due to some conflict twitter-button is not generating properly .",
"I am using following code to generate twitter-button",
"So is there a way to get custom official counter with new twitter tweet button",
"EDIT : Part of the intent of this is to use the Twitter button callback functionality twttr.events.bind so that I can track clicks of the button .",
"I used the Twitter for Websites Twitter Button instructions and went through the related material but I still can t figure out what s going on .",
"Is there a way to modify the Twitter follow button to display the number of followers in a bubble but hide the word followers",
"The issue was a surrounding for the Twitter button that was being placed in-line hence there wasn t a sign of it in the CSS .",
"My aim is to preserve the nice pop-up and defaults that the javascript twitter-button supplies .",
"The problem is that because the twitter-button is an a tag my parent original a tag doesn t work .",
"I want to add a Twitter button for each of these items in the list however I m only able to create a tweet button for the page and not for each item .. . .. . http : twitter.com about resources tweetbutton .. . .. . Any idea how to embed multiple Twitter buttons in one page",
"When I enable blur and adblock plus the twitter-button shows up as a hyper-link worse it shares the URL of the current page which is something I dont want to share .",
"I have a situation where I need to include a Twitter profile widget and a Tweet button on the same page .",
"Specifically my generated twitter code is : .. . .. . In the console of all browsers I get : .. . .. . Received message of type object from http : platform.twitter.com expected a string .. . .. . But chrome and safari still manage to load the Twitter Buttons .",
"But for my requirement I want set of Twitter LinkedIn and Facebook buttons that not meet here .",
"I came across this website and i ve noticed that it has a customized Facebook and Twitter buttons .",
"Official helpful links : .. . .. . Clarification about share counts for the new Tweet button https : twittercommunity.com t clarification-about-share-counts-for-the-new-tweet-button 52868 .. . .. . Twitter Tweet Button https : dev.twitter.com web tweet-button",
"The cut-off Twitter button in IE7 http : i.stack.imgur.com Mz8uS.png .. . .. . Any advice or suggestions of where to go next would be very much appreciated .",
"I m going to add a Twitter Tweet button - http : twitter.com about resources tweetbutton - to some pages on my site .",
"I m trying to add a Twitter button to my page that will populate the tweet with the current quote .",
"Thought I should be able to just copy and paste the code from Twitter .",
"Is there a relatively clean way I can get all of the built-in goodness of the simple javascript version of the twitter-button but defer execution of its rather heavy-duty javascript until the user actually clicks on the button",
"Using ASP.NET 4.5 .. . Inspecting the DOM I see the twitter iframe with display : hidden .. . .. . Any help is greatly appreciated .",
"Follow this tutorial : http : blog.twostepmedia.co.uk dynamic-jquery-twitter-status",
"The Twitter page still replaces the existing browser page and does not include the field values from the anchor tag .",
"I m thinking that I could build an anchor tag like this : .. . .. . and then define a function like : Note : edited original post now sets href : .. . .. . If I make twitter button.gif look exactly like the image that the twitter-specified javascript normally inserts then execution of the twitter-specified javascript will essentially look like a no-op to the user .",
"While this does resolve the error I loose access to the twitter callback functionality click binding and the click event is never fired .",
"Twitter is serving its script via platform.twitter.com widgets.js which translates to the file : protocol locally .",
"I ve also tried the solution from StackOverflow http : stackoverflow.com questions 10084106 tweet-button-not-displayed-properly-in-ie7-but-working-fine-in-mozilla-chrome-a suggesting to use .twitter-follow-button width : 150px important but this also didn t solve the issue .",
"When copying and pasting the following code for a Twitter button into a text file : .. . .. . I get a javascript error saying failed to load resource file : platform.twitter.com widgets.js .. . .. . What could be causing this",
"Currently it works fine for the first quote but the quote doesn t change in the Twitter URL when you click new quote .",
"Twitter have said that they fixed this issue a few months ago here https : dev.twitter.com issues 200 but I m using the latest code from their developers site with no luck .",
"Addendum .. . .. . Having read the comments and taken a proper look at the Twitter code the reason this doesn t work is because the code adds a script-element to the document which will be downloaded and executed after the current JavaScript finishes executing .",
"Does having the share buttons bring in more traffic to warrant their presence",
"Now There are many jquery-plugins can help you to customize your social network buttons .",
"I m trying to create custom social share buttons for my website but I n running into issues that the current page title and url are not being pulled properly to be shared with the social networks .",
"However if they go on the corner they can click the buttons .",
"wrong one http : i.stack.imgur.com rJba3.jpg .. . .. . And the button just behaves like the Google+ button inspecting in Firebug just shows me two Google+ buttons and no trace of any Tweet button .",
"I basically want my follow button to look the same as the tweet button .",
"Similar to my code but this : kimwoodbridge.com how-to-create-your-one-facebook-share-url http : www.kimwoodbridge.com how-to-create-your-one-facebook-share-url",
"One last thing : do you maybe know where I can get a facebook Share button sprite",
"By the way do you have other social media buttons it",
"Basically I have the social buttons on the right corner of the image .",
"Loading buttons after document is ready : .. . .. . This did not help either .",
"Should be anchor instance.href https : twitter.com share -- this doesn t make it work either .",
"Loading buttons after one second delay via JavaScript : .. . .. . This did not help buttons didn t load up properly and they were bugging .",
"For other social buttons you d just have to adjust the different widths heights and border colors to match .",
"Thank you in advance for your help :",
"So I checked if the iframe exists or not and accordingly display hide the Tweet button .",
"Use Javascript in the onclick event to grab the document.title and document.location.href which you then append to the share URL and subsequently set the new URL to .",
"I had the exact same error message tried a bunch of stuff which didn t work and eventually disabled the other share buttons on the page which fixed all my issues .",
"The OP specifies that the buttons are in different table cells .",
"So you have to wrap the button in its own div then hide the overflow of that div and set the width to the exact point where the word disappears and the height precisely to the height of the button you are using .",
"Try using a direct link target for your button like this : just change the URL to wherever you want to point it and the username to whatever username you use .",
"That s the best practice for serving content it will not generate those annoying mixed-content warnings in IE but just plain won t work in local files .",
"There s no additional CSS in-place other than a little padding-left on the LinkedIn button for spacing .",
"Is there anyway I can stop this Tweet button from loading completely when it loads incorrectly",
"When tweet button gets rendered as a hypertext link this iframe does not wrap the div anymore .",
"So I thought a bit about why everyone puts their buttons into an iframe .",
"These buttons use code generated directly from both developers website .",
"What about facebook button",
"You can use the bit.ly api to generate a shortened url and use it with your tweet button .",
"You may have share functionality already in-place that s causing conflicts .",
"SOMETIMES and I have no idea what is the cause when the page loads my Tweet button will just change into a Google+ button .",
"Try putting your like button into reusable iframe and pass the url to like .",
"Thanks for your responses .",
"example of my code looks like : .. . .. . Any help or a point in the right direction is greatly appreciated .",
"If you re using the iframe version of the follow button you can actually just add 4 5 of the styles mentioned here to the iframe style parameter itself skip width because its already there .",
"So your onclick attribute would look like :",
"So hopefully the only thing with which I need help is figuring out how to simulate a click of anchor instance after Twitter s javascript has executed .",
"Here is my code for the buttons : .. . .. . I ve also got the Google+ script at the end of body .",
"Sharing buttons are actually iframes so try enclosing each sharing javascript inside into three divs or table cells .",
"Perhaps they auto convert the returned object to string .. . .. . More details : .. . .. . The buttons are loaded via AJAX .",
"Google Plus documentation says that I should put the script at the head tag but this just slows down the loading of my site as sometimes my site won t load white blank page until it loads the script for the Google Plus button which sometimes takes about 3-4 seconds to connect and load completely .",
"The problem may be due to some other bug in your code .",
"But it is not showing button so user will get login screen onclick of it .",
"I tried code of this button in plan php and it is working fine .",
"I mean multiple button status shots in one single picture",
"The first thing that came to my mind was that it makes it impossible to alter the appearance of the button .",
"If a user clicks a button for a new quote that variable changes and a new quote is displayed .",
"When loaded in Chrome I see both when loaded in IE and Firefox I only see the Facebook Share .",
"I noticed that social media buttons are slowing down the website by quite a lot .",
"Buttons loaded just fine but website load-time was still 1.00 seconds .",
"Most of the major social media buttons offer an asynchronous version of their JavaScript .",
"The code is very simple and you can use any image or text you want which will make it easier to fit the buttons in with your site s design ."
]
} | {
"confidence": [
46.66792678833008,
42.89165115356445,
41.53540802001953,
41.5283088684082,
39.73291015625,
39.39078140258789,
39.30155563354492,
39.251949310302734,
38.216636657714844,
37.70652770996094,
37.281639099121094,
34.801334381103516,
34.34382629394531,
33.71275329589844,
33.397003173828125,
33.31114196777344,
32.38349914550781,
32.30451202392578,
31.791107177734375,
31.661558151245117
],
"content": [
"Question : null .. . Answer : Twitter has changed its tweet and follow buttons recently but the problem is that there is no count with tweet button . So is there a way to get custom official counter with new twitter tweet button Official helpful links : .. . .. . Clarification about share counts for the new Tweet button https : twittercommunity.com t clarification-about-share-counts-for-the-new-tweet-button 52868 .. . .. . Twitter Tweet Button https : dev.twitter.com web tweet-button Comment : As it says on the links you provided Twitter no longer supplies a share number . Sorry .",
"Question : I have a website which holds both Facebook and Twitter share buttons . When loaded in Chrome I see both when loaded in IE and Firefox I only see the Facebook Share . These buttons use code generated directly from both developers website . Specifically my generated twitter code is : .. . .. . In the console of all browsers I get : .. . .. . Received message of type object from http : platform.twitter.com expected a string .. . .. . But chrome and safari still manage to load the Twitter Buttons . Perhaps they auto convert the returned object to string .. . .. . More details : .. . .. . The buttons are loaded via AJAX . I call twttr.widgets.load at the end of every Ajax call in addition to the FB.XFBML.parse . I have removed all plugins addons from browsers and seen no change . Using ASP.NET 4.5 .. . Inspecting the DOM I see the twitter iframe with display : hidden .. . .. . Any help is greatly appreciated . .. . Answer : You may have share functionality already in-place that s causing conflicts . I had the exact same error message tried a bunch of stuff which didn t work and eventually disabled the other share buttons on the page which fixed all my issues .",
"Question : I m trying to use the Twitter Tweet button on a site . It works great in all browsers but in IE 7 it doesn t show the full width . There s no additional CSS in-place other than a little padding-left on the LinkedIn button for spacing . Twitter have said that they fixed this issue a few months ago here https : dev.twitter.com issues 200 but I m using the latest code from their developers site with no luck . I ve also tried the solution from StackOverflow http : stackoverflow.com questions 10084106 tweet-button-not-displayed-properly-in-ie7-but-working-fine-in-mozilla-chrome-a suggesting to use .twitter-follow-button width : 150px important but this also didn t solve the issue . The image below shows how it looks in IE7 with the text incorrectly cut short . The cut-off Twitter button in IE7 http : i.stack.imgur.com Mz8uS.png .. . .. . Any advice or suggestions of where to go next would be very much appreciated . Comment : Can you show us a working demo The problem may be due to some other bug in your code . .. . Answer : It looks like you are using the Twitter Share button instead of the Twitter Follow button . Therefore the used class as suggested by the quoted stackoverflow thread will not work . You should be using :",
"Question : null .. . Answer : My twitter-button is inside a div which is inside an a tag . The problem is that because the twitter-button is an a tag my parent original a tag doesn t work . Is there a way to integrate the twitter-button without the default a code Thanks Comment : Why do you even have to outer a element You can not nest such interactive elements in HTML and for a good reason . Just get rid of it it makes little to no sense to have it there in the first place . Comment : It s because it s also linking the post image . Basically I have the social buttons on the right corner of the image . When users click the image it ll redirect them to somewhere else . However if they go on the corner they can click the buttons . I ve edited my question to make it more understandable . Comment : Well then place them outside of the post link in the source code and position them over it using CSS . Comment : Works like a charm : Thanks",
"Question : I am using SocialEngine4 and trying to integrate Twitter Follow Button in it . But it is not showing button so user will get login screen onclick of it . I checked its script code and found mootool is used . SocialEngine4 also using mootool . So due to some conflict twitter-button is not generating properly . I tried code of this button in plan php and it is working fine . Does anyone have idea about it I am using following code to generate twitter-button .. . Answer : Please go this the Add this https : www.addthis.com login next 2Fdashboard its work beautifully with socialengine . Comment : Thanks Gaurav We can add Twitter button . But for my requirement I want set of Twitter LinkedIn and Facebook buttons that not meet here .",
"Question : I m using Drupal and I have a list of items View with many nodes in one page . I want to add a Twitter button for each of these items in the list however I m only able to create a tweet button for the page and not for each item .. . .. . http : twitter.com about resources tweetbutton .. . .. . Any idea how to embed multiple Twitter buttons in one page .. . Answer : I had this issue when i wanted to tweet dynamic ajax text but could work out how to just tweet specific text or in your case a list item . Follow this tutorial : http : blog.twostepmedia.co.uk dynamic-jquery-twitter-status Comment : @benhowdle89 hey in the demo you passed if I m not wrong they always use the same url for all snippets loaded with ajax . I actually would like to generate a different url for each article of the list otherwise it doesn t work . Right Comment : Absolutely but on this line : window.open twitter.com home status http : twitter.com home status + url + .. . bit.ly h2yqcx http : bit.ly h2yqcx Tweet width 750 height 500 the bit.ly url is the url of my blog post you could jQuery javascript to change this to a variable containing your unique urls Comment : @benhowdle89 Thanks I think I can actually solve it by generating my url and using selector on a specific div inside my page . What about facebook button Comment : Similar to my code but this : kimwoodbridge.com how-to-create-your-one-facebook-share-url http : www.kimwoodbridge.com how-to-create-your-one-facebook-share-url Comment : @benhowdle89 ok cool . One last thing : do you maybe know where I can get a facebook Share button sprite I mean multiple button status shots in one single picture",
"Question : When I enable blur and adblock plus the twitter-button shows up as a hyper-link worse it shares the URL of the current page which is something I dont want to share . Is there anyway I can stop this Tweet button from loading completely when it loads incorrectly What can be a good indicator .. . Answer : So the twitter-button gets wrapped inside an iframe . When tweet button gets rendered as a hypertext link this iframe does not wrap the div anymore . So I checked if the iframe exists or not and accordingly display hide the Tweet button .",
"Question : I came across this website and i ve noticed that it has a customized Facebook and Twitter buttons . http : www.mint.com blog how-to 4-essential-questions-to-ask-at-the-end-of-a-job-interview .. . .. . I would like to know how can i implement in my website .. . Answer : if you want to do it yourself here is a reference : Custom Twitter button and Custom Facebook button http : blog.noczone.com p 131 facebook : .. . .. . twitter :",
"Question : When copying and pasting the following code for a Twitter button into a text file : .. . .. . I get a javascript error saying failed to load resource file : platform.twitter.com widgets.js .. . .. . What could be causing this Thought I should be able to just copy and paste the code from Twitter . .. . Answer : You re trying to load a protocol-less URL in a local file . Twitter is serving its script via platform.twitter.com widgets.js which translates to the file : protocol locally . That s the best practice for serving content it will not generate those annoying mixed-content warnings in IE but just plain won t work in local files . Try updating that line of the script to https : platform.twitter.com widgets.js . That should help you test locally once you re done testing flip it back to the protocol-less structure .",
"Question : Is there a way to modify the Twitter follow button to display the number of followers in a bubble but hide the word followers I basically want my follow button to look the same as the tweet button . The current code looks like this : .. . Answer : I had this same issue and solved it by basically hiding the word followers and creating a fake right edge to the bubble if that makes sense . So you have to wrap the button in its own div then hide the overflow of that div and set the width to the exact point where the word disappears and the height precisely to the height of the button you are using . Here s a code example : .. . .. . This worked for me to create exactly what you are looking for . Hope this helps . Comment : Wow awesome . I already had it in a div with a couple of parameters . Do I just add it to the below By the way do you have other social media buttons it The default border-color might look funky compared to Google Plus Facebook grey borders . div style overflow : hidden width : 130px float : right a href twitter-follow button a script twitter javascript script div Comment : ideally you would put the style declarations in a stylesheet but you could put them inline . For other social buttons you d just have to adjust the different widths heights and border colors to match . Comment : titter-div is awesome Comment : If you re using the iframe version of the follow button you can actually just add 4 5 of the styles mentioned here to the iframe style parameter itself skip width because its already there . This way you need not create a new div wrapper :",
"Question : I m trying to use the Twitter Tweet button on a site . It works great in all browsers but in IE 7 it doesn t show the full width . There s no additional CSS in-place other than a little padding-left on the LinkedIn button for spacing . Twitter have said that they fixed this issue a few months ago here https : dev.twitter.com issues 200 but I m using the latest code from their developers site with no luck . I ve also tried the solution from StackOverflow http : stackoverflow.com questions 10084106 tweet-button-not-displayed-properly-in-ie7-but-working-fine-in-mozilla-chrome-a suggesting to use .twitter-follow-button width : 150px important but this also didn t solve the issue . The image below shows how it looks in IE7 with the text incorrectly cut short . The cut-off Twitter button in IE7 http : i.stack.imgur.com Mz8uS.png .. . .. . Any advice or suggestions of where to go next would be very much appreciated . Comment : Can you show us a working demo The problem may be due to some other bug in your code . .. . Answer : The issue was a surrounding for the Twitter button that was being placed in-line hence there wasn t a sign of it in the CSS . Thanks for your responses .",
"Question : Is there a relatively clean way I can get all of the built-in goodness of the simple javascript version of the twitter-button but defer execution of its rather heavy-duty javascript until the user actually clicks on the button I m thinking that I could build an anchor tag like this : .. . .. . and then define a function like : Note : edited original post now sets href : .. . .. . If I make twitter button.gif look exactly like the image that the twitter-specified javascript normally inserts then execution of the twitter-specified javascript will essentially look like a no-op to the user . That should be pretty easy to do assuming Twitter s image is the same on all platforms . So hopefully the only thing with which I need help is figuring out how to simulate a click of anchor instance after Twitter s javascript has executed . My aim is to preserve the nice pop-up and defaults that the javascript twitter-button supplies . Thank you . .. . Answer : You should be able to use aElement.click to simulate a mouse click on the link triggering any attached events as well as the default behaviour . In Firefox versions prior to 5.0 however the click method may not be implemented for a elements . In this case it may be appropriate to wrap the call with a try-catch statement and trigger a mouse event instead . Addendum .. . .. . Having read the comments and taken a proper look at the Twitter code the reason this doesn t work is because the code adds a script-element to the document which will be downloaded and executed after the current JavaScript finishes executing . The only way to do it would be to detect when this script is loaded and then call anchor instance.click . For example using the script loading code from head.js : .. . .. . The only downside now is that there will be a small delay after clicking the link while the script is fetched and parsed . You may want to change the mouse cursor to a loading icon or something just in case . Or you could abandon the idea altogether and load the script normally . Further reading .. . .. . click - HTML Living Standard http : www.whatwg.org specs web-apps current-work multipage editing.html dom-click .. . click method - MSDN http : msdn.microsoft.com en-us library ie ms536363 28v vs.85 29.aspx .. . HTMLElement.click - MDN https : developer.mozilla.org en-US docs Web API HTMLElement.click Comment : Alas this does not work . If one also adds the statement anchor instance.href https : platform.twitter.com widgets.js to the function defined in this answer then a click does indeed trigger a reaction but there are two problems with the reaction : 1 The reaction is to open a full web page that replaces my site s web page in the browser -- not a pop-up window 2 the new page does not pick up the data-url value from the anchor tag . The tweet dialog has no data in it at all . Comment : Oops . Wrong href in comment above . Should be anchor instance.href https : twitter.com share -- this doesn t make it work either . Comment : @IronPillow take a look at my edit and see if that helps . Comment : Thank you Andy but this didn t solve the problem . The Twitter page still replaces the existing browser page and does not include the field values from the anchor tag . I am going to abandon this approach and use an iframe instead . I very much appreciate the efforts you made .",
"Question : I m currently working on a button like the Facebook like and Twitter buttons . Since it will be a bit more complex involving a tooltip that is shown after a click on the button I cannot place it into an iframe . So I thought a bit about why everyone puts their buttons into an iframe . The first thing that came to my mind was that it makes it impossible to alter the appearance of the button . But are there any other security concerns that matter in this case .. . Answer : I suppose it indeed prevents easy tampering with the appearance but also with the behavior all kinds of Javascript i.e . it allows for easier statistics collection and it s probably an easy way to have it implemented widely . Simply saying please put iframe src http : blabla into your website is a lot easier for users to do and understand than please put script .... . into the head of your code and form input type hidden . . input type submit . . form into the body",
"Question : I came across this website and i ve noticed that it has a customized Facebook and Twitter buttons . http : www.mint.com blog how-to 4-essential-questions-to-ask-at-the-end-of-a-job-interview .. . .. . I would like to know how can i implement in my website .. . Answer : Now There are many jquery-plugins can help you to customize your social network buttons . for example .. . .. . 1 . Sharrre plugin Website : http : sharrre.com .. . 2 . Koottam Social jQuery Plugin http : jobyj.in koottam-jquery-plugin index.html",
"Question : When copying and pasting the following code for a Twitter button into a text file : .. . .. . I get a javascript error saying failed to load resource file : platform.twitter.com widgets.js .. . .. . What could be causing this Thought I should be able to just copy and paste the code from Twitter . .. . Answer : Are you sure you ve entered the code correctly Try using a direct link target for your button like this : just change the URL to wherever you want to point it and the username to whatever username you use . This code is the code from the site :",
"Question : null .. . Answer : I built a very simple random quote generator . A bunch of quotes are stored in an array and one is displayed at any given time due based on a variable that holds the current quote . If a user clicks a button for a new quote that variable changes and a new quote is displayed . I m trying to add a Twitter button to my page that will populate the tweet with the current quote . I used the Twitter for Websites Twitter Button instructions and went through the related material but I still can t figure out what s going on . Currently it works fine for the first quote but the quote doesn t change in the Twitter URL when you click new quote . The main logic is here : .. . .. . And everything else is here : https : jsfiddle.net 37szaqpr",
"Question : When copying and pasting the following code for a Twitter button into a text file : .. . .. . I get a javascript error saying failed to load resource file : platform.twitter.com widgets.js .. . .. . What could be causing this Thought I should be able to just copy and paste the code from Twitter . .. . Answer : Should the src be https : ..... . rather than just .... .",
"Question : I have a situation where I need to include a Twitter profile widget and a Tweet button on the same page . Take the following testing example : .. . .. . I am getting the following error I am guessing because the two widget.js files are conflicting : .. . .. . Does anyone know how to resolve this EDIT : Part of the intent of this is to use the Twitter button callback functionality twttr.events.bind so that I can track clicks of the button . Comment : After further digging and head banging the resolution was found here : stackoverflow.com a 6932354 745964 http : stackoverflow.com a 6932354 745964 This does not solve the original problem of using both of Twitters Api calls on the same page though . I don t feel it s an appropriate answer more of a work around . .. . Answer : Got it working . The problem was that you needed to reference JQuery and use the JQuery syntax to bind events . Comment : While this does resolve the error I loose access to the twitter callback functionality click binding and the click event is never fired . I should have mentioned that this is part of the intent in my original post I will go back and edit .",
"Question : I m creating a simple and fast website and I m trying to optimize the site as much as I can . I noticed that social media buttons are slowing down the website by quite a lot . I m including the Facebook Like Button Twitter Button and Google+ Button . So I ran a few tests : .. . .. . Website without social media buttons loading time 0.24s : .. . .. . enter image description here http : i.stack.imgur.com nv3OA.png .. . .. . Website with social media buttons loading time 1.38s : .. . .. . enter image description here http : i.stack.imgur.com U54dS.png .. . .. . Here is my code : .. . .. . So I tried few things to load these social buttons without them slowing website load-time . Loading buttons after one second delay via JavaScript : .. . .. . This did not help buttons didn t load up properly and they were bugging . Loading buttons after document is ready : .. . .. . This did not help either . Buttons loaded just fine but website load-time was still 1.00 seconds . I m running out of ideas . Any way to load them without slowing down website PS . Used Page load-time https : chrome.google.com webstore detail page-load-time fploionmjgeclbkemipmkogoaohcdbig hl en plugin for chrome in those tests .. . .. . .. . .. . SOLUTION : .. . .. . Thanks to CodeMonkey for his answer I eventually solved this problem by loading social buttons after entire page is loaded . I moved the necessary JavaScript code for social media buttons in a separate file to make my HTML markup little bit cleaner . JS in a seperate file social.js : .. . .. . HTML : .. . .. . So after this load timings were normal again 0.24s : .. . .. . Load timings http : i.stack.imgur.com UVR8O.png Comment : You could simplify it with a simple HTTP GET but it will require manual styling : hanselman.com blog http : www.hanselman.com blog AddSocialSharingLinksToYourBlogWithoutWidgetJavaScript.aspx Comment : is there really any need to getElementsByTagName I don t think so . Try using classes and or id s instead . Comment : You know all those 3 social media sites can use js.async True too .. . Answer : Try putting your like button into reusable iframe and pass the url to like .",
"Question : I m going to add a Twitter Tweet button - http : twitter.com about resources tweetbutton - to some pages on my site . The default url-shortener they use is t.co .. . .. . Is there a way to use bit.ly instead I would then be able to link it to my bit.ly account and use bitly Analyze to evaluate the clicks on my links . Thank you in advance for your help : .. . Answer : You can use the bit.ly api to generate a shortened url and use it with your tweet button ."
]
} | [
"yes-answer-long",
"yes-answer-short"
] | twitter | UNK_RELATION |
flash@s@33 | flash -- for questions on adobe @placeholder cross-platform multimedia runtime used to embed animations video and interactive applications into web pages . | {
"confidence": [
39.9365348815918,
39.37925720214844,
37.777610778808594,
36.636207580566406,
36.62606430053711,
35.00728225708008,
34.88719177246094,
33.475128173828125,
31.8338680267334,
31.83056640625,
31.72829818725586,
30.91085433959961,
30.77311134338379,
30.629499435424805,
30.509750366210938,
30.377761840820312,
30.284099578857422,
30.051145553588867,
29.472270965576172,
29.33426284790039,
29.187707901000977,
29.00425148010254,
28.6727294921875,
28.3985652923584,
28.3985652923584,
28.367080688476562,
28.20285415649414,
28.113750457763672,
28.1076717376709,
28.053754806518555,
27.99256134033203,
27.84572410583496,
27.401382446289062,
27.1500244140625,
27.144758224487305,
26.970155715942383,
26.654937744140625,
26.650142669677734,
26.610918045043945,
26.59292221069336,
26.580326080322266,
26.542203903198242,
26.425567626953125,
26.405797958374023,
26.289548873901367,
26.104934692382812,
26.104934692382812,
26.104934692382812,
26.000986099243164,
25.990169525146484,
25.963146209716797,
25.88933753967285,
25.88933753967285,
25.862728118896484,
25.839691162109375,
25.780029296875,
25.75806427001953,
25.75182342529297,
25.75182342529297,
25.736766815185547,
25.621278762817383,
25.611509323120117,
25.608339309692383,
25.54529571533203,
25.531099319458008,
25.52413558959961,
25.489898681640625,
25.489870071411133,
25.477622985839844,
25.462078094482422,
25.4522647857666,
25.33818244934082,
25.31864356994629,
25.29613494873047,
25.24618911743164,
25.156414031982422,
25.08806610107422,
24.972026824951172,
24.91999053955078,
24.91999053955078,
24.869121551513672,
24.869121551513672,
24.773435592651367,
24.773435592651367,
24.74591827392578,
24.70883560180664,
24.636869430541992,
24.582496643066406,
24.552154541015625,
24.55022621154785,
24.52950096130371,
24.494813919067383,
24.425907135009766,
24.41048240661621,
24.396162033081055,
24.338111877441406,
24.334714889526367,
24.307369232177734,
24.30084991455078
],
"content": [
"Adobe Flex is a collection of technologies released by Adobe Systems for the development and deployment of cross-platform rich Internet applications based on the proprietary Adobe Flash platform .",
"Adobe Flash is a rich-internet-application RIA tool as well as a multimedia platform .",
"So Flash is for internet multimedia applications while Flex is for desktop multimedia applications .",
"Adobe Help : Embed fonts in flash https : helpx.adobe.com flash how-to embed-fonts-in-flash.html video tutorial .",
"But this also allows you to embed interactive content anchors linking to other pages audio video animations etc . .",
"my note : something along the Windows Movie Maker lines but I ve never used it so this statement may be a bit off .. . .. . Adobe Flash formerly Macromedia Flash is a multimedia platform used to add animation video and interactivity to web pages .",
"It is completely based on OSMF and can only be used on the Adobe Flash platform .",
"Remember the era of splash pages and flash animations .",
"Is there a way to play these video in Flash platform",
"Adobe Flash applications on facebook.com .. . .. . For Canvas applications using Adobe Flash wmode opaque is preferred whenever possible .",
"To embed with Adobe Flash CS use native mechanisms :",
"You forgot to mention the Adobe Air which is a platform for running Flash Flex RIA Applications on a desktop .",
"Is it possible to embed a flash video into README.md on GitHub",
"For those animations I am using Adobe Animate formerly Flash .",
"The platform we used was flash catalyst .",
"Both Flash applications and Flex applications compile into bytecode that can be run by the Flash Player or by Adobe AIR .",
"RIAs developed into adobe Flex is the cross-browser and platform compatibility .",
"I m trying to make an interactive quiz using Adobe Flash and AS3 .",
"Or the whole collection of technologies that fall under what Adobe calls the Flash Platform",
"Adobe Flex Builder is Adobe s IDE for developing applications that will run in the Flash plugin .",
"In order to do this for yourself you need to go into Applications Adobe Flash CC .",
"Found my answers here : stackoverflow.com questions 4617138 http : stackoverflow.com questions 4617138 detect-if-flash-is-installed-on-android-and-embed-a-flash-video-in-an-activity and here : stackoverflow.com questions 5243261 http : stackoverflow.com questions 5243261 integrating-embedding-flash-in-android-applications-possible",
"At some point I don t know when Flash started to be used for more interactive applications .",
"Is it possible to use CPython http : www.python.org to develop Adobe Flash based applications",
"On my machine it s Applications Adobe Flash Builder 4.6 sdks .",
"Flash has Adobe Flash which is an interface for creating very complex animations games and apps .",
"Used more in web designing flash features on your web page using action-scripting sketches and animations .",
"-1 : sIFR allows you to embed fonts where the licence restricts you to only embed the font in an Adobe Flash file .",
"Adobe Flash",
"The Flash Platform is Adobe s catch all term for the players Flash Player Adobe AIR and tooling Flash Catalyst Flash Builder Flash Pro Flex Framework .",
"I m used to the Adobe Flash IDE and there you can embed custom names for font families .",
"are flash animations displayed",
"One more questions how to use Adobe Flash player manually",
"Both languages can be used to work with Unity and can also be used to develop cross-platform applications i.e .",
"I m working on an Adobe Flex application that loads lots of Flex Modules and other Flash sub-applications and Flash resources .",
"We provide a web application with a frontend completely developed in Adobe Flash .",
"This is the code I used to embed the video on the web page : .. . .. . How can I do event-tracking on this video-player",
"Adobe AIR incorporates technologies originally developed in Flash Player and enables rich Internet applications on the desktop .",
"or Adobe flash projector debugger",
"The Import Video- Embed feature provided by Flash CS3 etc .",
"Everyone flames Flash but where are the funny web animations then if it was gone",
"Are they just animations or are they full applications",
"Collectively Adobe refers to these as the Flash runtimes .",
"Flash is the IDE used generally to create animations and things that work well on a timeline .",
"Possible duplicate of Actionscript : Stopping sound in Adobe Flash CS4 http : stackoverflow.com questions 8980789 actionscript-stopping-sound-in-adobe-flash-cs4",
"It seems Adobe Flash CS5.5 looks for this string .",
"Adobe AIR runs on the same technology as Flash i.e .",
"For android try using Adobe Flash Builder in CS5.5 .",
"Like embed the songs in a flash file and then play that flash",
"adobe flash-player 11.4... .",
"This question already has an answer here : .. . .. . Cross Browser Flash Detection in Javascript questions 159261 cross-browser-flash-detection-in-javascript 15 answers .. . .. . Is it possible to check the version of the Flash Player installed in a browser using Javascript",
"Chrome : Adobe http : helpx.adobe.com flash kb flash-object-embed-tag-attributes.html main Browser support for Window Mode wmode values claims that it is not supported but amazingly it worked fine and with transparency .",
"Please refer to Adobe Knowledge Base about wmode http : helpx.adobe.com flash kb flash-object-embed-tag-attributes.html main Browser support for Window Mode wmode values fplayer10.1 hardware-acceleration 04.html .",
"How can I embed a adobe flash-player inside a java based desktop application",
"by default it is played by Adobe Media Player and not played by Adobe Flash Player .",
"Other Adobe applications supporting FXG include Fireworks Flash Illustrator Photoshop and Flash Catalyst .",
"Disable Pepper Flash and instead try the latest Adobe Flash plugin as installed from Adobe site .",
"I would like to create animations compatible with Android2.3 using Adobe Flash Pro CS6 .",
".fla is format of Adobe Flash IDE it contains graphics and animations and some code too .",
"My question is if there are any web video players e.g . Adobe Flash Player supporting Scalable Video Coding and if so which ones .",
"But searching the web I got confused with this Flash Flex thing as they say Flash is to make animations and Flex is to really create web apps .",
"I know about Adobe Flash Pro and Adobe Flash Builder Flex Builder SDK which works with .swf .as .",
"Is there a way to embed a web browser or trigger a web browser pointing to a particular local file in a Flash Projector",
"Flash animations on mobile-devices",
"Now you need to find the following folder : .. . .. . Applications Adobe Flash CC Adobe Flash CC.app Contents Common Configuration Players .. . .. . You need to duplicate the FlashPlayer10 3.xml as FlashPlayer10 2.xml and replace the relevant details in the file .",
"Adobe Flash Builder 4.6 crashes on startups .",
"There is no ultimate way to embed Flash .",
"Im using Adobe Flash CS6 .",
"Other questions : .. . .. . One more questions how to use Adobe Flash player manually",
"According to Adobe : As of Flash Player 11.3 this capability is supported in both AIR applications and browser-based applications .",
"There s the Flash CS3 http : www.adobe.com products flash product that Adobe sells .",
"It s inside the app package : .. . .. . Applications Adobe Flash CC 2015 Adobe Flash CC 2015.app Contents Common Configuration ActionScript 3.0 libs .. . .. . To navigate to this folder right-click on the Adobe Flash CC 2015.app and choose Show Package Contents .",
"Applications Adobe Flash CS3 Configuration Component Source ActionScript 3.0 User Interface .",
"We liked that Flash was cross-platform in that the code would function the same way in every browser which was not the case with JavaScript-based DHTML applications .",
"VMWare Adobe Flash Optmizer .",
"C : Program Files Adobe Adobe Flash CS4 Players or al ong those lines for your os flash ide version",
"It embed the hole Flash Player into the resulting .exe file .",
"Is it then possible to use Flash Builder to profile OpenLaszlo SWFx runtime applications accordingly",
"I can t buy the actual Adobe Flash .",
"you need to install adobe flash-player .. .",
"Inside the Adobe Flash works fine .",
"It s the default function of Adobe Flash .",
"I m currently using Adobe Flash CS4 .",
"This doesn t seem to work with Adobe CC Flash Pro .",
"flash-player was embed into page .",
"If you re using the stock Adobe FLVPlayback component in Flash you probably are if you used File Import Import Video.. . there s an option in the Properties panel under Component Parameters .",
"I am trying to make a form in adobe flash cs3 .",
"Is it possible to use Adove Flash if it is installed to play a flash video on Android",
"NME improves on Haxe s cross-platform support to provide a single API for Windows Mac Linux Android iOS webOS Flash and HTML5 applications without fuss .",
"Most of my applications are a combination of VB.NET and Adobe Flash such that the VB application is displaying a Flash file inside the main form using Adobe s COM object .",
"Navigate to Applications Adobe Flash Builder 4.6 sdks .. . .. . Copy the existing 4.6.0 sdk folder and rename it as you wish .",
"Flash is quite old stuff for building simple animations think of it like a way to create graphic elements and animations .",
"See the adobe docs on cross-scripting http : www.adobe.com livedocs flash 9.0 main 00000354.html for details .",
"The only way I know of to seek instantly every time with Flash is to convert the video into an FLV and embed it into the timeline of a MovieClip in the Flash IDE .",
"Do you know how to run flash animations in flash-builder without creating flash project",
"A cross-domain policy file is an XML document that grants a web client such as Adobe Flash Player Adobe Reader etc . permission to handle data across multiple-domains . .",
"The Flash Player is just one piece of the Flash Platform .",
"possible duplicate question : stackoverflow.com questions 2078379 fast-forwarding-flash-video http : stackoverflow.com questions 2078379 fast-forwarding-flash-video",
"At the very least I d like to see the runtime-error output as it is shown when I m working with Adobe Flash ."
]
} | {
"confidence": [
53.912784576416016,
52.25833511352539,
51.054283142089844,
50.208961486816406,
49.97321701049805,
49.66132736206055,
49.28250503540039,
49.13139724731445,
48.93635177612305,
48.77101516723633,
48.30573654174805,
47.61357498168945,
47.59882736206055,
47.06264877319336,
46.50260925292969,
46.11294174194336,
46.108726501464844,
46.001564025878906,
45.82272720336914,
44.83756637573242
],
"content": [
"Question : A topic of debate that s seen a resurgence since the unveiling of the iPad is the issue of Flash versus HTML5 . There are those that suggest that HTML5 will one day supplant replace Adobe Flash . I do not develop software that runs in a browser so my limited understanding is : .. . .. . HTML is a pure-text markup language that is delivered over HTTP to a client browser . The client browser interprets the markup and renders with varying degrees of success the page according to an standard specification . Adobe Flash is a propriety framework for working with audio video sound and raster vector-graphics . It requires special authoring tools a compiler perhaps and a custom player that s available as a plug-in to most common browsers . Could someone please explain to this C C++ developer how it is possible from a technical coding point-of-view that a text-based markup language HTML5 could be considered a replacement to a multimedia framework Flash Please no opinionated arguments - just technical facts . Comment : Note that HTML hasn t been as static as you described it for quite some time already . While HTML5 takes it to a new level normal HTML already could do some interesting effects with CSS+JS . Comment : They ve been saying this for years and trying to standardize the standards of the web for more years yet nothing seems to change . Flash and Silverlight solves the cross-browser incompatibility problem better than anything else so far . Not quite cross-platform but a standard cross-browser platform is certainly better than no standard platform at all . Meanwhile the number of competing browsers seems to be increasing making standardization via vendor dev discipline hah even less likely to work . A back-compatible software virtual-machine approach like Flash or Silverlight just works . Comment : Instead of trying to eliminate plugins it s a shame the HTML5 people aren t working on standardizing and improving plugin support . If the browser could be transformed into a platform delivery system instead of a content delivery system we could have many competing and to users entirely transparent and auto-installing web platforms such as Flash Silverlight JavaFX and of course various legacy web HTML renderers . This would solve all cross-browser and backwards-compatibility issues immediately by putting the platform under the control of a single platform developer . Oh well. . Comment : The term html5 usually refers to webapps with HTML5 JavaScript APIs which include databases networking messaging storage as well as Graphics animations and effects with CSS and DOM manipulation . Not to speak of technologies like canvas svg sprites picture transformations gui controls and so on . .. . Answer : how it is possible from a technical coding point-of-view that a text-based markup language HTML5 could be considered a replacement to a multimedia framework Flash HTML5 is the new hot name for web technologies stack not just a markup language . It has a programming language JavaScript like Flash does a set of APIs significantly expanding as part of the efforts commonly labeled as HTML5 ways to draw graphics SVG canvas play audio and video audio video . Unlike Flash the HTML5 applications are processed by the browser not by a proprietary browser-plugin which is good - at least for browser vendors see the relevant piece of this blog post http : daringfireball.net 2010 01 apple adobe flash - thanks Jotham . For example it makes possible for a browser vendor to fix issues and not wait for Adobe -- IIRC Apple cited Flash as being 1 reason for crashes among all crashes on the Mac . edited to remove open standards are better claims which I am too lazy to back up Comment : By way of adding some additional detail to the claim regarding Flash crashes on Mac OS . daringfireball.net 2010 01 apple adobe flash http : daringfireball.net 2010 01 apple adobe flash Comment : are processed by the browser not by a proprietary browser-plugin which is good . how so we have so many browsers that currently seem to render a page differently . At least with Flash there is one consistent environment to develop for . Open standards are also better than a single monopolist implementation . this depends . Open standards work great in theory but is terrible for advancing technology . Just look at OpenGL vs DirectX . Comment : @Allan The reason why browsers used to render pages differently was because the W3C was largely open to interpretation and in particular Microsoft was lousy at following the spec . Open standards are far better than a single implementation - but only when they are clearly defined . Comment : @Antony - you missed my point . I am certainly not saying OpenGL is a redundant technology far from it . My point is proprietary technology more often than not is the driving force for advancing technology . DirectX pulled away from OpenGL and it has been playing catch up ever since . tomshardware.com reviews opengl-directx 2019.html http : www.tomshardware.com reviews opengl-directx 2019.html If it was not for flash the past 10+ years we would have been without streaming video youtube and complex interactive media . Whats more is flash will continually keep improving . Without proprietary technologies we will advance at a snails pace . Comment : @Luka Ramishvili - true but it was not like OpenGL did not work on Windows . The hugely popular Quake 2 engine came out with either software or opengl rendering . Only later around the time of Half-Life did they then add DirectX support . I think it was just that Microsoft had money to throw at developing DirectX at a faster rate",
"Question : A topic of debate that s seen a resurgence since the unveiling of the iPad is the issue of Flash versus HTML5 . There are those that suggest that HTML5 will one day supplant replace Adobe Flash . I do not develop software that runs in a browser so my limited understanding is : .. . .. . HTML is a pure-text markup language that is delivered over HTTP to a client browser . The client browser interprets the markup and renders with varying degrees of success the page according to an standard specification . Adobe Flash is a propriety framework for working with audio video sound and raster vector-graphics . It requires special authoring tools a compiler perhaps and a custom player that s available as a plug-in to most common browsers . Could someone please explain to this C C++ developer how it is possible from a technical coding point-of-view that a text-based markup language HTML5 could be considered a replacement to a multimedia framework Flash Please no opinionated arguments - just technical facts . Comment : Note that HTML hasn t been as static as you described it for quite some time already . While HTML5 takes it to a new level normal HTML already could do some interesting effects with CSS+JS . Comment : They ve been saying this for years and trying to standardize the standards of the web for more years yet nothing seems to change . Flash and Silverlight solves the cross-browser incompatibility problem better than anything else so far . Not quite cross-platform but a standard cross-browser platform is certainly better than no standard platform at all . Meanwhile the number of competing browsers seems to be increasing making standardization via vendor dev discipline hah even less likely to work . A back-compatible software virtual-machine approach like Flash or Silverlight just works . Comment : Instead of trying to eliminate plugins it s a shame the HTML5 people aren t working on standardizing and improving plugin support . If the browser could be transformed into a platform delivery system instead of a content delivery system we could have many competing and to users entirely transparent and auto-installing web platforms such as Flash Silverlight JavaFX and of course various legacy web HTML renderers . This would solve all cross-browser and backwards-compatibility issues immediately by putting the platform under the control of a single platform developer . Oh well. . Comment : The term html5 usually refers to webapps with HTML5 JavaScript APIs which include databases networking messaging storage as well as Graphics animations and effects with CSS and DOM manipulation . Not to speak of technologies like canvas svg sprites picture transformations gui controls and so on . .. . Answer : It is not so much that HTML5 can replace Flash by matching it feature by feature . It is more that the HTML5 stack including JavaScript and CSS can be used to build the same sort of rich web-applications for which Flash was the only viable option before . Because HTML holds the promise to also address some of the shortcoming of the Flash platform there is a potential that it can replace Flash in this space in the future . This discussion is very much centered around the technology that is used to render the application at the users end . It does not address the ease with which authors are actually able to create the content which will be delivered to their users . You already mentioned that Flash is associated with a set of commercial tools which are specifically built and marketed by Adobe to address the need of rich-content authors . Such solutions for HTML5 are not that much adopted yet . For developers who view authoring mostly as coding this is not a big concern and they will not have a hard time getting traction with HTML5 and many already do . For those authors that don t have a developer coding background this may be another story and for them the viability of HTML5 will greatly depend upon the availability of integrated authoring tools . Maybe the Adobe Flash tools will output to HTML5 instead of SWF in a few years.. .",
"Question : A topic of debate that s seen a resurgence since the unveiling of the iPad is the issue of Flash versus HTML5 . There are those that suggest that HTML5 will one day supplant replace Adobe Flash . I do not develop software that runs in a browser so my limited understanding is : .. . .. . HTML is a pure-text markup language that is delivered over HTTP to a client browser . The client browser interprets the markup and renders with varying degrees of success the page according to an standard specification . Adobe Flash is a propriety framework for working with audio video sound and raster vector-graphics . It requires special authoring tools a compiler perhaps and a custom player that s available as a plug-in to most common browsers . Could someone please explain to this C C++ developer how it is possible from a technical coding point-of-view that a text-based markup language HTML5 could be considered a replacement to a multimedia framework Flash Please no opinionated arguments - just technical facts . Comment : Note that HTML hasn t been as static as you described it for quite some time already . While HTML5 takes it to a new level normal HTML already could do some interesting effects with CSS+JS . Comment : They ve been saying this for years and trying to standardize the standards of the web for more years yet nothing seems to change . Flash and Silverlight solves the cross-browser incompatibility problem better than anything else so far . Not quite cross-platform but a standard cross-browser platform is certainly better than no standard platform at all . Meanwhile the number of competing browsers seems to be increasing making standardization via vendor dev discipline hah even less likely to work . A back-compatible software virtual-machine approach like Flash or Silverlight just works . Comment : Instead of trying to eliminate plugins it s a shame the HTML5 people aren t working on standardizing and improving plugin support . If the browser could be transformed into a platform delivery system instead of a content delivery system we could have many competing and to users entirely transparent and auto-installing web platforms such as Flash Silverlight JavaFX and of course various legacy web HTML renderers . This would solve all cross-browser and backwards-compatibility issues immediately by putting the platform under the control of a single platform developer . Oh well. . Comment : The term html5 usually refers to webapps with HTML5 JavaScript APIs which include databases networking messaging storage as well as Graphics animations and effects with CSS and DOM manipulation . Not to speak of technologies like canvas svg sprites picture transformations gui controls and so on . .. . Answer : The modern browser that support HTML5 standard http : en.wikipedia.org wiki HTML5 Differences from HTML 4.01.2FXHTML 1.x have capability to playing supported media file inside the browser without needing 3rd party plugins . You can try this by yourself . Latest version of Safary and Google Chrome Firefox 3.6 too can play video tag in a HTML5 page directly . YouTube now support HTML5 http : youtube-global.blogspot.com 2010 01 introducing-youtube-html5-supported.html . That s why iPad will be able to play video if the video site is using HTML5 without Adobe Flash plugins using Safari browser that fully comply the HTML5 standard . Comment : Apple s choice of allowed media convetions processing on its devices has nothing to do with HTML5 . Comment : HTML5 is the technology that enable browser play video directly instead of need plugins to do that . HTML4 and XHTML1.1 don t have this feature yet that s why Adobe Flash is needed for video playing in the browser . HTML5 make the plugins needs gone .",
"Question : A topic of debate that s seen a resurgence since the unveiling of the iPad is the issue of Flash versus HTML5 . There are those that suggest that HTML5 will one day supplant replace Adobe Flash . I do not develop software that runs in a browser so my limited understanding is : .. . .. . HTML is a pure-text markup language that is delivered over HTTP to a client browser . The client browser interprets the markup and renders with varying degrees of success the page according to an standard specification . Adobe Flash is a propriety framework for working with audio video sound and raster vector-graphics . It requires special authoring tools a compiler perhaps and a custom player that s available as a plug-in to most common browsers . Could someone please explain to this C C++ developer how it is possible from a technical coding point-of-view that a text-based markup language HTML5 could be considered a replacement to a multimedia framework Flash Please no opinionated arguments - just technical facts . Comment : Note that HTML hasn t been as static as you described it for quite some time already . While HTML5 takes it to a new level normal HTML already could do some interesting effects with CSS+JS . Comment : They ve been saying this for years and trying to standardize the standards of the web for more years yet nothing seems to change . Flash and Silverlight solves the cross-browser incompatibility problem better than anything else so far . Not quite cross-platform but a standard cross-browser platform is certainly better than no standard platform at all . Meanwhile the number of competing browsers seems to be increasing making standardization via vendor dev discipline hah even less likely to work . A back-compatible software virtual-machine approach like Flash or Silverlight just works . Comment : Instead of trying to eliminate plugins it s a shame the HTML5 people aren t working on standardizing and improving plugin support . If the browser could be transformed into a platform delivery system instead of a content delivery system we could have many competing and to users entirely transparent and auto-installing web platforms such as Flash Silverlight JavaFX and of course various legacy web HTML renderers . This would solve all cross-browser and backwards-compatibility issues immediately by putting the platform under the control of a single platform developer . Oh well. . Comment : The term html5 usually refers to webapps with HTML5 JavaScript APIs which include databases networking messaging storage as well as Graphics animations and effects with CSS and DOM manipulation . Not to speak of technologies like canvas svg sprites picture transformations gui controls and so on . .. . Answer : Simply put many are hoping that HTML5 features paired with javascript can provide a better cheaper more efficient graphical web experience than flash . Consider that many sophisticated websites like gmail google-maps and youtube can run without any flash using HTML and javascript . Improvements being made to javascript and HTML allow for websites to develop even richer graphical animation features without resorting to paying Adobe . Comment : the flash SDK while closed-source is free and so is the player . Comment : @Typeonerror true . but many pay for adobe s crazy development studio . Comment : Flash SDK is OPEN SOURCE and has been for a while . Not sure why so many people believe otherwise . Comment : @Doug for the record all three sophisticated websites that you mention use Flash today . The street view in Google Maps requires Flash and gmail makes use of Flash for the chat functions Youtube probably wouldn t exist if Flash did not exist . Comment : Adobe Flash Platform : adobe.com devnet flex videotraining jcr content bodycontent1 http : www.adobe.com devnet flex videotraining jcr content bodycontent1 modal.content.html here is a video about what is free and what is open-source",
"Question : A topic of debate that s seen a resurgence since the unveiling of the iPad is the issue of Flash versus HTML5 . There are those that suggest that HTML5 will one day supplant replace Adobe Flash . I do not develop software that runs in a browser so my limited understanding is : .. . .. . HTML is a pure-text markup language that is delivered over HTTP to a client browser . The client browser interprets the markup and renders with varying degrees of success the page according to an standard specification . Adobe Flash is a propriety framework for working with audio video sound and raster vector-graphics . It requires special authoring tools a compiler perhaps and a custom player that s available as a plug-in to most common browsers . Could someone please explain to this C C++ developer how it is possible from a technical coding point-of-view that a text-based markup language HTML5 could be considered a replacement to a multimedia framework Flash Please no opinionated arguments - just technical facts . Comment : Note that HTML hasn t been as static as you described it for quite some time already . While HTML5 takes it to a new level normal HTML already could do some interesting effects with CSS+JS . Comment : They ve been saying this for years and trying to standardize the standards of the web for more years yet nothing seems to change . Flash and Silverlight solves the cross-browser incompatibility problem better than anything else so far . Not quite cross-platform but a standard cross-browser platform is certainly better than no standard platform at all . Meanwhile the number of competing browsers seems to be increasing making standardization via vendor dev discipline hah even less likely to work . A back-compatible software virtual-machine approach like Flash or Silverlight just works . Comment : Instead of trying to eliminate plugins it s a shame the HTML5 people aren t working on standardizing and improving plugin support . If the browser could be transformed into a platform delivery system instead of a content delivery system we could have many competing and to users entirely transparent and auto-installing web platforms such as Flash Silverlight JavaFX and of course various legacy web HTML renderers . This would solve all cross-browser and backwards-compatibility issues immediately by putting the platform under the control of a single platform developer . Oh well. . Comment : The term html5 usually refers to webapps with HTML5 JavaScript APIs which include databases networking messaging storage as well as Graphics animations and effects with CSS and DOM manipulation . Not to speak of technologies like canvas svg sprites picture transformations gui controls and so on . .. . Answer : Flash operates with a timeline stage and scenes and allows loading of movies one on top of another . It also has onion skinning tweening and other vector art tools that make cartoon animations easy via frame by frame animation . You do all of this and then control it will a very small easy amount of code action script . HTML JAVA CSS isn t anywhere as near an artistic experience for the author and there s much more coding involved to achieve similar results - flash is much quicker and easier and user friendly . I doubt Flash will be going anywhere in a hurry . Comment : With canvas and video you can do all sorts of things in HTML5 JS too . Could you do this in flash craftymind.com factory html5video CanvasVideo.html http : www.craftymind.com factory html5video CanvasVideo.html Comment : Cute video : P It s a pretty awesome example of the power of HTML5 . There are some things you can do in Flash but also things you can t do in HTML5 .",
"Question : A topic of debate that s seen a resurgence since the unveiling of the iPad is the issue of Flash versus HTML5 . There are those that suggest that HTML5 will one day supplant replace Adobe Flash . I do not develop software that runs in a browser so my limited understanding is : .. . .. . HTML is a pure-text markup language that is delivered over HTTP to a client browser . The client browser interprets the markup and renders with varying degrees of success the page according to an standard specification . Adobe Flash is a propriety framework for working with audio video sound and raster vector-graphics . It requires special authoring tools a compiler perhaps and a custom player that s available as a plug-in to most common browsers . Could someone please explain to this C C++ developer how it is possible from a technical coding point-of-view that a text-based markup language HTML5 could be considered a replacement to a multimedia framework Flash Please no opinionated arguments - just technical facts . Comment : Note that HTML hasn t been as static as you described it for quite some time already . While HTML5 takes it to a new level normal HTML already could do some interesting effects with CSS+JS . Comment : They ve been saying this for years and trying to standardize the standards of the web for more years yet nothing seems to change . Flash and Silverlight solves the cross-browser incompatibility problem better than anything else so far . Not quite cross-platform but a standard cross-browser platform is certainly better than no standard platform at all . Meanwhile the number of competing browsers seems to be increasing making standardization via vendor dev discipline hah even less likely to work . A back-compatible software virtual-machine approach like Flash or Silverlight just works . Comment : Instead of trying to eliminate plugins it s a shame the HTML5 people aren t working on standardizing and improving plugin support . If the browser could be transformed into a platform delivery system instead of a content delivery system we could have many competing and to users entirely transparent and auto-installing web platforms such as Flash Silverlight JavaFX and of course various legacy web HTML renderers . This would solve all cross-browser and backwards-compatibility issues immediately by putting the platform under the control of a single platform developer . Oh well. . Comment : The term html5 usually refers to webapps with HTML5 JavaScript APIs which include databases networking messaging storage as well as Graphics animations and effects with CSS and DOM manipulation . Not to speak of technologies like canvas svg sprites picture transformations gui controls and so on . .. . Answer : A scathingly obvious and wider angle point that is rarely made is that the vaguely referenced flash term actually encompasses the entire Flash Platform and that includes the Flash IDE . Animators and other artistic types who use the technology to create complex cartoons and animations depend almost entirely on the IDE for their work . It is just simply not possible without it . End of story . It s not just the technology at the language specification level that matters It s also about the supporting technologies in this case IDEs I say supporting but the Flash IDE is very much a technology integrated with the rest of the Flash Platform . If someone builds an HTML5 IDE that has features that rival the Flash IDE that s great but I m surprised the point is so rarely made . Artists are as much part of the debate as programmers and it s unreasonable to say it is not their business . So to answer your question directly : HTML5 would be considered a totally reasonable alternative - or even replacement - to a multimedia framework such as Flash if and only if a proper IDE is built for it thus elevating it to a multimedia framework also . It is just not realistic to make an argument without taking into account IDEs . If the question is specifically Can HTML5 in it s completed state without an IDE be an alternative to Flash for applications apart from manually animated complex animations then the answer would most likely be yes and we d all go home . Comment : HTML5 does not need an IDE .",
"Question : A topic of debate that s seen a resurgence since the unveiling of the iPad is the issue of Flash versus HTML5 . There are those that suggest that HTML5 will one day supplant replace Adobe Flash . I do not develop software that runs in a browser so my limited understanding is : .. . .. . HTML is a pure-text markup language that is delivered over HTTP to a client browser . The client browser interprets the markup and renders with varying degrees of success the page according to an standard specification . Adobe Flash is a propriety framework for working with audio video sound and raster vector-graphics . It requires special authoring tools a compiler perhaps and a custom player that s available as a plug-in to most common browsers . Could someone please explain to this C C++ developer how it is possible from a technical coding point-of-view that a text-based markup language HTML5 could be considered a replacement to a multimedia framework Flash Please no opinionated arguments - just technical facts . Comment : Note that HTML hasn t been as static as you described it for quite some time already . While HTML5 takes it to a new level normal HTML already could do some interesting effects with CSS+JS . Comment : They ve been saying this for years and trying to standardize the standards of the web for more years yet nothing seems to change . Flash and Silverlight solves the cross-browser incompatibility problem better than anything else so far . Not quite cross-platform but a standard cross-browser platform is certainly better than no standard platform at all . Meanwhile the number of competing browsers seems to be increasing making standardization via vendor dev discipline hah even less likely to work . A back-compatible software virtual-machine approach like Flash or Silverlight just works . Comment : Instead of trying to eliminate plugins it s a shame the HTML5 people aren t working on standardizing and improving plugin support . If the browser could be transformed into a platform delivery system instead of a content delivery system we could have many competing and to users entirely transparent and auto-installing web platforms such as Flash Silverlight JavaFX and of course various legacy web HTML renderers . This would solve all cross-browser and backwards-compatibility issues immediately by putting the platform under the control of a single platform developer . Oh well. . Comment : The term html5 usually refers to webapps with HTML5 JavaScript APIs which include databases networking messaging storage as well as Graphics animations and effects with CSS and DOM manipulation . Not to speak of technologies like canvas svg sprites picture transformations gui controls and so on . .. . Answer : It is possible the text-based markup language HTML5 could replace a multimedia framework Flash . The solution is simple just move the framework into the browser and become an open standard . Not only multimedia framework the browser can include lot of other stuffs which belong to the operating-system now . It is possible eventually browser will be the OS user mode . Current OS will be limited to the kernel-mode mostly deal with hardwares .",
"Question : null .. . Answer : I have seen many web based training content which are animated using Adobe Flash . I now have to create a similar content swf file for a company s employees . Can anyone please suggest which software can I use for the same . I was thinking if it can be done using Adobe Flash Professional but I m not sure . Comment : Well what animation software have you used before Can it not output videos then on your site you simply use Javascript to control the playback of animations per click . Are these training content meant to be interactive if so then Flash could be a solution too . If not interactive then any animation software you know with video output is fine",
"Question : A topic of debate that s seen a resurgence since the unveiling of the iPad is the issue of Flash versus HTML5 . There are those that suggest that HTML5 will one day supplant replace Adobe Flash . I do not develop software that runs in a browser so my limited understanding is : .. . .. . HTML is a pure-text markup language that is delivered over HTTP to a client browser . The client browser interprets the markup and renders with varying degrees of success the page according to an standard specification . Adobe Flash is a propriety framework for working with audio video sound and raster vector-graphics . It requires special authoring tools a compiler perhaps and a custom player that s available as a plug-in to most common browsers . Could someone please explain to this C C++ developer how it is possible from a technical coding point-of-view that a text-based markup language HTML5 could be considered a replacement to a multimedia framework Flash Please no opinionated arguments - just technical facts . Comment : Note that HTML hasn t been as static as you described it for quite some time already . While HTML5 takes it to a new level normal HTML already could do some interesting effects with CSS+JS . Comment : They ve been saying this for years and trying to standardize the standards of the web for more years yet nothing seems to change . Flash and Silverlight solves the cross-browser incompatibility problem better than anything else so far . Not quite cross-platform but a standard cross-browser platform is certainly better than no standard platform at all . Meanwhile the number of competing browsers seems to be increasing making standardization via vendor dev discipline hah even less likely to work . A back-compatible software virtual-machine approach like Flash or Silverlight just works . Comment : Instead of trying to eliminate plugins it s a shame the HTML5 people aren t working on standardizing and improving plugin support . If the browser could be transformed into a platform delivery system instead of a content delivery system we could have many competing and to users entirely transparent and auto-installing web platforms such as Flash Silverlight JavaFX and of course various legacy web HTML renderers . This would solve all cross-browser and backwards-compatibility issues immediately by putting the platform under the control of a single platform developer . Oh well. . Comment : The term html5 usually refers to webapps with HTML5 JavaScript APIs which include databases networking messaging storage as well as Graphics animations and effects with CSS and DOM manipulation . Not to speak of technologies like canvas svg sprites picture transformations gui controls and so on . .. . Answer : I doubt it s meant as a replacement for everything Flash is able to encompass . However if you look around the web nowadays you ll see that Flash is in widespread use for delivering video or audio content in the browser . Something that s included in HTML 5 albeit crippled by now since they couldn t agree on any standard codecs . Surely all those nice Flash games and ads won t go away just because of HTML 5 and HTML 5 won t be able to replace them . But it aims for being able to replace uses that actually can deliver content . For vector-graphics there is also SVG which might get some special treatment . Whether this will really be the death of Flash for video remains to be seen . The HTML 5 video codec issues might be sorted out sooner or later . However Flash will quite likely remain the medium of choice where content deliverers will want greater control over what will be delivered DRM and similar techniques c .",
"Question : A topic of debate that s seen a resurgence since the unveiling of the iPad is the issue of Flash versus HTML5 . There are those that suggest that HTML5 will one day supplant replace Adobe Flash . I do not develop software that runs in a browser so my limited understanding is : .. . .. . HTML is a pure-text markup language that is delivered over HTTP to a client browser . The client browser interprets the markup and renders with varying degrees of success the page according to an standard specification . Adobe Flash is a propriety framework for working with audio video sound and raster vector-graphics . It requires special authoring tools a compiler perhaps and a custom player that s available as a plug-in to most common browsers . Could someone please explain to this C C++ developer how it is possible from a technical coding point-of-view that a text-based markup language HTML5 could be considered a replacement to a multimedia framework Flash Please no opinionated arguments - just technical facts . Comment : Note that HTML hasn t been as static as you described it for quite some time already . While HTML5 takes it to a new level normal HTML already could do some interesting effects with CSS+JS . Comment : They ve been saying this for years and trying to standardize the standards of the web for more years yet nothing seems to change . Flash and Silverlight solves the cross-browser incompatibility problem better than anything else so far . Not quite cross-platform but a standard cross-browser platform is certainly better than no standard platform at all . Meanwhile the number of competing browsers seems to be increasing making standardization via vendor dev discipline hah even less likely to work . A back-compatible software virtual-machine approach like Flash or Silverlight just works . Comment : Instead of trying to eliminate plugins it s a shame the HTML5 people aren t working on standardizing and improving plugin support . If the browser could be transformed into a platform delivery system instead of a content delivery system we could have many competing and to users entirely transparent and auto-installing web platforms such as Flash Silverlight JavaFX and of course various legacy web HTML renderers . This would solve all cross-browser and backwards-compatibility issues immediately by putting the platform under the control of a single platform developer . Oh well. . Comment : The term html5 usually refers to webapps with HTML5 JavaScript APIs which include databases networking messaging storage as well as Graphics animations and effects with CSS and DOM manipulation . Not to speak of technologies like canvas svg sprites picture transformations gui controls and so on . .. . Answer : Interesting topic . I echo the sentiment of most posters here that while HTML 5 makes great leaps in basic multimedia presentation it won t be able to replace Flash . All the online gaming sites are a good example . Flash is can run on most browsers except on certain mobile-devices . On that note I believe battery drain was the original reason why Steve Jobs did not want to support Flash on the iPhone and iPad . This might bite Apple no pun down the road . Android 2.2 will have flash support but it not clear if all the hardware manufactures will support it -they ll have be confident in their batteries . Also it looks like Flash 10+ will be a sure thing on Blackberry devices going forward including BB phones the upcoming BB Playbook tablet btw this toy has some killer specs - can t wait to get my hands on it when it comes out next year . I am willing to bet that Flash will continue to be big in Web Dev even after HTML 5 support becomes universal .",
"Question : A topic of debate that s seen a resurgence since the unveiling of the iPad is the issue of Flash versus HTML5 . There are those that suggest that HTML5 will one day supplant replace Adobe Flash . I do not develop software that runs in a browser so my limited understanding is : .. . .. . HTML is a pure-text markup language that is delivered over HTTP to a client browser . The client browser interprets the markup and renders with varying degrees of success the page according to an standard specification . Adobe Flash is a propriety framework for working with audio video sound and raster vector-graphics . It requires special authoring tools a compiler perhaps and a custom player that s available as a plug-in to most common browsers . Could someone please explain to this C C++ developer how it is possible from a technical coding point-of-view that a text-based markup language HTML5 could be considered a replacement to a multimedia framework Flash Please no opinionated arguments - just technical facts . Comment : Note that HTML hasn t been as static as you described it for quite some time already . While HTML5 takes it to a new level normal HTML already could do some interesting effects with CSS+JS . Comment : They ve been saying this for years and trying to standardize the standards of the web for more years yet nothing seems to change . Flash and Silverlight solves the cross-browser incompatibility problem better than anything else so far . Not quite cross-platform but a standard cross-browser platform is certainly better than no standard platform at all . Meanwhile the number of competing browsers seems to be increasing making standardization via vendor dev discipline hah even less likely to work . A back-compatible software virtual-machine approach like Flash or Silverlight just works . Comment : Instead of trying to eliminate plugins it s a shame the HTML5 people aren t working on standardizing and improving plugin support . If the browser could be transformed into a platform delivery system instead of a content delivery system we could have many competing and to users entirely transparent and auto-installing web platforms such as Flash Silverlight JavaFX and of course various legacy web HTML renderers . This would solve all cross-browser and backwards-compatibility issues immediately by putting the platform under the control of a single platform developer . Oh well. . Comment : The term html5 usually refers to webapps with HTML5 JavaScript APIs which include databases networking messaging storage as well as Graphics animations and effects with CSS and DOM manipulation . Not to speak of technologies like canvas svg sprites picture transformations gui controls and so on . .. . Answer : It is not simply HTML5 but when browser adoption of it is complete . For instance the presence of the HTML5 video tag means nothing without a browser provided video-player to actually present the video At which point the hope is Flash Video will no longer be needed . Same goes for the audio tag . Additionally HTML5 s canvas element combined with JS allows for far more advanced graphics inside a browser than could be achieved before .",
"Question : A topic of debate that s seen a resurgence since the unveiling of the iPad is the issue of Flash versus HTML5 . There are those that suggest that HTML5 will one day supplant replace Adobe Flash . I do not develop software that runs in a browser so my limited understanding is : .. . .. . HTML is a pure-text markup language that is delivered over HTTP to a client browser . The client browser interprets the markup and renders with varying degrees of success the page according to an standard specification . Adobe Flash is a propriety framework for working with audio video sound and raster vector-graphics . It requires special authoring tools a compiler perhaps and a custom player that s available as a plug-in to most common browsers . Could someone please explain to this C C++ developer how it is possible from a technical coding point-of-view that a text-based markup language HTML5 could be considered a replacement to a multimedia framework Flash Please no opinionated arguments - just technical facts . Comment : Note that HTML hasn t been as static as you described it for quite some time already . While HTML5 takes it to a new level normal HTML already could do some interesting effects with CSS+JS . Comment : They ve been saying this for years and trying to standardize the standards of the web for more years yet nothing seems to change . Flash and Silverlight solves the cross-browser incompatibility problem better than anything else so far . Not quite cross-platform but a standard cross-browser platform is certainly better than no standard platform at all . Meanwhile the number of competing browsers seems to be increasing making standardization via vendor dev discipline hah even less likely to work . A back-compatible software virtual-machine approach like Flash or Silverlight just works . Comment : Instead of trying to eliminate plugins it s a shame the HTML5 people aren t working on standardizing and improving plugin support . If the browser could be transformed into a platform delivery system instead of a content delivery system we could have many competing and to users entirely transparent and auto-installing web platforms such as Flash Silverlight JavaFX and of course various legacy web HTML renderers . This would solve all cross-browser and backwards-compatibility issues immediately by putting the platform under the control of a single platform developer . Oh well. . Comment : The term html5 usually refers to webapps with HTML5 JavaScript APIs which include databases networking messaging storage as well as Graphics animations and effects with CSS and DOM manipulation . Not to speak of technologies like canvas svg sprites picture transformations gui controls and so on . .. . Answer : I sure hope that HTML5 can deliver the goods and maybe not replace flash entirely but at least when it comes to video . Although flash video is small in size it does takes up way too much processing . Go to youtube without flashblock enabled and then open task manager . Now you can see how the processes for firefox suddenly leaps off the page whenever you visit a flash driven site like youtube . My advice get Flashblock .",
"Question : A topic of debate that s seen a resurgence since the unveiling of the iPad is the issue of Flash versus HTML5 . There are those that suggest that HTML5 will one day supplant replace Adobe Flash . I do not develop software that runs in a browser so my limited understanding is : .. . .. . HTML is a pure-text markup language that is delivered over HTTP to a client browser . The client browser interprets the markup and renders with varying degrees of success the page according to an standard specification . Adobe Flash is a propriety framework for working with audio video sound and raster vector-graphics . It requires special authoring tools a compiler perhaps and a custom player that s available as a plug-in to most common browsers . Could someone please explain to this C C++ developer how it is possible from a technical coding point-of-view that a text-based markup language HTML5 could be considered a replacement to a multimedia framework Flash Please no opinionated arguments - just technical facts . Comment : Note that HTML hasn t been as static as you described it for quite some time already . While HTML5 takes it to a new level normal HTML already could do some interesting effects with CSS+JS . Comment : They ve been saying this for years and trying to standardize the standards of the web for more years yet nothing seems to change . Flash and Silverlight solves the cross-browser incompatibility problem better than anything else so far . Not quite cross-platform but a standard cross-browser platform is certainly better than no standard platform at all . Meanwhile the number of competing browsers seems to be increasing making standardization via vendor dev discipline hah even less likely to work . A back-compatible software virtual-machine approach like Flash or Silverlight just works . Comment : Instead of trying to eliminate plugins it s a shame the HTML5 people aren t working on standardizing and improving plugin support . If the browser could be transformed into a platform delivery system instead of a content delivery system we could have many competing and to users entirely transparent and auto-installing web platforms such as Flash Silverlight JavaFX and of course various legacy web HTML renderers . This would solve all cross-browser and backwards-compatibility issues immediately by putting the platform under the control of a single platform developer . Oh well. . Comment : The term html5 usually refers to webapps with HTML5 JavaScript APIs which include databases networking messaging storage as well as Graphics animations and effects with CSS and DOM manipulation . Not to speak of technologies like canvas svg sprites picture transformations gui controls and so on . .. . Answer : HTML5 is indeed far away from replacing Flash or Silverlight UI technologies . And the problem is not only that HTML5 is limited in amount of required in an app UI components but also that it doesn t allow create custom ones in such a way that they would integrate into runtime seamlessly . Take a look at Ample SDK - JavaScript UI Framework http : www.amplesdk.com it s architecture largely inherit from what you will find in Flex Silverlight or Gecko . One of the UI technologies it enables cross-browser is XUL styleable in CSS and programmable in JavaScript with XUL DOM or jQuery APIs . You can also create your own UI technology on top of the framework .",
"Question : A topic of debate that s seen a resurgence since the unveiling of the iPad is the issue of Flash versus HTML5 . There are those that suggest that HTML5 will one day supplant replace Adobe Flash . I do not develop software that runs in a browser so my limited understanding is : .. . .. . HTML is a pure-text markup language that is delivered over HTTP to a client browser . The client browser interprets the markup and renders with varying degrees of success the page according to an standard specification . Adobe Flash is a propriety framework for working with audio video sound and raster vector-graphics . It requires special authoring tools a compiler perhaps and a custom player that s available as a plug-in to most common browsers . Could someone please explain to this C C++ developer how it is possible from a technical coding point-of-view that a text-based markup language HTML5 could be considered a replacement to a multimedia framework Flash Please no opinionated arguments - just technical facts . Comment : Note that HTML hasn t been as static as you described it for quite some time already . While HTML5 takes it to a new level normal HTML already could do some interesting effects with CSS+JS . Comment : They ve been saying this for years and trying to standardize the standards of the web for more years yet nothing seems to change . Flash and Silverlight solves the cross-browser incompatibility problem better than anything else so far . Not quite cross-platform but a standard cross-browser platform is certainly better than no standard platform at all . Meanwhile the number of competing browsers seems to be increasing making standardization via vendor dev discipline hah even less likely to work . A back-compatible software virtual-machine approach like Flash or Silverlight just works . Comment : Instead of trying to eliminate plugins it s a shame the HTML5 people aren t working on standardizing and improving plugin support . If the browser could be transformed into a platform delivery system instead of a content delivery system we could have many competing and to users entirely transparent and auto-installing web platforms such as Flash Silverlight JavaFX and of course various legacy web HTML renderers . This would solve all cross-browser and backwards-compatibility issues immediately by putting the platform under the control of a single platform developer . Oh well. . Comment : The term html5 usually refers to webapps with HTML5 JavaScript APIs which include databases networking messaging storage as well as Graphics animations and effects with CSS and DOM manipulation . Not to speak of technologies like canvas svg sprites picture transformations gui controls and so on . .. . Answer : I first heard the comment of HTML replacing Flash from Steve Jobs . He hates Flash perhaps because it crashes on his Mac computers I m not sure . I think he s out of touch . The proof is his ridiculous product the iPad . The point is HOW GOOD IS IT FOR DEVELOPERS Answer : not as good as Flash . Yet . Why do I say this with my limited experience It s all that try.. . catch compatibility code you need in Javascript to work in all the browsers . WHAT A LOAD OF RUBBISH . ActionScript Flash is ONE piece of code app for ALL browsers . The other thing Flash has is graphical and non-graphical development software tools to streamline the process . So THE SHORT ANSWER IS THAT ADOBE WON T LET HTML5 replace flash at least for the short term . But it can compete with Flash if people make enough development tools for it particularly WYSIWYG graphical tools like if Google develop an easy to use WYSIWYG editor for making GWT apps . And that s a big IF .",
"Question : A topic of debate that s seen a resurgence since the unveiling of the iPad is the issue of Flash versus HTML5 . There are those that suggest that HTML5 will one day supplant replace Adobe Flash . I do not develop software that runs in a browser so my limited understanding is : .. . .. . HTML is a pure-text markup language that is delivered over HTTP to a client browser . The client browser interprets the markup and renders with varying degrees of success the page according to an standard specification . Adobe Flash is a propriety framework for working with audio video sound and raster vector-graphics . It requires special authoring tools a compiler perhaps and a custom player that s available as a plug-in to most common browsers . Could someone please explain to this C C++ developer how it is possible from a technical coding point-of-view that a text-based markup language HTML5 could be considered a replacement to a multimedia framework Flash Please no opinionated arguments - just technical facts . Comment : Note that HTML hasn t been as static as you described it for quite some time already . While HTML5 takes it to a new level normal HTML already could do some interesting effects with CSS+JS . Comment : They ve been saying this for years and trying to standardize the standards of the web for more years yet nothing seems to change . Flash and Silverlight solves the cross-browser incompatibility problem better than anything else so far . Not quite cross-platform but a standard cross-browser platform is certainly better than no standard platform at all . Meanwhile the number of competing browsers seems to be increasing making standardization via vendor dev discipline hah even less likely to work . A back-compatible software virtual-machine approach like Flash or Silverlight just works . Comment : Instead of trying to eliminate plugins it s a shame the HTML5 people aren t working on standardizing and improving plugin support . If the browser could be transformed into a platform delivery system instead of a content delivery system we could have many competing and to users entirely transparent and auto-installing web platforms such as Flash Silverlight JavaFX and of course various legacy web HTML renderers . This would solve all cross-browser and backwards-compatibility issues immediately by putting the platform under the control of a single platform developer . Oh well. . Comment : The term html5 usually refers to webapps with HTML5 JavaScript APIs which include databases networking messaging storage as well as Graphics animations and effects with CSS and DOM manipulation . Not to speak of technologies like canvas svg sprites picture transformations gui controls and so on . .. . Answer : There s much more to Flash than Audio Video . Recently Flex has been very popular because of it s rich programming model and ability to develop high performance user interfaces . if HTML 5 or anything has to become popular first of all the in-built JavaScript engine has to be more efficient . Flex Flash these days are popular because of robust ActionScript engine .",
"Question : A topic of debate that s seen a resurgence since the unveiling of the iPad is the issue of Flash versus HTML5 . There are those that suggest that HTML5 will one day supplant replace Adobe Flash . I do not develop software that runs in a browser so my limited understanding is : .. . .. . HTML is a pure-text markup language that is delivered over HTTP to a client browser . The client browser interprets the markup and renders with varying degrees of success the page according to an standard specification . Adobe Flash is a propriety framework for working with audio video sound and raster vector-graphics . It requires special authoring tools a compiler perhaps and a custom player that s available as a plug-in to most common browsers . Could someone please explain to this C C++ developer how it is possible from a technical coding point-of-view that a text-based markup language HTML5 could be considered a replacement to a multimedia framework Flash Please no opinionated arguments - just technical facts . Comment : Note that HTML hasn t been as static as you described it for quite some time already . While HTML5 takes it to a new level normal HTML already could do some interesting effects with CSS+JS . Comment : They ve been saying this for years and trying to standardize the standards of the web for more years yet nothing seems to change . Flash and Silverlight solves the cross-browser incompatibility problem better than anything else so far . Not quite cross-platform but a standard cross-browser platform is certainly better than no standard platform at all . Meanwhile the number of competing browsers seems to be increasing making standardization via vendor dev discipline hah even less likely to work . A back-compatible software virtual-machine approach like Flash or Silverlight just works . Comment : Instead of trying to eliminate plugins it s a shame the HTML5 people aren t working on standardizing and improving plugin support . If the browser could be transformed into a platform delivery system instead of a content delivery system we could have many competing and to users entirely transparent and auto-installing web platforms such as Flash Silverlight JavaFX and of course various legacy web HTML renderers . This would solve all cross-browser and backwards-compatibility issues immediately by putting the platform under the control of a single platform developer . Oh well. . Comment : The term html5 usually refers to webapps with HTML5 JavaScript APIs which include databases networking messaging storage as well as Graphics animations and effects with CSS and DOM manipulation . Not to speak of technologies like canvas svg sprites picture transformations gui controls and so on . .. . Answer : I think that HTML5 will replace most of the flash flex which will probably continue as another branch because canvas is cool . New libraries will come . But as long as JS is in a fact singlethreaded it wont be so fast especially with games assuming adobe won t give up .",
"Question : A topic of debate that s seen a resurgence since the unveiling of the iPad is the issue of Flash versus HTML5 . There are those that suggest that HTML5 will one day supplant replace Adobe Flash . I do not develop software that runs in a browser so my limited understanding is : .. . .. . HTML is a pure-text markup language that is delivered over HTTP to a client browser . The client browser interprets the markup and renders with varying degrees of success the page according to an standard specification . Adobe Flash is a propriety framework for working with audio video sound and raster vector-graphics . It requires special authoring tools a compiler perhaps and a custom player that s available as a plug-in to most common browsers . Could someone please explain to this C C++ developer how it is possible from a technical coding point-of-view that a text-based markup language HTML5 could be considered a replacement to a multimedia framework Flash Please no opinionated arguments - just technical facts . Comment : Note that HTML hasn t been as static as you described it for quite some time already . While HTML5 takes it to a new level normal HTML already could do some interesting effects with CSS+JS . Comment : They ve been saying this for years and trying to standardize the standards of the web for more years yet nothing seems to change . Flash and Silverlight solves the cross-browser incompatibility problem better than anything else so far . Not quite cross-platform but a standard cross-browser platform is certainly better than no standard platform at all . Meanwhile the number of competing browsers seems to be increasing making standardization via vendor dev discipline hah even less likely to work . A back-compatible software virtual-machine approach like Flash or Silverlight just works . Comment : Instead of trying to eliminate plugins it s a shame the HTML5 people aren t working on standardizing and improving plugin support . If the browser could be transformed into a platform delivery system instead of a content delivery system we could have many competing and to users entirely transparent and auto-installing web platforms such as Flash Silverlight JavaFX and of course various legacy web HTML renderers . This would solve all cross-browser and backwards-compatibility issues immediately by putting the platform under the control of a single platform developer . Oh well. . Comment : The term html5 usually refers to webapps with HTML5 JavaScript APIs which include databases networking messaging storage as well as Graphics animations and effects with CSS and DOM manipulation . Not to speak of technologies like canvas svg sprites picture transformations gui controls and so on . .. . Answer : Web developers still care for a browser like IE6 which is really old so you can be sure that Flash and similar technologies will be around for a long-long time.. . Comment : Web developers curse IE and especially IE6 . They only work on it because they have to not because they want to . Comment : This doesn t invalidate dacay s point Rob . Comment : @Rob If you are running an internet business you have to consider different browsers and devices . Most biz people still uses IE6 and also you cant tell your boss This is just for browsers other than IE . IE 6 was an example to indicate that Flash is not going anywhere. . Comment : You said Web developers still care for .. . IE6 . I m stating that web developers despise IE6 . Whether they must develop for it because there are still a significant number of users is a different story . I m sure all developers would be thrilled if IE6 went away today . Comment : ahh ok . sorry for my english i didnt mean care for a positive caring :",
"Question : A topic of debate that s seen a resurgence since the unveiling of the iPad is the issue of Flash versus HTML5 . There are those that suggest that HTML5 will one day supplant replace Adobe Flash . I do not develop software that runs in a browser so my limited understanding is : .. . .. . HTML is a pure-text markup language that is delivered over HTTP to a client browser . The client browser interprets the markup and renders with varying degrees of success the page according to an standard specification . Adobe Flash is a propriety framework for working with audio video sound and raster vector-graphics . It requires special authoring tools a compiler perhaps and a custom player that s available as a plug-in to most common browsers . Could someone please explain to this C C++ developer how it is possible from a technical coding point-of-view that a text-based markup language HTML5 could be considered a replacement to a multimedia framework Flash Please no opinionated arguments - just technical facts . Comment : Note that HTML hasn t been as static as you described it for quite some time already . While HTML5 takes it to a new level normal HTML already could do some interesting effects with CSS+JS . Comment : They ve been saying this for years and trying to standardize the standards of the web for more years yet nothing seems to change . Flash and Silverlight solves the cross-browser incompatibility problem better than anything else so far . Not quite cross-platform but a standard cross-browser platform is certainly better than no standard platform at all . Meanwhile the number of competing browsers seems to be increasing making standardization via vendor dev discipline hah even less likely to work . A back-compatible software virtual-machine approach like Flash or Silverlight just works . Comment : Instead of trying to eliminate plugins it s a shame the HTML5 people aren t working on standardizing and improving plugin support . If the browser could be transformed into a platform delivery system instead of a content delivery system we could have many competing and to users entirely transparent and auto-installing web platforms such as Flash Silverlight JavaFX and of course various legacy web HTML renderers . This would solve all cross-browser and backwards-compatibility issues immediately by putting the platform under the control of a single platform developer . Oh well. . Comment : The term html5 usually refers to webapps with HTML5 JavaScript APIs which include databases networking messaging storage as well as Graphics animations and effects with CSS and DOM manipulation . Not to speak of technologies like canvas svg sprites picture transformations gui controls and so on . .. . Answer : We are currently developing an LCMS once of the areas is a fully WYSIWYG authoring tool for the development of SCORM and AICC compliant training materials that contain animation video audio multiple types of assessments with interaction . The tool looks close to how a power point looks allowing the user to easily drag-and-drop learning objects to the slide with pictures resize images move them overlap text add the tests etc . This workspace is done currently in Flex and has great performance not even Google Docs Presentations comes close to the flexibility and performance of this application . I wonder if an application of that scale can be developed with HTML5 without a huge amount of resources . We are a small company with small group of developers .",
"Question : A topic of debate that s seen a resurgence since the unveiling of the iPad is the issue of Flash versus HTML5 . There are those that suggest that HTML5 will one day supplant replace Adobe Flash . I do not develop software that runs in a browser so my limited understanding is : .. . .. . HTML is a pure-text markup language that is delivered over HTTP to a client browser . The client browser interprets the markup and renders with varying degrees of success the page according to an standard specification . Adobe Flash is a propriety framework for working with audio video sound and raster vector-graphics . It requires special authoring tools a compiler perhaps and a custom player that s available as a plug-in to most common browsers . Could someone please explain to this C C++ developer how it is possible from a technical coding point-of-view that a text-based markup language HTML5 could be considered a replacement to a multimedia framework Flash Please no opinionated arguments - just technical facts . Comment : Note that HTML hasn t been as static as you described it for quite some time already . While HTML5 takes it to a new level normal HTML already could do some interesting effects with CSS+JS . Comment : They ve been saying this for years and trying to standardize the standards of the web for more years yet nothing seems to change . Flash and Silverlight solves the cross-browser incompatibility problem better than anything else so far . Not quite cross-platform but a standard cross-browser platform is certainly better than no standard platform at all . Meanwhile the number of competing browsers seems to be increasing making standardization via vendor dev discipline hah even less likely to work . A back-compatible software virtual-machine approach like Flash or Silverlight just works . Comment : Instead of trying to eliminate plugins it s a shame the HTML5 people aren t working on standardizing and improving plugin support . If the browser could be transformed into a platform delivery system instead of a content delivery system we could have many competing and to users entirely transparent and auto-installing web platforms such as Flash Silverlight JavaFX and of course various legacy web HTML renderers . This would solve all cross-browser and backwards-compatibility issues immediately by putting the platform under the control of a single platform developer . Oh well. . Comment : The term html5 usually refers to webapps with HTML5 JavaScript APIs which include databases networking messaging storage as well as Graphics animations and effects with CSS and DOM manipulation . Not to speak of technologies like canvas svg sprites picture transformations gui controls and so on . .. . Answer : Together with javascripts for tracking GUI events and scripting of the new HTML 5 elements you get a lot of what Flash offers . HTML 5 has a number of new elements . One of them is called Canvas . With it you can draw anything you want on screen within its bounds . You use javascript to draw on it and you can catch any mouseclicks and similar with javascript too . If you are used to GUI toolkits on the desktop like Tk GTK you can liken these new elements to some of the widgets of those GUI toolkits . Take a look at thejit http : thejit.org demos to see an example of graphs in HTML 5",
"Question : A topic of debate that s seen a resurgence since the unveiling of the iPad is the issue of Flash versus HTML5 . There are those that suggest that HTML5 will one day supplant replace Adobe Flash . I do not develop software that runs in a browser so my limited understanding is : .. . .. . HTML is a pure-text markup language that is delivered over HTTP to a client browser . The client browser interprets the markup and renders with varying degrees of success the page according to an standard specification . Adobe Flash is a propriety framework for working with audio video sound and raster vector-graphics . It requires special authoring tools a compiler perhaps and a custom player that s available as a plug-in to most common browsers . Could someone please explain to this C C++ developer how it is possible from a technical coding point-of-view that a text-based markup language HTML5 could be considered a replacement to a multimedia framework Flash Please no opinionated arguments - just technical facts . Comment : Note that HTML hasn t been as static as you described it for quite some time already . While HTML5 takes it to a new level normal HTML already could do some interesting effects with CSS+JS . Comment : They ve been saying this for years and trying to standardize the standards of the web for more years yet nothing seems to change . Flash and Silverlight solves the cross-browser incompatibility problem better than anything else so far . Not quite cross-platform but a standard cross-browser platform is certainly better than no standard platform at all . Meanwhile the number of competing browsers seems to be increasing making standardization via vendor dev discipline hah even less likely to work . A back-compatible software virtual-machine approach like Flash or Silverlight just works . Comment : Instead of trying to eliminate plugins it s a shame the HTML5 people aren t working on standardizing and improving plugin support . If the browser could be transformed into a platform delivery system instead of a content delivery system we could have many competing and to users entirely transparent and auto-installing web platforms such as Flash Silverlight JavaFX and of course various legacy web HTML renderers . This would solve all cross-browser and backwards-compatibility issues immediately by putting the platform under the control of a single platform developer . Oh well. . Comment : The term html5 usually refers to webapps with HTML5 JavaScript APIs which include databases networking messaging storage as well as Graphics animations and effects with CSS and DOM manipulation . Not to speak of technologies like canvas svg sprites picture transformations gui controls and so on . .. . Answer : Well to get an impression of the capabilities of HTML5 canvas + JavaScript you may want to take a look at this http : www.nihilogic.dk labs wolf which is an implementation of Wolfenstein 3D http : www.nihilogic.dk labs wolf purely done in HTML5 without using any Flash note that you need a canvas-enabled browser such as Firefox to see this working ."
]
} | [
"yes-answer-long",
"yes-answer-short"
] | s | UNK_RELATION |
kamianri@web@101 | kamianri -- a scope engine based clean powerful customizable and sophisticated paginator for modern @placeholder app frameworks and orms . | {
"confidence": [],
"content": []
} | {
"confidence": [],
"content": []
} | [
"yes-answer-long",
"yes-answer-short"
] | web | UNK_RELATION |
azure-zulu@java@115 | azure-zulu -- zulu for windows azure is officially provided by ms azure build of the community-driven open-source @placeholder implementation known as openjdk made by azul systems for windows-server on the windows azure platform . | {
"confidence": [
79.71360778808594,
66.60448455810547,
65.69442749023438,
63.04768371582031,
62.770973205566406,
62.07282257080078,
58.280189514160156,
55.07942199707031,
53.206085205078125,
51.802024841308594,
51.08629608154297,
50.85553741455078,
45.03643035888672,
45.03643035888672,
41.79364776611328,
41.65903091430664,
40.39471435546875,
39.298973083496094,
38.36540222167969,
37.644309997558594,
37.425636291503906,
31.691247940063477,
31.398963928222656,
30.6251163482666,
25.51547622680664,
25.05022621154785,
22.097972869873047,
18.542936325073242,
18.542936325073242,
16.669599533081055,
16.669599533081055,
16.669599533081055,
16.669599533081055,
16.669599533081055,
16.669599533081055,
16.669599533081055,
16.669599533081055,
16.669599533081055,
16.669599533081055,
16.669599533081055,
16.669599533081055,
16.669599533081055,
16.669599533081055,
16.669599533081055
],
"content": [
"These statements are common for Zulu on Azure Zulu on Docker Zulu from the Azul download sites web and the Azul yum AptGet repo and any other place you obtained Zulu .",
"I just downloaded Zulu jdk zulu1.7.0 25-7.0.0.0 into my Azure Windows 2012 VM and tried to run the Memory Monitor example from the samples directory .",
"I have Zulu 7.1.0.0 installed on latest MS Windows 2012r2 .",
"azulsystems website says to use azure azul as tag but that tag does not exist so i used azure as the closest thing .",
"Zulu source snapshots reflect the fetch from the OpenJDK codeline that fed the particular Zulu build .",
"For making an Azul Zulu source request look in the root of your Zulu installation for the readme.txt file .",
"Finally there is no public Zulu source repository because the source is fetched from OpenJDK .",
"Windows Server 2012 R2 is supported in recent release based on 7u45 see http : www.azulsystems.com products zulu downloads",
"Sometimes Eclipse EE hangs on Windows Server 2008 2012 if Azul s Zulu is being used as JDK .",
"One can also create a VM in Azure with this OS .",
"Does Zulu support this OS",
"Azul Zulu up to version 7.1 required headless mode to be disabled in order to run UI applications .",
"Zulu is built with headless mode being on by default .",
"The current release of Eclipse is unaware of Zulu at the time of writing .",
"Please indicate which Zulu version s you require .",
"The next few lines of that file contain a version and a product ID for the Zulu build you are using .",
"You may send a request to azul underscore openjdk at azulsystems dot com for a source snapshot bundle .",
": .. . .. . Starting from Zulu 7.2 headful mode is enabled by default so the -Djava.awt.headless false argument is no longer needed .",
"http : www.azulsystems.com products zulu mentions the code is released on GPL + classpath exception but I didn t see any pointers to where the source code is available",
"Recently Microsoft has released the GA version of Windows Server 2012 R2 .",
"Starting from Zulu 7.2 headful mode is enabled by default so the -Djava.awt.headless false argument is no longer needed .",
"For a period of three years from the date of your receipt of this software Azul will provide upon request a complete machine readable copy of the source code for such portions based on OpenJDK on a medium customarily used for software interchange for a charge no more than the cost of physically performing source distribution .",
"Is it built from a branch in the public openjdk source tree or somewhere else",
"The OpenJDK project source repos are therefore the proper place to navigate study review and contribute source fixes and changes .",
"It contains this paragraph : .. . .. . Certain portions of this software are based on source code from OpenJDK http : openjdk.java.net and licensed under the GNU General Public License version 2 GPLv2 with the Classpath Exception http : openjdk.java.net legal gplv2+ce.html .",
"You include those in your email so we can provide to you the source snapshot corresponding to that particular build image .",
"I can run terminal and server apps but executing jconsole produces no result : no UI shown no error messages .",
"How can this be solved",
"E.g .",
"I got the following exception .",
"Any workarounds",
"However headfull mode may be enabled by adding the following flag : -Djava.awt.headless false .",
"This particular example can be started this way :",
".. . Please email azul openjdk@azulsystems.com for further information .",
"As far as the choice of medium customarily used for software interchange over time we have used FTP and Dropbox though recently started using WeTransfer to fulfill most requests .",
"In your email request you can ask for any medium you prefer .",
"They are not forks of the master branches .",
"Matt Schuetze",
"A download link will be emailed to you .",
"Is this still the case",
"Is this documented somewhere",
"Yet it works fine with Oracle JDK .",
"Eclipse uses internal check for JVM vendor and adjusts memory settings accordingly .",
"JVM user may set memory adjustment manually by adding next setting to eclipse.ini"
]
} | {
"confidence": [
122.72042083740234,
114.94908905029297,
100.69436645507812,
91.2302017211914,
87.03919982910156,
62.15540313720703
],
"content": [
"Question : http : www.azulsystems.com products zulu mentions the code is released on GPL + classpath exception but I didn t see any pointers to where the source code is available Is it built from a branch in the public openjdk source tree or somewhere else Comment : azulsystems website says to use azure azul as tag but that tag does not exist so i used azure as the closest thing . .. . Answer : For making an Azul Zulu source request look in the root of your Zulu installation for the readme.txt file . It contains this paragraph : .. . .. . Certain portions of this software are based on source code from OpenJDK http : openjdk.java.net and licensed under the GNU General Public License version 2 GPLv2 with the Classpath Exception http : openjdk.java.net legal gplv2+ce.html . For a period of three years from the date of your receipt of this software Azul will provide upon request a complete machine readable copy of the source code for such portions based on OpenJDK on a medium customarily used for software interchange for a charge no more than the cost of physically performing source distribution . .. . Please email azul openjdk@azulsystems.com for further information . The next few lines of that file contain a version and a product ID for the Zulu build you are using . You include those in your email so we can provide to you the source snapshot corresponding to that particular build image . As far as the choice of medium customarily used for software interchange over time we have used FTP and Dropbox though recently started using WeTransfer to fulfill most requests . In your email request you can ask for any medium you prefer . Finally there is no public Zulu source repository because the source is fetched from OpenJDK . The OpenJDK project source repos are therefore the proper place to navigate study review and contribute source fixes and changes . Zulu source snapshots reflect the fetch from the OpenJDK codeline that fed the particular Zulu build . They are not forks of the master branches . These statements are common for Zulu on Azure Zulu on Docker Zulu from the Azul download sites web and the Azul yum AptGet repo and any other place you obtained Zulu . Matt Schuetze",
"Question : http : www.azulsystems.com products zulu mentions the code is released on GPL + classpath exception but I didn t see any pointers to where the source code is available Is it built from a branch in the public openjdk source tree or somewhere else Comment : azulsystems website says to use azure azul as tag but that tag does not exist so i used azure as the closest thing . .. . Answer : You may send a request to azul underscore openjdk at azulsystems dot com for a source snapshot bundle . Please indicate which Zulu version s you require . A download link will be emailed to you . Comment : Is this still the case Is this documented somewhere",
"Question : Recently Microsoft has released the GA version of Windows Server 2012 R2 . One can also create a VM in Azure with this OS . Does Zulu support this OS .. . Answer : Windows Server 2012 R2 is supported in recent release based on 7u45 see http : www.azulsystems.com products zulu downloads",
"Question : I just downloaded Zulu jdk zulu1.7.0 25-7.0.0.0 into my Azure Windows 2012 VM and tried to run the Memory Monitor example from the samples directory . I got the following exception . Any workarounds .. . Answer : Zulu is built with headless mode being on by default . However headfull mode may be enabled by adding the following flag : -Djava.awt.headless false . This particular example can be started this way : Comment : Starting from Zulu 7.2 headful mode is enabled by default so the -Djava.awt.headless false argument is no longer needed .",
"Question : I have Zulu 7.1.0.0 installed on latest MS Windows 2012r2 . I can run terminal and server apps but executing jconsole produces no result : no UI shown no error messages . How can this be solved .. . Answer : Azul Zulu up to version 7.1 required headless mode to be disabled in order to run UI applications . E.g . : .. . .. . Starting from Zulu 7.2 headful mode is enabled by default so the -Djava.awt.headless false argument is no longer needed .",
"Question : Sometimes Eclipse EE hangs on Windows Server 2008 2012 if Azul s Zulu is being used as JDK . Yet it works fine with Oracle JDK . .. . Answer : Eclipse uses internal check for JVM vendor and adjusts memory settings accordingly . The current release of Eclipse is unaware of Zulu at the time of writing . JVM user may set memory adjustment manually by adding next setting to eclipse.ini"
]
} | [
"yes-answer-long",
"yes-answer-short"
] | java | UNK_RELATION |
icontact@provider@69 | icontact -- icontact corporation is an international online service @placeholder of email marketing and social media marketing . | {
"confidence": [
55.83275604248047,
52.33772277832031,
51.47703170776367,
48.145626068115234,
48.145626068115234,
46.670597076416016,
46.670597076416016,
44.999427795410156,
43.54765319824219,
43.08122634887695,
41.182579040527344,
41.182579040527344,
41.062896728515625,
41.062896728515625,
41.062896728515625,
38.304603576660156,
38.24636459350586,
38.24636459350586,
36.22803497314453,
36.22803497314453,
31.973094940185547,
31.973094940185547,
31.392122268676758,
29.95476531982422,
28.615795135498047,
28.37484359741211,
24.65378761291504,
24.65378761291504,
19.890424728393555,
18.55488395690918,
18.28920555114746,
18.28920555114746,
18.28920555114746,
18.28920555114746,
18.28920555114746,
18.28920555114746,
18.28920555114746,
18.28920555114746,
18.28920555114746,
18.28920555114746,
18.28920555114746,
18.28920555114746,
18.28920555114746,
18.28920555114746,
18.28920555114746,
17.215913772583008,
17.215913772583008,
15.271925926208496,
15.271925926208496,
15.271925926208496,
15.271925926208496,
15.271925926208496,
15.271925926208496,
15.271925926208496,
15.271925926208496,
15.271925926208496,
15.271925926208496,
15.271925926208496,
15.271925926208496,
15.271925926208496,
15.271925926208496,
15.271925926208496,
15.271925926208496,
15.271925926208496,
15.271925926208496,
15.271925926208496,
15.271925926208496,
15.271925926208496,
15.271925926208496,
15.271925926208496,
15.271925926208496,
15.271925926208496,
15.271925926208496,
13.253596305847168,
13.253596305847168,
13.253596305847168,
13.253596305847168,
13.253596305847168,
13.253596305847168,
13.253596305847168,
13.253596305847168,
13.253596305847168,
13.253596305847168,
13.253596305847168,
13.253596305847168,
13.253596305847168,
13.253596305847168,
13.253596305847168,
13.253596305847168,
13.253596305847168,
13.253596305847168,
13.253596305847168,
13.253596305847168,
13.253596305847168,
13.253596305847168,
13.253596305847168,
13.253596305847168,
13.253596305847168,
13.253596305847168
],
"content": [
"This PHP iContact API is rather useful https : github.com icontact",
"My question is specific for iContact API .",
"We are not using the server to send the message but a third-party email service iContact .",
"I am using icontact api 2.0 for integrating the icontact list in my site .",
"It seems I m doing everything according to following example : https : github.com icontact icontact-api-php blob master examples.php .",
"I am using PHP icontact API 2.2 .",
"I am using the icontact php api .",
"I have registered the account I am using the iContactApi.php from GitHub https : github.com icontact icontact-api-php blob master examples.php provided by iContact .",
"I have faced an issue while integrating the iContact API 2.2 The problem is i cannot search a contact details with email .",
"Just thought I d help out was currently working on icontact api as well .",
"is that not possible with this icontact API.2.2 .. . .. . But i found something similar in C .NET here http : www.mitchsmind.com icontact-api-integration-with-c-net .. . .. . Any solution is available with php",
"If any one face the same issue or some one will works on iContact api it will help them click here http : www.walkswithme.net icontact-api-with-php to view in details .",
"I am trying to use PHP Api from iContact to store a contact .",
"Hope this article http : www.walkswithme.net icontact-api-with-php will help you .",
"I am playing around with iContact API and am running into an issue .",
"The only way to work with the iContact API is to send correct headers to the server then you will be able to make any of the requests and actions that appear in the documentation .",
"Also i found 2 more additional methods for iContact API using php .",
"I m trying to integrate iContact api with wordpress and I need to add move delete contacts in lists under certain circumstances .",
"You want to use the getError method from the iContact API to find out more information about what happened .",
"thanks for this is there anything obvious that might be showing the error message despite the ajax working and the details dropping into icontact crm",
"it means You are logged in but do not have permission to perform that action from iContact developer.icontact.com documentation http-status-codes http : developer.icontact.com documentation http-status-codes",
"If I wanted to make that create date a timestamp of now how would I do that createDate timestamp in ISO8601 format Indicates the date on which the contact was added to iContact 2009-06-18 22 : 39 : 54",
"The easiest way I have found : Login to sandbox or to your real iContact account in the main menu go to Contact - Sign-up forms then create just any form click on view HTML and you will find Account Id there .",
"I am trying to use Ajax with icontact. . my code makes the form-submit however it shows an error message despite the form working and the details dropping into the list .",
"Unfortunately iContact has been no help and the log files I ve looked at aren t telling me much so I think I m likely looking in the wrong place .",
"The problem is probably on the second parameter to addList .. . .. . 4424 - has to be a valid message id that already exists for one of your list if you go to your icontact dashboard and create a welcome message for one of your list and then edit it you will see on the url an iMessageId parameter .",
"I face an issue with creating new list and adding new message its not create any list using the API.But i can create contact and subscribe and so on. . Code used is .. . .. . Also checked some help but not found any soulution http : www.softwareprojects.com resources programming t-icontact-20-api-integration-php-example-1925.html",
"I want to get the last contact who entered the list so in the icontact api php I have this : .. . .. . than I use this to call it : .. . .. . It keeps giving me the same contact it is because the 0 in the echo but how can I make that a variable or an if condition just not sure how .. . .. . paste bins with full code .. . .. . http : pastebin.com SBf73UNb call .. . http : pastebin.com CuGcCvU1 api",
"what i did is : .. . .. . In the API library : .. . .. . When i try to search with contact Id I got full details of the contact but email is not working how",
"+ w- 2 4 - Example here http : stackoverflow.com questions 46155 validate-email-address-in-javascript",
"I have register an application and get API id .",
"But I am not able to find accountId and clientFolderId .",
"Please see this below link : .. . .. . http : developer.icontact.com documentation request-your-accountid-and-clientfolderid At above page Perform a GET on the Accounts resource How I can perform this to get account id and clientfolderid .",
"The best way that I found to do this is by setting up a PHP script with cUrl .. . .. . Here you get your accountId and the rest is just calling the right url with this script",
"Hope it gives you a hint .",
"Keep up the good coding .",
"This held the answers for me .",
"I seem to have been using incorrect CURL setup .",
"Although it might have been this line that saved me : GET . page .",
"HTTP 1.0 However it is important to note that the next two lines need to be changed from text html to text xml .",
"This is my full code to get the account id and client folder id thanks to Carlos Duran above for getting some of my code problems worked out : .. . .. . .. . .. . I just switched to JSON way better .",
".. . .. . And use : .. . .. . Instead of text xml above .",
"I just switched to JSON .",
"Way better .",
"Edited above .",
"The only time we have had a crash is when we sent out a mass email to about 30 000 people .",
"These are not hits to the pages but something is making apache ramp up and spin off a ton of workers during the email send process .",
"You can use this as the second parameter and it should work .",
"https : app.sandbox.icontact.com icp core code message edit token ff1a8748b08088d41e69215c75295c98 iMessageId 1979804 sHubId 41254750ca180a4e7b3 https : app.sandbox.icontact.com icp core code message edit token ff1a8748b08088d41e69215c75295c98 iMessageId 1979804 sHubId 41254750ca180a4e7b3 .. . .. . ref : http : developer.icontact.com documentation lists",
"Actually i found the issue the message was not there .but your are correct .This old issue any way thanks. .",
"API seems to be unable to resubscribe a user after they unsubscribed .",
"Yes You are right you cannot resubscribe a user once unsubscribed using API.This we can achieve by tricky.Create two list one Subscribed and unsubscribed when the user apply subscription move theor id to subscribed list else reverse .",
"Hey thanks I missed that move feature on the api got it working now .",
"I faced an issue with subscription and unsubscription of contact to specific list using this API .",
"I can subscribe properly but once i un-subscribe a contact then i can t subscribe it again .",
"I am using the code below .. . .. . I also checked this http : developer.icontact.com documentation subscriptions .. . .. . Can any one help me to solve this",
"they mentioned in this link .. . .. . Using this method i wrote a function like .. . .. . But it will return error : Forbidden",
"what your error-log says",
"nothing added in error-log it return like this array 1 0 string 9 Forbidden string 19 status : normal string 24 errors : Forbidden",
"thanks for your response .ok i saw the error codes but i can do all other action like adding new contact etc ..even unsubscription",
"the result is null nothing return .",
"Finally I found solution for this problem .",
"Wow - Thank you for finding this and sharing .",
"I can add contact with addContact method .",
"But when I m trying to subscribe contact via subscribeContactToList iContactId iListId sStatus method it doesn t work and returns me an emty array .",
"I haven t any idea how can get it to work .",
"What am I doing wrong",
"Has anyone faced with such problem and which is the most proper way to tackle it",
"Here is my code :",
"I think you can use orderby option .. . .. . check this link http : www.icontact.com developerportal documentation contacts .. . .. . sample they used .. . .. . Instead of firstname you can use date something like normal SQL query doing then fetch only first contact .",
"Also the return data will be always array so you have to run within a foreach for iterate the data .",
"Hope it helps .",
"This worked .. . .. . Got it from this page .. . .. . http : www.icontact.com developerportal documentation advanced-users",
"I used this bellow code to unsubscribe a contact from a list .",
"but after I have done it .",
"I can t subscribe it again to that list .",
"anyboday know why",
"or anyway I can do this",
"My sourcecode looks like thisL .. . .. . I get the following error : .. . .. . Fatal error : Uncaught exception Exception with message Errors have occurred and the system cannot continue .",
"Use getErrors for details .",
"in C : xampp htdocs clydebutcher ws iContactApi.php : 482 Stack trace : 0 C : xampp htdocs clydebutcher ws iContactApi.php 1096 : iContactApi- makeCall a get NULL accounts 1 C : xampp htdocs clydebutcher ws iContactApi.php 212 : iContactApi- setAccountId 2 C : xampp htdocs clydebutcher mdl-newsletter-save.php 130 : iContactApi- addContact joe@shmoe.com NULL NULL Joe Shmoe NULL 123 Somewhere L.. . Apt 12 Somewhere NW 12345 123-456-7890 123-456-7890 NULL 3 C : xampp htdocs clydebutcher mdl.php 14 : include C : xampp htdocs.. . 4 C : xampp htdocs clydebutcher index.php 13 : include C : xampp htdocs.. . 5 main thrown in C : xampp htdocs clydebutcher ws iContactApi.php on line 482 .. . .. . Am I making something wrong",
"Message says Use getErrors for details . did you do that",
"Yes I did but I have got no additional information .",
"After creating a contact using the api I am attempting to retrieve the most recent response so I can parse the contactId in order to send that contact a message or add them to a list .",
"When print the obj var this is what I get .. . .. . Error Message : Notice : Trying to get property of non-object in path .. . on line 24 .. . .. . I looked on other posts and attempted to duplicate some of the same solutions but nothing seemed to work .",
"Thanks for any help in advanced .",
"If you are going to access in object method remove the TRUE from json decode function-parameter list .",
"If you pass TRUE it returns an array .",
"Otherwise you have to access like this .",
"Wow that simple it worked .",
"Thanks .",
"So the form is submitting the details fine but showing the failure message",
"So i m almost there anyone know why",
"Cheers .. . .. . here is the form also",
"It would help us a lot if you shared the error message .",
"syntax-error : alert failure - remove the comma",
"it just popups an alert saying failure for now .",
"syntax-error II : var eReg w- . +@ w- + .",
"I have run your code in my local server and I have not found any syntax errors ."
]
} | {
"confidence": [
62.08592224121094,
56.742401123046875,
52.75544738769531,
52.37639617919922,
50.562255859375,
50.08210372924805,
49.412139892578125,
49.070228576660156,
47.93373107910156,
46.27497863769531,
44.96947479248047,
42.92263412475586,
42.573482513427734,
37.98942565917969,
12.659165382385254
],
"content": [
"Question : I have faced an issue while integrating the iContact API 2.2 The problem is i cannot search a contact details with email . the result is null nothing return . what i did is : .. . .. . In the API library : .. . .. . When i try to search with contact Id I got full details of the contact but email is not working how is that not possible with this icontact API.2.2 .. . .. . But i found something similar in C .NET here http : www.mitchsmind.com icontact-api-integration-with-c-net .. . .. . Any solution is available with php .. . Answer : Finally I found solution for this problem . Also i found 2 more additional methods for iContact API using php . If any one face the same issue or some one will works on iContact api it will help them click here http : www.walkswithme.net icontact-api-with-php to view in details . Comment : Wow - Thank you for finding this and sharing .",
"Question : My question is specific for iContact API . I have register an application and get API id . But I am not able to find accountId and clientFolderId . Please see this below link : .. . .. . http : developer.icontact.com documentation request-your-accountid-and-clientfolderid At above page Perform a GET on the Accounts resource How I can perform this to get account id and clientfolderid . .. . Answer : This PHP iContact API is rather useful https : github.com icontact",
"Question : null .. . Answer : I m trying to integrate iContact api with wordpress and I need to add move delete contacts in lists under certain circumstances . I can add contact with addContact method . But when I m trying to subscribe contact via subscribeContactToList iContactId iListId sStatus method it doesn t work and returns me an emty array . It seems I m doing everything according to following example : https : github.com icontact icontact-api-php blob master examples.php . I haven t any idea how can get it to work . What am I doing wrong Has anyone faced with such problem and which is the most proper way to tackle it Here is my code :",
"Question : My question is specific for iContact API . I have register an application and get API id . But I am not able to find accountId and clientFolderId . Please see this below link : .. . .. . http : developer.icontact.com documentation request-your-accountid-and-clientfolderid At above page Perform a GET on the Accounts resource How I can perform this to get account id and clientfolderid . .. . Answer : The easiest way I have found : Login to sandbox or to your real iContact account in the main menu go to Contact - Sign-up forms then create just any form click on view HTML and you will find Account Id there .",
"Question : I am using icontact api 2.0 for integrating the icontact list in my site . I face an issue with creating new list and adding new message its not create any list using the API.But i can create contact and subscribe and so on. . Code used is .. . .. . Also checked some help but not found any soulution http : www.softwareprojects.com resources programming t-icontact-20-api-integration-php-example-1925.html .. . Answer : The problem is probably on the second parameter to addList .. . .. . 4424 - has to be a valid message id that already exists for one of your list if you go to your icontact dashboard and create a welcome message for one of your list and then edit it you will see on the url an iMessageId parameter . You can use this as the second parameter and it should work . https : app.sandbox.icontact.com icp core code message edit token ff1a8748b08088d41e69215c75295c98 iMessageId 1979804 sHubId 41254750ca180a4e7b3 https : app.sandbox.icontact.com icp core code message edit token ff1a8748b08088d41e69215c75295c98 iMessageId 1979804 sHubId 41254750ca180a4e7b3 .. . .. . ref : http : developer.icontact.com documentation lists Comment : Actually i found the issue the message was not there .but your are correct .This old issue any way thanks. . Comment : Just thought I d help out was currently working on icontact api as well . API seems to be unable to resubscribe a user after they unsubscribed . Comment : Yes You are right you cannot resubscribe a user once unsubscribed using API.This we can achieve by tricky.Create two list one Subscribed and unsubscribed when the user apply subscription move theor id to subscribed list else reverse . Comment : Hey thanks I missed that move feature on the api got it working now .",
"Question : I am trying to use PHP Api from iContact to store a contact . I have registered the account I am using the iContactApi.php from GitHub https : github.com icontact icontact-api-php blob master examples.php provided by iContact . My sourcecode looks like thisL .. . .. . I get the following error : .. . .. . Fatal error : Uncaught exception Exception with message Errors have occurred and the system cannot continue . Use getErrors for details . in C : xampp htdocs clydebutcher ws iContactApi.php : 482 Stack trace : 0 C : xampp htdocs clydebutcher ws iContactApi.php 1096 : iContactApi- makeCall a get NULL accounts 1 C : xampp htdocs clydebutcher ws iContactApi.php 212 : iContactApi- setAccountId 2 C : xampp htdocs clydebutcher mdl-newsletter-save.php 130 : iContactApi- addContact joe@shmoe.com NULL NULL Joe Shmoe NULL 123 Somewhere L.. . Apt 12 Somewhere NW 12345 123-456-7890 123-456-7890 NULL 3 C : xampp htdocs clydebutcher mdl.php 14 : include C : xampp htdocs.. . 4 C : xampp htdocs clydebutcher index.php 13 : include C : xampp htdocs.. . 5 main thrown in C : xampp htdocs clydebutcher ws iContactApi.php on line 482 .. . .. . Am I making something wrong Comment : Message says Use getErrors for details . did you do that Comment : Yes I did but I have got no additional information . Comment : Hope this article http : www.walkswithme.net icontact-api-with-php will help you . .. . Answer : You want to use the getError method from the iContact API to find out more information about what happened .",
"Question : I am using the icontact php api . I want to get the last contact who entered the list so in the icontact api php I have this : .. . .. . than I use this to call it : .. . .. . It keeps giving me the same contact it is because the 0 in the echo but how can I make that a variable or an if condition just not sure how .. . .. . paste bins with full code .. . .. . http : pastebin.com SBf73UNb call .. . http : pastebin.com CuGcCvU1 api .. . Answer : This worked .. . .. . Got it from this page .. . .. . http : www.icontact.com developerportal documentation advanced-users",
"Question : I am using the icontact php api . I want to get the last contact who entered the list so in the icontact api php I have this : .. . .. . than I use this to call it : .. . .. . It keeps giving me the same contact it is because the 0 in the echo but how can I make that a variable or an if condition just not sure how .. . .. . paste bins with full code .. . .. . http : pastebin.com SBf73UNb call .. . http : pastebin.com CuGcCvU1 api .. . Answer : I think you can use orderby option .. . .. . check this link http : www.icontact.com developerportal documentation contacts .. . .. . sample they used .. . .. . Instead of firstname you can use date something like normal SQL query doing then fetch only first contact . Also the return data will be always array so you have to run within a foreach for iterate the data . Hope it helps . Comment : If I wanted to make that create date a timestamp of now how would I do that createDate timestamp in ISO8601 format Indicates the date on which the contact was added to iContact 2009-06-18 22 : 39 : 54",
"Question : My question is specific for iContact API . I have register an application and get API id . But I am not able to find accountId and clientFolderId . Please see this below link : .. . .. . http : developer.icontact.com documentation request-your-accountid-and-clientfolderid At above page Perform a GET on the Accounts resource How I can perform this to get account id and clientfolderid . .. . Answer : The only way to work with the iContact API is to send correct headers to the server then you will be able to make any of the requests and actions that appear in the documentation . The best way that I found to do this is by setting up a PHP script with cUrl .. . .. . Here you get your accountId and the rest is just calling the right url with this script Hope it gives you a hint . Keep up the good coding . Comment : This held the answers for me . I seem to have been using incorrect CURL setup . Although it might have been this line that saved me : GET . page . HTTP 1.0 However it is important to note that the next two lines need to be changed from text html to text xml .",
"Question : I have a LAMP stack setup on Digital Ocean Ubunu 12.04 that is pretty stable . The only time we have had a crash is when we sent out a mass email to about 30 000 people . We are not using the server to send the message but a third-party email service iContact . I watch the server with Top and can see it fill up with apache entries each taking about 20MB for a short while then drop back down after the mail has finished being sent . I have successfully adjusted the apache settings to no longer crash - it just slows down for a bit . These are not hits to the pages but something is making apache ramp up and spin off a ton of workers during the email send process . My question is where do I look to get some idea of what is happening Unfortunately iContact has been no help and the log files I ve looked at aren t telling me much so I think I m likely looking in the wrong place . .. . Answer : I used to send emails to over 200 000 people directly from a single machine . Trying to do it from a webpage is pretty crazy so I wrote a command-line based script to first write it into a database and then send 50 at a time from the database deleting as it went . With Symfony Swiftmailer it is pretty easy these days - the sending part is just a shell script that keeps running app console swiftmailer : spool : send sleeping and restarting till the database is empty .",
"Question : null .. . Answer : I am using PHP icontact API 2.2 . I faced an issue with subscription and unsubscription of contact to specific list using this API . I can subscribe properly but once i un-subscribe a contact then i can t subscribe it again . I am using the code below .. . .. . I also checked this http : developer.icontact.com documentation subscriptions .. . .. . Can any one help me to solve this they mentioned in this link .. . .. . Using this method i wrote a function like .. . .. . But it will return error : Forbidden Comment : what your error-log says Comment : nothing added in error-log it return like this array 1 0 string 9 Forbidden string 19 status : normal string 24 errors : Forbidden Comment : it means You are logged in but do not have permission to perform that action from iContact developer.icontact.com documentation http-status-codes http : developer.icontact.com documentation http-status-codes Comment : thanks for your response .ok i saw the error codes but i can do all other action like adding new contact etc ..even unsubscription",
"Question : My question is specific for iContact API . I have register an application and get API id . But I am not able to find accountId and clientFolderId . Please see this below link : .. . .. . http : developer.icontact.com documentation request-your-accountid-and-clientfolderid At above page Perform a GET on the Accounts resource How I can perform this to get account id and clientfolderid . .. . Answer : This is my full code to get the account id and client folder id thanks to Carlos Duran above for getting some of my code problems worked out : .. . .. . .. . .. . I just switched to JSON way better . .. . .. . And use : .. . .. . Instead of text xml above . Comment : I just switched to JSON . Way better . Edited above .",
"Question : I am trying to use Ajax with icontact. . my code makes the form-submit however it shows an error message despite the form working and the details dropping into the list . So the form is submitting the details fine but showing the failure message So i m almost there anyone know why Cheers .. . .. . here is the form also Comment : It would help us a lot if you shared the error message . Comment : syntax-error : alert failure - remove the comma Comment : it just popups an alert saying failure for now . Comment : syntax-error II : var eReg w- . +@ w- + . + w- 2 4 - Example here http : stackoverflow.com questions 46155 validate-email-address-in-javascript Comment : thanks for this is there anything obvious that might be showing the error message despite the ajax working and the details dropping into icontact crm .. . Answer : I have run your code in my local server and I have not found any syntax errors . The problem I face with using your code is Cross-Origin Request Blocked . Browsers do not allow AJAX requests to another domain if you try to use the form on the site app.icontact.com or maybe icontact.com it will work . If you cannot use icontact.com for the form then I suggest you write a PHP code which is the server-side language in our case to process jsonp . This is a workaround for cross-origin policy . Add dataType : jsonp to .ajax .. . .. . Executing the above code gave me a syntax-error from signup.php so I am assuming processing the jsonp correctly will get you the success alert .",
"Question : I am playing around with iContact API and am running into an issue . After creating a contact using the api I am attempting to retrieve the most recent response so I can parse the contactId in order to send that contact a message or add them to a list . When print the obj var this is what I get .. . .. . Error Message : Notice : Trying to get property of non-object in path .. . on line 24 .. . .. . I looked on other posts and attempted to duplicate some of the same solutions but nothing seemed to work . Thanks for any help in advanced . .. . Answer : If you are going to access in object method remove the TRUE from json decode function-parameter list . If you pass TRUE it returns an array . Otherwise you have to access like this . Comment : Wow that simple it worked . Thanks .",
"Question : null .. . Answer : I used this bellow code to unsubscribe a contact from a list . but after I have done it . I can t subscribe it again to that list . anyboday know why or anyway I can do this"
]
} | [
"yes-answer-long",
"yes-answer-short"
] | provider | UNK_RELATION |
app-startup@optimization@100 | app-startup -- concerns that are a focus of application startup include configuration startup time @placeholder locking threading race conditions preconditions and configuration changes . | {
"confidence": [
52.889583587646484,
47.353065490722656,
46.50300979614258,
45.274864196777344,
45.27008056640625,
42.170494079589844,
41.78285598754883,
41.78285598754883,
41.07673645019531,
40.9238395690918,
40.6690788269043,
40.280433654785156,
40.24855422973633,
40.12548065185547,
38.887969970703125,
38.887969970703125,
38.594932556152344,
38.33829879760742,
38.247371673583984,
37.766685485839844,
37.48737335205078,
36.868316650390625,
36.868316650390625,
36.608551025390625,
36.45359420776367,
36.45359420776367,
36.090057373046875,
35.876583099365234,
35.46196746826172,
35.45846939086914,
35.341373443603516,
35.14115905761719,
34.678855895996094,
34.18684387207031,
34.18684387207031,
33.23011016845703,
33.23011016845703,
33.23011016845703,
33.23011016845703,
32.5103759765625,
32.50732421875,
32.50732421875,
31.820262908935547,
31.820262908935547,
31.820262908935547,
31.820262908935547,
31.820262908935547,
31.820262908935547,
31.820262908935547,
31.820262908935547,
31.820262908935547,
31.786582946777344,
30.883987426757812,
30.85335350036621,
30.820632934570312,
30.747554779052734,
30.747554779052734,
30.57048225402832,
30.130521774291992,
29.950786590576172,
29.33770751953125,
29.204479217529297,
29.204479217529297,
28.974544525146484,
28.520023345947266,
28.33077621459961,
27.967002868652344,
27.306007385253906,
27.023128509521484,
26.55715560913086,
26.55715560913086,
25.665821075439453,
25.665821075439453,
25.234439849853516,
24.18775177001953,
24.094432830810547,
23.82845687866211,
23.53831672668457,
23.53831672668457,
22.975126266479492,
22.498008728027344,
22.199737548828125,
22.163623809814453,
22.163623809814453,
22.133445739746094,
22.129947662353516,
22.129947662353516,
21.357254028320312,
21.319658279418945,
21.211380004882812,
20.951446533203125,
20.951446533203125,
20.41724395751953,
20.238357543945312,
20.168264389038086,
20.05034637451172,
19.906238555908203,
19.866432189941406,
19.864694595336914,
19.674541473388672
],
"content": [
"But 20 of the time the app fails to startup .",
"I don t recommend trying to reconfigure the app after startup you ll hit nasty race conditions .",
"I want to run an application at startup .",
"Sorry you can t open an app on startup .",
"Adding the application to startup folder didn t worked either .",
"If application is set to run at startup it will run why not .",
"Are there any other ways to improve the startup time",
"if info.kp eproc.e ppid 1 it means this process was launched at startup time .",
"However the startup error persists .",
"This question already has an answer here : .. . .. . C Run application MINIMIZED at windows startup questions 4453998 c-sharp-run-application-minimized-at-windows-startup 5 answers .. . .. . How to force my application to start minimized when launched at windows startup through registry key Run",
"I m trying to improve my RCP application startup time .",
"I ve made an application which needs to run a certain process at Windows startup .",
"You should be setting this up once on application startup - either in the Configuration method of an OWIN Startup class followed by an app.UseHangFireServer or in the Application Start method of your Global.asax.cs if you really don t want to use OWIN .",
"On the Startup Parameters tab in the Specify a startup parameter box type the parameter in this case the trace flag -T1118 and then click Add .",
"Why do you add it to both startup keys",
"For startup everything up to : .. . .. . And for shutdown everything from : .. . .. . to the end .",
"When the app is opened at startup I do not receive notifications .",
"You can set your startup form by accessing the My Project from the Solution Explorer then going to the Application page .. . .. . Image : Choosing startup form http : i.stack.imgur.com 9CzxA.png",
"Does Java EE server startup time depends on the number of WAR files",
"I find it also useful to check which classes are loaded during startup by enabling the Tracing Option in your Launch configuration .",
"Copying a shortcut to the startup folder : C : Users @username@ AppData Roaming Microsoft Windows Start Menu Programs Startup .. . .. . Is there any difference between the two options",
"The application is set to run at startup in the registry the path is correct and the problem remains even without the minimize parameter .",
"Does it mean that the startup form should always be the first form to see when the application is running",
"Please try the Windows task scheduler to run the application on windows startup .",
"Is there any way to control Startup servlet behaviour so that startup servlet will not be run twice .",
"Also I have tried many such startup .. . startup which works fine - resolves the mixed-mode error .",
"I noticed that the startup time of the application is unusually long other applications I have written that are doing even more work on startup start nearly instantly this application needs 5 seconds The startup time does not change after multiple starts so I guess it is not a case of uncached CLR code during the first start of the application .",
"Well you eliminated all the normal sources of startup delays .",
"I have an android app which displays a white screen for 2 seconds on startup .",
"I have an Android application that needs to read some custom parameters at startup e.g .",
"The users of my app can choose if they want or not launch my app at their session startup .",
"I have written startup servlet code inside WAR file to send mail to application users at some particular time .",
"The startup time with 30 enabled plugins is different from the startup time with 10 enabled plugins even though all my plugins are lazy initialized so after the startup only 10 plugins are loaded according to my log .",
"I don t think there s a way to enumerate addresses at startup in IIS .",
"From the logs I can see that didRegisterForRemoteNotificationsWithDeviceToken is called on startup .",
"It crashes on startup without a crash-report from google or from crashlytics which i integrated .",
"Question : .. . .. . In .NET do you have any criteria that qualifies a certain form to be the startup form",
"From that 3 different kinds of forms how do I properly choose the startup form",
"To make this question not broad I am looking for the most common way of setting up the startup form maybe there is a standard way",
"Adding to the Startup folder also doesn t require your app or installer to run with elevated admin privileges where writing to the registry does .",
"Knowing this is useful if you provide the option to run at startup from within your application which may not be running elevated and won t allow a registry modification .",
"For the ability to verify the startup and shutdown of our Spring Boot applications we want to configure a startup.log and shutdown.log capturing events that bootstrap and shutdown the application .",
"Thank you.. . if you do both the registry key and the startup I assuming you will you have 2 instances running .",
"This means that I might as well just put my startup logic inside the HttpApplication object s constructor .",
"Now my question is why shouldn t I put my startup logic in the constructor",
"I realize I could just delete the log file on startup prior to any logging events but this seems like a hack .",
"That should only be used for things that should only run once entries are deleted from that key after a startup .",
"If you want a more sophisticated solution have a look here : C - How to know when Windows is settled after startup",
"http : stackoverflow.com questions 10501853 c-sharp-how-to-know-when-windows-is-settled-after-startup",
"Edit : And I also tried using Startup App Startup and putting Run there but that also does not work .",
"I did some testing by writing down times during startup : .. . .. . Sub Main is the applications entry-point .",
"My startup servlet start sending mails twice to applications users because of multiple application servers are attached to WAR file .",
"Here is a resource link for SQL Server configuration : http : docs.hangfire.io en latest configuration using-sql-server.html .. . .. . This resource states that : .. . .. . If you want to use Hangfire outside of web application where OWIN Startup class is not applicable create an instance of the SqlServerStorage manually and pass it to the JobStorage.Current static property .",
"I want to load CookieDomain and set the external providers based on values from database but it seems like HttpContext.Current.Request.Url.Host is not yet set when Startup is calling ConfigureAuth app value is always 127.0.0.1 .. . .. . How can I get the current host name to be available at Startup",
"If I read lastboot key on standardUserDefaults I can see that app was started on system startup but if I try to send a notification nothing append .",
"Few more options can be found here http : stackoverflow.com questions 10276074 wpf-choose-startup-window-based-on-some-condition .",
"1 I created a file named r.bat containing the line Rterm --vanilla and saved it in the R startup working directory as given by Sys.getenv USERPROFILE .",
"Of course that the portal startup time depends the number of deployed portlets even though 15 minutes to deploy 20 portlets I think it is excessive .",
"We used to launch things at session startup via launchd Library LaunchAgents route .",
"I ve never used JBoss as application server but with Tomcat the startup speed depends basically of two things : .. . .. . The number of deployed portlets : The more portlets deployed more time gets the portal to be started .",
"I see two-way of dealing with it : .. . .. . Tell your customer to place the config file in a specific directory and have your APK read and parse the xml at startup .",
"I prefer the Startup folder because you can create a shortcut for a specific user not everyone who logs onto a machine wants your app to run automatically .",
"Program B only gets Connection Refused Errno111 until the Mule app is ready which while not being a critical issue thanks to retries is annoying to see happening at every startup .",
"we released an update of our App to Appstore the new version works very well at the simulator and our dev devices but if you make an update from the Appstore the App crashes on startup unless you delete it and reinstall it .",
"In short : For a deeper understanding the configuration changes in ASP.NET 4.5 Websites look at the following official source - Configuration Changes in ASP.NET 4.5 Website Templates http : www.asp.net vnext overview aspnet whats-new Configuration Changes In ASPNET45 Website Templates .",
"I m using this code to add my application to Windows Startup through registry however i don t know how to force it to start minimized i only want to start the application minimized when it s launched this way through registry and not when the user double-click the .exe .",
"Because for example I can make the frmConfig as the startup form then on OnLoad event of it it will hide itself then open the frmCalculator because frmCalculator depends on frmConfig s default setting . .. . .. . 3 .",
"The best would be that you write the entire code something like that I imagine : SOMETYPE info getppid 2 if info.kp eproc.e ppid 1 Means this process was launched at startup time .",
"In my Program.cs i ve added string args to Main : static void Main string args And in my code i ve added -minimize parameter : startapp.SetValue MyApp.exe Application.ExecutablePath.ToString + -minimized The entry gets added to the registry it s shown in msconfig.exe startup but the application won t start .",
"I was adding it to both places since when I tried searching on how to make a program run at startup every place named these 2 places to insert the paths to.. .",
"EDIT 2 .. . Looking at ProcMon during startup I find that the execution hangs at the following lines : .. . .. . The problem further occurs only in a Release build and only when I start the program directly from the Windows Explorer .",
"I believe that you are having a cluster.If you deploy it in two different servers then configure the startup servlet in only one .war file in web.xml .",
"You mention not wanting to use Startup.Auth but normally this type of thing would go in a plain Startup separate from any auth stuff anyway .",
"http : stackoverflow.com questions 815063 how-do-you-make-your-app-open-at-login .. . .. . What I want now is to know if my app has been launched automatically at session startup or via a click on the icon in the dock .",
"In SQL Server Configuration Manager click SQL Server Services .",
"enter image description here http : i.stack.imgur.com EuMVP.jpg .. . .. . but all configuration i have set in NinjectWebCommon file will be executed upon starting application .",
"I am trying to see if I can tweak the JBoss configuration to deploy multiple WAR files at the same time .",
"What I want is : .. . .. . 1 . on startup launch Login.xaml .. . 2 . when Login.xaml is launched check if the settings have already been set .. . 3 . if no settings show Login.Xaml for setting .. . 4 . if Settings set start MainWindow with saved settings .",
"what I want is : 1 on startup launch Login.xaml 2 when Login.xaml is launched check if the settings have already been set 3a if no settings show Login.Xaml for setting 3b if Settings set start MainWindow with proper settings .",
"What I m expected to do is : .. . .. . broadcast the APK .. . give specific parameter file to each customer in an extern separate file called custom par.xml to be read at startup .. . .. . I don t want to have a config file inside the app project : if I need to give the app to a new customer I ll only need to write a new custom par.xml for him and pack it together with the standard common APK .",
"1 Deployment machine might have fairly low configuration .",
"You should include a reminder on the app s first start up for the user to keep that app open in the background .",
"SQL Server Configuration Manager can be used to set the SQL Server start-up parameters .",
"Start - Run - SQLServerManager11.msc or just search for SQL Server Configuration Manager .. . .. . 2 .",
"I want to create a custom configuration for an assembly in the Global.asax app-start which will persist over all requests to the server .",
"My thought is I can create a webservice that the application will query for its configuration values .",
"Finally the question - Is there a way I can retrieve the configuration settings after the application starts on role start",
"I have instance and variable in Application class to use it throughout app .",
"See http : docs.hangfire.io en latest configuration using-dashboard.html .. . .. . So really I don t know if any downside of using the OWIN configuration for all of this .",
"There is no fundamental difference in what it accomplishes there are however definite concerns on which one to pick .",
"So next time user click the app it will start from the first login screen .",
"Can someone clarify if there is a fool-proof way to start a VOIP iOS app every time the phone boots up",
"By checking the time of launching of OS and the specified app .",
"http : stackoverflow.com questions 6687824 how-can-i-know-how-my-app-was-launched-on-mac-os NO ANSWER except some links to other posts which do not help more.. . .. . .. . Know if the user launched an app http : stackoverflow.com questions 12465100 know-if-the-user-launched-an-app I don t see how to set get the Y parameter defined in this post .. . .. . Mac OS X : open application at login without showing the main window http : stackoverflow.com questions 5597328 mac-os-x-open-application-at-login-without-showing-the-main-window deals with the fact to hide or not the main window at startup what I want is more general : how to know how the app has been launched",
"there are ways to determine whether voiceover is running and when it changes .",
"So how do I ensure the login screen comes up each time the app is launched regardless of whether it is starting from scratch or not",
"Check if app is running by double-tapping the home button but DO NOT open the app .",
"The below link has the steps Click here http : www.7tutorials.com use-task-scheduler-launch-programs-without-uac-prompts .. . .. . Or you can write some code using Microsoft.Win32.TaskScheduler.dll to setup the startup task using Windows scheduler",
"And can anyone explain to me why in a typical ASP.NET application 8 instances of my HttpApplication are created which causes the constructor and Init to run just as many times of course this can be mitigated with locking and a shared static boolean called initialized when my application only has a single AppDomain",
"It s the more modern platform and since you mention this is for an MVC5 app it s unlikely that you have legacy concerns ."
]
} | {
"confidence": [
52.76893997192383,
50.35268783569336,
49.77960968017578,
49.10771179199219,
48.76872253417969,
48.59490203857422,
45.85468292236328,
44.73137283325195,
44.58246612548828,
43.00108337402344,
42.18514633178711,
41.27630615234375,
41.19561004638672,
40.88962173461914,
39.94529342651367,
39.863040924072266,
39.69260787963867,
39.556705474853516,
39.07906723022461,
38.76960372924805
],
"content": [
"Question : null .. . Answer : I want to load CookieDomain and set the external providers based on values from database but it seems like HttpContext.Current.Request.Url.Host is not yet set when Startup is calling ConfigureAuth app value is always 127.0.0.1 .. . .. . How can I get the current host name to be available at Startup .. . .. . So for example if I have Web1.com Web2.com .. . all bound to the same web application I want ConfigureAuth to use values that are specific to that host name CookieDomain CookieName facebookAuthOptions.AppId facebookAuthOptions.AppSecret etc.. . Comment : I don t think there s a way to enumerate addresses at startup in IIS . This kind of information is usually provided via config file . Comment : Maybe there s a way to update the providers later on when HttpContext is available I can maybe handle the cookie later with a custom cookie ICookieManager but no idea how to update the external providers each web site has its own app key and secret Comment : I don t recommend trying to reconfigure the app after startup you ll hit nasty race conditions . Instead come up with a deployment process that provisions this information per site .",
"Question : I am coding a MVC 5 internet application and am wishing to use Hangfire for recurring tasks . How can I setup Hangfire to use SQL Server storage without specifying this in the Startup.Auth ConfigureAuth IAppBuilder app function . Here is a resource link for SQL Server configuration : http : docs.hangfire.io en latest configuration using-sql-server.html .. . .. . This resource states that : .. . .. . If you want to use Hangfire outside of web application where OWIN Startup class is not applicable create an instance of the SqlServerStorage manually and pass it to the JobStorage.Current static property . Parameters are the same . The example code is as follows : .. . .. . I have tried the following code with my own connection-string yet the dashboard is not available . I have called the code above from a controller function . Is there something that I have not done correct How can I setup Hangfire to use SQL Server storage without using the Startup.Auth class Thanks in advance . Comment : First it would help if you specify why you can t or don t want to use OWIN for this . You say I am coding a MVC 5 internet application yet you quote a source regarding If you want to use Hangfire outside of web application - So which is it You mention not wanting to use Startup.Auth but normally this type of thing would go in a plain Startup separate from any auth stuff anyway . .. . Answer : I think this is your problem : .. . .. . I have called the code above from a controller function . You should be setting this up once on application startup - either in the Configuration method of an OWIN Startup class followed by an app.UseHangFireServer or in the Application Start method of your Global.asax.cs if you really don t want to use OWIN . Either way the line you re looking for is right there in the documentation you reference : .. . .. . HOWEVER as far as I know if you want to use the dashboard you must configure that part via OWIN along with an authorization filter . See http : docs.hangfire.io en latest configuration using-dashboard.html .. . .. . So really I don t know if any downside of using the OWIN configuration for all of this . It s the more modern platform and since you mention this is for an MVC5 app it s unlikely that you have legacy concerns .",
"Question : I m trying to improve my RCP application startup time . The startup time with 30 enabled plugins is different from the startup time with 10 enabled plugins even though all my plugins are lazy initialized so after the startup only 10 plugins are loaded according to my log . I m trying to understand what makes the difference so I d like to see which plugins are currently running . Is there any way to see a list of running plugins in Eclipse Debug view .. . Answer : As Anton http : stackoverflow.com users 2097228 anton specified in his answer http : stackoverflow.com a 29791126 1544364 OSGi console indeed solves the problem . However there are several things to do before you can use the OSGi console associated with an instance of the application you re debugging . First you need to include following dependencies in your product : .. . .. . org.eclipse.equinox.console .. . org.apache.felix.gogo.runtime .. . org.apache.felix.gogo.command .. . org.apache.felix.gogo.shell .. . .. . Once the dependencies are added add -console argument to Program Arguments in your launching configuration . That s it . Now you can launch your RCP application from within Eclipse the OSGi commands are available in the regular console view associated with your application . Thus ss command lists all the loaded bundles and their status .",
"Question : I m trying to improve my RCP application startup time . The startup time with 30 enabled plugins is different from the startup time with 10 enabled plugins even though all my plugins are lazy initialized so after the startup only 10 plugins are loaded according to my log . I m trying to understand what makes the difference so I d like to see which plugins are currently running . Is there any way to see a list of running plugins in Eclipse Debug view .. . Answer : You may open the Plug-in Registry View and filter according to your needs . I find it also useful to check which classes are loaded during startup by enabling the Tracing Option in your Launch configuration . Sometimes existing Extension Points might trigger unwanted class loading resulting in Long start up times . Comment : Its not an answer Comment : You are right . Edited the my answer .",
"Question : I want to run an application at startup . I understand there a few options . I m most interested in the options below : .. . .. . 1 . The registry approach : HKEY CURRENT USER Software Microsoft Windows CurrentVersion Run .. . 2 . Copying a shortcut to the startup folder : C : Users @username@ AppData Roaming Microsoft Windows Start Menu Programs Startup .. . .. . Is there any difference between the two options Comment : This may provide some insight : superuser.com a 300116 http : superuser.com a 300116 .. . Answer : There s no fundamental difference . The folder tends to be favorited by users easy for them to create a shortcut there . The registry key tends to be favorited by installers lower odds that the user disables the program . That s not exactly much of a guarantee anymore plenty of utilities around that help editing the keys without having to use Regedit.exe . Including Windows own msconfig.exe Comment : Thank you.. . if you do both the registry key and the startup I assuming you will you have 2 instances running . Is there a good way to prevent that Comment : Hmm so does creating more than one shortcut and creating more than one registry key . My doctor s usual advice fits here : if it hurts then don t do it . Comment : There is no fundamental difference in what it accomplishes there are however definite concerns on which one to pick . I prefer the Startup folder because you can create a shortcut for a specific user not everyone who logs onto a machine wants your app to run automatically . Adding to the Startup folder also doesn t require your app or installer to run with elevated admin privileges where writing to the registry does . Knowing this is useful if you provide the option to run at startup from within your application which may not be running elevated and won t allow a registry modification . Comment : Same story for the Run registry key in HKCU .",
"Question : Does Java EE server startup time depends on the number of WAR files I am working on a portal server which is deployed with 20 different Portlets 20 WAR files . The portal and Portlets are deployed in a JBoss 5 server . Right now the server itself takes anywhere between 15 - 20 mins to start . I am trying to see if I can tweak the JBoss configuration to deploy multiple WAR files at the same time . Is that a good option Are there any other ways to improve the startup time .. . Answer : Of course that the portal startup time depends the number of deployed portlets even though 15 minutes to deploy 20 portlets I think it is excessive . I ve never used JBoss as application server but with Tomcat the startup speed depends basically of two things : .. . .. . The number of deployed portlets : The more portlets deployed more time gets the portal to be started . The memory allocated : The more memory allocated to the application server less time to start the portal . There can be something more to check but at least for me these are the most important causes . As you probably can not reduce the number of portlets you ll have to try to increase the memory allocated to JBoss .",
"Question : Question : .. . .. . In .NET do you have any criteria that qualifies a certain form to be the startup form Example : .. . .. . For example if I have a basic calculator program and it has 3 forms namely frmConfig frmCalculator and frmProfile . frmConfig - The settings page includes whether I should automatically round off or out put the whole decimals etc . frmCalculator - The main page the calculator itself where you can do all the calculations that you want . frmProfile - The login page you can see the history of your calculations here . Notes : .. . .. . 1 . From that 3 different kinds of forms how do I properly choose the startup form 2 . Does it mean that the startup form should always be the first form to see when the application is running Because for example I can make the frmConfig as the startup form then on OnLoad event of it it will hide itself then open the frmCalculator because frmCalculator depends on frmConfig s default setting . .. . .. . 3 . To make this question not broad I am looking for the most common way of setting up the startup form maybe there is a standard way Comment : You can also start the app from a Sub Main . Since you describe frmCalculator as The main page it seems logical to use that as the MainForm or for the app msg pump . My most common way is Sub Main so the app can do whatever it needs to before any form shows . .. . Answer : You can set your startup form by accessing the My Project from the Solution Explorer then going to the Application page .. . .. . Image : Choosing startup form http : i.stack.imgur.com 9CzxA.png",
"Question : I am working on a VOIP app and need it to auto-start when the iPhone starts up . Everything works 80 of the time . But 20 of the time the app fails to startup . One test scenario is the following : .. . .. . 1 . Open app and type something and save .. . 2 . Reboot phone .. . 3 . Check if app is running by double-tapping the home button but DO NOT open the app . 4 . If app is running reboot phone again and see if the app comes up again in the background-process . This scenarios works most of the time but not always . Other scenarios also fail at times . Can someone clarify if there is a fool-proof way to start a VOIP iOS app every time the phone boots up Thanks . .. . Answer : Sorry you can t open an app on startup . You should include a reminder on the app s first start up for the user to keep that app open in the background . Comment : Actually it looks like VOIP apps that run in the background will start when your phone starts . Or judging by the question it will most of the time : stackoverflow.com a 9300992 1035398 http : stackoverflow.com a 9300992 1035398",
"Question : This question already has an answer here : .. . .. . C Run application MINIMIZED at windows startup questions 4453998 c-sharp-run-application-minimized-at-windows-startup 5 answers .. . .. . How to force my application to start minimized when launched at windows startup through registry key Run I m using this code to add my application to Windows Startup through registry however i don t know how to force it to start minimized i only want to start the application minimized when it s launched this way through registry and not when the user double-click the .exe . Some sample code would be appreciated . Thanks in advance Comment : I ve read the solution to that question but honestly i wasn t able to figure out how to do it . If someone can provide some practical sample i appreciate a lot thanks Comment : A .lnk file is the usual way to do this . If it needs to be auto-generated then use IShellLink SetShowCmd method . .. . Answer : The easiest way to do this is to use arguments for your executable . Say your app is called MyApp.exe . If you start it via the registry you ll do start : .. . .. . Otherwise you ll just start MyApp.exe to start the program without minimizing . See command-line-arguments http : msdn.microsoft.com en-us library cb20e19t.aspx for more information on using arguments . To start the application minimized you can do : .. . .. . For more examples of this see the link that @Dexters provided in the comments . Comment : In my Program.cs i ve added string args to Main : static void Main string args And in my code i ve added -minimize parameter : startapp.SetValue MyApp.exe Application.ExecutablePath.ToString + -minimized The entry gets added to the registry it s shown in msconfig.exe startup but the application won t start . What am i doing wrong thanks Comment : Hard to say . If the same happens without the minimize parameter perhaps the path to you application is incorrect . Otherwise I don t know . Comment : Thanks for your answer . The path is right . I ve also tried the method described in the answer below but the problem remains . The entry is added to the registry but the application wont start . Maybe it s because it requires admin . privileges.. . Comment : The application is set to run at startup in the registry the path is correct and the problem remains even without the minimize parameter . I ve also tried to set the application to not require admin but the problem remains anyway . This is a desktop application and i m running Windows 8.1 set enter directly to the desktop . Comment : Adding the application to startup folder didn t worked either . What worked was to add the application to the Task Scheduler with the advantage that it doesn t bring a UAC prompt : stackoverflow.com questions 15191129 http : stackoverflow.com questions 15191129 selectively-disabling-uac-for-specific-programs-on-windows-programatically",
"Question : This question already has an answer here : .. . .. . C Run application MINIMIZED at windows startup questions 4453998 c-sharp-run-application-minimized-at-windows-startup 5 answers .. . .. . How to force my application to start minimized when launched at windows startup through registry key Run I m using this code to add my application to Windows Startup through registry however i don t know how to force it to start minimized i only want to start the application minimized when it s launched this way through registry and not when the user double-click the .exe . Some sample code would be appreciated . Thanks in advance Comment : I ve read the solution to that question but honestly i wasn t able to figure out how to do it . If someone can provide some practical sample i appreciate a lot thanks Comment : A .lnk file is the usual way to do this . If it needs to be auto-generated then use IShellLink SetShowCmd method . .. . Answer : Another solution I can think of would be to create a shortcut for your application and set the property of the shortcut to run minimized and add the shortcut to the registry rather than the application .",
"Question : The users of my app can choose if they want or not launch my app at their session startup . To do this I use LSSharedFileListRef as described here : How do you make your App open at login http : stackoverflow.com questions 815063 how-do-you-make-your-app-open-at-login .. . .. . What I want now is to know if my app has been launched automatically at session startup or via a click on the icon in the dock . Indeed I have to do different actions in these two cases . I have got the feeling that it is not possible to use the parameters of the notification in the following delegate method to do this : .. . .. . I have seen the following posts but they do not help : .. . .. . How can I know how my app was launched on Mac OS http : stackoverflow.com questions 6687824 how-can-i-know-how-my-app-was-launched-on-mac-os NO ANSWER except some links to other posts which do not help more.. . .. . .. . Know if the user launched an app http : stackoverflow.com questions 12465100 know-if-the-user-launched-an-app I don t see how to set get the Y parameter defined in this post .. . .. . Mac OS X : open application at login without showing the main window http : stackoverflow.com questions 5597328 mac-os-x-open-application-at-login-without-showing-the-main-window deals with the fact to hide or not the main window at startup what I want is more general : how to know how the app has been launched Anybody can help me Thanks Comment : By checking the time of launching of OS and the specified app . Comment : Thanks it is one way not completely reliable but why not.. . but I can t find out how to determine when the OS has been launched . Any idea .. . Answer : If application is set to run at startup it will run why not . So you can save the application-start time somewhere . And on the later run for instance user quit your application and run again check if there is this parameter and if it is later than system boot time than application this time is not run automatically . You can check the system boot time via NSProcessInfo systemUptime",
"Question : The users of my app can choose if they want or not launch my app at their session startup . To do this I use LSSharedFileListRef as described here : How do you make your App open at login http : stackoverflow.com questions 815063 how-do-you-make-your-app-open-at-login .. . .. . What I want now is to know if my app has been launched automatically at session startup or via a click on the icon in the dock . Indeed I have to do different actions in these two cases . I have got the feeling that it is not possible to use the parameters of the notification in the following delegate method to do this : .. . .. . I have seen the following posts but they do not help : .. . .. . How can I know how my app was launched on Mac OS http : stackoverflow.com questions 6687824 how-can-i-know-how-my-app-was-launched-on-mac-os NO ANSWER except some links to other posts which do not help more.. . .. . .. . Know if the user launched an app http : stackoverflow.com questions 12465100 know-if-the-user-launched-an-app I don t see how to set get the Y parameter defined in this post .. . .. . Mac OS X : open application at login without showing the main window http : stackoverflow.com questions 5597328 mac-os-x-open-application-at-login-without-showing-the-main-window deals with the fact to hide or not the main window at startup what I want is more general : how to know how the app has been launched Anybody can help me Thanks Comment : By checking the time of launching of OS and the specified app . Comment : Thanks it is one way not completely reliable but why not.. . but I can t find out how to determine when the OS has been launched . Any idea .. . Answer : I d check Parent Process ID . If it equals 1 it means it was launched by launchd at start up time . Comment : Thanks for your answer . I am going to test this . Nevertheless I have some questions : is it normal that you return OPProcessValueUnknown in both cases What do you mean by info.kp eproc.e ppid is what you need Thanks Comment : @Regis AG OPProcessValueUnknown is just some constant that tells you there was a problem with sysctl . This code is portable if you don t care you can just use getppid 2 . if info.kp eproc.e ppid 1 it means this process was launched at startup time . Comment : Thanks bioffe . Neverthless I am really not used to use this kind of system function and I still don t know how to proceed . Are you sure that it is getppid 2 and not GETPID 2 What is info Is it returned by getppid 2 The best would be that you write the entire code something like that I imagine : SOMETYPE info getppid 2 if info.kp eproc.e ppid 1 Means this process was launched at startup time . Thanks Comment : @bioffe I m getting 1 for info.kp eproc.e ppid for both open-at-login launches and launches from the Applications folder . Building and Running via Xcode does indeed give a different id though . How do we distinguish between Open At Login and manual launches from Finder Comment : @cksubs I see now . You are using SystemPrefs Users LoginItems which is no different from launching via Finder . Don t know much about LaunchServices . We used to launch things at session startup via launchd Library LaunchAgents route . Not sure if it s 10.8 friendly anymore .",
"Question : The users of my app can choose if they want or not launch my app at their session startup . To do this I use LSSharedFileListRef as described here : How do you make your App open at login http : stackoverflow.com questions 815063 how-do-you-make-your-app-open-at-login .. . .. . What I want now is to know if my app has been launched automatically at session startup or via a click on the icon in the dock . Indeed I have to do different actions in these two cases . I have got the feeling that it is not possible to use the parameters of the notification in the following delegate method to do this : .. . .. . I have seen the following posts but they do not help : .. . .. . How can I know how my app was launched on Mac OS http : stackoverflow.com questions 6687824 how-can-i-know-how-my-app-was-launched-on-mac-os NO ANSWER except some links to other posts which do not help more.. . .. . .. . Know if the user launched an app http : stackoverflow.com questions 12465100 know-if-the-user-launched-an-app I don t see how to set get the Y parameter defined in this post .. . .. . Mac OS X : open application at login without showing the main window http : stackoverflow.com questions 5597328 mac-os-x-open-application-at-login-without-showing-the-main-window deals with the fact to hide or not the main window at startup what I want is more general : how to know how the app has been launched Anybody can help me Thanks Comment : By checking the time of launching of OS and the specified app . Comment : Thanks it is one way not completely reliable but why not.. . but I can t find out how to determine when the OS has been launched . Any idea .. . Answer : Open a Terminal window type last grep reboot awk END print 3 4 5 6 to get the reboot time and match the time of the specific application launch as @AnoopVaidya pointed out .",
"Question : I ve made an application which needs to run a certain process at Windows startup . I ve created a method which does it by receiving the path to the program and adding it to the registry . This is the method : .. . .. . This code is working but the problem is that it seems that the process I m adding make the desktop loading get stuck . When the desktop is loading it loads the background wall paper but the icons won t load . I can get to the task manager and when I close the process I ve added to the start up programs the desktop unfreeze and finishes loading everything . What is strange that even though I close the process after the desktop finish loading my process runs again and then everything is ok meaning it for some reason run itself twice . So my question is how do I set the process to run only AFTER the desktop finished loading Comment : Why do you add it to both startup keys Wouldn t that cause it to start twice the first time Also why add it to RunOnce in the first place That should only be used for things that should only run once entries are deleted from that key after a startup . Also since you name your value service why don t you register a Windows Service That could be configured to start delayed . Comment : I was adding it to both places since when I tried searching on how to make a program run at startup every place named these 2 places to insert the paths to.. . So what actually should be done Comment : If you really want to start an application that the user can use e.g . a tray icon use the solution that was given by Matthew Watson . If your program should run in the background without any user interaction you should create a real Windows Service . .. . Answer : It runs twice because you re setting the registry key in both Run and RunOnce . If you want it to run each time just set it in the Run key . The RunOnce key is just for programs that you want to as the name implies run only once . The registry entry is automatically removed from RunOnce after the OS starts . If you want to delay the program until the shell has started up the easiest way although a bit hacky is to just put a Thread.Sleep 60000 at the very start of the the program . If you want a more sophisticated solution have a look here : C - How to know when Windows is settled after startup http : stackoverflow.com questions 10501853 c-sharp-how-to-know-when-windows-is-settled-after-startup Comment : for those who read it the part about the runOnce is true but the problem was solved by simply not writing to that registry location.. . not by adding a thread-sleep",
"Question : For the ability to verify the startup and shutdown of our Spring Boot applications we want to configure a startup.log and shutdown.log capturing events that bootstrap and shutdown the application . For startup everything up to : .. . .. . And for shutdown everything from : .. . .. . to the end . Is this something that is container specific Tomcat vs Jetty vs Undertow .. . Answer : You can create an event-listener that watches for ApplicationReadyEvent and ContextStoppedEvent and log whatever you want .",
"Question : The users of my app can choose if they want or not launch my app at their session startup . To do this I use LSSharedFileListRef as described here : How do you make your App open at login http : stackoverflow.com questions 815063 how-do-you-make-your-app-open-at-login .. . .. . What I want now is to know if my app has been launched automatically at session startup or via a click on the icon in the dock . Indeed I have to do different actions in these two cases . I have got the feeling that it is not possible to use the parameters of the notification in the following delegate method to do this : .. . .. . I have seen the following posts but they do not help : .. . .. . How can I know how my app was launched on Mac OS http : stackoverflow.com questions 6687824 how-can-i-know-how-my-app-was-launched-on-mac-os NO ANSWER except some links to other posts which do not help more.. . .. . .. . Know if the user launched an app http : stackoverflow.com questions 12465100 know-if-the-user-launched-an-app I don t see how to set get the Y parameter defined in this post .. . .. . Mac OS X : open application at login without showing the main window http : stackoverflow.com questions 5597328 mac-os-x-open-application-at-login-without-showing-the-main-window deals with the fact to hide or not the main window at startup what I want is more general : how to know how the app has been launched Anybody can help me Thanks Comment : By checking the time of launching of OS and the specified app . Comment : Thanks it is one way not completely reliable but why not.. . but I can t find out how to determine when the OS has been launched . Any idea .. . Answer : If you can t get @bioffe s answer to work here it is again with a little more : .. . .. . From : http : www.objectpark.net parentpid.html",
"Question : I have an Android application that needs to read some custom parameters at startup e.g . an URL . Those parameters are different from customer to customer . What I m expected to do is : .. . .. . broadcast the APK .. . give specific parameter file to each customer in an extern separate file called custom par.xml to be read at startup .. . .. . I don t want to have a config file inside the app project : if I need to give the app to a new customer I ll only need to write a new custom par.xml for him and pack it together with the standard common APK . Is it possible Comment : Yes As soon as the app starts find and parse the config file . Customer would just have to put your xml in a specific directory . Or you could distribute the config file as a second lightweight UI-less APK and then have the two APK communicate . Comment : @mvai I ll use your suggestion to develop a super-light APP with shared preferences . please answer my original question so I can accept it as the correct solution .. . Answer : I see two-way of dealing with it : .. . .. . Tell your customer to place the config file in a specific directory and have your APK read and parse the xml at startup . It is not difficult but requires bothering the customer about storing the config file .. . .. . Create a second lightweight application with just the parameters you would put into the config file . You could then distribute the second APK along with your main app and have these two apps communicate .",
"Question : I ve made an application which needs to run a certain process at Windows startup . I ve created a method which does it by receiving the path to the program and adding it to the registry . This is the method : .. . .. . This code is working but the problem is that it seems that the process I m adding make the desktop loading get stuck . When the desktop is loading it loads the background wall paper but the icons won t load . I can get to the task manager and when I close the process I ve added to the start up programs the desktop unfreeze and finishes loading everything . What is strange that even though I close the process after the desktop finish loading my process runs again and then everything is ok meaning it for some reason run itself twice . So my question is how do I set the process to run only AFTER the desktop finished loading Comment : Why do you add it to both startup keys Wouldn t that cause it to start twice the first time Also why add it to RunOnce in the first place That should only be used for things that should only run once entries are deleted from that key after a startup . Also since you name your value service why don t you register a Windows Service That could be configured to start delayed . Comment : I was adding it to both places since when I tried searching on how to make a program run at startup every place named these 2 places to insert the paths to.. . So what actually should be done Comment : If you really want to start an application that the user can use e.g . a tray icon use the solution that was given by Matthew Watson . If your program should run in the background without any user interaction you should create a real Windows Service . .. . Answer : What was told about the RunOnce is true and the solution was to simply remove the addition to that registry key . After I ve removed it and left the path only in the Run key it was fixed .",
"Question : I have an WPF application when at first start displays window to select language . So in App.xaml : .. . .. . in WindowLanguage : .. . .. . It works but unnecessary Window is init . I think about following way : App.xaml.cs .. . .. . This second way with changing StartupUri is better or not Which way is the best for my situation open WindowLanguage during first start of app .. . Answer : Setting the startupUri is always better than recreating window all over again . Also there are other options for opening window based on some conditions like having age old console Main method for opening window . Few more options can be found here http : stackoverflow.com questions 10276074 wpf-choose-startup-window-based-on-some-condition . Comment : Rohit since this answer affects the order in which windows are created would it have a knock on effect to which ShutdownMode should be selected Comment : No order of window is not changed . Its just which window needs to be shown on app launch . So no change required in shutDownMode . Comment : thank you One note - to use your code it s necessary to remove StartupUri if you don t do it - open MainWindow twice Comment : Yeah forgot to mention that .",
"Question : I m trying to improve my RCP application startup time . The startup time with 30 enabled plugins is different from the startup time with 10 enabled plugins even though all my plugins are lazy initialized so after the startup only 10 plugins are loaded according to my log . I m trying to understand what makes the difference so I d like to see which plugins are currently running . Is there any way to see a list of running plugins in Eclipse Debug view .. . Answer : How about using the OSGi console to list the plugins and their status You can use the command ss which lists all the existing bundles in the OSGi environment . Bundle ID State and Bundle symbolic name of all the bundles are shown . Comment : I m not sure this is what I want . When I use OSGi console it lists the plugins of current Eclipse instance dev environment . I want to see the list of plugins in Debug instance the program I m developing ."
]
} | [
"yes-answer-long",
"yes-answer-short"
] | optimization | UNK_RELATION |
ios-universal-app@iphone@84 | ios-universal-app -- an ios-universal-app is an app that can be run both on iphone @placeholder with retina screen ipad and ipad with retina screen . | {
"confidence": [
82.20176696777344,
69.59220886230469,
63.67759704589844,
63.25611114501953,
61.68963623046875,
60.90717315673828,
59.87747573852539,
59.763031005859375,
59.120277404785156,
58.70582580566406,
57.840232849121094,
57.45500183105469,
57.04541778564453,
56.27820587158203,
56.26313018798828,
56.24161148071289,
55.9507942199707,
55.25349426269531,
54.92176818847656,
54.87688446044922,
54.816829681396484,
54.6910400390625,
54.24195098876953,
54.1231689453125,
54.117889404296875,
54.020057678222656,
53.58667755126953,
53.58667755126953,
53.42528533935547,
53.42528533935547,
53.32804870605469,
52.29669189453125,
52.24864196777344,
51.27516174316406,
51.075599670410156,
50.786231994628906,
50.73210144042969,
50.66661834716797,
50.59876251220703,
50.521392822265625,
50.428619384765625,
50.144344329833984,
49.89241409301758,
49.828182220458984,
49.39912414550781,
49.391090393066406,
49.18354797363281,
48.735877990722656,
48.5311279296875,
47.65899658203125,
47.54270553588867,
47.267478942871094,
47.02500915527344,
46.892181396484375,
46.61473083496094,
46.471031188964844,
46.333839416503906,
46.087310791015625,
46.087310791015625,
45.98786163330078,
45.87717819213867,
45.54673767089844,
45.54363250732422,
45.37560272216797,
45.36101531982422,
45.36101531982422,
45.15300750732422,
44.86186218261719,
44.788719177246094,
44.76384735107422,
44.37062454223633,
44.18757629394531,
44.02166748046875,
44.01441955566406,
43.96009826660156,
43.83640670776367,
43.605323791503906,
43.42157745361328,
43.418800354003906,
43.34712219238281,
43.281890869140625,
43.172645568847656,
43.172645568847656,
43.059417724609375,
43.05393981933594,
43.01734924316406,
42.92151641845703,
42.78443145751953,
42.62675476074219,
42.419273376464844,
42.396270751953125,
42.31676483154297,
41.90325927734375,
41.113216400146484,
41.08660888671875,
41.08660888671875,
40.619361877441406,
40.345298767089844,
40.301063537597656
],
"content": [
"I have an iOS app which is universal for both iPhone and iPad .",
"I Got the requirement to create an iOS universal app which Should Support for iPhone iPad and iPad mini .",
"Now How to Include the support for iPad mini in universal app .. . .. . Is the development screen sizes are same for iPad mini",
"I m migrating my iPad app to universal to support all the iPhone sizes .",
"App store will have just one app for both iPhone and iPad .",
"I have an iPad app that I m converting to a universal app to show on phones .",
"I want to make my universal app has different display name between iPad and iPhone iPhone shows A and iPad shows B Is there a possible way to do without split into 2 app",
"In the General settings I have designated the app as Universal and set the Main as the storyboard for the iPhone and the iPad for the iPad .",
"The iPad will know that the app is iPad ready and will tell draw the screen at full size .",
"I have written an iPhone and iPad universal app which runs fine in the iPad simulator on Xcode but I would now like to test the iPhone functionality .",
"I have an iPhone iPad app on the App Store .",
"I am building a Universal iOS app .",
"If I keep iPhone now Can I change it to Universal in future once my iPad app is ready to upload on App store .",
"I have an iPad app which now needs to be converted into a universal one .",
"How would the image resources be named for the ipad ipad HD versions in a universal app",
"I m working on an universal iOS app and I m using SplitViewController .",
"I have an iphone app that I m trying to make a universal app .",
"I ve seen tons of questions and answers regarding merging an iPhone and an iPad app into an universal app but that isn t what I want to do .",
"but how would it differentiate between the one meant for iphone retina and the one meant for ipad retina",
"We noticed that your app did not run at iPhone resolution when reviewed on iPad running iOS 9.1 which is a violation of the App Store Review Guidelines .",
"If you are making an universal app .",
"I m working on an iOS 8 app and saw that it s possible to release an universal app for iPhone and iPad .",
"I ve configured my app as Universal in Target General DeploymentInfo .. . .. . Is it ok to make device specific assets in the xcassets file for iPhone and iPad even though the app as a whole is Universal",
"For iOS 8 use one storyboard and use the UISplitViewController on both the iPad and the iPhone .",
"This app is universal .",
"I am porting my iPhone app into Universal app .",
"The Deployment Info settings says Devices : Universal but has separate iPhone and iPad settings and corresponding iPhone and iPad storyboards .",
"I am working on universal project iPhone iPad in which the code that I used is same on iphone and ipad .",
"The functionality of the iPhone app is different than the iPad application .",
"Short answer : NO .. . .. . They have to separate iPhone iPad app .",
"My app is a universal app i.e .",
"So if making one universal-storyboard should iPhone or iPad be selected in Xcode",
"I have an existing iPhone app and an iPad app now I have created a Universal app and I want to know if there is any way to kind of merge the existing app Ids so I can upload my new app as an update for the previous ones .",
"Create universal app .",
"I beleive that it goes something like this : .. . .. . Normal iPhone : .. . .. . image.png .. . .. . Retina iPhone : .. . .. . image.png-hd .. . .. . Normal iPad : .. . .. . image.png-ipad .. . .. . Retina iPad : .. . .. . image.png-hd-ipad .. . .. . Do not use @2x instead of -hd because you will find that you will get some errors .",
"If you use non-consumable in-app purchases for an universal app do users need to buy them only once and can use them on both devices or do they need to purchase them for iPhone and iPad",
"If UIDeviceFamily says the app supports iPads then it will run the app in native iPad mode not in iPhone-wrapper mode .",
"I am trying to create an iPhone and iPad compatible app .",
"Now you can have only iPhone and when you plan to upload iPad app you ll have to separately upload the iPad app in the same name .",
"I created an iPad only app and now the client would like me to make it universal .",
"It is easier than ever to create a single interface for your app that works well on both iPad and iPhone adjusting to orientation-changes and different screen sizes as needed .",
"iOS retina displays don t work that way .",
"You can upload the universal version as the new version for the iphone as well as for the ipad but then you ll need to manage them both separately which is a pain .",
"No you can t.. . that s why they call it a Universal App :",
"Main.Storyboard and Preview screen of iPhone and iPad showing that iPad shows nothing while iPhone shows the view .. . .. . 2 .",
"I ve created a universal app that works on all iphone devices and ipads .",
"Now how can I my app execute the loadView for iPhone app only not for iPad",
"I am currently porting iPhone app to iPad application .",
"Both in iPhone and iPad .",
"Is there any possibility that I can use same images I am using for iphone retina and iPad somehow",
"http : i.imgur.com foYU9V5.png .. . .. . I am unable to set a specific Main interface for iPad even though my app is universal .",
"I know what is the problem also found some old answers which tells that s not possible but I want to be sure 100 if there is no way to replace an universal app with iPad app on the App Store .",
"What are the steps to upload file for universal linking to open the app from the search in iOS-9 .",
"As for suggestions : provide HD resolution images for Retina devices and iPad provide SD resolution images for non-Retina devices .",
"I only have access to one physical device iPhone 5c which I used alongside the simulator to test my universal app supports iPhone and iPad during development .",
"If you download the app on the iPhone and make a purchase it should reflect that in the iPad version .",
"If I disable the showing of login screen the app is entering the tab view controller and displaying it properly on the iPad too .",
"That is including all the iPad versions and all the iPhones and iPods that have retina-display .",
"Don t upscale SD images to HD resolution on Retina devices or iPad .",
"You can also make your existing app into a universal app with an update so it runs natively on iPad rather than scaling up this is what I would probably do but each to their own there are many business models .",
"One is for iPhone and another is for iPad .",
"New version of app must support only iPad .",
"Now it was decided to make a completely separate interface for the iPad which can not be universal .",
"The correct way in cocos2d version 2.0 or 1.1beta is this : .. . .. . Normal iPhone : .. . .. . image.png .. . .. . Retina iPhone : .. . .. . image-hd.png .. . .. . Normal iPad : .. . .. . image-ipad.png .. . .. . Retina iPad : .. . .. . image-ipadhd.png .. . .. . You must just call image.png in your code then the code will detect what device is and use the file properly .",
"Is it possible to ditch the iPad storyboard and convert the existing iPhone storyboard to be my main universal-storyboard",
"Requirement is of creating a universal application which will support Portrait orientation only for iPhone and Landscape orientation only for iPad .",
"Can anyone suggest me how to use different images for iPhone and iPad while using universal storyboards .",
"The user creates content in the app and it would be great if the content created on the iPhone showed up in the iPad app .",
"I want to develop universal application in iOS .",
"On iOS 8 you do not need two storyboards since a single storyboard can handle both iPhone and iPad also UISplitViewController is supported on the phone on that OS .",
"I guess that ll work exactly as you would name ressource to support retina-display on iOS for iPhone .",
"I want to make it for iPad to but dont know how to I made images for all Ipads and iphone and now I need to make separate app for iPad .",
"I think better option is Universal App .",
"the root of the problem is the universal-storyboard .. . i coded the iPhone first and then added the iPad constrains the iPad 7.1 is not affacted by the error only iPhone 7.1 .. . look like i have to work arround that issue",
"I want it if possible to be one universal app that maybe can use in-app purchase for customers to get the premium content .",
"No it is not possible to have single storyboard file for both iPhone and iPad without autolayout",
"Remember its possible that iPad users may have your original iPhone app on their iPad despite thats its an iPhone app so they might end up with the same icon and bundle display name twice on their iPad springboard which Im sure you ll agree would be undesirable .",
"It is showing up when I run on iPhone but on iPad .",
"Can I create new app with the same name but make it for iPad only and distribute it to App Store",
"The main drawback of a universal app is that I m capped at 50MB over-air download and that the single binary means iPhones get all the iPad images and vice versa .",
"I used this to adapt my app to the iPad mini .",
"But for now I am planning to upload only iPhone version of app on App Store and after some days I will upload iPad version .",
"If the interface is purchased the app displays the iPad Nib and if not it just displays the same way as an iPhone application does with the option to scale the app etc .",
"I have an old app on app-store that is divided into one free version for both iPhone and iPad and one paid version for both so four different apps in total .",
"It used to not be universal so it launched in 1x 2x mode on an iPad .",
"I m going to create a Universal iOS application using Swift .",
"I am currently porting an iPad app to iPhone and for this I am creating new xib files and adding the iphone suffix to them .",
"How can I make the Kal Calendar for both iPhone and iPad",
"I have a project for iPhone and iPad .",
"The iPad s OS determines what kind of app it is running iPad compatible or iPhone resolution and presents the view accordingly .",
"For example each app in a 50 : 50 split on a landscape iPad is compact width but on iPad Pro they are regular width .",
"If you tell the OS through the app configuration that it can run on iPad you will always get that kind of view .",
"I am updating my app to a universal app but there is something wrong with the Kal Calendar : .. . .. .",
"i made a app in iOS 8 using the default universal device master-detail view controller but the master view will slide only when i touch the detail view .",
"Choose Universal and Xcode will automatically create a project for all iOS devices .",
"I have a question about using images for universal apps on IOS .",
"I submitted my app for review and got the error .. . .. . 2.10 - iPhone Apps must also run on iPad without modification at iPhone resolution and at 2X iPhone 3GS resolution .",
"Since you don t want to you size classes you can manually set the initialViewController of iPad and iPhone storyboards in app delegate .",
"I had uploaded each of these builds on the iOS App Store a few years ago back before universal builds become common ."
]
} | {
"confidence": [
96.21399688720703,
90.88478088378906,
89.85599517822266,
85.11294555664062,
83.6111831665039,
81.64348602294922,
80.90007781982422,
79.84573364257812,
78.93285369873047,
76.60823822021484,
76.4747543334961,
75.84219360351562,
74.83320617675781,
74.18914031982422,
73.45604705810547,
72.54689025878906,
72.2282485961914,
71.74410247802734,
71.4397201538086,
71.30168151855469
],
"content": [
"Question : How would the image resources be named for the ipad ipad HD versions in a universal app When supporting normal and HD images for iphone we use imageName.png imageName-hd.png . But if I make an universal am I right in assuming that I would have to rename the images and use imageNameiPad.png imageNameiPad-hd.png Please let me know how the naming convention works . Thanks Abhinav .. . Answer : I guess that ll work exactly as you would name ressource to support retina-display on iOS for iPhone . Which to my mind is : .. . .. . MyFile.png is the standard resolution .. . Myfile@2x.png is the resolution for retina-display Comment : but how would it differentiate between the one meant for iphone retina and the one meant for ipad retina Comment : Sorry I misunderstood your demand .",
"Question : I have an iPad app which now needs to be converted into a universal one . I ve set the target to Universal and now it can be deployed to an iPhone as well however I have a major issue : even though I ve created my main view controller separately for the two device types when I launch the app on an iPhone 5 the screen seems to have a resolution of 320x480 leaving black space on top and under the view . This doesn t seem to be an issue with the main window because I changed the window s background to red and the space filling up the height to 568px is still black which means that the window is also only 320x480 . Any help idea would be appreciated . Comment : have you tried it on simulator .. . Answer : Check the answer to this question : .. . .. . Q : Black bars showing when running app on iOS 7 4 inch retina-display http : stackoverflow.com questions 18913105 black-bars-showing-when-running-app-on-ios-7-4-inch-retina-display .. . .. . A : http : stackoverflow.com a 18913189 4666621 .. . .. . You re probably missing the image Default-568h@2x.png Comment : Thank you very much for your help indeed it was a beginner mistake but I didn t add the launch image for the 4 model . Comment : You re welcome",
"Question : How would the image resources be named for the ipad ipad HD versions in a universal app When supporting normal and HD images for iphone we use imageName.png imageName-hd.png . But if I make an universal am I right in assuming that I would have to rename the images and use imageNameiPad.png imageNameiPad-hd.png Please let me know how the naming convention works . Thanks Abhinav .. . Answer : I beleive that it goes something like this : .. . .. . Normal iPhone : .. . .. . image.png .. . .. . Retina iPhone : .. . .. . image.png-hd .. . .. . Normal iPad : .. . .. . image.png-ipad .. . .. . Retina iPad : .. . .. . image.png-hd-ipad .. . .. . Do not use @2x instead of -hd because you will find that you will get some errors .",
"Question : How would the image resources be named for the ipad ipad HD versions in a universal app When supporting normal and HD images for iphone we use imageName.png imageName-hd.png . But if I make an universal am I right in assuming that I would have to rename the images and use imageNameiPad.png imageNameiPad-hd.png Please let me know how the naming convention works . Thanks Abhinav .. . Answer : The correct way in cocos2d version 2.0 or 1.1beta is this : .. . .. . Normal iPhone : .. . .. . image.png .. . .. . Retina iPhone : .. . .. . image-hd.png .. . .. . Normal iPad : .. . .. . image-ipad.png .. . .. . Retina iPad : .. . .. . image-ipadhd.png .. . .. . You must just call image.png in your code then the code will detect what device is and use the file properly . Comment : are there any update in it if you are aware of",
"Question : I ve seen tons of questions and answers regarding merging an iPhone and an iPad app into an universal app but that isn t what I want to do . What I am going to do is use in-app-purchase to unlock an iPad interface and then display the correct interface using conditionals . If the interface is purchased the app displays the iPad Nib and if not it just displays the same way as an iPhone application does with the option to scale the app etc . The conditionals are very simple and I have already implemented them however the issue I run into is this : If the IAP is NOT purchased the iPad displays the iPhone Nib but not in the typical way . It is just in the corner with no option to scale it rather than in the center with the black border that you usually see . Does anyone know how I can set it up so i fixes this issue I m a little stumped to be honest . Comment : I don t think there is a way to achieve what you are trying to do . The iPad s OS determines what kind of app it is running iPad compatible or iPhone resolution and presents the view accordingly . If you tell the OS through the app configuration that it can run on iPad you will always get that kind of view . Unless you do the view scaling manually on your own . .. . Answer : This isn t possible unfortunately . The iPad will know that the app is iPad ready and will tell draw the screen at full size . Even if you showed iPhone xib file on the iPad they would still be scaled to fit the full screen using the UIViewAutoresizingMask params you ve set for them . One thought would be to force the size of your UIWindow to be iPhone sized remember to account for retina and centered but I m not 100 sure how if this would work . You may have to change each UIView frame . I m not sure .",
"Question : I want to develop universal application in iOS . But for now I am planning to upload only iPhone version of app on App Store and after some days I will upload iPad version . My question is Should i keep Devices as Universal or only iPhone for now . If I keep iPhone now Can I change it to Universal in future once my iPad app is ready to upload on App store . Comment : yes you can change later on keep it iPhone only for now show that iPhone version didn t messed up on iPAD . Comment : @sheshnath thank you for your response . Can you provide me some doc where i can read this and show to my client . Comment : see this link developer.apple.com library ios documentation https : developer.apple.com library ios documentation LanguagesUtilities Conceptual iTunesConnect Guide Chapters ChangingAppMetadata.html .. . Answer : Now you can have only iPhone and when you plan to upload iPad app you ll have to separately upload the iPad app in the same name . Short answer : NO .. . .. . They have to separate iPhone iPad app .",
"Question : I want to develop universal application in iOS . But for now I am planning to upload only iPhone version of app on App Store and after some days I will upload iPad version . My question is Should i keep Devices as Universal or only iPhone for now . If I keep iPhone now Can I change it to Universal in future once my iPad app is ready to upload on App store . Comment : yes you can change later on keep it iPhone only for now show that iPhone version didn t messed up on iPAD . Comment : @sheshnath thank you for your response . Can you provide me some doc where i can read this and show to my client . Comment : see this link developer.apple.com library ios documentation https : developer.apple.com library ios documentation LanguagesUtilities Conceptual iTunesConnect Guide Chapters ChangingAppMetadata.html .. . Answer : Creating Universal App Using Storyboard .. . .. . When you first create a Xcode project you re provided with an option to define the supported devices . Choose Universal and Xcode will automatically create a project for all iOS devices .",
"Question : When creating a storyboard file in Xcode you must select if it is for iPhone or iPad . This implies one should always put iPhone and iPad UIs into separate storyboards . Is this true My app has multiple storyboards . While the Main.storyboard files largely differ between iPhone and iPad other storyboards are nearly identical . The only difference might be segue being a push on iPhone vs popover on iPad which can be handled programmatically . It seems awfully silly and redundant to make two storyboards . So if making one universal-storyboard should iPhone or iPad be selected in Xcode Does it matter Comment : You do need to separate storyboards however you can very easily copy all your objects from one storyboard to the other and then adjust only the small differences . All your outlets and segue will stay there you would just need to drag outlets to classes but this is fast . .. . Answer : As of Xcode 6 we can create a single unified storyboard for all the devices . For more info - Documentation https : developer.apple.com library prerelease ios releasenotes General WhatsNewIniOS Articles iOS8.html apple ref doc uid TP40014205-SW1 .. . .. . iOS 8 makes dealing with screen-size and orientation much more versatile . It is easier than ever to create a single interface for your app that works well on both iPad and iPhone adjusting to orientation-changes and different screen sizes as needed . Design apps with a common interface and then customize them for different size classes . Adapt your user-interface to the strengths of each form factor . You no longer need to create a specific iPad storyboard instead target the appropriate size classes and tune your interface for the best experience . .. . There are two types of size classes in iOS 8 : regular and compact . A regular size class denotes either a large amount of screen space such as on an iPad or a commonly adopted paradigm that provides the illusion of a large amount of screen space such as scrolling on an iPhone . Every device is defined by a size class both vertically and horizontally . iPad size classes shows the native size classes for the iPad . With the amount of screen space available the iPad has a regular size class in the vertical and horizontal directions in both portrait and landscape orientations . Edit : It only supports iOS 8 backward compatible applies only for iOS 7 and later . Comment : Is this compatible with iOS7 and iOS6 Comment : I think IOS 7 is supported .",
"Question : I m creating a Universal application using Swift . I have used Storyboard and Auto-Layouts . Requirement is of creating a universal application which will support Portrait orientation only for iPhone and Landscape orientation only for iPad . I have developed UI for iPhone and now I will be starting iPad UI . Also UI created for iPhone is not same as UI created for iPad both UI s are quite different . I m thinking of to create separate storyboards for iPhone and iPad . Is there any proper way to achieve this .. . Answer : If you are deploying your App to iOS 8 only then I would use one storyboard . It is simpler to utilize one screen . Here is a link for a great tutorial . http : www.raywenderlich.com 83276 beginning-adaptive-layout-tutorial .. . If you are like me and want to target down to iOS 6 then I would use separate storyboards . Definitely stick with Auto Layout for whatever you decide to use . Don t forget we must start supporting 64-bit . Good luck",
"Question : I want to make my universal app has different display name between iPad and iPhone iPhone shows A and iPad shows B Is there a possible way to do without split into 2 app Comment : No you can t.. . that s why they call it a Universal App : .. . Answer : Simple Answer : You can t . If you are making an universal app . App store will have just one app for both iPhone and iPad . If you want two different names you can make two apps and upload them independently . One is for iPhone and another is for iPad . Hope this will help you . Regards . Comment : Thank you for your answer I was hopping there will be a hidden secret to make this possible . Comment : Its ok . Just be foolish and stay hungry every time to get knowledge :",
"Question : I Got the requirement to create an iOS universal app which Should Support for iPhone iPad and iPad mini . Now How to Include the support for iPad mini in universal app .. . .. . Is the development screen sizes are same for iPad mini Any suggestions please Comment : It s the same size : Comment : In xcode6 if you use autolayout or auroresizing it works for all resolutions Comment : But I m working on Xcode 5.1 .. . Answer : Use the autoresizing functionnalities of Xcode 5.1 . You can specify the behavior of your views according to the screen resizing . I used this to adapt my app to the iPad mini . You can specify if your view width s grows or not stick to border etc . enter image description here http : i.stack.imgur.com JHSsI.png .. . .. . You can enable it by disabling Autolayout for the controller . Comment : I don t disagree but shouldn t be more phrased like Use the autoresizing functionnality introduced in Xcode 5.1 . Comment : thank you Popeye Comment : Added some details but can t be in the head and explain exactly what to do . Take a look do some test it s pretty easy to use .",
"Question : I am trying to create an iPhone and iPad compatible app . Is there any good tutorial and example I can follow Can I create one view or storyboard for each view and use it for iPhone and iPad If I use a storyboard can I do something like this : If it s iPhone use this storyboard design if iPad use the other storyboard design . Or do I need to create a new view or storyboard for iPad and one for iPhone I have no clue how to start at this moment . .. . Answer : You only need one storyboard to build an interface that is compatible with both iPad and iPhone models . Apple is now encouraging developers to embrace Adaptive User Interfaces . As their guide https : developer.apple.com design adaptivity states With the latest advancements with View Controllers in iOS 8 and Auto Layout in Xcode it s now even easier for you to adapt your user-interface to context and different sized devices . In other words you only need a single storyboard for all iOS devices also known as a Universal storyboard . This tutorial http : www.raywenderlich.com 83276 beginning-adaptive-layout-tutorial should get you started with Universal Storyboards and adaptive-layout . Comment : Thanks for your help . I am reading your tutorial and it s awesome Comment : My pleasure Not my tutorial though---just one I found very helpful :",
"Question : I am developing a cocos2d game . I need to make it universal . Problem is that I want to use minimun amount of images to keep the universal-binary as small as possible . Is there any possibility that I can use same images I am using for iphone retina and iPad somehow If yes how can I do that What image-size and quality should it be Any suggestion Thanks and Best regards .. . Answer : There s not a single right answer to this question . One way to do it is to create images that are larger than you need and then scale them down . If the images don t have a lot of fine detail that should work pretty well . As an example this is the reason that you submit a 512x512 pixel image of your app icon along with your app to the App Store . Apple never displays the image at that size but uses it to create a variety of smaller sizes for display in the App Store . Another approach is to use vector images which you can draw perfectly at any size that you need . Unfortunately the only vector format that I can think of that s supported in iOS is PDF .",
"Question : I have a project for iPhone and iPad . The iPad needs a split view controller . Do we create two separate storyboards One for iPhone using autolayout we can support all devices and two for iPad . My doubt is the difference it only in initial view . The inside views repeats . How will be your approach with storyboard .. . Answer : For iOS 7 and before yes use two storyboards and two completely different interfaces since there is no split view controller on the iPhone . For iOS 8 use one storyboard and use the UISplitViewController on both the iPad and the iPhone . Make a new project from the Universal version of the Xcode 6 Master-Detail app template to see all about how it works It is automatically a split view controller on the iPad and a navigation interface on the iPhone . Comment : And here s my example showing how to construct the whole thing for iOS 8 in code if you don t want to use the storyboard : github.com mattneub Programming-iOS-Book-Examples tree master https : github.com mattneub Programming-iOS-Book-Examples tree master bk2ch09p488basicMasterDetail MasterDetail",
"Question : I am developing a cocos2d game . I need to make it universal . Problem is that I want to use minimun amount of images to keep the universal-binary as small as possible . Is there any possibility that I can use same images I am using for iphone retina and iPad somehow If yes how can I do that What image-size and quality should it be Any suggestion Thanks and Best regards .. . Answer : As for suggestions : provide HD resolution images for Retina devices and iPad provide SD resolution images for non-Retina devices . Don t think about an all-in-one solution - there isn t one that s acceptable . 1 . Don t upscale SD images to HD resolution on Retina devices or iPad . It won t look any better . 2 . Don t downscale HD images for non-Retina devices . Your textures will still use 4x the memory on devices that have half or even a quarter of the memory available . In addition downscaling images is bad for performance because it has to be done by the CPU on older devices . While you could downscale the image and save the downscaled texture it adds a lot more complexity to your code and will increase the loading time . Comment : Thanks . My confusion is now gone after this answer .",
"Question : I have a simple app where the UI is created using storyboard . I have a login screen with an icon and a login button . It is showing up when I run on iPhone but on iPad . Both in simulator and on device . To check if it was due to my constraints I just dropped one label without any constraints and view with blue background . Even these are not showing up . Build settings has Deployment Info -- Devices set to Universal . Any pointers to what is wrong will be greatly appreciated . EDIT .. . .. . I tried the following . In my app after successful login UI enters a tab-view controller . If I disable the showing of login screen the app is entering the tab view controller and displaying it properly on the iPad too . I have no idea why the login screen is not showing up on the iPad . EDIT to add details requested by Islam .. . .. . Code .. . .. . AppDelegate checks if user is logged in . If no shows the login screen else shows the TabViewOCntrolelr . The TabViewCOntroller part is showing up on the iPad and iPhone .. . .. . ViewCOntroller code does nothing fancy . Just displays the view when user clicks Google Sign-in button and completes the login it will be notified through KVO that login has completed . At which point it calls self dismissViewControllerAnimated : YES completion : nil to dismiss itself and tab view controller will be shown .. . .. . I have attached screen shots to https : drive.google.com folderview id 0B1PZ4somNxNtNGkzZzY2cXYwU1U usp sharing https : drive.google.com folderview id 0B1PZ4somNxNtNGkzZzY2cXYwU1U usp sharing .. . .. . with 1 . Main.Storyboard and Preview screen of iPhone and iPad showing that iPad shows nothing while iPhone shows the view .. . .. . 2 . Settings of various menus associated with ViewController .. . .. . 3 . How the login screen shows up in the simulator Comment : Can you add a screenshot of your storyboard and or code snippet you use to manipulate the views Comment : Thanks for looking into it . I have added the info you have requested as edit . Please let me know if you need anything else . .. . Answer : It seems that you add your views not in wAny hAny mode bottom side in your storyboard . If you add your views in wRegular hRegular for example mode you will see your views only on iPads . And vice-verse . Check your view On bottom of Attributes inspector you probably see something like this .. . .. . enter image description here http : i.stack.imgur.com olUPS.png .. . .. . To solve this you can check Installed and your view will be installed on all size classes . Read this tutorial http : www.raywenderlich.com 113768 adaptive-layout-tutorial-in-ios-9-getting-started it is good place to start . Comment : Thanks looks like that is the issue . Will read the tutorial . Comment : @SmartHome anytime",
"Question : I want to achieve the same as the guy in this question http : stackoverflow.com questions 9146625 excluding-iphone3gs-and-down-from-downloading-my-app but using a universal App . That is including all the iPad versions and all the iPhones and iPods that have retina-display . I think that the keys I need to add to my info.plist file in the UIRequiredDeviceCapabilities section are : .. . .. . armv7 .. . front-facing-camera iphone .. . front-facing-camera ipod .. . .. . What I m not sure of is if the iphone and ipod suffixes are enough to let the system know that I want to include the iPad 1 which does not have a front Camera .. . .. . Can anyone confirm that this is the correct way to do this The guys at the apple support portal would only point me to the docs and guides but I haven t found any real example of what I want to do . Comment : Did they direct you to any part of the documentation specifically Comment : Yup : link http : developer.apple.com library ios documentation iPhone Conceptual iPhoneOSProgrammingGuide AdvancedAppTricks AdvancedAppTricks.html apple ref doc uid TP40007072-CH7-SW6 There s an example using the ipad suffix after a valid key . .. . Answer : You can t use suffix . This keys allows you to list hardware-like capabilities that your app needs . So. . let s say : microphone - your app need microphone You can t say I need microphone. . if is iPad .. . Comment : It seems you re right . Do you know any way to achieve what I m trying to do this page http : developer.apple.com library ios documentation iPhone Conceptual iPhoneOSProgrammingGuide AdvancedAppTricks AdvancedAppTricks.html apple ref doc uid TP40007072-CH7-SW6 explains how to use the suffix but it may work for some keys only . Comment : Having the App already available for iPad is it OK to assume that if I use the front-facing-camera key for the next version it will restrict only the older iPhones and iPods but will keep allowing the iPad 1 Comment : NO iPad1 will be excluded .. . Sorry no suffix for UIRequiredDeviceCapabilities . UIRequiredDeviceCapabilities Cannot Be Changed in App Updates Developers can add restrictions to UIRequiredDeviceCapabilities on app updates provided any device that is dropped cannot support the min os version specified . oleb.net blog 2011 12 http : oleb.net blog 2011 12 uirequireddevicecapabilities-cannot-be-changed-in-app-updates Comment : You can add just armv7. . and detect the device type UIDevice currentDevice . For iPod G2 G3 . . or whatever. . you can add some alerts : due to hardware requirements - on your device you can encounter some minor flaws.. . Comment : so... . who was right",
"Question : I m working on an iOS 8 app and saw that it s possible to release an universal app for iPhone and iPad . If you use non-consumable in-app purchases for an universal app do users need to buy them only once and can use them on both devices or do they need to purchase them for iPhone and iPad Comment : make sure to implement restore in-app feature within your app .. . Answer : Non-consumable products are purchased once by users and do not expire or decrease with use . For example new race tracks for a game could be implemented as non-consumable products . Means : If you used same iTune account credential then you can download as free . Apple Developer https : developer.apple.com library ios documentation LanguagesUtilities Conceptual iTunesConnectInAppPurchase Guide Chapters CreatingInAppPurchaseProducts.html",
"Question : My app is a universal app i.e . the app is for iPhone portrait and iPad landscape . I searched a lot about how to deal with iPhone and iPad and I found that I can make my add adaptive using size classes especially after IOS 8 size classes http : stackoverflow.com a 26368117 4498576 .. . .. . my question is : .. . .. . 1 . Is this solution is a the best one even if the design wan t simple 2 . I have a lot of xib files in my app . Can I use size classes in this case Or I need two xib one for iPhone one for iPad thanks . Comment : Size classes where create so you do not need two different files for iPhone to iPad . And yes you just change the NIB file to use the size classes just enable size classes on the first tab for the nib property inspector . .. . Answer : Yes you can use size class and AutoLayout . see the following screen shot there is tick mark on right side in File inspector . enter image description here http : i.stack.imgur.com Q9w6d.png Comment : thanks for answer . but does that work even if the xib was for tableview cell collectionView cell . . because when i create it there is a choice if i want it for iPad or iPhone . Comment : you need to use auto-layout as well only size class in not enough Comment : what did you mean by auto-layout Comment : Check what is autolayout developer.apple.com library ios documentation UserExperience https : developer.apple.com library ios documentation UserExperience Conceptual AutolayoutPG Introduction Introduction.html that manage subview s parent view",
"Question : I have written an iPhone and iPad universal app which runs fine in the iPad simulator on Xcode but I would now like to test the iPhone functionality . I seem unable to run the iPhone simulator with this code as it always defaults to the iPad Instead I tried to run on the device and as it begins to run I get the following error : .. . .. . As the App is built programmatically rather than using XIB s I ve split the 2 device logics using the following lines in the main.m method : .. . .. . From that point forth they use different AppDelegates and I ve checked my headers to ensure the UISplitView is never used nor imported via the Phone logic . How do I avoid this error and is there a better way to split the universal logic paths in this programmatically-created app Comment : You done right except direct checking if UI USER INTERFACE IDIOM UIUserInterfaceIdiomPad check this link for nice utility method cocoabugs.blogspot.com 2010 09 http : cocoabugs.blogspot.com 2010 09 checking-device-is-ipad-or-iphone-in.html Comment : And how to find references to new APIs that didn t exist pre-4 Great answer here http : stackoverflow.com questions 7790497 iphone-app-developed-with-sdk-4-2-requires-backward-compatibility-with-ios-3-1 .. . Answer : That error is being triggered because you didn t weak-link the UIKit framework . The UIKit framework in iPhone OS 3.2 added the UISplitViewController and if you link it in as normal your application will assume those symbols exist on 3.0 where they don t . To weak-link a framework find your application target in Xcode inspect it and go to the General tab . At the bottom of that tab should be a list of frameworks with a column for Type . Change the Type for UIKit from Required to Weak and rebuild your application . That should take care of the runtime errors . Your conditional logic is sound but I tend to share an application delegate and do the interface-specific layout further down the line . Update : 12 21 2011 As of iOS 4.2 you should no longer need to weak link frameworks to prevent errors like this . As Marco Arment describes http : www.marco.org 2010 11 22 supporting-older-versions-of-ios-while-using-new-apis if you build with iOS 4.2 or later and target down to iPhone OS 3.1+ individual classes are now weak linked and should have their +class method return nil if the class does not exist on the currently running version of the OS . Comment : Great many thanks . I do find the documentation a little lacking in substance in this area . Comment : @andybee : The iPad Programming Guide has a good section on creating universal applications : developer.apple.com iphone library documentation General http : developer.apple.com iphone library documentation General Conceptual iPadProgrammingGuide StartingYourProject StartingYourProject.html apple ref doc uid TP40009370-CH9-SW2 and the Introducing Universal Applications for iPhone OS PDF is worth reading as well : devimages.apple.com iphone resources http : devimages.apple.com iphone resources introductiontouniversalapps.pdf Comment : check this link for nice utility method cocoabugs.blogspot.com 2010 09 http : cocoabugs.blogspot.com 2010 09 checking-device-is-ipad-or-iphone-in.html Comment : In XCode 4.2 this is at target - Build Phases - Link Binary with Libraries - change framework from Required to Optional . Comment : You don t need to weak-link if you get the class dynamically using NSClassFromString"
]
} | [
"yes-answer-long",
"yes-answer-short"
] | iphone | UNK_RELATION |
experience-editor@content-management-system@105 | experience-editor -- experience-editor is the name for the wysiwyg editor for version 8 of the sitecore @placeholder . | {
"confidence": [
68.7552490234375,
52.66431427001953,
52.65707015991211,
51.70454788208008,
51.57065963745117,
51.233489990234375,
49.881778717041016,
48.31560134887695,
48.31244659423828,
48.1748046875,
48.034820556640625,
46.42958068847656,
46.34593963623047,
46.34593963623047,
46.22935485839844,
44.02718734741211,
41.07121658325195,
40.44129180908203,
40.44129180908203,
40.44129180908203,
38.755088806152344,
38.755088806152344,
38.47013854980469,
37.79930877685547,
36.8275260925293,
36.8275260925293,
35.01072692871094,
34.707542419433594,
33.69792938232422,
32.77997589111328,
31.987035751342773,
30.54501724243164,
30.455223083496094,
30.168588638305664,
29.009990692138672,
28.221786499023438,
27.27495002746582,
27.087581634521484,
26.994373321533203,
26.544532775878906,
26.21688461303711,
25.110830307006836,
24.688915252685547,
24.648509979248047,
23.63718032836914,
23.51280975341797,
23.51280975341797,
22.761350631713867,
22.761350631713867,
22.534786224365234,
22.20957374572754,
21.574989318847656,
21.574989318847656,
21.308120727539062,
20.926509857177734,
20.840299606323242,
20.616697311401367,
20.590042114257812,
20.361074447631836,
20.361074447631836,
19.97696876525879,
19.97696876525879,
19.97696876525879,
19.97696876525879,
19.97696876525879,
18.998945236206055,
18.16971778869629,
17.71584701538086,
17.71584701538086,
16.941070556640625,
16.941070556640625,
16.242155075073242,
15.91928482055664,
15.91928482055664,
15.91928482055664,
15.91928482055664,
15.91928482055664,
15.91928482055664,
15.91928482055664,
15.91928482055664,
15.91928482055664,
15.91928482055664,
15.91928482055664,
15.91928482055664,
15.91928482055664,
15.91928482055664,
15.91928482055664,
15.91928482055664,
15.91928482055664,
15.91928482055664,
15.91928482055664,
15.91928482055664,
15.91928482055664,
14.453105926513672,
14.311007499694824,
14.311007499694824,
14.311007499694824,
14.311007499694824,
14.311007499694824,
14.311007499694824
],
"content": [
"Sitecore will not load the ribbon in experience-editor .",
"Next I tried to change item name to tr instead of t and kept display name as test - tried to add components in experience-editor - component is added successfully in experience-editor as well as content editor .",
"We are using the master DB when in experience-editor",
"If I go to the Experience Editor : .. . .. . 1 .",
"Is it possible to make sitecore experience-editor ribbon button trigger .aspx page in pop-up window",
"Question that covers both the Experience Page Editor and the Content Editor .",
"I have seen an issue with the Experience Editor if this file is not included .",
"Is there some trick with placeholders in Sitecore MVC to ensure that they are always selectable in the strike page-editor strike experience-editor even when they don t contain any renderings",
"For eg : I created a page named t - opened experience-editor - tried to add components - causes error message an error occurred to appear in experience-editor but when I go to Content editor that component is added .",
"If I try to open the Experience Editor for these pages it either does not open the Editor or it opens the Editor but adding any component causes an error message .",
"Just wanted to check if there s anyone here already encountered the error traces below when opening the Sitecore Experience Editor .",
"Full details in this blog post http : sitecorepromenade.blogspot.com.au 2015 06 experience-editor-edit-frame-button.html re Experience Editor Edit Frame Button .",
"I opened the Home page in Experience Editor I got following error : .. . .. .",
"sometimes experience-editor can t decide - load wildcard or item from structure .",
"Next I tried changing the display name of the item to test and kept item name as it is t - tried to add components in experience-editor - causes same error message to appear in experience-editor but when I go to Content editor that component is added .",
"In my cshtml file I have mapped the productIds into an editframe to enable editing from experience-editor : .. . .. . Above should be alright and it also represented correctly in experience-editor except I cannot change the values of the multilist field .",
"Before moving on to Sitecore 8 Sitecore 7 used to show the breadcrumb in both German as well as in English as selected in Experience tab .",
"When i try to view in Experience Editor its showing some raw JSON Data like below .",
"150427 and they work fine in Experience Editor and able to add more components wherever I want .",
"Multilist field in experience-editor http : i.stack.imgur.com eHw2H.png .. . .. . Can anyone tell me what I m doing wrong",
"I have a strange issue whereby when I edit a rich text field in the experience-editor and save the page it takes me to the layout not found page .",
"I ve noticed that if I change to the shared layout within the experience-editor via the presentation tab and perform the same edit - it works fine .",
"@NatashaBatra well in this situation I probably would do following steps : 1 open a browser console in experience-editor view 2 check ajax request made by experience-editor if error occured - there should be visible description 3 if error wouldn t say nothing to you please copy-paste it here",
"But now in Sitecore 8 this is not happening.The breadcrumb path is shown in German no matter language changed in Experience tab .",
"But when i choose Experience Editor from desktop its showing all Default contents correctly along with the editing Ribbon Default Page .",
"While creating a new page for my site I found out that pages named t u n or o can not be edited properly in the Experience Editor .",
"In Sitecore 8 :",
"Currently I can t think of a reason to do this but I can see how it s very easy to accidentally edit a standard values item in the experience-editor in the wrong mode .",
"actaully if I poen page-editor in sitecore vanilla instance it s doesn t show me this error but getting this error on the project team have develop .",
"I was playing around with dynamic placeholders and was struck by a prefilling concept.Is there a way to select a default rendering for one of my placeholders which would avoid the select rendering dialog in experience-editor",
"So all I now see is the spinner and nothing else .. . .. . Installed Sitecore version : 8-update 5",
"In Content editor you might need to update core db .",
"Got an answer from the Sitecore Community that might be helpful - .. . .. . In experience-editor you can create an edit frame button and use it for your rendering.. . from what i can see your rendering data source points at decades folder .",
"enter image description here http : i.stack.imgur.com BVXOK.png .. . .. . I have used this post http : www.bugdebugzone.com 2014 08 sitecore-page-editor-mode-renders.html .. . .. . to solve this .",
"When switching back to the content editor I can see that final layout has been completely wiped the shared remains intact .",
"http : jockstothecore.com sitecore-8-ribbon-button-transfiguration but I can t find any information about triggering .aspx page .",
"All those work fine for me on Sitecore 8 Update 6 .",
"Sync with Sitecore .",
"inside your rendering check if you are in page-editor and use a custom edit frame to display custom buttons .",
"What I m thinking of is : .. . .. . Content Editor - Against the Timeline data item their is a multi-list field of Decades - is there any easy way to add a Create button next to it that would replicate the same event as-if you went to the Decades data source and clicked insert item .. . Experience Editor - Remove the use of the Placeholder and add a similar Create button that will replicate the insert item event - once item created and properties set refresh the control to display according .",
"Item : sitecore : master Guid .",
"I constantly get this message .. . .. . Sitecore has permission to access this file .",
"Search for Final in the Sitecore templates folder in the file system .",
"Please make sure at the very minimum your page is formatted like this : .. . .. . This should eliminate the big chunk of JSON on top and enable all page-editor UI elements .",
"Does it happen on a clean install of Sitecore",
"Would be worth contacting Sitecore support with this they d be able to assist you further in debugging the issue .",
"Where in sitecore do I configure what fields are displayed when I click this button",
"I am using a simple MVC sitecore project .",
"Yes its happend on a clean install of Sitecore .",
"When you open sitecore content Applications WebEdit Edit Frame Buttons Default path in core database you see list of children .",
"Multilist field in Sitecore Backend http : i.stack.imgur.com ZMNDj.png .. . .. . The field and selected values are mapped via Glass Mapper for Sitecore like this : .. . .. . ProductIds is the corresponding multilist field .",
"Ensure that at least one property has been marked to contain the Sitecore ID .",
"This behavior occurs because sitecore tries to find language in your url .",
"I have created a number of controls that link-to various data sources but I m finding the user-experience lacking .",
"It s easy to reset presentation details back to standard values in Sitecore but to my knowledge you can t reset just the final renderings .",
"About an hour later stumbled on this kb.sitecore.net articles 296299 https : kb.sitecore.net articles 296299 Funny thing is I m using Sitecore 8 and its still there .",
"Have you changed the option to show item name instead of display name",
"My command looks like this : command name item : showDashboard type Sitecore.Starterkit.customcode.Reports MyProject",
"Is the item name in German",
"No...it shows display name but in German .",
"I have set up a project in Sitecore 8.1 MVC using Glass mapper v4 .",
"Trust me it will be much easier if you check Sitecore logs and add stack-trace to your question .",
"You should try on a clean install of Sitecore to make sure the problem is not related to your code .",
"Hello I am using Sitecore .NET rev 150812 and still encountering the issue .",
"I have a slight problem : I have an item in sitecore which contains a multi list field with search looking like this : .. . .. .",
"Taken from here - http : www.bugdebugzone.com 2014 06 how-to-add-sublayout-to-sitecore-item.html .. . .. . Also a couple of other blogs on the topic",
"Neways..item name is in English so it should have taken home instead but its not .",
"A placeholder settings item exists in Sitecore with the correct Placeholder Key matching that declared in the cshtml rendering .",
"In xEditor you can use sitecore JS commands with ajax and back-end codes .",
"Great finally problem solved actually it was dll version issue .",
"I replace the existing ContentSearch dll with version 4.1 and it s solved .. . .. . Thanks",
"As a workaround we can add a string to the item name but I am not able to figure out why is it happening for these letters .",
"It was possible before speak-ui was introduced by assigning a command to the button s click field .",
"There is a lot of tutorials describing how to use XML controls e.g .",
"In the tutorial you posted I will just modify the code-snippets to reflect what you need to do .",
"Considering you have done everything else .",
"In the part Spell Two .. . .. . In the command class you should do something like this if you need to wait for postback : .. . .. . If you just want to show something : .. . .. . For the javascript :",
"Thanks for your answer but I have already figured it .",
"I haven t tested your solution but since your approach looks the same I ll mark it as the correct answer .",
"I also get the following error in the log file .",
"I have no idea why this has started happening now .",
"Can you check that the configuration file App Config Include .Sitecore.Speak.Important.config exists in your web root .",
"I can confirm that the file does exist and is readable .",
"Currently it lists 3 of the 7 fields that are on the template I d like to add another to be editable .",
"Screenshot http : i.stack.imgur.com cGsf1.png",
"It is one of Edit Frame buttons .",
"When you open your control markup you see something like this : .. . .. . It differs for MVC but is similar .",
"You need to get Buttons attribute value .",
"It is your buttons .",
"For your case it should be only one button : Edit Item .",
"This item has Fields field where using pipe as delimiter is list of fields that are available for editing .",
"Perfect thanks",
"Googling is hard when you don t know what things are called .",
"There also used be an issue when using uppercase characters in placeholder names not sure if this has been fixed yet or not I opt for all lowercase : sitecorepromenade.blogspot.co.uk 2014 12 http : sitecorepromenade.blogspot.co.uk 2014 12 sitecore-7x-mvc-and-placeholder.html",
"enter image description here http : i.stack.imgur.com 2XIYr.jpg for English .. . .. . InSitecore 7 :",
"enter image description here http : i.stack.imgur.com mhVqf.jpg for English .. . .. . I am not sure what is causing this and where to look or start looking .",
"All help appreciated",
"Do you have any custom code relating to setting the language",
"No .",
"i dont ."
]
} | {
"confidence": [
65.25828552246094,
64.12657928466797,
60.20814895629883,
57.96803283691406,
52.70439910888672,
52.29946517944336,
51.970855712890625,
49.479984283447266,
48.92674255371094,
47.735877990722656,
45.77873611450195,
45.58675003051758,
42.69777297973633,
35.279815673828125,
26.646507263183594
],
"content": [
"Question : Sitecore will not load the ribbon in experience-editor . I constantly get this message .. . .. . Sitecore has permission to access this file . I also get the following error in the log file . I have no idea why this has started happening now . So all I now see is the spinner and nothing else .. . .. . Installed Sitecore version : 8-update 5 .. . Answer : Can you check that the configuration file App Config Include .Sitecore.Speak.Important.config exists in your web root . I have seen an issue with the Experience Editor if this file is not included . Comment : I can confirm that the file does exist and is readable . Comment : Would be worth contacting Sitecore support with this they d be able to assist you further in debugging the issue .",
"Question : While creating a new page for my site I found out that pages named t u n or o can not be edited properly in the Experience Editor . If I try to open the Experience Editor for these pages it either does not open the Editor or it opens the Editor but adding any component causes an error message . For eg : I created a page named t - opened experience-editor - tried to add components - causes error message an error occurred to appear in experience-editor but when I go to Content editor that component is added . Next I tried changing the display name of the item to test and kept item name as it is t - tried to add components in experience-editor - causes same error message to appear in experience-editor but when I go to Content editor that component is added . Next I tried to change item name to tr instead of t and kept display name as test - tried to add components in experience-editor - component is added successfully in experience-editor as well as content editor . As a workaround we can add a string to the item name but I am not able to figure out why is it happening for these letters . Did someone encounter this issue Actually I need to add glossary in my website so i have to create item names by single letters only from A to Z so need help on this . Comment : All those work fine for me on Sitecore 8 Update 6 . You should try on a clean install of Sitecore to make sure the problem is not related to your code . Comment : What does the logs say Comment : Tried these combinations in Sitecore.NET 8.0 rev . 150427 and they work fine in Experience Editor and able to add more components wherever I want . Have you tried what @ ukasz Skowro ski is suggesting Comment : Hello I am using Sitecore .NET rev 150812 and still encountering the issue . .. . Answer : How your site configuration looks like Do you have languageEmbedding set to asNeeded If the answer is yes - try to change it to never or always . This behavior occurs because sitecore tries to find language in your url . There is also another options - do you use wildcards inside your structure sometimes experience-editor can t decide - load wildcard or item from structure . The solution is move wildcard into other directory . Comment : Hi there are no wildcards in my structure . Also this issue is occurring on pre-prod and prod environments . It is not occurring on my local machine and development-environment . I compared config files of all the environments there are no changes related to languageEmbedding property . The setting is same across all the environments . Is there any other property which i can check Comment : @NatashaBatra well in this situation I probably would do following steps : 1 open a browser console in experience-editor view 2 check ajax request made by experience-editor if error occured - there should be visible description 3 if error wouldn t say nothing to you please copy-paste it here",
"Question : null .. . Answer : I have a slight problem : I have an item in sitecore which contains a multi list field with search looking like this : .. . .. . Multilist field in Sitecore Backend http : i.stack.imgur.com ZMNDj.png .. . .. . The field and selected values are mapped via Glass Mapper for Sitecore like this : .. . .. . ProductIds is the corresponding multilist field . In my cshtml file I have mapped the productIds into an editframe to enable editing from experience-editor : .. . .. . Above should be alright and it also represented correctly in experience-editor except I cannot change the values of the multilist field . Multilist field in experience-editor http : i.stack.imgur.com eHw2H.png .. . .. . Can anyone tell me what I m doing wrong",
"Question : I have a strange issue whereby when I edit a rich text field in the experience-editor and save the page it takes me to the layout not found page . When switching back to the content editor I can see that final layout has been completely wiped the shared remains intact . I ve noticed that if I change to the shared layout within the experience-editor via the presentation tab and perform the same edit - it works fine . What would cause the final layout to be wiped Comment : Have you checked the log files and looked for custom event handlers or pipeline processors in the config Comment : Did you work in Web DB If you correctly worked in Master DB can you remove other components on the page and try again Comment : We don t have any custom pipelines for saving items . The log files only show a warning 5520 16 : 27 : 01 WARN Request is redirected to no layout page . Item : sitecore : master Guid . We are using the master DB when in experience-editor Comment : @Jihyun if I remove a component and save it works fine .. . Answer : I ve noticed that this can be caused by having Final Renderings set on a template s standard values . Currently I can t think of a reason to do this but I can see how it s very easy to accidentally edit a standard values item in the experience-editor in the wrong mode . It s easy to reset presentation details back to standard values in Sitecore but to my knowledge you can t reset just the final renderings . To avoid having to go through each failing template and manually reset and re-add all the added renderings I ve found an easy way to fix it if you have TDS or similar installed . 1 . Search for Final in the Sitecore templates folder in the file system . 2 . Delete all the instances of this Final Renderings field From the ----field---- line until the next one . 3 . Sync with Sitecore . Not really a fix to the issue but when I had to fix 20 templates where this was happening it saved me a lot of time and thought it was worth a share .",
"Question : Question that covers both the Experience Page Editor and the Content Editor . I have a Timeline spotlight that users can add to a page - it has a list of decades at the top and underneath each decade there is a list of Years with their text and images . I have created a number of controls that link-to various data sources but I m finding the user-experience lacking . If I go to the Experience Editor : .. . .. . 1 . Select Timeline Placeholder and Add Item .. . 2 . Popup comes up to select create the data source .. . .. . Then the only way to add a decade is by going to the Decade datasource creating a new item there and then going back to the Timeline data source and adding this item their . What I m thinking of is : .. . .. . Content Editor - Against the Timeline data item their is a multi-list field of Decades - is there any easy way to add a Create button next to it that would replicate the same event as-if you went to the Decades data source and clicked insert item .. . Experience Editor - Remove the use of the Placeholder and add a similar Create button that will replicate the insert item event - once item created and properties set refresh the control to display according . Anyone came across something similar before Any better solutions Thanks Dan .. . Answer : Got an answer from the Sitecore Community that might be helpful - .. . .. . In experience-editor you can create an edit frame button and use it for your rendering.. . from what i can see your rendering data source points at decades folder . inside your rendering check if you are in page-editor and use a custom edit frame to display custom buttons . one of those will be an insert button to allow you to create a new child under decades . Full details in this blog post http : sitecorepromenade.blogspot.com.au 2015 06 experience-editor-edit-frame-button.html re Experience Editor Edit Frame Button .",
"Question : I am using a simple MVC sitecore project . I just given only one field in rendering page . When i try to view in Experience Editor its showing some raw JSON Data like below . enter image description here http : i.stack.imgur.com BVXOK.png .. . .. . I have used this post http : www.bugdebugzone.com 2014 08 sitecore-page-editor-mode-renders.html .. . .. . to solve this . when i include that webedit.css in my main layout then the Raw data vanished . But i am not able to see the Editing Ribbon . But when i choose Experience Editor from desktop its showing all Default contents correctly along with the editing Ribbon Default Page . Can anyone tell me why i am not able to see that editing ribbon on my page Comment : It s always like that Or just after a save Comment : Seems like you have a buggy deployment . If this a new project Does it happen on a clean install of Sitecore Comment : Yes its happend on a clean install of Sitecore . And its always like that only . Comment : if this is data from template field did you pass the data as HtmlString or call the dataType as @Html.Raw .. . Answer : This is because your layout razor cshtml file has valid HTML markup skeleton in-place . Please make sure at the very minimum your page is formatted like this : .. . .. . This should eliminate the big chunk of JSON on top and enable all page-editor UI elements . Comment : Got it . . Thanks",
"Question : Is it possible to make sitecore experience-editor ribbon button trigger .aspx page in pop-up window It was possible before speak-ui was introduced by assigning a command to the button s click field . There is a lot of tutorials describing how to use XML controls e.g . http : jockstothecore.com sitecore-8-ribbon-button-transfiguration but I can t find any information about triggering .aspx page . My command looks like this : command name item : showDashboard type Sitecore.Starterkit.customcode.Reports MyProject .. . Answer : In the tutorial you posted I will just modify the code-snippets to reflect what you need to do . Considering you have done everything else . In the part Spell Two .. . .. . In the command class you should do something like this if you need to wait for postback : .. . .. . If you just want to show something : .. . .. . For the javascript : Comment : Thanks for your answer but I have already figured it . I haven t tested your solution but since your approach looks the same I ll mark it as the correct answer .",
"Question : Question that covers both the Experience Page Editor and the Content Editor . I have a Timeline spotlight that users can add to a page - it has a list of decades at the top and underneath each decade there is a list of Years with their text and images . I have created a number of controls that link-to various data sources but I m finding the user-experience lacking . If I go to the Experience Editor : .. . .. . 1 . Select Timeline Placeholder and Add Item .. . 2 . Popup comes up to select create the data source .. . .. . Then the only way to add a decade is by going to the Decade datasource creating a new item there and then going back to the Timeline data source and adding this item their . What I m thinking of is : .. . .. . Content Editor - Against the Timeline data item their is a multi-list field of Decades - is there any easy way to add a Create button next to it that would replicate the same event as-if you went to the Decades data source and clicked insert item .. . Experience Editor - Remove the use of the Placeholder and add a similar Create button that will replicate the insert item event - once item created and properties set refresh the control to display according . Anyone came across something similar before Any better solutions Thanks Dan .. . Answer : I m actually working on the same features for our new implementation . In Content editor you might need to update core db . In xEditor you can use sitecore JS commands with ajax and back-end codes . My suggestion is that you can create a rendering component and assign the component into the named placeholder instead of remvoing it . Then call the back-end and javascript-events on the rendering item . This could be a starting point . Javascript function : Comment : Thanks Jihyun - will look into it",
"Question : Just wanted to check if there s anyone here already encountered the error traces below when opening the Sitecore Experience Editor . I tried the workaround of reverting to SHEER UI but I didn t do the trick . Described here : https : community.sitecore.net developers f 5 t 3049 .. . Answer : Actually after enabling the necessary configuration related to Content Testing Website App Config Include ContentTesting the said error didn t appear anymore .. . .. . In my case : .. . .. . Sitecore.ContentTesting.ApplicationDependencies.config .. . Sitecore.ContentTesting.config .. . Sitecore.ContentTesting.Intelligence.config .. . Sitecore.ContentTesting.Mvc.config .. . Sitecore.ContentTesting.Processing.Aggregation.config .. . Sitecore.ContentTesting.Solr.IndexConfiguration.config",
"Question : I have set up a project in Sitecore 8.1 MVC using Glass mapper v4 . I opened the Home page in Experience Editor I got following error : .. . .. . enter image description here http : i.stack.imgur.com OIHvA.png .. . .. . Did I miss something . Thanks Comment : Sometimes people have way too much faith in others . You wrote that you have error An error occured and you think we can in some magical way read in your computer s mind and help you with your issue . Trust me it will be much easier if you check Sitecore logs and add stack-trace to your question . Maybe even the question will not be necessary cause the stack-trace would tell you where the issue is.. . Comment : Just to be fair he could be a beginner and not even know how to use F12 or developer tools to even start there . He is just looking for some guiding lights to point him in the right direction because he obviously does not know where to look . Otherwise he wouldn t ask such a seemingly amateur question no offense to thread starter Comment : actaully if I poen page-editor in sitecore vanilla instance it s doesn t show me this error but getting this error on the project team have develop . don t know from where to start debugging.I though this is general error if someone has faced earlier Comment : I have gone through the log file and found this error : You cannot save a class that does not contain a property that represents the item ID . Ensure that at least one property has been marked to contain the Sitecore ID . Type : Glass.Mapper.Sc.Fields.Link after that I added virtual Guid Id field in all model classes but still getting the same error Comment : Sukhi please post your model . .. . Answer : Great finally problem solved actually it was dll version issue . I replace the existing ContentSearch dll with version 4.1 and it s solved .. . .. . Thanks",
"Question : null .. . Answer : Before moving on to Sitecore 8 Sitecore 7 used to show the breadcrumb in both German as well as in English as selected in Experience tab . But now in Sitecore 8 this is not happening.The breadcrumb path is shown in German no matter language changed in Experience tab . In Sitecore 8 : enter image description here http : i.stack.imgur.com 2XIYr.jpg for English .. . .. . InSitecore 7 : enter image description here http : i.stack.imgur.com mhVqf.jpg for English .. . .. . I am not sure what is causing this and where to look or start looking . All help appreciated Comment : Do you have any custom code relating to setting the language Comment : No . i dont . Also i checked the speak-- breadcrumb.js but i couldnt find any issue . Comment : Is the item name in German Have you changed the option to show item name instead of display name Comment : No...it shows display name but in German . Neways..item name is in English so it should have taken home instead but its not . Comment : What is your client language for the user you have logged in",
"Question : Is there some trick with placeholders in Sitecore MVC to ensure that they are always selectable in the strike page-editor strike experience-editor even when they don t contain any renderings My controller rendering declares the placeholder in the cshtml view as follows : Comment : You mean you are having a problem seeing empty placeholders in the xEditor If so make sure you have the placeholder defined in layout placeholder settings . Comment : I already have a placeholder settings item defined for it . Comment : Are you logged in as admin With settings present and placeholder key has an exact match then you should see a canvas area . Otherwise I ve experienced a situation where it looked like it wasnt rendering but it contained a rendering which returned html markup with 0 height . Comment : Have you checked the Editable option on the placeholder item Comment : @jammykam I had experimented with that but it appeared not to work . Turns out that it was a CSS issue.. . .. . Answer : To ensure placeholder visibility and selectability you need to ensure the following : .. . .. . 1 . A placeholder settings item exists in Sitecore with the correct Placeholder Key matching that declared in the cshtml rendering . 2 . The placeholder settings item has the Editable setting checked . 3 . The CSS in the page is not preventing the placeholder from being visible . Comment : There also used be an issue when using uppercase characters in placeholder names not sure if this has been fixed yet or not I opt for all lowercase : sitecorepromenade.blogspot.co.uk 2014 12 http : sitecorepromenade.blogspot.co.uk 2014 12 sitecore-7x-mvc-and-placeholder.html Comment : @jammykam yes its still a problem unless you install the fix . After trying everything else we changed the case and the problem disappeared . About an hour later stumbled on this kb.sitecore.net articles 296299 https : kb.sitecore.net articles 296299 Funny thing is I m using Sitecore 8 and its still there . Comment : @Fred Ha I hadn t seen that article . I ve always used all lowercase just a personal preference so had never seen the issue.. .",
"Question : Is there some trick with placeholders in Sitecore MVC to ensure that they are always selectable in the strike page-editor strike experience-editor even when they don t contain any renderings My controller rendering declares the placeholder in the cshtml view as follows : Comment : You mean you are having a problem seeing empty placeholders in the xEditor If so make sure you have the placeholder defined in layout placeholder settings . Comment : I already have a placeholder settings item defined for it . Comment : Are you logged in as admin With settings present and placeholder key has an exact match then you should see a canvas area . Otherwise I ve experienced a situation where it looked like it wasnt rendering but it contained a rendering which returned html markup with 0 height . Comment : Have you checked the Editable option on the placeholder item Comment : @jammykam I had experimented with that but it appeared not to work . Turns out that it was a CSS issue.. . .. . Answer : In case you are using some kind of dynamic placeholder keys there is a setting that controls if empty placeholders without settings are editable in the Sitecore.ExperienceEditor.config . The default-value is false . If set to true empty placeholders can be edited .",
"Question : I was playing around with dynamic placeholders and was struck by a prefilling concept.Is there a way to select a default rendering for one of my placeholders which would avoid the select rendering dialog in experience-editor Scenario : I have a rendeing called PageHead which has three renderings . One of them is a placeholder PageTeaserPh which currently allows two renderings : one is PageTeaser and second PageTeaserWithImage . I want the placeholder PageTeaserPh to always have the rendering selected as PageTeaser and therefore avoid the dialog Select rendering . I did some homework and was wondering if this is something related to Standard values we can have it at template level not sure for renderings though and also i have heard of command template concept not in-depth . Any and all help appreciated . .. . Answer : You can have renderings assigned on standard values of templates each new item would then have your PageTeaser rendering . If you wanted to automate this process have a look at the mvc.getXmlBasedLayoutDefinition pipeline we are injected common renderings by extending this pipeline . Updated .. . .. . I ve found some code samples and blog posts that should help point you in the right direction for manipulating the layout details . Taken from here - http : www.bugdebugzone.com 2014 06 how-to-add-sublayout-to-sitecore-item.html .. . .. . Also a couple of other blogs on the topic Comment : All i have is a pageteaserPh placeholder and a pagehead sublayout . Not sure how to implement what you say",
"Question : Where in sitecore do I configure what fields are displayed when I click this button Currently it lists 3 of the 7 fields that are on the template I d like to add another to be editable . Screenshot http : i.stack.imgur.com cGsf1.png .. . Answer : It is one of Edit Frame buttons . When you open your control markup you see something like this : .. . .. . It differs for MVC but is similar . You need to get Buttons attribute value . When you open sitecore content Applications WebEdit Edit Frame Buttons Default path in core database you see list of children . It is your buttons . For your case it should be only one button : Edit Item . This item has Fields field where using pipe as delimiter is list of fields that are available for editing . Comment : Perfect thanks Googling is hard when you don t know what things are called ."
]
} | [
"yes-answer-long",
"yes-answer-short"
] | content-management-system | UNK_RELATION |
logcat@android@149 | logcat -- logcat is the command to view and filter information from the android logging system but more often the name is used as a synonym for the @placeholder logging system itself . | {
"confidence": [
48.06126403808594,
44.41852951049805,
42.745994567871094,
42.587154388427734,
42.49872589111328,
42.207122802734375,
41.904319763183594,
41.695091247558594,
40.491615295410156,
40.337318420410156,
40.337318420410156,
40.235008239746094,
39.69929504394531,
39.50508499145508,
39.39115524291992,
39.25459671020508,
39.173858642578125,
38.8826904296875,
38.84943771362305,
38.636329650878906,
38.56425476074219,
38.56425476074219,
38.5627555847168,
38.52655792236328,
38.49452209472656,
38.37620544433594,
37.90177536010742,
37.75858688354492,
37.64989471435547,
37.5164909362793,
37.5153694152832,
37.2387809753418,
37.20648193359375,
37.05784225463867,
37.0184326171875,
36.99225997924805,
36.94635009765625,
36.61772155761719,
36.61573791503906,
36.585540771484375,
36.493446350097656,
36.377803802490234,
36.340309143066406,
36.340309143066406,
36.29212188720703,
36.25780487060547,
36.16147232055664,
35.62889862060547,
35.57655715942383,
35.330196380615234,
35.2906379699707,
35.2906379699707,
35.22199249267578,
35.0324592590332,
35.002647399902344,
34.98253631591797,
34.874473571777344,
34.83670425415039,
34.83670425415039,
34.782657623291016,
34.746299743652344,
34.746299743652344,
34.65342712402344,
34.62403869628906,
34.55988311767578,
34.53645324707031,
34.352806091308594,
34.3197021484375,
34.30508041381836,
34.286048889160156,
34.28447723388672,
34.161556243896484,
34.161556243896484,
34.161556243896484,
34.161556243896484,
34.159812927246094,
34.13640594482422,
34.057647705078125,
34.05466079711914,
34.03015899658203,
33.973716735839844,
33.946990966796875,
33.946990966796875,
33.94548034667969,
33.88833999633789,
33.883399963378906,
33.883399963378906,
33.88195037841797,
33.8553466796875,
33.81494140625,
33.79221725463867,
33.76055908203125,
33.75121307373047,
33.75121307373047,
33.75121307373047,
33.73570251464844,
33.70527648925781
],
"content": [
"Type the following command to see the logging : plugin.shell logcat",
"Is there an alternative to logcat or something some type of system logging that I could access and display",
"If you are not able to view it with the above solution you can view the logcat from command-line by typing .. . .. . adb logcat .. . .. . You can view more information from here http : developer.android.com tools help logcat.html .. . .. . Cheers",
"On my linux system .. . .. . android-studio sdk platform-tools adb logcat",
"On my Windows 7 laptop I use adb logcat find com.example.name to filter the system program related logcat output from the rest .",
"How can I access and read the logcat file at system bin logcat from the device using my application .",
"Is it the logcat View in Eclipse that s blank the output of the adb logcat command or both",
"The different LogCat methods are : .. . .. . What are the appropriate situations to use each type of Logging",
"Just add a new logcat filter fill the filter name form .",
"you can use de.mindpipe.android : android-logging-log4j to be able to log into logcat and into a file .",
"Why the Logging in the Logcat is not working for some line in the above code",
"LogCat in Android Studio is showing me only the logs from about a day ago while adb logcat command and DDMS LogCat window works ok",
"Just go to logcat click on Display Saved Filters view then add new logcat filter .",
"MyActivity1 .. . MyActivity2 .. . MyActivity3 .. . MyService .. . .. . In order to filter the logging output from your application MyApp using logcat you would type the following .",
"Is there a logcat buffering or flushing configuration that can be set either on the device or logcat itself to stop this from happpening",
"There is a logCat view you can add Window- Show View...- Other- Android- LogCat .",
"Add this filter to the logcat : . nativeGetEnabledTags .",
"How can I filter Android logcat output by application",
"enter image description here http : i.stack.imgur.com dg4uW.png .. . .. . I saw that this is the standard view for Logcat - How to filter logcat in Android Studio http : stackoverflow.com questions 19931987 how-to-filter-logcat-in-android-studio .",
"to filter the logs on command-line use the below script .. . .. . adb logcat com.yourpackage : v",
"why not use logcat from a command-line",
"The output from the logcat program is piped into the find command .",
"Only then will you get the logcat output in the logcat view .",
"Logcat start automatically by Android Studio .",
"If you have disabled that option then you can enable the logcat view from Window menu - Show view - Logcat .",
"have you cleared the adb logcat command adb logcat -c",
"The logcat information is :",
"Is the logcat command that I used here correct",
"Go to Window - Preferences - Android - Logcat .",
"Use the LogCat filter suggested by Hendrik .",
"LogCat is located here : .. . .. . Window Show View Other Android LogCat .. . .. . I hope this helps .",
"Android logcat application column is always empty .",
"These commands are for viewing logcat from the command-line .",
"On a Windows system or a system without grep simply connect to the device using adb shell then run the command : shell@myDevice : logcat grep MyApp",
"By connecting to logcat you mean issuing a add logcat command",
"Up-vote for Restore logcat view .",
"Is it possible to have a filter that remove the LogCat entries for a specific tag name",
"But I wanted to know if I can read all the logs including system logs from logcat from within an app for current versions of android",
"There is a TextField Filter below the LogCat output .",
"Sometimes application name is blank in logcat and sometimes it s there .",
"In eclipse s logcat view it is possbile to filter by Application for instance : de.myapplication.someapp - so if eclipse s logcat can do that there surely must be a way to do the same when using adb logcat",
"Try the command-line adb logcat and don t filter anything first .",
"Possible duplicate of Filter LogCat to get only the messages from My Application in Android",
"http : stackoverflow.com questions 6854127 filter-logcat-to-get-only-the-messages-from-my-application-in-android",
"Try : Window - Preferences - Android - LogCat .",
"If you use e.printStackTrace this will use the general Java logging methods and it will not appear correctly in Logcat and in some cases it will not be possible to double click on a class name in logcat to jump into the class and method mentioned in the stacktrace .",
"In Eclipse Goto Window- Show View - Other - Android- Logcat .",
"You can filter logcat by tags : stackoverflow.com questions 6173985 http : stackoverflow.com questions 6173985 filter-output-in-logcat-by-tagname",
"DOCS .. . .. . Basic tool from Android to collect analyse logs is the logcat .",
"issue the command .. . .. . . adb -e logcat .. . .. . from the directory which has adb .",
"is it possible with logcat to filter on tags with special-characters",
"Search Filter Logcat http : i.stack.imgur.com TfmrH.png",
"In the Saved Filters part on the left click on the Edit selected logcat filter If Saved Filters is not visible then click on Display Saved Filters View in the Logcat .. . 3 .",
"After that I went back to the main view of Android Studio and selected Restore Logcat view in the right of the Android DDMS tab and there it was",
"This occurs for logcat run from either the command-line or from IntelliJ .",
"possible duplicate of Filter LogCat to get only the messages from My Application in Android",
"Some devices have their logging disabled completely this means that you cannot even do adb logcat with the usb cable connected .",
"BTW is it normal that after redirecting logcat to file I can still see it in Android Studio logcat",
"Go to windows- preference- android- logcat .. . .. . select the option - show logcat if message priority is atleat verbose .",
"Browse through entire logcat and somehow identify the PID of your application and just filter for that in logcat search like this .. . .. . pid : 10036 .. . .. . or whatever your app PID is .",
"LOGCAT :",
"logcat",
"You ll see the application name in Logcat now .",
"Apparantly when logcat is opened and Android Studio is switched to fullscreen mode and back the logcat window is nowwhere to be found .",
"Make sure logcat itself is working use DDMS from Tools- Android and if it does close DDMS window again .. . 2 .",
"Did logcat just stop displaying these Intents or was it just no longer possible for apps to view logcat info not belonging to themselves",
"I have seen this problem using Eclipse Android Studio and Logcat Rabbit .",
"I monitor my logcat from outside Android Studio logcat-color https : github.com marshall logcat-color open beside my emulator on another screen workspace and would like to stop the Android DDMS view from opening within Android Studio automatically .",
"Goto your Logcat and in the Saved Filters part click on Edit selected logcat filter .",
"I m trying to filter logcat output from a real device not an emulator by tag name but I get all the messages which is quite a spam .",
"I m trying to grab some filtered output from logcat through command-line but would prefer to not have a logcat stream opened up for automation purposes .",
"Window Preferences Android Logcat uncheck the option above .",
"This seems to force Android to refresh LogCat on that device .",
"Are there someone who can use the logcat in Android Studio",
"Else click on other at the bottom chose Android - logcat .",
"I also tried restarting android-studio restarting LogCat creating a new project restarting the system and launching android-emulator then code but it still doesn t work .",
"The information that you posted from your logcat is called a stacktrace .",
"Errors in logcat :",
"The Device Monitor shows the application name but in Android Studio s logcat panel the package name is always a question mark .",
"Android s logcat eclipse used to show ActivityManager manager states .. . .. . Like this .. . .. . But the logcat in Android studio never shows anything related to ActivityManager .",
"Did this code work for logging all logcat activity or only for your app s particular activity",
"Logcat has a little icon to the right of logcat .",
"For example to see the SMS logcat messages start logcat with :",
"Is there any possibility to display more string on logcat",
"this answer works in intellij-15 s logcat Edit Filter Configuration which brings up a modal titled Create New Logcat Filter .",
"How can you do this with logcat command-line",
"I guess this may work for the command-line Logcat .",
"logcat somehow connected to the system and receive all messages including messages from wpa-supplicant .",
"Close logcat and then reopen it from Window Show View Others",
"discarding logcat data prior to service start monitoring the logcat data in real-time filtering the logcat to only show tags of ActivityManager and informational logs .",
"It seem that the character in the logcat and from my keyboard are not the same .",
"I have an Android application that spams the LogCat and I would like to remove its logcat entries in order to have an output more readable .",
"Change field Show logcat view if .. . the value VERBOSE .",
"Within the Eclipse Logcat view there s not such an option .",
"Depends on which way you view your logcat .",
"By using logcat your package name : log level the answer suggests that it s possible to use the package name as valid filter .",
"I don t think you can filter by application with the command-line version of logcat ."
]
} | {
"confidence": [
61.61323547363281,
60.965599060058594,
56.70531463623047,
55.949153900146484,
54.641685485839844,
54.15208053588867,
53.703369140625,
53.32139205932617,
52.926414489746094,
52.926414489746094,
52.44988250732422,
52.022186279296875,
51.811439514160156,
51.591224670410156,
51.25602722167969,
51.00740432739258,
50.974082946777344,
50.51708221435547,
50.10789489746094,
49.98830795288086
],
"content": [
"Question : How can I filter Android logcat output by application I need this because when I attach a device I can t find the output I want due to spam from other processes . Comment : Just adding a good reference which can help you.. . developer.android.com guide developing debugging http : developer.android.com guide developing debugging debugging-log.html I hope this can help you in more detail Comment : as from android-studio ver 0.4.5 u will get messages from the app that is running only . Log cat has a new option on by default which creates an application filter automatically such that only the launched application s output is shown Comment : Possible duplicate of Filter LogCat to get only the messages from My Application in Android http : stackoverflow.com questions 6854127 filter-logcat-to-get-only-the-messages-from-my-application-in-android .. . Answer : Suppose your application named MyApp contains the following components . MyActivity1 .. . MyActivity2 .. . MyActivity3 .. . MyService .. . .. . In order to filter the logging output from your application MyApp using logcat you would type the following . However this requires you to know the TAG names for all of the components in your application rather than filtering using the application name MyApp . See logcat http : developer.android.com tools debugging debugging-log.html for specifics . One solution to allow filtering at the application level would be to add a prefix to each of your unique TAG s . MyAppActivity1 .. . MyAppActivity2 .. . MyAppActivity3 .. . MyAppService .. . .. . Now a wild card filter on the logcat output can be performed using the TAG prefix . The result will be the output from the entire application . Comment : On a Windows system or a system without grep simply connect to the device using adb shell then run the command : shell@myDevice : logcat grep MyApp",
"Question : How can I filter Android logcat output by application I need this because when I attach a device I can t find the output I want due to spam from other processes . Comment : Just adding a good reference which can help you.. . developer.android.com guide developing debugging http : developer.android.com guide developing debugging debugging-log.html I hope this can help you in more detail Comment : as from android-studio ver 0.4.5 u will get messages from the app that is running only . Log cat has a new option on by default which creates an application filter automatically such that only the launched application s output is shown Comment : Possible duplicate of Filter LogCat to get only the messages from My Application in Android http : stackoverflow.com questions 6854127 filter-logcat-to-get-only-the-messages-from-my-application-in-android .. . Answer : You should use your own tag look at : http : developer.android.com reference android util Log.html .. . .. . Like . And then when you want to read the log use .. . .. . That filters out everything that doesn t use the same tag . Comment : I thought Tags are used to identify which class Application part is logging In eclipse s logcat view it is possbile to filter by Application for instance : de.myapplication.someapp - so if eclipse s logcat can do that there surely must be a way to do the same when using adb logcat About the Tag s I mentioned : Logging Conventions http : developer.android.com reference android util Log.html Comment : I think this link : developer.android.com guide developing tools logcat.html http : developer.android.com guide developing tools logcat.html is more related to logcat commands . However it does as far as I can see not say how to filter the log by an application s package- name or process id . But eclipse does it so I just wonder how .. . Comment : You didn t answer the question . He wants to separate his application log data from everything else going on in his phone . Comment : I don t think you can filter by application with the command-line version of logcat . I suspect that the Eclipse logcat plugin is just dumping out all the logs and then doing its own filtering . Comment : -1 because it s not an answer to the question . It asked to filter by application and not by tag .",
"Question : Why doesn t logcat http : developer.android.com guide developing tools logcat.html show anything in my Android while developing apps with Eclipse It just doesn t print anything . It s empty . Comment : Is it the logcat View in Eclipse that s blank the output of the adb logcat command or both .. . Answer : In case if you are using cynogenmod in your mobile it will disable logging by default try this method : .. . .. . In your device open system etc init.d folder If there are many files try opening each file and find for this line : .. . .. . rm dev log main .. . .. . Now comment this line like this : rm dev log main .. . .. . save the file and reboot .",
"Question : I m a total noob at Android programming and wanted to learn how to debug my apps . I can t seem to have my Log.i d v calls displayed in the LogCat . Here s the code that I m using . As you can see I have defined a LOG TAG constant but can t seem to find it in the LogCat . I have also imported android.util.Log AND I have made sure that in my AndroidManifest I have debuggable set to TRUE . I have also checked http : developer.android.com reference android util Log.html w o any luck resolving this issue . What am I doing wrong Am I even looking in the right place I ve tried using the DDMS and Debug perspective as well w o any luck . Any help to this noob would be greatly appreciated . Thanks . My environment : Windows XP IDE Eclipse Version : 3.6.1 Build id : M20100909-0800 Emulator having it point to android-sdk-2.1 api 7 .. . .. . very basic HELLO World code with a couple of Log.i calls Comment : It doesn t look like you are doing anything wrong are you sure that your Activity is being started Do you have any filters set in the logcat view Did you try command-line version of logcat adb logcat Comment : Yes tried the command-line and outputted to a txt file and still couldn t find it . I know the Activity started because I see the Hello World message in the emulator . I tried viewing the logcat with and without filters and still no luck . Comment : Try the command-line adb logcat and don t filter anything first . I am pretty sure your code is working and printing to the log . Comment : Does LogCat work at all E.g . do you see log entries from another apps system apps for instance .. . Answer : I needed to restart the adb service with the command adb usb .. . .. . Prior to this I was getting all logging and able to debug but wasn t getting my own log lines yes I was getting system logging associated with my application . Comment : I also have this - not getting own log lines . But this didn t help :",
"Question : I m a total noob at Android programming and wanted to learn how to debug my apps . I can t seem to have my Log.i d v calls displayed in the LogCat . Here s the code that I m using . As you can see I have defined a LOG TAG constant but can t seem to find it in the LogCat . I have also imported android.util.Log AND I have made sure that in my AndroidManifest I have debuggable set to TRUE . I have also checked http : developer.android.com reference android util Log.html w o any luck resolving this issue . What am I doing wrong Am I even looking in the right place I ve tried using the DDMS and Debug perspective as well w o any luck . Any help to this noob would be greatly appreciated . Thanks . My environment : Windows XP IDE Eclipse Version : 3.6.1 Build id : M20100909-0800 Emulator having it point to android-sdk-2.1 api 7 .. . .. . very basic HELLO World code with a couple of Log.i calls Comment : It doesn t look like you are doing anything wrong are you sure that your Activity is being started Do you have any filters set in the logcat view Did you try command-line version of logcat adb logcat Comment : Yes tried the command-line and outputted to a txt file and still couldn t find it . I know the Activity started because I see the Hello World message in the emulator . I tried viewing the logcat with and without filters and still no luck . Comment : Try the command-line adb logcat and don t filter anything first . I am pretty sure your code is working and printing to the log . Comment : Does LogCat work at all E.g . do you see log entries from another apps system apps for instance .. . Answer : On Android Studio : Click on the green arrow pointing to the right to restart the logging if no visible click on the icons to locate it .",
"Question : I m testing with a real device connected to Android Studio . Because of multithreading behavior that I don t want to interrupt I ve added lots of log statements to my code to find out what s happening . In logcat I see the statements comming so far so good . After running my complete test I found out that the beginning of my logging is missing Seems to me that Android Studio deletes the earliest lines of logging when the log is in danger of growing too big . Since I would like to retrieve my whole logfile after a testrun so I can do something else in the meantime I would like to increase the number of lines Android Studio keeps . Do you know where I can adjust this maximum number of lines logcat has to store I hope pray assume that there is such a parameter because I can t find it yet.. . .. . Answer : You could start the logcat in a terminal : developer.android.com tools help adb.html logcat http : developer.android.com tools help adb.html logcat .. . .. . and pipe it to a txt file .. . .. . win .. . .. . or .. . .. . linux Comment : I would like to do this in Android Studio not in command-line . But still I tried to do this with the commandline but I can t find out how to filter on my applications package name . I would expect this to do the trick but it didn t : code adb logcat package name : V log.txt code",
"Question : I am currently working on an android App that uses JSON as response from server . Usually I work on the JSON response . But now I have a problem with logcat if the JSON response string is very long more than x character i don t know exactly how much is the max string that could be displayed by logcat some of the JSON string is missing . Although it still could give me the output I need the information on the JSON string that is transmitted from the server . Is there any possibility to display more string on logcat Like increasing the buffer or any parameter that I could use to increase the maximum string-length that could be displayed by logcat . Comment : Why don t you split the json into more than one message Comment : I m having the exact same problem .. . Answer : In general if you want to get output into Logcat you should use the Log command . An example : .. . .. . d debug .. . TAG a string you define gets displayed in Logcat in the column before the normal output .. . OUTPUT stuff u want to get printed .. . .. . Log is a logging class you can use to print out messages to the logcat . You can read messages in real-time if you run logcat on DDMS covered next . Common logging methods include : v String String verbose d String String debug i String String information w String String warning and e String String error . For further information : .. . .. . http : developer.android.com guide developing debug-tasks.html .. . .. . EDIT : .. . .. . What I ment before is in order to test some things with outputs you shouldn t use : .. . .. . Instead of using this you should use in your code : .. . .. . It will get displayed in Logcat . I don t exactly know why but it t the better way . Like this you also could display an error message : .. . .. . It will-change the color of your output in Logcat so you may see it better if e.g . an error occurrs . Comment : The problem is that he is using logcat but there is an upper limit to the length of a string in a logcat entry .",
"Question : How can I filter Android logcat output by application I need this because when I attach a device I can t find the output I want due to spam from other processes . Comment : Just adding a good reference which can help you.. . developer.android.com guide developing debugging http : developer.android.com guide developing debugging debugging-log.html I hope this can help you in more detail Comment : as from android-studio ver 0.4.5 u will get messages from the app that is running only . Log cat has a new option on by default which creates an application filter automatically such that only the launched application s output is shown Comment : Possible duplicate of Filter LogCat to get only the messages from My Application in Android http : stackoverflow.com questions 6854127 filter-logcat-to-get-only-the-messages-from-my-application-in-android .. . Answer : On my Windows 7 laptop I use adb logcat find com.example.name to filter the system program related logcat output from the rest . The output from the logcat program is piped into the find command . Every line that contains com.example.name is output to the window . The double quotes are part of the find command . To include the output from my Log commands I use the package name here com.example.name as part of the first parameter in my Log commands like this : .. . .. . Note : My Samsung Galaxy phone puts out a lot less program related output than the Level 17 emulator . Comment : Please note that this form of the find command is case-sensitive Comment : I use adb logcat find com.example.name The Best Ans here tHANKS",
"Question : I m trying to find a good way to display log messages in a TextView in an Activity . I tried to display logcat messages https : stackoverflow.com questions 36819066 how-can-i-print-the-full-logcat-history-in-a-textview-in-android in the TextView but the results vary every time I open and close the Fragment and not all messages are shown . I m logging in multiple Activities and classes so I m trying to find a way to log without coupling it to every class . Is there an alternative to logcat or something some type of system logging that I could access and display Or any useful libraries or anything Thanks Comment : If you want to save logs you can also write them to file . Then you definitely won t loose them . Comment : you can try this to view it on your device android-arsenal.com details 1 2649 http : android-arsenal.com details 1 2649 .. . Answer : A toast provides simple feedback about an operation in a small popup : .. . .. . enter image description here http : i.stack.imgur.com CRqwi.png Comment : This is only useful for infrequent events - beyond that it becomes extremely annoying and effectively useless . Comment : Thanks but I m interesting in viewing a list of all messages logged in a session .",
"Question : I m trying to find a good way to display log messages in a TextView in an Activity . I tried to display logcat messages https : stackoverflow.com questions 36819066 how-can-i-print-the-full-logcat-history-in-a-textview-in-android in the TextView but the results vary every time I open and close the Fragment and not all messages are shown . I m logging in multiple Activities and classes so I m trying to find a way to log without coupling it to every class . Is there an alternative to logcat or something some type of system logging that I could access and display Or any useful libraries or anything Thanks Comment : If you want to save logs you can also write them to file . Then you definitely won t loose them . Comment : you can try this to view it on your device android-arsenal.com details 1 2649 http : android-arsenal.com details 1 2649 .. . Answer : I ended up saving the history to a member variable and only appending the new log lines each time I open the dialog .",
"Question : I m trying to find a good way to display log messages in a TextView in an Activity . I tried to display logcat messages https : stackoverflow.com questions 36819066 how-can-i-print-the-full-logcat-history-in-a-textview-in-android in the TextView but the results vary every time I open and close the Fragment and not all messages are shown . I m logging in multiple Activities and classes so I m trying to find a way to log without coupling it to every class . Is there an alternative to logcat or something some type of system logging that I could access and display Or any useful libraries or anything Thanks Comment : If you want to save logs you can also write them to file . Then you definitely won t loose them . Comment : you can try this to view it on your device android-arsenal.com details 1 2649 http : android-arsenal.com details 1 2649 .. . Answer : When it comes to logging on Android I d definitely recommend : https : github.com JakeWharton timber .. . .. . For example you don t need to do that annoying TAG all the time as Timber does this for you . Regarding your question I think what you can do it to plant your own tree in Timber . This will make sure all logging goes through there and from there you can catch and log everything you want . See his example of where the Tree is planted in the Application : https : github.com JakeWharton timber blob master timber-sample src main java com example timber ExampleApp.java Now this is in the Application layer so you would need to fetch them into your activities in some way . A quick way not very beautiful way I think you can do is to store the logs in a Collection and have this statically accessible to fetch from the Application . On a side note I m curious of why you want this why isn t Android Studio s logging tool good enough : Comment : Thank you I ll check that out . Android Studio s logging tool works great but I d also like to be able to view the logs on the device when I m running the app without the computer . It s a network testing app so I log messages when certain things happen in the background and I d like to be able to view a list of those messages . Comment : Hey Brendan sure makes sense . I think Timber will suit your needs . If not another option is to write your own customised logger where you create a Singleton that you can fetch from anywhere and log what you want store the values in a Collection and fetch them from there .",
"Question : OK logcat is showing system logs but it is not showing application log on my Huawei Ascend . If I switch to another device such as my Galaxy Nexus or Nexus 7 then for the same app same APK even log is displayed . The Huawei Ascend is running Android 4.1.1 it has USB debugging switched on in developer options . This occurs for logcat run from either the command-line or from IntelliJ . And I m making sure that the correct device is selected - in fact I m only plugging a single device in at a time . I ve tried restarting adb clearing it s buffer etc .. . .. . I can see that the app is starting on the Huawei I even get system logs showing that the Activity has started . But unlike on the other devices I get no app log in the Activity onCreate or from anywhere else . How can the application log not be getting delivered Comment : Maybe you ve applied a certain filter in the LogCat output - go check it out . Comment : Nope no filters . .. . Answer : OK since I had another Huawei Ascend I ran into the same problem . This time I have the exact answer . Follow these instructions from denispyr s answer on Why doesn t logcat show anything in my Android http : stackoverflow.com questions 2250112 why-doesnt-logcat-show-anything-in-my-android .. . .. . Dial .. . .. . and you will see a hidden menu . Go ProjectMenu Background Setting Log setting and define the log availability log swith and level log level setting . And then make sure you restart your phone . Please note this probably only applies to Huawei phones . Comment : Works on Huawei Ascend Y210 if you restart the phone afterwards . Thanks Comment : Works on Huawei P7-L07 Comment : Works on Huawei Mate 7 Comment : Works on the Honor 7 too but the settings seem to be different . From my short testing session I think it works roughly like this : AP Log : Enable app logging in general CP Log : Enable debug and verbose messages . Restart doesn t seem to be necessary . Comment : Great Works on Huawei Honor 7 as well",
"Question : I have an Android application that spams the LogCat and I would like to remove its logcat entries in order to have an output more readable . Is it possible to have a filter that remove the LogCat entries for a specific tag name Or a search pattern that does the trick Comment : @pankaj It is not exactly what I want . I want a way to remove some specific entries rather than isolate them . .. . Answer : Depends on which way you view your logcat . If you are using the GUI logcat interface it s best to create a filter for the tags you want to see . These get dropped into a seperate category . Though the ui changed a bit you can use this old answer from me http : stackoverflow.com questions 7050601 is-there-any-way-to-view-the-log-messages-from-our-own-application-in-android 7050610 7050610 . Should be clear how this is used make sure that the display saved filters tab button is pressed though otherwise you won t see the Add filter button . You can find that on the top-right of the log . I m not aware of any option that lets you filter out certain tags from the whole logstream . If you are using the command-line you can mute certain tags . Example : .. . .. . shows everything : V up to the verbose log level except the tag AndroidRuntime which will be limited to the silence loglevel which means it will print nothing . To display a single tag you can use .. . .. . Same way everything gets silenced except MyAppTag and OtherTag . See Filtering Log Output http : developer.android.com guide developing tools adb.html logcat for more details . Comment : Thanks adb logcat tag-name : S : V is what I was looking for . I would like the same behavior in the Eclipse GUI logcat interface but for now I will use the command-line .",
"Question : I installed Android Studio yesterday and I tried to use the LogCat to see the logs . But there is nothing to show in the logcat . I used the terminal to run . adb logcat . It works . Are there someone who can use the logcat in Android Studio Comment : just restart android-studio . .. . Answer : On the right side of tab Devices logcat there is the button Show only Logcat from selected Process . Its not perfect because everytime I run another process I need to push it again but thats the only solution that works for me . So far.. . Comment : Logging wasn t showing up for me because I changed my application ID and this dropdown was selected to the old one app : com.example.app . Changing it to Show only selected application restored logging .",
"Question : I am currently working on an application that fetches questions stored in the database of the server . However these questions are in the Bengali language . For debugging purposes I am logging the response from the server with Log.d . As I see the Logcat is not able to display these characters in Bengali fonts and it displays strings like u0986 u09ac u09b9 u09be u0993 u09af u09bc u09be . Is there a way in which I can load a font to the Logcat so that it can display Bengali fonts .. . Answer : Try to add Bengali font into your system and then go to .. . Settings Editor Colors Fonts Console Font and choose your Bengali font . Comment : I guess this may work for the command-line Logcat . Is there a way in which I can do this for the GUI Logcat in Eclipse Comment : I guess this may work for the command-line Logcat . - unfortunately yes . But thought many jumps with setup fonts . For Eclipse you can try this answer stackoverflow.com questions 7022820 http : stackoverflow.com questions 7022820 change-android-logcat-font-in-eclipse",
"Question : How can I filter Android logcat output by application I need this because when I attach a device I can t find the output I want due to spam from other processes . Comment : Just adding a good reference which can help you.. . developer.android.com guide developing debugging http : developer.android.com guide developing debugging debugging-log.html I hope this can help you in more detail Comment : as from android-studio ver 0.4.5 u will get messages from the app that is running only . Log cat has a new option on by default which creates an application filter automatically such that only the launched application s output is shown Comment : Possible duplicate of Filter LogCat to get only the messages from My Application in Android http : stackoverflow.com questions 6854127 filter-logcat-to-get-only-the-messages-from-my-application-in-android .. . Answer : If you use Eclipse you are able to filter by application just like it is possible with Android Studio as presented by shadmazumder . Just go to logcat click on Display Saved Filters view then add new logcat filter . It will appear the following : .. . .. . enter image description here http : i.stack.imgur.com YixHs.png .. . .. . Then you add a name to the filter and at by application name you specify the package of your application .",
"Question : Why the Logging in the Logcat is not working for some line in the above code Comment : +1 superb marking...Glad to know the reason if this is really true . Comment : is it showing other logs if not i will suggest you to restart your eclipse . this kind of things happens sometimes . Comment : Try using the Filter to search for Hello ...see if you spot it...Also make sure the logcat is set on verbose mode Comment : I can reproduce this . Maybe SMS is some kind of reserved internal tag Comment : groups.google.com group android-developers browse thread thread http : groups.google.com group android-developers browse thread thread 5ffbcf061e216cc6 .. . Answer : There are some tags that don t go to the default buffer as has been stated . You can view them by specifying which buffer to view with the -b logcat option . Check section Viewing Alternative Log Buffers of Using LogCat http : developer.android.com tools debugging debugging-log.html startingLogcat to view the different buffers available . For example to see the SMS logcat messages start logcat with :",
"Question : I know how to do the actual logcat filtering but I can t find the icon for it . This is a view of the Logcat demonstration that I am following . enter image description here http : i.stack.imgur.com dg4uW.png .. . .. . I saw that this is the standard view for Logcat - How to filter logcat in Android Studio http : stackoverflow.com questions 19931987 how-to-filter-logcat-in-android-studio . However this is what mine looks like . enter image description here http : i.stack.imgur.com 5aEGI.png .. . .. . Is there any way I can get the rest of the stuff to show up - Log level filter etc I am running Windows 8 64 bit operating-system . These didn t help because in both cases the user was running a Ubuntu operating-system - Android Studio Logcat Filter does not show up http : stackoverflow.com questions 21006416 android-studio-logcat-filter-does-not-show-up lq 1 . and Android studio : not showing filter option http : stackoverflow.com questions 21131339 android-studio-not-showing-filter-option lq 1 .. . Answer : Is this filter text box what you are looking for Android Studio Log Filter Location http : i.stack.imgur.com RZgod.png",
"Question : I know how to do the actual logcat filtering but I can t find the icon for it . This is a view of the Logcat demonstration that I am following . enter image description here http : i.stack.imgur.com dg4uW.png .. . .. . I saw that this is the standard view for Logcat - How to filter logcat in Android Studio http : stackoverflow.com questions 19931987 how-to-filter-logcat-in-android-studio . However this is what mine looks like . enter image description here http : i.stack.imgur.com 5aEGI.png .. . .. . Is there any way I can get the rest of the stuff to show up - Log level filter etc I am running Windows 8 64 bit operating-system . These didn t help because in both cases the user was running a Ubuntu operating-system - Android Studio Logcat Filter does not show up http : stackoverflow.com questions 21006416 android-studio-logcat-filter-does-not-show-up lq 1 . and Android studio : not showing filter option http : stackoverflow.com questions 21131339 android-studio-not-showing-filter-option lq 1 .. . Answer : Which version of Android Studio are you using I am running on Windows 7 + AS 1.0.2 and the wordings and layout is different than yours . In any case in my ADB Logs view I see the same thing as you : enter image description here http : i.stack.imgur.com WGYz3.png .. . .. . But when I switch to Devices logcat view the filter is shown and can be used correctly : enter image description here http : i.stack.imgur.com NetnV.png .. . .. . So my suggestion would be to update Android Studio and check again .",
"Question : This question already has an answer here : .. . .. . Why doesn t logcat show anything in my Android questions 2250112 why-doesnt-logcat-show-anything-in-my-android 21 answers .. . .. . I am using Eclipse classic to develope my Android applications . But I am not able to see any messages in the logcat . Till yesterday it was showing each and every message but now it is not showing anything . I have written a lot og log statements to trace my program but because of this I am not able to trace . Can anybody say where is the problem Thanks.. . Comment : have you cleared the adb logcat command adb logcat -c .. . Answer : On right top corner click on Display Saved Filter View or if display saved filter view is already open then just click on the red - icon to delete selected logcat filter ."
]
} | [
"yes-answer-long",
"yes-answer-short"
] | android | UNK_RELATION |
http-pipelining@tcp@104 | http-pipelining -- http-pipelining is a technique in which multiple http requests are sent on a single @placeholder connection without waiting for the corresponding responses . | {
"confidence": [
59.995853424072266,
55.621971130371094,
55.474822998046875,
53.29576110839844,
53.22196960449219,
51.98774719238281,
49.3848876953125,
47.81514358520508,
47.811702728271484,
47.04418182373047,
46.89509582519531,
46.377662658691406,
46.377662658691406,
46.377662658691406,
46.33012771606445,
46.02815628051758,
46.02815628051758,
45.29194641113281,
44.80447769165039,
44.080047607421875,
43.714412689208984,
43.30590057373047,
43.16090393066406,
43.03977584838867,
42.918975830078125,
42.918975830078125,
42.78996276855469,
42.497196197509766,
42.44302749633789,
42.0599365234375,
41.832000732421875,
41.402313232421875,
41.021846771240234,
40.70718765258789,
40.653724670410156,
40.653724670410156,
40.643218994140625,
39.90200424194336,
39.834373474121094,
39.735435485839844,
39.44866180419922,
39.232582092285156,
39.17171096801758,
38.77665328979492,
38.611392974853516,
37.786476135253906,
36.91774368286133,
36.91774368286133,
36.85396957397461,
36.646873474121094,
35.40345764160156,
34.6966667175293,
34.552860260009766,
34.32778549194336,
34.02344512939453,
33.56210708618164,
33.1141242980957,
32.77193832397461,
32.66621780395508,
32.37929916381836,
32.35111999511719,
32.11600112915039,
31.56057357788086,
30.815505981445312,
30.588497161865234,
30.465614318847656,
30.393020629882812,
30.13039779663086,
30.130184173583984,
30.130184173583984,
29.959728240966797,
29.88636016845703,
29.708133697509766,
29.3790283203125,
29.269201278686523,
29.238067626953125,
29.17278480529785,
29.049571990966797,
29.023681640625,
28.913108825683594,
28.90289306640625,
28.294452667236328,
28.043903350830078,
27.810604095458984,
27.810604095458984,
27.507274627685547,
27.507274627685547,
27.49352264404297,
27.359146118164062,
27.008373260498047,
26.977928161621094,
26.80630111694336,
26.693477630615234,
26.442909240722656,
26.10588836669922,
25.970035552978516,
25.964679718017578,
25.964311599731445,
25.890098571777344,
25.784160614013672
],
"content": [
"I m trying to use PHP cURL HTTP Pipelining feature to perform multiple requests through single TCP connection .",
"I was just reading this Wikipedia article http : en.wikipedia.org wiki HTTP pipelining on HTTP pipelining and from the diagram it appears that responses can be sent concurrently on one connection .",
"pipelining http : i.stack.imgur.com MbAOA.png",
"Does com.sun.net.httpserver.HttpServer support single-connection pipelining",
"HTTP pipelining http : i.stack.imgur.com gWr51.png",
"This article http : www.guypo.com technical http-pipelining-not-so-fast-nor-slow also suggest that pipelining isn t a massive win .",
"HTTP servers compliant to HTTP 1.1 are expected to support pipelining .",
"The HTTP client built into Node.js doesn t seem to support pipelining requests http : stackoverflow.com a 5776649 362536 .",
"Are you talking about HTTP pipelining http : en.wikipedia.org wiki HTTP pipelining here",
"The requests library does not support HTTP pipelining https : github.com kennethreitz requests issues 1394 .",
"Is there some options in ServiceStack to enable HTTP pipelining",
"From that WikiPedia article : HTTP 1.1 conforming servers are required to support pipelining .",
"Also SDWebImageDownloader somehow uses HTTP pipelining I ve noticed .",
"It s really difficult for any http server to not support pipelining .",
"@Brian per HTTP spec the server is still supporting pipelining even though internally requests are processed serially .",
"Next I turn on pipelining in Firefox and refresh the page .",
"So I doubt the pipelining doesn t seem to work .",
"HTTP pipelining means something really simple : client can write next request to the connection without having read the previous response .",
"Alternatively is there an alternative HTTP client that is a drop-in replacement for the main that supports pipelining",
"http : www.w3.org Protocols rfc2616 rfc2616-sec8.html .. . .. . Safari apparently used HTTP pipelining for images at least .",
"http : stackoverflow.com questions 14810890 what-are-the-disadvantages-of-using-http-pipelining",
"As wiki http : en.wikipedia.org wiki HTTP pipelining said .. . .. . The pipelining of requests results in a dramatic improvement in the loading times of HTML pages especially over high latency connections such as satellite Internet connections .",
"I suppose the total time of loading will be shortened but unfortunately it s the same with that of no pipelining .",
"Note the requests does not support HTTP pipelining https : github.com kennethreitz requests issues 1394 using grequests would only ever be an approximation .",
"I am trying to write a script that does http-pipelining with scapy .",
"HTTP 1.1 suports pipelining but how can implements that with cURL and TOR",
"HTTP pipelining is the capability of client to send requests to server while responses to previous requests were not yet received using the same TCP connection generally not used as a default way in browsers .",
"Pipelining requests can be done with the builtin httplib but only by accessing the connection and response objects below their public interface .",
"Thanks to Google and Stack Overflow I think I understood the difference between regular HTTP pipelining and HTTP multiplexing e.g . with SPDY so I made the diagram below to show the differences between pipelining and multiplexing based on three regular HTTP requests .",
"All I can find is that NSMutableURLRequest allows me to enable pipelining HTTPShouldUsePipelining but I don t understand how it knows which requests to send together when I enable pipelining .",
"HttpURLConnection does not support pipelining and so I am leaning to think that the com.sun.net.httpserver.HttpServer does not support pipelining either .",
"I tried this and according to Wireshark the two requests and responses are on separate TCP streams so it doesn t seem like it s actually pipelining the requests : .. . .. . I also tried on my own local Nginx server just in case Strabo.com doesn t support pipelining .",
"All major browsers other than Opera have HTTP pipelining is disabled or not implemented .",
"possible duplicate of What are the disadvantage s of using HTTP pipelining",
"Note that pipelining is supposed to be also supported by client .",
"Update : .. . From the note it seems that pipelining is supported .",
"Implementation bugs .. . .. . For pipelining to work responses must come back in the order they were requested .",
"The client sends its requests in a certain order without waiting for responses inbetween requests .",
"Assuming that I can verify that a bunch of POST requests are in fact logically independent how can I set up HTTP pipelining using python-requests and force it to allow POST requests in the pipeline",
"To verify that using http-pipelining can optimize the speed of loading resources I made a test as follows : .. . .. . Open Firefox on Mac in config change max connection per server to 1 then I open a test page which loads 12 images .",
"Is it true that if pipelining would not have the head-of-line blocking problem it would be as fast as HTTP multiplexing",
"I m looking for something that will make the client stop pipelining it s requests and to send each request separately .",
"Is it true that if pipelining would not have the head-of-line blocking problem http : en.wikipedia.org wiki Head-of-line blocking it would be as fast as HTTP multiplexing",
"I am trying to understand what are the HTTP pipelining and HTTP keep-alive connections and trying to establish a connection between these two topics and Server Sent events technology .",
"4 Server Sent Events are using the keep-alive connection but as far as I understand SSE are not using pipelining .",
"It looks like this may be a bug in PHP s implementation of curl multi with PIPELINING .",
"WWDC 2012 session 706 - Networking Best Practices https : developer.apple.com videos wwdc 2012 id 706 talks about something called HTTP Pipelining http : en.wikipedia.org wiki HTTP pipelining .",
"Head of line blocking http : i.stack.imgur.com sdCNX.png .. . .. . So in summary the issues with HTTP pipelining are : .. . .. . Some servers most proxies https : en.wikipedia.org wiki HTTP pipelining Implementation in web proxies don t support it .",
"This article https : devcentral.f5.com blogs us http-pipelining-a-security-risk-without-real-performance-benefits talks about performance loss in some circumstances and a potential of denial-of-service attack .",
"You can approximate pipelining by using grequests which makes it easier to run many requests in parallel but each parallel request would still use a new TCP connection .",
"I was wondering if it would be possible to configure HA Proxy such as-if many HTTP requests are sent in the same TCP connection they get routed to different servers .",
"This is a problem for the client since HTTP is a stateless protocol the client has no way to match the requests with the responses .",
"So that the requests are sent without waiting for previous reponse and I expect the requests response go like below .. . .. . This is HTTP pipeline https : en.wikipedia.org wiki HTTP pipelining and quite good for performance .",
"So I suppose HttpClient does support pipelining and the problem is located in ServiceStack",
"I see that multiple requests are sent within the same TCP stream .",
"In theory pipelining should speed up requests by reducing the number of round trip times required to fetch a website .",
"and you are sending 2 requests over the same HTTP connection.One slow followed by one fast.I am not sure what you mean here but on pipelining if client send Req1 Req2 to the server then the server is expected to send Response for Req1 followed by Response for Req2 .",
"Performance issues .. . .. . Even if the server does properly support pipelining performance issues can arise because all subsequent requests have to wait for the first one to be complete Head of Line blocking .",
"It s a single response that takes forever to download so pipelining or keep-alive are irrelevant for SSE .",
"the server MUST send the responses to the requests in the same order that the requests were received .",
"However it occurred to me that it may be possible to create an Agent https : nodejs.org api http.html http class http agent that sets up pipelining in the background .",
"It may be just caution because pipelining is poorly implemented in some proxies servers .",
"It appears they may not expose all the CONSTANTS necessary to enable a developer to dictate how curl behaves on a multi-request when using PIPELINING .",
"If multiple requests are sent in parallel and the first request one takes longer to process e.g .",
"The wiki page says Most HTTP proxies do not pipeline outgoing requests .",
"Pipelining is done at a very low-level below IIS even in the http.sys kernel-mode driver .",
"The Second http-request is sent after the first http response is received .",
"The Ruby version works as wanted and opens only single TCP connection for 3 GET requests .",
"Short answer : Yes clients and servers can send requests and responses concurrently .",
"It can just send the responses to the client as it receives the client s requests .",
"Therefore my interpretation of the RFC is that whilst additional requests can be made whilst the response to the first request is being processed it is not allowedfor the client to send concurrent requests or the server to send concurrent responses on the same connection .",
"A server MUST send its responses to those requests in the same order that the requests were received .",
"It seems to handle multiple clients in parallel but a single connection s requests are being serially executed .",
"The keep-alive that s used in the HTTP request header indicates that the underlying TCP connection shouldn t be closed http : stackoverflow.com a 20799796 1244630 so that it can be reused for other requests .",
"All requests are pipelined .",
"Is there a specific or agreed upon HTTP response message or another action except for disconnection to clarify that the server does not accept pipelined HTTP requests http : en.wikipedia.org wiki HTTP pipelining",
"However at the transport layer as TCP is reliable and connection-oriented the requests will arrive in the client s application layer same order as they were sent from the server s application layer - although the individual packets may be sent in a different order .",
"However a server cannot send multiple responses to one request i.e .",
"As far as I understand HTTP keep-alive connection is the default in HTTP 1.1 way of using TCP when the established once TCP connection is used for sending several HTTP requests one by one .",
"AFNetworking https : github.com AFNetworking AFNetworking blob master AFNetworking UIImageView+AFNetworking.m used to use pipelining but it was pulled after a reported issue https : github.com AFNetworking AFNetworking issues 528 .",
"The solution is to switch to HTTP 2 which support priorities .. . .. .",
"If as you say you send the requests pipelined the responses should come back according to the arrival of the requests irrelevant of time it takes to finish each request i.e .",
"enter image description here http : i.stack.imgur.com DhZTg.png .. . .. . I can see there is no blocking at all .",
"I see - so it s a case of perspective : from the application perspective responses cannot be sent to the buffer concurrently but consecutively .",
"It answers my question though that responses cannot be sent concurrently from the application layer - thanks",
"I have the following perl script to send pipelined http-request over a sinlge tcp connection .",
"Edit : Could the Apache server be closing the connection after the first HTTP request is answered .",
"As it is said here http : stackoverflow.com questions 11178220 is-httpclient-safe-to-use-concurrently HttpClient is thread-safe for most of its methods to sending HTTP GET requests over the same TCP connection .",
"It s not using multiple responses .",
"Whilst that stops short of explicitly ruling out concurrent responses it does not mention a need to ensure that responses must not only start in the correct order with relation to requests but also finish in the correct order .",
"The TCP IP connection cannot return any more responses while SSE response is being sent .",
"When I call my send function to send my two http requests back to back the requests are not pipelined .",
"You can send all of the requests first and then receive the responses you can send request 1 first receive the first response send the remaining requests and receive the remaining responses you can send the first and part of the second request receive part of the first response send the remaining requests receive the remaining responses etc .",
"Section 8.1.2.2 of RFC 2616 https : tools.ietf.org html rfc2616 section-8.1.2.2 states : .. . .. . A server MUST send its responses to those requests in the same order that the requests were received .",
"enter image description here http : i.stack.imgur.com MLUyJ.png .. . .. . The browser load each image one by one and 12 images cost about 12 seconds to load i add 1 sec delay for each image .",
"I want to download a lot of images from the same HTTP server so I want to do all of that on the same TCP connection .",
"Refers to this page http : www.php.net manual en function.curl-multi-setopt.php I m enabling pipleining for curl multi exec by adding : .. . .. . curl multi setopt mh CURLMOPT PIPELINING 1 .. . .. . I don t want to post a big source listing here but you can easily view or checkout the full example from my github here https : github.com anovikov1984 pipelining-example .. . .. . For monitoring TCP connections I use netstat -t -u -c command in another console session .",
"Before response my question - be awared that s not related to the following subjects : .. . .. . cURL : two seperate requests same session http : stackoverflow.com questions 9753224 curl-two-seperate-requests-same-session .. . .. . select outgoing ip for curl request http : stackoverflow.com questions 2425651 select-outgoing-ip-for-curl-request .. . .. . PHP Multiple Curl Requests http : stackoverflow.com questions 3900153 php-multiple-curl-requests .. . .. . I m working in a anti-captcha system and one of another validations it s the same IP can t do 5 requests per hour and because that I m using TOR .",
"That would be a reason to turn pipelining support off on the server violating the standard but I cannot find any reason to turn it off on the clients .",
"The speedup is less apparent on broadband connections .. . .. . Your test is based on a typical broadband connection ."
]
} | {
"confidence": [
75.70879364013672,
72.43855285644531,
68.67097473144531,
68.5412368774414,
67.04888916015625,
62.808265686035156,
62.20424270629883,
61.21166229248047,
61.03696060180664,
57.56265640258789,
57.11223602294922,
56.98525619506836,
56.39815139770508,
52.35176086425781,
49.24168395996094,
48.39117431640625,
43.28157424926758,
39.842628479003906,
33.537410736083984,
30.88149642944336
],
"content": [
"Question : null .. . Answer : I want to download a lot of images from the same HTTP server so I want to do all of that on the same TCP connection . All I can find is that NSMutableURLRequest allows me to enable pipelining HTTPShouldUsePipelining but I don t understand how it knows which requests to send together when I enable pipelining . I tried this and according to Wireshark the two requests and responses are on separate TCP streams so it doesn t seem like it s actually pipelining the requests : .. . .. . I also tried on my own local Nginx server just in case Strabo.com doesn t support pipelining . Also SDWebImageDownloader somehow uses HTTP pipelining I ve noticed . I see that multiple requests are sent within the same TCP stream . However it doesn t send all of them on the same stream and I want to do that so I ve been trying to implement a custom downloader .",
"Question : Does com.sun.net.httpserver.HttpServer support single-connection pipelining It seems to handle multiple clients in parallel but a single connection s requests are being serially executed . Is this accurate and if so is there a way to work around this .. . Answer : HTTP servers compliant to HTTP 1.1 are expected to support pipelining . Note that pipelining is supposed to be also supported by client . According to httpserver http : download.oracle.com javase 6 docs jre api net httpserver spec com sun net httpserver package-summary.html .. . .. . The API provides a partial implementation of RFC 2616 HTTP 1.1 and RFC 2818 HTTP over TLS . it seems to imply that the com.sun.net.httpserver.HttpServer does not fully support HTTP1.1 . HttpURLConnection does not support pipelining and so I am leaning to think that the com.sun.net.httpserver.HttpServer does not support pipelining either . You say you did some tests . How did you test this Update : .. . From the note it seems that pipelining is supported . If as you say you send the requests pipelined the responses should come back according to the arrival of the requests irrelevant of time it takes to finish each request i.e . some are faster than others . Comment : I tested it by creating a server that handles two requests one that sleeps and one that doesn t and a pipelined client . Creating two connections do not block each other executed concurrently by the server but a slow followed by a fast request on the same connection results in the fast waiting for the slow to finish . The documentation also adds Any HTTP functionality not provided by this API can be implemented by application code using the API . If you have any ideas on how best to approach this I d be thankful to hear them . Comment : @Brian : If I understand correctly : you are using a pipelined client your implementation and you are sending 2 requests over the same HTTP connection.One slow followed by one fast.I am not sure what you mean here but on pipelining if client send Req1 Req2 to the server then the server is expected to send Response for Req1 followed by Response for Req2 . I.e . the server MUST send the responses to the requests in the same order that the requests were received . So from your description it seems that this is actually happening in your case since the fast request was send after the slow . Comment : I have tracing points in both requests to mark their start time and end times . What I always see is START A END A START B END B . Of course what I d like to see is START A START B END A END B - and this happens if two different connections are issuing A and B but not for the same . Comment : @Brian : Didn t you say that you are using a pipelined client Are you not sending the requests pipelined Can you give more details on the client-side implementation Because your notes seem in contradiction so far .",
"Question : Does com.sun.net.httpserver.HttpServer support single-connection pipelining It seems to handle multiple clients in parallel but a single connection s requests are being serially executed . Is this accurate and if so is there a way to work around this .. . Answer : HTTP pipelining means something really simple : client can write next request to the connection without having read the previous response . It s really difficult for any http server to not support pipelining . It has to look ahead and if it finds bytes available beyond current request it needs to abort .. . but that s ridiculous and nobody does it . This has nothing to do with how requests are processed by server - serially or paralleled . Doing it in parallel is of course more difficult and there are some questions that must be resolved . Comment : The question was more in the context of the HttpServer class itself . The registered HttpHandler will be invoked serially for two pipelined requests where for every request a HttpExchange object is given . It appears that it s not the case that two HttpExchanges can be outstanding for a single connection even if the server is careful in responding in proper order . Comment : @Brian per HTTP spec the server is still supporting pipelining even though internally requests are processed serially .",
"Question : WWDC 2012 session 706 - Networking Best Practices https : developer.apple.com videos wwdc 2012 id 706 talks about something called HTTP Pipelining http : en.wikipedia.org wiki HTTP pipelining . It looks great - I don t understand why you would ever want to turn it off . From my experiments HTTPShouldUsePipelining https : developer.apple.com library mac documentation Cocoa Reference Foundation Classes NSURLRequest Class Reference Reference.html apple ref occ instm NSURLRequest HTTPShouldUsePipelining is set to NO by default . The WWDC session described it as a huge performance win if the servers support it . pipelining http : i.stack.imgur.com MbAOA.png .. . Answer : Implementation bugs .. . .. . For pipelining to work responses must come back in the order they were requested . A naive server implementation might just send the response as soon as it has been calculated . If multiple requests are sent in parallel and the first request one takes longer to process e.g . processing a larger image then the responses will be out of order . This is a problem for the client since HTTP is a stateless protocol the client has no way to match the requests with the responses . It is reliant on the order the responses came back in . A server MUST send its responses to those requests in the same order that the requests were received . http : www.w3.org Protocols rfc2616 rfc2616-sec8.html .. . .. . Safari apparently used HTTP pipelining for images at least . This results in an issue where images would be swapped around http : tech.vg.no 2011 12 14 safari-on-ios-5-randomly-switches-images . AFNetworking https : github.com AFNetworking AFNetworking blob master AFNetworking UIImageView+AFNetworking.m used to use pipelining but it was pulled after a reported issue https : github.com AFNetworking AFNetworking issues 528 . All major browsers other than Opera have HTTP pipelining is disabled or not implemented . Performance issues .. . .. . Even if the server does properly support pipelining performance issues can arise because all subsequent requests have to wait for the first one to be complete Head of Line blocking . This article https : devcentral.f5.com blogs us http-pipelining-a-security-risk-without-real-performance-benefits talks about performance loss in some circumstances and a potential of denial-of-service attack . This article http : www.guypo.com technical http-pipelining-not-so-fast-nor-slow also suggest that pipelining isn t a massive win . WWDC 2015 - Networking with NSURLSession https : developer.apple.com videos wwdc 2015 id 711 explains head of line blocking really well . The solution is to switch to HTTP 2 which support priorities .. . .. . Head of line blocking http : i.stack.imgur.com sdCNX.png .. . .. . So in summary the issues with HTTP pipelining are : .. . .. . Some servers most proxies https : en.wikipedia.org wiki HTTP pipelining Implementation in web proxies don t support it . Perhaps due to security reliability or performance concerns .. . Some servers support it incorrectly and this can lead to client bugs . It is not necessarily a performance win . Susceptible to head of line blocking Comment : can you elaborate why proxy does not support it assuming the server that proxy connects to supports it Comment : @HelinWang - If you think about it the implementation is hard for proxies since it has to send the responses back in the right order . They would also be susceptible to head of line blocking see diagram . The wiki page says Most HTTP proxies do not pipeline outgoing requests . en.wikipedia.org wiki https : en.wikipedia.org wiki HTTP pipelining Implementation in web proxies",
"Question : I am trying to understand what are the HTTP pipelining and HTTP keep-alive connections and trying to establish a connection between these two topics and Server Sent events technology . As far as I understand HTTP keep-alive connection is the default in HTTP 1.1 way of using TCP when the established once TCP connection is used for sending several HTTP requests one by one . HTTP pipelining is the capability of client to send requests to server while responses to previous requests were not yet received using the same TCP connection generally not used as a default way in browsers . My questions : .. . .. . 1 if it is possible to send several requests to server one after one using one TCP connection - how the client can distinguish between the responses I guess client is using FIFO order of sending responses by server 2 Why non-idempotent requests such as POST requests shouldn t be pipelined according to wikipedia 3 What about the limitations of the web-server : is the number of possible open TCP connections limited If yes then if some number of clients hold keep-alive connections others cannot establish connections and this can result in a problem right 4 Server Sent Events are using the keep-alive connection but as far as I understand SSE are not using pipelining . Instead they manage to process several responses to one request or may be they just send another request when the next response with event arrived . Which guess is correct 5 One TCP connection means one socket One socket means one TCP connection Closing opening socket means closing opening TCP connection .. . Answer : 1 . Yes FIFO . TCP IP guarantees delivering data in-order so responses can t arrive in a different order if the server proxy is buggy and sends responses in wrong order then you re totally screwed . 2 . I don t recall any reason per HTTP spec . It may be just caution because pipelining is poorly implemented in some proxies servers . 3 . HTTP spec suggests 2 connections per server browsers have settled on 6-8 connections per server but there is no fixed limit . Running out of connections is a real problem for Apache and for high-load situations it s recommended to disable KeepAlive in Apache and use a proxy e.g . HAProxy that can cheaply provide Keep-Alive functionality to clients . The benefit of a proxy is that one proxy can distribute connections to several servers helps scaling or can modify the traffic e.g . gzip compress everything even if server-side-software didn t . 4 . SSE doesn t rely on Keep-Alive . It s not using multiple responses . It s a single response that takes forever to download so pipelining or keep-alive are irrelevant for SSE . The TCP IP connection cannot return any more responses while SSE response is being sent . SSE will keep the server busy as long as the connection is open so typicall all the time for every user . That s why it s best to use SSE with Node.js Tornado that can handle hundreds of thousands connections rather than PHP Apache that is designed for few connections at a time . 5 . Sockets are programming interface for TCP IP connections . Generally yes one socket is one connection . Comment : Thanks porneL 1 But what if some response have arrived in wrong order relative to the sent order 3 What is the benefit of using proxy it has to establish the same connections with server anyway 4 So using SSE implies +1 connection thus raising server loading Comment : @KutaBeach I ve expanded my answer",
"Question : To verify that using http-pipelining can optimize the speed of loading resources I made a test as follows : .. . .. . Open Firefox on Mac in config change max connection per server to 1 then I open a test page which loads 12 images . I got the following figure : .. . .. . enter image description here http : i.stack.imgur.com MLUyJ.png .. . .. . The browser load each image one by one and 12 images cost about 12 seconds to load i add 1 sec delay for each image . Next I turn on pipelining in Firefox and refresh the page . I got the following figure : .. . .. . enter image description here http : i.stack.imgur.com DhZTg.png .. . .. . I can see there is no blocking at all . All requests are pipelined . I suppose the total time of loading will be shortened but unfortunately it s the same with that of no pipelining . So I doubt the pipelining doesn t seem to work . I want to know why and how can I fix it . I use apache server . Are there any configs need to be made in Apache .. . Answer : As wiki http : en.wikipedia.org wiki HTTP pipelining said .. . .. . The pipelining of requests results in a dramatic improvement in the loading times of HTML pages especially over high latency connections such as satellite Internet connections . The speedup is less apparent on broadband connections .. . .. . Your test is based on a typical broadband connection . It is so short a moment can be ignored for the server to receive each request and every time it sends such a big picture whole bandwidth of the connection is occupied . So you can retry your test with : .. . .. . 1 . High latency on each request . 2 . Many tiny files as resources to response .",
"Question : I was just reading this Wikipedia article http : en.wikipedia.org wiki HTTP pipelining on HTTP pipelining and from the diagram it appears that responses can be sent concurrently on one connection . Am I misinterpreting the diagram or is this allowed Section 8.1.2.2 of RFC 2616 https : tools.ietf.org html rfc2616 section-8.1.2.2 states : .. . .. . A server MUST send its responses to those requests in the same order that the requests were received . Whilst that stops short of explicitly ruling out concurrent responses it does not mention a need to ensure that responses must not only start in the correct order with relation to requests but also finish in the correct order . I also cannot imagine the practicalities of dealing with concurrent responses - how would the client know to which response the received data applies Therefore my interpretation of the RFC is that whilst additional requests can be made whilst the response to the first request is being processed it is not allowedfor the client to send concurrent requests or the server to send concurrent responses on the same connection . Is this correct I ve attached a diagram below to illustrate my interpretation . It would prevent the problems I mentioned from occurring but it does not appear to completely align with the diagram in Wikipedia . HTTP pipelining http : i.stack.imgur.com gWr51.png .. . Answer : Short answer : Yes clients and servers can send requests and responses concurrently . However a server cannot send multiple responses to one request i.e . the request response pattern still applies . RFC 2616 and the Wikipedia article you are refering to simply state that a client does not need to wait for the server s response to send an additional request on the same connection . So the requests in your diagram look good : . But the server doesn t have to wait for each of its responses to finish before it can start transmission of the next response . It can just send the responses to the client as it receives the client s requests . Which results in the diagram shown in the Wikipedia article . How does the client know to which request a response applies Well let s ignore that whole network delay stuff for a minute here and assume that pipelined request or response messages arrive at once but only after all of them have been sent . 1 . The client sends its requests in a certain order without waiting for responses inbetween requests . 2 . The server receives the requests in the same order TCP guarantees that all at once . 3 . The server takes the first request message processes it and stores the response in a queue . 4 . The server takes the second request message processes it and stores the response in a queue . 5 . You get the idea.. . .. . 6 . The server sends the contents of that queue to the client . The responses are stored in order so the response to the first request is at the beginning of that queue followed by the response to the second request and so on.. . .. . 7 . The client receives the responses in the same order TCP guarantees that and associates the first response with the first request it made and so on . This still works even if we don t assume that we receive all the messages at once because TCP guarantees that the data that was sent is received in the same order . We could also ignore the network completely and just look at the messages that are transferred between server and client . Client - Server .. . .. . Server - Client .. . .. . The great thing about TCP is that this particular stream of messages always looks the same . You can send all of the requests first and then receive the responses you can send request 1 first receive the first response send the remaining requests and receive the remaining responses you can send the first and part of the second request receive part of the first response send the remaining requests receive the remaining responses etc . Because TCP guarantees to keep the order of the transmitted messages we can always associate the first request with the first response and so on . I hope this answers your question.. . Comment : I see - so it s a case of perspective : from the application perspective responses cannot be sent to the buffer concurrently but consecutively . However at the transport layer as TCP is reliable and connection-oriented the requests will arrive in the client s application layer same order as they were sent from the server s application layer - although the individual packets may be sent in a different order . It answers my question though that responses cannot be sent concurrently from the application layer - thanks",
"Question : First I have ServiceStack as my server which provides RESTful HTTP API . Here is an example . Then I use System.Net.Http.HttpClient to access it . As it is said here http : stackoverflow.com questions 11178220 is-httpclient-safe-to-use-concurrently HttpClient is thread-safe for most of its methods to sending HTTP GET requests over the same TCP connection . So I have a singleton instance of HttpClient as below .. . .. . Then I use the following test code to send the request one after previous s response .. . .. . In smart sniffer http : www.nirsoft.net utils smsniff.html I do see the requests are sent in one connection and it goes like : .. . .. . Now I change the code to fire-and-forget mode as below . So that the requests are sent without waiting for previous reponse and I expect the requests response go like below .. . .. . This is HTTP pipeline https : en.wikipedia.org wiki HTTP pipelining and quite good for performance . enter image description here http : i.stack.imgur.com 5QUzH.png .. . .. . But from my test I see 3 connections are established for each of the HTTP GET request and it does not work as I expected . Regarding the AllowPipelining proeprty MSDN https : msdn.microsoft.com en-us library system.net.http.webrequesthandler.allowpipelining v vs.110 .aspx says .. . .. . An application uses the AllowPipelining property to indicate a preference for pipelined connections . When AllowPipelining is true an application makes pipelined connections to the servers that support them . So I suppose HttpClient does support pipelining and the problem is located in ServiceStack Is there some options in ServiceStack to enable HTTP pipelining .. . Answer : Pipelining is done at a very low-level below IIS even in the http.sys kernel-mode driver . While I m afraid I can t explain the behavior you re seeing I can confidently say that ServiceStack is not on the hook for supporting it . It s an HttpHandler whose only concern is how to process a request and return a response . Comment : I am using self-host service AppSelfHostBase instead of IIS I assume it is done via http.sys and HttpListener internally Comment : Yes . ServiceStack s listener https : github.com ServiceStack ServiceStack blob master src ServiceStack Host HttpListener HttpListenerBase.cs uses System.Net.HttpListener internally .",
"Question : Assuming that I can verify that a bunch of POST requests are in fact logically independent how can I set up HTTP pipelining using python-requests and force it to allow POST requests in the pipeline Does someone have a working example P.S . for extra points how to handle errors for outstanding requests if pipeline suddenly breaks P.P.S . grequests is not an option in this case . Comment : Can you elaborate what you mean by a pipeline Are you talking about HTTP pipelining http : en.wikipedia.org wiki HTTP pipelining here Why is grequests not an option Comment : Note the requests does not support HTTP pipelining https : github.com kennethreitz requests issues 1394 using grequests would only ever be an approximation . Comment : @MartijnPieters oh my google-fu hath failt me.. . Please convert that into an answer for acceptance . .. . Answer : The requests library does not support HTTP pipelining https : github.com kennethreitz requests issues 1394 . You can approximate pipelining by using grequests which makes it easier to run many requests in parallel but each parallel request would still use a new TCP connection . requests does pool connections keeping the TCP connection open if the remote-server permits this but that only helps for sequential connections and request and response still have to alternate .",
"Question : Is there a specific or agreed upon HTTP response message or another action except for disconnection to clarify that the server does not accept pipelined HTTP requests http : en.wikipedia.org wiki HTTP pipelining I m looking for something that will make the client stop pipelining it s requests and to send each request separately . If so what is it Thank you Comment : From that WikiPedia article : HTTP 1.1 conforming servers are required to support pipelining . This does not mean that servers are required to pipeline responses but that they are required not to fail if a client chooses to pipeline requests . so I don t really understand why you are looking for such a response here If your server is not HTTP 1.1 compliant then it should have negotiated to fall back to HTTP 1.0 before already with the client . .. . Answer : i think you should execute some command on your server . . .. . .. . See Here Look at the comment also https : bugs.launchpad.net ubuntu +source apt +bug 996151",
"Question : Assuming that I can verify that a bunch of POST requests are in fact logically independent how can I set up HTTP pipelining using python-requests and force it to allow POST requests in the pipeline Does someone have a working example P.S . for extra points how to handle errors for outstanding requests if pipeline suddenly breaks P.P.S . grequests is not an option in this case . Comment : Can you elaborate what you mean by a pipeline Are you talking about HTTP pipelining http : en.wikipedia.org wiki HTTP pipelining here Why is grequests not an option Comment : Note the requests does not support HTTP pipelining https : github.com kennethreitz requests issues 1394 using grequests would only ever be an approximation . Comment : @MartijnPieters oh my google-fu hath failt me.. . Please convert that into an answer for acceptance . .. . Answer : Pipelining requests can be done with the builtin httplib but only by accessing the connection and response objects below their public interface . This snippet https : gist.github.com coady f9e1be438ba8551dabad demonstrates .",
"Question : Thanks to Google and Stack Overflow I think I understood the difference between regular HTTP pipelining and HTTP multiplexing e.g . with SPDY so I made the diagram below to show the differences between pipelining and multiplexing based on three regular HTTP requests . enter image description here http : i.stack.imgur.com Zp2lf.png .. . .. . My two questions are : .. . .. . 1 . Is the image correct 2 . Is it true that if pipelining would not have the head-of-line blocking problem http : en.wikipedia.org wiki Head-of-line blocking it would be as fast as HTTP multiplexing Or did I miss an additional difference .. . Answer : It s not incorrect but there is an important aspect it omits . HTTP requires that you deliver the entire response before any other request can proceed . What you re showing in the diagram is correct in the sense that with SPDY we can finally break the head of line requirement and deliver the responses as they become available . However we also don t have to wait for any request to complete entirely . Imagine two requests both several kb s in size : each request will have multiple packets call them r1p1 r1p2 and r2p1 r2p2 . HTTP requires that pN s arrive in exact order . SPDY on the other hand allows us the following : r2p1 r1p1 r1p2 r2p2 . It s also worth mentioning that with SPDY we can use request priorities to hint the server which requests should take precedence even if it arrives later on the wire amongst half a dozen other great features . Comment : @Matt you +1ed the answer because the question contained an awesome diagram Or maybe you only attached your comment wrongly.. . Comment : Yup attached comment incorrectly . Comment : What about the 2nd question Is it true that if pipelining would not have the head-of-line blocking problem it would be as fast as HTTP multiplexing Or did I miss an additional difference Comment : How about HTTP chunked transfer mode",
"Question : I m trying to use PHP cURL HTTP Pipelining feature to perform multiple requests through single TCP connection . Refers to this page http : www.php.net manual en function.curl-multi-setopt.php I m enabling pipleining for curl multi exec by adding : .. . .. . curl multi setopt mh CURLMOPT PIPELINING 1 .. . .. . I don t want to post a big source listing here but you can easily view or checkout the full example from my github here https : github.com anovikov1984 pipelining-example .. . .. . For monitoring TCP connections I use netstat -t -u -c command in another console session . In my repo that I mentioned above there are two scripts . One for Ruby and one for PHP . The Ruby version works as wanted and opens only single TCP connection for 3 GET requests . But the PHP cURL version opens as many TCP connection as the number of cURL handles passed to curl multi exec function . What am i doing wrong Comment : Maybe adding KEEP-ALIVE helps Not sure. . think it s enabled by default . Can you add the webserver please and wether it s fastcgi or mod based . Comment : Why do you mind how many tcp connections are stablished .. . Answer : It looks like this may be a bug in PHP s implementation of curl multi with PIPELINING . It appears they may not expose all the CONSTANTS necessary to enable a developer to dictate how curl behaves on a multi-request when using PIPELINING . I ve submitted the bug report here : https : bugs.php.net bug.php id 68449 Comment : When you submit a bug report to a bug tracking system the report should specify what the problem is rather than just relying on a link-to a discussion on another website for the problem description . Especially the title of the bug report should be specific and not just a generic term . Comment : I do apologize . I thought the Package option was relevant . Notice how the Package option was marked cURL related . Above the link there is a short description . I do apologize if that was not clear . If someone was actually handling the bug and felt the bug was unclear wouldn t they usually open a thread with me on that ticket to get additional information instead of taking that conversation to Stack Overflow Feel free to update the bug ticket to reflect a more appropriate description so I can learn how to do it for future reference . Comment : My comment was just as an observer I have nothing to do with the Php or Curl projects so I don t feel any hard feelings . Just intended as a tip on how you might get more attention on your bug reports .",
"Question : null .. . Answer : The HTTP client built into Node.js doesn t seem to support pipelining requests http : stackoverflow.com a 5776649 362536 . However it occurred to me that it may be possible to create an Agent https : nodejs.org api http.html http class http agent that sets up pipelining in the background . There may be issues getting the response data back the way it should be but perhaps the Agent could fake out some socket objects to make the HTTP client work like normal Has this been done Alternatively is there an alternative HTTP client that is a drop-in replacement for the main that supports pipelining Ultimately I d like to use it with the AWS SDK so it needs to be compatible .",
"Question : null .. . Answer : Many if not all modern browsers are not using pipelined HTTP requests . In theory pipelining should speed up requests by reducing the number of round trip times required to fetch a website . According to the HTTP standard all servers must handle pipelined requests so the problem should not be in lack of support on the servers . I have seen some security concerns such as a layer 7 DoS attack if a client pushes as many pipelined requests as possible to a URL that s performance-intensive for the server ignoring any answers that might be received . That would be a reason to turn pipelining support off on the server violating the standard but I cannot find any reason to turn it off on the clients . It is however turned on by default on Android browsers and Chrome mobile . Why are Chrome Firefox IE Opera and Safari not using pipelined HTTP requests in their desktop and sometimes mobile version What is their reasoning behind turning it off Comment : I m voting to close this question as off-topic because it isn t trying to solve a practical problem . It might be better suited to programmers stackexchange http : programmers.stackexchange.com help on-topic . Comment : possible duplicate of What are the disadvantage s of using HTTP pipelining http : stackoverflow.com questions 14810890 what-are-the-disadvantages-of-using-http-pipelining",
"Question : null .. . Answer : I am trying to write a script that does http-pipelining with scapy . When I call my send function to send my two http requests back to back the requests are not pipelined . The Second http-request is sent after the first http response is received . Snippet of what I have : .. . .. . Is scapy just sending the second request too slow or am I not doing something correctly Comment : Does invoking send get1 get2 at once change anything Comment : seems to be the same result",
"Question : null .. . Answer : I was wondering if it would be possible to configure HA Proxy such as-if many HTTP requests are sent in the same TCP connection they get routed to different servers . If yes what would be the order of the responses",
"Question : Before response my question - be awared that s not related to the following subjects : .. . .. . cURL : two seperate requests same session http : stackoverflow.com questions 9753224 curl-two-seperate-requests-same-session .. . .. . select outgoing ip for curl request http : stackoverflow.com questions 2425651 select-outgoing-ip-for-curl-request .. . .. . PHP Multiple Curl Requests http : stackoverflow.com questions 3900153 php-multiple-curl-requests .. . .. . I m working in a anti-captcha system and one of another validations it s the same IP can t do 5 requests per hour and because that I m using TOR . But I need follow this sequence flow : .. . .. . 1 . Access startup URL Example : http : server start-session - get captcha and set a cookie with the verify token .. . 2 . Submit captcha chars Example : http : server verify-captcha with token session id and I must keep IP from the startup URL .. . .. . Using TOR after each request I have a new IP and there is a server-side validation that s sets my IP when the session was started in another words if my IP changes the session is considered invalid even though I send the session id and correct token with valid captcha chars . How can I keep the my IP with TOR for 2 consecutives requests Comment : You don t have a public IP with TOR : torproject.org docs tor-hidden-service.html.en https : www.torproject.org docs tor-hidden-service.html.en Comment : @AlexW thats the point . HTTP 1.1 suports pipelining but how can implements that with cURL and TOR .. . Answer : Depends on your TOR configuration . By default it only switches IP each 10 minutes . I suggest you refer in here for details : how to change tor exit node in a program way http : stackoverflow.com questions 1969958 how-to-change-tor-exit-node-in-a-program-way",
"Question : I have the following perl script to send pipelined http-request over a sinlge tcp connection . The first request goes through and i am able to get the response . The second reqeust also gets sent but no response is received for this request . I am able to see both requests being received on the server in the trace . On the Apache access log i see only one instance of the HTTP request being received : .. . .. . I am guessing that I am missing some characters that indicate the end of an HTTP request of the server . But i am not able to find what they are . What am i doing wrong here Edit : Could the Apache server be closing the connection after the first HTTP request is answered . Is there a setting for this Edit2 : KeepAlive was set to Off on my apache server . Setting it to ON fixes the issue . .. . Answer : Found the problem . The KeepAlive was set to off on my Apache server . Setting the KeepAlive to On fixed the problem .",
"Question : Regarding to HTTP keep-alive how request timeout should be handled on client-side For example there is a flow : .. . .. . Client sends Request1 .. . Client waits for 1 minute .. . Client assumes the Request1 failed and resends it i.e . sends new Request2 Request1 .. . Server responds with Response1 which is response for Request1 .. . Client assumes this is a response to Request2 but can handle it because Request1 Request2 .. . Client sends Request3 .. . Server responds with Response2 which is response for Request2 .. . Client assumes this is a response to Request3 and fails to handle it . I couldn t find any info in specification http : www.w3.org Protocols rfc2616 rfc2616-sec8.html sec8 . It says how to retry if connection was closed by server but nothing about the situation when request took too long to proceed . .. . Answer : I have experience with ASP.NET though I m not sure if this paradiagm is used for all HTTP pipelines . Here s what I understand : .. . .. . The response is tied to the request . In C there is a HttpContext https : msdn.microsoft.com en-us library system.web.httpcontext v vs.110 .aspx that facilitates this . The new request comes in on a separate thread which has no safe context of any other requests . When a client makes a request for example via WebRequest https : msdn.microsoft.com en-us library 456dfw4f v vs.110 .aspx the response is tied to that request . Therefore Request1 in your example could never be mixed up with Request2 . The keep-alive that s used in the HTTP request header indicates that the underlying TCP connection shouldn t be closed http : stackoverflow.com a 20799796 1244630 so that it can be reused for other requests . As far as I understand a single request timing out doesn t affect the underlying TCP connection that is even though the TCP connection is shared the request-response mechanisms work as usual ."
]
} | [
"yes-answer-long",
"yes-answer-short"
] | tcp | UNK_RELATION |
dart-rpc@dart@68 | dart-rpc -- dart-rpc is a package for building server-side restful @placeholder apis . | {
"confidence": [
63.9694938659668,
63.0185546875,
58.22703552246094,
56.891902923583984,
56.088069915771484,
56.01870346069336,
54.98764419555664,
53.790164947509766,
52.69408416748047,
49.06349563598633,
45.06571960449219,
44.77302932739258,
44.77302932739258,
44.77302932739258,
44.77302932739258,
42.873348236083984,
42.43860626220703,
42.10075378417969,
39.829063415527344,
39.592002868652344,
38.351959228515625,
38.006988525390625,
37.90104293823242,
37.90104293823242,
36.43415832519531,
35.82848358154297,
35.436279296875,
34.69629669189453,
34.57392120361328,
34.52838897705078,
33.52671813964844,
33.383445739746094,
32.34226608276367,
29.799880981445312,
29.723175048828125,
28.736154556274414,
27.230764389038086,
27.230764389038086,
25.796493530273438,
25.366374969482422,
25.331085205078125,
23.54584503173828,
21.10384178161621,
21.10384178161621,
21.10384178161621,
21.10384178161621,
21.10384178161621,
21.10384178161621,
21.10384178161621,
21.10384178161621,
21.10384178161621,
21.10384178161621,
21.10384178161621,
21.10384178161621,
18.186786651611328,
17.869033813476562,
16.884178161621094,
16.507488250732422,
16.28142547607422,
15.759346961975098,
15.759346961975098,
15.759346961975098,
15.759346961975098,
15.689004898071289,
15.689004898071289,
14.788629531860352,
14.103991508483887,
14.103991508483887,
14.103991508483887,
14.103991508483887,
14.103991508483887,
14.103991508483887,
14.103991508483887,
14.103991508483887,
14.103991508483887,
14.103991508483887,
14.103991508483887,
14.103991508483887,
14.103991508483887,
14.103991508483887,
14.103991508483887,
14.103991508483887,
12.20431137084961,
12.20431137084961,
12.20431137084961,
12.20431137084961,
12.20431137084961,
12.20431137084961,
12.20431137084961,
12.20431137084961,
12.20431137084961,
12.20431137084961,
12.20431137084961,
12.20431137084961,
12.20431137084961,
12.20431137084961,
12.20431137084961
],
"content": [
"I have a dart web service application written with Shelf and Rpc apis .",
"https : github.com dart-lang rpc issues 29",
"Using dart-rpc can you label a API method as async",
"This should be fixed in the latest version of the Dart RPC package v0.4.3 .",
"Thanks Opened : github.com dart-lang rpc issues 62 https : github.com dart-lang rpc issues 62",
"Anyone uses dart-rpc + shelf successfully",
"Be default Dart-RPC https : github.com dart-lang rpc uses JSON serialisation when transferring objects class instances between the server and the client .",
"done : github.com dart-lang rpc issues 42 https : github.com dart-lang rpc issues 42 Thanks for the swift reply",
"I have been playing around with the RPC package in Dart which makes it easy to add a Document Discovery service to Dart server .",
"Stack trace is : .. . .. . shelf 0.5.7 shelf rpc 0.0.3 rpc 0.4.2 : .. . .. . see incompatibility when running dart-rpc and shelf with shelf rpc related to headers which are lists and not Strings http : stackoverflow.com questions 30062245 incompatibility-when-running-dart-rpc-and-shelf-with-shelf-rpc-related-to-head",
"This is a bug in the RPC package .",
"You are welcome to file this kind of issue under github at : .. . .. . https : github.com dart-lang rpc issues .. . .. . Cheers gustav",
"incompatibility when running dart-rpc and shelf with shelf rpc related to headers which are lists and not Strings .",
"It seems that there is an incompatibility when running dart-rpc and shelf with shelf rpc related to headers which are lists and not Strings .",
"After upgrading to Dart rpc 0.4.3 it all works fine - no workaround required anymore",
"TestMessage1 https : github.com dart-lang rpc blob master test src test api messages.dart L22 .",
"The new issue that shows up : stackoverflow.com questions 30062245 http : stackoverflow.com questions 30062245 incompatibility-when-running-dart-rpc-and-shelf-with-shelf-rpc-related-to-head",
"Here s what I tried .. . .. . I ve used the following .proto definition file representing a Person entity : .. . .. . Which generated person.pb.dart for me using the protoc-gen-dart plugin https : github.com dart-lang dart-protoc-plugin by running the command : .. . .. . And some boilerplate dart-rpc code : .. . .. . Update .. . .. . Opened a feature request : https : github.com dart-lang rpc issues 62",
"Maybe this provides some insight moudra.net 2016 01 http : www.moudra.net 2016 01 dart-rpc-create-restful-api-in-couple.html m 1 haven t read it myself yet",
"Please create a bug report in the GitHub repo of the rpc package .",
"I want to try the rpc package of Dart using the io sample https : github.com dart-lang rpc .. . .. . I m on the 64 bits version of Dart editor with the 1.9.1 sdk cannot update more thans stable version .. . .. . This is my pubspec.yaml : .. . .. . But when I try to copy the sample for launch my server : .. . .. . My EDI SDK don t know the await keyword .",
"I will fix this ASAP and publish a new version of the RPC package .",
"An example : .. . .. . One limitation I did not like much is that you cannot use inheritance in these classes but then again the whole point of the rpc package is to create an API that can be consumed by any client not just dart code .",
"If you look in the messages used for testing https : github.com dart-lang rpc blob master test src test api messages.dart the package there are examples using sub-messages e.g .",
"It should be fixed now rpc v0.4.3 .",
"rpc only supports JSON .",
"Try activating the rpc package with a version constraint : .. . .. . https : www.dartlang.org tools pub cmd pub-global.html",
"There seems to be an incompatibility between the shelf and rpc packages .",
"Please add OS version Dart version maybe pubspec.lock file .",
"For more examples you can look at the dart services https : github.com dart-lang dart-services project which is the backend for dartpad .",
"The Dart API looks pretty clean but that s with no storage .",
"It has its current api here https : github.com dart-lang dart-services blob master lib src common server.dart and message definitions here https : github.com dart-lang dart-services blob master lib src api classes.dart .",
"update After the rpc fix the previously mentioned issue seems to be fixed .",
"It shouldn t be to hard to get the information what is expected out of the source of https : pub.dartlang.org packages discovery api client generator which is the Dart client which generates Dart client code from discovery documents .",
"I import the dart : io dart : async and rpc package in my library file .. . .. . I ve missed something",
"This is probably a really basic question about REST APIs .",
"When using rpc with dart.io HttpServer the code works fine and ParsedHttpApiRequest has a List of Strings with a single element as value of the access-control-request-method header .",
"Error thrown is for shelf 0.5.7 shelf rpc 0.0.3 rpc 0.4.2 : : .. . .. . A workaround around this problem is to change shelf rpc.dart to replace the Lists by Strings : .. . .. . Output :",
"In this case this question is not about Dart but about Java - Can I add a Document Discovery service to my existing java Web service application",
"In rpc 0.4.1 config api.dart : The handleHttpOptionsRequest expects the access-control-request-method header to be a List : .. . .. . When using the shelf 0.5.7 package the ParsedHttpApiRequest which is passed to this method contains an access-control-request-method header which is a String .",
"I just started reading the docs https : pub.dartlang.org packages rpc and don t see how to implement an API for an object-model that has sub-objects .",
"An example using the logger can be found here : https : github.com dart-lang shelf .. . .. . In the middleware you can find the ip-address in the request object which extends message .",
"I see in the documentation you can return a future but when I try to label the method async it seems to create a lot of problems .",
"Can you show us some code",
"If you can return a Future you can surely make it async .",
"My guess is that you re trying to do something and async is not working as you expect it to work .",
"Not sure what you re looking for it s just an APIMethod labeled as async like Future Result add Item i async .",
"I had thought the same thing that surely it would work until I realized none of RPC s examples have API methods labeled as async .",
"When it s labeled as async I get a bad parameter error but I m passing in the exact type .",
"Please post some code that demonstrates what you are doing .",
"Async simply allows you to use the await keyword .",
"See docs here https : www.dartlang.org docs tutorials futures async-await .",
"Async is supported .",
"Thanks to the support on this thread .",
"I am trying to follow the Beware the Nest o Pirates tutorial https : www.dartlang.org codelabs server and have hit a problem when I try to generate the client code for the PiratesApi .. . .. . When I run the command .. . .. . pub global run rpc : generate client -i lib server piratesapi.dart -o lib client .. . .. . I get the following error message .. . .. . Failed executing command discoveryWithImports with error : .. . .. . No constructor ApiParser with matching arguments declared in class ApiParser .",
"Also the shelf rpc package doesn t need to run on AppEngine or Managed VM .",
"The shelf rpc package generates the discovery document from the classes you use in the API and annotations you add to classes methods and fields .",
"You can run it locally or on any server you want .",
"The discovery api client generator package can also use discovery documents stored locally but the service is of course the preferred way if you want to make it available to everyone .",
"I then found Google Cloud Endpoint which looks like the server end of the a Document Discovery service .",
"You describe the API in a text document and generate classes for client and server from the document but ProtoBuf is a binary format instead of JSON .",
"Or maybe the server model just uses IDs in class definitions to refer to sub-objects like how Google s NDB does it",
"I m writing a server application and I would like to accept user requests only if coming from authorized IPs .",
".. . NoSuchMethodError : incorrect number of arguments passed to method named ApiParser .. . .. . Receiver : Type : class ApiParser .. . .. . Tried calling : ApiParser strict : true .. . .. . Found : ApiParser .. . .. . What does that error message mean",
"And does not forget to specify that this bug report was created by the recommendation of G nter Z chbauer .",
"My real question is that I would like to use the Document Discovery service on a standard web site that is based on say Spring and running say an embedded Jetty server",
"This generates an exception.. .",
"If so any idea on how to avoid the exception",
"Thanks for that",
"I now run into another issue but I did not yet investigate in detail .",
"O.K .",
"Should be fixed now .",
"If you could try it out and let me know that would be great .",
"You need to do a pub upgrade to get the latest version v0.4.2 .",
"The previously mentioned issue seems to be fixed .",
"A new issue turned up see question update",
"Sorry about the lack of proper testing .",
"Please let me know how it works for you .",
"Please try it out and let me know how it works .",
"gustav",
"Thanks a lot for the fix",
"Good to hear that :",
"After a bit of Googling I found out about the API Discovery Service https : developers.google.com discovery which explained how to create client code for a given Discovery Document .",
"Is this true .",
"Is this possible or would my application be intertwined with the App Engine Technology",
"You application just needs to provide a Document Discovery service .",
"As far as I know your service doesn t even need to provide the discovery documents .",
"I would see it as equivalent to SOAP which also allows to create client code from meta-information provided as XML .",
"Hi Gunter .",
"The discovery document describes the API .",
"I haven t checked but I assume it s JSON .",
"You need to provide such a document for your API in some way and you need a generator that generates code from this document .",
"Such a client exists for various languages including Java .",
"You just have to find or build such a tool for Java I assume there already exists one but haven t checked .",
"You could also use Protocol Buffers in a similar way .",
"How can I use Protobuf Protocol Buffers https : github.com google protobuf serialisation instead",
"Is it possible to specify the serialisation method like a content-type using the Accept request header"
]
} | {
"confidence": [
77.97440338134766,
77.70121765136719,
71.32354736328125,
70.6549301147461,
67.77001190185547,
65.40309143066406,
64.62657928466797,
60.24104309082031,
57.96242141723633,
53.02206802368164,
49.9139518737793
],
"content": [
"Question : This is probably a really basic question about REST APIs . I just started reading the docs https : pub.dartlang.org packages rpc and don t see how to implement an API for an object-model that has sub-objects . Instead there is only a description of objects with primitives only int string etc . Is there an example with an object hierarchy Or maybe the server model just uses IDs in class definitions to refer to sub-objects like how Google s NDB does it Comment : Maybe this provides some insight moudra.net 2016 01 http : www.moudra.net 2016 01 dart-rpc-create-restful-api-in-couple.html m 1 haven t read it myself yet Comment : Thanks . That s a fun little blog posting . The Dart API looks pretty clean but that s with no storage . .. . Answer : If you look in the messages used for testing https : github.com dart-lang rpc blob master test src test api messages.dart the package there are examples using sub-messages e.g . TestMessage1 https : github.com dart-lang rpc blob master test src test api messages.dart L22 . For more examples you can look at the dart services https : github.com dart-lang dart-services project which is the backend for dartpad . It has its current api here https : github.com dart-lang dart-services blob master lib src common server.dart and message definitions here https : github.com dart-lang dart-services blob master lib src api classes.dart . dart services does not use direct nested messages but nested lists of other messages .",
"Question : This is probably a really basic question about REST APIs . I just started reading the docs https : pub.dartlang.org packages rpc and don t see how to implement an API for an object-model that has sub-objects . Instead there is only a description of objects with primitives only int string etc . Is there an example with an object hierarchy Or maybe the server model just uses IDs in class definitions to refer to sub-objects like how Google s NDB does it Comment : Maybe this provides some insight moudra.net 2016 01 http : www.moudra.net 2016 01 dart-rpc-create-restful-api-in-couple.html m 1 haven t read it myself yet Comment : Thanks . That s a fun little blog posting . The Dart API looks pretty clean but that s with no storage . .. . Answer : From docs : .. . .. . Currently supported types for the public fields are int double bool String DateTime List Map and another message class . This means you can create the structure you need the only requirement is that all objects in it must be constructed of in that particular way . An example : .. . .. . One limitation I did not like much is that you cannot use inheritance in these classes but then again the whole point of the rpc package is to create an API that can be consumed by any client not just dart code . Comment : Nice point about no inheritance . You mean there are other client languages : -",
"Question : There seems to be an incompatibility between the shelf and rpc packages . In rpc 0.4.1 config api.dart : The handleHttpOptionsRequest expects the access-control-request-method header to be a List : .. . .. . When using the shelf 0.5.7 package the ParsedHttpApiRequest which is passed to this method contains an access-control-request-method header which is a String . This generates an exception.. . When using rpc with dart.io HttpServer the code works fine and ParsedHttpApiRequest has a List of Strings with a single element as value of the access-control-request-method header . Anyone uses dart-rpc + shelf successfully If so any idea on how to avoid the exception update After the rpc fix the previously mentioned issue seems to be fixed . Thanks for that I now run into another issue but I did not yet investigate in detail . Stack trace is : .. . .. . shelf 0.5.7 shelf rpc 0.0.3 rpc 0.4.2 : .. . .. . see incompatibility when running dart-rpc and shelf with shelf rpc related to headers which are lists and not Strings http : stackoverflow.com questions 30062245 incompatibility-when-running-dart-rpc-and-shelf-with-shelf-rpc-related-to-head .. . Answer : This is a bug in the RPC package . I will fix this ASAP and publish a new version of the RPC package . You are welcome to file this kind of issue under github at : .. . .. . https : github.com dart-lang rpc issues .. . .. . Cheers gustav Comment : O.K . done : github.com dart-lang rpc issues 42 https : github.com dart-lang rpc issues 42 Thanks for the swift reply Comment : Should be fixed now . If you could try it out and let me know that would be great . You need to do a pub upgrade to get the latest version v0.4.2 . Comment : The previously mentioned issue seems to be fixed . Thanks for that A new issue turned up see question update Comment : The new issue that shows up : stackoverflow.com questions 30062245 http : stackoverflow.com questions 30062245 incompatibility-when-running-dart-rpc-and-shelf-with-shelf-rpc-related-to-head Comment : Sorry about the lack of proper testing . It should be fixed now rpc v0.4.3 . Please let me know how it works for you .",
"Question : incompatibility when running dart-rpc and shelf with shelf rpc related to headers which are lists and not Strings . It seems that there is an incompatibility when running dart-rpc and shelf with shelf rpc related to headers which are lists and not Strings . Error thrown is for shelf 0.5.7 shelf rpc 0.0.3 rpc 0.4.2 : : .. . .. . A workaround around this problem is to change shelf rpc.dart to replace the Lists by Strings : .. . .. . Output : .. . Answer : This should be fixed in the latest version of the Dart RPC package v0.4.3 . Please try it out and let me know how it works . gustav Comment : After upgrading to Dart rpc 0.4.3 it all works fine - no workaround required anymore Thanks a lot for the fix Comment : Good to hear that :",
"Question : Be default Dart-RPC https : github.com dart-lang rpc uses JSON serialisation when transferring objects class instances between the server and the client . How can I use Protobuf Protocol Buffers https : github.com google protobuf serialisation instead Is it possible to specify the serialisation method like a content-type using the Accept request header Here s what I tried .. . .. . I ve used the following .proto definition file representing a Person entity : .. . .. . Which generated person.pb.dart for me using the protoc-gen-dart plugin https : github.com dart-lang dart-protoc-plugin by running the command : .. . .. . And some boilerplate dart-rpc code : .. . .. . Update .. . .. . Opened a feature request : https : github.com dart-lang rpc issues 62 .. . Answer : rpc only supports JSON . You can create a feature request in the GitHub repository . Comment : Thanks Opened : github.com dart-lang rpc issues 62 https : github.com dart-lang rpc issues 62",
"Question : I am trying to follow the Beware the Nest o Pirates tutorial https : www.dartlang.org codelabs server and have hit a problem when I try to generate the client code for the PiratesApi .. . .. . When I run the command .. . .. . pub global run rpc : generate client -i lib server piratesapi.dart -o lib client .. . .. . I get the following error message .. . .. . Failed executing command discoveryWithImports with error : .. . .. . No constructor ApiParser with matching arguments declared in class ApiParser . .. . NoSuchMethodError : incorrect number of arguments passed to method named ApiParser .. . .. . Receiver : Type : class ApiParser .. . .. . Tried calling : ApiParser strict : true .. . .. . Found : ApiParser .. . .. . What does that error message mean Comment : Please create a bug report in the GitHub repo of the rpc package . Please add OS version Dart version maybe pubspec.lock file . Comment : Please create a bug report in the GitHub repo of the rpc package . Please add OS version Dart version maybe pubspec.lock file . And does not forget to specify that this bug report was created by the recommendation of G nter Z chbauer . .. . Answer : Try activating the rpc package with a version constraint : .. . .. . https : www.dartlang.org tools pub cmd pub-global.html",
"Question : I want to try the rpc package of Dart using the io sample https : github.com dart-lang rpc .. . .. . I m on the 64 bits version of Dart editor with the 1.9.1 sdk cannot update more thans stable version .. . .. . This is my pubspec.yaml : .. . .. . But when I try to copy the sample for launch my server : .. . .. . My EDI SDK don t know the await keyword . I import the dart : io dart : async and rpc package in my library file .. . .. . I ve missed something Thanks by advance for your responses . Have a nice day . .. . Answer : You need to mark the function as async in order to be able to use await .. . .. . try at DartPad https : dartpad.dartlang.org a5170ff293b861b3db6b .. . .. . Without async-await is a valid identifier . Comment : I missed that sorry Thank you very much for your help .",
"Question : Using dart-rpc can you label a API method as async I see in the documentation you can return a future but when I try to label the method async it seems to create a lot of problems . Comment : Can you show us some code If you can return a Future you can surely make it async . Comment : My guess is that you re trying to do something and async is not working as you expect it to work . Comment : Not sure what you re looking for it s just an APIMethod labeled as async like Future Result add Item i async . I had thought the same thing that surely it would work until I realized none of RPC s examples have API methods labeled as async . Comment : When it s labeled as async I get a bad parameter error but I m passing in the exact type . Comment : Please post some code that demonstrates what you are doing . .. . Answer : Async is supported . Thanks to the support on this thread . https : github.com dart-lang rpc issues 29",
"Question : I have a dart web service application written with Shelf and Rpc apis . I need to check the client Ip inside my api methods but I cannot figure how . The context method does not contain the HttpRequest .contentInfo property . More also the shelf Request object does not contain it so also a middleware function would be of no use . Anyone has an Idea on how to solve this problem Comment : Just a question about the context . What are you trying to do with the client s IP address As it is sometimes not a good idea to identify a client by its IP address . Comment : I m writing a server application and I would like to accept user requests only if coming from authorized IPs . .. . Answer : You can do this by using the middleware concept of shelf . You can view an example logger middle ware here : https : www.crossdart.info p shelf 0.6.5+2 src handlers logger.dart.html . An example using the logger can be found here : https : github.com dart-lang shelf .. . .. . In the middleware you can find the ip-address in the request object which extends message . Message gives you access to the raw http header which contains the ip-address . From there you can decide how you want to handle an invalid ip throw an error return a request with an error etc . .",
"Question : I have been playing around with the RPC package in Dart which makes it easy to add a Document Discovery service to Dart server . After a bit of Googling I found out about the API Discovery Service https : developers.google.com discovery which explained how to create client code for a given Discovery Document . I then found Google Cloud Endpoint which looks like the server end of the a Document Discovery service . Is this true . My real question is that I would like to use the Document Discovery service on a standard web site that is based on say Spring and running say an embedded Jetty server Is this possible or would my application be intertwined with the App Engine Technology .. . Answer : You application just needs to provide a Document Discovery service . It shouldn t be to hard to get the information what is expected out of the source of https : pub.dartlang.org packages discovery api client generator which is the Dart client which generates Dart client code from discovery documents . As far as I know your service doesn t even need to provide the discovery documents . The discovery api client generator package can also use discovery documents stored locally but the service is of course the preferred way if you want to make it available to everyone . I would see it as equivalent to SOAP which also allows to create client code from meta-information provided as XML . Also the shelf rpc package doesn t need to run on AppEngine or Managed VM . You can run it locally or on any server you want . Comment : Hi Gunter . In this case this question is not about Dart but about Java - Can I add a Document Discovery service to my existing java Web service application Comment : The discovery document describes the API . I haven t checked but I assume it s JSON . You need to provide such a document for your API in some way and you need a generator that generates code from this document . Such a client exists for various languages including Java . The shelf rpc package generates the discovery document from the classes you use in the API and annotations you add to classes methods and fields . You just have to find or build such a tool for Java I assume there already exists one but haven t checked . Comment : You could also use Protocol Buffers in a similar way . You describe the API in a text document and generate classes for client and server from the document but ProtoBuf is a binary format instead of JSON .",
"Question : Using dart-rpc can you label a API method as async I see in the documentation you can return a future but when I try to label the method async it seems to create a lot of problems . Comment : Can you show us some code If you can return a Future you can surely make it async . Comment : My guess is that you re trying to do something and async is not working as you expect it to work . Comment : Not sure what you re looking for it s just an APIMethod labeled as async like Future Result add Item i async . I had thought the same thing that surely it would work until I realized none of RPC s examples have API methods labeled as async . Comment : When it s labeled as async I get a bad parameter error but I m passing in the exact type . Comment : Please post some code that demonstrates what you are doing . .. . Answer : Async simply allows you to use the await keyword . See docs here https : www.dartlang.org docs tutorials futures async-await ."
]
} | [
"yes-answer-long",
"yes-answer-short"
] | dart | UNK_RELATION |
plasticscm@visualization@78 | plasticscm -- plastic scm is a distributed version-control system focused on @placeholder usability and enterprise support . | {
"confidence": [
40.98633575439453,
40.94789123535156,
40.767662048339844,
38.66649627685547,
38.54058074951172,
38.30426025390625,
36.90456008911133,
36.83525085449219,
36.805625915527344,
36.24272918701172,
36.1923828125,
36.1923828125,
36.034420013427734,
35.81525421142578,
35.58289337158203,
34.868526458740234,
34.868526458740234,
34.868526458740234,
34.733543395996094,
34.61697006225586,
34.556663513183594,
33.74663162231445,
33.74663162231445,
33.74663162231445,
33.74663162231445,
33.68388366699219,
33.61571502685547,
33.002197265625,
32.677452087402344,
32.625244140625,
32.59518051147461,
32.50047302246094,
32.482364654541016,
32.477481842041016,
32.477481842041016,
32.477481842041016,
32.16095733642578,
32.11061096191406,
32.11061096191406,
32.11061096191406,
31.592193603515625,
31.592193603515625,
31.264272689819336,
31.125688552856445,
31.025264739990234,
30.95644760131836,
30.66937255859375,
30.367313385009766,
30.27242660522461,
30.268733978271484,
30.215410232543945,
30.203882217407227,
30.203882217407227,
30.03173065185547,
30.03173065185547,
30.03173065185547,
29.724449157714844,
29.724449157714844,
29.602108001708984,
29.525392532348633,
29.395679473876953,
29.372400283813477,
29.33395004272461,
28.87044906616211,
28.858095169067383,
28.858095169067383,
28.858095169067383,
28.833261489868164,
28.818519592285156,
28.791580200195312,
28.702495574951172,
28.63163185119629,
28.49749755859375,
28.419925689697266,
28.395706176757812,
28.395706176757812,
28.395706176757812,
28.395706176757812,
28.317058563232422,
28.240230560302734,
28.22361946105957,
28.198530197143555,
27.758129119873047,
27.758129119873047,
27.657367706298828,
27.657367706298828,
27.331928253173828,
27.310361862182617,
27.310361862182617,
27.182498931884766,
27.17498016357422,
27.016708374023438,
26.83942413330078,
26.736709594726562,
26.706645965576172,
26.706645965576172,
26.706645965576172,
26.481555938720703,
26.418315887451172,
26.418315887451172
],
"content": [
"Disclaimer : I work for Plastic SCM .",
"I have 5.0.44.598 - Mahon version of Plastic SCM the latest one by today 25 Aug 2014 .. . .. . This is the first time I will be using Plastic SCM .",
"We are investigating Plastic SCM as possible alternative to Subversion for version-control with our products .",
"For Source Control I have Plastic SCM and GitHub .",
"Plastic SCM migration configuration guide",
"For that purpose : .. . .. . Install the last Plastic SCM version in your new machine .",
"Test connection is successful to plastic scm .",
"The Plastic SCM support have contacted you in order to help with your license issue and renew your CE license .",
"Plastic Cloud Edition is the sum of the Plastic SCM software plus a Plastic Cloud server and storage all packaged together in a single pay-as-you-go subscription .",
"I am using the Plastic scm version 5.4.16.743 and I am using the VS2015 IDE for development .",
"Where can you download the Plastic SCM java client",
"I wonder whether this issues is known and tracked by the Plastic SCM development team .",
"Is anyone using Plastic SCM",
": I ve installed the latest version of PlasticSCM 5.4.16.633",
"The last available version is Plastic SCM 5.4.16.753 .. . .. . The upgrade process is very straightforward .",
"I m looking to setup Plastic SCM on a hosted server .",
"Plastic SCM needs a git server to perform a sync .",
"I m not familiar with plastic-scm but could it be permissions",
"I have been trying out Plastic SCM for a few weeks now. . and we still have issues in figureing out how to use Plastic SCM when multiple develoeprs are working with the same repository .",
"Without doubt Plastic SCM is the best Version Control System I ve ever seen used MS Sourcesafe CVS SVN StarTeam .",
"When using Plastic SCM for source control for an ASP.NET application webforms what folders are best to exclude for checking in",
"Since Plastic SCM can be used as a github client I decided to use it as such .",
"Now I don t know how this is done using Plastic SCM .",
"git-push origin master .. . .. . Sync Plastic SCM with your github repo .",
"So I m trying to automate my Plastic SCM server .",
"So far I ve only found the minimum requirement https : www.plasticscm.com documentation administration plastic-scm-version-control-administrator-guide.shtml Chapter2 : Minimumrequirements 512MB RAM etc .",
"There is not a specific Plastic SCM plugin for INTEL-XDK but it doesn t mean that you can t use Plastic as SCM .",
"The import into PlasticSCM succeeded .",
"Without hooks working on central server there is no way to use Plastic SCM in distributed scenario at our company .",
"We have extensively tested Plastic on EC2 in fact it is one of the main environments where we run Plastic SCM tests .",
"The Plastic SCM subtractive merge system will undo all the content introduced resulting in what you had before that certain changeset .",
"Alternatively you can send all the log you can find plasticd.log.txt to the Plastic SCM forums www.plasticscm.net the community and the Plastic SCM guys will help you on this .",
"Has anyone used Plastic SCM lately",
"It seems that Plastic SCM does not track code moved between files compare with e.g .",
"I had a couple question on using Plastic SCM that I could not find answers to elsewhere .",
"The Plastic SCM default diff tool will open a GUI showing you the file differences .",
"Is any one having information that plastic SCM latest version supporting the vs 2015 integration .",
"When this option is not set Plastic SCM uses the timestamps of the files .",
"Plastic SCM databases starts with the preffix : .. . .. . where X is a numeric id .",
"I have created the build configuration with plastic-scm vcs type .",
"diff.exe manually editing the home user .plastic client.conf or using the Plastic SCM GUI : .. . .. . This way you can run diffs through the command-line and based on the output determine if the files are identical or not .",
"Does anyone have any experience with Plastic SCM in such an environment or can refer me to some whitepapers or case studies on the matter of Plastic SCM s performance and handling of large repositories",
"I guess that you ar using the last Plastic 5.4 version right",
"Since I have upgraded to this version of plastic every time a new file is add-in VS plastic adds that file to the Added and Private Items list but it does not auto select the items to be checked in by default As it says in plastic documentation .",
"Yes you can use Plastic SCM to sync with TFS .",
"Plastic SCM is a second solution I checked .",
"I ve created a repository on github for synchronizing with plasticSCM .",
"I made this being in touch with really fantastic extraordinary and responsive Plastic SCM Support Team .",
"Yes you can use Plastic SCM GitServer https : www.plasticscm.com gitserver index.html to push pull directly from Git to Plastic .",
"I come from the Visual Studio and VSS Team Foundation Server Plastic SCM background so can t think of having to start coding without having a version-control system in-place .",
"But users are not added to Plastic as such .",
"So.. . how are we supposed to work with Plastic SCM Cloud Edition when in a smal team of 2-5 developers when working with Unity3D",
"Plastic SCM is tested under really heavy load using a small cluster with 100 client machines working against one single server .",
"I ve been a great fan of Plastic SCM for a while now using it locally for my own personal projects .",
"In my Plastic SCM client I can see exactly the same network graphs in the branch explorer with the exception of the purple branch .",
"If I properly understand you need to migrate a Plastic SCM server to a new machine .",
"Plastic SCM was recommended but I like to get a community view on it .",
"we use Plastic SCM allready for over two years .",
"It depends on the backend you have configured http : plasticscm.com documentation administration plastic-scm-version-control-administrator-guide.shtml Chapter8 : Databasesetup SQLServer MySQL Firebird etc.. . .",
"http : www.plasticscm.com infocenter technical-articles kb-enabling-logging-for-plastic-scm-part-i.aspx and send the stack-trace to : support@codicesoftware.com .. . .. . I ve tested the same version in my local Win7 machine and the branch explorer is properly working .",
"Review the server log to get more info plasticd.log.txt .. . .. . If you want to try MySQL or SqlServer you can follow the following tutorials it s very easy it doens t use the Plastic SCM admin tool but it s more powerfull since you can specify more parameters : .. . .. . SqlServer : https : www.plasticscm.com documentation administration plastic-scm-version-control-administrator-guide.shtml ConfigurePlasticSCMwithMSSQLServer .. . MySQL : https : www.plasticscm.com documentation administration plastic-scm-version-control-administrator-guide.shtml ConfigurePlasticSCMwithMySQL .. . .. . Going back to your problem you can try the following I guess that your db.conf file inside the Plastic SCM server directory is now trying to connect to MySQL check it by opening it and reviewing the provider tag then try to start the server in console mode in order to do it open an admin command-line window cd to the Plastic SCM server directory and type : .. . .. . plasticd.exe --console .. . .. . Do you see any error",
"I have installed plastic v5.0.44.618 .",
"Does the installer name version PlasticSCM-5.4.16.628-osx-installer.app tell you this",
"But I am used to using the plastic client for last couple of years when there comprehensive plastic VS plug-in wasn t available .",
"When I chek the services which should run the plasticscm server stopped .",
"My question is now how to change this setting or bypass it in plasticscm",
"I m evaluating PlasticSCM on a VMWare Machine with 4GB RAM and 4Core CPU .",
"FIPS support was added to Plastic SCM BL700 back in Oct 2015 as you can find here https : www.plasticscm.com download releasenotes 5.4.16.700",
"I m trying to build new product version using plastic .",
"To be able to update your fork and continue working with Plastic SCM you should use the command-line git client to perform the update following the guide you linked push the local git changes to your github repository and then sync Plastic SCM with github to get the changes .",
"Now this is my first time using github so I followed the classic github workflow as described in all the tutorials : .. . .. . Fork the repo to get your own copy .. . Sync the Plastic SCM repo with the personal github repo .. . Commit changesets in Plastic SCM .. . Sync the Plastic SCM repo with github again .. . .. . So far everything went fine .",
"Rok .. . .. . Plastic SCM supports stashing shelving changes and it implements a mix of what Git and Perforce TFS can do as you can find here : http : codicesoftware.blogspot.com 2012 02 shelving-stashing-introduced.html .. . .. . Plastic SCM can : .. . .. . Apply the stashes through merging - like Git and unlike TFS .. . Store the stash on server - like TFS and unlike Git .. . .. . But I think you re asking for a way to checkin only part of a file hunks like in Git which is something Plastic SCM can t do so far.. . An interesting feature but not yet there : P",
"I am investigating source control systems and considering migrating from SVN to either GIT or PlasticSCM .",
"If this is possible from plastic PCM or Plastic Gluon that is an option also .",
"Plastic SCM gives the impression that I have committed all changes and am now synchronized to a specific changeset .",
"I am using Plastic SCM v4.x on windows-7 8 and have a projects that uses node.js .",
"How can I know how much disk space is occupying a Plastic SCM repository",
"@Karl.. . looks like a good idea indeed.. . Wonder if we can make it in plastic scm 4.0 .",
"In the case of TFS you need to download Plastic SCM 4.2 or higher which is the labs version but fully stable that includes the new functionality .",
"Could you enable the Plastic client log",
"The license model of PlasticSCM is per-user and per-server .",
"But Plastic SCM seems to be simpler and much more intuitive this is my first impression .",
"The point here is that Plastic SCM does not track or sync the upstream references the references of the original repo just your github s repo references .",
"If you are using one of the latest Plastic SCM releases 4.1.10.359 you will be able to perform something like the following : .. . .. . All the changed moved deleted items will be committed .",
"@Jegan : Unfortunately the new Plastic SCM versions do not auto selects all newly added files and folders automatically to prevent the user checking-in not desired changes to the server .",
"We are currently working with Unity3D for our project and for each time we try to merge our changes we always end up with some sort of problem. . .. . .. . We are currently using the Plastic SCM Cloud Edition .",
"I ve just installed PlasticSCM only client using the graphical installer from PlasticSCM official download site .",
"After fresh installs of Plastic SCM and MySQL I try to change the database backend to MySQL but consistently get the following error .",
"I m writing a fast-export fast-import suite for Plastic SCM http : www.plasticscm.com Git and I m finding some issues .",
"I have an instance of plastic installed on my local machine version 5.0.44.519 .",
"But I can t find any way to install all the configurations without a prompt running clconfigureserver in the sever even though I ve read the Admin guide https : www.plasticscm.com documentation administration plastic-scm-version-control-administrator-guide.shtml a bunch of times looking for something .",
"I ve recently switch from CVS to Plastic for source control .",
"repo is the name of the PlasticSCM repository to sync .",
"My company is currently using plastic scm version 4 and needs to upgrade to the newest version 6 for the git features it provides what are some best practices for doing this",
"1 Can you link up a plastic Server to multiple databases",
"3 Are there any poor effects of hosting the Plastic Server and DB on the same box",
"5 Is there a way to move only certain repositories to a new plastic server",
"TLDR : On Linux plastic client I added .. . .. . And copied that dll file to the client folder from the client extensions jira folder .. . .. . And added the jiraextension.conf file to the client folder .. . .. . I have also asked this question on the plasticscm forums : http : www.plasticscm.net index.php topic 3236-plastic-issue-tracking-missing-on-linux",
"Anyone know how to remove users in PlasticSCM when the server is configured to use Active Directory security",
"I was trying to find a spec with details on hardware requirement for running PlasticSCM server which incorporates scaling ."
]
} | {
"confidence": [
63.884395599365234,
55.879600524902344,
55.858001708984375,
51.38191223144531,
51.113521575927734,
49.17335891723633,
48.26826095581055,
48.155860900878906,
47.36891555786133,
46.827877044677734,
46.735862731933594,
46.707828521728516,
46.471134185791016,
45.42203903198242,
45.305870056152344,
45.301734924316406,
44.96735763549805,
44.957237243652344,
44.8621940612793,
44.47080993652344
],
"content": [
"Question : I know there are some questions already regarding Plastic SCM but they are over a year old . Has anyone used Plastic SCM lately What do you think about it . I have used git and I am currently using Hg . I love the Hg source control but Visual Studio integration is not great and related task project-management tools have not been great . Plastic SCM was recommended but I like to get a community view on it . - And no I don t care about grammar on the website . I prefer well engineered solutions to well marketed websites . Comment : Is anyone using Plastic SCM It looks good and I m wondering the exact same thing . Comment : Marked Andr s as answer . The next 2 responses after Andr s came just after Plastic SCM solicited comments from followers on Twitter . Maybe that s o.k . However only two followers commented .. . Answer : I made some investigation in 2010 for my company considering PlasticSCM as option . I found some places to improvement which was critical for our company . I made this being in touch with really fantastic extraordinary and responsive Plastic SCM Support Team . The problem is missing triggers for push pull operations . Also internal external API is not done yet but You can find some examples of plugins available at PlasticSCM s forum . Without hooks working on central server there is no way to use Plastic SCM in distributed scenario at our company . That is why we choose Git . Second thing is not missing but not released support for PostgreSQL . I red on forum You can ask about such ability - and PlasticSCM posses such code somewhere . PlasticSCM contain so many functions available as plugin and so rich GUI that You want to implement something more inside . But we still wait for some API to released . I can t wait this . There is also no floating enterprise licences and current per user licence model is very expensive . Of course You can contact with sales : Comment : We re already using Postgresql in 4.0 internal betas.. . : Comment : Update : postgres is out triggers too integration with Git too.. . long way since this answer : -",
"Question : null .. . Answer : I m evaluating PlasticSCM on a VMWare Machine with 4GB RAM and 4Core CPU . Since I ve ported our trunk into the server about 6GB of Data the service ran out-of-memory started swapping . I ve increased the the VM RAM to 6GB This is actually more than I d like to load the host system with since I ve also got VMs for PlasticSCM Client TeamCity Server TeamCity Agent . I was trying to find a spec with details on hardware requirement for running PlasticSCM server which incorporates scaling . So far I ve only found the minimum requirement https : www.plasticscm.com documentation administration plastic-scm-version-control-administrator-guide.shtml Chapter2 : Minimumrequirements 512MB RAM etc . and the system information of your heavy load https : www.plasticscm.com under-heavy-load index.html and scale https : www.plasticscm.com version-control-for-games.html performance-results test . As far as I can see it s all about RAM . : .. . .. . Anyway is there a detailed spec with recommendations for the hardware being used P.S . : Of course in case of switching to Plastic we d run the service on a real machine instead of VM . Comment : Hi DenDev . Look 4GB of RAM should be more than enough . I ve 18GB of repos in my laptop and the process uses like 150-200MB . Are you intensively using under heavy load tons of users . Since I guess it is not the case I can only think of eating too much memory during the port which I guess was a gitsync or similar correct If so yes during import it can use more mem typically the client not the server . Restart it should use less . Otherwise contact our support team and we ll look into it immediately . Comment : TeamCity was updating the workspace . In the meanwhile I was testing some access stuff with the ACLs . By this the TeamServer got accidentally ripped of the server access right revoked during update which might have left the server in an undefined state . At the end the server was consuming 4 5GB swapping SQL was consuming 2GB . Since restarting the service its running fine with about 200MB RAM MySQL consuming 2.7GB . Anyway I would expect the server to handle those operations gracefully . Still I d like to have some hardware spec I can provide to our IT .",
"Question : Has anyone used the PlasticSCM client tools to work against a TFS repository Basically my current client is using the new hosted TFS for version-control not TFS-Git just standard TFS but I have seen the light of distributed version-control systems on previous projects and now can t go back Is there a recommended approach to getting a DVCS style experience with a standard TFS backend I know I am asking a lot but I have done some research and there seems to be hints that it maybe possible to sync PlasticSCM with TFS all over the PlasticSCM forums but I have found nothing concrete . This youtube video looks very promising . With checkins made to Plastic appearing in TFS and vice versa via a command-line sync operation . http : www.youtube.com watch v AJKF3cjg7jA .. . Answer : Yes you can use Plastic SCM to sync with TFS . But so far you ve to rely on the command-line . It is able to keep one branch in sync since keeping more than one gets complicated since TFS doesn t do the same sort of branch and merge tracking that Plastic does . In fact Plastic can be fully synced with Git http : www.plasticscm.com gitsync index.html pushing and pulling branches merges and concurrent changes merge tracking and everything . In the case of TFS you need to download Plastic SCM 4.2 or higher which is the labs version but fully stable that includes the new functionality . Once you do that the command is rather simple : .. . .. . The user argument accepts domain names --user Domain username . Check the following graphic with more details about how it works : .. . .. . enter image description here http : i.stack.imgur.com zArIk.png Comment : Thank you pablo - I thought that it would be you to come to my rescue Has the cm sync command been tested with Hosted TFS www.visualstudio.com . No matter how I enter my username and password I get Error : TF30064 : You are not anuthorized to access the server . Because it is hosted TFS my user account is my MS live account email-address . Comment : No we didn t test it with the online one . But we will give it a try.. . today : - Stay tuned . Comment : Are you using TFS 2012 or 2010 Because so far we do use 2010 only . And it seems TFS 2010 itself fails too against the online . We ll look to update to 2012 . Comment : Good question I am not sure which version the hosted TFS utilises . I would assume it s the latest version as its a brand new service . I am using VS2012 to connect to it . Comment : Hi @AlexPreston starting from release 4.2.39.458 of PlasticSCM we have included support for TFS 2012 . We have also checked the hosted TFS version and we have a small issue . On the first sync the process can get stuck asking for credentials . If you try again the process will complete successfully .",
"Question : null .. . Answer : I m currently evaluating PlastiSCM . One of our evaluation tasks is to test migration from our SVN repository to Plastic . We want to migrate our trunk only since the branch structure and information is somewhat broken . I was able to migrate to git with git-svn . I fast exported the git-repo with -C -M parameters . The import into PlasticSCM succeeded . However when checking out master on the imported Plastic Repo the client complains about missing files . These files don t show up in the Items list in the Client . The filenames which have issues contain octal escape sequences . It turned out that these file names have got german umlaute in them . I was testing git fast import of the exported stream . Git is able to handle theses filenames correctly . After some digging I found this aged thread : Fast export import issues http : www.plasticscm.net index.php topic 618-fast-export-failing-to-deal-with-non-english-chars-in-branch-names page-2 entry5711 . I ve linked to a post telling about the octal coding issue . The thread is actually adressing TFS conversion issues in general . One author claims to have a script which recodes octal coded characters into an encoding which can be read by PlasticSCM fast import . However the script is not provided . Has anyone encountered this problem as well How could a solution look like I can t imagine I m the only one having this problem especially because Plastic is developed in Spain where non-english characters should encounter quite frequently . I wonder whether this issues is known and tracked by the Plastic SCM development team . Comment : You can find the requested script here : plasticscm.net index.php topic http : www.plasticscm.net index.php topic 930-importing-tfs-project-into-plastic page-2 Anyway could send your fast-export file to : support at codicesoftware dot com We will review your scenario in detail and we will try to modify the file in order to properly import it to Plastic . I guess that you ar using the last Plastic 5.4 version right PD : You can use the --nodata option if you can t share with us your repository content . Comment : I ll check if I can provide you the requested data . The link you provided is the thread mentioned by me . I can see a script there but it seems to me that it handles missing quotes only . Comment : P.S . : I ve installed the latest version of PlasticSCM 5.4.16.633 Comment : I ve looked into the nodata-export . I m afraid my company won t release that kind of information without NDA since it provides information about internal development structures . Anyway I ll try the script you mentioned I ve realized the thread you linked was different to my reference",
"Question : Has anyone used the PlasticSCM client tools to work against a TFS repository Basically my current client is using the new hosted TFS for version-control not TFS-Git just standard TFS but I have seen the light of distributed version-control systems on previous projects and now can t go back Is there a recommended approach to getting a DVCS style experience with a standard TFS backend I know I am asking a lot but I have done some research and there seems to be hints that it maybe possible to sync PlasticSCM with TFS all over the PlasticSCM forums but I have found nothing concrete . This youtube video looks very promising . With checkins made to Plastic appearing in TFS and vice versa via a command-line sync operation . http : www.youtube.com watch v AJKF3cjg7jA .. . Answer : Why not use git locally and use git-tf http : gittf.codeplex.com to sync with TFS version-control Comment : Thanks James could well be a valuable fallback option . Comment : thanks I tried this and it was looking good but when I synced with TFS instead of reflecting all of my commits as separate checkins to TFS it batched them all up on each sync and my commit messages got lost .",
"Question : I am very new to phonegap development and just had a INTEL-XDK setup . I am wondering how can I have it work integrated with my source control system . For Source Control I have Plastic SCM and GitHub . I come from the Visual Studio and VSS Team Foundation Server Plastic SCM background so can t think of having to start coding without having a version-control system in-place . I explored all over INTEL-XDK IDE searched across the internet and I find it surprising that there is no mention of source control for this IDE .. . Answer : There is not a specific Plastic SCM plugin for INTEL-XDK but it doesn t mean that you can t use Plastic as SCM . Plastic has a transparent SCM feature : http : www.plasticscm.com features transparent-scm.aspx .. . .. . It means that you can directly modify change your code files create new ones copy move rename delete.. . and Plastic will detect all the actions you did and displays them together so you can quickly check them in and get back to coding . Tracking all these changes helps later to have a smooth merging experience so you can enjoy the benefits of branching with no restrictions . So in summary you can continue using Plastic SCM and GitHub although there is not a specific plugin for the INTEL-XDK .",
"Question : I know there are some questions already regarding Plastic SCM but they are over a year old . Has anyone used Plastic SCM lately What do you think about it . I have used git and I am currently using Hg . I love the Hg source control but Visual Studio integration is not great and related task project-management tools have not been great . Plastic SCM was recommended but I like to get a community view on it . - And no I don t care about grammar on the website . I prefer well engineered solutions to well marketed websites . Comment : Is anyone using Plastic SCM It looks good and I m wondering the exact same thing . Comment : Marked Andr s as answer . The next 2 responses after Andr s came just after Plastic SCM solicited comments from followers on Twitter . Maybe that s o.k . However only two followers commented .. . Answer : Yes we use Plastic SCM small team of 5 for 2 years already and it works great and even gets better every update Support is very good within an hour or at least the same day a response . Also branching-and-merging works very good in practice . Every programmer can work on it s own in his own branch using branch per task pattern . Such a big relief . When you switch to another branch all changes are automatically shelved stored on the server . When you switch back the changes are reloaded which is a really nice feature You don t have to worry to loose changes because Plastic handles everything very good . Without doubt Plastic SCM is the best Version Control System I ve ever seen used MS Sourcesafe CVS SVN StarTeam . Also heard of other s the branch support is much better than MS Team Foundation . Comment : Andr thanks for the feedback . I will try it . Comment : Too bad you had no practice with its major alikes : git hg and perforce.. .",
"Question : Has anyone used the PlasticSCM client tools to work against a TFS repository Basically my current client is using the new hosted TFS for version-control not TFS-Git just standard TFS but I have seen the light of distributed version-control systems on previous projects and now can t go back Is there a recommended approach to getting a DVCS style experience with a standard TFS backend I know I am asking a lot but I have done some research and there seems to be hints that it maybe possible to sync PlasticSCM with TFS all over the PlasticSCM forums but I have found nothing concrete . This youtube video looks very promising . With checkins made to Plastic appearing in TFS and vice versa via a command-line sync operation . http : www.youtube.com watch v AJKF3cjg7jA .. . Answer : Got the correct syntax for CodePlex after much experimenting : .. . .. . where : .. . .. . main is the default PlasticSCM branch to sync . repo is the name of the PlasticSCM repository to sync . plasticserver : 8087 is the name of the local PlasticSCM server and port-number . TFS04 is the name of the collection you can get it from the Connect link on the Source Code tab It varies per project . project is the CodePlex project name you can get it from the Connect link on the Source Code tab it is case sensitive . snd user cp is the username is the normal login name for codeplex snd is a domain prefix and cp a username suffix . pass is the codeplex password that belongs-to user .",
"Question : During configuration of Plastic SCM client - server connection on several machines I receive an error : .. . .. . This implementation is not part of the Windows Platform FIPS validated cryptographic algorithms .. . .. . enter image description here http : i.stack.imgur.com xlbfA.png .. . .. . This is on Windows 7 enterprise SP1 64 bit .. . Answer : FIPS support was added to Plastic SCM BL700 back in Oct 2015 as you can find here https : www.plasticscm.com download releasenotes 5.4.16.700",
"Question : How can I know how much disk space is occupying a Plastic SCM repository .. . Answer : It depends on the backend you have configured http : plasticscm.com documentation administration plastic-scm-version-control-administrator-guide.shtml Chapter8 : Databasesetup SQLServer MySQL Firebird etc.. . . Once you know the backend you re using the problem is as simple as knowing the size of the databases in that backend . Plastic SCM databases starts with the preffix : .. . .. . where X is a numeric id .",
"Question : I have 5.0.44.598 - Mahon version of Plastic SCM the latest one by today 25 Aug 2014 .. . .. . This is the first time I will be using Plastic SCM . I keep getting An error occured processing your request error message when I click on branch explorer . Also whenever client software is opening first time . I have win7 machine and also a win server 2012 on azure have the same problem in both systems . Does any one have the same problem or any resolution I think it is a bug . .. . Answer : Could you enable the Plastic client log http : www.plasticscm.com infocenter technical-articles kb-enabling-logging-for-plastic-scm-part-i.aspx and send the stack-trace to : support@codicesoftware.com .. . .. . I ve tested the same version in my local Win7 machine and the branch explorer is properly working . Could you delete the file : C : Users xxx AppData Local plastic4 guivisualstate.xml and restart the Plastic client . If you create a new workspace does the issue persist Do you have enabled any external extension issue tracker.. . UPDATE : Reviewed the logs and sent a solution to @freewill . If a similar issue happens again please contact to : support@codicesoftware.com .. . .. . Regards . Comment : none of the suggestions worked . I sent the log file to the given email-address Comment : UPDATE : Reviewed the logs and sent a solution to @freewill . If a similar issue happens again please contact to : support@codicesoftware.com",
"Question : I know there are some questions already regarding Plastic SCM but they are over a year old . Has anyone used Plastic SCM lately What do you think about it . I have used git and I am currently using Hg . I love the Hg source control but Visual Studio integration is not great and related task project-management tools have not been great . Plastic SCM was recommended but I like to get a community view on it . - And no I don t care about grammar on the website . I prefer well engineered solutions to well marketed websites . Comment : Is anyone using Plastic SCM It looks good and I m wondering the exact same thing . Comment : Marked Andr s as answer . The next 2 responses after Andr s came just after Plastic SCM solicited comments from followers on Twitter . Maybe that s o.k . However only two followers commented .. . Answer : I have been using plastic now for about 3 years . It simply is the best Version Control Software out there . Excellent support and responsive feedback . Now it integrates with Git also . Excellent UI and all commandline capable as well . Xlinks are a very cool feature and now you can have writeable XLinks .",
"Question : I am using the Plastic scm version 5.4.16.743 and I am using the VS2015 IDE for development . Since I have upgraded to this version of plastic every time a new file is add-in VS plastic adds that file to the Added and Private Items list but it does not auto select the items to be checked in by default As it says in plastic documentation . Does anybody know why plastic doesn t auto select the newly added items for check in as it before Is there a way to turn this feature back on .. . Answer : The Visual Studio package has two pending changes views : .. . .. . enter image description here http : i.stack.imgur.com ROkjT.png .. . .. . Pending changes under solution : It displays only those items that are under the Visual Studio Solution . In this view added and private items are automatically marked checked to be added to source control . Pending changes under workspace : It diplays all changed and private items in your whole workspace . In this view added and private items are not marked checked to be added automatically because you could have thousands if you did not configured your ignored filter . So when working inside Visual Studio I recommend you to use always the pending changes under Solution to work flawlessly . Comment : Daniel Thanks Yes in VS I can see that the new file is checked as you described above . But I am used to using the plastic client for last couple of years when there comprehensive plastic VS plug-in wasn t available . It still doesn t answer my question specific to Plastic Client although you raised a new question whether should we not use the plastic client but migrate to using VS plugin Comment : Hi @Jegan : If I understood correctly you mean that you expect to find added and private items to be automatically checked for add to source control in the Plastic GUI client In that case the answer is no . The Plastic GUI never auto selects local changes automatically to prevent the user checking-in not desired changes to the server . Comment : Yes the old version auto selects all newly added files and folders in the Added and Private Items section in Pending Changes in Workspace view but once you deselect them they will stay deselected forever . But the latest version some how disabled this feature . It is become an extra effort to select those files especially if I have lots of private items I could easily miss-out files that supposed to be checked in . Comment : @Jegan : Unfortunately the new Plastic SCM versions do not auto selects all newly added files and folders automatically to prevent the user checking-in not desired changes to the server . My recommended way of working in this case is correctly configuring the ignored filter and just clicking the added category that autoselects all its children . Hope it helps",
"Question : Anyone know how to remove users in PlasticSCM when the server is configured to use Active Directory security Comment : turns out you need to use the command-line tools : br --to list the users : cm li br --to remove old users : cm du username br --to add a new user : cm au br .. . Answer : The cm au du commands are meant to activate or deactivate users . But users are not added to Plastic as such . When a user does an operation in Plastic it will be automatically added provided you have enough licences and the user has permissions to access the system you ve set the correct ACLs . Suppose you just have a 20 users license : .. . .. . You simply install the license copy the plasticd.lic file .. . Then the first user access the system it will be activated .. . Second user accesss second activation it happens automatically .. . Then suppose you already have 20 developers using Plastic and one of them leaves and a new one enters then you have to deactivate the old one and activate the new one but only then . Hope it helps .",
"Question : I have been trying out Plastic SCM for a few weeks now. . and we still have issues in figureing out how to use Plastic SCM when multiple develoeprs are working with the same repository . We are currently working with Unity3D for our project and for each time we try to merge our changes we always end up with some sort of problem. . .. . .. . We are currently using the Plastic SCM Cloud Edition . What we have tried is to work directly against the Cloud Repo but that ended up with problems merging since the cloud edition isnt able to merge content on the fly in the cloud . We then ended up creating local repositories that we then replicated the cloud repository to by simply pulling the repo then made some changes and then tried to push the local repository . However. . we then recieved a new error telling us something about the MemoryStream.. . So.. . how are we supposed to work with Plastic SCM Cloud Edition when in a smal team of 2-5 developers when working with Unity3D .. . Answer : Your last approach make sense if you don t need an on-premise server in your office . Plastic Cloud Edition is the sum of the Plastic SCM software plus a Plastic Cloud server and storage all packaged together in a single pay-as-you-go subscription . The client software and local repositories are installed on each developer s computer and then he will push pull to the cloud organization . You commented that your workflow requires branching-and-merging so the checkin update create branch and merge will be local operations and then you be just connecting to the cloud to push pull your changes . This MemoryStream message could be a hard drive is full issue but we would need more details to confirm it . If you reach us we will try to debug it we will also help you to configure your setup : support at codicesoftware dot com",
"Question : After fresh installs of Plastic SCM and MySQL I try to change the database backend to MySQL but consistently get the following error . Any ideas How can I set up MySWL or SQL Server I have Sqlite working but need to switch . .. . Answer : It seems your MySQL installation is throwing a timeout exception some ideas : .. . .. . Is the access granted for the user you specified Try changing the server name for an IP Sometime the DNS can do ugly thing or if you specified an IP or localhost try specifying the machine name . Review the server log to get more info plasticd.log.txt .. . .. . If you want to try MySQL or SqlServer you can follow the following tutorials it s very easy it doens t use the Plastic SCM admin tool but it s more powerfull since you can specify more parameters : .. . .. . SqlServer : https : www.plasticscm.com documentation administration plastic-scm-version-control-administrator-guide.shtml ConfigurePlasticSCMwithMSSQLServer .. . MySQL : https : www.plasticscm.com documentation administration plastic-scm-version-control-administrator-guide.shtml ConfigurePlasticSCMwithMySQL .. . .. . Going back to your problem you can try the following I guess that your db.conf file inside the Plastic SCM server directory is now trying to connect to MySQL check it by opening it and reviewing the provider tag then try to start the server in console mode in order to do it open an admin command-line window cd to the Plastic SCM server directory and type : .. . .. . plasticd.exe --console .. . .. . Do you see any error From a different command-line window type cm lrep can you see the default repo If not review the server log plasticd.log.txt to find out the issue . Alternatively you can send all the log you can find plasticd.log.txt to the Plastic SCM forums www.plasticscm.net the community and the Plastic SCM guys will help you on this . Comment : I decided to use SqlServer . Got it all set up successfully . Thank you .",
"Question : I have set up a new JIRA server to use alongside plasticscm . The windows client in 5.4.16.712 has a nice tab in the preferences to select and setup an issue tracking tool . The linux client though Where the majority of plasticscm is being used does not have this . I tried adding the to the client.conf and moving the Jira dll to the client folder to be used . This seems to have done nothing for the gtkplastic that linux now has . TLDR : On Linux plastic client I added .. . .. . And copied that dll file to the client folder from the client extensions jira folder .. . .. . And added the jiraextension.conf file to the client folder .. . .. . I have also asked this question on the plasticscm forums : http : www.plasticscm.net index.php topic 3236-plastic-issue-tracking-missing-on-linux .. . Answer : Please follow the next steps : .. . .. . Files to configure : .. . .. . HOME .plastic4 issuetrackers allrepos .conf .. . .. . HOME .plastic4 client.conf .. . .. . Example of client.conf extra lines : .. . .. . The issue tracker .conf files can be generated on windows and then transferred to the target linux machine . if you have any issue please contact to support at codicesoftware dot com and will be happy to assist you .",
"Question : We are investigating Plastic SCM as possible alternative to Subversion for version-control with our products . We have a very large number of binary assets mainly art assets but also includes some documentation AVIs etc . in addition to a very large source code base . Just to put a number on it - a svn-checkout of our HEAD revision of the trunk branch takes a little over an hour and has a size on disk of 9 GB . Does anyone have any experience with Plastic SCM in such an environment or can refer me to some whitepapers or case studies on the matter of Plastic SCM s performance and handling of large repositories Googling hasn t really turned much in the way of objective research - just stuff published by Codice themselves . I also realize that Perforce does extremely well in this environment - I ve used it before - but we re a pretty small team with an equally small budget and Codice offers this system free for small teams Community Edition . I m very close to just installing it on a test server and trying it out...but wanted post the question first so as to not waste my time if someone else has already tried it out in such an environment . Thanks in advance for your time . UPDATE 02-FEB-2011 : Just an update in case anyone else has a similar question and is viewing this...I got Plastic installed on a pretty modest Windows 2008 Server machine 2.8GHz Core 2 Duo 4 GB RAM repositories being stored on a SAN on the local network running SQL Server 2008 R2 for the Plastic repositories . The import of subversion revision history took a while - just under three days - 28000 revisions . However it is SMOKIN fast to do a fresh checkout of a new branch from Plastic - just shy of 4 minutes with Plastic compared to over an hour on Subversion as described above . We re very impressed so far Comment : Why not call or email them and ask directly Presumably they d be happy to offer details of their own product and tips on how to make it work in that use-case . .. . Answer : We are moving ourselves from Perforce to Plastic and our repository is about 360Gb so quite large too . It actually worked seamlessly even using HUGE files . Since we re in the videogame industry large-files are a must and as you know all the other DVCS Hg Git have issues handling them . Comment : Wow That makes my problem feel pretty small . Do you mind me asking what database back-end you re using for Plastic I m assuming that you re not using the embedded Firebird DB that comes with it Comment : I think what Unai is using is MySQL but SQL Server would be a great choice too . Ok not for Linux : P",
"Question : We are investigating Plastic SCM as possible alternative to Subversion for version-control with our products . We have a very large number of binary assets mainly art assets but also includes some documentation AVIs etc . in addition to a very large source code base . Just to put a number on it - a svn-checkout of our HEAD revision of the trunk branch takes a little over an hour and has a size on disk of 9 GB . Does anyone have any experience with Plastic SCM in such an environment or can refer me to some whitepapers or case studies on the matter of Plastic SCM s performance and handling of large repositories Googling hasn t really turned much in the way of objective research - just stuff published by Codice themselves . I also realize that Perforce does extremely well in this environment - I ve used it before - but we re a pretty small team with an equally small budget and Codice offers this system free for small teams Community Edition . I m very close to just installing it on a test server and trying it out...but wanted post the question first so as to not waste my time if someone else has already tried it out in such an environment . Thanks in advance for your time . UPDATE 02-FEB-2011 : Just an update in case anyone else has a similar question and is viewing this...I got Plastic installed on a pretty modest Windows 2008 Server machine 2.8GHz Core 2 Duo 4 GB RAM repositories being stored on a SAN on the local network running SQL Server 2008 R2 for the Plastic repositories . The import of subversion revision history took a while - just under three days - 28000 revisions . However it is SMOKIN fast to do a fresh checkout of a new branch from Plastic - just shy of 4 minutes with Plastic compared to over an hour on Subversion as described above . We re very impressed so far Comment : Why not call or email them and ask directly Presumably they d be happy to offer details of their own product and tips on how to make it work in that use-case . .. . Answer : For large repositories the best options are MySQL or SQL Server . Firebird won t scale well to that size . Comment : Do you have any data to back this up by any chance I ask because I m not familiar at all with the Firebird DB but am pretty familiar with MySQL and SQL Server . I guess considering my test installation is running on Windows Server 2008 it would probably be best to just keep going with Microsoft stack SQL Server 2008 but was really looking for some hard evidence from a third party . Appreciate the info though - definitely worth looking further into different DBs . Comment : Plastic SCM is tested under really heavy load using a small cluster with 100 client machines working against one single server . There we can tell how the different backends compare in fact we should publish again one of our shootouts .. . and SQL Server and MySQL simply scale much much better than Fb . Comment : @pablo Now that 4.1 is out how does PostgreSQL compare in your tests Comment : Hey We do support it but we didn t conduct any extensive testing on it . Although I d love to : Why don t you suggest it at plasticscm.uservoice.com",
"Question : null .. . Answer : I have upgraded teamcity from 8 to 9.1.1 version . I have created the build configuration with plastic-scm vcs type . On run build following error is displayed . Failed to collect changes error : Error getting latest revision : Error : Reading from the stream has failed . Test connection is successful to plastic scm . Can someone give advise on it . Comment : I m not familiar with plastic-scm but could it be permissions Have the credentials that TeamCity was running under changed Comment : Please could you check if you are using the last available plugin at www.plasticscm.com I ve just tested a new build using the last plugin version and TC 9.1.1 and I can t reproduce any issue . If you still face any issue you can reach us at support at codicesoftware dot com and we will help you to debug and fix the problem ."
]
} | [] | visualization | UNK_RELATION |
sahi@web-applications@105 | sahi -- sahi is a web browser automation tool used for writing functional test suites for web sites and @placeholder . | {
"confidence": [
71.6519775390625,
56.135658264160156,
52.37957000732422,
48.076141357421875,
47.79816818237305,
47.79816818237305,
47.13993835449219,
46.53334045410156,
45.262451171875,
45.262451171875,
44.86064910888672,
44.842674255371094,
44.78319549560547,
43.645362854003906,
43.547119140625,
43.5105094909668,
43.47856521606445,
43.47856521606445,
43.47856521606445,
43.47856521606445,
43.40790557861328,
42.42919158935547,
42.41676330566406,
41.806640625,
41.774696350097656,
41.774696350097656,
41.774696350097656,
41.774696350097656,
41.098182678222656,
41.098182678222656,
41.098182678222656,
41.098182678222656,
41.098182678222656,
41.098182678222656,
41.06200408935547,
41.06200408935547,
40.71934509277344,
40.71934509277344,
40.71934509277344,
40.71934509277344,
40.64434051513672,
40.64434051513672,
40.42100524902344,
40.42100524902344,
40.42100524902344,
40.42100524902344,
40.42100524902344,
39.73065948486328,
39.5889892578125,
39.394317626953125,
39.394317626953125,
39.394317626953125,
39.394317626953125,
39.18309020996094,
38.71543884277344,
38.35620880126953,
38.26396179199219,
38.26396179199219,
38.26396179199219,
38.26396179199219,
38.234230041503906,
38.234230041503906,
38.18733215332031,
37.974178314208984,
37.96326446533203,
37.883018493652344,
37.87382507324219,
37.87382507324219,
37.87382507324219,
37.87382507324219,
37.371971130371094,
36.90919876098633,
36.62095642089844,
36.48346710205078,
36.169960021972656,
36.169960021972656,
36.169960021972656,
36.169960021972656,
36.169960021972656,
36.169960021972656,
36.169960021972656,
36.169960021972656,
36.169960021972656,
36.169960021972656,
36.169960021972656,
36.169960021972656,
36.169960021972656,
36.169960021972656,
36.169960021972656,
36.169960021972656,
36.07781219482422,
36.07781219482422,
36.07781219482422,
36.07781219482422,
35.82648468017578,
35.619911193847656,
35.50811004638672,
35.4796142578125,
35.096275329589844,
35.03960418701172
],
"content": [
"I have a test suite containing sahi files Sahi - web browser Automation test tool .",
"I am a beginner in Sahi Automation Tool .",
"I am using sahi pro web ui-automation tool and hit an issue with automating the login to gmail .",
"I tried to run sahi automation testing tool against the website and record test scripts .",
"Which sahi version",
"I was using Sahi Pro .",
"How to test Tooltip text by mouse hovering in Sahi tool",
"Possible Duplicate : .. . sahi and symfony2 http : stackoverflow.com questions 11222722 sahi-and-symfony2 .. . .. . I would like to test behat mink and sahi with symfony2 .",
"I am using Sahi to automate some of my test cases .",
"Sahi is recording lot of websites except my test website .",
"Restart Sahi and try out your test again .",
"https : sahipro.com docs using-sahi sahi-headless-execution-with-phantomjs.html Documentation since Sahi Pro V4.3.2 https : sahipro.com docs using-sahi sahi-headless-execution-with-phantomjs.html Documentation 20since 20Sahi 20Pro 20V4.3.2",
"In Sahi itself",
"Sahi just provided a dummy path for file-upload .",
"Sahi should usually handle these .",
"but m getting an error : .. . .. . Sahi tests failed on browser chrome+firefox",
"What version of Sahi are you using",
"Which version of Sahi are you running",
"sahi pro i am using .",
"My Sahi execution never ends .",
"Normally Sahi Pro allows the user to execute one test across concurrent instances of different web browsers through their testrunner.bat file https : sahipro.com docs using-sahi playback-desktop.html .",
"Start Sahi and click on the SSL link present on the Sahi dashboard .",
"or is there no sahi java driver support",
"First I installed Sahi OS 5.0 and opened the firefox browser .",
"I use SAHI for automated testing .",
"Click on Configure link on the Sahi Dashboard .",
"But I am not able to do with Sahi .",
"Anyone successfully using sahi with mailtrap",
"Also what are you getting in sahi logs",
"Is Sahi running on that machine where you are trying to run it",
"I am working on Sahi and got stuck with this issue .",
"There is a form input elements API for sahi called setValue .",
"I have implemented a similar function with sahi for ruby .",
".. . .. . You can find the corresponding api for sahi java",
"your relevant sahi code",
"Java and Sahi versions",
"The examples shown in https : sahipro.com docs sahi-apis database-apis.html page are useful but I believe there is more to the SAHI Pro .",
"String sahiBasePath workspace Sahi 1 sahi String userDataDirectory worspace Sahi 1 sahi userdata net.sf.sahi.config.Configuration.initJava sahiBasePath userDataDirectory",
"You need to escape the backslashes in your string : .. . .. . D : SAHI result capture.jpg .. . .. . Needs to be .. . .. . D : SAHI result capture.jpg",
"I am new to sahi unable to find good documentation to integrate sahi with ANT using emma jacoco or cobertura .",
"Sahi is timing out - FF is OK -",
"Does nobody use Sahi or what",
"I am trying to send am email with attachment through SAHI UI .",
"I am using the sahi scripting-language which is similar to JavaScript .",
"Note : I have tried this only in the latest version of Sahi Pro i.e .",
"All informations here : https : sahipro.com docs using-sahi flex.html Introduction",
"http : sahipro.com docs sahi-apis file-apis.html writeCSVFile",
"First File .. . .. . Second File .. . .. . Edit : Extended Answer .. . .. . Create a Sahi Function to creating a new excel sheet : .. . .. . Further you can refer the getExcel filePath sheetName http : sahipro.com docs sahi-apis excel-apis.html getExcel API from Sahi Pro .",
"This is how it was built and while using Sahi if you want to leverage it you must use Sahi scripting-language .",
"There is no method builder this function does not work for SAHI OS .",
"Also which version of sahi are you using",
"I would suggest using Sahi alone .",
"Code coverage for Sahi scripts not so much .",
"It creates and starts the Sahi proxy then instantiates a browser and navigates to a web page then it closes the browser and stops the proxy : .. . .. . It all works well but after the last line stopping the proxy execution never ends .",
"A probable solution for you is to write value to an existing excel sheet cell from the sahi script on the fly and then retrieve the same value from the corresponding cell of excel sheet from another sahi script .",
"What do you feel how good has been yours cross-browser automation experience with Selenium Sahi or your grievances w.r.to Selenium .",
"you can report the bug to the sahi team .",
"Sahi code is in Javascript well a wrapper over javascript .",
"The question is more related to Twist rather than sahi .",
"Right click on Twist Sahi project .. . 2 .",
"You can check sahi version in Twist and request to thoughtworks to update Sahi underneath Twist .",
"By the help of ThoughtWorks Support the following is the answer : .. . .. . Twist comes bundled with Sahi open-source Sahi OS version .",
"I want to run sahi script via ant integration in different browser at the same time .",
"I have created a Twist project by following combination : .. . .. . Driver : Sahi for web apps .. . Language : Java .. . Browser : Firefox .. . .. . I have created Scenario .",
"With the latest release of Sahi Pro Sahi Pro 6 .. . .. . One is no longer able to identify the elements using title attribute in an HTML page .. . .. . like in the case of the tag below : .. . .. . and as explained here regarding tweaking of the Sahi APIs http : sahipro.com w tweaking-sahi-apis .. . .. . Right in the first example it says you could find .. . .. . in sahi htdocs spr concat.js .. . .. . but I searched it s no longer available in concat.js with the Latest version of Sahi .",
"This will get your work done for automation which is what you will need while working with Sahi .",
"Im using Sahi OS to look for emails in mailtrap shared inbox .",
"I have requirement to run sahi scripts using teamcity .",
"Created scripts in sahi editor created build.xml pushed code to github .",
"http : sahipro.com docs sahi-apis action-apis.html eval .. . .. . -- Kshitj Gupta",
"I m using the Sahi framework to test GUI components so the flow goes like this.. . .. . .. . Jenkins Ant build script Sahi file to execute .. . .. . Can anyone please take a look at it",
"When I m running outside of Sahi is working fine .",
"I used the native event for upload setFileUpload file id C : abc efg.jpg This worked well in sahi pro trial version but I recorded the script in sahi OS it gave error like : ReferenceError : focusWindow is not defined and playback stopped .",
"In case I launch new browser from Sahi Dashboard and navigate to mailtrap.io then Controller window is not coming up on Alt+doubleClick. .",
"Sahi has an internal proxy I use to interact with server application .",
"tl dr Why is Mink Sahi timing out on this site",
"Was also getting errors when trying to connect to a database with Sahi OS .",
"Concludes that it found the SAHI API available on Github and checked by the class .",
"Sahi properties file workspace Sahi 1 config sahi.properties at org.testng.internal.Invoker.invokeTestMethod Invoker.java : 901",
"Do you think there is any setting in sahi that I need to configure",
"I m trying to execute both sahi and selenium scripts using testng.xml build.xml .",
"I using Selenium Webdriver Sahi Pro Trial version .",
"I am utilizing Sahi Pro s sahi.jar package for Java .",
"like writeToFile C SAHI data + var+ result.html this is working perfectly fine .",
"This is integration of sahi with jenkins which i have done already .",
"Are you looking for the code-coverage of your sahi scripts or for your application",
"How do i ask my Sahi script to accept or decline this popup .",
"Now such values from Jenkins will be available in SAHI Pro through the ant target .",
"To retrieve them in SAHI you should set them in CUSTOM FIELDS of testrunner file .",
"To get this in a sahi file use sahiSuite API like following .",
"Actually the script is recorded in sahi OS and I re ran the script and the playback fails",
"I am new to Sahi and I am just trying to take a screenshot on script errors .",
"A flex application needs to be compiled with Sahi s swc file if your want to use Sahi on it .",
"To write custom excel reports I am using the Sahi Pro - File Manipulation APIs in my scripts .",
"i have solved the problem in fact we must run the driver sahi before starting the test",
"I m having issues selecting a pop-up window when writing my tests using sahi java driver .",
"sahi is working well for other https : sites but it gives error for only a particular URL .",
"If you are using the Open Source version of Sahi you could try the latest release of https : github.com headissue Sahi since https : github.com headissue Sahi releases tag v4.4.0-H7E it is possible to just click on the cert link on the startpage s dyn Driver initialized then you never have to accept a certificate again .",
"I am using Sahi as the Automation tool but I have a problem identifying one of the fields.The field gets changed during runtime and I am unable to catch it .",
"Does anyone know how to patch Sahi OS to support IE 11 ."
]
} | {
"confidence": [
76.40876770019531,
67.27567291259766,
67.17086791992188,
65.6359634399414,
63.654441833496094,
63.31720733642578,
61.99696350097656,
61.58721160888672,
60.73749923706055,
59.83737564086914,
58.67784881591797,
56.86861801147461,
56.52318572998047,
56.121761322021484,
55.107208251953125,
54.82185363769531,
54.46830749511719,
54.34073257446289,
54.297271728515625,
53.68852233886719
],
"content": [
"Question : null .. . Answer : I have a test suite containing sahi files Sahi - web browser Automation test tool . I want to run code-coverage for this suite using ANT . I am new to sahi unable to find good documentation to integrate sahi with ANT using emma jacoco or cobertura . Anybody who has worked with such scenario can help here Comment : This is integration of sahi with jenkins which i have done already . I am actually looking for the code-coverage part . Any info on that Comment : Are you looking for the code-coverage of your sahi scripts or for your application Because code-coverage for application makes sense . Code coverage for Sahi scripts not so much . Comment : I want to run code-coverage for sahi scripts which are .js files so is it possible to user jacoco or any other tool to give code-coverage for such scripts Can it work with sonar",
"Question : I am using Twist for Test Automation . I have created a Twist project by following combination : .. . .. . Driver : Sahi for web apps .. . Language : Java .. . Browser : Firefox .. . .. . I have created Scenario . During recording Firefox is opened . In Firefox Enter start URL text field is present only . But when I used Sahi Pro 5 there was also Use with Resolution check box and text field in browser during recording in which one could enter browser resolution . Is there any way to use Use with Resolution check box and text field option in Sahi with Twist during recording the tests Comment : It is Twist 13.1 developed by ThoughtWorks . I have downloaded it from thoughtworks-studios.com register destination node 226 http : www.thoughtworks-studios.com register destination node 226 .. . Answer : Use with Resolution check box and text field is recently added in Sahi pro and this functionality is not added to Sahi OS . You can check sahi version in Twist and request to thoughtworks to update Sahi underneath Twist . Comment : Thanks for your quick reply . With your answer I have understood that it s ThoughtWorks Twist responsibility to update Sahi Pro in Twist . Am I right Comment : yes correct . you are right",
"Question : I am using sahi pro web ui-automation tool and hit an issue with automating the login to gmail . I was able to automate the older version using setValue in username and password but the new version of gmail login now has two parts first enter the user name click next and then enter password to login . I am unable to click on the next on the first screen . Did anyone had any luck in automating the new gmail login via sahi .. . Answer : Please follow the steps given below to get it fixed on your machine : .. . .. . 1 . Click on Configure link on the Sahi Dashboard . 2 . Click on the donot download urls.txt link on the left side of the page that opens up . 3 . The file will open up in the editor on the right . 4 . Add the following line in the file : . accountLoginInfoXhr . .. . 5 . Save the file . 6 . Restart Sahi and try out your test again .",
"Question : I am using Twist for Test Automation . I have created a Twist project by following combination : .. . .. . Driver : Sahi for web apps .. . Language : Java .. . Browser : Firefox .. . .. . I have created Scenario . During recording Firefox is opened . In Firefox Enter start URL text field is present only . But when I used Sahi Pro 5 there was also Use with Resolution check box and text field in browser during recording in which one could enter browser resolution . Is there any way to use Use with Resolution check box and text field option in Sahi with Twist during recording the tests Comment : It is Twist 13.1 developed by ThoughtWorks . I have downloaded it from thoughtworks-studios.com register destination node 226 http : www.thoughtworks-studios.com register destination node 226 .. . Answer : By the help of ThoughtWorks Support the following is the answer : .. . .. . Twist comes bundled with Sahi open-source Sahi OS version . This feature is not available in the OS version . You will have to set the resolution manually before executing on the browser .",
"Question : null .. . Answer : I am utilizing Sahi Pro s sahi.jar package for Java . Normally Sahi Pro allows the user to execute one test across concurrent instances of different web browsers through their testrunner.bat file https : sahipro.com docs using-sahi playback-desktop.html . I cannot find a similar method to implement in Java . Does anyone familiar with Java s API for Sahi https : sahipro.com java javadocs overview-summary.html know of a way to run concurrent browser tests through it Thank you .",
"Question : I am using sahi pro web ui-automation tool and hit an issue with automating the login to gmail . I was able to automate the older version using setValue in username and password but the new version of gmail login now has two parts first enter the user name click next and then enter password to login . I am unable to click on the next on the first screen . Did anyone had any luck in automating the new gmail login via sahi .. . Answer : Do you mean the login form on https : accounts.google.com ServiceLogin service mail The Sahi Controller identifies the button with submit Next and click submit Next works for me Comment : Yes thats what I meant and for me the sahi controller does identify the next button but the click action doesnt take me to the next screen to enter the password . Do you think there is any setting in sahi that I need to configure Comment : I can just guess.. . SSL related maybe community.sahipro.com forums discussion 4744 http : community.sahipro.com forums discussion 4744 how-to-use-sahi-with-gmail p1 Comment : I just checked its not the SSL configuration . As I mentioned in the post this was working fine untill google changed the login process to two step instead of one .",
"Question : I am using sahi pro web ui-automation tool and hit an issue with automating the login to gmail . I was able to automate the older version using setValue in username and password but the new version of gmail login now has two parts first enter the user name click next and then enter password to login . I am unable to click on the next on the first screen . Did anyone had any luck in automating the new gmail login via sahi .. . Answer : You can always try clicking again it works for me If the function below doesn t do the trick then replace click with doubleClick :",
"Question : null .. . Answer : I m having issues selecting a pop-up window when writing my tests using sahi java driver . The process of the test searches for a user in a table selects their record a pop-up window appears with user information but I can t find anything on the pop-up window to identify it by to then continue on with checks on the user window . The window has no title in the header or name using the sahi driver I previously used getRecentWindow but I m stuck using java driver . I ve tried browser.focusWindow but that focuses back to the default content . Any suggestions Comment : Why are you using the java driver Any specific reason Comment : i want to work within a proper ide i.e net beans which is manageable rather than the script editor for sahi driver which well isn t Comment : Ok . Thing about this would you rather get the automation work done easily with simple scripts or you would prefer a proper ide Also I am not sure if you are using Sahi Pro or OS but if you check the Pro version you can find a nice way to edit scripts . This will get your work done for automation which is what you will need while working with Sahi . Comment : The reason I stress on this is because the Sahi scripts are way more powerful than the java driver and will get a lot done for you . This is how it was built and while using Sahi if you want to leverage it you must use Sahi scripting-language . and if you look at it it s just javascript so you can take any ide which supports javascript and then associate .sah files with the js editor . Comment : I m using pro and as I have mentioned I don t like the sahi script editor . I d need to write my code in a proper development-environment then load those tests into java controller and run from there I want to get away from that . So are there any suggestions as to where I could get some help or is there no sahi java driver support",
"Question : null .. . Answer : I have a website which is built using emnberjs framework . I tried to run sahi automation testing tool against the website and record test scripts . I see sahi is not able to record the fields are any elements present on the website was just wondering about whether sahi actually works with websites built with such frontend frameworks EmberJs DustJs etc Any insight on this is greatly appreciated Comment : Try it out and let us know . Comment : Is there is shadow root involved it won t work . That support is present in the professional version . Else it will work . Comment : @VivekVDwivedi Thanks for the info how can i check whether shadow root is involved in the ember implementation are there any specific tags which i can lookup in the implementation whether shadow-dom root is involved Comment : Looks like ember is not using it right now . Can you post a link-to the web app or a sample present online where you can replicate the same issue",
"Question : null .. . Answer : i am trying to automate a page using SAHI basically uses the javascript programming language . When i try to navigate from one url to the other i am getting the confirm navigation popup and the browser is stuck till i take any action . Now this popup is not getting removed using the automation and the automation is failing because of this . Has anyone faced same issue How do i ask my Sahi script to accept or decline this popup . Thanks for the help . Comment : driver.switchto .alert alert.accept Comment : Are you sure it s a normal browser alert Sahi should usually handle these . Have you had a look at the expectConfirm Api and such Comment : no it dosent work with either of them . The browser becomes inactive till u manually handlie this Confirm navigation popup .",
"Question : null .. . Answer : I want to run sahi script via ant integration in different browser at the same time . I tried to specify browser field as chrome+firefox in the build.xml . but m getting an error : .. . .. . Sahi tests failed on browser chrome+firefox Can someone help me out Comment : Which version of Sahi are you running Is it pro or open-source Where did you generate your ant file from Did you write it yourself or used it from somewhere Check this link meanwhile sahipro.com docs using-sahi playback-desktop.html Playback http : sahipro.com docs using-sahi playback-desktop.html Playback via ANT You need to actually create three different targets for three browsers Comment : sahi pro i am using . By the way thanks for your help . just some time before got the solution .",
"Question : I am using Sahi to automate some of my test cases . Sahi is recording lot of websites except my test website . It s not recording anything on my website. . Any suggestions or work around .. . Answer : I think an url to your site can be nice because the problem can be a lot of things . For exemple if you use flex instead of HTML you should compile your flex application with Sahi s swc file . A flex application needs to be compiled with Sahi s swc file if your want to use Sahi on it . All informations here : https : sahipro.com docs using-sahi flex.html Introduction",
"Question : When i was trying to navigate to the https : site from SAHI controller then it was giving some certificate error in chrome IE browser and I have to click Continue to this website not recommended . every time and after clicking on that it shows the error .. . .. . .. . so that I have created a certificate ref link : Create and import certificate https : productforums.google.com forum topic chrome 8MN333pluGc for that site and . After that I am not getting certificate error but still I am getting error : .. . .. . .. . And also after coming to this page I am not able to get Sahi controller in both chrome and ie browser . Info : .. . Chrome version : 38.0.2125.111 .. . IE 10 . .. . .. . Please help . .. . Answer : Revert back the changes that you did . Start Sahi and click on the SSL link present on the Sahi dashboard . Launch a browser through Sahi and go to https : www.google.com .. . .. . If this opens up correctly you problem is solved . If not let me know what happens . Comment : I followed what you said but nothing happened still that error is coming . sahi is working well for other https : sites but it gives error for only a particular URL . I think it s not certificate error rather something else . Comment : Is this any internal site of your organization Also if you are are using Sahi Pro you can use their technical support to get a better support for this issue .",
"Question : I am a beginner in Sahi Automation Tool . I set the following changes to run my script . 1 In Sahi Userdata bin SET SAHI EXT CLASS PATH EXT CLASS PATH d : Sahi extlib db mysql-connector java 5.1.34 bin.jar .. . .. . 2 Downloaded and installed the 64 bit ODBC drivers AccessDatabaseEngine.exe .. . .. . 3 Set the proxy and port in userdata.properties .. . .. . Here is my code . .. . .. . .. . .. . I am encountering below ERROR . --Stopped Playback : FAILURE-- .. . .. . Kindly help me please . .. . Answer : Lissy I would suggest you not to use db APIs to work with the excel files . getExcel http : sahipro.com docs sahi-apis excel-apis.html getExcel and readExcelFile http : sahipro.com docs sahi-apis excel-apis.html readExcelFile should work perfectly for you . Comment : Actually I tried that also . But again i am getting same error . Is any jars or anything to be installed to work this please help Comment : Do you mean to say that you are not able to work with getExcel and readExcelFile as well var rs readExcelFile d : Sahi userdata scripts My works Login.xlsx Sheet1 should be working for you . Comment : Getting an ERROR ReferenceError : readExcelFile is not defined . Please help Comment : Looks like you are a Sahi OS user If so then I wont be able to help you out much with it or you upgraded Sahi Pro recently If so then do a fresh installation as this is looks like an upgradation issue right",
"Question : null .. . Answer : My Sahi execution never ends . It s like there s some kind of deadlock internally . I have developed a simple example that reproduces the problem . It creates and starts the Sahi proxy then instantiates a browser and navigates to a web page then it closes the browser and stops the proxy : .. . .. . It all works well but after the last line stopping the proxy execution never ends . I ve tried with Chrome and Firefox with same results . If I get rid of the Browser instantiation thus only creating and stopping the proxy the program ends well . Can anybody help with this please . Comment : So it s the browser.close that never finishes Could you use a Debugger or check your processes to make sure it s the Browser instances fault .",
"Question : I m having an issue with Sahi Open Source logging into Mailtrap.io .. . .. . the script is quite simple : .. . .. . however only first line of code executes. . as soon as I reach mailtrap.io then controller looses grip on html.. . In case I launch new browser from Sahi Dashboard and navigate to mailtrap.io then Controller window is not coming up on Alt+doubleClick. . I added SSL cert . Anyone had this issue before Anyone successfully using sahi with mailtrap Cheers . .. . Answer : I got it to work i think . First I installed Sahi OS 5.0 and opened the firefox browser . With the SSL Manager I added security exceptions for sahi.example.com and mailtrap.io .. . .. . On navigation to mailtrap I got an error : .. . .. . Content Security Policy : The page s settings blocked the loading of a resource .. . .. . This is a browserfeature and can be turned off in the about : config http : stackoverflow.com a 27324485 1359903 .. . .. . Now the script runs and the controller can access the sites elements . I hope this works for you too . Regards .. . globalworming Comment : SOLVED Nice +1 thank you Comment : then please accept my answer :",
"Question : I have so far been a partly QA Automation partly Web developer person mostly been working on QTP VBScript for Automation . Soon I will be moving on to a new project as Automation Architect . While I have the overall approach and idea for Automation Framework that I want to develop ready in my mind I need some help on deciding the Automation tool . I would love to use QTP as I would be able to use the full library for low-level functions as is from my current project . However one thing where I feel restrained with QTP is cross-browser support I feel only IE can be targeted best with QTP Firefox Chrome support is still bit limited . Also QTP doesn t allow to test on multiple browser windows at a time . I maybe wrong here the latest QTP version maybe supporting this and if so I will appreciate if you can share your experience .. . Our target apps would mostly be Web Application and target Web platforms would be IE Chrome Firefox Safari Opera . So I am also thinking to give Selenium or Sahi a try . Being a Web developer I can say I am good at JavaScript so adapting to Selenium should not be a big shift for me . However before I go ahead with getting my hands dirty with Selenium I want to hear the thoughts from the expert community here . What do you feel how good has been yours cross-browser automation experience with Selenium Sahi or your grievances w.r.to Selenium . Also how much Selenium would be helpful to when it comes to something like the flexibility we get from QTP in terms of opening the door for Automation Developers to VBscripting world we can extend the scripts using lot of supporting VBScripts system level scripting or networking related scripting or IE settings programming runtime DLL registrations or other batch files database linking ADODB using 3rd party APIs Web APIs etc XML programming using .net libraries etc . thanks in advance much appreciate sharing your valuable experience . Comment : You should gave a read through stackoverflow.com help on-topic https : stackoverflow.com help on-topic .. . Answer : This is an ongoing debate . However I from my experience would say SELENIUM . There are of course some advantages of using QTP . However with the ongoing technology in development world selenium is much better tool . Having the capability of implementing the OOP and taking it s advantage is a big factor here where qtp easily fails . Thinking abount angulars other ajax technology where selenium is improving day by day and qtp is not . And think about working in agile team side-by-side with developers who are building your app with java c . You can pretty much share there knowledge and techniques to equally support your project where using qtp your project set up will be whole lot different . And at any case if you need help from google selenium wins without any doubt .",
"Question : i a automating my web there are multiple requirements but one that make me sick is that i want to take snapshot of the web page and then save it into my desire location . It is taking snapshot but not saving in my desire location it saves in it default location . Can anyone help me out how this can be cater . below is my sample code .. . .. . takeScreenShot D : SAHI result capture.jpg true format : jpg resizePercentage : 75 .. . .. . Please this is one of my deliverables . Comment : one more thing there is a variable in my location string . like writeToFile C SAHI data + var+ result.html this is working perfectly fine . .. . Answer : You need to escape the backslashes in your string : .. . .. . D : SAHI result capture.jpg .. . .. . Needs to be .. . .. . D : SAHI result capture.jpg Comment : use that bro . nothing happened . Comment : This worked for me : takeScreenShot D : SAHI result capture.jpg true format : jpg resizePercentage : 75 Did you add slashes after the D : Your original path was missing them . If that didn t work it may be that you don t have permission to write to that directory try saving it to your Documents folder just to see if that makes a difference . Comment : my writetofile in working fine on that particular folder thats mean i can write into that folder but screenshot wasn t working . i tried all the possible pattern of slashes but it didn t did the trick",
"Question : I am new to Sahi and I am just trying to take a screenshot on script errors . I have tried to used their demo and the script the website provides for the task but the onScriptFailure doesn t seem to trigger . I added the alert box and changed the log in name to trigger a failure . Sorry if i m missing something obvious . Comment : Which sahi version pro or os .. . Answer : I was using Sahi Pro . I actually got the answer from their support department . This is what he had me do :",
"Question : null .. . Answer : I am trying to get Mink working on Centos Apache but it cannot connect . I have tried with Selenium2Driver ZombieDriver and last Sahi but I always get a different error . Right now with Sahi : .. . .. . and generate this error : .. . .. . Fatal error : Uncaught exception Buzz Exception RequestException with message couldn t connect to host in var www html Test vendor kriswallsmith buzz lib Buzz Client Curl.php : 29 .. . .. . Stack trace : 0 var www html Test vendor kriswallsmith buzz lib Buzz Browser.php 130 : .. . .. . Buzz Client Curl- send Object Buzz Message Request Object Buzz Message Response 1 var www html Test vendor kriswallsmith buzz lib Buzz Browser.php 82 : .. . .. . Buzz Browser- send Object Buzz Message Request 2 var www html Test vendor kriswallsmith buzz lib Buzz Browser.php 36 : .. . .. . Buzz Browser- call http : localhos .. . POST Array 3 var www html Test vendor behat sahi-client src Connection.php 268 : .. . .. . Buzz Browser- post http : localhos .. . Array 4 var www html Test vendor behat sahi-client src Connection.php 150 : .. . .. . Behat SahiClient Connection- post http : localhos .. . 5 var www html Test vendor behat sahi-client src Client.php in var www html Test vendor kriswallsmith buzz lib Buzz Client Curl.php on line 29 .. . .. . I have installed with composer : behat behat behat mink behat mink-sahi-driver behat sahi-client .. . .. . Why it cannot connect"
]
} | [
"yes-answer-long",
"yes-answer-short"
] | web-applications | UNK_RELATION |
thickbox@dialog@38 | thickbox -- thickbox is a webpage ui @placeholder widget written in javascript on top of the jquery library . | {
"confidence": [
45.18509292602539,
44.04071807861328,
43.812557220458984,
43.812557220458984,
43.812557220458984,
43.312255859375,
42.28849411010742,
42.28849411010742,
42.066062927246094,
42.03319549560547,
42.03319549560547,
42.03319549560547,
41.368499755859375,
41.14411926269531,
40.97370910644531,
40.97370910644531,
40.97370910644531,
40.888816833496094,
40.710289001464844,
40.710289001464844,
39.956573486328125,
39.956573486328125,
39.82933807373047,
39.64349365234375,
39.64349365234375,
39.64349365234375,
39.64349365234375,
39.64349365234375,
39.64349365234375,
38.499122619628906,
38.499122619628906,
38.499122619628906,
38.45777130126953,
38.45777130126953,
38.45777130126953,
38.13151550292969,
38.13151550292969,
37.97193145751953,
36.99359893798828,
36.90567398071289,
36.90567398071289,
36.82755661010742,
36.406517028808594,
36.406517028808594,
36.406517028808594,
36.406517028808594,
36.406517028808594,
36.406517028808594,
36.406517028808594,
36.406517028808594,
36.406517028808594,
36.406517028808594,
36.406517028808594,
36.406517028808594,
36.406517028808594,
36.406517028808594,
36.406517028808594,
36.406517028808594,
36.06709671020508,
35.76129913330078,
35.76129913330078,
35.76129913330078,
35.713470458984375,
35.26213836669922,
35.26213836669922,
35.26213836669922,
35.26213836669922,
35.26213836669922,
35.26213836669922,
35.26213836669922,
34.694271087646484,
34.694271087646484,
33.549896240234375,
33.305877685546875,
33.1622428894043,
32.046321868896484,
32.046321868896484,
32.046321868896484,
32.046321868896484,
32.046321868896484,
32.046321868896484,
32.046321868896484,
32.046321868896484,
32.046321868896484,
32.046321868896484,
32.046321868896484,
32.046321868896484,
32.046321868896484,
32.046321868896484,
32.046321868896484,
32.046321868896484,
32.046321868896484,
32.046321868896484,
32.046321868896484,
30.901947021484375,
30.901947021484375,
30.901947021484375,
30.901947021484375,
30.901947021484375
],
"content": [
"To make the thickbox work I need to add the classes info thickbox .",
"I want to remove the thickbox and then show the thickbox with the new selected div .",
"It shows message thickbox no buttons in it .",
"class thickbox upper .",
"This table opens with a thickbox easily .",
"I use Thickbox for my website when I use this code Thickbox close button repeat and increase I use following code to call Thickbox .",
"Did you link-to jQuery script before adding thickbox",
"If anything is found wrong it shows the custom message in jQuery Thickbox .",
"You can see thickBox s css http : thickbox.net thickbox-code thickbox.css file and javascript http : thickbox.net thickbox-code thickbox.js file",
"I used thickbox components in Joomla .",
"are you using this http : codylindley.com thickbox",
"double thickbox http : i.stack.imgur.com UKZUz.jpg",
"The content in the thickbox div is generated through a ajax request .",
"I created a small JQuery Plugin and I m using thickbox for popups .",
"now when i open thickbox from the newly opened window it just display lightblack background but not the content of the thickbox .",
"I m using Thickbox to display videos on a website and the youtube video seems to be too large for the thickbox frame .",
"I have a page with an inline content for a thickbox window and one link-to an ajax content to another thickbox window .",
"The Thickbox is a modal that shows a picture of a product .",
"When done I am redirecting to a page but it redirects in the thickbox .",
"How can I make the thickbox disappear and redirect to another page",
"As thickbox is triggered by link with class thickbox by default it just set css of div to be shown in thickbox from display none to display block .. . .. . What desired is instead of default behaviour it should fadeIn Looks better",
"I know how to set sizes and show different htmls like this : .. . .. . First box : .. . .. . Second box : .. . .. . In default settings I downloaded Thickbox from here : http : codylindley.com thickbox Thickbox is made to show in center of the screen .",
"This will cause the thickbox not to work and the page will be shown as a normal web as-if the thickbox had been gone .",
"Setting thickbox size to auto will not help you .",
"Only the first post ID is being grabbed by thickbox .",
"Attachment ids that are output on the page not in thickbox are working fine .",
"I m gonna open page vai iframe in thickbox",
"I m trying to use thickbox with register page .",
"I m a first time user of the plugin called Thickbox .",
"I m trying to use thickbox to display a video on a page .",
"How can I link single.php to open in thickbox",
"I placed an OnSubmit function to close the Thickbox window .",
"I ve used thickbox for login but when someone clicks on the login the flash overlays thickbox .",
"div thickbox is the parent that containing div wpb media tracks container this one should work div thickbox .on click input function .. .",
"When I open this content in a thickbox http : jquery.com demo thickbox window the datepicker fails to load properly .",
"I use Thickbox because in Wordpress context to show some images .",
"Does not work means in this case : Thickbox is opening but no image is displayed .",
"This is the code for creating the tinymce button which opens thickbox .. . .. . And this is the code for the thickbox page : .. . .. . And this the code for enqueuing the script which i want to add some animation by : .. . .. . And this the javascript code :",
"But if you just add class thickbox to the permalink which is supposed to bring you to the single post you just get an empty thickbox .",
"I use JQuery ThickBox 3.1 http : thickbox.net to show my Iframed Content as popup window .",
"also jQuery pr enquiry form .fadeIn slow is not affecting anything .. . .. . pr enquiry form is Id of div I am loading in the thickbox",
"I am calling a thickbox when a link is clicked : .. . .. . And when a server button is clicked I call this javascript function to show a jGrowl notification : .. . .. . Both works as expected except when the jGrowl is shown first than the thickbox .",
"You must set thickbox size to the actual value dynamically .",
"Im using a thickbox popup to edit some attachment custom-fields .",
"How can I get access to the attachment id in thickbox",
"It loads a whole new html document in thickbox so cant see pr enquiry form",
"event.preventDefault won t change the expected Thickbox behaviour if that s what you re hoping .",
"Parameters need to be inserted before KeepThis or else thickbox won t work .",
"I m trying to achieve something like a Pinterest effect with Thickbox .",
"Here s the problem : .. . .. . I want to use 2 types of Thickbox in a same page .",
"The problem only happens when having thickbox with the editPoll class together .",
"thickbox seems to kill any other script from running .",
"Unfortunately Thickbox isn t a very robust plugin and as such it doesn t have callback methods .",
"Consider switching to jQueryUI dialog if you don t need Thickbox for other things .",
"It dosen t work when I try to use it inside thickbox-window .",
"Issue : - If i click on submit then the thickbox shows the same site and not the url .",
"I removed the class thickbox and now i see the function doesn t work.. .",
"I ve downloaded another version of thickbox and it s working fine",
"What I m assuming should happen is using JS or jQuery to monitor Thickbox actions if TB window is present or not and apply the following rules : .. . .. . If Thickbox is opened - set body style to overflow : hidden .. . Else Thickbox is closed - set body style to overflow : auto .. . .. . I m using the integrated into WordPress Thickbox with the function - add thickbox if it makes any difference .",
"I have a simple little lightbox form activated by a link in my footer implemented by the jQuery Thickbox plug-in v3.1 .",
"I am trying to set content of thickbox in jquery as I want to take content from server .",
"You need to load the ThickBox script AFTER the jQuery file...like the code below .",
"I m unsure as to the construct of the page but the following code should fix it with a little tweaking .. . .. . Just replace the following with the correct class names .. . .. . .element - the class of the clickable link or image that opens the Thickbox .. . .overlay - the class of the semi-transparent overlay behind the Thickbox .. . .close-button - if needed the class of the close button on the Thickbox",
"I m using both sIFR v3 and a Thickbox on some pages of my website .",
"Thickbox has a built-in way to display content via AJAX .",
"I want to display some html files content with the WordPress thickbox .",
"So far I have managed to get the Thickbox open up .",
"Any suggestions on how to show more detailed post content in thickbox",
"Thickbox itself has everything it needs to work correctly inside of thickbox.css .",
"I m using thickbox to load a search-form from another site .",
"When thickbox is displaying itself bigger then browser size and it does not show scroll bars so there is no way of getting to the last sentences display in Thickbox like Submit or Cancel Button",
"I have a plugin that uses the thickbox in the post template of a custom-post-type like this : .. . .. . When I click this image I get an iframe inside a Thickbox of the post .",
"With this code when I select a new option I can see the thickbox closing while changing the selected option at the same time but it doesn t display the thickbox after it closes .",
"This is the code I use for my edit link .. . .. . This is the code for the thickbox .. . .. . This is my editPolls triggered JavaScript that is added with admin print footer scripts .. . .. . Everything in the source looks like it should .",
"This is my travel blog http : www.laaventura.co.uk .. . .. . There is only a homepage with all post opening in a iframed thickbox lightbox .. . .. . The thickbox class and extra link text is added with this javascript call after the page is loaded .. . .. . This adds the lightbox link-to all read more links .",
"I found how to show Inline Content in Thickbox .. . .. . But I don t know how to use this in a ListView",
"Why are you using the old thickbox-iframe way of doing it instead of the new uploader in 3.5+",
"Now this modal div uses fixed positioning actually it is a thickbox div .. . .. . The content for this modal div exceeds the available browser height .",
"The attachment- ID doesn t seem to be looping in my foreach loop after thickbox is called .",
"In my code the div id my-content-id is being called up by thickbox .",
"i m adding shortcodes to a wordpress theme using tinymce button which opens in thickbox .",
"and i tried to enqueue a script to add some animation and validation in the thickbox page but it isn t working .",
"Is there any event-listener or something which helps here for before opening and after closing events of thickbox",
"I am showing a contact form in wordpress default thickbox and its working fine .",
"As it turns out there are quite a few alternatives to Thickbox some of which had these functions build into them.. .",
"One is width : 400px height : 310px Thickbox and another one is width : 700px height : 700px .",
"Sorry for being a bit offtopic but If I am not mistaken the latest version of ThickBox 3.1 is released in 2007 .",
"How to deal with When the content of Thickbox is bigger then browser size - no scroll bar appear in browser .",
"Using thickbox I have the modal working and to create a new entry works just fine .",
"If I remove the thickbox class from the edit link the console spits out the correct information .",
"You cannot see the list of suggestions because it has too low z-index value and is in fact hidden behind the Thickbox .",
"I m building a custom gallery of images with thickbox you can suggest me to change it .",
"I m trying to access a thickbox iframe parent s element I found similar questions but none of solutions is working for me .",
"When I remove form.cart form .submit function .. . it DOES open in the thickbox iframe correctly however the variables don t get passed",
"I am using following code in clientside : .. . .. . How do I show it in my thickbox",
"I am trying to open a php file containing HTML markup within Thickbox in WordPress .",
"I know I have to add class thickbox to the permalink - but how do I link post content with it",
"When you click on a product it loads a Thickbox iframe window where you input the quantity and add it to the cart .",
"For usability it would be nice to also have a message saying your product was added to the cart when the thickbox closes ."
]
} | {
"confidence": [
60.090065002441406,
55.06814956665039,
54.44785690307617,
53.12212371826172,
52.754669189453125,
52.161624908447266,
50.578880310058594,
50.54657745361328,
50.42429733276367,
49.9426383972168,
48.84186553955078,
48.55281066894531,
47.89751434326172,
47.71443557739258,
47.4075813293457,
47.35934829711914,
47.0679931640625,
47.0679931640625,
46.94287872314453,
46.79420471191406
],
"content": [
"Question : I need to be able to have a modal pop-up to make quick edits to data in the WordPress back end . Using thickbox I have the modal working and to create a new entry works just fine . I want to use the same modal for editing and just use jQuery to change some of the data . This is the code I use for my edit link .. . .. . This is the code for the thickbox .. . .. . This is my editPolls triggered JavaScript that is added with admin print footer scripts .. . .. . Everything in the source looks like it should . The link is good the Javascript is added . When I click the link the modal opens but it s just the standard add form . If I remove the thickbox class from the edit link the console spits out the correct information . The problem only happens when having thickbox with the editPoll class together . thickbox seems to kill any other script from running . I ve tried changing the order of the classes to see if that fixes the problem but it s a no-go . Comment : This sure looks like it should work . Unfortunately Thickbox isn t a very robust plugin and as such it doesn t have callback methods . It also is no longer in development . Consider switching to jQueryUI dialog if you don t need Thickbox for other things . Comment : check browser console you can figure out the error. . Comment : Thanks for the tip on jquery-ui makes things easier . Including the code I used below as the answer if anyone else stumbles on this . .. . Answer : Thanks to a comment above I went the Jquery UI route made things easier . This is the updated code I used . First I had to setup an admin enqueue scripts function : .. . .. . This is that function : .. . .. . My link changed to this : .. . .. . The modal code only removed the style .. . .. . And this is the new inline javascript : .. . .. . Now it works perfectly .",
"Question : null .. . Answer : I am showing a contact form in wordpress default thickbox and its working fine . As thickbox is triggered by link with class thickbox by default it just set css of div to be shown in thickbox from display none to display block .. . .. . What desired is instead of default behaviour it should fadeIn Looks better So far I got the following - .. . .. . event.preventDefault not seems to work here . also jQuery pr enquiry form .fadeIn slow is not affecting anything .. . .. . pr enquiry form is Id of div I am loading in the thickbox Comment : But what s not working exactly What does JavaScript say Could you perform an alert Test to see if it s listening to the .click Comment : I already did alert test and its working Not getting any js errors in console Comment : event.preventDefault will only work on an element that s expected to do something like an a - Not sure what element it is listening to at the moment . Can you see pr enquiry form in the DOM when you inspect it What new CSS Rules have been applied once the fadeIn starts Comment : It loads a whole new html document in thickbox so cant see pr enquiry form Comment : event.preventDefault won t change the expected Thickbox behaviour if that s what you re hoping . So you re calling an iframe with TB iframe",
"Question : I have a problem with jquery-ui autocomplete . It dosen t work when I try to use it inside thickbox-window . Class .ui-autocomplete-input added to the input tag but inspite it I can t see list of suggestions . How can I fix it Comment : I solved my problem.If somebody needed : .ui-autocomplete z-index : 1000000 .. . Answer : You cannot see the list of suggestions because it has too low z-index value and is in fact hidden behind the Thickbox . Thickbox s z-index used by Wordpress is quite high to provide reliable overlay effect . So if you want to see the jquery-autocomplete dropdown inside of Thickbox window a div you should add some custom css styling to it : .. . .. . When added to any css file enqueued for admin section after jquery-ui styles this line should solve your issue . To enqueue custom style for admin section in Wordpress you may use wp enqueue style https : codex.wordpress.org Function Reference wp enqueue style function .",
"Question : null .. . Answer : Consider the scenario : .. . .. . I have Search form on having address city state and image link base search button . on click on search button OR pressing enter in any text box javascript validates the input parameters . If anything is found wrong it shows the custom message in jQuery Thickbox . Question : For example I entered wrong zip code and pressed enter . It shows message thickbox no buttons in it . Pressing escape or space in it closes it down . I want to maintain the focus on zipcode text last element having focus even after thickbox is closed so I can correct zip code now . Is there any event-listener or something which helps here for before opening and after closing events of thickbox How to do this Comment : Look at this question : stackoverflow.com questions 6091998 http : stackoverflow.com questions 6091998 how-would-you-trigger-an-event-when-a-thickbox-closes Comment : @VincentLITUR already tried that before posting this . It totally fails in this scenario .",
"Question : null .. . Answer : i m adding shortcodes to a wordpress theme using tinymce button which opens in thickbox . and i tried to enqueue a script to add some animation and validation in the thickbox page but it isn t working . the script is enqueued right and if i test with an alert function it works well but when i try to select any of the elements within the thickbox elements it doesnt work . This is the code for creating the tinymce button which opens thickbox .. . .. . And this is the code for the thickbox page : .. . .. . And this the code for enqueuing the script which i want to add some animation by : .. . .. . And this the javascript code :",
"Question : My JS jQuery knowledge is very basic so I m asking for a bit of help here . I m trying to achieve something like a Pinterest effect with Thickbox . What I m assuming should happen is using JS or jQuery to monitor Thickbox actions if TB window is present or not and apply the following rules : .. . .. . If Thickbox is opened - set body style to overflow : hidden .. . Else Thickbox is closed - set body style to overflow : auto .. . .. . I m using the integrated into WordPress Thickbox with the function - add thickbox if it makes any difference . Comment : are you using this http : codylindley.com thickbox Comment : Yes but the one build into WordPress . .. . Answer : I m unsure as to the construct of the page but the following code should fix it with a little tweaking .. . .. . Just replace the following with the correct class names .. . .. . .element - the class of the clickable link or image that opens the Thickbox .. . .overlay - the class of the semi-transparent overlay behind the Thickbox .. . .close-button - if needed the class of the close button on the Thickbox Comment : With a few tweaks this almost works . When clicked it assigns overflow hidden to the body . But the problems is that the Thickbox content is called within an iframe and the content inside the iframe has body tag and everything and when the hide close button is clicked the body tag within the iframe gets overflow : auto not the actual body tag on the page . Any idea how to fix that Comment : I would say the easiest way of solving this would be adding a class to your page s body tag and changing body to .body-class hopefully this should solve the issue Comment : Still no luck . I think the problem might be in using document .ready function because the iframe is loaded after this class so it doesn t take the newly added ids and classes from Thickbox . But what else should I use Comment : As it turns out there are quite a few alternatives to Thickbox some of which had these functions build into them.. . Using Colorbox for example there are functions that trigger on Open Load Complete Cleanup and Closed . So using the method mentioned above I was able to do exactly what I wanted with a code like this : document .ready function .colorbox .colorbox onOpen : function main-body .addClass noscroll onClosed : function main-body .removeClass noscroll",
"Question : I use JQuery ThickBox 3.1 http : thickbox.net to show my Iframed Content as popup window . When I click thumbnailImage the page popUp.aspx will show as a popup window . As you see i give the size of popup window to height 600 width 800 .. . but I have a table with width : auto thus the width of my table may change dynamically I want to know how to set the value of thickBox s width and height to auto . You can see thickBox s css http : thickbox.net thickbox-code thickbox.css file and javascript http : thickbox.net thickbox-code thickbox.js file Comment : First you need to create a working fiddle with the bug . Start here : jsbin.com ezivij 1 http : jsbin.com ezivij 1 .. . Answer : Not sure if I understood everything correctly but if your table is inside an iframe you have to know that an iframe is a boundary for many things in your page . In particular layout doesn t flow through an iframe . There s the inside of the iframe and the outside . They leave in completely separated worlds and there is no way that the size of your table which lives in the document inside the iframe can influence the size of the iframe itself -- or anything that lives in the document outside the iframe . If you don t get rid of the iframe your only solution is to use javascript to copy the size from the document inside the iframe to the iframe itself . Of course this is assuming a script is allowed to do that i.e . you don t have cross-site scripting issues your iframe and the main document must come from the same origin . For clarification and to properly answer : you ask the wrong question . Setting thickbox size to auto will not help you . You must set thickbox size to the actual value dynamically .",
"Question : I am trying to set content of thickbox in jquery as I want to take content from server . I am using following code in clientside : .. . .. . How do I show it in my thickbox Thanks in advance.. . .. . Answer : Thickbox has a built-in way to display content via AJAX . If you wanted to get your Url Action in there you can do so like this . I looked through their source code and I m not seeing any callback to easily insert the HTML response into the opened window .",
"Question : null .. . Answer : Im using a thickbox popup to edit some attachment custom-fields . The attachment- ID doesn t seem to be looping in my foreach loop after thickbox is called . Only the first post ID is being grabbed by thickbox . How can I get access to the attachment id in thickbox In my code the div id my-content-id is being called up by thickbox . Any attachment id in that div is not looping . Attachment ids that are output on the page not in thickbox are working fine . http : pastebin.com QhKyArkJ",
"Question : I m trying to access a thickbox iframe parent s element I found similar questions but none of solutions is working for me . Here s the code of parent window : .. . .. . and here s iframe code : .. . .. . What s the problem Comment : is your child iframe document have a jQuery Comment : yes it has and tested it jquery is working fine Comment : Thank you guys. . I ve downloaded another version of thickbox and it s working fine .. . Answer : Try with : Comment : sorry..not working",
"Question : null .. . Answer : I m using thickbox to load a search-form from another site . I m trying to find a way to scroll the thickbox content so the search-form is focused in the the box . I can t add any code to the embedded site so no anchors or javascript to scroll that window .",
"Question : null .. . Answer : I want to close my tickbox after the necessary change are made to the DB . I am using the keepThis true TB iframe true in the begining of my link . When done I am redirecting to a page but it redirects in the thickbox . How can I make the thickbox disappear and redirect to another page Thanks Comment : i m designing in .asp",
"Question : I use Thickbox for my website when I use this code Thickbox close button repeat and increase I use following code to call Thickbox . enter image description here http : i.stack.imgur.com tDeou.png .. . .. . and when I press again .. . .. . enter image description here http : i.stack.imgur.com 04n8R.png .. . .. . and again and again it ll increase number of close button Comment : Waht you have tried Can you Show you code Comment : I m gonna open page vai iframe in thickbox .. . Answer : thickbox.js and thickbox.css are included twice in page . That s why my problem occurred . I Remove this duplication and your problem will solved .",
"Question : In my wordpress-plugin I am using thick box modal window to show the list of items . The content in the thickbox div is generated through a ajax request . I have input checkboxes inside this div . The click event on these check boxes are not triggered . Here is my code : .. . .. . jQuery code : .. . .. . I also tried using this selector : jQuery wpb media tracks container input . But no results . Can any one help me find the issue in my code Edit : .. . .. . More details : .. . .. . Here is a element which calls the thickbox to load the div with id wpb media tracks . And I have set the div wpb media tracks to display : none So that it is only displayed inside the thickbox modal . Thanks .. . Answer : Since the div is loaded via ajax this jQuery .wp media tracks table input will not be recognized . You must get the parent of div wpb media tracks container which is existing DOM not loaded via ajax to attach event-listener . For e.g . div thickbox is the parent that containing div wpb media tracks container this one should work div thickbox .on click input function .. . Comment : Thanks But the solution did not work . I have div with class inside which is wrapped around the whole content . I tried this : jQuery .inside input . But did not work . Comment : @Mr.code892 try jQuery document .on click .wp media tracks table input function Comment : @Mohit I tried it . Also tried this : jQuery document .delegate .wp media tracks table input click function .. . Comment : @Mr.code892 don t enclose document in qutos like document Comment : @Mohit Thanks a lot . That worked . Not sure how I missed it . This is working for me jQuery document .on click wpb media tracks container input function",
"Question : I use JQuery ThickBox 3.1 http : thickbox.net and here is my code .. . .. . Popup box with Image and Title show correctly but I have another field Eval Description to show with it I found how to show Inline Content in Thickbox .. . .. . But I don t know how to use this in a ListView Comment : I use Telerik : RadListView but you can show your example with asp : ListView : .. . Answer : : D I found the answer Just put the contents Image + Description to hidden division style with Display : none and set this div id to inlineId .",
"Question : null .. . Answer : I m a first time user of the plugin called Thickbox . Here s the problem : .. . .. . I want to use 2 types of Thickbox in a same page . One is width : 400px height : 310px Thickbox and another one is width : 700px height : 700px . I don t put pictures in these boxes I want to show different html in these boxes . I know how to set sizes and show different htmls like this : .. . .. . First box : .. . .. . Second box : .. . .. . In default settings I downloaded Thickbox from here : http : codylindley.com thickbox Thickbox is made to show in center of the screen . But I want to make the second box show a little bit on the upper part of the screen because the second box size is big . Where should I modify thickbox.css or thickbox.js Or should I copy the thickbox.css and change classes and ids into different names I tried it once but it doesn t work.. . .. . .. . Could you please help me out Comment : Sorry for being a bit offtopic but If I am not mistaken the latest version of ThickBox 3.1 is released in 2007 . You might want to consider using another plugin that is still active . Comment : I would add an extra class on the second link . class thickbox upper . On this class you can bring your box upper . Comment : I didn t advise you this but here is a possible Example . http : jsfiddle.net nsW5b . But better use a modern Lightbox like Fancybox http : fancyapps.com fancybox",
"Question : How to deal with When the content of Thickbox is bigger then browser size - no scroll bar appear in browser . When thickbox is displaying itself bigger then browser size and it does not show scroll bars so there is no way of getting to the last sentences display in Thickbox like Submit or Cancel Button I did search internet for a solution - I did not find anything that I implemented . I did put this code in thickbox.js but it ignored it : .. . Answer : Try with overflow : scroll or overflow : auto on parent element .",
"Question : null .. . Answer : I have a page with an inline content for a thickbox window and one link-to an ajax content to another thickbox window . When I click to the link-to open an ajax window also is opening another window bellow see the image I guess is the window with content inline . Some body can help me to fix it The code of the inline window : .. . .. . And the link is like : .. . .. . The example image : .. . .. . double thickbox http : i.stack.imgur.com UKZUz.jpg",
"Question : So I am working on some shortcodes when I click the shortcode button I am showing a thickbox window with a select box with the available shortcodes . When I click on a shortcode from the drop down I am showing that shortcodes options . The problem is when I choose a different shortcode from the select it shows the new shortcode options and the previous shortcode options . I want to remove the thickbox and then show the thickbox with the new selected div . With this code when I select a new option I can see the thickbox closing while changing the selected option at the same time but it doesn t display the thickbox after it closes . .. . Answer : I went about it a different way . Not sure if this is the best solution but its working . And the HTML Content",
"Question : I am using the Woocommerce plugin on my Wordpress site . When you click on a product it loads a Thickbox iframe window where you input the quantity and add it to the cart . You can view the test site here : http : 75.103.92.37 rent-storage .. . .. . I d like to have the form-submit the data to the shopping cart then close the window . This link http : www.experts-exchange.com Programming Languages Scripting JavaScript Jquery Q 24831988.html is the closest solution I ve found but works using a thank you page which I do not have and would like to avoid using if possible . This is my form code . I placed an OnSubmit function to close the Thickbox window . It works but the form does not submit . Thank you for your help .. . Answer : tb remove returns false so the form would not submit . You need to add a click handler to Add to Cart that runs tb remove and also returns true . Since you re submitting the form in an iframe you need to make sure the post fires before removing the iframe from the document . For usability it would be nice to also have a message saying your product was added to the cart when the thickbox closes . Comment : We are working in Woocommerce . Do you know what the click handler would be to trigger the add to cart function in Woocommerce Comment : @PaulRuocco this is done in javascript and is independent of the PHP framework you re running . The easiest way to do this is to create a javascript function in the parent page like function closeThickbox tb remove . Then in the iframe add a jquery event like addtocart .click function parent.closeThickbox . Although it looks like you re trying something else now.. ."
]
} | [
"yes-answer-long",
"yes-answer-short"
] | dialog | UNK_RELATION |
verold@web@42 | verold -- verold is an online editor for @placeholder 3d and web vr . | {
"confidence": [
55.425506591796875,
52.351295471191406,
49.559906005859375,
48.47962188720703,
46.831050872802734,
46.831050872802734,
46.831050872802734,
46.831050872802734,
46.831050872802734,
45.70646667480469,
44.84404754638672,
44.84404754638672,
42.514225006103516,
41.9500617980957,
41.9500617980957,
41.9500617980957,
41.77119445800781,
41.77119445800781,
40.08205795288086,
39.96305847167969,
38.67445755004883,
38.67445755004883,
36.89020538330078,
36.89020538330078,
36.89020538330078,
33.7934684753418,
30.325008392333984,
30.325008392333984,
23.35165023803711,
20.935155868530273,
19.65420913696289,
17.727632522583008,
17.727632522583008,
17.727632522583008,
17.727632522583008,
17.727632522583008,
17.727632522583008,
17.727632522583008,
17.727632522583008,
17.727632522583008,
17.727632522583008,
17.727632522583008,
17.727632522583008,
17.727632522583008,
17.727632522583008,
17.727632522583008,
17.727632522583008,
17.727632522583008,
17.727632522583008,
17.727632522583008,
17.727632522583008,
17.727632522583008,
17.727632522583008,
17.727632522583008,
17.727632522583008,
17.727632522583008,
17.727632522583008,
17.727632522583008,
17.727632522583008,
17.727632522583008,
17.727632522583008,
17.727632522583008,
17.727632522583008,
17.727632522583008,
17.727632522583008,
17.727632522583008,
17.727632522583008,
17.727632522583008,
17.727632522583008,
17.727632522583008,
17.727632522583008,
17.727632522583008,
17.727632522583008,
17.727632522583008,
17.727632522583008,
17.727632522583008,
17.727632522583008,
17.727632522583008,
17.727632522583008,
17.727632522583008,
17.727632522583008,
17.727632522583008,
17.727632522583008,
17.727632522583008,
17.727632522583008,
17.727632522583008,
17.727632522583008,
17.727632522583008,
17.727632522583008,
17.727632522583008,
17.727632522583008,
17.727632522583008,
17.727632522583008,
17.727632522583008,
17.727632522583008,
17.727632522583008,
17.727632522583008,
17.727632522583008
],
"content": [
"Verold fixed it quite quickly :",
"I am experimenting with Verold http : verold.com a web based tool that allows you to create webgl 3d experiences .",
"I m trying to use verold http : www.verold.com learn articles verold-api-cheat-sheet-22 to animate 3d models in a script .",
"Not sure if this is a Verold or a 3ds Max problem .",
"I am trying to duplicate an object every time I click it in Verold .",
"This function like many functions in the Verold API takes an options object as a parameter .",
"Also Verold not working on Internet Explorer 11.. . any news",
"stackoverflow.com questions 28417959 http : stackoverflow.com questions 28417959 camera-constraints-on-verold",
"Gets as far as message which says Published a model to Verold yay .. .",
"I have a scene to import into Verold with objects that animate .",
"Alternatively if you re building an API project in Verold you can create a button in your HTML page and trigger an event from there : VAPI.globalEvents.trigger myEvent .. . .. . Then in Verold add an EventHandler that listens to the myEvent Custom event .",
"In Verold using the Verold Studio controls how do I get the camera to rotate around the axis of the model when I pan rather than just turning on its own axis",
"I ve been playing around with the three.js based world editor called verold http : www.verold.com .",
"However I m having trouble understanding the corret usage of the verold API components .",
"It sums up nicely the most common way of working with the Verold API .",
"In other words what does Verold need and how do I get there",
"You can use an Event Handler component in Verold and listen to the Pick event on any object in your scene .",
"Partial solution : It seems the problem for Verold was that the pedal s parts were grouped it works if they are attached instead .",
"Your animation is not playing correctly when exported by Verold Publisher .. . .. . To apply TurboSmooth when exporting to FBX please see the following : http : answers.unity3d.com questions 23085 3ds-max-fbx-turbosmooth-export.html .. . .. . Note that line objects are not currently supported in Verold Studio so they will not render .",
"The EventHandler is the easy way : .. . .. . http : www.verold.com learn articles using-the-verold-loader-73 .. . .. . In fact if there s one post you should look at to understand how Verold works I d say take a look at that one .",
"Using the Verold exporter the animation asset appears in the key frame animation tab in the choose asset section but when applied it never actually animates .",
"Thanks Ian 1 The turbo smooth checkbox is clicked on the Geometry tab during .fbx export so perhaps its a Verold issue",
"Here s what I ve tried : .. . .. . The script has an attribute called spriteimage which is a verold asset - 2D texture .",
"Build your interface in HTML CSS and fire events from your app into Verold .",
"When you import the files into Verold you will end up with two animation assets .",
"First if you have a single file in 3ds Max with both animations in a single timeline you will need to split the timeline into two takes clips inside Verold .",
"There s a lot more to the Verold API not to mention what you can do by getting a handle to the Three.js renderer underneath but you can achieve a lot using events .",
"I can see how to do it with the character animation file on the Verold tutorial because you can import just a skelton .fbx but for objects you have to import the whole scene each time no",
"When I remove the setProperty line then I get the color value from the editor .",
"How I ve done it is referencing the material using the Asset Registry then calling the setProperty method on the variable referencing it like this : .. . .. . You can also use the attribute system to reference the material by creating it in the Code Editor then setting it on the component in the Studio then whatever you named the attribute can be referenced programmatically with",
"Then do as much as you can using our built-in components and editor .",
"I have made this simple prototype : .. . .. . http : www.verold.com projects 54270b01497675020000007d .. . .. . Right now my animation occurs on load .",
"I d like to replay the animation on click of the background or on another object .",
"I could not find the appropriate event to make a button or click event .",
"You have a couple of options .",
"Ross",
"I don t see pick in the event handler event dropdown .",
"Do I have to add something special first",
"Ah right .",
"You need to add the Object Picker component to your scene then you can listen to the Pick event on any object in that scene .",
"I have attached the Object Picker to the scene and successfully triggered a function which prints to the console .",
"I ve tried this code but I get a Type Error - can t read property of undefined .",
"The clone method is asynchronous because the same method would be used if you were creating persistent copies of your objects on the server .",
"In here you need to specify the success callback method like in the following example .",
"Once you have the clone you then need to add it to the scene hierarchy using the addChild method .",
"This will automatically trigger the cloned object to load .",
"The multiple steps are useful because you may want to clone several objects and have them ready to add to the scene at a later time .",
"And of course if you don t require the cloned object to have components or any of the other functionality of a VeroldObject you can always just get the threeData and then use Three.JS s clone method .",
"Hope that helps .",
"I have a cube that I d like to change the color of through code .",
"I m attempting to use the setProperty method .",
"When I put the following code in an update loop and attach it to a cube that I ve made blue it stays blue but the console says that it is black 0 .",
"That code should work fine and it seems to be working for me .",
"diffuseColor is a property of materials though so make sure that you re setting this property on the MaterialAsset and not your mesh .",
"If you want to only change the color of the material on one of your meshes you ll need to create a new material for it or clone the existing one .",
"I ve attached the component to the object not the material .",
"How do I get the material of the object from my script",
"I have attached the script to both the object and the mesh and it still doesn t work .",
"Here is a link-to a project that illustrates the issue : vrld.co uTVmqC 1 http : vrld.co uTVmqC 1",
"I ve searched through the controls in Studio and am unable to find the solution .",
"I am certain it is right in front of me I just cannot see it .",
"When you click the camera then open orbit controls and the first setting in there is the object to orbit .",
"You can set this to a model or a mesh .",
"Depending on what you want to orbit .",
"The other trick is that you should make sure that your camera s initial position is a valid orbit position .",
"To do this select the model you want to orbit and click the F key .",
"Now you can choose your camera and set it to this position using the align to position button .",
"Hope that helps",
"Thanks but when I double click the default camera and the Inspector opens I cannot see any setting to select the object to orbit .",
"If I export the max project as an .FBX it will work HERE http : www.verold.com projects 54caa49c20aef934331dcbfa - the pedal depresses ok but then I loose turbo smooth wheel alloys and line objects cables disappear why is that btw .",
"And yet if I animate a simple box next to the pedal that works HERE http : www.verold.com projects 54cab77220aef934331dcd9b .",
"To clarify it sounds like there are three issues : .. . .. . 1 .",
"Your TurboSmooth modifier is not being applied when exporting to FBX .. . 2 .",
"Your line objects are not rendering .. . 3 .",
"Regarding animation when I look at your first example I see an animated pedal .",
"In your second example I see an animated box .",
"Should there be additional animated objects in either example",
"2 That s useful info I will convert them into polys before exporting .",
"3 Yes the second one is supposed to have the pedal animated as well however I have solved that problem - it was because the pedal s parts were grouped it works if they are attached instead .",
"1 solved through variation on the link you gave : reset Xform then collapsed object then converted back to editable poly .",
"There is a problem that multiple users of my model have noticed namely that when you right-click the model here http : www.verold.com projects 54ceb6560f01ac093d379058 the movements are hypersensitive .",
"Orbit and zoom are fine and steady but pan now more often than not results on the model rapidly shooting off into the distance .",
"I ve been playing with the camera controls to no avail and I don t want to simply remove the pan option for the client .",
"Also is there any way to transition between cameras without a fade just a movement of the camera",
"Thanks",
"It happens very frequently when left clicking too to the point that the model is non-navigable .",
"For instance go to camera 3 and right or left click on the drum .",
"Solved : problem was the focal point white lined sphere .",
"Had been set off accidentally far off into the distance can be easily done without noticing and there is no undo .",
"Just brought it back to the object .",
"Is there any way to make an object gradually disappear without scripting rather than go straight to invisibility using an event handler",
"I ve tried importing an animated opacity change from 3ds Max but no luck .",
"We don t currently support animated material in FBX .",
"For now I d suggest triggering an EventHandler to modify the material properties .",
"Here s how : .. . .. . Add the Object Animator and Event Handler components to your object .",
"In the Event Handler choose whatever trigger you want on pick or whatever makes sense for your usecase .",
"Then for the action choose Asset select your material asset then choose Set Number Opacity then you can specify an opacity value and a transition time in seconds for the animation .",
"I noticed on my machine that there is a bug during the transition have recorded the bug and should get it fixed in the next few days ."
]
} | {
"confidence": [
67.56379699707031,
65.49022674560547,
60.4543571472168,
58.43186569213867,
57.20355987548828,
55.159080505371094,
52.09089660644531,
52.09089660644531,
51.45203399658203,
51.17682647705078,
43.0373649597168,
43.0373649597168,
24.415035247802734,
22.01245880126953
],
"content": [
"Question : I am experimenting with Verold http : verold.com a web based tool that allows you to create webgl 3d experiences . I have made this simple prototype : .. . .. . http : www.verold.com projects 54270b01497675020000007d .. . .. . Right now my animation occurs on load . I d like to replay the animation on click of the background or on another object . I could not find the appropriate event to make a button or click event . .. . Answer : You have a couple of options . You can use an Event Handler component in Verold and listen to the Pick event on any object in your scene . Alternatively if you re building an API project in Verold you can create a button in your HTML page and trigger an event from there : VAPI.globalEvents.trigger myEvent .. . .. . Then in Verold add an EventHandler that listens to the myEvent Custom event . Ross Comment : I don t see pick in the event handler event dropdown . Do I have to add something special first Comment : Ah right . You need to add the Object Picker component to your scene then you can listen to the Pick event on any object in that scene .",
"Question : I m trying to use verold http : www.verold.com learn articles verold-api-cheat-sheet-22 to animate 3d models in a script . However I m having trouble understanding the corret usage of the verold API components . I have a model loaded to my scene and a script attached as an attribute of that model . I also have a keyframe animation attribute which is set up to not auto play . My goal here is to be able to start a particular animation when the user clicks a button . I can see the model object when I use the following code .. . .. . But I m unsure of how to use the playanimation loop startTime save fn function . So my questions are : 1 . Is this the correct way to start an animation in a script 2 . If so could someone show me the proper way to use this i.e what are the save and fn parameters Thanks in advance.. . .. . Answer : There are two ways to trigger an animation from your component . You can either use the animation API or you can setup an EventHandler in the UI . The EventHandler is the easy way : .. . .. . http : www.verold.com learn articles using-the-verold-loader-73 .. . .. . In fact if there s one post you should look at to understand how Verold works I d say take a look at that one . It sums up nicely the most common way of working with the Verold API . Build your interface in HTML CSS and fire events from your app into Verold . Then do as much as you can using our built-in components and editor . There s a lot more to the Verold API not to mention what you can do by getting a handle to the Three.js renderer underneath but you can achieve a lot using events . I will let Ian answer how to use the animation API . Use the API directly if you want to drive more complex interactivity for example if you want custom animation blending .",
"Question : Suddenly stopped working . Gets as far as message which says Published a model to Verold yay .. . etc but when clicked to view returns a 404 error on the webpage . have reinstalled - no luck . .. . Answer : Verold fixed it quite quickly :",
"Question : If I export the max project as an .FBX it will work HERE http : www.verold.com projects 54caa49c20aef934331dcbfa - the pedal depresses ok but then I loose turbo smooth wheel alloys and line objects cables disappear why is that btw . Using the Verold exporter the animation asset appears in the key frame animation tab in the choose asset section but when applied it never actually animates . And yet if I animate a simple box next to the pedal that works HERE http : www.verold.com projects 54cab77220aef934331dcd9b . Partial solution : It seems the problem for Verold was that the pedal s parts were grouped it works if they are attached instead . .. . Answer : To clarify it sounds like there are three issues : .. . .. . 1 . Your TurboSmooth modifier is not being applied when exporting to FBX .. . 2 . Your line objects are not rendering .. . 3 . Your animation is not playing correctly when exported by Verold Publisher .. . .. . To apply TurboSmooth when exporting to FBX please see the following : http : answers.unity3d.com questions 23085 3ds-max-fbx-turbosmooth-export.html .. . .. . Note that line objects are not currently supported in Verold Studio so they will not render . Regarding animation when I look at your first example I see an animated pedal . In your second example I see an animated box . Should there be additional animated objects in either example Comment : Thanks Ian 1 The turbo smooth checkbox is clicked on the Geometry tab during .fbx export so perhaps its a Verold issue 2 That s useful info I will convert them into polys before exporting . 3 Yes the second one is supposed to have the pedal animated as well however I have solved that problem - it was because the pedal s parts were grouped it works if they are attached instead . Comment : 1 solved through variation on the link you gave : reset Xform then collapsed object then converted back to editable poly .",
"Question : I m trying to use verold http : www.verold.com learn articles verold-api-cheat-sheet-22 to animate 3d models in a script . However I m having trouble understanding the corret usage of the verold API components . I have a model loaded to my scene and a script attached as an attribute of that model . I also have a keyframe animation attribute which is set up to not auto play . My goal here is to be able to start a particular animation when the user clicks a button . I can see the model object when I use the following code .. . .. . But I m unsure of how to use the playanimation loop startTime save fn function . So my questions are : 1 . Is this the correct way to start an animation in a script 2 . If so could someone show me the proper way to use this i.e what are the save and fn parameters Thanks in advance.. . .. . Answer : First you need to get a reference to the Keyframe Animation component that you want to control via script . You can use getComponentsByScriptName to get the Keyframe Animation component s attached to an entity : .. . .. . If a single Keyframe Animation component is attached to the entity then this.animations 0 will refer to it . Next you can play the animation :",
"Question : Not sure if this is a Verold or a 3ds Max problem . I have a scene to import into Verold with objects that animate . I want the objects to complete one animation when clicked and then start another animation on loop when clicked again . What is the pipeline for getting the animations in I can see how to do it with the character animation file on the Verold tutorial because you can import just a skelton .fbx but for objects you have to import the whole scene each time no I am not worried about how to deal with the event handler side it is getting the animations in . Do I produce the two animations in 3ds Max one after the other in the timeline and then call on them separately somehow Or do I produce two scenes with identical objects but with different animations and then somehow extract the animation alone In other words what does Verold need and how do I get there .. . Answer : Both approaches will work . First if you have a single file in 3ds Max with both animations in a single timeline you will need to split the timeline into two takes clips inside Verold . You can do this as follows : .. . .. . 1 . Click on the animation asset .. . 2 . In the Inspector select the first take .. . 3 . Click Duplicate to duplicate the take .. . 4 . Adjust the start and stop times of each take .. . .. . Then you can trigger the two takes independently with the Event Handler . Alternatively you can create two separate files each with a different animation . When you import the files into Verold you will end up with two animation assets . You can trigger these two animations independently with the Event Handler . Comment : That s great . Thanks . One more question.. . in the event handler is it possible to trigger animations sequentially through the same action i.e . click an object to start one animation then click the same object again to start the second Comment : I don t mean to have the first as a default animation already running when you open the scene I mean have a static scene first then click once for first anim then again for second",
"Question : I am trying to duplicate an object every time I click it in Verold . I have attached the Object Picker to the scene and successfully triggered a function which prints to the console . I ve tried this code but I get a Type Error - can t read property of undefined . .. . Answer : The clone method is asynchronous because the same method would be used if you were creating persistent copies of your objects on the server . This function like many functions in the Verold API takes an options object as a parameter . In here you need to specify the success callback method like in the following example . Once you have the clone you then need to add it to the scene hierarchy using the addChild method . This will automatically trigger the cloned object to load . The multiple steps are useful because you may want to clone several objects and have them ready to add to the scene at a later time . And of course if you don t require the cloned object to have components or any of the other functionality of a VeroldObject you can always just get the threeData and then use Three.JS s clone method . Hope that helps .",
"Question : In Verold using the Verold Studio controls how do I get the camera to rotate around the axis of the model when I pan rather than just turning on its own axis I ve searched through the controls in Studio and am unable to find the solution . I am certain it is right in front of me I just cannot see it . .. . Answer : When you click the camera then open orbit controls and the first setting in there is the object to orbit . You can set this to a model or a mesh . Depending on what you want to orbit . The other trick is that you should make sure that your camera s initial position is a valid orbit position . To do this select the model you want to orbit and click the F key . Now you can choose your camera and set it to this position using the align to position button . Hope that helps Comment : Thanks but when I double click the default camera and the Inspector opens I cannot see any setting to select the object to orbit .",
"Question : First post here on stack overflow.. . I ve been playing around with the three.js based world editor called verold http : www.verold.com . It has some great features but I ve run into a problem with the scripting setup . I m trying to implement a THREE.Sprite and attach it as a component of an object . Here s what I ve tried : .. . .. . The script has an attribute called spriteimage which is a verold asset - 2D texture . When this script is added as a component of the scene the project runs but you can t see a sprite at all . I ve tried replicating this code in a regular three.js project with success . Can anybody offer a solution to this thanks . .. . Answer : There are a couple of minor issues with your code . Otherwise it works fine . First mySprite.location should be mySprite.position . Perhaps an earlier version of Three.JS used location The second issue is the reference to scene is not defined . In a script you can call this.getThreeScene to return the reference to the THREE.Scene that the object that this script is attached to is part of . Comment : Thanks Mike That fixed it . Not sure why i was calling .position I think I copied it from a previous example somewhere",
"Question : Not sure if this is a Verold or a 3ds Max problem . I have a scene to import into Verold with objects that animate . I want the objects to complete one animation when clicked and then start another animation on loop when clicked again . What is the pipeline for getting the animations in I can see how to do it with the character animation file on the Verold tutorial because you can import just a skelton .fbx but for objects you have to import the whole scene each time no I am not worried about how to deal with the event handler side it is getting the animations in . Do I produce the two animations in 3ds Max one after the other in the timeline and then call on them separately somehow Or do I produce two scenes with identical objects but with different animations and then somehow extract the animation alone In other words what does Verold need and how do I get there .. . Answer : unfortunately that s not yet possible . The event handler is for basic interactivity and we re working on a next release with support for more advanced features . What I might suggest for now is to use custom actions on your scene one for each of your animations . This still wouldn t let you do sequential animations but at least that lets you trigger both of your animations . If you send an email to info@verold.com I ll add you to our list and get you in as a beta user on our timeline tool . Should be in the next few weeks . Ross Comment : Can you clarify custom actions please",
"Question : There is a problem that multiple users of my model have noticed namely that when you right-click the model here http : www.verold.com projects 54ceb6560f01ac093d379058 the movements are hypersensitive . Orbit and zoom are fine and steady but pan now more often than not results on the model rapidly shooting off into the distance . I ve been playing with the camera controls to no avail and I don t want to simply remove the pan option for the client . Also is there any way to transition between cameras without a fade just a movement of the camera Also Verold not working on Internet Explorer 11.. . any news Thanks Comment : It happens very frequently when left clicking too to the point that the model is non-navigable . Comment : For instance go to camera 3 and right or left click on the drum . .. . Answer : Solved : problem was the focal point white lined sphere . Had been set off accidentally far off into the distance can be easily done without noticing and there is no undo . Just brought it back to the object .",
"Question : Is there any way to make an object gradually disappear without scripting rather than go straight to invisibility using an event handler I ve tried importing an animated opacity change from 3ds Max but no luck . .. . Answer : We don t currently support animated material in FBX . For now I d suggest triggering an EventHandler to modify the material properties . Here s how : .. . .. . Add the Object Animator and Event Handler components to your object . In the Event Handler choose whatever trigger you want on pick or whatever makes sense for your usecase . Then for the action choose Asset select your material asset then choose Set Number Opacity then you can specify an opacity value and a transition time in seconds for the animation . I noticed on my machine that there is a bug during the transition have recorded the bug and should get it fixed in the next few days . But that gets you what you need . Ross Comment : Perfects that work thanks . Can you take a look at this question here stackoverflow.com questions 28417959 http : stackoverflow.com questions 28417959 camera-constraints-on-verold",
"Question : I have a cube that I d like to change the color of through code . I m attempting to use the setProperty method . When I put the following code in an update loop and attach it to a cube that I ve made blue it stays blue but the console says that it is black 0 . When I remove the setProperty line then I get the color value from the editor . .. . Answer : How I ve done it is referencing the material using the Asset Registry then calling the setProperty method on the variable referencing it like this : .. . .. . You can also use the attribute system to reference the material by creating it in the Code Editor then setting it on the component in the Studio then whatever you named the attribute can be referenced programmatically with",
"Question : I have a cube that I d like to change the color of through code . I m attempting to use the setProperty method . When I put the following code in an update loop and attach it to a cube that I ve made blue it stays blue but the console says that it is black 0 . When I remove the setProperty line then I get the color value from the editor . .. . Answer : That code should work fine and it seems to be working for me . diffuseColor is a property of materials though so make sure that you re setting this property on the MaterialAsset and not your mesh . If you want to only change the color of the material on one of your meshes you ll need to create a new material for it or clone the existing one . Hope that helps . Comment : I ve attached the component to the object not the material . How do I get the material of the object from my script Comment : I have attached the script to both the object and the mesh and it still doesn t work . Here is a link-to a project that illustrates the issue : vrld.co uTVmqC 1 http : vrld.co uTVmqC 1"
]
} | [
"yes-answer-long",
"yes-answer-short"
] | web | UNK_RELATION |
linemanjs@web@170 | linemanjs -- a cli tool to provide a thin wrapper around client-side tools grunt testem etc that enables some sane conventions which allow developers to get first-class @placeholder apps up and running quicker . | {
"confidence": [
30.128765106201172,
28.72109603881836,
27.297504425048828,
26.85218620300293,
25.429443359375,
24.155136108398438,
23.171710968017578,
22.795612335205078,
22.504484176635742,
22.00107192993164,
21.972118377685547,
21.93000030517578,
21.6700439453125,
21.660449981689453,
21.2508544921875,
21.09137725830078,
21.09137725830078,
20.62114906311035,
20.540882110595703,
19.922773361206055,
19.162649154663086,
19.00201416015625,
17.859554290771484,
17.538372039794922,
17.478090286254883,
17.267642974853516,
16.894264221191406,
16.682147979736328,
16.682147979736328,
16.17672348022461,
15.829357147216797,
15.684118270874023,
15.557233810424805,
15.422994613647461,
15.422994613647461,
15.054940223693848,
14.928079605102539,
14.90241813659668,
14.753440856933594,
14.744641304016113,
14.55572509765625,
14.534379005432129,
14.534379005432129,
14.534379005432129,
14.282928466796875,
14.282928466796875,
14.19776725769043,
14.128728866577148,
13.815619468688965,
13.659659385681152,
13.479135513305664,
13.270520210266113,
13.270520210266113,
13.093114852905273,
12.613523483276367,
12.613523483276367,
12.613523483276367,
12.613523483276367,
12.613523483276367,
12.613523483276367,
12.613523483276367,
12.613523483276367,
12.613523483276367,
12.613523483276367,
12.613523483276367,
12.613523483276367,
12.613523483276367,
12.613523483276367,
12.613523483276367,
12.613523483276367,
12.613523483276367,
12.613523483276367,
12.613523483276367,
12.613523483276367,
12.613523483276367,
12.613523483276367,
12.613523483276367,
12.613523483276367,
12.613523483276367,
12.613523483276367,
12.613523483276367,
12.613523483276367,
12.613523483276367,
12.613523483276367,
12.613523483276367,
12.613523483276367,
12.613523483276367,
12.613523483276367,
12.613523483276367,
12.613523483276367,
12.613523483276367,
12.613523483276367,
12.613523483276367,
12.613523483276367,
12.613523483276367,
12.613523483276367,
12.613523483276367,
12.613523483276367,
12.613523483276367,
12.613523483276367
],
"content": [
"FYI - Its a code in app made from linemanjs .",
"linemanjs is using grunt tasks for the minification to avoid this you can simply check the application config and comment it if you don t want it to happen .",
"Need use Browserify for CommonJS approach in Jasmine unit tests which have been running with lineman Testem .",
"Let me know what I am doing wrong with linemanjs .",
"I have just started using LinemanJS and I am using the lineman-angular-template as my starter project .",
"FYI - I am using LinemanJS for my front end management tasks for the app .",
"However it just tells me to add the grunt task to loadNpmTasks .",
"there is a pages task https : github.com linemanjs lineman blob master tasks pages.coffee where I would like to add some additional actions based on my custom parameter .",
"I am creating a web app using linemanjs but when I am referencing vendor css and js files explicitly it wont reference to that location .",
"I would like to use tools like Grunt Gulp with concat lint liveReload SASS .. . .. . And just upload generated html css js to server .",
"I was originally excited to get going with lineman to help tackle the front-end but recently I ve been introduced to ember-cli .",
"I made a folder search with JST but no results I think I am using linemanjs installed globally -g so it must be there if not available locally and not explicitly an angular feature",
"I want to add a grunt task specifically angular-template to my lineman application.js file .",
"I ended up running printenv and found a variable associated with libraries .",
"The command lineman grunt spec-e2e starts the protractor tests .",
"FYI - I was not aware of grunt tasks at the time of question .",
"Is it possible to parametrize already existing grunt task",
"After running command : .. . .. . Have had next error .. . .. . Running browserify : common browserify task Error : module . hello not found from C : cygwin64 NAP app js entrypoint.coffee Warning : Error running grunt-browserify .",
"Does anyone have experience with both lineman and ember-cli",
"I understand it s yours github repo : https : github.com ksprashu lineman-jade-template .. . .. . If I understand correctly this comment : https : github.com linemanjs lineman issues 83 issuecomment-20059462 .. . .. . Yours route in routes.js should looks like this :",
"Ember-cli seems to be much more tightly integrated with EmberJS though it appears to be less fleshed out than lineman .",
"It has all that I needed and works nicely : .. . .. . https : github.com raulghm gulp-assemble .. . .. . I gotta learn grunt gulp someday to be able to create and set up things like this :",
"I am using : Firefox 30 selenium-server-standalone-2.43.1.jar Xvfb Ubuntu Headless Lineman grunt spec-e2e .. . .. . I am able to run Xvfb Firefox and lineman grunt spec-e2e with no errors .",
"files.ng2.dist : the target folder where to place files when running a buid .",
"There is some documentation found here http : linemanjs.com and here http : blog.testdouble.com posts 2013-06-05-supporting-typescript-in-lineman.html .",
"The jenkins service is set up to run as the jenkins user .",
"More information will probably be needed like your Jenkins config os version etc .",
"However all specs in the tests fail since browser.get myurl can t find anything since nothing is running .",
"The jenkins service is running under the user jenkins and if I run whoami during the jenkins build it outputs jenkins .",
"Or is your script maybe preprocessed and it s some kind of macro",
"I have a project which is setup with lineman and uses maven for build configurations .",
"Because not use this elementary tag of basic HTML : .. . .. . The path that have to include the tag if must be of the server or client .",
"Sorry for Necromancing but if I had found that answer here - I would saved some time .",
"I tried to add lineman run as a task but this causes the jenkins-build to get stuck on the watch task .",
"How can I get the project to run and therefore make it accessible for the protractor tests",
"Components : NG2 component architecture strongly suggests that all artifacts css html less png etc ought to be placed in the same module folder with the module manager with a little help from the developer taking on the role of loading these files as necessary .",
"Application and vendor files are now made available as modules which are loaded by the module manager I m using SystemJS but will soon upgrade to Webpack as needed by the application .",
"But I would like to have some basic feature for including templates .",
"application .. . .. . See below for my config application.js code and some ensuing comments : .. . .. . Notes : .. . .. . copy : dl-deploy-dev : used to copy these files to my server wildfly target folder .",
"PushState : css myvendor.css not found in home trialcode trialcode myapp generated - Serving up generated index.html",
"Unfortunately when I run this command as a job in jenkins it fails : .. . .. . node : error while loading shared-libraries : libhttp parser.so.2 : cannot open shared object file : No such file or directory .. . .. . This error comes up even if I try to run npm-install with the jenkins job .",
"The problem is that from a fresh project created using lineman my application.js file does not have a loadNpmTasks array nor do the comments point out where I should put it .",
"Both examples I have found in the documentations do not show what the application.js file should look like in it s entirety .",
"The application.js file should look something like this obviously the src dest options are not configured correctly : .. . .. . Then to run the task :",
"I always used to deploy even single websites with some kind of back-end service mostly PHP-framework .",
"Solved it : inside pages.coffee : .. . .. . Generally if you would like to override some already defined variables Lineman uses f.e .",
"I solved this problem with Lineman s help : .. . .. . Wrote a custom task tasks dl-dev-copy.js to copy the files : .. . .. . module.exports function grunt .. . return grunt.registerTask dl-dev-copy Copy UI artifacts to wildfly deployment folder copy : dl-dev-copy .. . .. . .. . .. . Updated the application.js file the key part is important I was only able to figure it out after the Lineman folks helped me out : .. . .. . loadNpmTasks : lineman.config.application.loadNpmTasks.concat grunt-contrib-copy .. . copy : .. . dl-dev-copy : .. . files : .. . expand : true .. . cwd : generated .. . src : .. . dest : . . . . . . target iq .. . .. . .. . .. . watch : .. . target : .. . files : app spec spec-e2e .. . tasks : dl-dev-copy .. . .. . .. . appendTasks : .. . common : dl-dev-copy .. . .. . .. . .. . See below for the output of lineman run it is similar when a file is being watched changes and we I run lineman build : .. . .. . lineman run .. . Running common task .. . .. . .. . Running copy : dl-dev-copy copy task .. . Created 6 directories copied 23 files .. . .. . .. . Running watch task .. . Waiting.. .",
"Once I reached this conclusion it became obvious that this was the correct approach since once we migrate all of our NG1 software to NG2 we want to also seamlessly remove all of the NG1 build artifacts and software which would be hard to do should the two be tightly intertwined .",
"files .. . .. . See below for my config files.js code and some ensuing comments : .. . .. . Notes : .. . .. . files.ng2 - is an obect containing all the NG2 related file definitions .. . files.ng2.libs - is an array including the source location of the support files non-application that need to be copied to the server target folder as indicated NG2 requires vendor modules to be available for loading by the module manager .",
"Following is the lineman - config file - http : pastebin.com ZuNzDY8S application file - http : pastebin.com rSPdeSME .. . .. . Now whenever I am running the command lineman run I am getting app.js vendor.js plugin.js js files into my generated folder as expected .",
"After analyzing those files you can easily figure out the way how to override some properties very similar to what I ve done in my initial post .",
"So in the index.html file I am getting - .. . .. . Now few Files I do not want to minify and merged into one but the problem is can not refer the vendor files via - .. . .. . Which is also reasonable as the html is now in generated folder .",
"So that in pages index.html I would have something like include partials header.html .. . .. . I have looked into lineman and yeoman but I couldnt find a solution which would include all the solutions I would like .",
"github.com nervgh angular-file-upload issues 40 https : github.com nervgh angular-file-upload issues 40 stackoverflow.com a 20446415 2150286 http : stackoverflow.com a 20446415 2150286 I ll be kicking off a new project with the same setup in about an hour - hopefully this question will get some attention resolution soon .",
"I want to use angular-spinner https : github.com urish angular-spinner in my project lineman + angularjs .",
"My bower.json : .. . .. . files.js : .. . .. . And then .. . .. . When I remove the angular-spinner : 0.5.0 line from bower.json the build is successful and the spin.js catalog is present in my project .",
"What",
"am I doing wrong",
"What bower version",
"Cannot reproduce with bower 1.3.5",
"@TimCastelijns Seems a bower update helped .",
"Thanks",
"You are welcome sir",
"I have converted all the default .js files into .coffee and everything worked as expected .",
"Then I converted all the .html files into .jade but then everything broke .",
"My generated jade file can be seen here - http : pastebin.com UAGd4ZAW .. . .. . Now I have no clue on how to use the generated jade.js file in my html .",
"Just loading the page itself nothing loads .",
"I guess the templates are not found .",
"I tried to add the js file to the index.html but that didn t work either .",
"In both cases the browser inspector just hands and chrome crashes .",
"Why don t you accept the following answer",
"I m planning on building a web application with an EmberJS front-end that talks to a Flask-based RESTful API .",
"If so do you see a benefit of using one over another",
"Recently I came across a code chunck where JST is added before the template in angular - .. . .. . Example - .. . .. . routeProvider .when login template : JST app templates login controller : LoginController .. . .. . Previously I do like this - .. . .. . routeProvider .when login template : app templates login controller : LoginController .. . .. . what is this JST in angular template means",
"also the difference between the two styles if any",
"I don t think it s an angular feature .",
"Isn t JST declared somewhere",
"If it s a SailsJS app then it ll support JST see my answer below",
"It possibly could be an hash object in your code containing all keys and values as template urls for html files .",
"Yes it must be somewhere else .",
"Its definitely not an angular feature",
"Here s how I use JST templates in Angular : .. . .. . ...and here s my HTML : .. . .. . It s a simple and elegant way to use JST templates from inside AngularJS .",
"PS It works well with SailsJS too .",
"Your application is using JST templates this page describes them http : ricostacruz.com backbone-patterns jst templates .",
"JST is a hash that returns the template as a JavaScript function .",
"Often this JST object hash of functions is created at build time and saved as a JavaScript file that is included somehow by the app .",
"The input to the compiled JST object is a list of template .html files .",
"Yes .",
"See code.google.com p trimpath wiki JavaScriptTemplates https : code.google.com p trimpath wiki JavaScriptTemplates and stackoverflow.com questions 22080981 http : stackoverflow.com questions 22080981 loading-ng-include-partials-from-local-pre-loaded-jst-template-cache for more info on this .",
"A maven pom.xml file is used to configure the jenkins builds .",
"This file lists the necessary tasks that need to be done in order to build the project .",
"The lineman tasks are specified here as well .",
"This currently works on the jenkins server because it starts the webdriver and runs the tests .",
"I have installed nodejs npm lineman jenkins and phantomjs on red hat .",
"I am trying to run a jenkins job that just runs lineman spec-ci to run my test-em tests .",
"When I run this command as the jenkins user on the terminal it runs .",
"Any idea why I can run npm and lineman commands as the jenkins user but it fails when run as a job",
"Red hat Jenkins 1.609.3 npm 1.4.28 node v0.10.35 .",
"Nodejs and npm were compile but the paths have been added to the jenkins user path and I also added it to the path global variable in the jenkins application .",
"I added that variable to jenkins - configure - global properties ."
]
} | {
"confidence": [
38.73374938964844,
36.4667854309082,
34.592185974121094,
30.482295989990234,
30.482295989990234,
29.74342918395996,
27.783105850219727,
27.372390747070312,
25.95553207397461,
25.32281494140625,
25.118213653564453,
24.791706085205078,
23.131893157958984,
21.891353607177734,
20.547088623046875,
20.225683212280273,
15.90623664855957,
14.155484199523926,
12.218213081359863,
11.500314712524414
],
"content": [
"Question : Following is the lineman - config file - http : pastebin.com ZuNzDY8S application file - http : pastebin.com rSPdeSME .. . .. . Now whenever I am running the command lineman run I am getting app.js vendor.js plugin.js js files into my generated folder as expected . So in the index.html file I am getting - .. . .. . Now few Files I do not want to minify and merged into one but the problem is can not refer the vendor files via - .. . .. . Which is also reasonable as the html is now in generated folder . So what do I need to do in my config file to avoid few file compressions and how to reference those vendor files in my layout template files .. . Answer : linemanjs is using grunt tasks for the minification to avoid this you can simply check the application config and comment it if you don t want it to happen . FYI - I was not aware of grunt tasks at the time of question .",
"Question : null .. . Answer : Need use Browserify for CommonJS approach in Jasmine unit tests which have been running with lineman Testem . After running command : .. . .. . Have had next error .. . .. . Running browserify : common browserify task Error : module . hello not found from C : cygwin64 NAP app js entrypoint.coffee Warning : Error running grunt-browserify . Use --force to continue . Versions : .. . .. . lineman : 0.36.6 .. . browserify : 4.0.0 .. . lineman-browserify : 0.1.2 .. . .. . app js entrypoint.coffee file contains : .. . .. . window . require underscore require . hello .. . .. . Checked the result-of .. . .. . lineman config browserify .. . .. . Also its issue becomes when I m trying to run",
"Question : Is it possible to parametrize already existing grunt task F.e . there is a pages task https : github.com linemanjs lineman blob master tasks pages.coffee where I would like to add some additional actions based on my custom parameter . I ve been trying to add something like that in my application.js .. . .. . and printing it inside pages.coffee : .. . .. . So it looks like the matter of passing value to task : what am I doing wrong .. . Answer : Solved it : inside pages.coffee : .. . .. . Generally if you would like to override some already defined variables Lineman uses f.e . source destination folders I suggest you to look into node-modules module name config plugins . After analyzing those files you can easily figure out the way how to override some properties very similar to what I ve done in my initial post .",
"Question : I have just started using LinemanJS and I am using the lineman-angular-template as my starter project . I have converted all the default .js files into .coffee and everything worked as expected . Then I converted all the .html files into .jade but then everything broke . My generated jade file can be seen here - http : pastebin.com UAGd4ZAW .. . .. . Now I have no clue on how to use the generated jade.js file in my html . Just loading the page itself nothing loads . I guess the templates are not found . I tried to add the js file to the index.html but that didn t work either . In both cases the browser inspector just hands and chrome crashes . Comment : Why don t you accept the following answer .. . Answer : Sorry for Necromancing but if I had found that answer here - I would saved some time . I understand it s yours github repo : https : github.com ksprashu lineman-jade-template .. . .. . If I understand correctly this comment : https : github.com linemanjs lineman issues 83 issuecomment-20059462 .. . .. . Yours route in routes.js should looks like this :",
"Question : Recently I came across a code chunck where JST is added before the template in angular - .. . .. . Example - .. . .. . routeProvider .when login template : JST app templates login controller : LoginController .. . .. . Previously I do like this - .. . .. . routeProvider .when login template : app templates login controller : LoginController .. . .. . what is this JST in angular template means also the difference between the two styles if any FYI - Its a code in app made from linemanjs . Comment : I don t think it s an angular feature . Isn t JST declared somewhere Or is your script maybe preprocessed and it s some kind of macro Comment : If it s a SailsJS app then it ll support JST see my answer below .. . Answer : It possibly could be an hash object in your code containing all keys and values as template urls for html files . Comment : I made a folder search with JST but no results I think I am using linemanjs installed globally -g so it must be there if not available locally and not explicitly an angular feature Comment : Yes it must be somewhere else . Its definitely not an angular feature",
"Question : I am creating a web app using linemanjs but when I am referencing vendor css and js files explicitly it wont reference to that location . Let me know what I am doing wrong with linemanjs . Simple things that I tried in my files is - .. . .. . link rel stylesheet href vendor css myvendor.css .. . .. . AND .. . .. . link rel stylesheet href css myvendor.css .. . .. . AND .. . .. . link rel stylesheet href css myvendor.css .. . .. . - myvendor.css is surely residing in the css folder under vendor . .. . Answer : Because not use this elementary tag of basic HTML : .. . .. . The path that have to include the tag if must be of the server or client . If the folder vendor contain all file html and folder that contain file that you using for site the path that I include in the tag before is correct . If still not include this file css the problem is the file not exist or declared wrong file name or structure css s wrong Is better that you publish file css but I think that you find the problem with Inspect Element or Firebug add-on for firefox and perhaps Chrome .. . .. . UPDATE : Ahhh if you using Jade adds type text css inside the you tag because is better that you define the type of file . Reading the documentation of JADE http : johnnyfee.github.io 2014 03 30 jade and on .. . .. . With Jade you can generate the tag including file css with : .. . .. . Or there is a other solution posted in other question on StavkoverFlow http : stackoverflow.com questions 10595593 how-to-include-a-css-file-in-jade-without-linking-it Comment : I am using Jade that is why the link elem is like link rel stylesheet href css myvendor.css Comment : I tried but adding type text css wont fixed the error though : Comment : What the error reporting Comment : PushState : css myvendor.css not found in home trialcode trialcode myapp generated - Serving up generated index.html Comment : It will add and compress into app.css if I declare it in cofig.js file but I need to refer them seperately",
"Question : Recently I came across a code chunck where JST is added before the template in angular - .. . .. . Example - .. . .. . routeProvider .when login template : JST app templates login controller : LoginController .. . .. . Previously I do like this - .. . .. . routeProvider .when login template : app templates login controller : LoginController .. . .. . what is this JST in angular template means also the difference between the two styles if any FYI - Its a code in app made from linemanjs . Comment : I don t think it s an angular feature . Isn t JST declared somewhere Or is your script maybe preprocessed and it s some kind of macro Comment : If it s a SailsJS app then it ll support JST see my answer below .. . Answer : Here s how I use JST templates in Angular : .. . .. . ...and here s my HTML : .. . .. . It s a simple and elegant way to use JST templates from inside AngularJS . PS It works well with SailsJS too .",
"Question : I always used to deploy even single websites with some kind of back-end service mostly PHP-framework . But ive been lately looking for a better alternative . I would like to use tools like Grunt Gulp with concat lint liveReload SASS .. . .. . And just upload generated html css js to server . But I would like to have some basic feature for including templates . So that in pages index.html I would have something like include partials header.html .. . .. . I have looked into lineman and yeoman but I couldnt find a solution which would include all the solutions I would like . Esecially the templating I really dont want to copy-paste any html . Is there something I missed Thanks for any insights . EDIT : Seems like adding Assemble to my yeoman project is way to go . Ill try this tomorow and let you know how it goes : Comment : Why you re not using a templating-engine like Smarty smarty.net http : www.smarty.net .. . Answer : In the end its been this awesome package that got me started . It has all that I needed and works nicely : .. . .. . https : github.com raulghm gulp-assemble .. . .. . I gotta learn grunt gulp someday to be able to create and set up things like this :",
"Question : Recently I came across a code chunck where JST is added before the template in angular - .. . .. . Example - .. . .. . routeProvider .when login template : JST app templates login controller : LoginController .. . .. . Previously I do like this - .. . .. . routeProvider .when login template : app templates login controller : LoginController .. . .. . what is this JST in angular template means also the difference between the two styles if any FYI - Its a code in app made from linemanjs . Comment : I don t think it s an angular feature . Isn t JST declared somewhere Or is your script maybe preprocessed and it s some kind of macro Comment : If it s a SailsJS app then it ll support JST see my answer below .. . Answer : Your application is using JST templates this page describes them http : ricostacruz.com backbone-patterns jst templates . JST is a hash that returns the template as a JavaScript function . Often this JST object hash of functions is created at build time and saved as a JavaScript file that is included somehow by the app . The input to the compiled JST object is a list of template .html files . Comment : Yes . See code.google.com p trimpath wiki JavaScriptTemplates https : code.google.com p trimpath wiki JavaScriptTemplates and stackoverflow.com questions 22080981 http : stackoverflow.com questions 22080981 loading-ng-include-partials-from-local-pre-loaded-jst-template-cache for more info on this .",
"Question : null .. . Answer : I already checked these links before posting my questions but none suffice to my case . Link 1 - Warning : missing space before text for line 20 of jade file http : stackoverflow.com q 25124621 1594368 .. . .. . Link 2 - Jade - missing space before text for line x of jade file http : stackoverflow.com q 22181813 1594368 .. . .. . Following is the error I am getting - .. . .. . Jade Template http : i.stack.imgur.com uJTTf.png .. . .. . Now my Jade.js file contains following text - http : pastebin.com gEytRnuE .. . .. . Issue is I don t have anything at line 2 still its prompting error at Line 2 . FYI - I am using LinemanJS for my front end management tasks for the app . Comment : In the Pastebin version there s a space on line 2 Since spaces can have special meaning in Jade that might be the problem .",
"Question : I want to add a grunt task specifically angular-template to my lineman application.js file . There is some documentation found here http : linemanjs.com and here http : blog.testdouble.com posts 2013-06-05-supporting-typescript-in-lineman.html . However it just tells me to add the grunt task to loadNpmTasks . The problem is that from a fresh project created using lineman my application.js file does not have a loadNpmTasks array nor do the comments point out where I should put it . Both examples I have found in the documentations do not show what the application.js file should look like in it s entirety . .. . Answer : The application.js file should look something like this obviously the src dest options are not configured correctly : .. . .. . Then to run the task :",
"Question : null .. . Answer : I have a project which is setup with lineman and uses maven for build configurations . A maven pom.xml file is used to configure the jenkins builds . This file lists the necessary tasks that need to be done in order to build the project . The lineman tasks are specified here as well . The command lineman grunt spec-e2e starts the protractor tests . This currently works on the jenkins server because it starts the webdriver and runs the tests . However all specs in the tests fail since browser.get myurl can t find anything since nothing is running . I tried to add lineman run as a task but this causes the jenkins-build to get stuck on the watch task . How can I get the project to run and therefore make it accessible for the protractor tests",
"Question : null .. . Answer : I m planning on building a web application with an EmberJS front-end that talks to a Flask-based RESTful API . I was originally excited to get going with lineman to help tackle the front-end but recently I ve been introduced to ember-cli . Ember-cli seems to be much more tightly integrated with EmberJS though it appears to be less fleshed out than lineman . Does anyone have experience with both lineman and ember-cli If so do you see a benefit of using one over another",
"Question : I am using : Firefox 30 selenium-server-standalone-2.43.1.jar Xvfb Ubuntu Headless Lineman grunt spec-e2e .. . .. . I am able to run Xvfb Firefox and lineman grunt spec-e2e with no errors . On all terminals I run export DISPLAY : 10 .. . .. . I run Xvfb : 10 -ac in one terminal with no issues I see : .. . .. . On a separate terminal I run firefox : .. . .. . Finally in lineman I run with a additional session of lineman run also : .. . .. . But the issue I am having is there is no output going to the terminal window that is running firefox . When I run the spec-e2e I do see the Xvfb terminal window have this output : .. . .. . But I do not see the output of the spec-e2e going to the firefox window . Can anyone help please .. . Answer : Must use selenium selenium-server-standalone-2.42.2.jar and not other versions .",
"Question : When I run lineman build it generates all the minified CSS and JS in the dist directory . I can t figure out how to make it copy those minified files into a different directory My Public Directory at path - . . lib app public . My Lineman configuration file looks like this . I know there is a copy : dist default task in Lineman but not sure how it works and can t understand it properly from the documentation at http : linemanjs.com .. . Answer : I solved this problem with Lineman s help : .. . .. . Wrote a custom task tasks dl-dev-copy.js to copy the files : .. . .. . module.exports function grunt .. . return grunt.registerTask dl-dev-copy Copy UI artifacts to wildfly deployment folder copy : dl-dev-copy .. . .. . .. . .. . Updated the application.js file the key part is important I was only able to figure it out after the Lineman folks helped me out : .. . .. . loadNpmTasks : lineman.config.application.loadNpmTasks.concat grunt-contrib-copy .. . copy : .. . dl-dev-copy : .. . files : .. . expand : true .. . cwd : generated .. . src : .. . dest : . . . . . . target iq .. . .. . .. . .. . watch : .. . target : .. . files : app spec spec-e2e .. . tasks : dl-dev-copy .. . .. . .. . appendTasks : .. . common : dl-dev-copy .. . .. . .. . .. . See below for the output of lineman run it is similar when a file is being watched changes and we I run lineman build : .. . .. . lineman run .. . Running common task .. . .. . .. . Running copy : dl-dev-copy copy task .. . Created 6 directories copied 23 files .. . .. . .. . Running watch task .. . Waiting.. .",
"Question : I have installed nodejs npm lineman jenkins and phantomjs on red hat . I am trying to run a jenkins job that just runs lineman spec-ci to run my test-em tests . When I run this command as the jenkins user on the terminal it runs . Unfortunately when I run this command as a job in jenkins it fails : .. . .. . node : error while loading shared-libraries : libhttp parser.so.2 : cannot open shared object file : No such file or directory .. . .. . This error comes up even if I try to run npm-install with the jenkins job . The jenkins service is running under the user jenkins and if I run whoami during the jenkins build it outputs jenkins . Any idea why I can run npm and lineman commands as the jenkins user but it fails when run as a job Comment : More information will probably be needed like your Jenkins config os version etc . Comment : Red hat Jenkins 1.609.3 npm 1.4.28 node v0.10.35 . The jenkins service is set up to run as the jenkins user . Nodejs and npm were compile but the paths have been added to the jenkins user path and I also added it to the path global variable in the jenkins application . .. . Answer : I ended up running printenv and found a variable associated with libraries . I added that variable to jenkins - configure - global properties .",
"Question : I built an Angular 1 application built using Linenanjs . I m in the process to migrate it to Angular 2 . I ve integrated Typescript and removed ng-app . The next step is to integrate the Angular 2 libraries and start the actual migration . Before I do I would like to see if anyone has done so and has recommendations recipes on best practices to integrate the Angular 2 modules into an Angular 1 application . .. . Answer : Introduction .. . .. . I started this journey with the intent to integrate the new NG2 with the existing NG1 build-process this seemed reasonable since my goal was to build an environment for the development of hybrid NG1 NG2 applications . There are fundamental differences between how NG1 and NG2 are built : .. . .. . TypeScript : NG2 added TypeScript to the existing JavaScript and DART language options . TypeScript is a huge improvement over JavaScript and I have no intention of using DART . Module Management : NG2 adopts ES5 module management and abandons NG1 own module management . Application and vendor files are now made available as modules which are loaded by the module manager I m using SystemJS but will soon upgrade to Webpack as needed by the application . Components : NG2 component architecture strongly suggests that all artifacts css html less png etc ought to be placed in the same module folder with the module manager with a little help from the developer taking on the role of loading these files as necessary . Approach .. . .. . Well into the process to build the NG1 NG2 integrated build environment I came to the conclusion that the correct course of action would be to build the NG2 environment to be completely separate from the NG1 environment but to co-exist . Once I reached this conclusion it became obvious that this was the correct approach since once we migrate all of our NG1 software to NG2 we want to also seamlessly remove all of the NG1 build artifacts and software which would be hard to do should the two be tightly intertwined . With this in mind the following changes were made : .. . .. . config files - Created definitions calling out the NG2 files the idea was that all NG2 tasks would be made to operate on these file definitions while avoiding the existing file definitions hence leaving the option to remove not used NG1 file definitions . config application - There are two fundamental set of changes : tasks - Again I strived to create tasks doing specific NG2 work . workflow - Here is the place where the NG1 and NG2 tasks were intermingled to coexist . files .. . .. . See below for my config files.js code and some ensuing comments : .. . .. . Notes : .. . .. . files.ng2 - is an obect containing all the NG2 related file definitions .. . files.ng2.libs - is an array including the source location of the support files non-application that need to be copied to the server target folder as indicated NG2 requires vendor modules to be available for loading by the module manager . files.ng2.css : defines the CSS fils to be watched for change note that I chose not to handle less files should you be interested in doing so use the pattern used to handle ts file . files.ng2.html : defines the html fils to be watched for change . files.ng2.generated : the target folder where to place files during development the copy : dl-deploy-dev task see the config application.js file is used to copy these files to my server wildfly target folder . files.ng2.dist : the target folder where to place files when running a buid . application .. . .. . See below for my config application.js code and some ensuing comments : .. . .. . Notes : .. . .. . copy : dl-deploy-dev : used to copy these files to my server wildfly target folder . copy : ng2-libs-to-target : used to copy 3rd party library files to my server wildfly target folder . Note that I chose not to copy them to the generated folder to avoid the expense of copying a huge number of files to the target folder every time a single simple application file changes . copy : ng2-css-files-to-generated : copies changed CSS files to the generated folder . copy : ng2-html-files-to-generated : copies changed html files to the generated folder . copy : ng2-files-to-generated : used to ensure that the transpiled ts files js map and their companions html css landed on the same folder . copy : ng2-ts-files-to-generated : : copies changed html files to the generated folder . copy : systemjs-to-generated : used to copy the system.config.js file to the generated folder . copy : ng2-libs-to-dist : used to copy 3rd party library files to dist folder . copy : systemjs-to-dist : used to copy the system.config.js file to the dist folder . ts : development : used to transpile changed ts files into the generated folder . ts : dist : used to transpile changed ts files into the dist folder . watch : systemjs-config-js : watches for changes in the system.config.js and executes copy : systemjs-to-generated when changes are detected . watch : ng2-css : watches for css files changes and executes copy : ng2-css-files-to-generated when changes are detected . watch : ng2-html : watches for html files changes and executes copy : ng2-css-files-to-generated when changes are detected . watch : ng2-ts : watches for ts files changes and executes ts : development when changes are detected . watch : target : watches for app files changes and executes copy : dl-deploy-dev when changes are detected . The workflow changes are self explanatory particularly in lieu of the task explanations above except for the dl-install-libs task used to replace the fetch task provided our Test Double friends its explanation is outside the scope of this document but feel free to ask in case you are interested .",
"Question : Following is the lineman - config file - http : pastebin.com ZuNzDY8S application file - http : pastebin.com rSPdeSME .. . .. . Now whenever I am running the command lineman run I am getting app.js vendor.js plugin.js js files into my generated folder as expected . So in the index.html file I am getting - .. . .. . Now few Files I do not want to minify and merged into one but the problem is can not refer the vendor files via - .. . .. . Which is also reasonable as the html is now in generated folder . So what do I need to do in my config file to avoid few file compressions and how to reference those vendor files in my layout template files .. . Answer : I was with the same problem . I had to leave modernizr.js out of app.js . There is a special folder called static . One under app and another one under vendor . Everything you put there gets untouched . I just created a folder vendor static js and put modernizr.js there . In my page just reference it as js modernizr.js . I hope this helps you . Guilherme 6qat . Comment : Thx for sharing your views +1",
"Question : null .. . Answer : I want to use angular-spinner https : github.com urish angular-spinner in my project lineman + angularjs . My bower.json : .. . .. . files.js : .. . .. . And then .. . .. . When I remove the angular-spinner : 0.5.0 line from bower.json the build is successful and the spin.js catalog is present in my project . What am I doing wrong Comment : What bower version Cannot reproduce with bower 1.3.5 Comment : @TimCastelijns Seems a bower update helped . Thanks Comment : You are welcome sir",
"Question : I am following David Mosher s excellent frontend workflow tutorial building an app with lineman.js an angularjs frontend and a laravel backend http : www.youtube.com watch v fSAgFxjFSqY . I am manually bootstrapping the app so that I can fetch the csrf token from the laravel backend and inject it as a constant before bootstrapping the angularjs app . My bootstrap.js file : .. . .. . I am getting the csrf token from laravel in my laravel routes.php file like this : .. . .. . I can see in Chrome Dev that I am fetching the csrf token from the backend : .. . .. . Problem : I cannot find the CSRF TOKEN constant in my angular application . Question : Is there an error in my definition of the CSRF TOKEN constant or is there any other error in my bootstrapping code Any help would be much appreciated . Comment : perhaps the following links may be of help github.com nervgh angular-file-upload issues 40 https : github.com nervgh angular-file-upload issues 40 stackoverflow.com a 20446415 2150286 http : stackoverflow.com a 20446415 2150286 I ll be kicking off a new project with the same setup in about an hour - hopefully this question will get some attention resolution soon . Let us know if you got any progress on your own . .. . Answer : The CSRF TOKEN is stored in data.csrf token not csrf token . I replaced .. . .. . with .. . .. . in the bootstrap.js file . Now it works ."
]
} | [
"yes-answer-long",
"yes-answer-short"
] | web | UNK_RELATION |
ckeditor.net@wysiwyg@94 | ckeditor.net -- ckeditor.net is the .net component of ckeditor - is a javascript based tag : @placeholder editor created for use within web pages . | {
"confidence": [
57.6046142578125,
54.0853385925293,
53.355499267578125,
51.68790054321289,
46.53025817871094,
44.27696228027344,
43.66073989868164,
42.52571487426758,
38.88286209106445,
34.779640197753906,
33.46464157104492,
32.53307342529297,
30.46963882446289,
30.316009521484375,
29.37264633178711,
29.103954315185547,
28.842761993408203,
28.08465576171875,
28.038372039794922,
27.806568145751953,
26.983715057373047,
26.97815704345703,
26.87103271484375,
26.492685317993164,
26.492685317993164,
26.456462860107422,
26.35457992553711,
26.33340835571289,
25.955888748168945,
25.955888748168945,
25.870098114013672,
25.760223388671875,
25.382843017578125,
25.226909637451172,
25.226909637451172,
24.845623016357422,
24.845623016357422,
24.476409912109375,
24.38077163696289,
24.32537841796875,
24.32537841796875,
24.204641342163086,
24.12891960144043,
24.094261169433594,
23.972148895263672,
23.7650089263916,
23.698902130126953,
23.65646743774414,
23.565067291259766,
23.50873565673828,
23.45889663696289,
23.45889663696289,
23.360437393188477,
23.224445343017578,
23.186756134033203,
23.082839965820312,
22.788352966308594,
22.756126403808594,
22.725013732910156,
22.61480712890625,
22.57413101196289,
22.57413101196289,
22.57413101196289,
22.57413101196289,
22.57413101196289,
22.57413101196289,
22.389747619628906,
22.346948623657227,
22.314655303955078,
22.068912506103516,
21.98532485961914,
21.947654724121094,
21.592138290405273,
21.412342071533203,
21.354141235351562,
21.354141235351562,
21.354141235351562,
21.354141235351562,
21.354141235351562,
21.354141235351562,
21.354141235351562,
21.354141235351562,
21.308155059814453,
21.308155059814453,
21.308155059814453,
21.308155059814453,
21.308155059814453,
21.308155059814453,
21.308155059814453,
21.308155059814453,
21.308155059814453,
21.308155059814453,
21.308155059814453,
21.308155059814453,
21.037105560302734,
20.785865783691406,
20.784870147705078,
20.638500213623047,
20.638500213623047,
20.638500213623047
],
"content": [
"Note : This uses CKEditor.NET not the jQuery CKEditor version .",
"Similarly I have tried making changes to ckeditor CKEditor.NET CKEditorConfig.cs e.g .",
"Here are the steps needed to manually update CKEditor version inside the v3.6.6.2 ASP.NET control the latest ASP.NET version : .. . .. . Download CKEditor 3.6.6.2 for ASP.NET http : download.cksource.com CKEditor CKEditor.NET CKEditor.NET 203.6.6.2 ckeditor aspnet 3.6.6.2.zip and unpack it .",
"it appears that ckeditor.net is renaming the id .",
"I am working in email CMS using ckeditor.net .",
"Could not load file or assembly CKEditor.NET or one of its dependencies .",
"CKeditor.net was workin gfine on .net framework 4.0 but it breaks after ugrading to 4.5 framework .",
"i have used ckeditor.net dll in my asp.net project .",
"Please check your project references properties CKEditor.NET Local Copy property true .",
"CKEditor is essentially a java-script based editor - so all .NET control would be doing is to generate appropriate script to initialize CKEditor js object .",
"Edit : .. . .. . it appears that ckeditor.net is renaming the id .. . .. . from the link http : ckeditor.com forums Support CKEditor-replace-fails-.Net-FormView in the comment bellow .. . .. . You can get around the problem of controls being renamed by finding the ClientID of the control .",
"CKEditor is HTML text-editor not XML editor .",
"You are of course free to replace the CKEditor library the editor itself in the existing ASP.NET integration with the latest version of CKEditor 4.x .",
"I would also strongly suggest using the latest version of CKEditor 4.5.9 at the time of writing and just adding the CKEditor script to your pages along with a textbox to hold the editor content .",
"It is possible to manually update the editor version used with the .NET control to the latest v4 version however this will not give you all capabilities of CKEditor 4 because e.g .",
"@E Ludema there can be issue with CKEditor .NET wrapper .",
"on ckEditor page theres only mentioned that .net 2.0+ is supported .",
"Your CKEditor is presumably running on a web page with a http : address .",
"Some of those dynamically loaded UserControls placed in the PlaceHolder mentioned above contain a CKEditor control for web-based HTML editing .",
"In the master page added the following lines to add reference of ckeditor .. . .. . script src ckeditor ckeditor.js type text javascript script .. . script src ckeditor adapters jquery.js type text javascript script .. . script src ckeditor ckeditor custom.js type text javascript script .. . .. . .. . 4 .",
"but now the clients require to use ckeditor .",
"CK editor assembly registeration is causing error .. . .. . How to get CKeditor working on 4.5 framework",
"Last but not least CKEditor is a pure JavaScript application so in most cases you can probably just use the standard installation package and use the JavaScript integration instead of the ASP.NET control .",
"Go to your-ckeditor-aspnet-3.6.6.2-folder Samples and delete the ckeditor directory .",
"Next copy the ckeditor directory to your-ckeditor-aspnet-3.6.6.2-folder Samples .",
"Is there any reason you use CKEditor control instead of just invoking CKEDITOR.replace in JavaScript",
"I want to know the coordinates of the mouse pointer when I r-click on CKEditor .. . .. . I added a few items to the context menu of CKEditor .",
"I have integrated ckeditor in my asp.net and vb.net web application .",
"The ckeditor build is 4.4.7 .",
"Ckeditor version is for AspNet .",
"Nothing I do within ckeditor config.js makes any difference eg .. . .. . The application seems to ignore it completely .",
"The situation with using CKEditor in the ASP.NET environment looks as follows : .. . .. . The official CKEditor for ASP.NET control has not been updated to CKEditor v4 yet .",
"We import the CKEditor javascript in the head of our master page and then the following in the view when CKEditor is used : .. . .. . That should convert the text area into a CKEditor instance .",
"can anyone tell me how to fix that problem or should i change ckeditor to any other editor please help .",
"I m using Ckeditor HTML text box editor http : ckeditor.com in my system .",
"Download the FULL package for CKEditor 4.4.7 http : ckeditor.com download and extract it to the ckeditor directory .",
"Pretty new to CKeditor implementation .. . .. . We need to set the Marching Ants CSS style for the Selected HTML element in the CKEditor text .",
"in one of my pages with master page i have used ckeditor : .. . .. . Then i have set on all child of NewsDetail div to disabled by this code in jquery : .. . .. . by this code ckeditor is disabled too .",
"ckeditor.com forums Support http : ckeditor.com forums Support CKEditor-replace-fails-.Net-FormView",
"for example the HTML output in CKEditor is .. . .. . but what I need is",
"The CKEditor 3 line only gets security updates .",
"This is a known behavior in CKEditor .",
"I have to use ckeditor inside a data object and using the plain js version which might be easier wont do because the asp.net databinding does not work within an html textarea .",
"If you re using ASP.NET WebForms not MVC and you re willing to use an older version of CKEditor 3.x from 2014 then you can download CKEditor for ASP.NET from the main download page http : ckeditor.com download .",
"You ll need to track the mouse yourself as ckeditor doesn t give you the mouse event .",
"My main idea is to write javascript onchange method for that editor .",
"I am looking for CKEditor for ASP.NET but unable to use it because the dll library files are not provided in the setups available .",
"I need to retrieve the plain text value of the ckeditor html server-side from ckeditor 3.x asp.net control http : docs.cksource.com CKEditor 3.x Developers Guide ASP.NET Integration Beginners from asp.net web forms .",
"We are using CKEditor http : ckeditor.com CKEditor 3.6.4 for ASP.NET on our intranet site developed in ASP.NET and hosted on IIS 7.5 .. . .. . The editor has to support full HTML including html and body tags .",
"Spell Check is not working in my CKEditor .",
"Below are the steps to add water mark in CKEditor .. . .. . Generally when you set default text in Ck Editor through java script on page load .",
"The Setting CKEditor Configuration http : docs.ckeditor.com guide dev configuration article which descibes how and where you can provide the editor configuration .",
"Adding this to the config.js file does not enable the plugin its folder is correctly copied to the plugins folder .. . .. . again I am not sure if I should be working to get this going within ckeditor config.js or in ckeditor config.js .. . .. . Any help would be appreciated .",
"And I use CKEditor to create blog posts .",
"I have a ckeditor when i click source to wyswyg from ckeditor toolbar it skips span tag my code is original code .. . .. . .. . i see this code when clicking source button .. . .. . i have a situation where i cannot use asp.net server controls i saving page in database .",
"I have some text and images in ckeditor designer now i can allow users to change text and move it around the editor but i don t want to allow users to perform cut by ctrl + x or by rightclick- cut or delete operations on images present in ckeditor however they can move images in ckeditor .",
"CKEditor can be Enabled in Unsupported Environments .. . .. . It will work on ckeditor version 4.X it gives option to enable compatibility .. . .. . So download latest version of ckeditor http : ckeditor.com download and add this script .. . .. . .. . .. . Source Website http : docs.ckeditor.com guide dev unsupported environments",
"I just downloaded the Free Trial of latest CKFinder v2.4.2 for ASP.Net and added the ckfinder folder in my ASP.Net webforms project running on .Net v4.0 I was able to run the standalone.aspx page present in samples aspx folder but when trying to run the ckeditor.aspx page it throws me this error - .. . .. . Could not load file or assembly CKEditor.NET or one of its dependencies .",
"Based on the comments you ve made you never retrieve the Value from the Textbox CKEditor .",
"Please check my answer here http : stackoverflow.com questions 30029072 formatting-issues-in-asp-net-integrated-ckeditor 30075453 30075453 I tried to explain the current status of the ASP.NET control .",
".. . .. . Some versions of CKEditor have issues with SSL .",
"I have copied the ckeditor folder in root directory .",
"I am using latest version of ckeditor 4.4.1 .",
"Does anyone know how to get to this with the ckeditor",
"After using FreeTextBox for years we are moving to CKEditor .",
"My CKEditor version is 4.5.6 Any idea",
"Using CKEditor in the following way .. . .. . HTML Part .. . .. . Server Side .. . .. . So now when we select the text in CKEDITOR we need to highlight that p element with Marching Ants CSS style .",
"Then assign to ControlID the name of the corresponding CKEditor .",
"Sorry .. . test site was missing bin files and public site Master had an error sometimes team updates make things confusing .. . .. . for information - I copied bins to test site and fixed public site master prove that CKEditor .net is working correctly on .net-4.5 framework .",
"Editor is Displaying Tags as well .",
"What does work in Word is : .. . .. . But I am finding that my CKEditor setup strips this out each time you save data in the CKEditor box .",
"When I use the CKeditor Page break button it produces .. . .. . which is retained however it is not rendered in Word .",
"I use CKEditor to enter rich text descriptions in different views .",
"I m trying to integrate CKEditor with a details View .",
"I d like to ask if there is a way to disable indented format of HTML source code in CKEditor .",
"I m using asp.net integrated ckeditor and having issues with content formatting like Bold Italic Underline .",
"Please note in particular that in CKEditor 4.1 we have introduced Advanced Content Filter http : docs.ckeditor.com guide dev acf ACF .",
"I m looking at the download page for ckeditor and I see that the ASP.NET control was last released in 2014 .",
"I d appreciate help in understanding how to configure ckeditor in its asp.net control variant .",
"This may not help but in c with CKEditor 3.6.6 in Page Load the line .. . .. . does exactly as you are after",
"please rovider more details about the error messages while it does not work as well as CKEditor link",
"Scroll down until you see the CKEditor 3.6.6.2 for ASP.NET heading and click Download now .",
"Do you know how to add watermark in CKEditor visual word processor",
"I want the behavior like this : When the CKEditor is loaded it has text by default .",
"This is result-of a bug in CKEditor as documented here http : dev.ckeditor.com ticket 6497 .",
"So I am using CKEditor 4.3.2 in my ASP.NET application .",
"You do know I am talking about CKEditor not CKFinder right",
"To integrate ckeditor I have done the following .. . .. . i am using ckeditor 4.4.1 .",
"Downloaded the ckeditor from the link http : ckeditor.com download .. . .. . 2 .",
"See the following resources : .. . .. . The CKEditor CDN site http : cdn.ckeditor.com itself",
"And please finally read what s written on CKEditor CDN site http : cdn.ckeditor.com .",
"It would require some very complex changes to CKEditor to parse and collapse the tags .",
"Currently the site uses the asp.net version of the CKEditor control with no problems in Safari .",
"The current version of CKEditor control for ASP.NET is 3.6.6.2 which also is quite old .",
"i have used ckeditor in my page : .. . .. . when i click on grid row it uses ajax post to get value for setting in ckeditor : .. . .. . but after getting data result.d.NewsDescription has html data but it isn t set to my ckeditor .",
"Everything is the same except the Notes field that i wanted to use CKEditor with it to be able to insert hyperlinks in the database .",
"CKEditor is an Open Source project so if you or your organization feel like you could benefit from an updated CKEditor for ASP.NET control and be willing to help either through collaboration or sponsorship it would be most welcome if you got in touch with us http : cksource.com contact at CKSource .",
"The UserControl itself loads nicely - state is persisted but the CKEditor control never shows .. . on creation of the UserControl I can set a watch and the CKEditor instance isn t null but it just doesn t show up in the rendered HTML .",
"After trying some things out it looks like this isn t just a problem with CKEditor - I tried using one of my own Navigation UserControl mentioned above instead of the CKEditor control and it has the same problem of not appearing .",
"I read this post http : stackoverflow.com questions 10224075 insert-text-at-the-cursor-position-to-a-ckeditor-using-jquery on this and am trying to simply add text via jQuery into my CKEditor ."
]
} | {
"confidence": [
80.1242904663086,
73.74088287353516,
71.66468811035156,
62.43364715576172,
58.01554870605469,
55.563045501708984,
42.92998504638672,
41.45018768310547,
40.71263885498047,
37.506919860839844,
36.21954345703125,
35.74382019042969,
35.2956657409668,
34.096893310546875,
33.62363815307617,
33.360328674316406,
33.02232360839844,
32.832340240478516,
32.45893478393555,
31.896228790283203
],
"content": [
"Question : CKeditor.net was workin gfine on .net framework 4.0 but it breaks after ugrading to 4.5 framework . on ckEditor page theres only mentioned that .net 2.0+ is supported . Could not load file or assembly CKEditor.NET or one of its dependencies . The system cannot find the file specified . CK editor assembly registeration is causing error .. . .. . How to get CKeditor working on 4.5 framework Comment : please rovider more details about the error messages while it does not work as well as CKEditor link Comment : Please check your project references properties CKEditor.NET Local Copy property true . .. . Answer : Sorry .. . test site was missing bin files and public site Master had an error sometimes team updates make things confusing .. . .. . for information - I copied bins to test site and fixed public site master prove that CKEditor .net is working correctly on .net-4.5 framework .",
"Question : I read this post http : stackoverflow.com questions 10224075 insert-text-at-the-cursor-position-to-a-ckeditor-using-jquery on this and am trying to simply add text via jQuery into my CKEditor . I am using this code but it gives the following error : .. . .. . Uncaught TypeError : Cannot call method insertText of undefined .. . .. . How can I simply add the text test to my CKEditor Note : This uses CKEditor.NET not the jQuery CKEditor version . .. . Answer : Have you called CKEDITOR.replace txtDESCRIPTION yet if so then oEditor.setData test should do the trick . Edit : .. . .. . it appears that ckeditor.net is renaming the id .. . .. . from the link http : ckeditor.com forums Support CKEditor-replace-fails-.Net-FormView in the comment bellow .. . .. . You can get around the problem of controls being renamed by finding the ClientID of the control . I put code in the codebehind to find the control s ID and set Javascript for it . That way the code is not affected by rearranging controls on the form . If there is more than one editor instance on a form simply call InsertEditorJS for each one . .. . Here is the codebehind : Comment : When I call that it says Uncaught CKEDITOR.editor.replace The element with id or name txtDESCRIPTION was not found . Comment : it appears that ckeditor.net is renaming the id . check this post out . ckeditor.com forums Support http : ckeditor.com forums Support CKEditor-replace-fails-.Net-FormView Comment : I found in the code that .replace is already being called . I am trying to use the ID that it uses generated by .NET CKEDITOR.instances . ctl0 cntBody ctlEditView txtDESCRIPTION.insertText some text here but it still gives me an error Uncaught TypeError : Cannot call method insertText of undefined Comment : try putting a breakpoint before you call to insert text and see what is inside of instances Comment : It doesn t not tell me anything is inside of it . But the editor works so I know the generated code must be working : CKEditor Init.push function if typeof CKEDITOR.instances ctl0 cntBody ctlEditView txtDESCRIPTION undefined document.getElementById ctl0 cntBody ctlEditView txtDESCRIPTION return CKEDITOR.replace ctl0 cntBody ctlEditView txtDESCRIPTION filebrowser BrowseUrl : . . Images Popup.aspx filebrowserUploadUrl : . . ckeditor upload.aspx height : 400 htmlEncodeOutput : true language : en-us toolbar : SplendidCRM",
"Question : I m using asp.net integrated ckeditor and having issues with content formatting like Bold Italic Underline . We had to press multiple times . Any work around for this Using 3.6.6.2 version .. . Answer : The situation with using CKEditor in the ASP.NET environment looks as follows : .. . .. . The official CKEditor for ASP.NET control has not been updated to CKEditor v4 yet . It is possible to manually update the editor version used with the .NET control to the latest v4 version however this will not give you all capabilities of CKEditor 4 because e.g . you will only have access to configuration options existing in the v3 . I will list the steps required to perform such update by yourself below . The CKEditor 3 line only gets security updates . No new features or code backports are done for this version and all development now happens in the v4 line . You are of course free to replace the CKEditor library the editor itself in the existing ASP.NET integration with the latest version of CKEditor 4.x . Depending on what you need it may fit your needs . That will fix e.g . the various IE problems . From what I understand inline editing won t work though . Here are the steps needed to manually update CKEditor version inside the v3.6.6.2 ASP.NET control the latest ASP.NET version : .. . .. . Download CKEditor 3.6.6.2 for ASP.NET http : download.cksource.com CKEditor CKEditor.NET CKEditor.NET 203.6.6.2 ckeditor aspnet 3.6.6.2.zip and unpack it . Go to your-ckeditor-aspnet-3.6.6.2-folder Samples and delete the ckeditor directory . Download the FULL package for CKEditor 4.4.7 http : ckeditor.com download and extract it to the ckeditor directory . Next copy the ckeditor directory to your-ckeditor-aspnet-3.6.6.2-folder Samples . Please note in particular that in CKEditor 4.1 we have introduced Advanced Content Filter http : docs.ckeditor.com guide dev acf ACF . If you plan to use the content filter you would have to use config.js to change ACF settings as it can t be done from the control level . Last but not least CKEditor is a pure JavaScript application so in most cases you can probably just use the standard installation package and use the JavaScript integration instead of the ASP.NET control .",
"Question : i have used ckeditor.net dll in my asp.net project . in one of my pages with master page i have used ckeditor : .. . .. . Then i have set on all child of NewsDetail div to disabled by this code in jquery : .. . .. . by this code ckeditor is disabled too . my problem is that when i try to remove disabled attribute by below code ckeditor does not enabled again : .. . .. . how can i enable it .. . Answer : If you re using jQuery 1.6+ the it would be better to use .prop http : api.jquery.com prop and .removeProp http : api.jquery.com removeprop . . Instead of removing the attribute try changing the attribute value like",
"Question : I read this post http : stackoverflow.com questions 10224075 insert-text-at-the-cursor-position-to-a-ckeditor-using-jquery on this and am trying to simply add text via jQuery into my CKEditor . I am using this code but it gives the following error : .. . .. . Uncaught TypeError : Cannot call method insertText of undefined .. . .. . How can I simply add the text test to my CKEditor Note : This uses CKEditor.NET not the jQuery CKEditor version . .. . Answer : This is result-of a bug in CKEditor as documented here http : dev.ckeditor.com ticket 6497 . As a workaround I simply append text on button click like so :",
"Question : I d appreciate help in understanding how to configure ckeditor in its asp.net control variant . I have to use ckeditor inside a data object and using the plain js version which might be easier wont do because the asp.net databinding does not work within an html textarea . The aspnet control functions correctly it updates the db when the dataobjet is refreshed and I can adjust the number of buttons and arrangement of its toolbars in .net at the databinding event of the enclosing dataobject . But I cannot figure out how to configure the contents of the dropdowns . I want to restrict the Format list to Normal Heading 1 and Heading 2 . Nothing I do within ckeditor config.js makes any difference eg .. . .. . The application seems to ignore it completely . If I try to do this in code-behind I am in VB together with my other functioning lines within the enclosing object s databinding event as .. . .. . this does not work for syntactical reasons that I don t understand even though the example from the asp.net config page in the support doc .. . .. . works fine . Similarly I have tried making changes to ckeditor CKEditor.NET CKEditorConfig.cs e.g . GlobalConfigObj.format tags p h1 h2 h3 .. . .. . but this has no effect . The Format dropdown always shows everything from p to pre . I also cannot add a plugin . Adding this to the config.js file does not enable the plugin its folder is correctly copied to the plugins folder .. . .. . again I am not sure if I should be working to get this going within ckeditor config.js or in ckeditor config.js .. . .. . Any help would be appreciated . .. . Answer : This may not help but in c with CKEditor 3.6.6 in Page Load the line .. . .. . does exactly as you are after",
"Question : I just downloaded the Free Trial of latest CKFinder v2.4.2 for ASP.Net and added the ckfinder folder in my ASP.Net webforms project running on .Net v4.0 I was able to run the standalone.aspx page present in samples aspx folder but when trying to run the ckeditor.aspx page it throws me this error - .. . .. . Could not load file or assembly CKEditor.NET or one of its dependencies . The system cannot find the file specified . .. . .. . I have added references to CKfinder.dll to my project and double checked the existence of CKFinder.dll file in my bin folder . I have read the documentation repeated times but could not find a solution to this problem . In ckeditor.aspx page it says - .. . .. . This is the ASP.NET connector for CKFinder . .. . You must copy the CKFinder.Connector.dll file to your bin directory or .. . make a reference to it in your Visual Studio project . but I could not find any dll named CKFinder.Connector.dll file in the downloaded folder . Attached is a screenshot showing how the ckfinder and ckeditor folders sit in my project . Any help Capture.png http : i.stack.imgur.com BTg86.png Comment : Maybe this post can help : forums.asp.net t http : forums.asp.net t 1909728.aspx Could+not+load+type+CKFinder+Connector+Connector+ Comment : @Greenonion the post says make sure that the folder ckfinder is configured as an application I am trying to execute it from VS inside a large web application what should I do .. . Answer : I ve added original source of CKFinder class-library in my project and referred the dll .",
"Question : I am working in email CMS using ckeditor.net . At runtime user can change the body of email I want to restrict user deleting all special words starting with @@ . Here is example- .. . .. . I don t want user to delete @@comments word and all @@ characters in other email templates . Can you give any code in JavaScript At run time I replace @@ words with some paragraph . Comment : I m not sure this is possible try to use several text areas and readonly label @@Comments between them and use appropriate CSS classes so it would look like 1 textbox . Comment : well there must be some way to do that i mean when you can catch keydown and mouse click event then why not check there . Just need some more help .. . Answer : I haven t tested this code just free-formed it into this response but here s what I d do . On the keydown method of the text input you need to listen for the backspace key http : stackoverflow.com questions 9906885 detect-backspace-and-del-on-input-event : .. . .. . References .. . .. . Detect Backspace http : stackoverflow.com questions 9906885 detect-backspace-and-del-on-input-event .. . .. . Get Caret Position http : stackoverflow.com questions 4928586 get-caret-position-in-html-input .. . .. . Cancel the keydown event http : stackoverflow.com questions 3036243 cancel-the-keydown-in-html",
"Question : null .. . Answer : I ve come up with a strange unelegant workaround for this but here s the original question.. . final musings after the break : .. . .. . .. . .. . It s been a while since I ve posted on stackoverflow but this has always been the best place for me to dump my programmings woes . Here s my issue only the necessary info : .. . .. . I have an asp.net web app . In the web app I have a main.aspx page . The main.aspx file consists of two main parts : .. . .. . A custom UserControl for navigation which is included in the markup ie not dynamically loaded - no problems here . A PlaceHolder control which is used to dynamically add a UserControl in the code-behind dependent on what is clicked in the navigation control . Note that this PlaceHolder is inside an UpdatePanel.. . These UserControls load fine and the state is persisted finally - no problems here . Now - here s the problem .. . Some of those dynamically loaded UserControls placed in the PlaceHolder mentioned above contain a CKEditor control for web-based HTML editing . The UserControl itself loads nicely - state is persisted but the CKEditor control never shows .. . on creation of the UserControl I can set a watch and the CKEditor instance isn t null but it just doesn t show up in the rendered HTML . If I move it in or out of UpdatePanels or anywhere within that dynamically-loaded UserControl it s a no go . If however I take the CKEditor Control out of the UserControl and place it in any other non-dynamically-loaded control anywhere else in the web app it shows up fine . After trying some things out it looks like this isn t just a problem with CKEditor - I tried using one of my own Navigation UserControl mentioned above instead of the CKEditor control and it has the same problem of not appearing . Summary : Custom controls included in a dynamically loaded UserControl don t show up . Anybody have any suggestions or wisdom to impart Being relatively new to ASP.NET I assume I m missing something obvious . Let me know if you d like to see some specific code . .. . .. . It turns out that if the first dynamic UserControl that is loaded contains a CKEditor then it works on all subsequent dynamic UserControls that get swapped in . If the first one loaded in doesn t have it it doesn t pull up on the following ones - also the IDs need to be the same across the different controls that use it . This all seems very strange to me - the workaround works fine it just seems very unintuitive - is it something to do with the location in the page s life cycle that the CKEditor is created or some ViewState thing Either way it s working for now and I can move on . I remember now why I was more comfortable with non-web development Comment : I thought that maybe it was an issue of having a UserControl within a UserControl but that works fine . Stuck with dynamically-loaded-UserControls not displaying child UserControls . Comment : @E Ludema there can be issue with CKEditor .NET wrapper . CKEditor is essentially a java-script based editor - so all .NET control would be doing is to generate appropriate script to initialize CKEditor js object . Now script must be registered via ScriptManager when using with UpdatePanel and that can be the issue here .",
"Question : I want to disable ACF on ckeditor and as many post and documentation suggest i am setting allowedcontent to true by below ways still its filtering out my html . I trying to insert my custom tag as below in my plugin code . .. . .. . insertHtml just inserts the Sample Content and filters custom tag CP : CP B . Replacing tag CP : CP B with any known tag like strong works fine . Am I configuring it correctly I am using latest version of ckeditor 4.4.1 . Also tried version 4.4.0 and 4.2 .. . .. . Thanks .. . Answer : CKEditor is HTML text-editor not XML editor . Don t expect it to support all XML features like namespaces . Use data-foo attributes to distinguish custom stuff from standard data . Comment : it is allowing in version before ACF introduced . Also it was allowing in FCKeditor . I was able to inject custom tag earlier . Just version with ACF is not allowing .",
"Question : I am looking for CKEditor for ASP.NET but unable to use it because the dll library files are not provided in the setups available . Please guide how to include the dll library and provide any link where i can get those libraries . Comment : The toll is available from ckeditor.com download http : ckeditor.com download and I would be surprised if they did not provide a full product . Maybe you could describe the issues you re having in more detail .. . Answer : If you re using ASP.NET WebForms not MVC and you re willing to use an older version of CKEditor 3.x from 2014 then you can download CKEditor for ASP.NET from the main download page http : ckeditor.com download . Scroll down until you see the CKEditor 3.6.6.2 for ASP.NET heading and click Download now . You ll get a zip file with a sample project including the DLL in debug and release versions . I just downloaded it now and it contains the DLLs . Complete setup instructions are available here http : docs.cksource.com CKEditor 3.x Developers Guide ASP.NET Integration Advanced . However if you re not using WebForms this will not be of any use to you . I would also strongly suggest using the latest version of CKEditor 4.5.9 at the time of writing and just adding the CKEditor script to your pages along with a textbox to hold the editor content .",
"Question : I have a ckeditor when i click source to wyswyg from ckeditor toolbar it skips span tag my code is original code .. . .. . .. . i see this code when clicking source button .. . .. . i have a situation where i cannot use asp.net server controls i saving page in database . can anyone tell me how to fix that problem or should i change ckeditor to any other editor please help . .. . Answer : This is a known behavior in CKEditor . That s how it s supposed to work . There are a few workarounds explained here https : dev.ckeditor.com ticket 9004 .",
"Question : I am using ck-editor 3.6.6.1 on a MVC project and I noticed when testing on Phone android windows that editor does not loading text properly . Editor is Displaying Tags as well . But when I tested in system it is working very much fine with all the browsers.Just wondering why it is not working in phone browsers . Please help me in this issue . Thanks in Advance Comment : Have you tried to upgrade to 4.x and check with that There has been major improvements . Browser support issues can be reported at dev.ckeditor.com http : dev.ckeditor.com but I don t know if they still accept tickets for 3.6.6.1 . The current v4 browser compatability can be seen at docs.ckeditor.com guide dev browsers http : docs.ckeditor.com guide dev browsers Comment : Yes I have tried with higher version but it has some other issue ex : a tag is not recognized so i switched to the old version . .. . Answer : CKEditor can be Enabled in Unsupported Environments .. . .. . It will work on ckeditor version 4.X it gives option to enable compatibility .. . .. . So download latest version of ckeditor http : ckeditor.com download and add this script .. . .. . .. . .. . Source Website http : docs.ckeditor.com guide dev unsupported environments",
"Question : I have integrated ckeditor in my asp.net and vb.net web application . previously This web appilication was using bootstrap-wysihtml5 . but now the clients require to use ckeditor . To integrate ckeditor I have done the following .. . .. . i am using ckeditor 4.4.1 . I have copied the ckeditor folder in root directory . and linked it in the master page . like the following . i have not changed the header of the content page . it is like the following .. . .. . and finally the text area code in the contentpage .. . .. . The ckeditor toolbar is showing on the textarea.But website can t recognize the value that is written in the ckeditor field nor does it save those value in the database . Even when I submit the form after writting on the text area it is not allowing me to submit form as the description field have to have some text . But I actually wriiten in the textarea or copy-paste from wordfile . but it just doesnot gets any value . Please help me with code .. . Answer : I found the answer . And I think I have to share it in case someone else faces the same problem . Here are the steps I followed . 1 . Downloaded the ckeditor from the link http : ckeditor.com download .. . .. . 2 . Copied the whole folder under project folder . 3 . In the master page added the following lines to add reference of ckeditor .. . .. . script src ckeditor ckeditor.js type text javascript script .. . script src ckeditor adapters jquery.js type text javascript script .. . script src ckeditor ckeditor custom.js type text javascript script .. . .. . .. . 4 . Changed the class for the specific textarea .. . .. . textarea runat server id txtDescription name txtDescription class ckeditor style width : 98 height : 250px textarea .. . .. . .. . 5 . Added following javascript function at the bottom of the content page .. . .. . + btnSave.ClientID .mousedown function .. . for var i in CKEDITOR.instances .. . CKEDITOR.instances i .updateElement .. . .. . .. . .. . .. . thats it . here the btn.save is the button which submits the data .. . .. . Thanks Comment : thanks it worked :",
"Question : I use CKEditor to enter rich text descriptions in different views . My ckeditor tags looks like .. . .. . Let me note down the issues am facing : .. . .. . Even though my toolbar is basic am getting full option toolbar for editor . In edit view the description is to be there in the ckeditor as its text . How can this be done . The textbox for Instruction name is given as Html.TextBoxFor m m.InstructionName new @class formstyle which shows the InstructionName in edit view . Which works fine . I want the same with InstructionDesc which is a ckeditor . I tried .. . .. . but this is throwing error : .. . .. . An error occurred during the parsing of a resource required to service this request . Please review the following specific parse-error details and modify your source file appropriately . Parser Error Message : Server tags cannot contain .. . constructs . Please help me solve these issues . Thanks in advance . .. . Answer : You ll probably need to move away from using the asp.net style control and create a text area either manually or through an HTML helper . We import the CKEditor javascript in the head of our master page and then the following in the view when CKEditor is used : .. . .. . That should convert the text area into a CKEditor instance . The name inside the replace will need to match the ID of the text area . Comment : Thanks Andy It looks the solution that I was waiting for . I could bring the Description in the Edit mode . Also I need to know how can I keep the editor with Basic toolbar Comment : Suja to fix the dangerous Request.Form issue place the ValidateInput false attribute onto the control action you are submitting the form to . If you are running .net 4 you will also have to put httpRuntime requestValidationMode 2.0 into your web.config . Comment : If you re looking to use the basic toolbar set throughout the application you should be able to set that this CKEditor config file .",
"Question : Do you know how to add watermark in CKEditor visual word processor I want the behavior like this : When the CKEditor is loaded it has text by default . When I click on it text must disappear . .. . Answer : Below are the steps to add water mark in CKEditor .. . .. . Generally when you set default text in Ck Editor through java script on page load . JavaScript event get fired before the control actually load so if possible set the text for code-behind . Attaching Events in Javascript for OnFocus and OnBlur .. . .. . Define your default text in this function .. . .. . You can also define styles to the water mark by adding classes to the default text and place the class into you ck editor content css otherwise it will not work Comment : As I explained in alfonsoml.blogspot.com.es 2012 04 http : alfonsoml.blogspot.com.es 2012 04 placeholder-text-in-ckeditor.html the problem with this basic approach is that it won t work correctly with the dialogs and the placeholder text might be sent if the user submits the form .",
"Question : null .. . Answer : Please help me I m using Ckeditor HTML text box editor http : ckeditor.com in my system . When I choose some style for the text that editor generates several font tags for that text .. . .. . But my system is recognized only the format .. . .. . Is it possible to change that behavior My main idea is to write javascript onchange method for that editor . In that method I m going to parse the generated html text and convert it to the necessary format . Could you please give some advises In the wrong case what is the best javascript solution to parse generated html Thanks for any advises . Comment : But my system is recognized only the format . Does not make any sense . I d correct it myself but I am unsure what you meant by it . could you correct that sentence Ta Comment : Sorry stackoverflow didn t display the html tag : current : font-size 3 font color FFFF00 text font font Needed : font-size 3 color FFFF00 text font Comment : I would say that there isn t a way to do this automatically . It would require some very complex changes to CKEditor to parse and collapse the tags . However why does your system not recognize multiple tags Comment : Because it is an existing system . And now there are a lot off contents stored in the database in the format font-size color face . If I ll change the system behavior to recognize multiple tags It will be problem with the old records .",
"Question : null .. . Answer : I have some text and images in ckeditor designer now i can allow users to change text and move it around the editor but i don t want to allow users to perform cut by ctrl + x or by rightclick- cut or delete operations on images present in ckeditor however they can move images in ckeditor . How can i stop users on clientside from performing cut and delete operations on images in ckeditor To get a better idea about moving images in ckeditor check the images below . Here Component 1 is an image .. . .. . enter image description here http : i.stack.imgur.com awvE5.png .. . .. . I ve moved my image from line 1 to line 3 .. . .. . enter image description here http : i.stack.imgur.com vTHzJ.png Comment : No idea but I m extremely curious : why would you want this Comment : I m working on a small module in a project in which some text would be pre loaded with few images in ckeditor now we don t want the users to delete the images placed in the ckeditor . To add more details it would be like a form where few images and text would be provided by us and some text and images will be added by users .",
"Question : Why images not showing when I paste from MS Word . Ckeditor show that source .. . .. . h1 img src file : C : Users user AppData Local Temp msohtmlclip1 01 clip image002.jpg style height : 88px width : 1005px h1 .. . .. . .. . .. . This file exist . Ckeditor version is for AspNet . Tested on Chrome IE 10 and IE 11 .. . Answer : Your CKEditor is presumably running on a web page with a http : address . Modern browsers don t support embedding images or anything else from file : URLs in http : pages or https : or any other protocol for security reasons . This is because there d be the danger of a malicious site embedding something from your private files like a document and then using some security hole to read and upload it elsewhere . But even if this worked it wouldn t do you much good : the image isn t uploaded into CKEditor so the image would show up on your computer only . Anyone else watching the page you re editing would see a broken image link . As far as I know there s currently no way around uploading the image separately . Comment : Thanks Yes i know that this works only on local computer . But i planned convert img to Base64 and change img src before-save in DB . Comment : I understand . Not possible because of the security restrictions though",
"Question : null .. . Answer : I m looking at the download page for ckeditor and I see that the ASP.NET control was last released in 2014 . The version string is 3.6.6.2 . Does this mean that the control is deprecated It seems to work properly w 4.4.x but I m chasing down some weird ckeditor control issues and I wanted to make sure this isn t somehow the cause . Some of the weird issues I ve been chasing .. . .. . Sometimes when I m doing a save via form-submit I ll get an exception thrown by the guts of ckeditor : Uncaught IndexSizeError : Failed to execute extend on Selection : 1 is larger than the given node s length . .. . Selecting text in the control prior to save makes it go away .. . Only happens in Chrome from what I can tell .. . If I remove the divarea plugin that makes it go away .. . I feel like sometimes I m getting weird errors with it complaining that jquery is missing when I use the asp.net control -- they don t seem to happen under the markup script based method . I haven t pinned this down yet . The overall build is the 3.6.6.2 of the asp.net control . The ckeditor build is 4.4.7 . There are custom config.js files used in some places and in some places the control is configured by markup in the asp.net control . Comment : You might want to strengthen your question by stating what issues you are facing . Comment : Please check my answer here http : stackoverflow.com questions 30029072 formatting-issues-in-asp-net-integrated-ckeditor 30075453 30075453 I tried to explain the current status of the ASP.NET control . Comment : So it seems like it is ok to keep using it until a v4 release is accomplished . I think what you outlined is what was basically done by my coworkers . I think I can rule out the ASP.NET control as a factor perhaps . Comment : CKEditor is an Open Source project so if you or your organization feel like you could benefit from an updated CKEditor for ASP.NET control and be willing to help either through collaboration or sponsorship it would be most welcome if you got in touch with us http : cksource.com contact at CKSource ."
]
} | [
"yes-answer-long",
"yes-answer-short"
] | wysiwyg | UNK_RELATION |
teamcity-6@continuous-integration@67 | teamcity-6 -- teamcity-6 is a major release of jetbrains teamcity @placeholder server . | {
"confidence": [
63.033294677734375,
57.00202560424805,
56.18156814575195,
54.477779388427734,
53.0009765625,
52.97858428955078,
52.55162048339844,
51.978057861328125,
50.7646598815918,
48.75779724121094,
47.96470642089844,
47.54673385620117,
46.409690856933594,
46.34680938720703,
46.27543640136719,
46.27543640136719,
46.25613784790039,
45.82664108276367,
45.82664108276367,
44.84026336669922,
44.84026336669922,
43.42089080810547,
43.346092224121094,
43.346092224121094,
43.12017059326172,
43.12017059326172,
43.12017059326172,
42.60936737060547,
42.60936737060547,
42.60936737060547,
41.1741943359375,
41.1741943359375,
41.1741943359375,
39.4541015625,
39.4541015625,
39.39733123779297,
37.73490905761719,
37.67119598388672,
37.67119598388672,
37.67119598388672,
37.67119598388672,
36.96849822998047,
36.23602294921875,
36.23602294921875,
36.23602294921875,
36.23602294921875,
36.23602294921875,
34.997337341308594,
34.64892578125,
34.64892578125,
34.51593017578125,
34.51593017578125,
34.51593017578125,
34.34939956665039,
33.21375274658203,
31.49365997314453,
31.49365997314453,
31.26387596130371,
31.26387596130371,
31.26387596130371,
31.26387596130371,
30.692686080932617,
29.828702926635742,
29.475910186767578,
29.25751304626465,
28.108610153198242,
28.108610153198242,
27.588735580444336,
26.824254989624023,
24.99691390991211,
24.659212112426758,
24.659212112426758,
24.433469772338867,
23.923015594482422,
23.923015594482422,
23.16226577758789,
22.94432830810547,
22.79077911376953,
22.592294692993164,
21.355606079101562,
21.31590461730957,
20.872201919555664,
20.632902145385742,
18.529796600341797,
17.291357040405273,
14.269550323486328,
14.205833435058594,
14.205833435058594,
14.205833435058594,
14.205833435058594,
14.205833435058594,
14.205833435058594,
14.205833435058594,
14.205833435058594,
14.205833435058594,
14.205833435058594,
14.205833435058594,
14.205833435058594,
14.205833435058594,
14.205833435058594
],
"content": [
"Teamcity Dotcover http : blogs.jetbrains.com dotnet 2010 12 jetbrains-teamcity-6-is-released-bundles-dotcover",
"Please write about the problem to TeamCity forum at devnet.jetbrains.net community teamcity http : devnet.jetbrains.net community teamcity teamcity view discussions .",
"Run home teamcity Teamcity bin teamcity-server.sh start .. . 8 .",
"Open http : your new teamcity server : 8111 and it will ask to enter maintenance mode by finding a secret token in teamcity-server.log in home teamcity Teamcity logs folder .",
"If you are using TeamCity in the cloud you will need to talk to JetBrains about their bandwidth .",
"I have the setup running successfully on other servers using TeamCity 4.5 but the new server is running TeamCity 6 and I am having trouble getting it to work as expected .",
"Please include your VCS log from TeamCity logs teamcity-vcs.log",
"Unzip the new Teamcity .tar.gz distribution file to a location say home teamcity Teamcity .. . 7 .",
"In server logs TeamCity logs teamcity-server.log there should be a related warning started with Attempting to publish artifact outside of build artifacts directory .",
"Since I am not able to run a direct upgrade on our existing Teamcity server version 4.5.4 my plan was to install a latest Teamcity server to another host and trying to import the data that somehow exported from the old Teamcity server .",
"Does anyone have experience of upgrading Teamcity server from version 4 to version 6 without losing all the build history",
"There is no direct integration with Cobertura for TeamCity AFAIK .",
"On the new server use rsync to copy the .BuildServer folder from the old version 4 Teamcity server .",
"TeamCity 6.5 and above come with an AssemblyInfoPatcher which you can configure with a static value or with TeamCity variables .",
"This is your first time setting up teamcity",
"I m using git and TeamCity v6.0 in a Windows environment .",
"The issue was solved by the JetBrains team : .. . .. . http : youtrack.jetbrains.net issue TW-16404 .. . .. . Upgrade to TeamCity 6.0.3 if you have the same problem .",
"I m running TeamCity 6.5.3 if it matters .",
"I m still determined to succeed with TeamCity .",
"Shutdown old version 4 Teamcity installation .",
"Dump the database used by teamcity to a .sql file .",
"Not in current 6.5 TeamCity version but maybe in future release : TeamCity 7.0 EAP http : confluence.jetbrains.net display TW Faradi+7.0+EAP+ 28build+20334 29+Release+Notes Faradi7.0EAP 28build20334 29ReleaseNotes-Typesforbuildproperties 28experimental 29",
"But a better overall solution in our situation was just to integrate teamcity with a Sonar http : www.sonarsource.org server .",
"Almost done but don t forget to update build agent so that they know where the new teamcity server is .",
"TeamCity 6.5.3 must support partcover 4.0.11129",
"TeamCity only starts partcover.exe with given commandline .",
"I ditched TeamCity and now use CruiseControl.net instead .",
"We are using TeamCity 6.0.2 and have a build configuration that runs SoapUI tests .",
"I want this change to be PERMANENT but TeamCity only changes this for the current running build .",
"How do I make a permanent change to a system property in TeamCity",
"TeamCity 6.0 allows to create multiple build steps for your build configuration .",
"I would like to integrate Cobertura into my Teamcity build .",
"Any ideas for getting historical charts records for code-coverage in Teamcity",
"In general this messages means TeamCity failed to find any covered line .",
"I am using Teamcity for automated deployment process in our application .",
"TeamCity 5.X REST documentation http : confluence.jetbrains.net display TCD5 REST+API directs us to a plug-ins page that is not TeamCity 5.X specific .",
"You can review older versions of the documentation http : confluence.jetbrains.net pages viewpreviousversions.action pageId 15803550 but not based on the TeamCity release numbers .",
"I am trying to set up TeamCity to build and deploy an ASP.NET MVC application .",
"Since 6.0 TeamCity doesn t allow to publish artifacts outside of the server s artifacts directory for security reasons .",
"I have found a way to change a property in TeamCity : .. . .. . But unfortunately this change only occurs for the current build .",
"The only solution using TeamCity 6.5 was to edit the Xml configuration file programmatically using a python script .",
"After reading both documentation for version 4 http : confluence.jetbrains.net display TCD4 TeamCity+Data+Backup and version 6 http : confluence.jetbrains.net display TCD65 Upgrade I am not sure how to proceed .",
"How to increment the Assembly version on each build in TeamCity using Build Runner Type Visual Studio Sln File",
"In your JSP view you ll probably want to use page.tag which is common base for TeamCity pages .",
"if it will not work with teamcity you can try sonar http : www.sonarsource.org this has a timeline feature .",
"Going to accept Yaegor s answer as it most directly answers my question -- integrating Cobertura with TeamCity .",
"We have around 100 build configurations and need a enterprise licence to run Teamcity .",
"You cannot use a single TeamCity license on two running servers at the same time but you could try clone upgrade in planned nightly downtime of the main server .",
"TeamCity manages to get the files from source control and the project Visual Studio Solution 2008 set to Build builds and outputs the necessary files as expected .",
"How do I set up TeamCity so that it does not publish build artifacts if the build fails because a unit test failed",
"That is good news - the drop down entry in TeamCity says 2.2 and 2.3 but these are the .NET2 only versions .",
"I have an older revision 1xx in SVN which I would like to run with TeamCity via custom-build .",
"Why is the TeamCity build agent s PATH variable different from the system default and how can I fix it",
"I don t think JetBrains have upgraded TeamCity to use the latest version of PartCover 2.2 and 2.3 are the old version that were .NET2 only rather than use the built-in integration try executing PartCover directly i.e .",
"BTW you might consider using IntelliJ IDEA Code Coverage http : confluence.jetbrains.net display TCD65 Code+Coverage with TeamCity instead of a bit stagnated Cobertura .",
"I m trying to setup partcover for .net 4 https : github.com sawilde partcover.net4 on x64 machine with TeamCity http : confluence.jetbrains.net display TCD65 PartCover .",
"The TeamCity project was not established until the revision of 2xx so that I can choose when you custom build only the revisions to 2xx .",
"More info and examples here : http : daniel.wertheim.se 2011 07 14 continuous-integration-using-teamcity-rake-albacore-github-and-nunit-for-net- E2 80 93-part-3",
"I have following exception in http : teamcity server diffView.html ... . .. . .. . it strange because Teamcity agents correctly updates projects from svn and site correctly shows changed files .",
"In TeamCity 7.0 you can change build configuration parameters using REST API see confluence.jetbrains.net display TW http : confluence.jetbrains.net display TW REST+API+Plugin RESTAPIPlugin-BuildConfigurationAndTemplateSettings .",
"Also you can set an agent property teamcity.git.use.local.mirrors true in this case TeamCity will create a bare clone of your repository and will update build directory from this bare clone instead of github i.e .",
"The build checkout directory is C : TeamCity buildAgent work 7da320cebf0ee541 and the Web -project is found in C : TeamCity buildAgent work 7da320cebf0ee541 Web .. . .. . I have set up my build configuration with the following artifact paths relative from checkout directory to the folder containing the website : .. . .. . I ve tried with more . . just in case but it didn t make a difference .",
"Recently I have again migrated and updated out Teamcity installation from version 6.5 to 7.1.4 without losing any history or data so I think I d better share what I did .",
"I just recently realized this and it seems that some of the functionality such as the running : true build dimension http : youtrack.jetbrains.net issue TW-12957 are not supported until TeamCity 6.0 .",
"For getting TeamCity statistics charts and 7.0-to-be-introduced ability to fail a build on metric change build script will need to report corresponding coverage-related statistics values http : confluence.jetbrains.net display TCD65 Custom+Chart CustomChart-predefinedStatisticsKeys via service messages http : confluence.jetbrains.net display TCD65 Build+Script+Interaction+with+TeamCity BuildScriptInteractionwithTeamCity-ReportingBuildStatistics .",
"I m trying to set up TeamCity to build my project but my psake buildscript fails with the reason being narrowed down to its inability to find the git executable which is supposed to be on the path .",
"My solution hinted at by tishma s comment was to modify the Path environment variable for the User and restart the Team City Build Agent Service .. . .. . Edit : This bug http : youtrack.jetbrains.com issue TW-2266 has been fixed as of TeamCity 7.1",
"Use the REST API which is a feature of TeamCity 7.0 .. . .. . Api details here - http : confluence.jetbrains.com display TW REST+API+Plugin RESTAPIPlugin-BuildConfigurationAndTemplateSettings .. . .. . I use this method to get and set properties from powershell during a build .",
"It went extremely well for me both for version 4 - 6 upgrade and version 6 - 7 upgrade .",
"This is the output I get from the log .. . .. . 19 : 35 : 29 : Publishing artifacts 1s 19 : 35 : 29 : Publishing artifacts Paths to publish : Web bin . . . . . . . . inetpub wwwroot staging bin Web Content . . . . . . . . inetpub wwwroot staging Content Web obj . . . . . . . . inetpub wwwroot staging obj Web Views . . . . . . . . inetpub wwwroot staging Views Web Media . . . . . . . . inetpub wwwroot staging Media Web .aspx . . . . . . . . inetpub wwwroot staging Web .asax . . . . . . . . inetpub wwwroot staging teamcity-info.xml 19 : 35 : 30 : Publishing artifacts Sending files 19 : 35 : 32 : Build finished .. . .. . Logs from some of the other servers running TeamCity 4.5 uses a different format with a line for each of the artifacts being published I m not sure if this is relevant or only due to a different logging format .",
"And 4- 5 and 5- 6 will probably encounter similar licencing issue .",
"Import the .sql dump : mysql -u User -pPassword teamcity db name teamcity.sql .. . 6 .",
"The content of the Path environment variable as shown in the System variables list in the windows Environment Variables dialog as well as the registry at HKEY LOCAL MACHINE SYSTEM ControlSet001 Control Session Manager Environment Path is .. . .. . yet TeamCity says its env.Path is just .. . .. . I have restarted the computer multiple times which does not help whatsoever .",
"Same pipe available on the agents as the server previously .",
"How does ping look from server to repo",
"Thanks Vadzim I already got one from JetBrains support .",
"On the new server create db user and database in MySQL with same names as in the old server .",
"We also filed an issue to JetBrains if you re interested : http : youtrack.jetbrains.net issue TW-16404",
"It s also possible that upgrade would go better if splitted : 4 - 5 and then 5 - 6 .",
"JetBrains suggested in the link-to request an evaluation licence however they don t provide evaluation licence for version 4 anymore .",
"I have just switched over from server-side checkouts to checkout on agents because of IO issues however.. .",
"The solution is in Build Configuration 6 Build Parameters where you can override env .",
"Some previous answers are correct but are lacking details and take me some time to really understand them Where the Default Agent takes its environment-variables is not clear to me : so here is a way to clearly fix them in the agent configuration . .. . .. . Editing the TeamCity buildAgent conf buildAgent.properties file with env.PATH usr whatever will do the trick .",
"Have you JetBrains considered supporting OpenCover - has 32 64 bit support and also has branch coverage as well as sequence point coverage .",
"I know it s not exactly an answer to your question but you might find that you can get sufficiently accurate coverage reports if you use Jetbrains DotCover instead of trying to integrate with PartCover .",
"You might have some luck looking at versions prior to the 6.0 release on Dec . 1 2010 .",
"The problem seems to be with my artifact paths as the output files are not copied to the website folder .",
"My solution consists of dozen projects of which the Web project is the interesting one in this case .",
"Everything seems to be working but no files are put in my website folder after a build am I missing something here",
"Any help will be much appreciated :",
"After a bit of testing I realize that the relative-path should not be based in the checkout directory but changing it to match the build agent folder . . x 8 doesn t help .",
"Update : When outputting the artifacts to the relative-path Output the folder is created and the files are correctly copied to it .",
"The problem seems to be that I cannot for some reason copy the files to the inetpub wwwroot staging folder .",
"I ve always used build scripts to handle this kind of process since you re using TC6 you should be able to add a second build step after your VS.NET solution builder which performs the copy move .",
"MSBuild would probably be the preferred scripting method for doing this but you could use a simple console runner if you all you need to do is copy .",
"Using a scripted approach you should be able to use an absolute path for the deployment directory which shouldn t be as fragile as relative paths .",
"Thanks .",
"Sounds like a good plan .",
"I will set up a script to handle it and run that as a secondary build step .",
"I think this is your case ."
]
} | {
"confidence": [
79.81704711914062,
65.44095611572266,
63.06387710571289,
60.81242370605469,
60.4748649597168,
58.930397033691406,
58.550926208496094,
57.94700241088867,
57.59082794189453,
56.50055694580078,
56.25265121459961,
55.12770080566406,
53.53062057495117,
53.484825134277344,
52.865150451660156,
50.918724060058594,
50.17628860473633,
49.67298126220703,
47.99030303955078,
47.568634033203125
],
"content": [
"Question : Does anyone have experience of upgrading Teamcity server from version 4 to version 6 without losing all the build history Since I am not able to run a direct upgrade on our existing Teamcity server version 4.5.4 my plan was to install a latest Teamcity server to another host and trying to import the data that somehow exported from the old Teamcity server . After reading both documentation for version 4 http : confluence.jetbrains.net display TCD4 TeamCity+Data+Backup and version 6 http : confluence.jetbrains.net display TCD65 Upgrade I am not sure how to proceed . Does anyone have any suggestion on this Thanks . Comment : You could make a clone for training with direct upgrade . It s also possible that upgrade would go better if splitted : 4 - 5 and then 5 - 6 . Comment : I thought about making a clone also . however that requires another licence for version 4 according to this link http : confluence.jetbrains.net display TCD65 How+To.. . HowTo...-CreateacopyofTeamCityserverwithalldata under title Licensing issues . We have around 100 build configurations and need a enterprise licence to run Teamcity . JetBrains suggested in the link-to request an evaluation licence however they don t provide evaluation licence for version 4 anymore . Comment : And 4- 5 and 5- 6 will probably encounter similar licencing issue . But thanks away . Comment : You cannot use a single TeamCity license on two running servers at the same time but you could try clone upgrade in planned nightly downtime of the main server . Also I guess that free professional edition available since version 3 would handle upgrade the same way as enterprise one . Furthermore I believe it s possible to arrange this licensing issue with sales department in a nice way . Comment : Thanks Vadzim I already got one from JetBrains support . .. . Answer : I forgot to circle back to this question after it was solved . Recently I have again migrated and updated out Teamcity installation from version 6.5 to 7.1.4 without losing any history or data so I think I d better share what I did . Basically what I did were : .. . .. . 1 . Shutdown old version 4 Teamcity installation . 2 . Dump the database used by teamcity to a .sql file . In my case we uses MySQL so I used something like : mysqldump -u User -pPassword teamcity db name teamcity.sql .. . 3 . On the new server use rsync to copy the .BuildServer folder from the old version 4 Teamcity server . 4 . On the new server create db user and database in MySQL with same names as in the old server . 5 . Import the .sql dump : mysql -u User -pPassword teamcity db name teamcity.sql .. . 6 . Unzip the new Teamcity .tar.gz distribution file to a location say home teamcity Teamcity .. . 7 . Run home teamcity Teamcity bin teamcity-server.sh start .. . 8 . Open http : your new teamcity server : 8111 and it will ask to enter maintenance mode by finding a secret token in teamcity-server.log in home teamcity Teamcity logs folder . 9 . After entering the token it asks to confirm the upgrade . This step besically upgrade the format of your .BuildServer folder . 10 . Wait sometime for me it took around 30 mins to do the upgrade . 11 . Almost done but don t forget to update build agent so that they know where the new teamcity server is . It went extremely well for me both for version 4 - 6 upgrade and version 6 - 7 upgrade .",
"Question : I m trying to setup partcover for .net 4 https : github.com sawilde partcover.net4 on x64 machine with TeamCity http : confluence.jetbrains.net display TCD65 PartCover . Tests are executed but coverage report shows 0 coverage . I m getting the following message in log : .. . .. . But the include pattern is . I m running TeamCity 6.5.3 if it matters . Has anybody managed to run partcover on that version Comment : I don t think JetBrains have upgraded TeamCity to use the latest version of PartCover 2.2 and 2.3 are the old version that were .NET2 only rather than use the built-in integration try executing PartCover directly i.e . if using nant use the exec task . Comment : I know it s not exactly an answer to your question but you might find that you can get sufficiently accurate coverage reports if you use Jetbrains DotCover instead of trying to integrate with PartCover . We are using it on our project and it was painless to setup . Teamcity Dotcover http : blogs.jetbrains.com dotnet 2010 12 jetbrains-teamcity-6-is-released-bundles-dotcover .. . Answer : In general this messages means TeamCity failed to find any covered line . This could be caused by assemblies or coverage parameters . Please feel free to create an issue at http : youtrack.jetbrains.net with partcover report you got from a local test run . Please include version number of partcover too . TeamCity 6.5.3 must support partcover 4.0.11129 Comment : Why do you say they must support 4.0.11129 - do you have a link for this AFAIK they only support 2.2 and 2.3 which was on Soureforge and they haven t done anything special for the .NET 4 version . So if they do support it it is more by luck due to GUIDs being maintained than any actual planning . Comment : TeamCity only starts partcover.exe with given commandline . It parses generated report.xml file to create reports and publish statistics . What GUIDs do you mean I checked that it is able to parse reports from 4.0.11129 . Comment : That is good news - the drop down entry in TeamCity says 2.2 and 2.3 but these are the .NET2 only versions . The latest version 4.0 - also handles .NET4 framework . Have you JetBrains considered supporting OpenCover - has 32 64 bit support and also has branch coverage as well as sequence point coverage .",
"Question : I m trying to setup partcover for .net 4 https : github.com sawilde partcover.net4 on x64 machine with TeamCity http : confluence.jetbrains.net display TCD65 PartCover . Tests are executed but coverage report shows 0 coverage . I m getting the following message in log : .. . .. . But the include pattern is . I m running TeamCity 6.5.3 if it matters . Has anybody managed to run partcover on that version Comment : I don t think JetBrains have upgraded TeamCity to use the latest version of PartCover 2.2 and 2.3 are the old version that were .NET2 only rather than use the built-in integration try executing PartCover directly i.e . if using nant use the exec task . Comment : I know it s not exactly an answer to your question but you might find that you can get sufficiently accurate coverage reports if you use Jetbrains DotCover instead of trying to integrate with PartCover . We are using it on our project and it was painless to setup . Teamcity Dotcover http : blogs.jetbrains.com dotnet 2010 12 jetbrains-teamcity-6-is-released-bundles-dotcover .. . Answer : 1 PartCover only supports 32-bit processes so you need to make sure your test runner is also running 32-bit . 2 Make sure you register the PartCover dll using regsvr32 you can t use per-user registration if using a service account to run team city . Comment : Running the unit test runner in x86 mode solved this for me thanks",
"Question : I am trying to set up TeamCity to build and deploy an ASP.NET MVC application . I have the setup running successfully on other servers using TeamCity 4.5 but the new server is running TeamCity 6 and I am having trouble getting it to work as expected . TeamCity manages to get the files from source control and the project Visual Studio Solution 2008 set to Build builds and outputs the necessary files as expected . The problem seems to be with my artifact paths as the output files are not copied to the website folder . My solution consists of dozen projects of which the Web project is the interesting one in this case . The build checkout directory is C : TeamCity buildAgent work 7da320cebf0ee541 and the Web -project is found in C : TeamCity buildAgent work 7da320cebf0ee541 Web .. . .. . I have set up my build configuration with the following artifact paths relative from checkout directory to the folder containing the website : .. . .. . I ve tried with more . . just in case but it didn t make a difference . This is the output I get from the log .. . .. . 19 : 35 : 29 : Publishing artifacts 1s 19 : 35 : 29 : Publishing artifacts Paths to publish : Web bin . . . . . . . . inetpub wwwroot staging bin Web Content . . . . . . . . inetpub wwwroot staging Content Web obj . . . . . . . . inetpub wwwroot staging obj Web Views . . . . . . . . inetpub wwwroot staging Views Web Media . . . . . . . . inetpub wwwroot staging Media Web .aspx . . . . . . . . inetpub wwwroot staging Web .asax . . . . . . . . inetpub wwwroot staging teamcity-info.xml 19 : 35 : 30 : Publishing artifacts Sending files 19 : 35 : 32 : Build finished .. . .. . Logs from some of the other servers running TeamCity 4.5 uses a different format with a line for each of the artifacts being published I m not sure if this is relevant or only due to a different logging format . Everything seems to be working but no files are put in my website folder after a build am I missing something here Any help will be much appreciated : Comment : After a bit of testing I realize that the relative-path should not be based in the checkout directory but changing it to match the build agent folder . . x 8 doesn t help . Comment : Update : When outputting the artifacts to the relative-path Output the folder is created and the files are correctly copied to it . The problem seems to be that I cannot for some reason copy the files to the inetpub wwwroot staging folder . .. . Answer : Why not take a look at Albacorebuild . I m using it to control the build-process running tests creating ZIP s and NuGet packages . More info and examples here : http : daniel.wertheim.se 2011 07 14 continuous-integration-using-teamcity-rake-albacore-github-and-nunit-for-net- E2 80 93-part-3",
"Question : I am trying to set up TeamCity to build and deploy an ASP.NET MVC application . I have the setup running successfully on other servers using TeamCity 4.5 but the new server is running TeamCity 6 and I am having trouble getting it to work as expected . TeamCity manages to get the files from source control and the project Visual Studio Solution 2008 set to Build builds and outputs the necessary files as expected . The problem seems to be with my artifact paths as the output files are not copied to the website folder . My solution consists of dozen projects of which the Web project is the interesting one in this case . The build checkout directory is C : TeamCity buildAgent work 7da320cebf0ee541 and the Web -project is found in C : TeamCity buildAgent work 7da320cebf0ee541 Web .. . .. . I have set up my build configuration with the following artifact paths relative from checkout directory to the folder containing the website : .. . .. . I ve tried with more . . just in case but it didn t make a difference . This is the output I get from the log .. . .. . 19 : 35 : 29 : Publishing artifacts 1s 19 : 35 : 29 : Publishing artifacts Paths to publish : Web bin . . . . . . . . inetpub wwwroot staging bin Web Content . . . . . . . . inetpub wwwroot staging Content Web obj . . . . . . . . inetpub wwwroot staging obj Web Views . . . . . . . . inetpub wwwroot staging Views Web Media . . . . . . . . inetpub wwwroot staging Media Web .aspx . . . . . . . . inetpub wwwroot staging Web .asax . . . . . . . . inetpub wwwroot staging teamcity-info.xml 19 : 35 : 30 : Publishing artifacts Sending files 19 : 35 : 32 : Build finished .. . .. . Logs from some of the other servers running TeamCity 4.5 uses a different format with a line for each of the artifacts being published I m not sure if this is relevant or only due to a different logging format . Everything seems to be working but no files are put in my website folder after a build am I missing something here Any help will be much appreciated : Comment : After a bit of testing I realize that the relative-path should not be based in the checkout directory but changing it to match the build agent folder . . x 8 doesn t help . Comment : Update : When outputting the artifacts to the relative-path Output the folder is created and the files are correctly copied to it . The problem seems to be that I cannot for some reason copy the files to the inetpub wwwroot staging folder . .. . Answer : Since 6.0 TeamCity doesn t allow to publish artifacts outside of the server s artifacts directory for security reasons . I think this is your case . In server logs TeamCity logs teamcity-server.log there should be a related warning started with Attempting to publish artifact outside of build artifacts directory . If you wan t to publish files to some particular location you should probably create a separate build step which would send files by FTP or something to desired location . You may also want to vote for http : youtrack.jetbrains.net issue TW-1558",
"Question : I m using git and TeamCity v6.0 in a Windows environment . I have just switched over from server-side checkouts to checkout on agents because of IO issues however.. . Initial checkout has become exceeding slow from a minute to 45 minutes . Once the repo is cloned everything is OK . Is there some configuration on the agents I can tweak to improve this Thanks for any replies in advance . What I see is the initial git files created on the agent and then there is a very long pause and then I get all my data . I can see from the process-explorer that git appears to be doing very little and there is no obvious source of throttling . .. . Answer : If it s fast on another configuration your problem is not git or github but the size of the pipe running into the machine . If you are using TeamCity in the cloud you will need to talk to JetBrains about their bandwidth . If locally talk to your sysadmins . Comment : Hi Matt not using TC in the cloud . Same pipe available on the agents as the server previously . Comment : Odd . Are they on the same network segment Possibly firewall is configured differently . Comment : ive added some symptoms Comment : Very strange . How does ping look from server to repo Could be that DNS is iffy . Comment : both are locked down in the same way no . I hoped it was something to do with repo size or suboptimal vcs settings .",
"Question : We are using TeamCity 6.0.2 and have a build configuration that runs SoapUI tests . The tests themselves run in approx . 45 seconds when running in command-line . To see the results of the test we use Ant JUNit report watcher with this Report paths value : .. . .. . And then the tests are taking up to 15 minutes with a CPU at 100 . What can we do to reduce this time Other report path Separate the test step from the report step We also filed an issue to JetBrains if you re interested : http : youtrack.jetbrains.net issue TW-16404 .. . Answer : The issue was solved by the JetBrains team : .. . .. . http : youtrack.jetbrains.net issue TW-16404 .. . .. . Upgrade to TeamCity 6.0.3 if you have the same problem .",
"Question : I would like to integrate Cobertura into my Teamcity build . I m using this link as a starting point : .. . .. . http : jroller.com ulc entry teamcity 2 custom report integration .. . .. . But as far as I can tell that will only give me a current snapshot of the coverage . Any ideas for getting historical charts records for code-coverage in Teamcity Is there a better method than the above link describes for integrating with Cobertura Comment : if it will not work with teamcity you can try sonar http : www.sonarsource.org this has a timeline feature . .. . Answer : Going to accept Yaegor s answer as it most directly answers my question -- integrating Cobertura with TeamCity . But a better overall solution in our situation was just to integrate teamcity with a Sonar http : www.sonarsource.org server . Sonar http : www.sonarsource.org provides code-coverage with Cobertura or many other coverage tools static-analysis and many other metrics out of the box with very little standup effort .",
"Question : null .. . Answer : I have following exception in http : teamcity server diffView.html ... . .. . .. . it strange because Teamcity agents correctly updates projects from svn and site correctly shows changed files . Comment : This is your first time setting up teamcity Comment : @Bragboy : Can t fathom how your comment is actually supposed to help the OP or anyone . Perhaps you can expand on it Comment : Yura this looks like a bug . Please write about the problem to TeamCity forum at devnet.jetbrains.net community teamcity http : devnet.jetbrains.net community teamcity teamcity view discussions . Please include your VCS log from TeamCity logs teamcity-vcs.log",
"Question : I am trying to set up TeamCity to build and deploy an ASP.NET MVC application . I have the setup running successfully on other servers using TeamCity 4.5 but the new server is running TeamCity 6 and I am having trouble getting it to work as expected . TeamCity manages to get the files from source control and the project Visual Studio Solution 2008 set to Build builds and outputs the necessary files as expected . The problem seems to be with my artifact paths as the output files are not copied to the website folder . My solution consists of dozen projects of which the Web project is the interesting one in this case . The build checkout directory is C : TeamCity buildAgent work 7da320cebf0ee541 and the Web -project is found in C : TeamCity buildAgent work 7da320cebf0ee541 Web .. . .. . I have set up my build configuration with the following artifact paths relative from checkout directory to the folder containing the website : .. . .. . I ve tried with more . . just in case but it didn t make a difference . This is the output I get from the log .. . .. . 19 : 35 : 29 : Publishing artifacts 1s 19 : 35 : 29 : Publishing artifacts Paths to publish : Web bin . . . . . . . . inetpub wwwroot staging bin Web Content . . . . . . . . inetpub wwwroot staging Content Web obj . . . . . . . . inetpub wwwroot staging obj Web Views . . . . . . . . inetpub wwwroot staging Views Web Media . . . . . . . . inetpub wwwroot staging Media Web .aspx . . . . . . . . inetpub wwwroot staging Web .asax . . . . . . . . inetpub wwwroot staging teamcity-info.xml 19 : 35 : 30 : Publishing artifacts Sending files 19 : 35 : 32 : Build finished .. . .. . Logs from some of the other servers running TeamCity 4.5 uses a different format with a line for each of the artifacts being published I m not sure if this is relevant or only due to a different logging format . Everything seems to be working but no files are put in my website folder after a build am I missing something here Any help will be much appreciated : Comment : After a bit of testing I realize that the relative-path should not be based in the checkout directory but changing it to match the build agent folder . . x 8 doesn t help . Comment : Update : When outputting the artifacts to the relative-path Output the folder is created and the files are correctly copied to it . The problem seems to be that I cannot for some reason copy the files to the inetpub wwwroot staging folder . .. . Answer : I ve always used build scripts to handle this kind of process since you re using TC6 you should be able to add a second build step after your VS.NET solution builder which performs the copy move . MSBuild would probably be the preferred scripting method for doing this but you could use a simple console runner if you all you need to do is copy . Using a scripted approach you should be able to use an absolute path for the deployment directory which shouldn t be as fragile as relative paths . Comment : Thanks . Sounds like a good plan . I will set up a script to handle it and run that as a secondary build step .",
"Question : I m trying to set up TeamCity to build my project but my psake buildscript fails with the reason being narrowed down to its inability to find the git executable which is supposed to be on the path . When I start a PowerShell and execute the thing by myself everything works fine . The content of the Path environment variable as shown in the System variables list in the windows Environment Variables dialog as well as the registry at HKEY LOCAL MACHINE SYSTEM ControlSet001 Control Session Manager Environment Path is .. . .. . yet TeamCity says its env.Path is just .. . .. . I have restarted the computer multiple times which does not help whatsoever . Why is the TeamCity build agent s PATH variable different from the system default and how can I fix it Comment : Any reasonable solution yet Comment : I hate to guess but if you are running it as a windows service the environment would come from the user running the service . Comment : No no solution . I ditched TeamCity and now use CruiseControl.net instead . .. . Answer : The solution is in Build Configuration 6 Build Parameters where you can override env . ANYTHING variables . P.S . Sry to hear that . I m still determined to succeed with TeamCity .",
"Question : I am using Teamcity for automated deployment process in our application . It s a parametrized build where users will specify the environment build location etc etc .. . enter image description here http : i.stack.imgur.com QE3wX.jpg .. . .. . Now the thing is can I get a drop down list to select these parameters from a predefined set Is there any way to do that .. . Answer : Not in current 6.5 TeamCity version but maybe in future release : TeamCity 7.0 EAP http : confluence.jetbrains.net display TW Faradi+7.0+EAP+ 28build+20334 29+Release+Notes Faradi7.0EAP 28build20334 29ReleaseNotes-Typesforbuildproperties 28experimental 29",
"Question : I would like to integrate Cobertura into my Teamcity build . I m using this link as a starting point : .. . .. . http : jroller.com ulc entry teamcity 2 custom report integration .. . .. . But as far as I can tell that will only give me a current snapshot of the coverage . Any ideas for getting historical charts records for code-coverage in Teamcity Is there a better method than the above link describes for integrating with Cobertura Comment : if it will not work with teamcity you can try sonar http : www.sonarsource.org this has a timeline feature . .. . Answer : There is no direct integration with Cobertura for TeamCity AFAIK . For getting TeamCity statistics charts and 7.0-to-be-introduced ability to fail a build on metric change build script will need to report corresponding coverage-related statistics values http : confluence.jetbrains.net display TCD65 Custom+Chart CustomChart-predefinedStatisticsKeys via service messages http : confluence.jetbrains.net display TCD65 Build+Script+Interaction+with+TeamCity BuildScriptInteractionwithTeamCity-ReportingBuildStatistics . BTW you might consider using IntelliJ IDEA Code Coverage http : confluence.jetbrains.net display TCD65 Code+Coverage with TeamCity instead of a bit stagnated Cobertura .",
"Question : TeamCity 5.X REST documentation http : confluence.jetbrains.net display TCD5 REST+API directs us to a plug-ins page that is not TeamCity 5.X specific . I just recently realized this and it seems that some of the functionality such as the running : true build dimension http : youtrack.jetbrains.net issue TW-12957 are not supported until TeamCity 6.0 . Does anyone know where I can find documentation about the REST API for TC 5.X for reference .. . Answer : You can review older versions of the documentation http : confluence.jetbrains.net pages viewpreviousversions.action pageId 15803550 but not based on the TeamCity release numbers . You might have some luck looking at versions prior to the 6.0 release on Dec . 1 2010 . Comment : Thanks JMason",
"Question : I have found a way to change a property in TeamCity : .. . .. . But unfortunately this change only occurs for the current build . I want this change to be PERMANENT but TeamCity only changes this for the current running build . How do I make a permanent change to a system property in TeamCity Comment : I usually edit the configuration-files . Which property are you trying to set Comment : Its a custom system property . Im trying that route now . Python script that edits the config file . Comment : In TeamCity 7.0 you can change build configuration parameters using REST API see confluence.jetbrains.net display TW http : confluence.jetbrains.net display TW REST+API+Plugin RESTAPIPlugin-BuildConfigurationAndTemplateSettings . Comment : I am aware of that . Sadly we can t upgrade at the moment . .. . Answer : The only solution using TeamCity 6.5 was to edit the Xml configuration file programmatically using a python script . A build step calls the python script to change the variable during each build .",
"Question : How to increment the Assembly version on each build in TeamCity using Build Runner Type Visual Studio Sln File .. . Answer : TeamCity 6.5 and above come with an AssemblyInfoPatcher which you can configure with a static value or with TeamCity variables . The simplest approach if you just want to change the version number . Edit your build configuration .. . Edit Build Step .. . Add build feature .. . Select AssemblyInfo patcher .. . select the variable s to use for your version number .. . .. . note : this simple feature assumes that your assemblyinfo files are in the default location under Properties .",
"Question : I have found a way to change a property in TeamCity : .. . .. . But unfortunately this change only occurs for the current build . I want this change to be PERMANENT but TeamCity only changes this for the current running build . How do I make a permanent change to a system property in TeamCity Comment : I usually edit the configuration-files . Which property are you trying to set Comment : Its a custom system property . Im trying that route now . Python script that edits the config file . Comment : In TeamCity 7.0 you can change build configuration parameters using REST API see confluence.jetbrains.net display TW http : confluence.jetbrains.net display TW REST+API+Plugin RESTAPIPlugin-BuildConfigurationAndTemplateSettings . Comment : I am aware of that . Sadly we can t upgrade at the moment . .. . Answer : Use the REST API which is a feature of TeamCity 7.0 .. . .. . Api details here - http : confluence.jetbrains.com display TW REST+API+Plugin RESTAPIPlugin-BuildConfigurationAndTemplateSettings .. . .. . I use this method to get and set properties from powershell during a build . Comment : Thank you . I am fully aware of this feature but I was limited to version 6.5 when I had this problem so the API is not relevant . I specified the version of TC in the question . Comment : You did but I was also not aware sure that 6.5 was a hard restriction . The API is also very easy to use and I d encourage the upgrade . Comment : The problem with this solution is authentication . I need my build agents to be able to change one parameter in the build but I don t want to deploy credentials to them and I don t think the user management is granular enough anyway to let me specify that they should only be able to change that one parameter .",
"Question : I m trying to set up TeamCity to build my project but my psake buildscript fails with the reason being narrowed down to its inability to find the git executable which is supposed to be on the path . When I start a PowerShell and execute the thing by myself everything works fine . The content of the Path environment variable as shown in the System variables list in the windows Environment Variables dialog as well as the registry at HKEY LOCAL MACHINE SYSTEM ControlSet001 Control Session Manager Environment Path is .. . .. . yet TeamCity says its env.Path is just .. . .. . I have restarted the computer multiple times which does not help whatsoever . Why is the TeamCity build agent s PATH variable different from the system default and how can I fix it Comment : Any reasonable solution yet Comment : I hate to guess but if you are running it as a windows service the environment would come from the user running the service . Comment : No no solution . I ditched TeamCity and now use CruiseControl.net instead . .. . Answer : My solution hinted at by tishma s comment was to modify the Path environment variable for the User and restart the Team City Build Agent Service .. . .. . Edit : This bug http : youtrack.jetbrains.com issue TW-2266 has been fixed as of TeamCity 7.1",
"Question : I m trying to set up TeamCity to build my project but my psake buildscript fails with the reason being narrowed down to its inability to find the git executable which is supposed to be on the path . When I start a PowerShell and execute the thing by myself everything works fine . The content of the Path environment variable as shown in the System variables list in the windows Environment Variables dialog as well as the registry at HKEY LOCAL MACHINE SYSTEM ControlSet001 Control Session Manager Environment Path is .. . .. . yet TeamCity says its env.Path is just .. . .. . I have restarted the computer multiple times which does not help whatsoever . Why is the TeamCity build agent s PATH variable different from the system default and how can I fix it Comment : Any reasonable solution yet Comment : I hate to guess but if you are running it as a windows service the environment would come from the user running the service . Comment : No no solution . I ditched TeamCity and now use CruiseControl.net instead . .. . Answer : I ran into this same issue and only needed to restart the Team City Build Agent Service to pick up changes to the PATH variable . Comment : Arghhhhhhhhhh stackoverflow.com q 23204893 106261 http : stackoverflow.com q 23204893 106261 Comment : Same here . Using 8.0.5 and had to restart the agents to get the changes picked up .",
"Question : How to increment the Assembly version on each build in TeamCity using Build Runner Type Visual Studio Sln File .. . Answer : TeamCity 6.0 allows to create multiple build steps for your build configuration . So with a first build step you can run some script which increases Assembly version http : stackoverflow.com questions 610414 automatic-assembly-version-number-management-in-vs2008 you can obtain it from current build number as build.number system property . The second build step will run real sln runner ."
]
} | [
"yes-answer-long",
"yes-answer-short"
] | continuous-integration | UNK_RELATION |
iocp@asynchronous@63 | iocp -- an i o completion port iocp provides a way to execute @placeholder i o operations efficiently on windows . | {
"confidence": [
66.80986022949219,
52.07813262939453,
50.407310485839844,
49.416465759277344,
49.19988250732422,
47.70159912109375,
47.54499053955078,
47.008323669433594,
46.7872428894043,
46.631046295166016,
45.592010498046875,
45.474910736083984,
44.79297637939453,
43.774566650390625,
43.1328010559082,
43.06898880004883,
42.84619140625,
42.79672622680664,
42.0816650390625,
42.0816650390625,
41.995704650878906,
41.953426361083984,
41.95194625854492,
41.14449691772461,
40.973724365234375,
40.94414138793945,
40.82095718383789,
40.80692672729492,
40.802425384521484,
40.63725280761719,
40.61268997192383,
40.48665237426758,
40.46554183959961,
40.34449005126953,
40.29893112182617,
40.29893112182617,
39.94147491455078,
39.554683685302734,
39.25510787963867,
39.22623062133789,
38.99485778808594,
38.99485778808594,
38.89047622680664,
38.88388442993164,
38.86384582519531,
38.74415969848633,
38.74415969848633,
38.57646179199219,
38.462039947509766,
38.462039947509766,
38.35292053222656,
38.148284912109375,
38.05511474609375,
38.01663589477539,
38.01663589477539,
38.01663589477539,
38.01663589477539,
38.011940002441406,
37.97793197631836,
37.64532470703125,
37.63008117675781,
37.62990951538086,
37.525753021240234,
37.51521682739258,
37.38930130004883,
37.38930130004883,
37.38930130004883,
37.07725143432617,
36.84421157836914,
36.53699493408203,
36.50634002685547,
36.43330383300781,
36.41107940673828,
36.41107940673828,
36.26673126220703,
36.26673126220703,
36.231021881103516,
36.124515533447266,
36.11410140991211,
36.054901123046875,
36.054901123046875,
35.866485595703125,
35.861289978027344,
35.7694206237793,
35.67257308959961,
35.67257308959961,
35.67257308959961,
35.566490173339844,
35.455081939697266,
35.44997024536133,
35.28644561767578,
35.238651275634766,
35.238651275634766,
35.2330207824707,
35.2330207824707,
35.2330207824707,
35.2330207824707,
35.2330207824707,
34.976078033447266
],
"content": [
"That s IOCP I O completion port .",
"I O Completion Port IOCP is nothing but a queue-like object initiated by the CLR .",
"Hey I wanted to automate the process where I would be able to automate the process of enabling making available the I O completion port IOCP in aix .",
"IOCP Thread role is to deliver the result-of I O operation while IOCP Object is the one initiated by CLR to recieve all I O requests .",
"There s no reason to change the IOCP after all you probably use the same IOCP for all the data flow I O .",
"I need to add timers support in an application based on I O Completion Ports IOCP .",
"IOCP provides a way to have a few I O worker threads handle multiple clients input output fairly .",
"If any socket API call which initiates an overlapped operation which will generate a completion to an I O completion port when completed returns 0 then a completion IS generated and posted to the IOCP .",
"Why are you using IOCP at all if you want synchronous I O",
"I was wrongly under the impression that IOCP is used mostly for disk or device I O that it requires hardware interrupt support for notifying the I O completion .",
"If not NULL the event will be signaled when the I O is finished and the IOCP will also receive a completion packet .",
".. . .. . .. . .. . The I O completion port handle and every file handle associated with that particular I O completion port are known as references to the I O completion port .",
"As the operations are completed so called completion packages will be queued to the IOCP .",
"I O completion is signaled by queueing a completion message to the completion port ie .",
"In IOCP when starting an IO operation such as WSARecv a completion packet will be sent to the completion port when the IO operation completes .",
"The POSIX functions do not support overlapped I O and IOCP as these are Windows only concepts .",
"I ve done the usual creating the IOCP spinning up the I O threads and associating my CreateFile handle with the IOCP CreateFile was called with FILE FLAG OVERLAPPED .",
"I want to use IOCP to read file in Windows .",
"I work on IOCP Server Overlapped I O 4 threads CreateIoCompletionPort GetQueuedCompletionStatus WSASend etc .",
"I work on IOCP Server Overlapped I O 4 threads CreateIoCompletionPort GetQueuedCompletionStatus WSASend etc .",
"You could use overlapped I O this way just do NOT associate the socket with an IOCP .",
"As far as I know there are no timers that generate a IOCP completion when they expire .",
"I begin learning about IOCP I see some object : Io completion port thread pool thread completion packet .",
"A more modern solution would probably involve dynamically expanding and reducing the number of I O threads servicing the IOCP as required .",
"When using IOCP and I do something like this : .. . .. . Then three completion packets are placed in the completion port that I can dequeue using GetQueuedCompletionStatus .",
"I found an IOCP-engine voipobjects.com index.php page IOCP-engine http : voipobjects.com index.php page IOCP-engine .",
"A completion will be queued to the IOCP associated with a socket only if an API call that can generate completions is called in a way that requests a completion to be queued .",
"I O wait in general is done extremely well in Windows whether it s IOCP overlapped with events overlapped with completion routines or waiting for all of the above simultaneously with a semaphore completion of a child-process and UI messages .",
"Can mono handle IOCP as well as windows",
"IOCP has the benefits that you mention but that is not exclusive to IOCP .",
"Note : I am using IOCP .",
"I would like to use IO completion port IOCP in order to optimize the files writing using concurrent asynchronous I O but I have to write each file synchronically e.g .",
"Right asynchronous operations whether IOCP overlapped event or completion callback model use WSA IO PENDING rather than WSAEWOULDBLOCK .",
"Are there any good IOCP serial-port examples out there",
"GetQueuedCompletionStatus reports the completion key of the socket that was performing a queued IOCP operation .",
"Even if there is no connection it should fire SocketAsyncEventArgs.Completed due to IOCP completion pending or not .",
"With IOCP it s not really problematic but if I use overlapped I O without IOCP only 1 receive thread it s more efficient to get the buffers filled before processing the packets .",
"And if it is getting stuck then you are not associating the read with the I O Completion Port correctly .",
"You must differentiate between IOCP Thread and IOCP Object initiated by CLR .",
"I haven t found a complete serial-port + IOCP example out there .",
"Is there somewhere a plugin with iocp functionality",
"Associate the socket to your IOCP .",
"I am learning about IOCP and have decided to write my own wrapper class based on the following article : .. . http : www.codeproject.com Articles 13382 A-simple-application-using-I-O-Completion-Ports-an .. . .. . My project is a C++ TCP server using IOCP .",
"2- I O Completion Port Threads : Used to get the result-of an I O operation .",
"Below is skeleton of IOCP worker thread .",
"When it catches back up it will reestablish the listening port with a new IOCP .",
"Currently a new IOCP gets associated with the re-established listening port .",
"The I O completion port is released when there are no more references to it .",
"I didn t know IOCP was this old .",
"Personally I would go with IOCP .",
"Indy 10 has experimental support for fibers and IOCP : .. . .. . From Indy knowledge base http : www.indyproject.org docsite html frames.html frmname topic frmfile WhatsNewIndy10.html : .. . .. . Indy 10 provides experimental support for the Fiber and I O Completion Ports API in the Windows platforms .",
"Threads returning to the IOCP pick up completion packages in LIFO order .",
"See also here : http : stackoverflow.com questions 677155 i-o-completion-port-how-to-free-per-socket-context-and-per-i-o-context",
"Neither appear to be IOCP .",
"A question Using IOCP with UDP",
"So is there such a timer for IOCP",
"IOCP predates pollset .",
"My question is indeed weird because I started thinking the use of IOCP was the only prove of real async I O and that is not the only option .",
"Either way you get a chance to send some context from the API call site to the IOCP completion handling site .",
"There is something I d like to know about overlapped I O under windows both with and without I O completion ports .",
"I would like someone with experience in the use of IOCP confirm that the correct usage is : .. . .. . Call CreateIoCompletionPort function to create an IOCP .",
"I need to modify it to use IOCP instead of select on windows and I m wondering what the best way to utilize threads is .",
"I have a server application that uses Microsoft s I O Completion Port IOCP http : msdn.microsoft.com en-us library windows desktop aa365198 28v vs.85 29.aspx mechanism to manage asynchronous network socket communication .",
"You must pass the function an instance of the OVERLAPPED structure and a file handle previously associated with an I O completion port by a call to CreateIoCompletionPort to enable the I O .. . .. . completion port mechanism : .. . .. . 1 .",
"That would make IOCP completely useless .",
"Associate the listening socket to your IOCP .",
"The main overhead in IOCP is the IO not the language .",
"Windows uses a notify on completion model hence I O Completion Ports .",
"Hardware support is not necessary for IOCP .",
"A handle can be associated with only one I O completion port and after the association is made the handle remains associated with that I O completion port until it is closed .",
"With IOCP after you ve associated the sockets with the IOCP you can perform the 300 send operations and they will return instantly before the operation is completed .",
"It is also helpful to read the most of your answers on this site concerning iocp if someone wants to know how iocp works .",
"IOCP goes fairly far back .",
"What is the best performance tricks for iocp",
"Under heavy load Windows Messages have been flakey so IOCP .",
"This approach actually works very well on Linux with performance comparable to IOCP on Windows .",
"I O completion ports are awesome .",
"After some research it seems the best way to handle sockets on Windows is the use of I O Completion Ports .",
"Supposing that you are using async method When your async I O operation is completed this means the IRP object is processed and now it will be queued to IOCP object .",
"I am trying to understand why IOCP is used .",
"I don t think IOCP mechanism is releated with hardware .",
"I have met a problem when I use IOCP in x64 platform .",
"@Ben : To be honest I find that IOCP programming leads to a more understandable programming style than you get using overlapped I O .",
"I have a suspicion that many IOCP servers just dodge this issue by only having one rx IOCP request in at a time probably at the expense of performance .",
"A handle that is associated with an I O Completion Port is removed from the port when the handle is closed .",
"If the port handle is non-NULL this handle specifies a new I O completion port to associate with the file handle .",
"To remove the I O completion port associated with the file handle set the port handle in the structure to NULL .",
"My hope is that should be close in performance to raw multi-threaded epoll IOCP assuming libuv is efficiently implemented .",
"And why instead IOCP is the preferred choice the POLLSET IOCP did not implemented through POLLSET",
"Since you are using IOCP you should have already been aware that like any other IOCP operation WSASend will take the entire data and notify you with an IOCP completion status when the send is fully finished even if the send completes immediately unless you use SetFileCompletionNotificationModes FILE SKIP COMPLETION PORT ON SUCCESS to disable it .",
"When they return true a completion occurs normally unless skip completion port processing is enabled in which case you have to handle it yourself and personally I don t decrement on ERROR SUCCESS when Skip Completion Port is enabled I just call the handler code that the IOCP completion would call as that does the decrement for me .",
"What other reasons are there to use IOCP",
"IOCP does not require hardware support .",
"Therefore I ve also created a client with the IOCP thread .",
"This makes me think you are not managing the IOCP correctly .",
"IOCP client example in C++ uses WSASyncselect or WSAEventSelect .",
"So for Sockets it is clearly IOCP on modern OS es .",
"Strictly speaking not all async IO in WinNT is IOCP .",
"The OVERLAPPED and the data buffer itself must live until the IOCP completion for the operation is extracted and processed ."
]
} | {
"confidence": [
72.04265594482422,
71.43031311035156,
68.92880249023438,
68.2679214477539,
67.76315307617188,
66.49182891845703,
63.45889663696289,
63.243003845214844,
62.78494644165039,
62.406375885009766,
62.37972640991211,
62.32590103149414,
61.99412536621094,
61.3765754699707,
61.21866989135742,
61.05125045776367,
60.5753173828125,
60.33124542236328,
60.24296569824219,
60.00849914550781
],
"content": [
"Question : Why do many people say I O completion port is fast and nice model What is the I O completion port s advantages and disadvantages I want to know some points which make faster IOCP than other model . If you can explain it comparing other models select epoll traditional multi thread process it would be better . Comment : For those still interested : Multithreaded Asynchronous I O I O Completion Ports - Dr Dubb s http : www.drdobbs.com cpp multithreaded-asynchronous-io-io-comple 201202921 .. . Answer : by using IOCP we can overcome the one-thread-per-client problem . It is commonly known that the performance decreases heavily if the software does not run on a true multiprocessor machine . Threads are system resources that are neither unlimited nor cheap . IOCP provides a way to have a few I O worker threads handle multiple clients input output fairly . The threads are suspended and don t use the CPU cycles until there is something to do . Also you can read some information in this nice book http : www.amazon.com Windows-System-Programming-Johnson-Hart dp 0321256190 http : rads.stackoverflow.com amzn click 0321256190 Comment : OVERLAPPED I O overcomes one-thread-per-client very well thank you . What IOCP brings to the table is as you have correctly mentioned sharing the load between multiple threads . For most applications using OVERLAPPED I O from a single thread is simpler and more efficient . Only high volume application servers should consider IOCP . Comment : @Ben : To be honest I find that IOCP programming leads to a more understandable programming style than you get using overlapped I O . This is especially true if you ve got multiple operations going on simultaneously like you would when copying a file . Comment : @Larry : I don t know how you handle overlapped I O but I use MsgWaitForMultipleObjectsEx and completion routines . Same state-machine programming style as IOCP and no need for thread-synchronization . Comment : @Ben Voigt +1 Fully agree with you it need only for high volume application servers",
"Question : null .. . Answer : I need to develop an application that uses IOCP in a UDP socket but the material found both in the Microsoft documentation as other examples or are vague or focus in the form of implementation . I would like someone with experience in the use of IOCP confirm that the correct usage is : .. . .. . Call CreateIoCompletionPort function to create an IOCP . I associate my socket to my IOCP with the same function . Perform an IO operation WSARecvFrom or WSASendTo in my case .. . Call GetQueuedCompletionStatus function that will block my process until my IO operation has completed this can be done in a thread pool for example .. . Realize the reading of the buffer or the operation result . I have not described the implementations of the socket because it is not the focus but is this the correct way to work with IOCPs A second question is about the application-design in the case of sending information . I read something that said that the application that works with IOCPs would not use direct calls to the output operations such as call directly WSASendTo function but use the PostQueuedCompletionStatus function to generate an event in the thread to run this operation . According to what I ve studied I don t see any advantage in terms of performance . Assuming that both forms are applied to a thread pool there is advantage in using PostQueuedCompletionStatus to perform the output operation Comment : Microsoft documentation on I O Completion Ports https : msdn.microsoft.com en-us library aa365198 VS.85 .aspx has a number of links to succeeding topics . Interesting in that it appears you can use an I O Completion Port to queue messages between threads without any actual I O by using the GetQueuedCompletionStatus function to wait for a message in one thread and the PostQueuedCompletionStatus function in the thread sending a message . Comment : See the answer for Sockets using GetQueuedCompletionStatus and ERROR MORE DATA http : stackoverflow.com questions 31883438 sockets-using-getqueuedcompletionstatus-and-error-more-data . A question Using IOCP with UDP http : stackoverflow.com questions 11361208 using-iocp-with-udp has a nice looking discussion . Comment : is this the correct way to work with IOCPs - it is one way to work with IOCPs yes . use the PostQueuedCompletionStatus function to generate an event in the thread to run an operation - not a common way to do it and offers no real benefit . There is nothing wrong with issuing a direct I O operation at the time you need to perform it . Comment : Before Windows Vista any outstanding overlapped I O operations that were initiated by a thread would be cancelled when that thread exited . To avoid this causing problems you could instead force I O operations to be executed on a thread that you controlled the lifetime of by first using a PostQueuedCompletionStatus call to transfer a request to issue an I O request to your I O thread pool . This kind of behaviour is no longer required as from Windows Vista onwards pending I O requests are no longer cancelled when the issuing thread exits . It was an esoteric design that s no longer needed .",
"Question : In IOCP when starting an IO operation such as WSARecv a completion packet will be sent to the completion port when the IO operation completes . What I want to know is what IO operations causes completion packets to be sent to the completion port when using sockets for example I know that WSASend WSARecv AcceptEx and PostQueuedCompletionStatus causes completion packets to be sent . Is there other IO operations that does that .. . Answer : Copied from the site https : msdn.microsoft.com en-us library windows desktop aa365198 28v vs.85 29.aspx .. . .. . Supported I O Functions .. . .. . The following functions can be used to start I O operations that complete by using I O completion ports . You must pass the function an instance of the OVERLAPPED structure and a file handle previously associated with an I O completion port by a call to CreateIoCompletionPort to enable the I O .. . .. . completion port mechanism : .. . .. . 1 . ConnectNamedPipe .. . 2 . DeviceIoControl .. . 3 . LockFileEx .. . 4 . ReadDirectoryChangesW .. . 5 . ReadFile .. . 6 . TransactNamedPipe .. . 7 . WaitCommEvent .. . 8 . WriteFile .. . 9 . WSASendMsg .. . 10 . WSASendTo .. . 11 . WSASend .. . 12 . WSARecvFrom .. . 13 . WSARecvMsg .. . 14 . WSARecv",
"Question : Why do many people say I O completion port is fast and nice model What is the I O completion port s advantages and disadvantages I want to know some points which make faster IOCP than other model . If you can explain it comparing other models select epoll traditional multi thread process it would be better . Comment : For those still interested : Multithreaded Asynchronous I O I O Completion Ports - Dr Dubb s http : www.drdobbs.com cpp multithreaded-asynchronous-io-io-comple 201202921 .. . Answer : I O completion ports are provided by the O S as an asynchronous I O operation which means that it occurs in the background usually in hardware . The system does not waste any resources e.g . threads waiting for the I O to complete . When the I O is complete the hardware sends an interrupt to the O S which then wakes up the relevant process thread to handle the result . WRONG : IOCP does NOT require hardware support see comments below .. . .. . Typically a single thread can wait on a large number of I O completions while taking up very little resources when the I O has not returned . Other async models that are not based on I O completion ports usually employ a thread pool and have threads wait for I O to complete thereby using more system resources . The flip side is that I O completion ports usually require hardware support and so they are not generally applicable to all async scenarios . Comment : What hardware support I don t think IOCP mechanism is releated with hardware . Comment : Async I O does not use a thread pool ever . Some widely-used frameworks have put a thread pool wrapper around synchronous I O calls but that isn t async I O . Comment : IOCP does not require hardware support . Comment : @Benjamin @Paul Betts you are both right . +1 to both comments . Hardware support is not necessary for IOCP . I was wrongly under the impression that IOCP is used mostly for disk or device I O that it requires hardware interrupt support for notifying the I O completion . Comment : The phrasing here was bad but the objections are similarly misleading . The point here is that hardware can perform operations e.g . posting network buffers etc without the involvement of a userland thread . The program s thread need only wake after the hardware signals that an event of interest has occurred .",
"Question : Using winsock you can configure sockets or seperate I O operations to overlap . This means that calls to perform I O are returned immediately while the actual operations are completed asynchronously by separate worker threads . Winsock also provides completion ports . From what I understand a completion port acts as a multiplexer of handles sockets . A handle can be demultiplexed if it isn t in the middle of an I O operation i.e . if all its I O operations are completed . So on to my question.. . does linux support completion ports or even asynchronous I O for sockets Comment : epoll is Linux s fastest method for writing servers . Note that Linux currently has a greater share of the Internet server market than Windows . Comment : @unixman83 : I m aware of epoll . I was just curious because there is mention of asynchronous I O support on Linux but I wasn t entirely sure whether there was support for sockets in particular which BlackAura confirmed . As a side note epoll may not be the best solution all the time see sheddingbikes.com posts 1280829388.html http : sheddingbikes.com posts 1280829388.html . .. . Answer : Read the blog entry from Google on libevent you can implement IOCP semantics on Unix using asynchronous IO but cannot directly implement asynchronous IO semantics using IOCP .. . .. . http : google-opensource.blogspot.com 2010 01 libevent-20x-like-libevent-14x-only.html .. . .. . For an example cross-platform asynchronous IO with a BSD socket API look at ZeroMQ as recently published on LWN.net .. . .. . http : www.zeromq.org .. . .. . LWN article .. . .. . http : lwn.net Articles 370307 Comment : I don t think libevent supports asynchronous I O and it even says so on the linked page that it s for non-blocking sockets . I guess I ll look into it deeper later . 0MQ is also interesting but I don t think it s what I m looking for . It seems to be a message-passing library similar to erlang actors Comment : @someguy asynchronous I O comprehends includes non-blocking sockets .",
"Question : I m using I O completion ports on Windows for serial-port communication we will potentially have lots and lots of serial-port usage . I ve done the usual creating the IOCP spinning up the I O threads and associating my CreateFile handle with the IOCP CreateFile was called with FILE FLAG OVERLAPPED . That s all working fine . I ve set the COMMTIMEOUTS all to 0 except ReadIntervalTimeout which is set to MAXDWORD in order to be completely async . In my I O thread I ve noticed that GetQueuedCompletionStatus blocks indefinitely . I m using an INFINITE timeout . So I put a ReadFile call right after I associate my handle with the IOCP . Now that causes GetQueuedCompletionStatus to release immediately for some reason with 0 bytes transferred but there s no errors it returns true GetLastError reports 0 . I obviously want it to block if there s nothing for it to do . If I put another ReadFile after GetQueuedCompletionStatus then another thread in the pool will pick it up with 0 bytes transferred and no errors . In the examples I ve seen and followed I don t see anyone setting the hEvent on the OVERLAPPED structure when using IOCP . Is that necessary I don t care to ever block IOCP threads -- so I ll never be interested in CreateEvent .. . 1 . If it s not necessary what could be causing the problem GetQueuedCompletionStatus needs to block until data arrives on the serial-port . Are there any good IOCP serial-port examples out there I haven t found a complete serial-port + IOCP example out there . Most of them are for sockets . In theory it should work for serial ports files sockets etc . .. . Answer : I figured it out -- I wasn t calling SetCommMask with EV RXCHAR EV TXEMPTY and then WaitCommEvent with the OVERLAPPED struct . After I did that my IOCP threads behaved as expected . GetQueuedCompletionStatus returned when a new character appeared on the port . I could then call ReadFile . So to answer the original question : no you don t need to set hEvent for IOCP with serial ports .",
"Question : Using winsock you can configure sockets or seperate I O operations to overlap . This means that calls to perform I O are returned immediately while the actual operations are completed asynchronously by separate worker threads . Winsock also provides completion ports . From what I understand a completion port acts as a multiplexer of handles sockets . A handle can be demultiplexed if it isn t in the middle of an I O operation i.e . if all its I O operations are completed . So on to my question.. . does linux support completion ports or even asynchronous I O for sockets Comment : epoll is Linux s fastest method for writing servers . Note that Linux currently has a greater share of the Internet server market than Windows . Comment : @unixman83 : I m aware of epoll . I was just curious because there is mention of asynchronous I O support on Linux but I wasn t entirely sure whether there was support for sockets in particular which BlackAura confirmed . As a side note epoll may not be the best solution all the time see sheddingbikes.com posts 1280829388.html http : sheddingbikes.com posts 1280829388.html . .. . Answer : If you re looking for something exactly like IOCP you won t find it because it doesn t exist . Windows uses a notify on completion model hence I O Completion Ports . You start some operation asynchronously and receive a notification when that operation has completed . Linux applications and most other Unix-alikes generally use a notify on ready model . You receive a notification that the socket can be read from or written to without blocking . Then you do the I O operation which will not block . With this model you don t need asynchronous I O . The data is immediately copied into out of the socket buffer . The programming model for this is kind of tricky which is why there are abstraction libraries like libevent . It provides a simpler programming model and abstracts away the implementation differences between the supported operating systems . There is a notify on ready model in Windows as well select or WSAWaitForMultipleEvents which you may have looked at before . It can t scale to large numbers of sockets so it s not suitable for high-performance network applications . Don t let that put you off - Windows and Linux are completely different operating systems . Something that doesn t scale well on one system may work very well on the other . This approach actually works very well on Linux with performance comparable to IOCP on Windows . Comment : This is the answer I needed . Thanks : Comment : Any synchronous I O will block so long as you re writing more data than the buffer can hold . And if the data you re writing has been paged out your process will block on the page-fault . Comment : @BlackAura : Wouldn t WSAAsyncSelect support a large number of sockets on Windows with the notify-on-ready model Admittedly I ve not used it with a large number of sockets but since the socket handle is passed as an event parameter and there s no bitmask or array of sockets to query it seems like it ought to scale up magnificently . Comment : @Ben Voigt The problem with WSAAsyncSelect is that it s built around the window procedure API . Its message loop is slow compared to the other polling functions . Having to handle thousands of sockets can significantly degrade the performance of your program . By the way what do you by there s no bitmask You still have to pass flags . Comment : @Vladislav Vaintroub : WSARecv schedules the I O operation to be performed . When the operation is completed GetQueuedCompletionStatus will return . See the differences between readiness events and completion events .",
"Question : I poll a lot of devices in network more than 300 by iterative ping . The program polls the devices sequentially so it s slow . I d like to enhance the speed of polling . There some ways to do this in Delphi 7 : .. . .. . 1 . Each device has a thread doing ping . Manage threads manually . 2 . Learn and use Indy 10 . Need examples . 3 . Use overlapped I O based on window messages . 4 . Use completion ports based on events . What is faster easier Please provide some examples or links for example . Comment : i have similar tool . its just lot of threads waiting for ICMP echo replies . Comment : If you put out enough pings you ll set off intrusion detection systems . .. . Answer : Personally I would go with IOCP . I m using that very successfully for the transport implementation in NexusDB . If you want to perform 300 send receive cycles using blocking sockets and threads in parallel you end up needing 300 threads . With IOCP after you ve associated the sockets with the IOCP you can perform the 300 send operations and they will return instantly before the operation is completed . As the operations are completed so called completion packages will be queued to the IOCP . You then have a pool of threads waiting on the IOCP and the OS wakes them up as the completion packets come in . In reaction to completed send operations you can then perform the receive operations . The receive operations also return instantly and once actually completed get queued to the IOCP . The real special thing about an IOCP is that it knows which threads belong to it and are currently processing completion packages . And the IOCP only wakes up new threads if the total number of active threads not in a kernel-mode wait state is lower than the concurrency number of the IOCP by default that equals the number of logical cores available on the machine . Also if there are threads waiting for completion packages on the IOCP which haven t been started yet despite completion packages being queued because the number of active threads was equal to the concurrancy number the moment one of the threads that is currently processing a completion package enters a kernel-mode wait state for any reason one of the waiting threads is started . Threads returning to the IOCP pick up completion packages in LIFO order . That is if a thread is returning to the IOCP and there are completion packages still waiting that thread directly picks up the next completion package instead of being put into a wait state and the thread waiting for the longest time waking up . Under optimal conditions you will have a number of threads equal to the number of available cores running concurrently one on each core picking up the next completion package processing it returning to the IOCP and directly picking up the next completion package all without ever entering a kernel-mode wait state or a thread context-switch having to take place . If you would have 300 threads and blocking operations instead not only would you waste at least 300 MB address space for the reserved space for the stacks but you would also have constant thread context switches as one thread enters a wait state waiting for a send or receive to complete and the next thread with a completed send or receive waking up . Thorsten Engler 12 hours ago Comment : Can you expand on that How do IO Completion Ports help you with pinging All Ping does is say yes I m a network device and I ve decided to acknowledge that I m here because nobody disabled ICMP request responses on this device . If you used completion ports wouldn t you also need to use raw-sockets to roll-your-own ICMP And aren t raw-sockets blocked in Win XP 7 Vista Comment : Thorsten : useful info but this should be in the answer itself IOCP may mean nothing to the original questioner without a link or anything it helps if answers contain a bit more detail . You can edit your answer to update it . Comment : @David M the original questioner listed Use completion ports based on events . That s IOCP I O completion port . So it seemed pretty clear that the original questioner is aware of IOCPs . But I ve now moved the comments into the actual answer . Thanks for pointing that out . Comment : I m a poster and I m looking for better realization of tracking devices acceptability . Comment : I have read some info about IOCP but I still not use it in practice .",
"Question : Hey I wanted to automate the process where I would be able to automate the process of enabling making available the I O completion port IOCP in aix . For some reason when I look around everywhere it says to use smitty to enable it . Is it possible to do it without the use of smitty and if so how Or does anyone now if i was to still use smitty can I automate the process using a script .. . Answer : Found out the procedure . Since smit smitty runs external commands it was running mkdev -l iocp0 to make IOCP available",
"Question : I m porting a c++ app to c that uses IOCP on it s server . Can mono handle IOCP as well as windows will i get comparable performance to c++ or i should try something else thanks .. . Answer : Do you target mono for windows If it is linux then there is a different async i o model not completion ports . I assume mono developers did their best to support it .",
"Question : I have a question about the correct approach for detecting client disconnects using named-pipes with I O completion ports . We have a server that creates child processes with stdin stdout redirected to named-pipes . The pipes are opened OVERLAPPED . We ve seen that after the client issues CreateFile the I O completion port receives a packet with lpNumberOfBytes of zero -- which quite effectively indicates a connection from the client . But detecting when the child-process has closed its stdin stdout and exited does not generate a similar event . We ve come up with two approaches to detecting the named pipe disconnects .. . .. . 1 periodically poll the process HANDLE of the child-process to detect when the process has ended .. . .. . OR .. . .. . 2 create a separate thread which blocks on WaitForSingleObject on the child-process s HANDLE and when it becomes signaled the process has ended to then generate PostQueuedCompletionStatus to the I O completion port with a prearranged COMPLETION KEY . Neither of these is difficult -- but I wanted to make sure I wasn t missing something obvious . Has anyone found an alternative to being notified when a named pipe associated with IOCP has been closed .. . Answer : Ok I discovered why the IOCP was not delivering disconnect packets and it had todo with how I was testing the issue . We had developed a unittest harness and our unittest was acting as both server and client . When the child-process ended the child s write-pipe handle was still open in the unittest and therefore IOCP did not unblock any handler threads . To effectively run a pipe server requires you create a new thread and within that thread to do the work of connecting to the pipe creating the child-process and waiting for the process to end . After the child ends to then close the pipe handle which causes IOCP to then deliver a dequeue packet with lpNumberOfBytes set to zero . Here is a sample of how we did this from a thread created with beginthread .",
"Question : I need to add timers support in an application based on I O Completion Ports IOCP . I would like to avoid the use of a specific thread to manage timers . On Linux you can create a timer that delivers expiration notifications via a file-descriptor see timerfd.h man so it s great to use it for example with epoll if your application is based on epoll . On Windows you can use waitable timers with an asynchronous procedure call ACP see http : msdn.microsoft.com en-us library ms686898 v VS.85 .aspx .. . .. . If you are interested kqueue BSD Mac OS supports timers by default see EVFILT TIMER . With I O Completion Ports we have to use objets that support overlapped I O . So is there such a timer for IOCP Best regards .. . .. . C drics .. . Answer : You could use waitable timers and queue a custom packet to the completion port using PostQueuedCompletionStatus . But remember that if there are multiple worker threads only one of the thread will be notified .",
"Question : WSASend will return immediately whether the data will be sent or not . But how to make sure that data will be sent for example I have a button in my UI that will send Hello World when pressed . Now I want to make sure that when the user click on this button the Hello World will be sent at some point but WSASend could return WSAEWOULDBLOCK indicating that data will not be sent so should I enclose WSASend in a loop that does not exit until WSASend returns 0 success . Note : I am using IOCP . Comment : Since you are using IOCP you should have already been aware that like any other IOCP operation WSASend will take the entire data and notify you with an IOCP completion status when the send is fully finished even if the send completes immediately unless you use SetFileCompletionNotificationModes FILE SKIP COMPLETION PORT ON SUCCESS to disable it . WSAEWOULDBLOCK does not apply to IOCP ERROR IO PENDING WSA IO PENDING is used instead . Comment : Right asynchronous operations whether IOCP overlapped event or completion callback model use WSA IO PENDING rather than WSAEWOULDBLOCK . Comment : WSAEWOULDBLOCK applies only to nonblocking sockets . Comment : But MSDN says about WSAEWOULDBLOCK : Overlapped sockets : There are too many outstanding overlapped I O requests . Comment : That should not apply to you since hopefully you will only have one outstanding IO at a time . This is the standard way to go about things . .. . Answer : Overlapped Socket I O .. . .. . If an overlapped operation completes immediately WSASend returns a value of zero and the lpNumberOfBytesSent parameter is updated with the number of bytes sent . If the overlapped operation is successfully initiated and will complete later WSASend returns SOCKET ERROR and indicates error-code WSA IO PENDING . .. . .. . .. . The error-code WSA IO PENDING indicates that the overlapped operation has been successfully initiated and that completion will be indicated at a later time . Any other error-code indicates that the overlapped operation was not successfully initiated and no completion indication will occur . .. . So as demonstrated in docs https : msdn.microsoft.com en-us library windows desktop ms742203 v vs.85 .aspx you don t need to enclose in a loop just check for a SOCKET ERROR and if the last error is not equal to WSA IO PENDING everything is fine : Comment : Yes - I just edit my answer from WSAEWOULDBLOCK to WSA IO PENDING . Thanks have an upvote :",
"Question : I am aware of Indy http : en.wikipedia.org wiki Internet Direct ICS http : www.vclcomponents.com Delphi Winsock Internet ICS Internet Component Suite-info.html Synapse http : synapse.ararat.cz doku.php about and Clever InetSuite http : www.clevercomponents.com products inetsuite suite.asp none of which support IOCP http : en.wikipedia.org wiki Input output completion port . Is there anything else out there Edit : I found iocpclasses http : iocpclasses.sourceforge.net It s written in Delphi5 . Better than nothing I suppose . .. . Answer : Indy 10 has experimental support for fibers and IOCP : .. . .. . From Indy knowledge base http : www.indyproject.org docsite html frames.html frmname topic frmfile WhatsNewIndy10.html : .. . .. . Indy 10 provides experimental support for the Fiber and I O Completion Ports API in the Windows platforms . This support is designed to aid in creating more scalable servers where thousands of simultaneous client connections are required . For small- and medium-sized projects the traditional thread-based servers are still available . .. . Fiber and IOCP APIs are supported only for the Windows 2000 2003 and XP operating systems using Delphi version 7 . Windows 95 98 and ME are not supported . Delphi compilers prior to version 7 are also unsupported due to critical changes in the VCL since those releases . This is not installed by default and I haven t used it myself so I am not sure how much usable it is . I guess you need to download the latest SVN revision from their repository to use this experimental feature . Using it must be straightforward you create a IdTcpServer instance and instead of the default scheduler you use the scheduler class which provides IOCP support . The rest should be considered internal work of the provided scheduler class . Comment : .. . and does it work Comment : Just to complete @Arnaud s question no Indy does not have any IOCP capabilities http : stackoverflow.com questions 15924616 how-to-listen-1200-devices 15927999 comment22693455 15927999 .",
"Question : Using winsock you can configure sockets or seperate I O operations to overlap . This means that calls to perform I O are returned immediately while the actual operations are completed asynchronously by separate worker threads . Winsock also provides completion ports . From what I understand a completion port acts as a multiplexer of handles sockets . A handle can be demultiplexed if it isn t in the middle of an I O operation i.e . if all its I O operations are completed . So on to my question.. . does linux support completion ports or even asynchronous I O for sockets Comment : epoll is Linux s fastest method for writing servers . Note that Linux currently has a greater share of the Internet server market than Windows . Comment : @unixman83 : I m aware of epoll . I was just curious because there is mention of asynchronous I O support on Linux but I wasn t entirely sure whether there was support for sockets in particular which BlackAura confirmed . As a side note epoll may not be the best solution all the time see sheddingbikes.com posts 1280829388.html http : sheddingbikes.com posts 1280829388.html . .. . Answer : Boost ASIO implements Windows style IOCP Proactor design pattern on Linux using epoll Reactor pattern . See http : think-async.com Asio asio-1.5.3 doc asio overview core async.html Comment : Might be more useful to quote and summarize on that page from the linky supplied as link rot will happen and users will click on it to find 404 at some point .",
"Question : I am trying to utilize I O Completion Ports using WCF Callback in a Duplex Contract . I am using the following simple line to do this : .. . .. . Where OnPushData is a callback contract operation that is implemented on the client-side . Since this line is representing a Response Output operation using some network-interface and WCF is also relying on ThreadPool threads that can be used as a worker threads or I O CompletionPortThread it will be a good idea to utilize I O CompletionPortThreads by writing to completion port using TAP or APM Patterns As the article I referred to is suggesting instead of using a normal worker thread which will increase the performance considerably . Comment : I m not sure you re using the right tool for the job . IIUC you re programming read : rolling your own a pub sub server . Perhaps existing implementations would give you a good solution in less time . Take a look at SignalR signalr.net http : signalr.net Redis redis.io topics pubsub http : redis.io topics pubsub etc . Comment : Parallel.ForEach is less likely to use IO threads as you wished blogs.msdn.com b ericeil archive 2008 06 20 http : blogs.msdn.com b ericeil archive 2008 06 20 windows-i-o-threads-vs-managed-i-o-threads.aspx as it should wrap the worker threads instead . You are using WCF in a way that against its original design . Every WCF call should be small and quick with a reasonable timeout . Like the other comment suggests for unpredictable timeout case or long execution tasks SignalR is a way better solution to try . Comment : The processing time itself is not that much . Actually it is only a few milliseconds 10 and it is running on a dedicated thread separately from WCF . I can not switch to SignalR right now cause WCF is a standard for our company and the whole application is already built on top of WCF . I am using parallel.for each for only to call a client callback method which is pretty much defined as a Duplex contract for WCF . Comment : Lex Li Thanks for your helpful link it explains a lot . .. . Answer : Short Answer : .. . The trick to be able to use Async I O with Duplex WCF Contract is the following simple code : .. . .. . Simply you need to change the return-type of your callback contract method to be Task . but this is not enough you need to implement an async method like this : .. . .. . That is all . This actually boosts the performance of my application . and Now I am able to see I O completion Ports threads utilized calling ThreadPool.GetAvailableThreads workers IO .. . .. . Some Explinations : .. . As I understand to be able to use Async I O mechanism you will need to do the following : .. . .. . 1- Determining your I O operation . 2- A method that will encapsulate your async I O logic . 3- A callback mechanism that will be called when async I O is finished and its purpose mainly is to get the result-of the Async I O . 4- An object that will holds your Async I O result . .NET framework provides 3 design-patterns to do so : .. . .. . 1- IAsyncResult Asynchrnous Pattern : where Beginxxx and Endxxx will encapsulate your async logic along with a Callback Delegate that represents the callback method and of course an IAsyncResult object used to hold your async I O result . 2- Task Based Asynchronous Pattern : Using one class only which is Task along with async-await keywords that facilitate the using of TAP pattern . 3- Event Based Asynchronous Pattern . .. . .. . You can read more about how you can use these patterns with WCF Services at How to Implement an Asynchronous Service Operation https : msdn.microsoft.com en-us library ms731177 v vs.110 .aspx .. . .. . However The previous link is great for implementing async request response service though there is no explanation on how to do so with callback contract . Unfortunately in my case I have to implement a subscriber publisher patttern using WCF framework where data publishing is initiated by the service side periodically each 1 second . More Details : .. . I will try to make this as short as possible : .. . WCF is relying on ThreadPool provided by .NET Framework . ThreadPool has 2 kind of threads : .. . 1- Worker Threads : for Compute-Bound operations . 2- I O Completion Port Threads : Used to get the result-of an I O operation . You must differentiate between IOCP Thread and IOCP Object initiated by CLR . IOCP Thread role is to deliver the result-of I O operation while IOCP Object is the one initiated by CLR to recieve all I O requests . In other words they collaborate to achieve I O operation . First thing you need to know is that any I O request you made will result in a system call that will initiate an object Called IRP I O request Packet whether you are using synchronous or asynchronous paradigm . I O Completion Port IOCP is nothing but a queue-like object initiated by the CLR . This object is responsible for receiving all I O Completed requests IRPs . At this point there are 2 possibilities here : .. . 1- Your I O operation is called by a synchronous method : In this case the caller thread will be blocked until your I O operation is done . 2- Your I O operation is called by an async method : In this case the caller thread will continue the execution and it will not be blocked for the I O operation until completion . Supposing that you are using async method When your async I O operation is completed this means the IRP object is processed and now it will be queued to IOCP object . ThreadPool IOCP threads will come to play the role of pulling the relative IRP from IOCP which will be wrapped in IAsyncResult for APM or Task object for TAP and passing this object to your application Level through a Callback Mechanism . Some References : .. . .. . 1 : https : msdn.microsoft.com en-us library ms734701.aspx .. . 2 : http : blog.stephencleary.com 2012 08 async-wcf-today-and-tomorrow.html .. . 3 : http : southworks.com blog 2013 10 29 asynchronous-io-in-c-io-completion-ports .. . 4 : http : southworks.com blog 2013 08 02 asynchronous-io-in-c-introduction .. . 5 : http : mikehadlow.blogspot.com 2011 03 7000-concurrent-connections-with.html .. . 6 : https : msdn.microsoft.com en-us library ms731177 v vs.110 .aspx .. . 7 : http : www.amazon.es Clr-Via-C-Developer-Reference dp 0735667454",
"Question : I m writing an IO completion port based server source code here http : code.google.com p pyiocp source browse 01 20- 20Work 20in 20Progress 03 20- 20Serving.py using the Windows DLL API in Python using the ctypes module . But this is a pretty direct usage of the API and this question is directed at those who have a knowledge of IOCP not Python . As I understand the documentation for CreateIoCompletionPort you specify your user defined completion key when you call this function with a file handle in my case a socket you are associating with the created IOCP . When you get around to calling GetQueuedCompletionStatus you get a completion key-value along with a pointer to an overlapped object . The completion key should identify what overlapped object and request has completed . However let s say I pass in 100 as the completion key in my CreateIoCompletionPort call with an overlapped object . When the same overlapped object has its IO completed and it arrives back through GetQueuedCompletionStatus the completion key that accompanies it is much larger and bares no resemblance to the original value of 100 . Am I misunderstanding how the completion key works or must I be doing it wrong in the source code I linked above .. . Answer : You should think about the completion key as per connection data and the extended overlapped structure as per i o operation . Some people use an extended overlapped structure for BOTH and store all the information that they need in the extended overlapped structure . I have always stored a reference counted object that wraps my socket in the completion key and a reference counted data buffer as an extended overlapped structure . If you re interested you can see some example IOCP code in C++ here http : www.serverframework.com products---the-free-framework.html . The completion key is effectively just an opaque handle to data that the I O completion system will give back to you when a completion occurs on the socket .",
"Question : I m currently working on a server application that s written in the proactor style using select + a dynamically sized thread pool there s a simple mechanism based on keeping track of idle worker threads . I need to modify it to use IOCP instead of select on windows and I m wondering what the best way to utilize threads is . For background information the server has stateful long-lived connections and any request may require significant processing and block . In fact most requests call into customer-written code which may block at will . I ve read that the OS can tell when an IOCP thread blocks and unblock another one but it doesn t look like there s any support for creating additional threads under heavy load or if many of the threads are blocked . I ve read one site which suggested that you have a small fixed-size thread pool which uses IOCP to deal with I O only which sends requests which can block to another dynamically-sized thread pool . This seems non-optimal due to the additional thread-synchronization required although you can use IOCP as well for the tasks for the second thread pool and the larger number of threads needed extra context switching . Is that the best way Comment : I m not sure I understand what the problem is . You can easily keep track of how many threads are available i.e . waiting for a completion packet and start additional threads if the number drops too low . .. . Answer : It sounds like what you ve read is one of my articles on IOCP most probably this one http : www.codeproject.com Articles 2337 A-reusable-high-performance-socket-server-class . That s likely a bit out of date now as the whole problem that it sort to avoid that of I O being cancelled if the thread that issued it exits before the I O completes is no longer a problem with any of Microsoft s currently supported OS s it s only an issue on XP and before . You re correct in noticing that my design from 2000 2002 was sub optimal from a context switching point of view but it worked pretty well at the time given the constraints of the underlying API . On a modern OS there s no real advantage in having separate thread pools for I O and blocking work . A more modern solution would probably involve dynamically expanding and reducing the number of I O threads servicing the IOCP as required . You d need to track the number of IOCP threads that are active i.e . not waiting on GetQueuedCompletionStatus and spawn more when there are too few . Likewise just as a thread is about to go back and wait on GQCS you could check to see if you have too many and if so let it die instead . I should probably update those articles .",
"Question : I have the following simplified IO Completion Port server C++ code : .. . .. . 1 The first issue I have is with the initial read . On client connection accept I issue a read . As the client hasn t sent any data yet WSAGetLastError is WSA IO PENDING and the read method returns . When the client then sends data the thread remains stuck in the GetQueuedCompletionStatus call as I assume I need another WSARecv call . Am I supposed to keep looping the read method until data arrives That doesn t seem logical I thought by issuing the initial read GetQueuedCompletionStatus would complete when data arrived . 2 I need to read and write data bi-directional without acknowledgements . Therefore I ve also created a client with the IOCP thread . Is it actually possible to do this with completion ports or does a read have to be followed by a write Sorry for what feels like basic questions but after trawling the internet and building IOCP examples I m still unable to answer the questions . Many thanks in advance . .. . Answer : On client connection accept I issue a read . As the client hasn t sent any data yet WSAGetLastError is WSA IO PENDING and the read method returns . That is normal behavior . When the client then sends data the thread remains stuck in the GetQueuedCompletionStatus call as I assume I need another WSARecv call . No you do not need another call . And if it is getting stuck then you are not associating the read with the I O Completion Port correctly . Am I supposed to keep looping the read method until data arrives No . You need to call WSARecv one time for the initial read . The WSA IO PENDING error means the read is waiting for data and will signal the I O Completion Port when data actually arrives . DO NOT call WSARecv or any other read function until that signal actually arrives . Then you can call WSARecv again to wait for more data . Repeat until the socket is disconnected . I thought by issuing the initial read GetQueuedCompletionStatus would complete when data arrived . That is exactly what is supposed to happen . 2 I need to read and write data bi-directional without acknowledgements . Therefore I ve also created a client with the IOCP thread . Is it actually possible to do this with completion ports .. . .. . Yes . Reading and writing are separate operations they are not dependent on each other . does a read have to be followed by a write Not if your protocol does not require it no . Now with that said there are some issues with your code . On a minor note WSAAccept is synchronous you should consider using AcceptEx instead so it can use the same I O Completion Port for reporting new connections . But more importantly when a pending I O operation fails GetQueuedCompletionStatus returns FALSE the returned LPOVERLAPPED pointer will be non-NULL and GetLastError will report why the I O operation failed . However if GetQueuedCompletionStatus itself fails the returned LPOVERLAPPED pointer will be NULL and GetLastError will report why GetQueuedCompletionStatus failed . This difference is clearly explained in the documentation https : msdn.microsoft.com en-us library windows desktop aa364986.aspx but your while-loop is not accounting for it . Use a do..while loop instead and act according to the LPOVERLAPPED pointer : .. . .. . On a side note instead of using an event object to signal when completionPortThreadProc should exit consider using PostQueuedCompletionionStatus https : msdn.microsoft.com en-us library windows desktop aa365458.aspx instead to post a termination completionKey to the I O Completion Port then your loop can look for that value : Comment : Hi Remy Many thanks for your long explanation it s very much appreciated I was going insane here . I will work through your comments and report back I took a fair amount of the code from other examples which I assumed worked . Comment : Hi Remy ok the new loop was key and specifically checking GetLastError in if perIoData . I O had failed with WSA OPERATION ABORTED hence why it never completed . I had an accept thread that issued the read and then ended . I would have thought it would have still worked but obviously my design is wrong . Many thanks for your help I will use your thoughts in my new design . Hopefully your comments will also help others as a lot of examples seemed to use code like mine . Comment : When a thread terminates any I O operations it has started that are still pending are automatically aborted . You should be calling WSAAccept in a loop within a thread that lives for at least the lifetime of the listening socket or move the client acceptance to the IO Completion Port and issue the initial accept from such a thread so I Os don t get aborted. . Comment : Understood and thanks Comment : Remy the thread termination and outstanding I O issue ceased to be an issue from Windows Vista onwards.. . See Windows via C++ Richter lenholgate.com blog 2008 02 http : www.lenholgate.com blog 2008 02 major-vista-overlapped-io-change.html",
"Question : I m using IOCP on UDP socket and the UDP socket may be closed in another thread . So how can I free Per Socket Context and Per I O Context which associated with SOCKET safely When I close the socket there will still be un-completed I O request in kernel queue . If I free context just when socket closed the GetQueueCompletionStatus may failed . Now my question is when to free context .. . Answer : I reuse my per-socket structures . After I have received completion events for all of the read and write operations that are required for that connection I call TransmitFile http : msdn.microsoft.com en-us library ms740565 28VS.85 29.aspx with the TF DISCONNECT and TF REUSE SOCKET flags to reset the socket without having to close it . I also reset the per-connection data once the completion event for the TransmitFile call comes through ."
]
} | [
"yes-answer-long",
"yes-answer-short"
] | asynchronous | UNK_RELATION |
68hc11@microcontroller@57 | 68hc11 -- the 68hc11 6811 or hc11 for short is an 8-bit @placeholder c family introduced by motorola . | {
"confidence": [
49.03727722167969,
49.03727722167969,
47.00957489013672,
46.11655807495117,
45.163848876953125,
43.21263122558594,
41.63518142700195,
40.59759521484375,
39.80497360229492,
39.3834228515625,
39.3834228515625,
39.3834228515625,
39.171871185302734,
37.459068298339844,
37.459068298339844,
37.459068298339844,
35.62886047363281,
35.62886047363281,
35.62886047363281,
35.62886047363281,
34.01810836791992,
31.01209259033203,
31.01209259033203,
30.050254821777344,
30.050254821777344,
29.899688720703125,
29.181884765625,
25.33343505859375,
24.631359100341797,
24.631359100341797,
23.006832122802734,
20.800701141357422,
19.67121124267578,
18.903438568115234,
18.565996170043945,
18.544822692871094,
17.993797302246094,
17.725677490234375,
17.26308250427246,
17.073230743408203,
17.073230743408203,
17.073230743408203,
17.073230743408203,
16.72810935974121,
16.58452796936035,
16.58452796936035,
16.58452796936035,
16.58452796936035,
16.58452796936035,
16.58452796936035,
16.58452796936035,
16.58452796936035,
16.58452796936035,
16.306896209716797,
16.194387435913086,
16.194387435913086,
16.194387435913086,
16.194387435913086,
16.194387435913086,
16.194387435913086,
15.901001930236816,
15.656516075134277,
14.400018692016602,
14.400018692016602,
14.038945198059082,
13.848481178283691,
13.848481178283691,
13.848481178283691,
13.848481178283691,
13.848481178283691,
13.848481178283691,
13.848481178283691,
13.848481178283691,
13.848481178283691,
13.848481178283691,
13.848481178283691,
13.848481178283691,
13.848481178283691,
13.848481178283691,
13.848481178283691,
13.848481178283691,
13.848481178283691,
13.848481178283691,
13.848481178283691,
13.848481178283691,
13.848481178283691,
13.848481178283691,
13.848481178283691,
13.848481178283691,
13.848481178283691,
13.848481178283691,
13.848481178283691,
13.848481178283691,
13.848481178283691,
13.848481178283691,
13.848481178283691,
13.848481178283691,
13.848481178283691,
13.848481178283691,
13.848481178283691
],
"content": [
"Is 68HC11 use pipelined",
"BTW 68HC11 is big-endian .",
"For Asembly 68hc11 This is an assigment to handle in paper .",
"GNU 68HC11 12 is based on GCC 3.3.6 .",
"A friend has asked for help with some 68HC11 assembly code .",
"The original creator 2500 AD software was bought by Avocet http : www.avocetsystems.com who has kept up the 68HC11 product line http : www.avocetsystems.com company techshee asheets 68HC11.htm .",
"That part will be non-trivial on a 68HC11 which has no support for even 32-bit operations .",
"Does 68HC11 have Pipeline technique for improving the performance of the Integrated Circuit",
"The 68HC11 has a 16-bit accumulator so as soon as your result overflows this you need to do math operations in pieces .",
"How to implement Taylor series to calculate sine value in assembly using 68hc11 .",
"As 68hc11 does not support floating-point display value will be in integer. . e.g .",
"http : stackoverflow.com questions 1959335 assembly-code-for-68hc11-to-calculate-sinx",
"I have a CMakeLists.txt file and am compiling a firmware program with the GCC 68HC11 C compiler .",
"What would be the assembly code for 68HC11 to calculate value of sine using either Taylor series or a lookup table",
"Some board vendors have also shipped the GNU 68HC11 12 version with their board .",
"So far I got this program : .. . .. . I think that would do the job but I m new with assembly and the 68HC11 .",
"68HC11 .. . .. . I think the response would be like can you tell if my response is correct",
"I m trying to figure out a way to implement the Fibonacci sequence using a 68HC11 IDE that uses a Motorolla as11 assembler .",
"If you have memory at address 800 simply write and read your data there using the instructions of 68HC11 .",
"Hi I am fairly new to programming 68hc11 assembly and was wondering how to go about proceeding with this problem .",
"GNU 68HC11 12 http : savannah.gnu.org projects m68hc11 is based on GCC 3.1 and its latest news is 4-year old .. . GCC-4.6 declared http : gcc.gnu.org gcc-4.6 changes.html that Motorola 68HC11 and 68HC12 architectures are obsolete .. . GCC-HCS12 http : gcc-hcs12.com sounds promising for what I m looking for yet it seems unmaintained .",
"I haven t done any 68HC11 http : en.wikipedia.org wiki Freescale 5F68HC11 programming in a long time so I won t be able to give you exact instructions but you want to do more-or-less the following : .. . .. . 1 .",
"The GNU 68HC11 12 release 3.1 is a bundle package which contains the complete tool chain based on Gcc 3.3.6 Gdb 6.4 Binutils 2.15 and Newlib 1.12.0 .",
"Have a look at this link http : www.faqs.org faqs microcontroller-faq 68hc11 that might point you in the direction to find the sources...I did see that there is a way to use the GNU s gcc toolchain to produce a cross-compiled binary.. . .. . .. . Hope this helps Best regards Tom .",
"I m not sure about X68C11 but my University of Michigan - Dearborn curriculum required me to program a 68HC11 using a cross-assembler called AsmIDE which you can download at http : support.technologicalarts.ca docs HC12-related ThirdParty AsmIDE .",
"Disregard the HC12-related in the URL above -- AsmIDE is compatible with both the HC11 and HC12 instruction sets .",
"My Assembler is very rusty and I don t know the 68hc11 but you need to increment the value you re storing each time through the loop otherwise you ll just fill the table with 41 .",
"Assuming this is HC11 you might want to use indexed addressing http : www.clear.rice.edu elec201 Book 6811 asm.html SECTION001832000000000000000 something like :",
"Unfortunately the 6811 code generator doesn t seem to be a standard part of gcc --- I don t spot the documentation in the manual .",
"Incidentally I don t know 6811 code but have you forgotten to put the result-of the op somewhere",
"Z you ll need to look up in the 6811 gcc docs --- it s a constraint which represents a register which is valid for the asm instruction which is being generated .",
"I wonder if anyone is using GCC as production stable toolchain for Freescale s 68HC12 microcontroller family .",
"If you want to use C the same guy wrote a handy GCC IDE called EmbeddedGNU available at http : www.evbplus.com hcs12 9s12 EmbeddedGNU hcs12.html .",
"If for real use I d use a bit better checksum algorithm such as crc16 .",
"Only on 16-bit overflow",
"In deeply embedded systems an 8-bit micro certainly qualifies you won t have very many sanity checks on arguments if any at all .",
"Your problem description is a bit vague as to what your actual problem is so I may be guessing a bit .",
"That s still doable but it s a bit more painful .",
"On my 8-bit Freescale HCS08 micro whenever I call a library function that returns values to pointers I pass it and I don t really want them I threw in a NULL e.g .",
"Can you explain a litlle bit more about masking",
"So I can t point you at platform-specific bit of the docs .",
"After a bit of experimentation I m now convinced that this is the correct solution .",
"I m having a bit of trouble with indexed addressing but I ll post that as a separate question .",
"I don t actually need the value of X after I m done bset Bit SET and bclr Bit CLeaR only have zero-page and indexed addressing modes hence the save load and restore of the index register .",
"The code was written for a DOS Windows cross-assembler with an executable name of X68C11 .",
"Does anyone know if that assembler can still be found or if there is a compatible assembler that exists",
"Well I found that the assembler does still exist .",
"Man that s some old stuff .",
"Bunch of dead links etc .",
"so far but I remain hopeful .",
"The real problem is there s a pretty good chunk of source and I sure as heck don t want to port it all if it s not completely necessary .",
"@Harper : check this out maybe with cygwin and this.. . gnu.org software m68hc11 http : www.gnu.org software m68hc11",
"That seems to be the only link-to it I can find on the Internet since the developer died and his websites were all shut down .",
"The asm : .. . .. . The C : .. . .. . The assembly code result : .. . .. . Now this is really really close .",
"I need to break the debugging when I-bit of SR global interrupt mask changes it s state .",
"Write a program to convert a 16-bit integer unsigned number into an ASCII string representing the number in hexadecimal .",
"How can i separated the bit number into 4 bits to represent the hex number in assembly is there an instruction for doing this",
"Take a look here http : en.wikipedia.org wiki Mask computing at the AND operation with appropriate bit masks .",
"I will assume you won t need to go over 32-bit result N 47 2971215073 .",
"Increment the counter when the bit is 1 loop until it goes to 0 again and then start back at the beginning waiting for it to change to 1 .",
"A conveyor belt sensor is connected to bit zero at memory location 8000 write a program to count the number of objects that pass this is 10 000 .. . .. . From what I understand the sensor will increase the counter every time it is on bit zero 1 .",
"I suppose you mean that by changing N from 10 to 40 your fibonacci number becomes too big to be stored in a 16-bit variable .",
"Fine take option 2 : .. . .. . I do all my CodeWarrior Hiwave stuff in Windows XP Mode a Virtual PC running under Windows 7 mostly because CodeWarrior s installer doesn t run on 64-bit architectures or it didn t a few months ago for which I yelled at them in their forums .",
"But the generic bit you need to read is here : http : gcc.gnu.org onlinedocs gcc-4.8.1 gcc Extended-Asm.html Extended-Asm .. . .. . The syntax is freaky but the summary is : .. . .. . ...where inputs and outputs are lists of constraints which tell gcc what value to put where .",
"I ve done it using 2-byte unsigned in little-endian format now I m attempting to change it using 4-byte variables using big-endian .. . .. . My pseudo-code which is written in c : .. . .. . I ll include some of my current assembly code .",
"Display value will be only in integer .",
"How would a lookup table work in this case",
"How can it be implemented using Taylor series http : en.wikipedia.org wiki Taylor 5Fseries",
"Define a table in memory that has 256 or however many values for Sin x over one quadrant in the range 0-Pi 2 .",
"2 .",
"Convert your input to the range 0-Pi 2 keeping track of which quadrant it was originally in .",
"For Q2 you want the value Pi 2-x for example .",
"3 .",
"Look up the adjusted value in the table negating the result if the original angle was in the 3rd or 4th quadrants .",
"Specifics would of course depend on input and output ranges but generally speaking you ll use indexed addressing-mode with the index register pointing into the table or alternatively extended addressing with the offset set by modifying the opcode .",
"Thank you .It helped a lot .",
"If you are looking for a floating-point solution you ll need to implement floating-point operations first .",
"After that calculating sin is easy but very slow .",
"- .. . .. . Use a lookup table .",
"+1 : a 256-entry lookup table plus the various symmetry rules for the sine function give you really good accuracy .",
"A little interpolation improves it even more .",
"Thank you very much .",
"@forhad : While thanks are nice you must accept an answer by clicking the checkmark under the answer that helped you .",
"It s an essential element of how this site works .",
"Please read the FAQ s for more information .",
"Don t use Taylor series .",
"Google found this http : www.edn.com archives 1996 090296 18di1.htm .",
"I am trying to write to use the multiple serial interface on the 68HC12 but am can t get it to talk .",
"I think I ve isolated the problem to not being able to write to the SC1DRL register SCI Data Register Low .",
"The following is from my SCI ISR : .. . .. . TX Buffer.buffer has the right thing at index TX Buffer.out when its contents are being written to HWRegPtr- SCI.sc1drl.byte but my debugger doesn t show a change and no data is being transmitted over the serial interface .",
"Anybody know what I m missing",
"edit : .. . .. . HWRegPtr is defined as : .. . .. . HARDWARE REGISTER is a giant struct with all the registers in it and is volatile .",
"It s likely that SC1DRL is a write-only register check the official register docs to be sure -- google isn t turning up the right PDF for me .",
"That means you can t read it back even with an in-target debugger to verify your code .",
"How is HWRegPtr defined",
"Does it have volatile in the right places to ensure the compiler treats every write through that pointer as something which must happen immediately",
"I tried to put my answer here but there s too much formatting so I ll just edit my question and add it there .",
"Also you might be right about the write-only thing but that s something else that confuses me about the documentation .",
"The documentation says that writes to SC1DRL access the eight bits of the write-only SCI transmit data register TDR .",
"So when you write to SC1DRL you re really writing to the TDR"
]
} | {
"confidence": [
65.54266357421875,
61.939910888671875,
56.79265213012695,
50.877098083496094,
50.461280822753906,
49.41961669921875,
49.410423278808594,
47.46125411987305,
44.95774841308594,
43.780372619628906,
43.08917236328125,
39.28279113769531,
39.114105224609375,
39.04718017578125,
34.63854217529297,
32.47203826904297,
30.841129302978516,
30.666826248168945,
24.847896575927734,
17.543846130371094
],
"content": [
"Question : A friend has asked for help with some 68HC11 assembly code . The code was written for a DOS Windows cross-assembler with an executable name of X68C11 . Does anyone know if that assembler can still be found or if there is a compatible assembler that exists .. . Answer : I m not sure about X68C11 but my University of Michigan - Dearborn curriculum required me to program a 68HC11 using a cross-assembler called AsmIDE which you can download at http : support.technologicalarts.ca docs HC12-related ThirdParty AsmIDE . That seems to be the only link-to it I can find on the Internet since the developer died and his websites were all shut down . If you want to use C the same guy wrote a handy GCC IDE called EmbeddedGNU available at http : www.evbplus.com hcs12 9s12 EmbeddedGNU hcs12.html . Comment : Disregard the HC12-related in the URL above -- AsmIDE is compatible with both the HC11 and HC12 instruction sets .",
"Question : I wonder if anyone is using GCC as production stable toolchain for Freescale s 68HC12 microcontroller family . It seems to me that there aren t up-to-date toolchains other than that from Freescale itself and those from Cosmic Software http : www.cosmic-software.com and IAR http : www.iar.com of course . GNU 68HC11 12 http : savannah.gnu.org projects m68hc11 is based on GCC 3.1 and its latest news is 4-year old .. . GCC-4.6 declared http : gcc.gnu.org gcc-4.6 changes.html that Motorola 68HC11 and 68HC12 architectures are obsolete .. . GCC-HCS12 http : gcc-hcs12.com sounds promising for what I m looking for yet it seems unmaintained . There exists a dozing Google Group gcc-hcs12 http : groups.google.com group gcc-hcs12 though . Plus the available zip download contains a file called gnu-68hc1x-3.1.exe dated 2007 . MegaSquirt http : www.msextra.com tools seems to offer the most maintained toolchain packaged on 29 Oct 2010 . It is built on extended versions of the SCz tools which I don t know what it means : .. . .. . binutils-2.18 with S12X and XGATE enhancements .. . gcc-3.3.6 with S12 S12X ldivmod and larith enhancements .. . newlib with 9s12x target .. . Answer : GNU 68HC11 12 is based on GCC 3.3.6 . The GNU 68HC11 12 release 3.1 is a bundle package which contains the complete tool chain based on Gcc 3.3.6 Gdb 6.4 Binutils 2.15 and Newlib 1.12.0 . Several projects have used it as a basis for their own needs . GCC-HCS12 and MegaSquirt are examples of such projects . Some board vendors have also shipped the GNU 68HC11 12 version with their board . MegaSquirt did some improvements on my original port for the support of XGate and better support for H9S12X . The gcc 3.3.6 release is the most stable and production ready release . Despite its apparent oldness it is more stable than what you could get with gcc 4.x recent mainstream releases . The obsolete announcement is sad but I don have time to work on repairing what is broken in GCC 4.6 .",
"Question : A friend has asked for help with some 68HC11 assembly code . The code was written for a DOS Windows cross-assembler with an executable name of X68C11 . Does anyone know if that assembler can still be found or if there is a compatible assembler that exists .. . Answer : Well I found that the assembler does still exist . The original creator 2500 AD software was bought by Avocet http : www.avocetsystems.com who has kept up the 68HC11 product line http : www.avocetsystems.com company techshee asheets 68HC11.htm .",
"Question : How to implement Taylor series to calculate sine value in assembly using 68hc11 . As 68hc11 does not support floating-point display value will be in integer. . e.g . multiply by 100 to make integer value . .. . Answer : You might use an algorithm which does the calculation incremental the following snippet should be easily transformed to fixpoint assembly since it makes no use of factorial and power functions . Usually it is easier to do this with lookup-tables . http : stackoverflow.com questions 1959335 assembly-code-for-68hc11-to-calculate-sinx",
"Question : A friend has asked for help with some 68HC11 assembly code . The code was written for a DOS Windows cross-assembler with an executable name of X68C11 . Does anyone know if that assembler can still be found or if there is a compatible assembler that exists .. . Answer : Have a look at this link http : www.faqs.org faqs microcontroller-faq 68hc11 that might point you in the direction to find the sources...I did see that there is a way to use the GNU s gcc toolchain to produce a cross-compiled binary.. . .. . .. . Hope this helps Best regards Tom . Comment : Man that s some old stuff . Bunch of dead links etc . so far but I remain hopeful . The real problem is there s a pretty good chunk of source and I sure as heck don t want to port it all if it s not completely necessary . Comment : @Harper : check this out maybe with cygwin and this.. . gnu.org software m68hc11 http : www.gnu.org software m68hc11",
"Question : I m trying to figure out a way to implement the Fibonacci sequence using a 68HC11 IDE that uses a Motorolla as11 assembler . I ve done it using 2-byte unsigned in little-endian format now I m attempting to change it using 4-byte variables using big-endian .. . .. . My pseudo-code which is written in c : .. . .. . I ll include some of my current assembly code . Please note that count is set to unsigned int at 1-byte and prev next and result are unsigned ints at 2 bytes . N is unsigned set to 10 . The issue that I m having is now altering this other than the obvious variable changes declarations N will begin at 40 now not 10 . Would altering my pseudo-code to include pointers allow me to implement it 1 to 1 better with big-endian Since this is in little-endian I assume I have to alter some of the branches . Yes this is an assignment for class I m not looking for the code just some guidance would be nice . Thank you Comment : en.wikipedia.org wiki Comment computer programming http : en.wikipedia.org wiki Comment computer programming .. . Answer : Your problem description is a bit vague as to what your actual problem is so I may be guessing a bit . BTW 68HC11 is big-endian . The 68HC11 has a 16-bit accumulator so as soon as your result overflows this you need to do math operations in pieces . I suppose you mean that by changing N from 10 to 40 your fibonacci number becomes too big to be stored in a 16-bit variable . The use or not of pointers is irrelevant to your problem as you can solve it both with or without them . For example you can use a pointer to tell your routine where to store the result . Depending on your maximum expected result you need to adjust your routine . I will assume you won t need to go over 32-bit result N 47 2971215073 . Here s a partially tested but unoptimized possibility using ASM11 assembler :",
"Question : How to implement Taylor series to calculate sine value in assembly using 68hc11 . As 68hc11 does not support floating-point display value will be in integer. . e.g . multiply by 100 to make integer value . .. . Answer : The Taylor series is probably not your best option . Take a look at CORDIC http : en.wikipedia.org wiki CORDIC .",
"Question : What would be the assembly code for 68HC11 to calculate value of sine using either Taylor series or a lookup table Display value will be only in integer . How would a lookup table work in this case How can it be implemented using Taylor series http : en.wikipedia.org wiki Taylor 5Fseries .. . Answer : If you are looking for a floating-point solution you ll need to implement floating-point operations first . That part will be non-trivial on a 68HC11 which has no support for even 32-bit operations . After that calculating sin is easy but very slow . - .. . .. . Use a lookup table . Comment : +1 : a 256-entry lookup table plus the various symmetry rules for the sine function give you really good accuracy . A little interpolation improves it even more . Comment : Thank you very much . Comment : @forhad : While thanks are nice you must accept an answer by clicking the checkmark under the answer that helped you . It s an essential element of how this site works . Please read the FAQ s for more information .",
"Question : What would be the assembly code for 68HC11 to calculate value of sine using either Taylor series or a lookup table Display value will be only in integer . How would a lookup table work in this case How can it be implemented using Taylor series http : en.wikipedia.org wiki Taylor 5Fseries .. . Answer : I haven t done any 68HC11 http : en.wikipedia.org wiki Freescale 5F68HC11 programming in a long time so I won t be able to give you exact instructions but you want to do more-or-less the following : .. . .. . 1 . Define a table in memory that has 256 or however many values for Sin x over one quadrant in the range 0-Pi 2 . 2 . Convert your input to the range 0-Pi 2 keeping track of which quadrant it was originally in . For Q2 you want the value Pi 2-x for example . 3 . Look up the adjusted value in the table negating the result if the original angle was in the 3rd or 4th quadrants . Specifics would of course depend on input and output ranges but generally speaking you ll use indexed addressing-mode with the index register pointing into the table or alternatively extended addressing with the offset set by modifying the opcode . Comment : Thank you .It helped a lot .",
"Question : What would be the assembly code for 68HC11 to calculate value of sine using either Taylor series or a lookup table Display value will be only in integer . How would a lookup table work in this case How can it be implemented using Taylor series http : en.wikipedia.org wiki Taylor 5Fseries .. . Answer : Don t use Taylor series . Google found this http : www.edn.com archives 1996 090296 18di1.htm .",
"Question : Write assembler directives to build a table to hold the ASCII codes of the capital letters A-Z . The table should be store in the memory locations 00 to 19 68HC11 .. . .. . I think the response would be like can you tell if my response is correct and if it s wrong why Thanks in advance .. . Answer : You need to do LDD 41 before the start of the loop and then increment that register before the BNE instruction . Comment : So if I replace register D by register x put LDD 41 before the loop and add INX before the END instruction it would be correct Thanks Comment : My Assembler is very rusty and I don t know the 68hc11 but you need to increment the value you re storing each time through the loop otherwise you ll just fill the table with 41 . Comment : Do you know someone that could help me with some more assembly exercises I m studying alone and I have an exam soon . Thanks Comment : Folks here are more than willing help with specific questions . You won t get people answering questions for you but the kind of question you asked here is fine and will more often than not receive a number of helpful answers . Have a go at the exercises and posts questions here when you hit a wall .",
"Question : The checksum is computed as the sum without carry of each byte of the array and is put in the register B . The size of the array is in register A and the array is in memory starting at the address in register X . So far I got this program : .. . .. . I think that would do the job but I m new with assembly and the 68HC11 . Can you tell if you see something wrong Thanks in advance . Comment : Don t know that assembly but aren t you forgetting to decrement A Oh never mind you have DECA it s not part of LOOP.. . : Comment : Is this an assignment or is it for real use If for real use I d use a bit better checksum algorithm such as crc16 . Comment : ok so DECA shouldn t be part of the loop and it is an assignment . Comment : Your code would be more efficient if you removed the first DECA and replaced the CMPA 0 with DECA . Of course your code as written won t handle a zero-length array which happens in practice . I agree with @hyde while this computes a checksum you should use a stronger scheme as he suggested in practice . Those are are lot harder to code . Comment : thanks for your comment very helpful If you want post it as an answer and I ll accepted . And how do I make the code to handle zero-length array .. . Answer : Here is the code to handle zero-length array will return B 0 :",
"Question : Does 68HC11 have Pipeline technique for improving the performance of the Integrated Circuit Is 68HC11 use pipelined I didnt find useful information Thank you Comment : I cant imagine it would have been certainly not back then . I see they describe the number of cycles per instruction in the isa documents so that would imply a no it isnt . Doest mean there isnt some open core somewhere that does.. . Comment : Can you give more information about that Comment : what do you mean a pipelined processor cannot document the number of clocks per instruction because it depends it is not possible to exactly document . So if you have the clocks documented 1 you can usually see from the instruction and options exactly why it takes that many cycles and 2 it isnt pipelined in the sense that we use that word with modern processors . .. . Answer : If the instruction-set documentation lists fixed numbers of clocks per instruction or instruction variation then it is a pretty safe bet that no it it is not pipelined like we would think of a modern processor . Remember that the word performance is relative trading power and real estate for operations per second . Nothing comes for free . In the microcontroller world you might be more interested in ops per watt and price per unit than ops per second . Even with what we might call inefficient instruction sets or implementations we still turn down the clock rates on the parts to save power that is how much performance we have to spare.. . It might be a good educational exercise to implement a pipelined clone if you are really interested in one.. . Comment : Thank you...I really wonder that does exist or not . Your information is quite useful thank you again .",
"Question : For Asembly 68hc11 This is an assigment to handle in paper . Write a program to convert a 16-bit integer unsigned number into an ASCII string representing the number in hexadecimal . The number is in register D0 and the string is in put in memory starting at the address in register A0 . How can i separated the bit number into 4 bits to represent the hex number in assembly is there an instruction for doing this I have a problem to visualize the logic of the program also . After separated the four bits how do i make the assembly to convert it to hex And to when I get the hex characters I need to compare them to each ascii possible character I really dont know where to start . .. . Answer : You can use bitwise shift and masking to separate the 4 bits for each hex digit . Then you can use a lookup table to map them to ascii or use the fact that 0-9 and A-F are consecutive in the character table . Comment : ok I get about the bitwise shift and the lookup table . But not so much about using masking I haven t use it before . Can you explain a litlle bit more about masking Comment : Take a look here http : en.wikipedia.org wiki Mask computing at the AND operation with appropriate bit masks .",
"Question : Hi I am fairly new to programming 68hc11 assembly and was wondering how to go about proceeding with this problem . A conveyor belt sensor is connected to bit zero at memory location 8000 write a program to count the number of objects that pass this is 10 000 .. . .. . From what I understand the sensor will increase the counter every time it is on bit zero 1 . But I only want the counter to be increased once for each object not the total time the sensor is on .. . .. . Here is what I have programmed thus far Comment : Unless you re using P E assembler which has default hex radix LDY 8000 should be LDY 8000 . Also counting is usually done with general purpose accumulator A B or D and not index registers . Although INCX may work for some assemblers the official instruction is INX . The order of w1 and w2 lines should be swapped . How do you terminate Only on 16-bit overflow Also BRCLR BRSET assume no noise on your belt switch which would require debouncing . .. . Answer : Increment the counter when the bit is 1 loop until it goes to 0 again and then start back at the beginning waiting for it to change to 1 . Comment : so would the program go like this updated in question Comment : Assuming BRSET means branch when set I would move the BRSET loop after INCX so the logic is loop while clear increment because it is no longer clear loop while set . I m not sure what the reasoning behind you last 2 lines is : if BNE w1 is an unconditional jump say so and done BRA done is never reached and even if it were is pointless .",
"Question : null .. . Answer : I have a CMakeLists.txt file and am compiling a firmware program with the GCC 68HC11 C compiler . The issue is that CMake is appending the -E compiler flag at the end which I don t want . The other appended flags -v -dD and -D CIDR.. . are also unwanted but do not cause a compilation error as -E does . How can I turn these appended flags off I tried set CMAKE C FLAGS DEBUG with no effect . Here is my CMakeLists.txt file in full .. . .. . Here is the generated compiler command Comment : There s also CMAKE C FLAGS without a configuration . My search for -E in CMake s Modules directory only brought up one remotely relevant occurrence : CMAKE C CREATE PREPROCESSED SOURCE in Compiler GNU.cmake I don t think that one is the source . You could also try listing the property VARIABLES from the current directory to see if there s anything else there that might be involved in flag setup . Comment : Did you try to use your CFLAGS as COMPILE FLAGS property for main like set target properties MAIN FILE PROPERTIES OUTPUT NAME MAIN FILE .elf COMPILE FLAGS CFLAGS Comment : Thanks to Angew http : stackoverflow.com users 1782465 angew and truschival http : stackoverflow.com users 3714982 truschival for the suggestions - I didn t get a chance to try these ideas yet but will try them on monday . Hopefully one or either of these will fix it . Comment : Just a note that the above suggestions didn t work . Those spurious flags are still in the compilation command .",
"Question : I need to write a program that will execute from 100 allocate a 200-byte array at 800 and initialize that array with the values 200 199 1 . I need to know how to create a loop that will decrement an array while decrementing the value to be stored in an array . Any ideas or suggestions I cannot find alot of example code for this processor . Comment : There s no such concept as array in assembly . Show us what you ve tried so far . Comment : There are no data-structures in assembly you have to write them yourself . Show us what you ve tried . Comment : Sorry but I think you need to check your assembly course again or read a book tutorial . This is not the place to learn assembly . Comment : Right but your question is too broad . Read the FAQ . Comment : You need to do everything yourself in assembly . The simplest representation of an array is a consecutive sequence of same-size values starting at a certain memory location . That location has a label you put on it the name of your array - say you call it foo . You choose a register to be your index and or another register to be your current array address which starts at foo prior to the start of your loop . See how far that takes you . I agree with @m0skit0 - SO is not a tutorial site . It s not up for opinion . Read the online help for the site . You haven t even said what assembler . .. . Answer : If you have memory at address 800 simply write and read your data there using the instructions of 68HC11 . You don t need to declare the array in some special way . There is only one exception - if your CPU runs some operating-system that manages the RAM memory by itself . Then you need to call some OS function in order to allocate needed memory . But this process has nothing to do with assembly programming . Simply read the documentation of your OS if any .",
"Question : In an attempt to make GCC not generate a load-modify-store operation every time I do or I have defined the following macros : .. . .. . And they work great the disassembled binary is perfect . The problem comes when I use more than one in sequence : .. . .. . This results in : .. . .. . Is there any way to get GCC 3.3.6-m68hc1x-20060122 to automatically optimize out the redundant stack operations .. . Answer : gcc will always emit the assembly instructions you tell it to emit . So instead of explicitly writing code to load registers with the value you want to manipulate you instead want to tell gcc to do this on your behalf . You can do this with register constraints . Unfortunately the 6811 code generator doesn t seem to be a standard part of gcc --- I don t spot the documentation in the manual . So I can t point you at platform-specific bit of the docs . But the generic bit you need to read is here : http : gcc.gnu.org onlinedocs gcc-4.8.1 gcc Extended-Asm.html Extended-Asm .. . .. . The syntax is freaky but the summary is : .. . .. . ...where inputs and outputs are lists of constraints which tell gcc what value to put where . The classic example is : .. . .. . f indicates that the named value needs to go into a floating-point register indicates it s an output then the names of the registers are substituted into the instruction . So you ll probably want something like this : .. . .. . ...where i is a variable containing the value you want to modify . Z you ll need to look up in the 6811 gcc docs --- it s a constraint which represents a register which is valid for the asm instruction which is being generated . The 0 indicates that the input shares a register with output 0 and is used for read-write values . Because you ve told gcc what register you want i to be it can integrate this knowledge into its register allocator and find the least-cost way to get i where you need it with the least amount of code . Sometimes no additional code . gcc inline-assembly is deeply contorted and weird but pretty powerful . It s worth spending some time to thoroughly understand the constraint system to get the best use out of it . Incidentally I don t know 6811 code but have you forgotten to put the result-of the op somewhere I d expect to see an stx to match the ldx . Update : Oh I see what bset is doing now --- it s writing the result back to a memory location right That s still doable but it s a bit more painful . You need to tell gcc that you re modifying that memory location so that it knows not to rely on any cached value . You ll need to have an output parameter with constraint m which represents that location . Check the docs . Comment : Not surprised you didn t find it m68hc11 support was deprecated in 4.6 and removed in 4.7 . I don t actually need the value of X after I m done bset Bit SET and bclr Bit CLeaR only have zero-page and indexed addressing modes hence the save load and restore of the index register . I ll check the docs thanks . Comment : After a bit of experimentation I m now convinced that this is the correct solution . I m having a bit of trouble with indexed addressing but I ll post that as a separate question .",
"Question : The title is basically it . I have lights that i need to switch on and off . There is a button that dictates which light it should be . So when the button is pressed or not pressed i modify a variable that contains the PORT address of that light . To turn a light on i have to store 00 at that address . For instance : .. . .. . So what i want to do is have a variable PoSelect 0000 . And use it instead . This however just stores the contents of accumulator a into the variable PoSelect . What i want to do is store the contents of accumulator a into the address that is stored at the variable PoSelect . Essentially using the variable PoSelect like a pointer . How do i do that .. . Answer : Assuming this is HC11 you might want to use indexed addressing http : www.clear.rice.edu elec201 Book 6811 asm.html SECTION001832000000000000000 something like :",
"Question : On my 8-bit Freescale HCS08 micro whenever I call a library function that returns values to pointers I pass it and I don t really want them I threw in a NULL e.g . The type of the last argument is uint16 t and returns the number of characters actually sent a value I don t care about . However I was having problems with port A on my micro being hosed every time that function was called and debugging pointed me to that argument screwing things up . Port A s configuration registers live at addresses 0x0000 and 0x0001 which is where NULL aka void 0 points . I thought NULL was somehow magic where it wouldn t actually do anything but it doesn t seem so . My workaround feels really hack : .. . .. . Is there a better solution I tried defining MNUL to an unused segment of memory on my processor but that causes an immediate reset . Comment : I like your solution but I wouldn t refer to it as null . .. . Answer : The function is trying to write a value into wherever the last argument points . You re passing in NULL 0x0000 so the result is being written to the memory location 0x0000 or your port A . Usually in general programming the function would check the argument and not try to write to the location if it was NULL but it appears this function doesn t follow that convention . You need to allocate a variable for the function to write its result to even if you aren t going to use it . Comment : In deeply embedded systems an 8-bit micro certainly qualifies you won t have very many sanity checks on arguments if any at all . I would not expect any protection from the NULL pointer especially not when it is a perfectly legal address of a hardware device in the platform . Comment : Even in non-embedded systems if the function isn t documented to handle NULL pointers then the assumption is that you cannot pass a NULL pointer to it . This is one of the Ground Rules of Programming : blogs.msdn.com b oldnewthing archive 2006 03 20 555511.aspx http : blogs.msdn.com b oldnewthing archive 2006 03 20 555511.aspx"
]
} | [
"yes-answer-long",
"yes-answer-short"
] | microcontroller | UNK_RELATION |
pysnmp@snmp@61 | pysnmp -- pysnmp is a python package used for native python @placeholder transactions . | {
"confidence": [
58.03520202636719,
57.29083251953125,
56.432090759277344,
51.35102844238281,
50.92164611816406,
50.91863250732422,
50.23890686035156,
48.906005859375,
48.36647033691406,
45.96319580078125,
45.62706756591797,
44.95732879638672,
44.95732879638672,
44.70952606201172,
43.8792610168457,
43.58320999145508,
43.58320999145508,
43.58320999145508,
43.581077575683594,
43.581077575683594,
42.468963623046875,
42.468963623046875,
42.20344543457031,
42.07361602783203,
41.796905517578125,
41.796905517578125,
41.796905517578125,
41.796905517578125,
41.391048431396484,
41.077125549316406,
41.077125549316406,
41.077125549316406,
41.077125549316406,
41.077125549316406,
40.794578552246094,
40.73455810546875,
40.73455810546875,
40.73455810546875,
40.73455810546875,
40.68478775024414,
40.63440704345703,
40.33747863769531,
40.33747863769531,
40.33747863769531,
40.33747863769531,
40.33747863769531,
39.567535400390625,
39.414947509765625,
39.40074920654297,
39.40074920654297,
39.40074920654297,
39.40074920654297,
39.40074920654297,
39.40074920654297,
39.35188293457031,
39.098060607910156,
38.40149688720703,
38.288631439208984,
38.288631439208984,
38.08204650878906,
37.89115905761719,
37.89115905761719,
37.831398010253906,
37.831398010253906,
37.831398010253906,
37.831398010253906,
37.54518127441406,
36.955726623535156,
36.725120544433594,
36.68353271484375,
36.46290588378906,
36.1550178527832,
36.1550178527832,
36.1550178527832,
36.1550178527832,
36.1550178527832,
36.1550178527832,
36.1550178527832,
36.1550178527832,
36.1550178527832,
36.1550178527832,
36.1550178527832,
36.114524841308594,
35.96549606323242,
35.612998962402344,
34.43814468383789,
33.824951171875,
33.70999526977539,
33.459415435791016,
33.459415435791016,
33.459415435791016,
33.459415435791016,
33.459415435791016,
33.459415435791016,
33.28975296020508,
33.28975296020508,
32.466796875,
32.18897247314453,
31.783037185668945,
31.783037185668945
],
"content": [
"Could you figure out where your Python finds pysnmp package python -v -c import pysnmp 2 1 grep pysnmp and upgrade that package or point Python to other location where pysnmp 4.3 resides",
"I m using Python with PySNMP .",
"I m very new in Python pysnmp",
"I am new for python and SNMP as well as pysnmp .",
"I installed python-pysnmp and snmpd at snmp-agent in debian arm .",
"This is latest pysnmp package",
"The pysnmp library would work on Python 2.6 .",
"I use python 2.7.11 and pysnmp 4.3.1",
"Chances are that regexp engine does not match pysnmp values because what pysnmp returns in var-binds is not a plain Python string .",
"Pysnmp bug",
"I have looked at pysnmp and net-snmp python bindings .",
"pysnmp 4.3 is API-compatible with pysnmp 4.2.5 for all 4.2.5 interfaces .",
"The build-pysnmp-mib script is obsolete since pysnmp 4.3 .",
"There is pysmi http : pysmi.sourceforge.net tool that can compile text MIB into pysnmp Python module .",
"The file listing of the PySNMP 4.2.5 source code is here : http : pysnmp.cvs.sourceforge.net viewvc pysnmp pysnmp pysnmp pathrev release 4 2 5 tag .. . .. . And the file listing of the apt package is here : http : bazaar.launchpad.net ubuntu-branches ubuntu trusty python-pysnmp4 trusty files head : pysnmp .. . .. . I don t know why it s missing but it s either an omission they forgot the hlapi folder or some other reason that isn t clear to me .",
"How about : pip install -U pysnmp",
"That means you are still running older version of pysnmp .",
"Make sure you are using the latest pysnmp .",
"pysnmp -V did not work .",
"What pysnmp you are using",
"If you are using pysnmp 4.2 .",
"Example code pysnmp 4.3 :",
"I have python version 4.3.2 py2exe 0.9.1.0 pysnmp 0.4.3.1 pyans1 0.1.9 .",
"When I replay the packets through pysnmp it throws error as .. . .. . I have configured PySNMP to accept packets having community name as public .",
"Here is a snipe of my pysnmp script .",
"Are you using pysnmp as a manager or agent",
"pysnmp continue with GetBulk until timeout .",
"Somehow my pySNMP installation was corruped .",
"Since pysnmp 4.3 no explicit ASN.1 MIB compilation step is required -- pysnmp 4.3+ will automatically invoke pysmi to find download compile ASN.1 MIB and hand it over to pysnmp .",
"Does PySNMP support Unicode for sending snmptrap .",
"This is probably related to the inspect module behavior not to pysnmp .",
"In either case that is unlikely a pysnmp pyasn1 issue to deal with .",
"I have recently installed PySNMP library on Ubuntu .",
"It is always better to upgrade to the latest pysnmp whenever possible .",
"When I use mibdump.py to generate pysnmp supported python-module with mibdump.py syzf-ALARMS I get : .. . .. . Now it generates one syzf-alarms.py pyc file at home sbhattac .pysnmp mibs .",
"You do not need to specify path to your MIB module if it resides in .pysnmp mibs -- this path is hardwired into pysnmp .",
"I tried again with PySNMP 4.3.2 and now I m getting the following exception in PySNMP pastebin.com cchsQwtK http : pastebin.com cchsQwtK",
"The conversion is performed with the smidump libsmi2pysnmp tools like this : .. . .. . See PySNMP distribution for a little automation script tools build-pysnmp-mib .",
"Running the program using the debug printouts clearly shows pysnmp retrieving the mibs in the directory sys.MEIPOASS pysnmp mibs .",
"I need to parse the Pysnmp output .",
"This is a bug actually in pyasn1 however development pysnmp code http : pysnmp.cvs.sourceforge.net viewvc pysnmp pysnmp view tar has a workaround in-place .",
"You need pysnmp 4.3.x to use the latest API which is pysnmp.hlapi .",
"I have also upgraded pysnmp to latest stable version .",
"If that s what you want make sure to configure pysnmp accordingly .",
"I am trying to implement SNMP Monitoring through the use of PySNMP library .",
"Or do I have to create the MIB on the Agent side with PySNMP",
"I ve run smilint and build-pysnmp-mib actually smidump as I was not be able to pre-load the file exporting elements with build-pysnmp-mib .",
"In case of C that might be Net-SNMP if it s Python you may consider playing with pysnmp .",
"from pysnmp import debug debug.setLogger debug.Debug mibbuild",
"It is not clear how pysnmp is involved in your situation .",
"I have installed the pysnmp module in Linux .",
"I try to start a SNMP Agent with pysnmp .",
"This allows pysnmp to find the files it needs to open .",
"Make sure you are using the latest pysnmp release .",
"pysnmp patch would be much appreciated",
"You can take available MIB names from here http : mibs.snmplabs.com asn1 .index take latest development pysnmp http : pysnmp.cvs.sourceforge.net viewvc pysnmp pysnmp view tar pysnmp-apps http : pysnmp.cvs.sourceforge.net viewvc pysnmp pysnmp-apps view tar packages then list all OIDs defines in each MIB : .. . .. . Once you know what OIDs are in what MIB you could match OIDs you fetch from printer against OIDs found in MIBs .",
"I got this error .. . .. . I have tried updating SMIPATH and also loading manually the .py module with .. . .. . I m running pysnmp on Ubuntu 14.04 and Python 2.7.6 .",
"I am currently using the latest version of pysnmp .",
"Writing my own abstraction based on pysnmp or netsnmp",
"I m trying to use val.prettyPrint in Python 3.4.2 using Pysnmp 4.3.1 to read the values of the OIDs .",
"Alternatively if you upgrade pysnmp to version 4.3 you would not need explicit MIB conversion -- it would be all done behind the scenes by pysnmp .",
"In case of pysnmp all you need is to load MIB where managed object in question is defined and let pysnmp do the rest by applying .prettyPrint to the objects it returns .",
"I m having difficulty implementing a custom MIB in a PySNMP agent .",
"Take a look at pysnmp smi mibs instances .py to get an idea .",
"This is my code to walk over the mib file from pysnmp forums .",
"Generated MIBs are backward compatible with all previous pysnmp versions .",
"Please use mibdump.py http : pysmi.sourceforge.net user-perspective.html tool from the pysmi https : pypi.python.org pypi pysmi package to compile ASN.1 MIBs into Python pysnmp module .",
"Probably time to contribute to PySNMP and write a patch :",
"With PySNMP you have MIB text file converted into Python code which serves both Manager and Agent sides of your SNMP app .",
"I ve started with : .. . .. . http : pysnmp.sourceforge.net examples 4.x v3arch agent cmdrsp.html .. . .. . created my own MIB file used build-pysnmp-mib to make a Python module and successfully imported the symbol .",
"Please use mibdump.py tool version 0.0.7 and up from the pysmi http : pysmi.sourceforge.net package to produce pysnmp MIB modules .",
"At that point pysnmp failed but the exact cause is not included in your report for some reason .",
"If you enable more pysnmp debugging chances are the original exception shows up there.. .",
"You could use produced modules with any pysnmp version .",
"I use PYSNMP http : pysnmp.sourceforge.net changelog.html as my tool for working with SNMP .",
"I m using pysnmp to get some values from a device .",
"Is it for the first GETNEXT when pysnmp builds an index internally or it happen every time",
"I want to know which version of the pysnmp is got installed .",
"How can I see the pysnmp version through the Linux terminal. .",
"Could you @Ilya Etingof or some other pysnmp expert help me with it",
"Notice that I added debuging flags to pysnmp to see what is going on .",
"I pass the spec file the full path of where pysnmp mibs are installed .",
"When you install pysnmp via : .. . .. . or .. . .. . The library pysnmp is installed in this path : .. . .. . usr local lib python2.7 dist-packages .. . .. . that is not one of default path search .. . .. . In your program add those lines :",
"Also enabling pysnmp debug might help pysnmp.sourceforge.net examples current index.html http : pysnmp.sourceforge.net examples current index.html",
"On a side note : we are working on a pure-Python MIB compiler sf.net projects pysmi http : sf.net projects pysmi which will generate better pysnmp MIBs .",
"The NotificationType was created by code : .. . .. . when I execute this code I got following SmiError : .. . .. . It seems pysnmp doesn t like to add suffix .0 for the variable whose syntax is defined as : .. . .. . Does it a bug for pysnmp",
"Im newbie in SNMP but I m going to make some simple monitoring apps using SNMP and PYSNMP .. . .. . I want to monitor my agent with my custom MIB because when i run some MIB it can not work with PYSNMP I ve read PYSNMP documentation but it seems can not help me .. . .. . Can you show me how to make custom MIB PYSNMP easyly",
"In the pysnmp example you are doing an SNMPGET snmpget not a GETNEXT snmpwalk .",
"PySNMP does not produce ICMP messages that can only be done by OS network stack or firewall .",
"To see what is happening inside pysnmp you could enable its debugging http : pysnmp.sourceforge.net examples contents.html using-these-examples .",
"I have many custom mib files compiled into pysnmp required format and stored under a directory .",
"Hello I m trying to listen for traps with this code from pysnmp doc : .. . .. . But when I test it with this command : .. . .. . Nothing is displayed .",
"You may want to enable pysnmp debugging to see if any traffic is coming in from the network .",
"You can place MIB .py files at any location then configure pysnmp to use it by calling .DirMibSource path in your script .",
"When I see the packet in WireShark it is showing community name as public but debugging through PySNMP I found that the community name is in OctetString equivalent to public in ASCII .",
"Pysnmp Version : 4.3.1 .. . Pyasn1 version : 0.1.9 .. . .. . Edit Here is full stacktrace in debug mode .. . .. . Problem exists for only one agent .",
"The traceback seems to refer to syntax errors in usr local lib python2.7 dist-packages pysnmp smi mibs SNMPv2-CONF.py c -- can you compile this file with Python alone",
"On Mint 17.3 Ubuntu 14.04 if I create a virtual environment and use pip to install PySNMP I get version 4.3.2 and this is fine : .. . .. . However if I install the ubuntu package via apt-get install python-pysnmp4 I get 4.2.5 and the above code does not work at all .",
"How can I properly invoke an SNMP extend script by MIB with pysnmp 4.3",
"Alternatively you could disable MIB lookup for response values in pysnmp by passing lookupMib False keyword argument to getCmd function ."
]
} | {
"confidence": [
70.59049987792969,
67.09870147705078,
63.75843048095703,
61.584716796875,
59.3704833984375,
59.273681640625,
58.362815856933594,
57.80699157714844,
57.03565216064453,
56.007904052734375,
55.989173889160156,
55.574607849121094,
55.40354919433594,
54.320472717285156,
54.05535125732422,
53.62339782714844,
53.44320297241211,
53.33412170410156,
52.949039459228516,
52.61684036254883
],
"content": [
"Question : I install the package and it dependencies module in ubuntu 15.10 but still it show error of .. . .. . from pysnmp.hlapi import ImportError : No module named hlapi .. . .. . I try to install it sudo setup.py install and pip install pysnmp .. . .. . But still its not working .. . .. . Please help me to get it complete Comment : I try it in eclipse Comment : You need pysnmp 4.3.x to use the latest API which is pysnmp.hlapi . How about : pip install -U pysnmp Comment : I run this cmd also but facing the same problem Comment : That means you are still running older version of pysnmp . Could you figure out where your Python finds pysnmp package python -v -c import pysnmp 2 1 grep pysnmp and upgrade that package or point Python to other location where pysnmp 4.3 resides .. . Answer : I find the solution Remove all .egg file related to plugin then install with pip it work for me",
"Question : I have two MIBS files MIB1 and MIB2 MIB2 is importing elements from MIB1 . I ve run smilint and build-pysnmp-mib actually smidump as I was not be able to pre-load the file exporting elements with build-pysnmp-mib . With smidump I have two MIB .py modules MIB1.py and MIB2.py however when I write my SNMP agent pysnmp is not able to find MIB1.py exporting module . I got this error .. . .. . I have tried updating SMIPATH and also loading manually the .py module with .. . .. . I m running pysnmp on Ubuntu 14.04 and Python 2.7.6 . Can anybody help me out on this .. . Answer : Please use mibdump.py http : pysmi.sourceforge.net user-perspective.html tool from the pysmi https : pypi.python.org pypi pysmi package to compile ASN.1 MIBs into Python pysnmp module . That tool will handle all the dependencies and produce much better MIBs . Generated MIBs are backward compatible with all previous pysnmp versions . The pysmi package runs on Python 2 3 out-of-the-box . Since pysnmp 4.3 no explicit ASN.1 MIB compilation step is required -- pysnmp 4.3+ will automatically invoke pysmi to find download compile ASN.1 MIB and hand it over to pysnmp . It is always better to upgrade to the latest pysnmp whenever possible . Comment : Is there any way to make mibdump.py runs with python-2.7 Thks Comment : mibdump.py works with Python 2.7 . Why do you think it does not Comment : I managed to make it run but still same error where should I copy the new .py files Comment : You can place MIB .py files at any location then configure pysnmp to use it by calling .DirMibSource path in your script .",
"Question : I have recently installed PySNMP library on Ubuntu . http : pysnmp.sourceforge.net quick-start.html .. . .. . I followed the Quick Start procedure with Fetch SNMP variable as explained in the link above . Unfortunately I keep getting this error : .. . .. . getCmd is a function and it does exist Comment : Runs fine for me . Comment : Did you forget this at the top of your code : from pysnmp.hlapi import . When I removed that line I replicated your problem . It could be that . Other than that I have no idea what else could be wrong . Comment : I only have this error on Ubuntu . It works fine on Raspbian which is supposed to be my SNMP Agent . .. . Answer : This might be a packaging bug in the apt package . On Mint 17.3 Ubuntu 14.04 if I create a virtual environment and use pip to install PySNMP I get version 4.3.2 and this is fine : .. . .. . However if I install the ubuntu package via apt-get install python-pysnmp4 I get 4.2.5 and the above code does not work at all . ImportError : No module named hlapi .. . .. . In my case the apt package version does not include the hlapi module . The file listing of the PySNMP 4.2.5 source code is here : http : pysnmp.cvs.sourceforge.net viewvc pysnmp pysnmp pysnmp pathrev release 4 2 5 tag .. . .. . And the file listing of the apt package is here : http : bazaar.launchpad.net ubuntu-branches ubuntu trusty python-pysnmp4 trusty files head : pysnmp .. . .. . I don t know why it s missing but it s either an omission they forgot the hlapi folder or some other reason that isn t clear to me . While this is not the same as your error it does suggest that there might be other packaging issues . Perhaps the version that you re using is also incomplete in some way . Bottom line if you create a virtualenv and use pip to install PySNMP you will probably be ok . You might also want to file a bug with the launchpad maintainer .",
"Question : I have installed the pysnmp module in Linux . I want to know which version of the pysnmp is got installed . How can I see the pysnmp version through the Linux terminal. . pysnmp -V did not work . I haven t pip installed in my linux so pip show pysnmp is also not working. . Comment : Possible duplicate of How to check version of python modules http : stackoverflow.com questions 20180543 how-to-check-version-of-python-modules .. . Answer : You can also check a module s version from inside a Python interpreter : .. . .. . To do this from a shell just execute it through python -c . This executes a string upon starting the Python interpreter from the shell allowing you to easily run short commands without writing a new script file or loading an interactive intepreter .",
"Question : I m trying to convert some .my files from the cisco site to .py files to use with pysnmp application but each one is failing . ftp : ftp.cisco.com pub mibs supportlists wlc wlc-supportlist.html .. . .. . I have already set my SMIPATH to the current directory with all my mibs . But i m receiving the same error on each of the cisco mibs . Comment : How about make sure you are using libsmi version 0.4.5 Comment : If it were that simple I would have already fixed it . This is latest pysnmp package .. . Answer : The build-pysnmp-mib script is obsolete since pysnmp 4.3 . Please use mibdump.py tool version 0.0.7 and up from the pysmi http : pysmi.sourceforge.net package to produce pysnmp MIB modules . You could use produced modules with any pysnmp version . The following fetched CISCO-LWAPP-MFP-MIB from http : mibs.snmplabs.com asn1 and compiled it into pysnmp form along with all other MIBs it depends on : .. . .. . You could pass mibdump.py URL s for authentic Cisco MIBs repository so it would fetch possibly more recent MIBs directly from there . Alternatively if you upgrade pysnmp to version 4.3 you would not need explicit MIB conversion -- it would be all done behind the scenes by pysnmp . Including ASN.1 MIB files search and download from the Internet . Former libsmi-based conversion process is very fragile and buggy . Comment : I tried using mibdump.py but getting errors with that as well . I m thinking i m going to abandon python and use something else Comment : It is not very probable that pysmi is seriously buggy . But sometimes MIBs are . If you are willing to get you issue resolved I d need more details on the failure . Comment : Added some more detail above . MIBDump.py is displaying errors on every MIB I try Comment : Alright that was a bug in pysmi . It is fixed in release 0.0.7 and I am able to convert those CISCO MIBs with mibdump.py . Please try it out and let me know in case of further troubles pypi.python.org pypi https : pypi.python.org pypi .",
"Question : I am trying to implement SNMP Monitoring through the use of PySNMP library . Will I be able to query the already existing NET-SNMP MIB on a device Or do I have to create the MIB on the Agent side with PySNMP .. . Answer : To monitor a host via SNMP you need SNMP Agent running locally on that host talking to host s subsystems OS applications collecting various metrics . Then SNMP Agent could communicate those metrics to SNMP Manager thus performing monitoring . Here http : pysnmp.sourceforge.net docs snmp-design.html you could find some general notes on SNMP design . There are many approaches to making SNMP Agent gathering system information from a host it is running on . You could do that from a single callback function invoked by SNMP Agent no MIB is involved or you could embed your system probes right into pysnmp MIB module scattering probes over managed objects defined in MIB so that the probes could be run once Manager hits that part of MIB via a query to SNMP Agent managing that MIB . There is pysmi http : pysmi.sourceforge.net tool that can compile text MIB into pysnmp Python module . Here http : pysnmp.sourceforge.net examples v3arch asyncore agent cmdrsp agent-side-mib-implementations.html is a page with example pysnmp Agent scripts that should run out-of-the-box .",
"Question : I have installed the pysnmp module in Linux . I want to know which version of the pysnmp is got installed . How can I see the pysnmp version through the Linux terminal. . pysnmp -V did not work . I haven t pip installed in my linux so pip show pysnmp is also not working. . Comment : Possible duplicate of How to check version of python modules http : stackoverflow.com questions 20180543 how-to-check-version-of-python-modules .. . Answer : You can try that .. . .. . Or any version you want actually Comment : I don t have pip installed in my linux . so it doesn t recognize the pip command. . Comment : Hi @SabinChacko that s an interesting one . How do you install your version then Comment : I installed the library manually. . downloading the zip from sourceforge.net extracting and at last executing python setup.py install . . I knew the version since I installed it manually but I needed to display it. . Comment : omg @SabinChacko the olds ways .. . : Have a try with pip for your next install . It is time and energy saving . Comment : Yea. . I don t know. . sometimes we need to get things done at any cost. . : p And the most weird fact is that I m installing this for a php program. . : p",
"Question : Just trying one of the official documentation site examples : .. . .. . we can see it does work if its executed through the Python interpreter : .. . .. . However if I try to freeze it with PyInstaller PyInstaller --onefile I get the following error once it is executed : .. . .. . It seems that mandatory files in pysnmp smi mibs are not explicitly imported to be used . That s why I ve split the build procedure in phases . Fist create the spec file . Then I ve edited it to import required files following advices from this other stack post Can t get pysnmp to work with pyinstaller http : stackoverflow.com questions 21838777 cant-get-pysnmp-to-work-with-pyinstaller : .. . .. . But then once it s built and executed I m getting this other error : .. . .. . What else can I do Thanks in advance Comment : Try adding the following to get better debugging output . from pysnmp import debug debug.setLogger debug.Debug mibbuild .. . Answer : I had the same problem and managed to get it working by including the pysmi files as a Tree just like the pysnmp mibs . My pyinstaller spec file ended up like : .. . .. . While this worked I actually solved it in another way by using an older version of pysnmp v4.2.5 which doesn t depend on pysmi",
"Question : I have a custom MIB file syzf-alarms.mib . When I use mibdump.py to generate pysnmp supported python-module with mibdump.py syzf-ALARMS I get : .. . .. . Now it generates one syzf-alarms.py pyc file at home sbhattac .pysnmp mibs . Now I am trying to use this module in my code : .. . .. . I am getting an error like this : .. . .. . What could be the reason be Are the above steps okay .. . Answer : If you are using the latest pysnmp your code should look like this : .. . .. . Where someObject refers to a scalar MIB object OBJECT-TYPE of your choice defined in your MIB . You do not need to specify path to your MIB module if it resides in .pysnmp mibs -- this path is hardwired into pysnmp . Also you may omit explicit mibdump.py compilation phase since the latest pysnmp invokes MIB compilation module pysmi automatically for your ASN.1 MIB source . You may need to specify path to ASN.1 MIBs via addAsn1MibSource as explained here https : github.com etingof pysnmp blob master examples hlapi asyncore sync manager cmdgen custom-asn1-mib-search-path.py . Comment : Thanks for the reply . Could you please let me know which one is advisable to use mibvariable or ObjectType ObjectIdentity",
"Question : null .. . Answer : I have python version 4.3.2 py2exe 0.9.1.0 pysnmp 0.4.3.1 pyans1 0.1.9 . Im encountering all type of inconsistent errors in many different clients . One of my clients which has hundreds of SNMP devices consonantly has pysnmp errors that are preventing him from discovering all snmp devices . This is the function : .. . .. . And this is the error i receive : .. . .. . And sometimes this error too : .. . .. . but all errors happen on this line : .. . .. . What is going on Comment : You should definitely split that monster method into several functions and make it more readable . Comment : Think question is less relevant to the function and more to the error . Can you explain me the meaning of the error and why im getting it . Comment : I m not into asn but the notion of substrate in the context of the codec s stream means that either no data or insufficient data to decode the original message . See this : red-bean.com doc python-pyasn1 pyasn1-tutorial.html http : www.red-bean.com doc python-pyasn1 pyasn1-tutorial.html Comment : That error can be caused by malformed non-SNMP packets coming into your function . The other possibility is that you run your script in multiple threads without proper locking . In either case that is unlikely a pysnmp pyasn1 issue to deal with .",
"Question : Im newbie in SNMP but I m going to make some simple monitoring apps using SNMP and PYSNMP .. . .. . I want to monitor my agent with my custom MIB because when i run some MIB it can not work with PYSNMP I ve read PYSNMP documentation but it seems can not help me .. . .. . Can you show me how to make custom MIB PYSNMP easyly so i can use it both in manager and agent side : .. . .. . Thank you .. . .. . .. . .. . thank you for your answer I ve already read those tuts but my mib still can not hit the target .. . .. . I want read my Total Disk on my partition so here is my MIB CODE : .. . .. . after generating this code here is my MIB in py .. . .. . But when i tried to call snmpget : snmpget -v 2c -c public localhost .1.3.6.1.4.1.2021.9.1.6.1 .. . .. . I found : .. . .. . thank you .. . Answer : With PySNMP you have MIB text file converted into Python code which serves both Manager and Agent sides of your SNMP app . The conversion is performed with the smidump libsmi2pysnmp tools like this : .. . .. . See PySNMP distribution for a little automation script tools build-pysnmp-mib . Once you have a Pythonized MIB Manager side can use it for visualization purposes represent OIDs in words prettify values . Agent application can extend Pythonized MIB by adding leaf objects that have access to the values on the host system you wish to manage . Here s a similar question on Agent-side implementation http : stackoverflow.com questions 12215942 implementing-a-custom-mib-in-a-pysnmp-agent and a blog post on PySNMP MIB conversion process http : www.nealc.com blog blog 2013 02 23 writing-an-snmp-agent-with-a-custom-mib-using-pysnmp .. . .. . Do you really need to implement both Manager Agent Apps",
"Question : null .. . Answer : I am trying to make an SNMP agent following this tutorial : http : www.nealc.com blog blog 2013 02 23 writing-an-snmp-agent-with-a-custom-mib-using-pysnmp .. . .. . I am using the exact code in the tutorial but when I run the code it ends in this : .. . .. . The MY-MIB.py that gets generated by build-pysnmp-mib looks like this : .. . .. . Does anyone have an idea what could have caused that exception I ve been on Google for the last few hours searching but didn t find anything valuable . Edit : Also when using the code from http : pysnmp.sourceforge.net examples current v3arch agent cmdrsp v2c-custom-scalar-mib-objects.html I get a similar error : Comment : The traceback seems to refer to syntax errors in usr local lib python2.7 dist-packages pysnmp smi mibs SNMPv2-CONF.py c -- can you compile this file with Python alone Could it be that it contains plain MIB ASN.1 code rather than Python.. . Could you check that Comment : Thanks a lot You pointed me to the right direction . Somehow my pySNMP installation was corruped . After reinstalling everything it works now . Thanks a lot",
"Question : I have been searching a lot for this but not found anything that fits my needs yet . I want an elegant way to work with SNMP tables in Python . I have looked at pysnmp and net-snmp python bindings . At the moment I am working with net-snmp bindings as it seems more easy to query data with and it is already easily available on CentOS6 where the software will have to run Python 2.6 but I would not mind installing pysnmp either . What I want is any kind of object which I can hand over my important data of my table structure such as table base OID index OID and names and oids of the columns I am interested in . I would like to get a data structure back that makes it very easy to iterate over the rows fetch lists of entries of any of the columns etc all without having to bother with OIDs and stuff anymore really abstracting all this away . The purpose of this is that I want to use as little code as possible to query all data from a SNMP table and work with it I would like to have all boiler plate code in a module so I can fetch and work with data of a SNMP table in just a few lines-of-code . What would you suggest me to do Writing my own abstraction based on pysnmp or netsnmp Is there anything in pysnmp s High Level API that I might have missed Maybe a python-module that abstracts one of the above mentioned to make it more easy to access the data Would be very glad to hear your advices . Comment : Standards such as RFC3416 define the approaches to perform table traversal . You should check the library you use has something like those . If not they are still quite easy to implement . .. . Answer : Speaking of pysnmp there are two components that may be of interest to you : .. . .. . ObjectType ObjectIdentity http : pysnmp.sourceforge.net docs pysnmp-hlapi-tutorial.html working-with-snmp-tables classes representing MIB object and handling OID - symbol - index and value types matters .. . High-level API http : pysnmp.sourceforge.net docs pysnmp-hlapi-tutorial.html snmp-command-operations operating over ObjectType instances .. . .. . On top of these two components you could read http : pysnmp.sourceforge.net examples hlapi asyncore sync manager cmdgen table-operations.html fetch-table-row-by-composite-index modify http : pysnmp.sourceforge.net examples hlapi asyncore sync manager cmdgen modifying-variables.html coerce-value-to-set-to-mib-spec MIB objects referring to them by their MIB names and symbolic indices e.g . knowing nothing about the OIDs being involved . The ObjectType class would transform values between their human-friendly representation and base SNMP types . The pysnmp library would work on Python 2.6 .",
"Question : I m having difficulty implementing a custom MIB in a PySNMP agent . I ve started with : .. . .. . http : pysnmp.sourceforge.net examples 4.x v3arch agent cmdrsp.html .. . .. . created my own MIB file used build-pysnmp-mib to make a Python module and successfully imported the symbol . I can t see where to go next . I need to somehow mount the imported symbol on the list of served MIBs and provide an implementation . It s currently a MIB with one read-only INTEGER property . The MIB file passes smilint without warnings but I ve had to manually add a missing MibScalar import to the generated module . MIB : .. . .. . Code : .. . .. . Generated and amended TRS-MIB.py : .. . .. . Update : .. . .. . I now have one error left : .. . .. . The debug is : .. . Answer : As for implementing a Managed Object Instance you have two choices : .. . .. . 1 . Load and subclass the MibScalarInstance class then override its readGet method to make it returning your live value . Then instantiate your new class make sure to pass it appropriate OID that identifies it and pass it to exportSymbols so its OID will get registered at pysnmp Agent . 2 . Load the Integer32 class subclass it and override its clone method to make it returning your live value . Then load the MibScalarInstance class instantiate it passing appropriate OID and the instance of your Integer32 subclass then pass MibScalarInstance object to exportSymbols so its OID will get registered at pysnmp Agent . It may make sense to keep all your code in your own MIB module . Take a look at pysnmp smi mibs instances .py to get an idea . From within your Agent app invoke mibBuilder.loadModules TRC-MIB to load your MIB module into Agent . In your code you seem to somehow combine the above two approaches : MyDeliveryTime.readGet will not work however MyDeliveryTime.clone or deliveryTimeInstance.readGet will . Comment : Thanks I think I m almost there . I just have one error left.. . see original question . Thanks for your help . Comment : The solution was to change .setMaxAccess noaccess to .setMaxAccess readonly .",
"Question : Here is my snmpbulkwalk implementation took it from examples : .. . .. . I am trying to snmpwalk OID that does not exists when I trying to do it with snmpbulkwalk I am getting : .. . .. . snmpwalk -v2c -c public@1 10.253.35.61 1.3.6.1.2.1.17.4.3.1.1 .. . .. . If we look at tcpdump we can see this : .. . .. . which is ok I can see error and work around it but when I query it from pysnmp - am getting No SNMP response received before timeout error and here is tcpdump : .. . .. . and this is bad because there are could be different scenarios that can cause timeout host down wrong community string etc how can I emulate snmpbulkwalk behavior with pysnmp possibly without going to lower level API . Thank you . .. . Answer : Second capture shows missing GetResponse packets . Assuming timeouts do occur due to slow agent consider making pysnmp waiting longer and possibly retrying less : .. . .. . If it is rather a connectivity issue try retrying more aggressively : .. . .. . Also note that in pysnmp capture but not in code you request 25 variables in response where snmpbulkwalk wants just 10 . Too many variables may stress your agent . Comment : That not it snmpbulkwalk switching from GetBulk to GetResponse after first timeout . pysnmp continue with GetBulk until timeout . Comment : GET and GETBULK are different command SNMP does not mandate them to be used together . If you want to emulate snmpbulkwalk you could make your Python script calling getCmd along with bulkCmd . To address your original concern : pysnmp does not mix timeout with no-such-oid error condition . The library reports whichever occurs and does not mask or substitute any errors .",
"Question : I am new for python and SNMP as well as pysnmp . After two weeks study I wrote a piece of python code which try to send a trap message . The NotificationType was created by code : .. . .. . when I execute this code I got following SmiError : .. . .. . It seems pysnmp doesn t like to add suffix .0 for the variable whose syntax is defined as : .. . .. . Does it a bug for pysnmp Or I should not add that .0 suffix at least after remove that 0 from instanceIndex the code can be executed and trap message sent successfully . But I was told that .. . .. . A scalar variable has single instance and is identified by suffix .0 . The object identifier OID with .0 suffix indicates a scalar variable i.e . single instance eg analogous category of a table with only one column Each of the varbinds in the notification is scalar for this alarm notification . So seems the .0 is anyway needed right Or there are some misunderstanding from us Thanks in advance . Br -Dapeng Jiao .. . .. . The original MIB defination for that variable is : .. . .. . and converted python format is : .. . .. . DateAndTime was imported from SNMPv2-TC . .. . Answer : One update for this : Even the exception shows the problem is caused by myAlarmTime .. . .. . But after debug it seems the real issue is myAlarmId syntax definition . As that variable is the only one defined with Integer32 with range 1 2147483647 .. . .. . And after I change its value range to 0 2147483647 the instanceIndex 0 start to works . But I should NOT change that right Then what should be the root cause for this issue Pysnmp bug or our misunderstanding for SNMP and MIB file BTW : the suffix .0 was working fine with a Java based SNMP cilent . But due to company s order and license issue we need to re-implement it and we though python should be a good enough to do this . Attach more MIB definition relate to this alarm event .. . .. . Br -Dapeng Jiao",
"Question : null .. . Answer : I am trying to get gps latitude and longitude of moving vehicle for each seconds from snmp server . I installed python-pysnmp and snmpd at snmp-agent in debian arm . python code : .. . .. . but I got log message : Starting ND GPS-data collector No SNMP response received before timeout The lat long collected are : .. . .. . lat : None lon : None .. . .. . I tested same script replace IP with localhost and demo.snmplabs.com and I didn t get No SNMP response received before timeout error in log message but data collecte are bit strange : .. . .. . lat : No Such Instance currently exists at this OID .. . lon : No Such Instance currently exists at this OID .. . .. . while observing packets in tcpdump I can see both request response in localhost as well as demo.snmplabs.com but only request in case of remote IP . I am learnig these stuff . any suggestions are appreciated . thanks yuba Comment : Make sure your snmpd responds from the same IP address you are sending requests to . Also enabling pysnmp debug might help pysnmp.sourceforge.net examples current index.html http : pysnmp.sourceforge.net examples current index.html",
"Question : null .. . Answer : I m using Python with PySNMP . I noticed a different behaviour about response time between a GET operation on a non-existing element and a GET-NEXT operation which targets a non-existing element . It this a known problem Has someone tried to fix this Thank you . Comment : Please do not use hashtags in the title . You only need tags which you have good . Comment : Are you using pysnmp as a manager or agent More likely it is the agent being slow finding proper OID for GETNEXT response . Comment : I m using it as agent . Do you have some hint about I would try to fix it if it is possible . Thank you again . Comment : Is it for the first GETNEXT when pysnmp builds an index internally or it happen every time In general GETNEXT performs slower as it needs to find next OID . You could implement your own MibInstrumentationController backed by a no SQL database if you want to take the matter into your own hands . Comment : It seems it happen every time I do a GET-NEXT so if I do a GET-BULK and a group of oids does not exist I have to wait a lot of time before getting the answer . It s an edit I can do using pysnmp as black-box or I must edit your library",
"Question : I have a pcap file containing 4 SNMP trap packets . When I replay the packets through pysnmp it throws error as .. . .. . I have configured PySNMP to accept packets having community name as public . When I see the packet in WireShark it is showing community name as public but debugging through PySNMP I found that the community name is in OctetString equivalent to public in ASCII . What should I do now p.s . Unix s snmptrapd works correctly in the given pcap file . Pysnmp Version : 4.3.1 .. . Pyasn1 version : 0.1.9 .. . .. . Edit Here is full stacktrace in debug mode .. . .. . Problem exists for only one agent . Trap coming from all other agents are processed normally . Comment : OctetString object you observe should work . Make sure you are using the latest pysnmp . I suspect it has something to do with transport tags . Debug output might help resolving this issue . Comment : @llya Etingof I have updated my question with log view . Can you say anything about the problem seeing the debug log Comment : I have also upgraded pysnmp to latest stable version . .. . Answer : Apparently when you are building PDU from a dumped packet you include trailing zero to SNMP community string value . If that s what you want make sure to configure pysnmp accordingly . or Comment : Great Agent itself is sending trap with community string with training zero . You saved my day :",
"Question : null .. . Answer : Hello I m trying to listen for traps with this code from pysnmp doc : .. . .. . But when I test it with this command : .. . .. . Nothing is displayed . Could someone help me Everything I want is to display traps received by this receiver . EDIT : I added some prints and this is what I get when I run the program : .. . .. . When I send a trap nothing displays . When I press Ctrl+C I get : Comment : Did you try adding some test print to beginning of cbFun before the while to make sure it gets called at all If so try putting one right after the first while as well . Comment : I tried and cbFun is never called Comment : Your script works on my Mac . Could it be a firewall issue Make sure port 162 udp is allowed . You may want to enable pysnmp debugging to see if any traffic is coming in from the network . Comment : Thanks for your response . Port 162 udp was already open . Could you tell me exactly what steps you did to make it works I m very new in Python pysnmp"
]
} | [
"yes-answer-long",
"yes-answer-short"
] | snmp | UNK_RELATION |
mime4j@mime4j@42 | mime4j -- mime4j http : james.apache.org @placeholder is a java library for handling e-mail according to rfc822 and mime format is part of the apache james projectthe current 2014-07-18 stable version is 0.7.2 . | {
"confidence": [
69.12173461914062,
65.42265319824219,
65.04957580566406,
61.92355728149414,
61.92355728149414,
59.50306701660156,
57.32320785522461,
55.4087028503418,
53.10734176635742,
52.88885498046875,
52.88885498046875,
51.38797378540039,
51.30453109741211,
50.62753677368164,
50.27691650390625,
49.384422302246094,
48.731868743896484,
47.99306869506836,
46.960731506347656,
46.23944091796875,
45.96824264526367,
45.22910690307617,
44.59091567993164,
44.59091567993164,
43.34424591064453,
43.13042449951172,
42.07213592529297,
42.07213592529297,
41.2283935546875,
41.2283935546875,
40.52223205566406,
40.10198974609375,
40.10198974609375,
39.642860412597656,
39.491355895996094,
38.660308837890625,
38.660308837890625,
38.660308837890625,
37.42509460449219,
35.926517486572266,
34.26235580444336,
34.06459426879883,
34.06459426879883,
34.06459426879883,
33.69239807128906,
33.50077819824219,
33.11384582519531,
33.11384582519531,
32.829383850097656,
31.25191879272461,
30.507652282714844,
29.552108764648438,
28.86724090576172,
26.892892837524414,
26.866409301757812,
26.16659164428711,
24.713897705078125,
24.630233764648438,
23.786197662353516,
23.67149543762207,
23.057682037353516,
22.01715660095215,
21.559303283691406,
20.67514419555664,
20.520980834960938,
20.498367309570312,
20.477724075317383,
20.446086883544922,
19.936731338500977,
19.909137725830078,
19.6627197265625,
19.6627197265625,
19.534481048583984,
19.46525764465332,
19.394577026367188,
19.237224578857422,
19.070693969726562,
18.943878173828125,
18.407974243164062,
18.263940811157227,
18.182287216186523,
18.155132293701172,
18.090221405029297,
17.992692947387695,
17.992692947387695,
17.86947250366211,
17.776018142700195,
17.686115264892578,
17.686115264892578,
17.59567642211914,
17.52863883972168,
17.33353042602539,
17.263626098632812,
17.23245620727539,
17.100034713745117,
16.920063018798828,
16.894861221313477,
16.716367721557617,
16.634260177612305,
16.137218475341797
],
"content": [
"I downloaded the binaries of the latest stable version of apache-mime4j 0.7.2 .",
"What about james.apache.org mime4j samples.html https : james.apache.org mime4j samples.html",
"The jars included in my build path : apache-mime4j-core-0.7.2.jar apache-mime4j-dom-0.7.2.jar .",
"But Message https : james.apache.org mime4j apidocs org apache james mime4j dom class-use Message.html does not provide a method setText or something like that .",
"Ok there is getBody but then I don t know how to manipulate the Body https : james.apache.org mime4j apidocs org apache james mime4j dom Body.html .",
"You need this jar in your classpath : .. . .. . http : central.maven.org maven2 org apache james apache-mime4j 0.6.1 apache-mime4j-0.6.1.jar .. . .. . Dependency For maven :",
"I already implemented this using Apache James Mime4j http : james.apache.org mime4j apidocs index.html and Apache Commons Net http : commons.apache.org proper commons-net javadocs api-3.3 index.html but now I also have to append a footer signature to the content of each e-mail .",
"I recommand you to use Token streams http : james.apache.org mime4j usage.html .",
"You can clone the current snaphshot of the mime4j project from .. . .. . http : svn.apache.org repos asf james mime4j trunk .. . .. . to your personal github account .. . .. . or use my clone : .. . .. . https : github.com WolfgangFahl james-mime4j .. . .. . and your MBoxIterator is here : .. . .. . https : github.com WolfgangFahl james-mime4j tree trunk mbox src main java org apache james mime4j mboxiterator",
"Thanks to the devs they got them uploaded in the following link : MBoxIterator needed classes http : svn.apache.org repos asf james mime4j trunk mbox src main java org apache james mime4j mboxiterator .",
"I use this sample code http : svn.apache.org repos asf james mime4j trunk examples src main java org apache james mime4j samples mbox IterateOverMbox.java .",
"I couldn t find any I need it for Mime4j 0.7.2 latest .",
"I ve been looking at mime4j http : james.apache.org mime4j and this scala code https : github.com mattanja messenger blob c2c8cc009f3fa65868633a929aecb078a10ea624 app models Email.scala in particular .",
"I am using Mime4J to mime-encode a message .",
"The source code is available from the website at james.apache.org mime4j start build.html http : james.apache.org mime4j start build.html You can download the trunk from svn which does have this functionality and build it yourself .",
"I read post apache mime4j maven-dependency for 0.7.2 https : stackoverflow.com questions 15070543 apache-mime4j-maven-dependency-for-0-7-2 15070696 15070696 and it helped me to get right maven-dependency .",
"I m using mime4j version 0.6.1 and wanna to update to version 0.7.2 but cannot find any good sample .",
"Here is a paste of my code mostly from james mime4j .",
"This blog http : ieugen.blogspot.com 2012 06 java-mbox-parsing-with-apache-james.html shows how to do it with Apache Mime4j",
"Using mime4j it s easy to get this far : .. . .. . So using mime4j or using java javax etc .",
"So how can I connect to mail servers to use mime4j",
"Dowloaded apache-mime4j-core-0.8.0-20150617.024907-738-sources .. . 2 .",
"Can I achieve this with Mime4j too",
"Did you check the mime4j documentation",
"Does anyone have good example how to parse SMTP eml email with mime4j 0.7.2",
"I built the code and ran the sample svn.apache.org repos asf james mime4j trunk examples src main http : svn.apache.org repos asf james mime4j trunk examples src main java org apache james mime4j samples mbox IterateOverMbox.java on several mbox files from enron dataset and my own mbox downloaded from gmail and always all of the fields of all Messages are null",
"I encountered a problem when parsing email with mime4j .",
"Can I use Javamail in conjunction with mime4j",
"I am working with MIME4J to read MIME events from an email stack dump .",
"Can anybody help in pointing me to some code to extract attachments from Multipart Mime using Mime4j",
"I ve implemented a solution to parse Email Files .eml into objects using Mime4J .",
"I am trying to move from Javamail to mime4j in the hope of having less trouble parsing mail .",
"However I haven t managed to find out how to connect to a mail-server to then use mime4j to parse messages .",
"I found this example for parsing an email : http : www.mozgoweb.com posts how-to-parse-mime-message-using-mime4j-library .. . .. . But the example is not working because import org.apache.james.mime4j.message.Message is not working .",
"Created a jar called apache-mime4j-0.8.0-fix.jar and pushed into the lib folder .. . 6 .",
"As far as I can tell mime4j does not offer anything equivalent .",
"I m going to stick with the Mime4j solution you ve given me for now .",
"I am sure there is some mismatch between spooler and mime4j .",
"I ve downloaded mime4j 0.8.0 snapshot from subversion and built it with maven .",
"I was wondering if is possible to send the MimeMessage of Mime4J through Transport.send mimeMessage instead to create a new file .",
"Based on @zvisofer answer I found the guilty piece of code http : grepcode.com file repo1.maven.org maven2 org.apache.james apache-mime4j-core 0.7 org apache james mime4j io BufferedLineReaderInputStream.java v source in BufferedLineReaderInputStream : .. . .. . The best thing to do would be to report the bug but here is a fix a little dirty but it s working fine .. . .. . Create the class org.apache.james.mime4j.io.BufferedLineReaderInputStream in your project .. . .. . Replace the method public int readLine final ByteArrayBuffer dst by this one : .. . .. . Enjoy both unix and dos files :",
"I m trying to use mime4j to parse emails all is working fine however I m not able to get the file name of the attachment .",
"For the event-based parsing in mime4j a ContentHandler interface is required and methods are called from it by the parser which requires the handler be set to it .",
"I use run.sh so replaced the mime4j core jar name with the above one .",
"utilities it should be possible to extract the a@b.com part of the address from there but I haven t found a class within javax or mime4j that is responsible for this yet .",
"Use the following library based on mime4j : email-mime-parser https : github.com ram-sharma-6453 email-mime-parser .. . .. . The provided sample code takes care of email parsing and the resulting email object provides convenience method for the solution of your problem :",
"The simplest approach would be to use the Mime4J Message.writeTo method to write the message to a ByteArrayOutputStream then wrap the byte array with a ByteArrayInputStream and use that to construct a JavaMail MimeMessage object .",
"A more complex but more efficient approach would be to create a class that subclasses MimeMessage and delegates most of the methods to the corresponding methods on the Mime4J Message object .",
"The classes you mention at least by what I found are not included into Mime4J so you have to code them yourself .",
"I have experimented with a sample Handler from another SO answer that extends the mime4j packaged SimpleContentHandler but that one really only parses headers .",
"the latest version 0.7.2 doesn t have this functionality .",
"It s not my code i just created users and sent mail per the Quickstart guide james.apache.org server 3 quick-start.html https : james.apache.org server 3 quick-start.html",
"Personally I do not use James methods for sending mail by SMTP .",
"You might want to post a change request for the apache james project .",
"Now I try to parse a toy mbox file https : github.com ieugen mbox-iterator blob master src test resources test-1 mbox.rlug from mime4j test .",
": apache-mime4j-core-0.8.0-SNAPSHOT.jar : apache-mime4j-dom-0.8.0-SNAPSHOT.jar : apache-mime4j-mbox-iterator-0.8.0-SNAPSHOT.jar IterateOverMbox mbox.rlug.txt .. . .. . Message Din windows ma pot din LINUX NU ma pot conecta la ZAPP Sent by : rlug-bounce@lug.ro To : rlug@lug.ro .. . .. . Message Re : RH 8.0 boot floppy Sent by : rlug-bounce@lug.ro To : rlug@lug.ro .. . .. . Message Qmail mysql virtualusers +ssl + smtp auth +pop3 Sent by : rlug-bounce@lug.ro To : rlug@lug.ro .. . .. . Message Re : Din windows ma pot din LINUX NU ma pot conecta la ZAPP Sent by : rlug-bounce@lug.ro To : rlug@lug.ro .. . .. . Message LSTP problem - solved Sent by : rlug-bounce@lug.ro To : rlug@lug.ro .. . .. . Found 5 messages Done in : 108 milis",
"Here is a chunk of one of the mails the mail that my code most recently threw this exception on .. . .. . And here is i think the relevant chunk of that mail : .. . .. . Is there a Scala library out there for easily handling this type of input",
"stackoverflow.com questions 13358453 http : stackoverflow.com questions 13358453 sending-an-mail-in-java-using-smtp for how to use it .",
"In one of my Java applications I have to forward e-mails .",
"I just downloaded and setup the Apache James 3 latest beta release on Windows and so far i haven t been able to send a simple message .",
"If you really want to use another MIME message parser you ll need to use the Message.writeTo method to get the entire MIME content of a message which you can pass to some other library to parse .",
"But is there a standard MIME way to work it out please .",
"I am trying to process attachments from James Hook Mailets .",
"If I have this MIME structure : .. . .. . and in the end : .. . .. . .. . How can I do this structure with Java SOAP",
"I m trying to parse raw email messages over HTTP one at a time that come in MIME multipart .",
"If I send sopa request with this attach I have this : .. . .. . in the soap request found reference to non-existent mime-attachment .. . .. . .. . If it false way please tell me how to correct create this mime-attachment for soap in java .",
"It can be mail headers or multipart section header... .",
"I need xml content xml part from the following response string in java",
"You ll need to adapt from the james message to java s standard way on how to do things if you try this route .",
"Even when I run mime4j test mbox file github.com ieugen mbox-iterator blob master src test resources https : github.com ieugen mbox-iterator blob master src test resources test-1 mbox.rlug DefaultMessageBuilder fails and all fields are null even that MboxIterator finds 5 messages as it should .",
"MIME parsing is not easy because the grammar is not very well defined .",
"However you may want to look at other libraires for MIME parsing .",
"I could get the mail successfully delivered locally by doing to following .",
"Remove the first headers FROM MAILER and then make sure all lines following after Content-Type are indented eg charset and boundary by at least one whitespace character as required by the spec RFC822 or later or remove the linefeed .",
"It seemed this may be possible using javax.mail.internet.MimeMessage http : docs.oracle.com javaee 1.4 api javax mail internet MimeMessage.html .",
"Before I asked about how to create MIME-atachment text xml in Java and now I have one simple question .",
"As a semester project I started to implement a MIME parser to show how you can interleave multiple parsers with a MIME parser when you have a multipart message .",
"Here is a helper class that we use successfully to parse e-mails with their attachments .",
"I am new to both Android and Apache .",
"Javamail provides session and connections to a mail-server via IMAP or POP3 from which you then read Messages .",
"I need to send SOAP message with mime-attachment into my web-service .",
"I read the RFCs multiple times and writing a compliant MIME parser is not an easy task because of this problem .",
"on the interleaved part .",
"Usually a footer is just part of the text of the message .",
"I need xml xml part to be parsed .",
"I do not know the root of this problem the email format or my program",
"So I get e-mails plain text or multipart with any content maybe also attachments .",
"The end goal is to adapt this behavior into MapReduce so coping with the chance that one part of the email will be on one filesplit and another part in a different filesplit is necessary .",
"However the result is not what I expect : for a multipart message containing a plain text part and an html part only one TextBody is created .",
"Nevertheless you can maybe tweak complete the current implementation I started very incomplete github.com alexcrt interleaved-parsers blob master src main https : github.com alexcrt interleaved-parsers blob master src main scala mime MIMEParser.scala .",
"This was on a Mac with Java 1.6 0 65 and also with 1.8.0 11 .. . .. . Output was as follows : .. . .. . java -cp .",
"Here is my test program : .. . .. . Here is a part of my email file :",
"Is there a mailbox parser in Java",
"If you re not limited to Scala you may try Flanker github.com mailgun flanker https : github.com mailgun flanker which can parse MIME messages .",
"I think you need InternetAddress class from javax.mail : http : docs.oracle.com javaee 6 api javax mail internet InternetAddress.html getAddress .. . .. . Minimum working example :",
"also tried with java 1.6.0 to no avail. .",
"this is in version 0.8 that wasn t released",
"Yes my fix can be improve I guess handling the case-when r is alone",
"Thus you the informations are very sparse and there is not a one-standard format .",
"Am I using the wrong jars or version"
]
} | {
"confidence": [
103.01387786865234,
102.32472229003906,
96.95478057861328,
91.92668914794922,
89.13312530517578,
73.88738250732422,
70.48666381835938,
70.24356842041016,
69.9386215209961,
68.51567077636719,
64.8665542602539,
63.2685546875,
62.451622009277344,
62.355438232421875,
60.55958938598633,
58.2325325012207,
53.825218200683594,
53.13243103027344,
50.48938751220703,
48.56777572631836
],
"content": [
"Question : I downloaded the binaries of the latest stable version of apache-mime4j 0.7.2 . Yet I fail to compile the next code since MboxIterator CharBufferWrapper classes are not found . The jars included in my build path : apache-mime4j-core-0.7.2.jar apache-mime4j-dom-0.7.2.jar . Am I using the wrong jars or version .. . Answer : You can clone the current snaphshot of the mime4j project from .. . .. . http : svn.apache.org repos asf james mime4j trunk .. . .. . to your personal github account .. . .. . or use my clone : .. . .. . https : github.com WolfgangFahl james-mime4j .. . .. . and your MBoxIterator is here : .. . .. . https : github.com WolfgangFahl james-mime4j tree trunk mbox src main java org apache james mime4j mboxiterator",
"Question : null .. . Answer : In one of my Java applications I have to forward e-mails . So I get e-mails plain text or multipart with any content maybe also attachments . I edit their subject from- and to-header and send them via SMTP . I already implemented this using Apache James Mime4j http : james.apache.org mime4j apidocs index.html and Apache Commons Net http : commons.apache.org proper commons-net javadocs api-3.3 index.html but now I also have to append a footer signature to the content of each e-mail . Can I achieve this with Mime4j too Would be great How If not : is there another way .. . .. . EDIT : Details after Wolfgang Fahl s comment : .. . .. . Maybe I m using the library the wrong way but I am parsing the message as follows : .. . .. . Now I have an instance of Message and I can set it s subject sender etc . But Message https : james.apache.org mime4j apidocs org apache james mime4j dom class-use Message.html does not provide a method setText or something like that . Ok there is getBody but then I don t know how to manipulate the Body https : james.apache.org mime4j apidocs org apache james mime4j dom Body.html . Comment : Usually a footer is just part of the text of the message . So setText would be your function . I assume you d like to do something different - please explain what you are up to - may be with a code example . Comment : Thanks for trying to help me . I edited my question and added some details about my code . Basically I don t know what setText method you mean . Comment : I see what s going on . Personally I do not use James methods for sending mail by SMTP . I use javax.mail.Message . See e.g . stackoverflow.com questions 13358453 http : stackoverflow.com questions 13358453 sending-an-mail-in-java-using-smtp for how to use it . You ll need to adapt from the james message to java s standard way on how to do things if you try this route .",
"Question : I downloaded the binaries of the latest stable version of apache-mime4j 0.7.2 . Yet I fail to compile the next code since MboxIterator CharBufferWrapper classes are not found . The jars included in my build path : apache-mime4j-core-0.7.2.jar apache-mime4j-dom-0.7.2.jar . Am I using the wrong jars or version .. . Answer : I had the same problem but I ended getting it to work by doing a little research . The classes you mention at least by what I found are not included into Mime4J so you have to code them yourself . Thanks to the devs they got them uploaded in the following link : MBoxIterator needed classes http : svn.apache.org repos asf james mime4j trunk mbox src main java org apache james mime4j mboxiterator . Hope those solve the problem .",
"Question : I downloaded a mailing list archive from SourceForge . Mailing lists are each automatically archived to a mbox file . So now I need to extract the body from mbox file using Java . Is there a mailbox parser in Java Thanks .. . Answer : This blog http : ieugen.blogspot.com 2012 06 java-mbox-parsing-with-apache-james.html shows how to do it with Apache Mime4j Comment : this is in version 0.8 that wasn t released the latest version 0.7.2 doesn t have this functionality . How can this solution be used Comment : The source code is available from the website at james.apache.org mime4j start build.html http : james.apache.org mime4j start build.html You can download the trunk from svn which does have this functionality and build it yourself . Comment : thanks . I built the code and ran the sample svn.apache.org repos asf james mime4j trunk examples src main http : svn.apache.org repos asf james mime4j trunk examples src main java org apache james mime4j samples mbox IterateOverMbox.java on several mbox files from enron dataset and my own mbox downloaded from gmail and always all of the fields of all Messages are null the DefaultMessageBuilder seem to fail while MboxIterator seem to work . Do you have any sample mbox that works with this code I can t get anything other than null Comment : Sorry no . Haven t used this ln quite a while and no longer have whatever mbox I was converting . Comment : Even when I run mime4j test mbox file github.com ieugen mbox-iterator blob master src test resources https : github.com ieugen mbox-iterator blob master src test resources test-1 mbox.rlug DefaultMessageBuilder fails and all fields are null even that MboxIterator finds 5 messages as it should . I am starting to lose hope. . will open an SO question",
"Question : null .. . Answer : I ve a lot of .eml files and need to parse them . I m using mime4j version 0.6.1 and wanna to update to version 0.7.2 but cannot find any good sample . I read post apache mime4j maven-dependency for 0.7.2 https : stackoverflow.com questions 15070543 apache-mime4j-maven-dependency-for-0-7-2 15070696 15070696 and it helped me to get right maven-dependency . But it s still a lot of problems with new methods . For example in version 6 class Multipart got method getBodyParts and return List BodyPart and now it returs List Entity . Does anyone have good example how to parse SMTP eml email with mime4j 0.7.2 Comment : What about james.apache.org mime4j samples.html https : james.apache.org mime4j samples.html It should have fresh samples in distribution pack . Comment : Of cause I saw this . If you so smart please give me example . How you convert Entity to BodyPart because I got java.lang.UnsupportedOperationException",
"Question : Can anybody help in pointing me to some code to extract attachments from Multipart Mime using Mime4j I couldn t find any I need it for Mime4j 0.7.2 latest . I am trying to process attachments from James Hook Mailets . Comment : Did you check the mime4j documentation Are you saying a simple web search did not turn up anything What code do you have so far What exactly is not working Comment : Yes I searched but couldn t anything fruitful . Here is a paste of my code mostly from james mime4j . I want to extract the body and attachments I don t want to write my own parser as there are all sorts of emails that can mess up my parser . pastebin.com w3YvBydp http : pastebin.com w3YvBydp Comment : Anybody can help here I don t know how to extract the attachment precisely from this : List MIMEPart parts mm.getAttachments .. . Answer : Ok found the answer just have to loop parts.get i .readOnce or read .",
"Question : null .. . Answer : I m trying to parse raw email messages over HTTP one at a time that come in MIME multipart . Here is a chunk of one of the mails the mail that my code most recently threw this exception on .. . .. . And here is i think the relevant chunk of that mail : .. . .. . Is there a Scala library out there for easily handling this type of input Otherwise is there an easy way to write some code that handles it I ve been looking at mime4j http : james.apache.org mime4j and this scala code https : github.com mattanja messenger blob c2c8cc009f3fa65868633a929aecb078a10ea624 app models Email.scala in particular . As of now my code just uses scala.io.Source.fromURL to scrape the raw mail as follows : .. . .. . which turns the BufferedSource into a String and splits it : .. . .. . I ve also tried using an implicit codec since scala.io.Source.fromURL http : www.scala-lang.org api 2.11.5 index.html scala.io.Source 24 can take a codec : .. . .. . but I think I d need one of these for each charset Any help is greatly appreciated . Comment : MIME parsing is not easy because the grammar is not very well defined . The problem is that I m under the impression that it has been built block by block . Thus you the informations are very sparse and there is not a one-standard format . I read the RFCs multiple times and writing a compliant MIME parser is not an easy task because of this problem . As a semester project I started to implement a MIME parser to show how you can interleave multiple parsers with a MIME parser when you have a multipart message . It s really an early implementation and does not follow the RFCs because I only focused. . Comment : on the interleaved part . Nevertheless you can maybe tweak complete the current implementation I started very incomplete github.com alexcrt interleaved-parsers blob master src main https : github.com alexcrt interleaved-parsers blob master src main scala mime MIMEParser.scala . I used the parser-combinators API . If you have a clear well defined grammar for your input then it shouldn t be very hard to complete this code to parse the email messages . However you may want to look at other libraires for MIME parsing . If you re not limited to Scala you may try Flanker github.com mailgun flanker https : github.com mailgun flanker which can parse MIME messages . Hope it helps a bit :",
"Question : I just downloaded and setup the Apache James 3 latest beta release on Windows and so far i haven t been able to send a simple message . It looks like there is an issue with the build . The error is - .. . .. . The relevant class in the JAR shows the supposedly missing constructor so i am at a complete loss . Can anyone guide me in the right direction please Thanks in advance Edit : Decompiled code snippet from the MimeConfig class shows the constructor Comment : Posting your code will help people understand it more clearly . Comment : The relevant class in the JAR shows the supposedly missing constructor -- how specifically did you verify this Comment : It s not my code i just created users and sent mail per the Quickstart guide james.apache.org server 3 quick-start.html https : james.apache.org server 3 quick-start.html Comment : @DavidP.Caldwell I looked at the source code. . Comment : The source code may not be a valid guide here unless you built the source code yourself and did not use some kind of binary distribution . See if you can examine the relevant classes with the javap command . .. . Answer : I got the same error and was searching for an answer . The error is because MimeConfig doesn t have a default constructor . I could get the mail successfully delivered locally by doing to following . 1 . Dowloaded apache-mime4j-core-0.8.0-20150617.024907-738-sources .. . 2 . Created a default public constructor for MimeConfig .. . 3 . Initialized all the variables with values shown in the static-class Builder constructor .. . 4 . Added setters for all the variables Because I was getting NoSuchMethodError for setMaxLineLen .. . 5 . Created a jar called apache-mime4j-0.8.0-fix.jar and pushed into the lib folder .. . 6 . I use run.sh so replaced the mime4j core jar name with the above one . I am sure there is some mismatch between spooler and mime4j . I think the calling code should use the Builder instead of directly trying to instantiate the MimeConfig . Try these and let me know if it works . It worked for me . I am not sure if this is a permanent fix but I can go ahead with exploring the V3 features till we get a permanent solution .",
"Question : I found this example for parsing an email : http : www.mozgoweb.com posts how-to-parse-mime-message-using-mime4j-library .. . .. . But the example is not working because import org.apache.james.mime4j.message.Message is not working . How can I create a Message from a file Comment : What specifically isn t working Did you setup the dependency properly Comment : The problem is that the import import org.apache.james.mime4j.message.Message is not working . Message is not known . Others imports like import org.apache.james.mime4j.message.BodyPart is ok .. . Answer : You need this jar in your classpath : .. . .. . http : central.maven.org maven2 org apache james apache-mime4j 0.6.1 apache-mime4j-0.6.1.jar .. . .. . Dependency For maven : Comment : Added this jar file works now thanks Comment : Now I have another problem : I am getting this error : NoSuchMethodError on new Message fis . fis is a file input stream Comment : @Peter . . I downloaded the jar extracted and can see the constructor public Message InputStream is . Are you doing the right import org.apache.james.mime4j.message Comment : Yes import org.apache.james.mime4j.message.Message even tried new org.apache.james.mime4j.message.Message fis Comment : @Peter Are you getting on run-time or its not letting you compile it",
"Question : I ve downloaded mime4j 0.8.0 snapshot from subversion and built it with maven . The relevant jars I generated can be found here https : www.dropbox.com sh se5jhtix4h7cvo3 AAAGlUEbTv6Acp8lWHEnMtR5a dl 0 . Now I try to parse a toy mbox file https : github.com ieugen mbox-iterator blob master src test resources test-1 mbox.rlug from mime4j test . I use this sample code http : svn.apache.org repos asf james mime4j trunk examples src main java org apache james mime4j samples mbox IterateOverMbox.java . Briefly : .. . .. . + .. . .. . The output is : .. . .. . Message null Sent by : null To : null .. . .. . Message null Sent by : null To : null .. . .. . Message null Sent by : null To : null .. . .. . Message null Sent by : null To : null .. . .. . Message null Sent by : null To : null .. . .. . Found 5 messages .. . .. . There are indeed 5 messages but why are all fields null Comment : Could you just print the raw message in the loop in order to see if it s correctly constructed System.out.println message .. . Answer : Based on @zvisofer answer I found the guilty piece of code http : grepcode.com file repo1.maven.org maven2 org.apache.james apache-mime4j-core 0.7 org apache james mime4j io BufferedLineReaderInputStream.java v source in BufferedLineReaderInputStream : .. . .. . The best thing to do would be to report the bug but here is a fix a little dirty but it s working fine .. . .. . Create the class org.apache.james.mime4j.io.BufferedLineReaderInputStream in your project .. . .. . Replace the method public int readLine final ByteArrayBuffer dst by this one : .. . .. . Enjoy both unix and dos files : Comment : This code causes 5 build tests to fail one of them is error . I guess that it will fail if you have r not followed by n Comment : Yes my fix can be improve I guess handling the case-when r is alone Comment : using : byte microsoftSucks byte r byte n int i indexOf microsoftSucks Fixes 3 tests but two are still failing",
"Question : I am trying to move from Javamail to mime4j in the hope of having less trouble parsing mail . However I haven t managed to find out how to connect to a mail-server to then use mime4j to parse messages . Javamail provides session and connections to a mail-server via IMAP or POP3 from which you then read Messages . As far as I can tell mime4j does not offer anything equivalent . So how can I connect to mail servers to use mime4j Can I use Javamail in conjunction with mime4j I have tried using the javamail Message.getInputStream method to get an input stream that I pass to mime4j s DefaultMessageBuilder.parseMessage . However the result is not what I expect : for a multipart message containing a plain text part and an html part only one TextBody is created . I suspect this is because the DefaultMessageBuilder.parseMessage is expecting a stream for the whole message not just the body but that javamail Message.getInputStream only provides the body . In fact I m only interested in the body since this is what was causing problems with Javamail but parsing the whole message if I could get it as an input stream form Javamail would do just as well . Any help greatly appreciated .. . Answer : If you re using POP3 all the message parsing happens on the client-side in JavaMail . Have you looked at the many properties you can set in JavaMail to configure how parsing errors are handled If you re using IMAP most of the parsing is done by the server . What sort of parsing errors are you still having with JavaMail Are they problems parsing the content of the email messages or problems parsing the IMAP protocol messages With more details of the problems you re running into I might be able to help you configure JavaMail to work for you . If you really want to use another MIME message parser you ll need to use the Message.writeTo method to get the entire MIME content of a message which you can pass to some other library to parse . Comment : I ve been using IMAP but experiencing hanging when using methods on the Body using Javamail rather than errors . I tried various suggested methods to force parsing on the client-side like making a copy of the Message but none worked . Perhaps just using POP3 would work better . Just tried the Message.writeTo and it works . I tried it before but must have misinterpreted the results . Thanks Comment : Hangs usually mean your server is broken . Again I m glad to help you make JavaMail work but I need a lot more details of the problems you re having . Feel free to send me the details at javamail ww@oracle.com if you don t want to deal with it here . Comment : Thanks for your offer of help Bill . I m going to stick with the Mime4j solution you ve given me for now . Cheers",
"Question : I m trying to use mime4j to parse emails all is working fine however I m not able to get the file name of the attachment . Unfortunately the BodyDescriptor doesn t include this information in the content-disposition or content-type fields . I have read that the MaximalBodyDescriptor will include the filename however I don t know how to tell the parser to return a MaximalBodyDescriptor object . My handler is implementing the ContentHandler interface . I can t see an alternate interface which would work . Any advice appreciated . Comment : I have the same issue . I wonder if @Joe Cheng could shed any light on it .. . Answer : I recommand you to use Token streams http : james.apache.org mime4j usage.html . It is quite straight forward with it . You can locate attachment by using headers of your multipart section : .. . .. . You must be carefull when parsing a header with it .. . It can be mail headers or multipart section header... .",
"Question : I encountered a problem when parsing email with mime4j . The email has an attachment and I use MimeStreamParser to parse it . The parser does not call startMultipart method at all . Instead it only calls body method once and the BodyDescriptor is text plain . I do not know the root of this problem the email format or my program Here is my test program : .. . .. . Here is a part of my email file : .. . Answer : Use the following library based on mime4j : email-mime-parser https : github.com ram-sharma-6453 email-mime-parser .. . .. . The provided sample code takes care of email parsing and the resulting email object provides convenience method for the solution of your problem : Comment : Whilst this may theoretically answer the question it would be preferable meta.stackoverflow.com q 8259 to include the essential parts of the answer here and provide the link for reference .",
"Question : I ve downloaded mime4j 0.8.0 snapshot from subversion and built it with maven . The relevant jars I generated can be found here https : www.dropbox.com sh se5jhtix4h7cvo3 AAAGlUEbTv6Acp8lWHEnMtR5a dl 0 . Now I try to parse a toy mbox file https : github.com ieugen mbox-iterator blob master src test resources test-1 mbox.rlug from mime4j test . I use this sample code http : svn.apache.org repos asf james mime4j trunk examples src main java org apache james mime4j samples mbox IterateOverMbox.java . Briefly : .. . .. . + .. . .. . The output is : .. . .. . Message null Sent by : null To : null .. . .. . Message null Sent by : null To : null .. . .. . Message null Sent by : null To : null .. . .. . Message null Sent by : null To : null .. . .. . Message null Sent by : null To : null .. . .. . Found 5 messages .. . .. . There are indeed 5 messages but why are all fields null Comment : Could you just print the raw message in the loop in order to see if it s correctly constructed System.out.println message .. . Answer : I downloaded your jar files the sample code that you pointed to and the sample mbox file that you pointed to compiled the sample with no changes and ran it against the sample mbox file . It worked as expected fields contained the expected data not nulls . This was on a Mac with Java 1.6 0 65 and also with 1.8.0 11 .. . .. . Output was as follows : .. . .. . java -cp . : apache-mime4j-core-0.8.0-SNAPSHOT.jar : apache-mime4j-dom-0.8.0-SNAPSHOT.jar : apache-mime4j-mbox-iterator-0.8.0-SNAPSHOT.jar IterateOverMbox mbox.rlug.txt .. . .. . Message Din windows ma pot din LINUX NU ma pot conecta la ZAPP Sent by : rlug-bounce@lug.ro To : rlug@lug.ro .. . .. . Message Re : RH 8.0 boot floppy Sent by : rlug-bounce@lug.ro To : rlug@lug.ro .. . .. . Message Qmail mysql virtualusers +ssl + smtp auth +pop3 Sent by : rlug-bounce@lug.ro To : rlug@lug.ro .. . .. . Message Re : Din windows ma pot din LINUX NU ma pot conecta la ZAPP Sent by : rlug-bounce@lug.ro To : rlug@lug.ro .. . .. . Message LSTP problem - solved Sent by : rlug-bounce@lug.ro To : rlug@lug.ro .. . .. . Found 5 messages Done in : 108 milis Comment : It fails for me on two windows machines . I will try other OS Comment : also tried with java 1.6.0 to no avail. .",
"Question : I ve downloaded mime4j 0.8.0 snapshot from subversion and built it with maven . The relevant jars I generated can be found here https : www.dropbox.com sh se5jhtix4h7cvo3 AAAGlUEbTv6Acp8lWHEnMtR5a dl 0 . Now I try to parse a toy mbox file https : github.com ieugen mbox-iterator blob master src test resources test-1 mbox.rlug from mime4j test . I use this sample code http : svn.apache.org repos asf james mime4j trunk examples src main java org apache james mime4j samples mbox IterateOverMbox.java . Briefly : .. . .. . + .. . .. . The output is : .. . .. . Message null Sent by : null To : null .. . .. . Message null Sent by : null To : null .. . .. . Message null Sent by : null To : null .. . .. . Message null Sent by : null To : null .. . .. . Message null Sent by : null To : null .. . .. . Found 5 messages .. . .. . There are indeed 5 messages but why are all fields null Comment : Could you just print the raw message in the loop in order to see if it s correctly constructed System.out.println message .. . Answer : I found the problem . DefaultMessageBuilder fails to parse mbox files that have windows line separator r n . When replacing them with UNIX line separator n the parsing works . This is a critical issue since the mbox files downloaded from Gmail use r n . Comment : You might want to post a change request for the apache james project . My experience with the community there is good .",
"Question : MIME message senders appear in formats such as : .. . .. . I m trying to figure out how to extract the string johndoe@gmail.com in the above examples although I will also need the johndoe and gmail.com parts per RFC I m pretty sure splitting on @ is all that s needed from here . Obviously regex-ing up my own parser is one not great option . It seemed this may be possible using javax.mail.internet.MimeMessage http : docs.oracle.com javaee 1.4 api javax mail internet MimeMessage.html . All of the constructors require a Folder which I do not have well I sort of do it exists in the IMAP layer e.g . Which makes me feel I m using this class wrong . Nonetheless if I parse this way I do get access to the getFrom method which returns an array of Address http : docs.oracle.com javaee 1.4 api javax mail Address.html which itself doesn t offer methods of use to me . Using mime4j it s easy to get this far : .. . .. . So using mime4j or using java javax etc . utilities it should be possible to extract the a@b.com part of the address from there but I haven t found a class within javax or mime4j that is responsible for this yet . .. . Answer : I think you need InternetAddress class from javax.mail : http : docs.oracle.com javaee 6 api javax mail internet InternetAddress.html getAddress .. . .. . Minimum working example : Comment : Yes thanks got it from here . To make this a good answer though you should include how to use it - I upvoted because this helped me but it s close to a link only answer .",
"Question : I encountered a problem when parsing email with mime4j . The email has an attachment and I use MimeStreamParser to parse it . The parser does not call startMultipart method at all . Instead it only calls body method once and the BodyDescriptor is text plain . I do not know the root of this problem the email format or my program Here is my test program : .. . .. . Here is a part of my email file : .. . Answer : The problem is with the sample email which not multipart . It contains as inline text a multipart email . Remove the first headers FROM MAILER and then make sure all lines following after Content-Type are indented eg charset and boundary by at least one whitespace character as required by the spec RFC822 or later or remove the linefeed . See example : .. . .. . Change from : .. . .. . to either : .. . .. . or : .. . .. . Alternatively try a different message .",
"Question : I ve implemented a solution to parse Email Files .eml into objects using Mime4J . The process parses an email file create an object and write a new file to disk . I was wondering if is possible to send the MimeMessage of Mime4J through Transport.send mimeMessage instead to create a new file . .. . Answer : The simplest approach would be to use the Mime4J Message.writeTo method to write the message to a ByteArrayOutputStream then wrap the byte array with a ByteArrayInputStream and use that to construct a JavaMail MimeMessage object . A more complex but more efficient approach would be to create a class that subclasses MimeMessage and delegates most of the methods to the corresponding methods on the Mime4J Message object . Comment : you re the man . Thank you",
"Question : I am working with MIME4J to read MIME events from an email stack dump . I am attempting to read a given message event as defined by the START MESSAGE and END MESSAGE headers as an entire event as I will be moving the process to a distributed filesystem eventually and need to plan for file-split boundary traversing . For the event-based parsing in mime4j a ContentHandler interface is required and methods are called from it by the parser which requires the handler be set to it . I have experimented with a sample Handler from another SO answer that extends the mime4j packaged SimpleContentHandler but that one really only parses headers . I am trying to build my custom ContentHandler class to gather the complete message as one event . I would then need to have the event in a temporary object so I could parse headers their fields and the contents of the fields out of it . The end goal is to adapt this behavior into MapReduce so coping with the chance that one part of the email will be on one filesplit and another part in a different filesplit is necessary . For my custom ContentHandler I ve gotten as far as : .. . .. . And for a main I am using : .. . .. . So any help on how to build the information in the handler would be really helpful . I ve tried setting a new MessageImpl then using a builder to copy a parsed stream into it and I have also tried to build a newMessage from a parse of the stream and then print the Message when the END MESSAGE header is read but it printed nulls . I may be experiencing a conceptual blind spot too . If that s the case I am ok with it being pointed out . Thanks Comment : Using the dom parser might be much easier . .. . Answer : Here is a code excerpt that works for me . As soon as I find an interesting message with the statebased parser i switch to the dom parser to create a message object .",
"Question : null .. . Answer : I am using Mime4J to mime-encode a message . I have a text part and attachments which I add to a MultipartImpl object . My problem is this : all of the examples I can find involve attaching the MultipartImpl object to a MessageImpl object ready for sending via email . But I do not want to do this . I simply want to encrypt the multipart text itself . I tried using the following : .. . .. . but this gives me the following error : .. . .. . as the MessageWriter expects the Multipart to have a parent . Is there a way to get the multipart to output to text without having to attach it to a message"
]
} | [
"yes-answer-long",
"yes-answer-short"
] | mime4j | UNK_RELATION |
wsf@wsf@30 | wsf -- a windows script file @placeholder is a file-type used by the microsoft windows script host . | {
"confidence": [
48.41106414794922,
40.054813385009766,
39.106468200683594,
36.92697525024414,
36.03839111328125,
35.305721282958984,
34.97261047363281,
34.56222152709961,
33.63315963745117,
33.25761413574219,
32.48128890991211,
32.24178695678711,
31.904537200927734,
30.82489585876465,
30.151081085205078,
29.424758911132812,
29.051807403564453,
28.56806182861328,
28.567089080810547,
28.4143123626709,
27.643218994140625,
27.630918502807617,
27.54176902770996,
27.380470275878906,
27.354652404785156,
26.853069305419922,
26.7362060546875,
26.681718826293945,
26.681718826293945,
26.493183135986328,
26.48093032836914,
26.158763885498047,
26.154817581176758,
25.711023330688477,
25.518028259277344,
25.518028259277344,
25.518028259277344,
25.26082992553711,
25.129575729370117,
24.97504425048828,
24.594053268432617,
24.443771362304688,
24.348644256591797,
24.138896942138672,
23.996028900146484,
23.996028900146484,
23.996028900146484,
23.996028900146484,
23.996028900146484,
23.996028900146484,
23.80162811279297,
23.681856155395508,
23.49706268310547,
23.49706268310547,
23.34055519104004,
23.24099349975586,
23.153484344482422,
22.858295440673828,
22.858295440673828,
22.858295440673828,
22.842159271240234,
22.752017974853516,
22.752017974853516,
22.699689865112305,
22.58399200439453,
22.58399200439453,
22.50638771057129,
22.312484741210938,
22.304502487182617,
22.15406608581543,
22.14710235595703,
22.142070770263672,
22.141094207763672,
21.988872528076172,
21.988872528076172,
21.942428588867188,
21.782068252563477,
21.782068252563477,
21.782068252563477,
21.782068252563477,
21.782068252563477,
21.763225555419922,
21.614280700683594,
21.614280700683594,
21.494686126708984,
21.438491821289062,
21.438491821289062,
21.384170532226562,
21.15726089477539,
21.127166748046875,
21.127166748046875,
21.127166748046875,
21.127166748046875,
21.126972198486328,
21.10275650024414,
21.041793823242188,
20.970195770263672,
20.919004440307617,
20.87322235107422,
20.819570541381836
],
"content": [
"WSF and WSC Windows Script Component files are XML files that are interpreted by the WIndows Script Host .",
"Is there any way to have a .wsf script run via a c application Windows forum application",
"Is there a way for me to trigger this event from a windows-scripting host file - JScript or VB script",
"There is no InputBox in your .wsf file .",
"I am trying to execute a WSF script file from a PowerShell command with an argument and can not get it to work .",
"Had you used an InputBox the .wsf file would ve behaved the same as the HTA .",
"By chance I had to read the ActivePerl User Guide topic Windows Script Host and found resource getResource .",
"In other words is it possible to store a variable in this case a large multi line string within the XML part of a WSF file and then use that variable within the script",
"Is your JScript code inside the WSF file",
"For example : .. . .. . The MSDN article you linked to is about JScript.NET which is separate from Windows Script Host .",
"We have a Windows Script File X.wsf which in turn will call Y.vbs .",
"I have a simple script made in WSF which look like this : .. . .. . This scripts opens a telnet session at our work goes to a specific folder in the server and runs a script in this case run sapna ib script .",
"What I m trying to do is to return the process id of the currently executing wsf script .",
"Steps taken : But no result didn t work .. . .. . 1 In the run a program tab gave the complete path of the script 2 Written a bat file and which inturn call that .wsf file 3 Gave the path of administrator cmd.exe path in run a program tab and gave the path of the script file in the command-line parameters tab .",
"My .wsf file works perfectly but when I incorporated this into a .hta file as part of a toolbox it fails .",
"@Joel : Windows Scripting Files are executed using a Scripting Host such as WScript or CScript .",
"I have written a script .wsf to trigger an Email when a particular service fails .",
"I am new to WSF C++ .",
"I realize that JavaScript is not usually used to copy folders or files but I m using a wsf file written in JavaScript for use only on my local system .",
"I have JavaScript inside a .wsf file and I m getting the error : .. . .. . At line 53 it says .. . .. . I know that LDLSInfo.wsf the main script and StandardWSH.js the script to load both work fine because I ve ran them from a different machine .",
".. . .. . frame with java client : good serial-number .. . .. . Context : wsf php client : wso2 wsf php2.1.0 Debian 32bits .. . .. . Context : wsf php client : Policy.xml .. . .. . Context : wsf php client : client.php .. . .. . Certificate : Certificate :",
"Any thoughts on what I am doing wrong when trying to call the WSF file through powershell with the argument",
"So we suspect that Windows Scheduler must be behaving differently in Windows Server 2008 R2 for .wsf or .vbs files .",
"Abbreviated script to parse metada from file I m using :",
"I m not particular impressed with the WSF docs either .",
"There is a WSO2 WSF for PHP alternative library",
"I need a shortcut with path C : folder chrome.exe --user-data-dir User Data --enable-fastback .. . .. . WSF-script gives C : folder chrome.exe --user-data-dir User Data --enable-fastback .",
"Please let me know what i should do further in executing the script from windows service recovery tab .",
"I usually do it in shell script but I don t know how to do it in windows VBScript .",
"For first second and subsequent failure i have given run a program and added my .wsf file in that tab .",
"Additional Info : .. . .. . I m a JScript wsf noob .. . The JScript is called via a .wsf file and cscript .. . I tried to add a basic import System to the .js file which gave a syntax-error not sure why .. . I m only lightly scratching this project .",
"This worked with one script .",
"Also I have managed to solve my file size limit problem with a loader script that uses fso to open and eval the file that is too large .",
"The problem is as follows : .. . .. . I have created a webservice using WSF C++ .",
"You may need to check whatever process is trying to run the script has permissions to the file referenced .",
"Sometimes tasks are scheduled to run as accounts that dont have the permissions to read the script file etc .",
"When I run the script when not in Admin mode it loads the file just fine .",
"If you use linux read README.INSTALL file if you use windows read README.INSTALL WIN32",
"I am trying to run a pre-built .wsf file which seems to work perfectly fine for my colleagues .",
"Windows Explorer",
"Given that I m not a VB script expert the only way to find out what this script does was to actually start a long running script grab its process ID then try to terminate the process with that process ID .",
"Exactly the same script .",
"This is the environment where occurs : .. . .. . Client : .. . .. . CentOS release 5.7 .. . kernel 2.6.18-274.7.1.el5 x86-64 .. . PHP 5.3.4 with Suhosin-Patch cli built : Apr 11 2011 16 : 08 : 24 .. . .. . .. . wsf .. . .. . wsf support enabled .. . wsf version 2.1.0 .. . .. . .. . nginx version : nginx 1.0.8 .. . .. . Server : .. . .. . CentOS release 6.3 .. . kernel 2.6.32-279.el6.i686 .. . PHP 5.3.3 cli built : Jul 12 2013 20 : 21 : 47 .. . .. . wsf .. . .. . wsf support enabled .. . wsf version 2.1.0 .. . .. . apache : Apache 2.2.15",
"Here s the code used to request the WS in php5.3 - wsf 2.1.0 using HTTP .. . .. . At this step : .. . .. . 1 .",
"Is it possible to have .net run WSF scripts on the server in the background",
"I have a problem to consume metro java web-services with WSF PHP .",
"The latest version is here on github https : github.com wso2 wsf .",
"Just out of curiosity though why could I do the comparison in the .wsf",
"How on earth does your filename contain .bat .wsf in it",
"I have built a PHP SOAP server WSO2 WSF PHP 2.1 .",
"I m using the following code to obtain the current pid of the currently started wsf script : .. . .. . It worked perfectly while I started the wsf scripts sequentially however when more of them is started parallelly something unexpected happends multiple scripts are obtaining the same Process ID : .. . .. . Not to mention that randomly I m getting some garbe as exception .",
"Most likely it is a permissions problem - the service account probably cannot write to the directory you specified or it does not have permissions to read the script file itself .",
"Can anyone tell me if WSO2 WSF CPP has been hardened or checked against the NVD http : nvd.nist.gov database",
"I m not experienced in wsf and the above code is literally a copy-paste am I doing something wrong",
"I experienced this under Windows 2003 .",
"I downloaded an alternate tar.gz of the source code from here : http : dist.wso2.org products wsf php 2.1.0 wso2-wsf-php-src-2.1.0.tar.gz .. . .. . This does have the configure file although I am getting compilation errors afterwards but your environment might be different .",
"Do you really need the script to determine its own process ID",
"WSF Staff itself does not have any limitations for response size .",
"I m trying to install WSO2 WSF PHP extension to use SOAP with WSSE .",
"Is there a more up-to-date version of wso2 s wsf framework for PHP",
"So I just had to install the SDK for Windows machine .",
"You will need to tailor it to your script and environment .",
"I am trying to write a WSH logon script .",
"i want to install WSO2 for XAMPP I find this tutorial : http : wso2.com library 3076 link1 I download wso2 from : https : github.com wso2 wsf but as shown in tutorial i can not find wsf.dll file in my downloaded file php folder so the content is a bit different .",
"I will not write the entire script for you .",
"I have this Script that when it runs. .",
"Solved in the same way as in Error when trying to run security examples in wsf php 2.1 http : stackoverflow.com questions 8854420 error-when-trying-to-run-security-examples-in-wsf-php-2-1 : .. . .. . and then configuring wsf php by running .. . .. . Follow the rest of the normal installation steps and it should work .",
"What I want may be complex I think so I m just wondering if I can do this : .. . .. . When I click on the WSF file to run a window like the JOptionPane in Java would appear showing some checkboxes with options to check .",
"For some unknown reason our wscript file now works in Windows Scheduler .",
"possible duplicate of Running a program script from QMake http : stackoverflow.com questions 3612283 running-a-program-script-from-qmake",
"File name is Transfer.vbs",
"You have wsf code https : technet.microsoft.com en-us subscriptions 15x4407c 28v vs.84 29.aspx not plain VBScript code .",
"Basically I have a VB Script integrated into a batch script via : .. . .. . This is called via an example batch line thus : .. . .. . I don t think the code is the problem .",
"I decided to use WSO2 WSF PHP framework and according to http : wso2.org project wsf php 2.0.0 docs manual.html created my first helloService .",
"Whilst attempting to follow the demos of the wso2 wsf for PHP framework I don t seem to be able to run several of the example scripts even though I ve compiled and installed the wso2 wsf .so files and everything .",
"Disable Automation Script .",
"Java client work fine but WSF PHP send bad serial-number 2147483647 .",
"I m using WSO2 WSF for PHP WSO2 Web Services Framework for PHP and my PHP version is 5.3 .",
"I m having to do this as part of a website running an old version of php is being upgraded to 5.3 and still needs WSF to run .",
"and i can not find wso2-wsf-php-bin-1.2.0-win32 to download .. . .. . can anyone help me please",
"So apparently this only occurred when I ran the .wsf in Admin mode in the command-prompt .",
"And running the script in a non admin account didn t work for me so I imagine the actual error is a catch-all for more than one type of problem .",
"I get the concept of job and appreciate the flexibility of script .",
"I hereby added my script too .",
"Are there any add-ins for Visual Studio that assist with editing WSF and WSC files",
"I imagine the script could just be called from the command-line right",
"Additionally ensure the cscript.exe is the default script processor not wscript.exe via this command :",
"@Brian : Presumably he doesn t understand that he needs to shell out to run the script .",
"The powershell script I am attempting to use that is failing is : .. . .. . Now if I run the PowerShell script above with out an argument the script executes as expected Also if I just run the Cscript portion in cmd.exe with the argument it also works as expected .",
"I m having trouble compiling the WSO PHP framework on Windows .",
"I have a Windows service that is using WaitForMultipleObjectsEx with a global event .",
"Also the original question includes or other native windows program .",
"It works fine on one machine and not on the other both are Windows 7 x64 computers .",
"How it s possible the Windows obtains the same process id for simultaneously started processes",
"Or the C file",
"I have to call a SOAP WS on a .Net server using from my customer documentation .. . .. . I use WSO2 WSF PHP wso2-wsf-php-src-2.1.0.zip file here is my client .. . .. . On my local webservice it run fine but just throw an Exception Error NO Response Received on my customer preproduction server .",
"Register the .dll file that winscp gives you .",
"The latest version on GitHub https : github.com wso2 wsf doesn t seem to have an installation script and the tutorials http : kkpradeeban.blogspot.co.uk 2012 01 installing-wso2-wsfphp-on-ubuntu-1004.html I ve found for newer versions don t seem to work at all despite seeming to have found the latest version 2.1.0 .",
"I believe you can use Process.Start http : msdn.microsoft.com en-us library h6ak8zt5.aspx to call the script host : .. . .. . For details on the command-line-arguments see TechNet s article on running scripts from the command-line http : technet.microsoft.com en-us library bb490816.aspx .",
"Out of curiosity do you know the file size of your referenced file"
]
} | {
"confidence": [
47.9323844909668,
47.52845001220703,
46.4893913269043,
45.59297561645508,
44.5493049621582,
43.70740509033203,
42.89006423950195,
42.1673469543457,
41.762489318847656,
41.56620788574219,
40.4617805480957,
39.5704345703125,
38.977935791015625,
38.87574005126953,
36.039859771728516,
36.00453186035156,
35.186363220214844,
35.089454650878906,
34.963294982910156,
34.64675521850586
],
"content": [
"Question : As an alternative to this.. . .. . .. . Is something like this possible .. . In other words is it possible to store a variable in this case a large multi line string within the XML part of a WSF file and then use that variable within the script I am trying to avoid having to store large multi line strings in this ugly way within vbscript code . I know I can store the string in a separate file and read it in and I do do that but I am asking this question to establish whether this is possible . .. . Answer : By chance I had to read the ActivePerl User Guide topic Windows Script Host and found resource getResource . On microsoft.com I found this https : msdn.microsoft.com en-us subscriptions 39s1fhfy 28v vs.84 29.aspx . I modified the sample to show the importance of CDATA : .. . .. . output : .. . .. . Some work wrt whitespace still seems necessary . .. . .. . Old version kept to show that rtfm beats roll your own . .. . .. . If you are willing to .. . .. . 1 . write your XML by the book .. . 2 . add a function using the MSXML2.DomDocument to each .WSF .. . 3 . do some extra work wrt whitespace .. . .. . you can . Demo : .. . .. . output :",
"Question : Are there any add-ins for Visual Studio that assist with editing WSF and WSC files WSF and WSC Windows Script Component files are XML files that are interpreted by the WIndows Script Host . They contain script metadata in XML elements and one or more scripts in CDATA blocks . Sapien PrimalScript does a great job of handling these files and displays them as a workspace or a Solution in VS parlance with the embedded scripts shown and editable separately with syntax-highlighting basic intellisense etc . When I open these files in VS it just displays as an XML file . Is there an add-in for Visual Studio that will do more like what PrimalScript does I can use PrimalScript if I have to but I d rather not install a separate tool if I can help it . Comment : What kind of files are these Comment : @John Saunders : I just added a description of the files to the question . .. . Answer : From this comment http : mjjames.blogspot.com 2009 01 syntax-highlighting-and-intellisense.html showComment 1277653713237 c1376977537118625745 I added WSC as a file extension in VS2010 Tools Options Text Editor File Extension and set the editor to be HTML Editor . This allowed me to have Intellisense working for anything in the CDATA section of my WSC file . Comment : Awesome This did the trick thanks .",
"Question : I have JavaScript inside a .wsf file and I m getting the error : .. . .. . At line 53 it says .. . .. . I know that LDLSInfo.wsf the main script and StandardWSH.js the script to load both work fine because I ve ran them from a different machine . It works fine on one machine and not on the other both are Windows 7 x64 computers . So I m thinking I m missing some .dll s . Thanks for the help .. . .. . -jb Comment : Have you tried actually opening the script at the mentioned address through the filesystem e.g . Windows Explorer You can t assume that S : will be the same drive on every computer . Comment : Actually script.language must be javascript not jscript .. . Answer : Based on the link Marcus Pope provided and my own experience using the exact same VBS program with and without WSF I can confirm that there is an undocumented size limitation which gives rise to the message cannot retrieve URL -- note that this message does not say cannot find URL but rather that the object file cannot be retrieved loaded . I experienced this under Windows 2003 . I did not confirm the maximum retrievable size but the link gives it as 512 KB which is consistent with my experience of being unable to load a 1200 KB file .",
"Question : I have JavaScript inside a .wsf file and I m getting the error : .. . .. . At line 53 it says .. . .. . I know that LDLSInfo.wsf the main script and StandardWSH.js the script to load both work fine because I ve ran them from a different machine . It works fine on one machine and not on the other both are Windows 7 x64 computers . So I m thinking I m missing some .dll s . Thanks for the help .. . .. . -jb Comment : Have you tried actually opening the script at the mentioned address through the filesystem e.g . Windows Explorer You can t assume that S : will be the same drive on every computer . Comment : Actually script.language must be javascript not jscript .. . Answer : So apparently this only occurred when I ran the .wsf in Admin mode in the command-prompt . Pekka the S : drive is the same for both machines . abatishchev I didn t know that and I fixed the script.language to javascript . David cscript is the defualt processor . When I run the script when not in Admin mode it loads the file just fine . Of course now I have another error to figure out but that s another question entirely . Thanks for the input . -jb",
"Question : I m completely stumped . Is there any way to have a .wsf script run via a c application Windows forum application Comment : Have you looked at the Process Class http : msdn.microsoft.com en-us library system.diagnostics.process.aspx at all Comment : @Brian : Presumably he doesn t understand that he needs to shell out to run the script . Perhaps you can explain it to him in an answer Comment : @Joel : Windows Scripting Files are executed using a Scripting Host such as WScript or CScript . See msdn.microsoft.com en-us library xazzc41b v vs.84 .aspx http : msdn.microsoft.com en-us library xazzc41b v vs.84 .aspx Comment : To be honest I have no idea how to use that class . I m really new to coding . Would I just do : Process.Start pathOfScript .. . Answer : I believe you can use Process.Start http : msdn.microsoft.com en-us library h6ak8zt5.aspx to call the script host : .. . .. . For details on the command-line-arguments see TechNet s article on running scripts from the command-line http : technet.microsoft.com en-us library bb490816.aspx . Comment : I will try this . Thanks for the quick answers and reference links guys Comment : I cannot run this......Process configurProcess Process.Start WScript.exe B Nologo + 49A7D330-A7C5-4B4C-9980-84D2EE94070E GPOPack.wsf configurProcess.WaitForExit but nothing happens .",
"Question : I have JavaScript inside a .wsf file and I m getting the error : .. . .. . At line 53 it says .. . .. . I know that LDLSInfo.wsf the main script and StandardWSH.js the script to load both work fine because I ve ran them from a different machine . It works fine on one machine and not on the other both are Windows 7 x64 computers . So I m thinking I m missing some .dll s . Thanks for the help .. . .. . -jb Comment : Have you tried actually opening the script at the mentioned address through the filesystem e.g . Windows Explorer You can t assume that S : will be the same drive on every computer . Comment : Actually script.language must be javascript not jscript .. . Answer : You may need to check whatever process is trying to run the script has permissions to the file referenced . Sometimes tasks are scheduled to run as accounts that dont have the permissions to read the script file etc . It should be fine if you are just double-clicking the wsf s interactively on the machine and your account has permissions to open the file in notepad . As Pekka noted if the script was scheduled as a task it will run in a non-interactive process where S : may not be mapped . Copying to a local path is recommended for scripts that run as scheduled-tasks . Additionally ensure the cscript.exe is the default script processor not wscript.exe via this command :",
"Question : null .. . Answer : I m using the following code to obtain the current pid of the currently started wsf script : .. . .. . It worked perfectly while I started the wsf scripts sequentially however when more of them is started parallelly something unexpected happends multiple scripts are obtaining the same Process ID : .. . .. . Not to mention that randomly I m getting some garbe as exception . My questions are the following : .. . .. . 1 . How it s possible the Windows obtains the same process id for simultaneously started processes 2 . What causes the exception 3 . I m not experienced in wsf and the above code is literally a copy-paste am I doing something wrong Comment : What I m trying to do is to return the process id of the currently executing wsf script . Comment : Unless I m missing something that code is never going to work . I don t know where you got it from but I don t think it s any good . It doesn t do what it s supposed to what it does do is pointless and it isn t even reliable at doing that . Comment : I appreciate your comment I m a Java programmer and this code is borrowed from a really old forum post I could find the link if you want . Given that I m not a VB script expert the only way to find out what this script does was to actually start a long running script grab its process ID then try to terminate the process with that process ID . This worked with one script . If you have any reliable method to return the process ID please post an answer . Comment : Do you really need the script to determine its own process ID I ask because it is very easy for a script to determine the process ID for a process it has launched and depending on what you re trying to achieve it may be possible to rearchitecture to take advantage of this . Comment : These scripts are stared by an external framework I need to return their process ID because later I can manually terminate the script with taskkill .",
"Question : I have written a script .wsf to trigger an Email when a particular service fails . For first second and subsequent failure i have given run a program and added my .wsf file in that tab . Yet i am not getting Email alert . May i know what i should do to execute that . Steps taken : But no result didn t work .. . .. . 1 In the run a program tab gave the complete path of the script 2 Written a bat file and which inturn call that .wsf file 3 Gave the path of administrator cmd.exe path in run a program tab and gave the path of the script file in the command-line parameters tab . Note : I have executed this separately in cmd.exe and it worked by sending Email alert . To make service fail i manually stopped it restarted it yet notify didn t turned up . Please let me know what i should do further in executing the script from windows service recovery tab . I hereby added my script too . .. . Answer : Trying to automate a process with tools designed for desktop usage from a task executed from a system service and which runs in a limited session ... . if it works you have big luck . There are a lot of problems involved in getting it working and not sure if it will work on new versions of the system . If a scripted telnet session is needed your better option will be plink command-line tool from putty package . Or you can try with CDO",
"Question : null .. . Answer : I have a simple script made in WSF which look like this : .. . .. . This scripts opens a telnet session at our work goes to a specific folder in the server and runs a script in this case run sapna ib script . What I want may be complex I think so I m just wondering if I can do this : .. . .. . When I click on the WSF file to run a window like the JOptionPane in Java would appear showing some checkboxes with options to check . Let s say the options would be : .. . .. . SAPNA .. . SAPEMEA .. . .. . So if the person checks only the SAPNA in the script the only command that would be executed is : run sapna ib . Now if the person checks both options the line in the script that would run the commands would be : run sapna ib run sapemea ib .. . .. . It would concatenate the options selected with and run in that line in the script .. . it s because the server is an AIX server so all the commands would be executed in a row . I appreciate any help",
"Question : I have JavaScript inside a .wsf file and I m getting the error : .. . .. . At line 53 it says .. . .. . I know that LDLSInfo.wsf the main script and StandardWSH.js the script to load both work fine because I ve ran them from a different machine . It works fine on one machine and not on the other both are Windows 7 x64 computers . So I m thinking I m missing some .dll s . Thanks for the help .. . .. . -jb Comment : Have you tried actually opening the script at the mentioned address through the filesystem e.g . Windows Explorer You can t assume that S : will be the same drive on every computer . Comment : Actually script.language must be javascript not jscript .. . Answer : Out of curiosity do you know the file size of your referenced file I just ran into this problem myself and have managed to determine that if my file has a size of 524288 bytes then it works but at 524289 bytes it fails to load . Now 524288 is 2 19th or 512kb so at least it s numerically significant . And running the script in a non admin account didn t work for me so I imagine the actual error is a catch-all for more than one type of problem . I realize that you ve probably moved on from this problem and may not have that information but for other s searching for the problem this may help them . Also I have managed to solve my file size limit problem with a loader script that uses fso to open and eval the file that is too large . Looks like at least one other person had the same problem as me : http : www.tek-tips.com viewthread.cfm qid 1345627 page 131 http : www.tek-tips.com viewthread.cfm qid 1345627 page 131 Comment : I just ran into this problem and this answer solved it .",
"Question : null .. . Answer : I am trying to execute a WSF script file from a PowerShell command with an argument and can not get it to work . The powershell script I am attempting to use that is failing is : .. . .. . Now if I run the PowerShell script above with out an argument the script executes as expected Also if I just run the Cscript portion in cmd.exe with the argument it also works as expected . Any thoughts on what I am doing wrong when trying to call the WSF file through powershell with the argument Thanks .. . .. . Phil Comment : Have you tried using the call operator cscript server1 filepath script.wsf ARGUMENT Comment : Perhaps you should give us the error or the argument . There may be something in your argument that needs to be escaped .",
"Question : Is there a more up-to-date version of wso2 s wsf framework for PHP The latest version on GitHub https : github.com wso2 wsf doesn t seem to have an installation script and the tutorials http : kkpradeeban.blogspot.co.uk 2012 01 installing-wso2-wsfphp-on-ubuntu-1004.html I ve found for newer versions don t seem to work at all despite seeming to have found the latest version 2.1.0 . Even after finding the . configure script it still won t make and install on our server Ubuntu 14.04 Comment : As far as i know No. . .. . Answer : I was running into the same issue . I downloaded an alternate tar.gz of the source code from here : http : dist.wso2.org products wsf php 2.1.0 wso2-wsf-php-src-2.1.0.tar.gz .. . .. . This does have the configure file although I am getting compilation errors afterwards but your environment might be different .",
"Question : i want to install WSO2 for XAMPP I find this tutorial : http : wso2.com library 3076 link1 I download wso2 from : https : github.com wso2 wsf but as shown in tutorial i can not find wsf.dll file in my downloaded file php folder so the content is a bit different . and i can not find wso2-wsf-php-bin-1.2.0-win32 to download .. . .. . can anyone help me please .. . Answer : That s because you can download only the source code files from https : github.com wso2 wsf and you need to compile it after you compiled you will see the wsf.dll in the compile directory . If you use linux read README.INSTALL file if you use windows read README.INSTALL WIN32",
"Question : I m trying to figure out how I can add a JScript event handler to a COM interface . In this API .. . .. . http : helpnet.installshield.com installshield17helplib IHelpAutoISWiRelease.htm .. . .. . there are 3 Build Status Events I want to observe . Reading Microsofts documentation .. . .. . http : msdn.microsoft.com en-us library vstudio 06t47502 v vs.100 .aspx .. . .. . leads me to believe I need to use a ISWiRelease.add XXXXX event function approach . But the ISWiRelease documentation does not list the add event handler methods . Figuring this out seems like it should be simple . But I m banging my head against a wall . There is an example for detecting the events with Visual Basic here .. . .. . http : helpnet.flexerasoftware.com installshield21helplib helplibrary AutomationBuildStatEv.htm .. . .. . but that is of little help to me . I tried to list the functions methods using these approaches .. . .. . How to display all methods in a JavaScript object http : stackoverflow.com questions 2257993 how-to-display-all-methods-in-a-javascript-object .. . .. . How to list the functions methods of a javascript object Is it even possible http : stackoverflow.com questions 4352997 how-to-list-the-functions-methods-of-a-javascript-object-is-it-even-possible .. . .. . but when I loop over the ISWiRelease object it acts as-if it is empty . How can I figure out the names of the addXXXX . . event functions Additional Info : .. . .. . I m a JScript wsf noob .. . The JScript is called via a .wsf file and cscript .. . I tried to add a basic import System to the .js file which gave a syntax-error not sure why .. . I m only lightly scratching this project . I did not set it up choose to use cscript or the Automation Interface and would be much happier with calling the command-line tool instead but I m not in a position to make that sizeable a change . This is a follow up to Redirecting the InstallShield log to console http : stackoverflow.com questions 24371471 redirecting-the-installshield-log-to-console .. . Answer : Is your JScript code inside the WSF file If so you can add an object http : msdn.microsoft.com en-us library zhxaf4yw v vs.84 .aspx reference with events true . Then you can define event handler functions using the objectName : : eventName syntax . For example : .. . .. . The MSDN article you linked to is about JScript.NET which is separate from Windows Script Host .",
"Question : I was introduced to wsf today and now I have to write some code in it as well . I get the concept of job and appreciate the flexibility of script . What I am confused about is that if I want to use an external JavaScript file in more than one job then I have to include it in each job . Is there a way to do this globally for the whole file I am looking into WCF as well but it seems that even if I build the component I still have to include it in each job individually . Any help or workaround would be appreciated . .. . Answer : Are you looking for something like this Comment : Sorry but I think this would be specific to one job not all jobs in the script .",
"Question : I m having trouble compiling the WSO PHP framework on Windows . The latest version is here on github https : github.com wso2 wsf . I ve been trying to follow the instructions located at php README.INSTALL WIN32 .. . .. . The problem is that the folder structure in github does not match what that build.bat is expecting and the build fails . I m having to do this as part of a website running an old version of php is being upgraded to 5.3 and still needs WSF to run . I can t find the binaries anywhere pre compiled - if someone knows where they are then that would save having to try compiling them . If not any help in the compile process is appreciated . Thanks .. . Answer : I ran into the same problem as you except when trying to compile under Linux I found the solution to be first configure compiling the C components from the source from here http : wso2.com products web-services-framework c copying the contents after make into a new folder wsf c inside the php fodler and then using the build script within the php folder of the sources from Github . I know you ve likely found a way around this already but I hope this may help someone .",
"Question : null .. . Answer : I need a shortcut with path C : folder chrome.exe --user-data-dir User Data --enable-fastback .. . .. . WSF-script gives C : folder chrome.exe --user-data-dir User Data --enable-fastback . I think stupid OS see spaces and adds qoutes wrong way .",
"Question : I have a simple bit of VBScript which pads out a .csv file to have a specific number of columns useful when the .csv file doesn t have a uniform number of columns . My .wsf file works perfectly but when I incorporated this into a .hta file as part of a toolbox it fails . I m not looking for help with the code as such more just an explanation on why it fails in one file and not the other . Sorry for the poor code but does anyone have ideas Works.wsf .. . .. . NotWork.hta .. . .. . The code is only changed slightly to allow input of values but to me it should work just the same . Am I missing something Thank s guys Comment : it fails doesn t really say much . Are there errors Does the output not match what you expect What are the actual and expected outputs .. . Answer : In line 78 of the HTA : .. . .. . you re not comparing what you think you re comparing . Insert the following line just before the above line and you ll see what s different : .. . .. . As for resolving the issue change this line : .. . .. . into this : .. . .. . and the problem will disappear . Comment : Ahhh Dumb problem thanks Just out of curiosity though why could I do the comparison in the .wsf Is it because of the data type coming from the input box Comment : There is no InputBox in your .wsf file . You re assigning a fixed integer colNum 10 . Had you used an InputBox the .wsf file would ve behaved the same as the HTA .",
"Question : null .. . Answer : I have a Windows service that is using WaitForMultipleObjectsEx with a global event . Is there a way for me to trigger this event from a windows-scripting host file - JScript or VB script Comment : possible duplicate of Accessing Win32 CreateEvent SetEvent from WSH or other native Windows program http : stackoverflow.com questions 858816 accessing-win32-createevent-setevent-from-wsh-or-other-native-windows-program Comment : That appears to be a duplicate - but it does not seem to have an accepted answer . Comment : Yes that s true but the point of duplicates is to keep all of the answers in one place . See here http : stackoverflow.com help duplicates for an explanation of the reasoning . Comment : Is there a way to resurrect the original question to say that people are still asking it - old questions don t seem to get many answers . Comment : Also the original question includes or other native windows program . and that is what all of the answers chose to look at - instead of my more specific question .",
"Question : Is there a more up-to-date version of wso2 s wsf framework for PHP The latest version on GitHub https : github.com wso2 wsf doesn t seem to have an installation script and the tutorials http : kkpradeeban.blogspot.co.uk 2012 01 installing-wso2-wsfphp-on-ubuntu-1004.html I ve found for newer versions don t seem to work at all despite seeming to have found the latest version 2.1.0 . Even after finding the . configure script it still won t make and install on our server Ubuntu 14.04 Comment : As far as i know No. . .. . Answer : I managed to install it successfully on Ubuntu 15.04 .. . .. . You have to install some required packages .. . .. . then you have to download the source from http : dist.wso2.org products wsf php 2.1.0 wso2-wsf-php-src-2.1.0.tar.gz configure it with gcc 4.4 .. . .. . and then you can make and make install . If you run into compiling errors check this guide https : jackson-brain.com compiling-wso2-web-services-framework-for-php-5-5"
]
} | [
"yes-answer-long",
"yes-answer-short"
] | wsf | UNK_RELATION |
rinside@c++@46 | rinside -- rinside is an r-package providing @placeholder classes that simplify the embedding of r in c++ code . | {
"confidence": [
58.438262939453125,
54.862022399902344,
52.33229064941406,
52.235862731933594,
51.88005828857422,
51.44007110595703,
51.119651794433594,
50.7828254699707,
50.7828254699707,
49.98268127441406,
47.59143829345703,
47.59143829345703,
47.59143829345703,
47.59143829345703,
46.49420166015625,
45.50335693359375,
45.50335693359375,
44.799766540527344,
44.74854278564453,
44.68804168701172,
44.581844329833984,
44.453189849853516,
44.406124114990234,
43.764930725097656,
43.542510986328125,
42.9083251953125,
42.859474182128906,
42.859474182128906,
42.79924774169922,
42.79924774169922,
42.79924774169922,
42.519020080566406,
41.70201110839844,
41.205528259277344,
41.205528259277344,
41.205528259277344,
41.205528259277344,
41.205528259277344,
41.205528259277344,
41.205528259277344,
41.18256759643555,
41.04983139038086,
41.04983139038086,
41.04983139038086,
40.483421325683594,
40.10829544067383,
40.10829544067383,
40.10829544067383,
40.028358459472656,
40.0081787109375,
40.0081787109375,
39.98810577392578,
39.443450927734375,
39.112388610839844,
39.008155822753906,
38.91094207763672,
38.874107360839844,
38.70923614501953,
38.700347900390625,
38.700347900390625,
38.700347900390625,
38.700347900390625,
38.700347900390625,
38.700347900390625,
38.700347900390625,
38.62281799316406,
37.60311508178711,
37.60311508178711,
37.394168853759766,
37.394168853759766,
37.29722595214844,
37.29722595214844,
37.29722595214844,
37.23642349243164,
37.22016525268555,
37.22016525268555,
37.22016525268555,
37.17178726196289,
37.17178726196289,
36.288047790527344,
35.91089630126953,
35.517845153808594,
35.517845153808594,
35.517845153808594,
35.517845153808594,
35.517845153808594,
35.517845153808594,
35.517845153808594,
35.517845153808594,
35.517845153808594,
35.517845153808594,
35.517845153808594,
35.517845153808594,
35.517845153808594,
35.517845153808594,
35.517845153808594,
35.517845153808594,
35.517845153808594,
35.26035690307617,
35.22454833984375
],
"content": [
"It didn t link with R or RInside .",
"It is mostly used in RInside to allow R code to call c++ functions .",
"Try RInside R argc argv instead .",
"This is a curious pattern given that with RInside the focus is a C++ application embedding R . .. . .. . Modules however do get a lot of attention .",
"I have been using Rcpp and RInside to integrate R and C++ .",
"I followed general instructions to install R RCPP RInside and Rtools under C : R R-3.3.0 .",
".. . .. . This is the C++ code written with RInside .",
"I m trying to use R within C++ via RInside .",
"I am trying to build an R application in C++ using RInside .",
"I downloaded RInside 2.10 from the RInside page and am using R 3.0.2 .",
"I am running ubuntu R version 2.15.2 RInside version 0.2.10 .",
"This happens in the line where I declare RInside R argc argv .",
"In all examples we have RInside R argc argv .",
"RInside depends on both R and Rcpp and therefore uses a moderately complex Makefile .",
"On Mac OS X 10.7.5 I installed Rcpp and RInside on R 3.0.2 .",
"I have installed Rcpp and RInside in R . R RHOME returns the correct directory .",
"That would be your local R use as the Makefile asks R to tell it where Rcpp and RInside and R does not know .",
"I would like to use RInside in a c++x11 code to call R routine .",
"How can I get the plots R graphics to run from within c++ using rinside and rcpp",
"I have installed uninstalled installed again the RInside package using the install.packages RInside type source command .",
"Instead I have the following errors : .. . .. . C : R R-2.15.1 library RInside lib i386 libRInside.a RInside.o : RInside.cpp : .text+0xbd1 : undefined-reference to Rcpp : : Function : : Function std : : string const C : R R-2.15.1 library RInside lib i386 libRInside.a RInside.o : RInside.cpp : .text+0xccd : undefined-reference to vtable for Rcpp : : Language C : R R-2.15.1 library RInside lib i386 libRInside.a RInside.o : RInside.cpp : .text+0xcd9 : undefined-reference to Rcpp : : Language : : update C : R R-2.15.1 library RInside lib i386 libRInside.a RInside.o : RInside.cpp : .text+0xce1 : undefined-reference to Rcpp : : Function : : Function C : R R-2.15.1 library RInside lib i386 libRInside.a RInside.o : RInside.cpp : .text+0xd2c : undefined-reference to Rcpp : : DottedPair : : operator .. . .. . which I believe is only related in libraries not properly included .",
"It is an rinside question not an rcpp question .",
"Look for example at usr local64 opt R-2.15.2 lib R library RInside examples armadillo Makefile .",
"To get familiar with the packages Rcpp RInside and the R-source code R-3.0.1 I try to run the following example : .. . .. . First Question : .. . .. . The file string.h comes from the package Rcpp but it always generates a lots 130",
"I am working with Protocol Buffers C++ and RInside .",
"RInside requires R as it embeds R . .. . .. . This is why you get linker errors about basic R identifiers missing when it is not present .",
"I use R by rinside .. . .. . the runtime to terminate it in an unusual way .. . .. . anyone please help me thanks",
"I work on Windows 7 and I have Qt 5.4.1 MinGW 32bit R 3.1.3 and RInside 0.2.13 Thanks .",
"RInside is in the user-library .",
"RInside 0.2.11 is now on CRAN :",
"RInside is broken on Windows sorry .",
"Possible Duplicate : .. . Problem with compiling RInside examples under Windows http : stackoverflow.com questions 5650063 problem-with-compiling-rinside-examples-under-windows .. . .. . On Windows XP : .. . .. . I attempted to compile the simplest program written by Dirk : .. . .. . The environment variable PATH in all contains this : .. . SystemRoot system32 SystemRoot SystemRoot System32 Wbem C : R batchfiles 0.6-6 C : R Rtools bin C : R Rtools MinGW bin C : Program Files GnuWin32 C : Program Files R R-2.15.1 .. . .. . I copied this Makefile from a existing R example of RInside in Windows XP .",
"From the ChangeLog of RInside :",
"I m trying to compile the qtdensity example from the RInside examples folder using Qt Windows 7 R 32bit .",
"I know that R is not multi-threaded and that one cannot create multiple instances of RInside .",
"In other words it should work if you have Rcpp and RInside installed where the basic R libraries are .",
"RInside R int argc char argv isn t an object - it s a function declaration .",
"I am a Chinese scholar with a strong interest in calling R function via RInside .",
"my RInside program test rinside runs well on server with R installed from ubuntu 14.04 sources .",
"the program using RInside header was compiled on server which has r installed from ubuntu repository .",
"I m trying to use RInside with the standard examples in the package on Ubuntu .",
"I came with problem by compiling RInside .",
"Did you install RInside as well",
"The Rcpp RInside documentaion repeats that recommendation .",
"I wonder what are the different steps I should proceed to install c++x11 version of RInside but I guess that I need to recompile all R R package is it",
"I developed an application whose main graphical outputs relie on R through the very useful RInside .",
"I deleted that variable restarted R and now Rcpp and RInside successfully installs without issue .",
"I installed the latest version of R 2.15.1 and installed Rcpp and RInside from source .",
"The code you quote is verbatim from the examples standards rinside sample0.cpp file of the RInside package .",
"Compiling RInside programs on Windows http : stackoverflow.com questions 12928863 compiling-rinside-programs-on-windows .",
"ZN7RInsideC1EiPKPKcbbb corresponds to RInside : : RInside int char const const bool bool bool - what command are you using to compile this",
"Setup : .. . .. . System : HP Pavilion .. . .. . OS : Windows 8.1 .. . .. . R : 3.1.1 .. . .. . Rtools : 3.1.0.1942 .. . .. . Rcpp : 0.11.0 .. . .. . RInside : 0.2.11 .. . .. . RInside : 0.2.11 .. . .. . Here is the relevant piece of my PATH variable in case it s an error with that .",
"For an illustrative example of how to get Xcode to compile RInside code see https : youtu.be sjiSaaNA8BY .. . .. . You have to install R first .",
"Error in loadNamespace name : there is no package called Rcpp .. . Error in loadNamespace name : there is no package called RInside .. . .. . I get the above error when trying make on the examples of RInside .",
"I am currently trying to use RInside to do some plots in backtesting inspired by Saving Lattice Plots with RInside and Rcpp http : stackoverflow.com questions 24378223 saving-lattice-plots-with-rinside-and-rcpp .",
"However I get when executing : .. . .. . While RInside is in the directory R HOME site-library RInside .",
"The example Qt application included in RInside https : github.com eddelbuettel rinside tree master inst examples qt still works and does more than this .",
"I am beginning using rinside and rcpp within c++ .",
"I m trying to use Rinside in an IDE Eclipse .",
"I installed the Rcpp and RInside packages using install.packages .",
"U saying the issue could not be an RInside problem",
"What versions of RInside and Ununtu are you working with",
"I want to try out RInside for Mac OSX .",
"Came up with a lightweight wrapper for the RInside instance .",
"Forgive me yes I realized that it was the constructor for RInside .",
"Following standard steps I install the latest RInside packages and I execute the following makefile Makefile.win included in the downloaded RInside binary : .. . .. . The change that I made in Makefile.win to make it executable R HOME : C : R R-3.1.3 R LIBS USER : C : R R-3.1.3 library R ARCH : --arch x64 and follow Problem with compiling RInside examples under Windows http : stackoverflow.com questions 5650063 problem-with-compiling-rinside-examples-under-windows s idea I changed the RProfile.site as : .. . .. . Run make -f Marfile.win I copy the cmd as : .. . .. . But when I try one of the examples say : .. . .. . it gives the following error : .. . .. . I thought it could be missing some depends so I add Rcpp : : depends RInside which doesn t help either error is listed as follows : .. . .. . Hope somebody has some valuable insight to share",
"How can I possible compile with RInside then",
"These modifications will be in the next version of RInside currently 0.2.9 .",
"Does this mean that Rcpp and RInside won t play nice with C++11",
"It could be due to some conflict with Xcode 5.0.2 C++11 RInside .",
"After switching to a server with R compiled manually the RInside program reports fatal-error : .. . .. . Both two servers prints nothing for environment variable R HOME .",
"Just rebuild on machine two or just identical layouts and even in that case I recommend packages -- we do have r-cran-rinside as well .",
"This example is now in SVN https : r-forge.r-project.org scm viewvc.php pkg inst examples qt root rinside and looks like this on my box : .. . .. .",
"I am trying to embed RInside to my application on win7 64-bit system but when I initialize an RInside : .. . .. . the following message appears : .. . .. . Error in loadNamespace name : there is no package called Rcpp .. . .. . This error only occurs with Windows .",
"Problem with compiling RInside examples under Windows http : stackoverflow.com questions 5650063 problem-with-compiling-rinside-examples-under-windows .. . .. . 2 .",
"Building and running RInside examples under windows http : stackoverflow.com questions 10636471 building-and-running-rinside-examples-under-windows .. . .. . 3 .",
"I have installed RTools http : www.murdoch-sutherland.com Rtools and downloaded an RInside binary from CRAN http : cran.r-project.org web packages RInside index.html .",
"This issue has been solved on https : github.com eddelbuettel rinside issues 9 .",
"Next for rinside we have eight yes 8 directories with working example .",
"evalCpp 2LL but the RInside examples refused to link .",
"But when I tried the last element RInside package I get following error .",
"Then check where RInside is installed and make sure Rcpp is installed there too .",
"All Rcpp RInside examples work with the respective Makefile.win files .",
"What is the difference between Rcpp : : InternalFunction and LOAD RCPP MODULE in the context of using RInside",
"As soon as I changed it to RInside L argc argv everything worked fine .",
"Will try kdb and see if they also say its between your and RInside",
"I wish to compile Rinside in Mac OS X 10.9 .",
"I don t know how I should install Rcpp and Rinside without that .",
"I just used make command in the source of RInside after installed it .",
"I just stayed in the RInside examples standard directory and say make in the terminal .",
"Try reinstalling Rcpp from CRAN then reinstall RInside then try the examples .",
"I think the asker means that she found only the Qt examples for RInside .",
"But what do you think are there other toolkits in that we can use RInside .",
"Hence there must be a more straightforward way to run RInside on the Mac OS X .",
"It looks like this page has a link-to a binary version of RInside for Windows .",
"I checked your blog of RInside but perhaps missed the information .",
"We must be able to query Rcpp and RInside about theirs paths .",
"I spent a little time today looking at the bug with the windows version of RInside .",
"What i m asking for would be step-by-step explanation of QT adjustment for R . What i already have : .. . .. . binary for windows installed .. . RTools installed .. . QtCreator with MinGW installed .. . RInside and Rcpp installed with install.packages c Rcpp RInside .. . .. . To be more specific i ve done everything from here : http : www.r-bloggers.com installing-rcpp-on-windows-7-for-r-and-c-integration .. . .. . What i would like to do is to create a new project in Qt write it in c++ and some of the functions would use R for calculations and plot .",
"I m using the skewness function from the moments package as an example which works as should in R . I checked the examples from RInside and i m still unsure how to use RcppArmadillo ."
]
} | {
"confidence": [
69.64376831054688,
68.21804809570312,
67.63456726074219,
67.51756286621094,
67.429931640625,
66.32776641845703,
66.28822326660156,
65.38711547851562,
64.92010498046875,
64.90612030029297,
64.23992919921875,
63.821434020996094,
63.45966339111328,
63.302513122558594,
62.48802947998047,
62.475677490234375,
60.84837341308594,
60.81519317626953,
60.75536346435547,
60.555572509765625
],
"content": [
"Question : What is the difference between Rcpp : : InternalFunction and LOAD RCPP MODULE in the context of using RInside They seem to have the same purpose just LOAD RCPP MODULE has an extra layer . What are the use cases for both of them and when should i prefer one over the other Here is the other example .. . Answer : Modules would let you expose several functions and classes . InternalFunction only exposes one function at a time . InternalFunction is something of a curiosity that we added at some point to answer a can we do that type of question . It is one of these things that stay in Rcpp because they once were but that does not get too much attention from us . It is mostly used in RInside to allow R code to call c++ functions . This is a curious pattern given that with RInside the focus is a C++ application embedding R . .. . .. . Modules however do get a lot of attention . My advice would be to use them . Comment : true I agree with your comments there are some use cases of InternalFunction for example a function in C++ passed to an R optimization library but its definitely not a show stopper if you avoid InternalFunction . Comment : Sure . I know it is useful otherwise I would not have put it in . If your objective function is a c++ function I guess I d look into optimization algorithms that don t need to go back to R to call it.. . so have it all in C++",
"Question : Error in loadNamespace name : there is no package called Rcpp .. . Error in loadNamespace name : there is no package called RInside .. . .. . I get the above error when trying make on the examples of RInside . RInside is in the user-library . So I set R LIBS USER to the directory in the Makefile . but that does not work either . Thanks for any advice . EDIT : .. . .. . It works fine if the packages are in C : R R-3.0.2 library . R LIBS USER doesn t seem to work on Windows . .. . Answer : I was also having the same problem and read Dirk s reply and just ran .. . install.packages Rcpp dependencies TRUE .. . install.packages RInside dependencies TRUE .. . .. . .. . and it is working fine now .",
"Question : Error in loadNamespace name : there is no package called Rcpp .. . Error in loadNamespace name : there is no package called RInside .. . .. . I get the above error when trying make on the examples of RInside . RInside is in the user-library . So I set R LIBS USER to the directory in the Makefile . but that does not work either . Thanks for any advice . EDIT : .. . .. . It works fine if the packages are in C : R R-3.0.2 library . R LIBS USER doesn t seem to work on Windows . .. . Answer : I fear this is local to your end . If Rcpp and RInside are in fact in your default library location and on Windows I sometimes copy them then the examples build as does the rest of the package . Recall that all this works for CRAN and the win-builder . Comment : I copy-pasta-ed the directory into .libPaths here and it did load Rcpp and RInside just fine . There has to be some way to debug that problem Comment : Read Writing R Extensions carefully . Comment : Which part I never had troubles compiling packages . Comment : Works for me . There are a number of ways to set it : .libPaths the various environment-variables R LIBS . Maybe it is the R Inst . Admin manual instead . Also see help Startup . In any event there is no Rcpp issue here but simply a problem between you R and your library directories .",
"Question : Error in loadNamespace name : there is no package called Rcpp .. . Error in loadNamespace name : there is no package called RInside .. . .. . I get the above error when trying make on the examples of RInside . RInside is in the user-library . So I set R LIBS USER to the directory in the Makefile . but that does not work either . Thanks for any advice . EDIT : .. . .. . It works fine if the packages are in C : R R-3.0.2 library . R LIBS USER doesn t seem to work on Windows . .. . Answer : I know the question was asked long back . But I faced the same problem while using R from python Anaconda . Also I didnt find an reasonable explanation for it . Finally this is what worked for me .",
"Question : I am beginning using rinside and rcpp within c++ . I just want to start from zero so my QT project has nothing but the creation of a RInside instance and I have a problem I cannot solve . I have only one dialog form in the project . My project file : .. . .. . The main file : .. . .. . For the other files there is nothing there because it s only an empty form . When I build this I got a lot of errors like the following : .. . .. . I am using R-2.15.1 RInside 0.2.7 Rcpp 0.9.10 QT 4.8.0 MinGW 4.6.1 . Comment : Also you need to replace lib by libs in your .pro file . .. . Answer : Just to share my experiences with Rcpp and Rinside until now in Windows 7 64 bit and Windows XP SP3 32-bit . I installed the latest version of R 2.15.1 and installed Rcpp and RInside from source . install.packages path Rcpp x.x.x.tar.gz repos NULL type source INSTALL opts --no-multiarch .. . .. . In win7 I could not install without the --no-multiarch option . I could compile all the standard examples of RInside in both systems always with --arch32 in Makefile.win .. . I can run all the executable in Win7 . In WinXP I have the error unable to load base package .. . for the QT example qtdensity I don t have anymore the gxx personality sj0 and co . error which is a little improvement . Instead I have the following errors : .. . .. . C : R R-2.15.1 library RInside lib i386 libRInside.a RInside.o : RInside.cpp : .text+0xbd1 : undefined-reference to Rcpp : : Function : : Function std : : string const C : R R-2.15.1 library RInside lib i386 libRInside.a RInside.o : RInside.cpp : .text+0xccd : undefined-reference to vtable for Rcpp : : Language C : R R-2.15.1 library RInside lib i386 libRInside.a RInside.o : RInside.cpp : .text+0xcd9 : undefined-reference to Rcpp : : Language : : update C : R R-2.15.1 library RInside lib i386 libRInside.a RInside.o : RInside.cpp : .text+0xce1 : undefined-reference to Rcpp : : Function : : Function C : R R-2.15.1 library RInside lib i386 libRInside.a RInside.o : RInside.cpp : .text+0xd2c : undefined-reference to Rcpp : : DottedPair : : operator .. . .. . which I believe is only related in libraries not properly included . - Another thing I found : the script dealing with headers and libs for rcpp and rinside in qtdensity.pro work only when I changed simple quotes to double quotes : instead of : .. . .. . system R HOME bin Rscript -e Rcpp : : : CxxFlags .. . .. . I changed to : .. . .. . system R HOME bin Rscript -e Rcpp : : : CxxFlags .. . .. . Still playing around with it and will let you know what s coming next : Andry Comment : Since this really isn t an answer could you perhaps meaningfully append it to your question instead",
"Question : I m trying to compile the qtdensity example from the RInside examples folder using Qt Windows 7 R 32bit . I have followed all the instructions posted online on how to set up these tools since my ultimate goal is to develop a C++ R application in Qt . When I try to build the project I get the following error : .. . .. . E : dev R-2.15.2 library RInside lib i386 libRInside.a : -1 : error : file not recognized : File truncated .. . .. . Indeed the libRInside.a file is empty as well as the libRInside.dll file in the same folder . I have installed uninstalled installed again the RInside package using the install.packages RInside type source command . The same problem does not occur with the Rcpp package installed the same way . I would greatly appreciate any insights on this . I ve recently started with C++ and as a result it has taken me a lot of effort to set up everything so far . Thank you Laura .. . Answer : Not sure what I did wrong but I solved it by copy-paste the same files from the archive available at the CRAN page of RInside",
"Question : So I ve been trying to use RInside for an application but I can not figure out this issue . I ve read this question and I think I m doing the exact same thing : Passing RInside s R instance as a parameter between classes methods http : stackoverflow.com questions 5357765 passing-rinsides-r-instance-as-a-parameter-between-classes-methods .. . .. . But somehow it is not working here is a sample of the code : .. . .. . The error I am getting : .. . .. . I am doing exactly what Dirk s Qt example does passing RInside as a reference what am i doing wrong Thanks in advance . .. . Answer : RInside R int argc char argv isn t an object - it s a function declaration . Try RInside R argc argv instead .",
"Question : I am currently trying to use RInside to do some plots in backtesting inspired by Saving Lattice Plots with RInside and Rcpp http : stackoverflow.com questions 24378223 saving-lattice-plots-with-rinside-and-rcpp . I came with problem by compiling RInside . And before digging into my question I ve already looked up the three previous questions : .. . .. . 1 . Problem with compiling RInside examples under Windows http : stackoverflow.com questions 5650063 problem-with-compiling-rinside-examples-under-windows .. . .. . 2 . Building and running RInside examples under windows http : stackoverflow.com questions 10636471 building-and-running-rinside-examples-under-windows .. . .. . 3 . Compiling RInside programs on Windows http : stackoverflow.com questions 12928863 compiling-rinside-programs-on-windows . Yet it wouldn t solve mine . Following standard steps I install the latest RInside packages and I execute the following makefile Makefile.win included in the downloaded RInside binary : .. . .. . The change that I made in Makefile.win to make it executable R HOME : C : R R-3.1.3 R LIBS USER : C : R R-3.1.3 library R ARCH : --arch x64 and follow Problem with compiling RInside examples under Windows http : stackoverflow.com questions 5650063 problem-with-compiling-rinside-examples-under-windows s idea I changed the RProfile.site as : .. . .. . Run make -f Marfile.win I copy the cmd as : .. . .. . But when I try one of the examples say : .. . .. . it gives the following error : .. . .. . I thought it could be missing some depends so I add Rcpp : : depends RInside which doesn t help either error is listed as follows : .. . .. . Hope somebody has some valuable insight to share Thanks .. . Answer : The error is very clear : RInside.h : No such file or directory .. . .. . You need to figure why the -I... . instruction for the RInside header directory does not come through or whether that directory vanished or .. . These build instructions are a few years old and reasonably well tested : they generally work . Comment : Thanks Dirk I will take a look your idea",
"Question : I m trying to use RInside with the standard examples in the package on Ubuntu . I just used make command in the source of RInside after installed it . The Information about my OS : gcc version 4.8.2 Ubuntu 4.8.2-19ubuntu1 GNU Make 3.81 R version 3.0.2 2013-09-25 RInside 0.2.11 and Ubuntu 14.04 . Here is the compilation errors . Can anyone help me : Comment : You need to give us some more information than just a dump of compile errors . What versions of RInside and Ununtu are you working with What versions of Make and GCC are you using Have you taken any steps to try to fix the failed compilation before coming here and what were the results of those steps Comment : Thank you for your answer . I m relatively new in programming . I think that I ask the question in a wrong way . The Information about my OS : gcc version 4.8.2 Ubuntu 4.8.2-19ubuntu1 GNU Make 3.81 R version 3.0.2 2013-09-25 RInside 0.2.11 and Ubuntu 14.04 . I have only installed and uninstalled the RIside packages many times . I also tried to put them in different paths . But it did not work . Because of my limited knowledge in programming I really do not know what to do now . Hope this time my question is better aksed Comment : That is pretty excessive downvoting . It is a fair question and reasonably clearly posted . .. . Answer : Your question did not show how you launched the compilation . RInside depends on both R and Rcpp and therefore uses a moderately complex Makefile . But if you just that things should work . On my Ubuntu 14.04 system and using the code in the git-repo for RInside which gets installed with the package you get from CRAN : .. . .. . This is pretty verbose since I changed the Debian Ubuntu package of R to reflect many of the default hardening flags plus we need headers and libraries for several things . But the main thing is : just say make in the examples directory and everything should build . Comment : Hi Dirk thanks so much for your answer . I just stayed in the RInside examples standard directory and say make in the terminal . I think that I do all the things following the standard steps . But it seems the compilation still does not work . In addition I get the R by calling apt-get install . Is there a problem with my R Comment : Your R version is likely fine but maybe your Rcpp version needs an update . Try reinstalling Rcpp from CRAN then reinstall RInside then try the examples . Comment : Thanks a lot for your answering . I will try it :",
"Question : I would like to use RInside in a c++x11 code to call R routine . By default R seems to install a c++98 version of the library and thus the linking does not success . I wonder what are the different steps I should proceed to install c++x11 version of RInside but I guess that I need to recompile all R R package is it and if some more simple solution exists . Thanks in advance I work on MacOs .. . .. . Update : I reinstalled Rcpp and RInside doing my Makevars is empty so c++98 version .. . .. . Then I compile the hello world example using no cx11 : .. . .. . That produces me : .. . .. . However by adding the x11 option : .. . .. . I get when linking : .. . .. . When recompiling Rcpp and RInside using c++x11 options .. . .. . liking is ok but . test gives me a seg fault . Add : my clang version is : Apple clang version 4.1 tags Apple clang-421.11.66 Comment : I would say that you did not successfully build the library if your program goes belly-up on the simplest example . There is also no real need to re-print the source code which has been in the RInside repo and distribution for years . .. . Answer : R is compiled with a c compiler . You don t necessarily need to use the same to build packages . So it is perfectly valid to use clang to compile add-on packages . I have this in my .R Makevars file to use clang and C++11 for package : .. . .. . Also you might want to have a look at Rcpp11 https : github.com romainfrancois Rcpp11 a C++11 centric redesign of Rcpp . It probably would not be too hard to fork RInside to use Rcpp11 instead of Rcpp .",
"Question : null .. . Answer : I sucessfully ran the sample codes in the package . Then I copied code from sample1 into another file of mine and set it up to compile using Makefile . Also copied sample copies into the same directory . The samples in the directory compile and run fine . But using R in my already existing code is giving issues . When compiling it gives an error saying expected unqualified-id before return . This happens in the line where I declare RInside R argc argv . Another weird thing i noticed is if i include at the bottom of included files I get a bunch of errors in Rcpp etc . but if i include it at the top all those errors disappear . Also is the default compile option of -O3 required for the package I have been using -Ofast for most of my codes . Browsing through the questions here I think I need to make changes to CXXFLAGS in Makevars but i can t find out where . Any help appreciated . I have boiled down the errors to another file included in my setup which is k.h . This is a file which is used to interface c++ with kdb+ database . If I include the file before I get errors in Rcpp classes . When included after RInside I get the earlier error of unqualified id before return . This is the file in question . http : code.kx.com wsvn code kx kdb 2B c c k.h rev 1442 peg 1442 http : code.kx.com wsvn code kx kdb 2B c c k.h rev 1442 peg 1442 .. . .. . Resolved : It appears it was a variable name conflict . In all examples we have RInside R argc argv . As soon as I changed it to RInside L argc argv everything worked fine . Don t know exactly why this was the case but it solves the problem at least . Tested outputs too . Comment : figured out where to change the -O3 to -Ofast Comment : There is nothing reproducible or tangible here . Either edit the question to make it useful or delete it . Comment : have made it more tangible and reproducible but it is still too specific a question but might help others too who are trying to do the same . simply adding the above file into any of the samples will cause compilation errors . Comment : That s between you and kdb . Comment : U saying the issue could not be an RInside problem or is it simply not worth your time Will try kdb and see if they also say its between your and RInside",
"Question : I have been using Rcpp and RInside to integrate R and C++ . We have a complex yet well designed C++ architecture and I am finding it difficult to access R from within just 1 function . Is it possible to pass the R instance to different Classes functions to get a more OOP design If yes are there any examples To elaborate the query I want to say that something like this .. . .. . .. . .. . What I am currently noticing is that each call to foo probably creates a new instance of RInside . Thank you - Egon Comment : No it does NOT create a new instance . You are doing the Right Thing TM and you d be able to tell my looking e.g . at top or htop to see how many R processes are spawned one and whether you see new process ids no you don t . .. . Answer : Yes and as I wrote earlier to the rcpp-devel list http : news.gmane.org gmane.comp.lang.r.rcpp which you should follow if you care about Rcpp and RInside I just added an example to RInside http : dirk.eddelbuettel.com code rinside.html which embeds it inside Qt http : http : www.qtsoftware.com . I instantiante R in main and then pass a reference to this object to the class using it . That seems like a proper model as we need to make sure that only one R instance is running with R not being multithreaded etc---if you need more instances consider Rserve http : www.rosuda.org Rserve . This example is now in SVN https : r-forge.r-project.org scm viewvc.php pkg inst examples qt root rinside and looks like this on my box : .. . .. . enter image description here http : i.stack.imgur.com 7F21e.png .. . .. . I quite like it as it lets you play around with mixtures spread the central location of both draws etc and see at which bandwidth you no longer differentiate between two humps of the estimated density .",
"Question : Possible Duplicate : .. . Problem with compiling RInside examples under Windows http : stackoverflow.com questions 5650063 problem-with-compiling-rinside-examples-under-windows .. . .. . On Windows XP : .. . .. . I attempted to compile the simplest program written by Dirk : .. . .. . The environment variable PATH in all contains this : .. . SystemRoot system32 SystemRoot SystemRoot System32 Wbem C : R batchfiles 0.6-6 C : R Rtools bin C : R Rtools MinGW bin C : Program Files GnuWin32 C : Program Files R R-2.15.1 .. . .. . I copied this Makefile from a existing R example of RInside in Windows XP . .. . .. . This is my R folder in C drive : enter image description here http : i.stack.imgur.com kFzwr.png .. . .. . I saw this thread http : stackoverflow.com a 5650694 462608 but I don t have anything like site-library in the R folder . I changed the R HOME to C : Program Files R R-2.15.1 that resulted in the following errors : .. . .. . enter image description here http : i.stack.imgur.com i6CsW.png Comment : @DirkEddelbuettel I had already seen that the reason of the problem isn t same IMO . .. . Answer : It fails because you installed R in C : Program Files R even though the FAQ for R on Windows http : cran.r-project.org bin windows base rw-FAQ.html tells you not to install R in a path with spaces . See Question 2.2 : How do I install R for Windows : .. . .. . If you want to be able to build packages from sources we recommend that you choose an installation path not containing spaces . The Rcpp RInside documentaion repeats that recommendation . Do not install R in a path with spaces . If you must you have to fix the Makefile to avoid the path expansion from breaking . Comment : and I am thankful to you for dealing with this basic question . Comment : Dirk now that you are here i would like to confirm that the RInside now does run on Windows without a segmentation-fault You said RInside 0.2.5 on CRAN as of today restores the Windows functionality--using the fix James notes in the other comment . in the other thread . This does mean that the seg fault problem is now completely solved Comment : Yes as stated repeatedly here on my blog evidenced by the CRAN tests and autobuilders by the R-Forge autobuilders lots of users on list and here .. . Comment : I checked your blog of RInside but perhaps missed the information . Thankful to btw .",
"Question : null .. . Answer : I m attempting to build a set of samples which demonstrate using RInside to provide fast and accurate statistical and numeric functions for Ruby and other languages . As far as MRI -- the standard Ruby interpreter -- is concerned this is relatively easily solved using RInside and the rice gem . I d like to also demo interacting through the Ruby foreign function interface . When I try to do that though I see errors of the form .. . .. . Could not open library home jwlm rubinius-ffi-test ffi-code libsimplemath.so - home jwlm rubinius-ffi-test ffi-code libsimplemath.so : undefined symbol : R FlushConsole .. . .. . Here s the C++ code : .. . .. . The linker uses every library I can think of : libR libpcre .. . libRInside . If you really want the full text I ll include it but it s uninformative . Loading into Ruby 2.3.0 or Rubinius 3.14 fails with the error : .. . .. . rinside test.rb : symbol lookup error : home jwlm rubinius-ffi-test ffi-code libsimplemath.so : undefined symbol : ZN7RInsideC1EiPKPKcbbb .. . .. . This would make perfect sense if I weren t already including libRInside but I am . Comment : ZN7RInsideC1EiPKPKcbbb corresponds to RInside : : RInside int char const const bool bool bool - what command are you using to compile this Comment : Which isn t far from the ctor RInside const int argc const char const argv const bool loadRcpp true const bool verbose false const bool interactive false . But the example is still incomplete and I am not sure if how we can help . Comment : Forgive me yes I realized that it was the constructor for RInside . Comment : Here s the linker command-line . g++ -shared -lpthread -Wl -soname libsimplemath -o libsimplemath.so -L usr lib R lib -lR -lpcre -llzma -lbz2 -lz -lrt -ldl -lm -lblas -llapack -L usr local lib R site-library RInside lib -lRInside -Wl -rpath usr local lib R site-library RInside lib -lstdc++ rinside rice grain.o Comment : And here s the actual compiler command-line : g++ -I usr local lib R site-library RInside include -I usr local lib R site-library Rcpp include -I usr share R include -Wall -fPIC -g -O2 -fstack-protector --param ssp-buffer-size 4 -Wformat -Werror format-security -D FORTIFY SOURCE 2 -std c++11 -c rinside rice grain.cpp",
"Question : null .. . Answer : Further investigation suggests the problem with the call to include at least is due to some issues with Windows 8.1 . I will confirm this when I get a chance on another OS . My issue is highlighted as basically the same problem the person in this post was having : http : answers.microsoft.com en-us windows forum windows8 1-performance 32-bit-application-fails-to-start-after-81-upgrade b825723e-e2a2-4c8f-bd1f-10446a5d7059 .. . .. . I am experimenting with embedding some R-Code in a c++ application for a project I am working on I am trying to use RInside to do this as from discussions I ve read online at least it seems to be the best way to do this . Setup : .. . .. . System : HP Pavilion .. . .. . OS : Windows 8.1 .. . .. . R : 3.1.1 .. . .. . Rtools : 3.1.0.1942 .. . .. . Rcpp : 0.11.0 .. . .. . RInside : 0.2.11 .. . .. . RInside : 0.2.11 .. . .. . Here is the relevant piece of my PATH variable in case it s an error with that . EDIT : Have now included full PATH . C : R Rtools bin .. . .. . C : R Rtools gcc-4.6.3 bin .. . .. . C : R R-3.1.1 bin .. . .. . C : R R-3.1.1 bin x64 .. . .. . C : R batchfiles 0.7-1 .. . .. . C : Windows system32 .. . .. . C : Windows .. . .. . C : Windows System32 Wbem .. . .. . C : Windows System32 WindowsPowerShell v1.0 .. . .. . C : Program Files Hewlett-Packard SimplePass .. . .. . C : Program Files x86 ATI Technologies ATI.ACE Core-Static .. . .. . C : Perl64 bin .. . .. . C : MiKTeX 2.9 miktex bin .. . .. . EDIT : The original error has been put to the bottom of the post . New error : Simplified the example . I now have no error with compilation but an error at execution - The application was unable to start correctly 0xc000007b . Click OK to close the application . I think this is a .dll problem - any recommendations i.e . should I be looking in the gcc-4.6.3 folder This error only occurs once the include line is added . The code used is : .. . .. . The Makefile.win is Note that I had to set the R HOME variable manually - should I do the same for the library somehow : .. . .. . I have installed and run some of the sample codes for Rcpp in the R terminal with no issues . I have tried several times to follow the examples given in the instructions for installing RInside but I haven t been able to get them to work . When I try make -f Makefile.win in the standard folder of the example I get the following error : .. . .. . In function int main int char : .. . .. . error : Shield was not declared in this scope .. . .. . note : suggested alternative : .. . .. . C : R R-3.1.1 library Rcpp include Rcpp protection Shield.h : 29 : 11 : note : Rcpp : Shield .. . .. . error : expected primary-expression before token .. . .. . error : expected before token .. . .. . error : load module call was not declared in this scope .. . .. . error : expected before token .. . .. . make : rinside module sample0 Error 1 .. . .. . Original Code : Comment : You may have another g++ in your path . RInside works with current or recent Rcpp headers including the definition of Shield . I very strongly suspect something at your setup . Comment : Thank you will look more closely at the path . By the way having looked over a lot of RInside posts over the course of the day you have a remarkable posting rate response time . Thanks for the help you ve been in the other problems I ve experienced as well Comment : I can t find anything in my path that leads me to think it s an issue of a duplicate g++ . I ve included it in my post if you have time to look at it could you highlight anything you think is a problem area Comment : Well it works for others . Maybe you have an old version of Rcpp somewhere . It is hard for me to say what your problem might be . Comment : Fair enough thanks in any case . Somewhat annoying for me I ll see what I can do .",
"Question : I wish to compile Rinside in Mac OS X 10.9 . I have Xcode 5 . I ve downloaded the latest version of Rcpp and RInside 2014 and when I wanted to install them with the following commands : .. . .. . sudo R CMD INSTALL Downloads Rcpp 0.11.0.tar.gz .. . .. . I received the following Error : .. . .. . installing to library Library Frameworks R.framework Versions 3.0 Resources library .. . installing source package Rcpp .. . libs llvm-g++-4.2 -arch x86-64 -I Library Frameworks R.framework Resources include -DNDEBUG -I. . inst include -I usr local include -fPIC -mtune core2 -g -O2 -c Date.cpp -o Date.o make : llvm-g++-4.2 : No such file or directory make : Date.o Error 1 ERROR : compilation failed for package Rcpp .. . removing Library Frameworks R.framework Versions 3.0 Resources library Rcpp .. . .. . I appreciate any comments . Comment : Why does it seem to be just for Linux Do you get an error that claims that it is Comment : I have just changed the question . I think the main reason is Xcode 5 does not support llvm-g++-4.2 . I don t know how I should install Rcpp and Rinside without that . Comment : This has been discussed a lot of time since the release of Mavericks . Look on StackOverflow use the search-box above with something like r os x mavericks and or on the r-sig-mac list . Comment : @DirkEddelbuettel I tried compiling RInside from source on Mavericks but I ran into ld : symbol s not found for architecture x86-64 and clang : error : linker command failed with exit code 1 use -v to see invocation and make : rinside callbacks0 Error 1 Note that I have all the required headers and followed the correct installation and make instructions completely . Is this an incompatibility with OSX Mavericks If yes then why is there an identical incompatibility with OSX Mountain Lion I tried doing identical things on both operating-system versions.. . .. . Answer : For an illustrative example of how to get Xcode to compile RInside code see https : youtu.be sjiSaaNA8BY .. . .. . You have to install R first . Launch R and install.package Rcpp and RInstall from R . The video describes the steps needed to compile rinside sample3.cpp from examples standard folder in the zip file at https : cran.r-project.org web packages RInside index.html .",
"Question : I am trying to embed RInside to my application on win7 64-bit system but when I initialize an RInside : .. . .. . the following message appears : .. . .. . Error in loadNamespace name : there is no package called Rcpp .. . .. . This error only occurs with Windows . .. . Answer : I think you get that issue when your .libPaths differ--in other words run the .libPaths function to see the paths stored by R for its use . Then check where RInside is installed and make sure Rcpp is installed there too . It is a setup issue . In other words it should work if you have Rcpp and RInside installed where the basic R libraries are . Otherwise you have to tell the embedded R session about the other location and before it starts . There are more Windows users on the list so you could try asking on rcpp-devel . Comment : I figure it out thanks to your help Dirk thank you very much . Comment : Very good -- and in that case it is customary to accept an answer click on the check mark you see next to it as well as to upvote it click on the upward-facing triangle . You can vote on any question you can accept only questions you asked .",
"Question : I try to include R-code in C++ Qt creator . To get familiar with the packages Rcpp RInside and the R-source code R-3.0.1 I try to run the following example : .. . .. . First Question : .. . .. . The file string.h comes from the package Rcpp but it always generates a lots 130 errors like : .. . .. . internal does not name a type .. . StringProxy does not name a type etc . What is wrong with it Second Question : .. . .. . In the .pro file I have to include all subfolder of the packages separatly like : .. . .. . INCLUDEPATH + W : hesm Private Private Qt files ConnectToR Rcpp include Rcpp module .. . .. . Is it possible to include a folder package with all its subfolders in one quote Thanks Comment : So this is really more a question on how to use Qt Creator . For Rcpp all you should do is include Rcpp.h other files are included from it . .. . Answer : You are doing it wrong . The code you quote is verbatim from the examples standards rinside sample0.cpp file of the RInside package . It so happens that there is also a complete Qt example in examples qt directory albeit building a Qt application rather than a command-line one . You are expected to do .. . .. . and the binary is built --- because all the required logic is in the .pro file . Your question really is about how to use Qt Creator Qt build tools and has nothing to do with Rcpp or RInside per se . Our supplied examples all work as documented and expected . Build them look at what make executes and infer what you need for your use with Qt Creator which is a fine tool but not one supported by R out of the box . If you want to use it you need to adapt to it locally .",
"Question : I am trying to setup RInside at work where we are forced to use a Windows environment . I have installed RTools http : www.murdoch-sutherland.com Rtools and downloaded an RInside binary from CRAN http : cran.r-project.org web packages RInside index.html . My R installation resides in c : R R-2.12.2 so no problems with folders with spaces . I have installed the Rcpp and RInside packages in R . I execute the following makefile Makefile.win included in the downloaded RInside binary .. . .. . with the command .. . .. . to try an build the standard examples included .. . .. . However I get the following error : .. . .. . I have tried with different paths for R HOME but I question my ability to having found the right one . I am new to makefiles so the error output is not of much help . Hope somebody has some valuable insight to share Thanks in advance .. . .. . Christian Comment : There s no such thing as R-2.1.2 . Even if there were it would be 6 years old . Comment : Nice catch . Also probably want a leading for something like cygdrive c R R-2.12.2 . Mixing Cygwin and MinGW has given me headaches too so maybe cmd.exe is best . Oh Windows... . Comment : @Joshua Ulrich @Dirk Eddelbuettel Having corrected both I am now able to compile However now it says that is not able to find the Rcpp and RInside packages which I specifically have installed . Will dive into that tomorrow Comment : That would be your local R use as the Makefile asks R to tell it where Rcpp and RInside and R does not know . .. . Answer : You seem to have two distinct problems here : .. . .. . 1 . Your PATH is probably off or as Josh had hinted your R HOME assignment is wrong . If make is indeed the binary from Rtools and the paths you assign are correct then the builds succeed . That is the general rule for building R packages on Windows : Follow the manual very diligently and it will work . 2 . RInside is broken on Windows sorry . It will build and you will get segfaults . Romain and I clearly state so in the documentation . As Romain and I work almost exclusively on OS X and Linux respectively we would appreciate debugging help . It should be doable but it probably requires some serious willingness to learn about R internals as something in the memory subsystem goes belly-up . Which it clearly does not on OSs with an X in their name . Updated on 08 Dec 2011 : RInside 0.2.5 on CRAN as of today restores the Windows functionality--using the fix James notes in the other comment .",
"Question : I am trying to setup RInside at work where we are forced to use a Windows environment . I have installed RTools http : www.murdoch-sutherland.com Rtools and downloaded an RInside binary from CRAN http : cran.r-project.org web packages RInside index.html . My R installation resides in c : R R-2.12.2 so no problems with folders with spaces . I have installed the Rcpp and RInside packages in R . I execute the following makefile Makefile.win included in the downloaded RInside binary .. . .. . with the command .. . .. . to try an build the standard examples included .. . .. . However I get the following error : .. . .. . I have tried with different paths for R HOME but I question my ability to having found the right one . I am new to makefiles so the error output is not of much help . Hope somebody has some valuable insight to share Thanks in advance .. . .. . Christian Comment : There s no such thing as R-2.1.2 . Even if there were it would be 6 years old . Comment : Nice catch . Also probably want a leading for something like cygdrive c R R-2.12.2 . Mixing Cygwin and MinGW has given me headaches too so maybe cmd.exe is best . Oh Windows... . Comment : @Joshua Ulrich @Dirk Eddelbuettel Having corrected both I am now able to compile However now it says that is not able to find the Rcpp and RInside packages which I specifically have installed . Will dive into that tomorrow Comment : That would be your local R use as the Makefile asks R to tell it where Rcpp and RInside and R does not know . .. . Answer : I spent a little time today looking at the bug with the windows version of RInside . I believe that I have discovered the bug which is as follows : .. . .. . In RInside : : initialize the structRStart structure is populated however this now requires extra fields to be populated in the case of windows as shown in Rf initEmbeddedR from R src gnuwin32 embedded.c . Equivalent assignments will be necessary in RInside.cpp in order to provide valid callbacks . Comment : James kindly reported this to me in private email and it looks promising . I don t have access to a Windows machine at this moment if someone wants to test this please get in touch as I sent James a few follow-up email---but I reckon he called it a night . The relevant strucute is defined in RStartup.h with the fields shown here ifdef -ed in on Windows ."
]
} | [
"yes-answer-long",
"yes-answer-short"
] | c++ | UNK_RELATION |
n@io.js@47 | n -- n is a cli for managing multiple node.js @placeholder versions . | {
"confidence": [
40.736412048339844,
33.95171356201172,
33.85016632080078,
31.361482620239258,
30.479721069335938,
29.890321731567383,
29.686147689819336,
29.44399642944336,
29.22478485107422,
28.70771598815918,
28.097803115844727,
27.0813045501709,
26.541017532348633,
26.45839500427246,
25.326080322265625,
24.963077545166016,
24.963077545166016,
24.898231506347656,
24.890520095825195,
24.68600082397461,
24.68600082397461,
24.68600082397461,
24.51854133605957,
24.401126861572266,
24.401126861572266,
24.386249542236328,
24.238313674926758,
24.223291397094727,
23.923974990844727,
23.79500961303711,
23.624223709106445,
23.43577766418457,
23.215185165405273,
23.215185165405273,
23.086517333984375,
23.086517333984375,
23.086517333984375,
23.086517333984375,
23.086517333984375,
23.086517333984375,
23.086517333984375,
23.086517333984375,
23.043415069580078,
23.032983779907227,
23.032983779907227,
22.793941497802734,
22.785030364990234,
22.673751831054688,
22.673751831054688,
22.673751831054688,
22.550384521484375,
22.456398010253906,
22.456398010253906,
22.456398010253906,
22.456398010253906,
22.35391616821289,
22.35391616821289,
22.324493408203125,
22.324493408203125,
22.324493408203125,
22.324493408203125,
22.324493408203125,
22.324493408203125,
22.324493408203125,
22.226716995239258,
22.226716995239258,
22.226716995239258,
22.226716995239258,
21.76044273376465,
21.76044273376465,
21.76044273376465,
21.694374084472656,
21.694374084472656,
21.694374084472656,
21.694374084472656,
21.694374084472656,
21.639511108398438,
21.639511108398438,
21.639511108398438,
21.639511108398438,
21.639511108398438,
21.639511108398438,
21.639511108398438,
21.639511108398438,
21.60539436340332,
21.591888427734375,
21.591888427734375,
21.47017478942871,
21.436153411865234,
21.411184310913086,
21.411184310913086,
21.411184310913086,
21.411184310913086,
21.411184310913086,
21.411184310913086,
21.411184310913086,
21.256484985351562,
21.153114318847656,
21.153114318847656
],
"content": [
"Does n-install let me install multiple versions of n",
"As for your second question Node.js binaries are stored in n s own directory something like usr local n versions otherwise you wouldn t be able to have multiple versions installed at the same time .",
"Note that you must first remove any pre-existing n Node.js versions .",
"n is a handy tool and makes it simple to test different versions of node .",
"Crooner @fraxture : If you installed only by cloning n s GitHub repo then not finding any installed versions is expected : you must explicitly install them e.g . with n stable to install the latest stable Node.js version .",
"Installing Node.js to then install n to then manage Node.js installations is indeed a strange setup .",
"They are displaying fine with Android versions below Android N Preview .",
"Is there a suggested pattern for managing exceptions in n-tiered applications",
"After installing n by command sudo npm-install -g n I want list all node versions but some errors come out even though n can work normally",
"If it wasn t clear already the error message is telling you that n has not yet installed any versions of Node not that n itself hasn t been installed .",
"Here are working examples see the n-install GitHub repo https : github.com mklement0 n-install for details : .. . .. . Installation with confirmation prompt to confirm installing to default location HOME n and installing the latest stable Node.js version : .. . .. . curl -L https : git.io n-install bash .. . .. . .. . Automated installation to the default location with subsequent installation of the latest LTS long-term support and stable Node.js versions as well as the latest 4.1.x Node.js version : .. . .. . curl -L https : git.io n-install bash -s -- -y lts stable 4.1 .. . .. . .. . Automated installation to the default location without subsequent installation of the latest stable Node.js version : .. . .. . curl -L https : git.io n-install bash -s -- -y - .. . .. . .. . Automated installation to custom location util n with subsequent installation of the latest stable Node.js version : .. . .. . curl -L https : git.io n-install N PREFIX util n bash -s -- -y",
": Is it guaranteed that n uses the same folders as the Node.js installer does",
"Why would I install Node.js manually to use npm to then be able to install Node.js using n",
"Thus N of employees plus 1 company .. . .. . This is how the initial versions of EJB Entity Beans worked .",
"In fact it s not N-Triples at all but N-Quads https : www.w3.org TR n-quads - a different syntax format .",
"So basically the recursion should be T n N T n-1 + O N - n N is fixed .",
"The recurrence should be T n n T n-1 + N n which leads to O n+1",
"For example with recent versions of SWI-Prolog you can readily find solutions for N 80 and N 100 within fractions of a second using your original code .",
"The 3gram starts a n-3 and ends at n . Then move n forward m-3 is now what n-2 was and so on .",
"The OP s app will not work on previous versions of Android until Android N ships in final form unless the OP takes significant steps .",
"Or would you rather type n 0.10.20 and have it instantly installed while still retaining previous versions of Node for easy switching",
"Edit : It appears it also saves the initial install to usr local n versions .prev when you first add a new version as it does with any installation .",
"The N in TOP N cannot be parameterized .",
"N-tier data applications are data applications that are separated into multiple tiers .",
"N-tier data applications are data applications that are separated into multiple tiers .",
"If n-grams are desired then n needs to be parameterized .",
"The of iterations is N - n .",
"one gave T n n T n-1 + O n which leads to O n .",
"First : It is possible to automatically change the version of node and npm to the engine versions you specified in the package.json without manually run n or nvm",
"Aside from installing n directly from GitHub it also installs helper scripts for updating n n-update and uninstalling it n-uninstall .",
"It work below Android N but on Android N it crashes .",
"So the only thing you have to do is to iterate k n n times instead of n times .",
"So the recurrence is truely T n n T n-1 + O n .",
"n-tier implies n is any number - when n 3 then it is the same as n-tier .",
"Seems there s N-Tier architecture for software and N-Tier architecture for hardware .",
"Generally a given combination of n-words is called an n-gram .",
"Then it has to look for n-grams starting with n-1 words .",
"I have a problem understanding the use of n https : github.com visionmedia n .",
"Obviously running n without having n installed i.e .",
"void assign q int chess -- void assign q int chess N N",
"In regular N-queen problem we iterate k n times .",
"note that when col n index : 0. . n-1",
"Your explanation is right : a n-tier architecture is a physical structuring mechanism while a n-layer architecture is a logical structuring mechanism .",
"Also note that If constructing vectors for n 3 for example n-grams I would also include the n 2 and n 1 ngrams as well .",
"See Wikipedia : Explicit solutions exist for placing n-queens on an n n board for all n 4 requiring no combinatorial search whatsoever .",
"Now how you can do it recursively : .. . .. . if you want to generate coordinates for n 1 just return 0 and 1 .. . .. . if you want to generate coordinates for n 1 take 0 and concatenate it to all possible coordinates for n n-1 then take 1 and concatenate it to all possible coordinates for n n-1",
"- for n 8 .",
"1 + N query parsing and planing + index searching AND 1 + N + N 4 plate access for loading payload .",
"There are total of 2 N-1 N lines about a point in an N-dimensional hypercube .",
"For N 15 6 backtracks were required 8 for N 14 and 7 totalling for values of N 8 11 13",
"With neither n nor Node.js installed you can also try curl -L http : git.io n-install bash which includes installing the latest stable Node.js version - see my answer http : stackoverflow.com a 30967671 45375 .",
"As of Android N this is not supported .",
"Same for nave and n .",
"n i and j are not initialized",
"Say Get top-n .",
"I d start with not splitting into separate strings and then assembling them back but instead scan for the delimiter and just remember the indexes so for 3gram you keep track of delimiter n n-1 n-2 and n-3 .",
"If I keep track of the last 3 delimiters how can I retrieve the corresponding 3 words when I reach n after n-3 n-2 n-1 .",
"In my dream world it s called n vs . 1 not n+1 .",
"@FopaL onConstantin If the docs say it s N-TRIPLE it s probably N-TRIPLE .",
"myNgrams message i : i+n for i in range len message - n + 1",
"Is this a sorted n-ary tree or an unsorted n-ary tree",
"Using words as features is equivelant to word based n-grams with n 1 .",
"So you actually select top n N rows here .",
"Do you need a solution for n 2 or a general solution for arbitrary n",
"Once you specify that you are compiling and targeting N your app s minSdkVersion is raised to N and your app will only run on N Developer Preview devices .",
"UPDATE : Now that N Developer Preview 4 has been released we can start using 24 in-place of N and android-N :",
"@NicolasDiken : void assign q int chess N N - technically the last N is redundant but it s good documentation to state what you expect .",
"Based on a cursory reading of The online encyclopedia of integer sequences - Number of ways of placing n nonattacking queens on n X n board https : oeis.org A000170 .",
"The new collection should contain the X collection N-Grams N 2 and N 3 for now actually .",
"Select n-th highest salary in a simple way .. . .. . Where n the n-th number u want.... .",
"If you need some tiers then call it n-tier - if you know that n 7 then call it 7-tier or n-tier .",
"Where is n coming from",
"where is n coming from",
"for small values of N .",
"What if n 100",
"@Unreason : arbitrary n",
"is your emulator running with N images",
"N-triples files are UTF-8 .",
"3-tiers and N-tiers is there a difference",
"Hence the generic name is n-tier .",
"What are the benefits of an N-layered architecture",
"You may try this with a parameter of n",
"To generate bigrams : .. . .. . To generalize to a different n :",
"The compiler interprets n just fine .",
"To put my question in other words : Why does n suggest installing using npm if its main purpose is to install Node.js which includes npm",
"The N-Queens Problem : .. . .. . This problem states that given a chess board of size N by N find the different permutations in which N queens can be placed on the board without any one threatening each other .",
"Explicit solutions exist for placing n-queens on an n n board for all n 4 requiring no combinatorial search whatsoever http : en.wikipedia.org wiki Eight queens puzzle Explicit solutions .",
"I would guess that enumerate int N is what is enumerating through the multiple board solutions but it is only called once .",
"The official recommendation is to use the latest versions in the model branch .",
"colibri.ngrams text n 3 or colibri.skipgram text n 3 k 2",
"This means value n will give y and value n will give x. .",
"Not sure how to solve this one but it s should be at least O N N .",
"So total time should be O n n+2 .",
"Though you are right that N n term will also add up .",
"I m trying to implement the N N queen algorithm with a little twist to it .",
"It would be easy to perform 1 + N query N number of category .",
"There are multiple problems in you code : .. . .. . You are not systematic enough about index ranges : you use 0 to n and 1 to n-1 inclusive or exclusive operators and confusing the reader.. . and invoking undefined behaviour when accessing cols n .",
"On the minus side your targetSdkVersion will not actually be N which may impact some behaviors on N Developer Preview devices .",
"The N-Quads format just like its sister format N-Triples specifically requires that only absolute IRIs are used ."
]
} | {
"confidence": [
42.3725471496582,
42.21380615234375,
39.03313446044922,
30.12248992919922,
30.12248992919922,
30.076980590820312,
29.550548553466797,
29.32640838623047,
28.364200592041016,
27.93465805053711,
27.063983917236328,
27.063983917236328,
25.272809982299805,
25.272809982299805,
25.22646713256836,
24.599998474121094,
24.465341567993164,
24.243200302124023,
24.0227108001709,
23.952470779418945
],
"content": [
"Question : I have a problem understanding the use of n https : github.com visionmedia n . Basically it is clear that it is a version manager for Node.js such as nvm https : github.com creationix nvm . But in contrast to nvm which is basically a shell script according to the documentation you are encouraged to use npm to install n : .. . .. . What I don t get is : For having npm at hand you need to install Node.js . Why would I install Node.js manually to use npm to then be able to install Node.js using n To put my question in other words : Why does n suggest installing using npm if its main purpose is to install Node.js which includes npm .. . Answer : tl dr .. . .. . .. . .. . I feel your pain . Installing Node.js to then install n to then manage Node.js installations is indeed a strange setup . It would indeed be great to be able to install n by itself first . I ve created a project https : github.com mklement0 n-install to support installation of n directly from GitHub the only prerequisite beyond what n itself needs is git . Note that you must first remove any pre-existing n Node.js versions . The target directory n by default must either not yet exist or be empty . For bash ksh and zsh the relevant shell initialization file e.g . .bashrc is automatically modified to define environment variable N PREFIX and append N PREFIX bin to the PATH for other shells this must be done manually . Aside from installing n directly from GitHub it also installs helper scripts for updating n n-update and uninstalling it n-uninstall . Here are working examples see the n-install GitHub repo https : github.com mklement0 n-install for details : .. . .. . Installation with confirmation prompt to confirm installing to default location HOME n and installing the latest stable Node.js version : .. . .. . curl -L https : git.io n-install bash .. . .. . .. . Automated installation to the default location with subsequent installation of the latest LTS long-term support and stable Node.js versions as well as the latest 4.1.x Node.js version : .. . .. . curl -L https : git.io n-install bash -s -- -y lts stable 4.1 .. . .. . .. . Automated installation to the default location without subsequent installation of the latest stable Node.js version : .. . .. . curl -L https : git.io n-install bash -s -- -y - .. . .. . .. . Automated installation to custom location util n with subsequent installation of the latest stable Node.js version : .. . .. . curl -L https : git.io n-install N PREFIX util n bash -s -- -y Comment : Does n-install let me install multiple versions of n : D Comment : @btx9000 : Yes : you can install 2 version of n right next to each other to upgrade to m .",
"Question : I have a problem understanding the use of n https : github.com visionmedia n . Basically it is clear that it is a version manager for Node.js such as nvm https : github.com creationix nvm . But in contrast to nvm which is basically a shell script according to the documentation you are encouraged to use npm to install n : .. . .. . What I don t get is : For having npm at hand you need to install Node.js . Why would I install Node.js manually to use npm to then be able to install Node.js using n To put my question in other words : Why does n suggest installing using npm if its main purpose is to install Node.js which includes npm .. . Answer : The n module was created for convenience . For example if you wanted to update your version of Node.js from v0.8.0 to v0.10.20 would you rather download a package extract and compile Or would you rather type n 0.10.20 and have it instantly installed while still retaining previous versions of Node for easy switching n suggests using npm to install it because n is a module . That is npm is the easiest way to install it . Node modules have the functionality of being able to run in a shell when installed globally so that function was utilized to make switching Node versions much easier . Comment : Of course you are right that it s much more convenient to just type n 0.10.20 and you re done but why not use n for the initial install This way the very first install feels special . E.g . : Is it guaranteed that n uses the same folders as the Node.js installer does Comment : Because n is a module and using npm is simply the easiest way to install it . As for your second question Node.js binaries are stored in n s own directory something like usr local n versions otherwise you wouldn t be able to have multiple versions installed at the same time . Comment : But the initial install isn t installed there - isn t that a problem Please forgive me if this questions may be a little naive but I just wonder why it is and I m curious - Comment : Why would it be a problem if the initial install isn t there Comment : I m not sure about the initial install but for most cases n prev would just restore the previous version . Edit : It appears it also saves the initial install to usr local n versions .prev when you first add a new version as it does with any installation . Therefore n prev would also work in restoring the initial install .",
"Question : I have a problem understanding the use of n https : github.com visionmedia n . Basically it is clear that it is a version manager for Node.js such as nvm https : github.com creationix nvm . But in contrast to nvm which is basically a shell script according to the documentation you are encouraged to use npm to install n : .. . .. . What I don t get is : For having npm at hand you need to install Node.js . Why would I install Node.js manually to use npm to then be able to install Node.js using n To put my question in other words : Why does n suggest installing using npm if its main purpose is to install Node.js which includes npm .. . Answer : I had the same question but have seen the light . n is a handy tool and makes it simple to test different versions of node . Works great on Linux but no matter how I try to install it on OS X git-clone then npm-install or using user456584 s recommended method when I run it I always get the same results of Error : no installed version even though it installs into .. . .. . usr local lib node-modules n .. . .. . and .. . .. . usr local bin n .. . .. . Frustrating because I ve found this tool to be so handy on Linux . Comment : : this could be a comment maybe . Comment : i m having the same problem . Comment : Crooner @fraxture : If you installed only by cloning n s GitHub repo then not finding any installed versions is expected : you must explicitly install them e.g . with n stable to install the latest stable Node.js version . With neither n nor Node.js installed you can also try curl -L http : git.io n-install bash which includes installing the latest stable Node.js version - see my answer http : stackoverflow.com a 30967671 45375 . Comment : If it wasn t clear already the error message is telling you that n has not yet installed any versions of Node not that n itself hasn t been installed . Obviously running n without having n installed i.e . on your PATH would give you a bash ksh zsh error message like -bash : n : command not found instead of the error message you see .",
"Question : After installing n by command sudo npm-install -g n I want list all node versions but some errors come out even though n can work normally As bellow : .. . .. . I don t know why there is no need to configure my bin foldeer . .. . Answer : I have solved it after npm-install which.. .",
"Question : After installing n by command sudo npm-install -g n I want list all node versions but some errors come out even though n can work normally As bellow : .. . .. . I don t know why there is no need to configure my bin foldeer . .. . Answer : Try installing which Comment : thx my linux has installed which I find that my npm didn t install which so I npm-install which again then I solved it... .",
"Question : I have a problem understanding the use of n https : github.com visionmedia n . Basically it is clear that it is a version manager for Node.js such as nvm https : github.com creationix nvm . But in contrast to nvm which is basically a shell script according to the documentation you are encouraged to use npm to install n : .. . .. . What I don t get is : For having npm at hand you need to install Node.js . Why would I install Node.js manually to use npm to then be able to install Node.js using n To put my question in other words : Why does n suggest installing using npm if its main purpose is to install Node.js which includes npm .. . Answer : You can also install npm separately from Node.JS e.g . : on a system without Node.JS : .. . .. . Reference : NPM GitHub project https : github.com npm npm",
"Question : I have a problem understanding the use of n https : github.com visionmedia n . Basically it is clear that it is a version manager for Node.js such as nvm https : github.com creationix nvm . But in contrast to nvm which is basically a shell script according to the documentation you are encouraged to use npm to install n : .. . .. . What I don t get is : For having npm at hand you need to install Node.js . Why would I install Node.js manually to use npm to then be able to install Node.js using n To put my question in other words : Why does n suggest installing using npm if its main purpose is to install Node.js which includes npm .. . Answer : If you prefer you can install n from source : .. . .. . Then you can install the latest stable version of node as follows : Comment : I just want to add that if you get an error during make install you may have had installed it before . Then you should call make uninstall first . Comment : make install fails with cp : cannot create regular file usr local bin n : Permission denied . Maybe update the example to run with sudo",
"Question : Seems google introduce quite a lot of interesting features in android N platform for example Java 8 partial support . I want to use it for my first android application . However I have a question - if my app will be implemented using Android N tools using Java 8 features but with settings minimal sdk 4.1 will my application work on Android 4 5 6 Comment : I want to use it for my first android application -- that is not a good idea IMHO . Wait until Android N ships in final form presumably Android 7.0 in a few months . Comment : I m new to android and it s mostly for learning . But my personal phone running Android 5 so I need to know - will my app will work on it or no . Comment : Not right now . Apps compiled against the N Developer Preview will only run on N Developer Preview devices unless you take some fairly nasty and complicated steps to try to work around that restriction . That is one of the reasons why I suggest that you wait on using Android N until it ships in final form . Comment : thanks for clarification . .. . Answer : Yes your app will work on previous versions of Android if you use the Support Libraries . These are updated with new versions of Android to provide backwards compatibility to new features . This is a common practice . https : developer.android.com topic libraries support-library index.html .. . .. . For Java 8 it sounds like you will need to be selective in what you use . From the documentation : https : developer.android.com preview j8-jack.html .. . .. . Supported Java 8 Language Features and APIs Android does not currently support all Java 8 language features . However the following features are now available when developing apps targeting the Android N Preview : .. . .. . Default and static interface methods .. . .. . Lambda expressions also available on API level 23 and lower .. . .. . Repeatable annotations .. . .. . Method References also available on API level 23 and lower .. . .. . Note : To test lambda expressions and method references on earlier versions of Android go to your build.gradle file and set compileSdkVersion and targetSdkVersion to 23 or lower . You will still need to enable the Jack toolchain to use these Java 8 features . Comment : The OP s app will not work on previous versions of Android until Android N ships in final form unless the OP takes significant steps . Once you specify that you are compiling and targeting N your app s minSdkVersion is raised to N and your app will only run on N Developer Preview devices . Beyond that I am personally a bit hazy as to what portions of the Java 8 support will be backwards compatible or not and little of that will necessarily be covered by the Android Support libraries . Comment : in this artice mentioned that support libraries mostly used to fix lacking of API . But in my case it wil be next language version . Are you sure it s fit for that case Comment : sounds like it s going to be a mixed bag for Java 8 . If you want to make sure your app is backwards compatible you are going to have to be selective in what your use . Looks like Lambdas and Method References are already useable on previous versions but other features are not . Here is a better reference for what you are looking for : developer.android.com preview j8-jack.html https : developer.android.com preview j8-jack.html Comment : If you are satisfied with the answer I gave please accept it . Thank you and good luck",
"Question : null .. . Answer : First : It is possible to automatically change the version of node and npm to the engine versions you specified in the package.json without manually run n or nvm Next : Is there a version manager for npm Sometimes i cannot install some packages over the latest npm version 3.3.9 and musst change to version 2.9.1 . i had this behavior by installing bcrypt in combination with sails.js i had to install sails with the npm@latest switch to npm@2.9.1 because of not finding lodash und fsevents and install bcrypt . my actual version change is following . npm-install -g npm@2.9.1 or npm-install -g npm@latest .. . .. . But in some cases he doesn t add npm to the PATH variable after switching versions . So a package like n would be very nice . but search for a similar mechanism like the package n node version manager . By the way do you prefer n or nvm I use n because it does what it does and it works nice . Node NPM is so mighty and i want to introduce it to my company but i need some tools for automation and guarantee that it works : .. . .. . Thank for the coming answers .",
"Question : How to generate an n-gram of a string like : .. . .. . I want to generate n-gram with this input : .. . .. . Output should be : .. . .. . Give some idea in Java how to implement that or if any library is available for it . I am trying to use this NGramTokenizer http : lucene.apache.org java 3 0 2 api all org apache lucene analysis ngram NGramTokenizer.html but its giving n-gram s of character sequence and I want n-grams of word sequence . .. . Answer : You are looking for ShingleFilter http : lucene.apache.org core old versioned docs versions 3 0 2 api all org apache lucene analysis shingle ShingleFilter.html . Update : The link points to version 3.0.2 . This class may be in different package in newer version of Lucene .",
"Question : I am using Html.fromHtml to view html in a TextView . But Html.fromHtml is now deprecated in Android N+ .. . .. . What How do I find the new way of doing this .. . Answer : You have to add a version check and use the old method on Android M and below on Android N and higher you should use the new method . If you don t add a version check your app will break on lower Android versions . Comment : Which flag does the zero represent Comment : Html.FROM HTML MODE LEGACY Comment : @ban-geoengineering thanks . I updated my answer .",
"Question : I was confused related ICU4J if i want to upgrade my application version to Support Android N . How can i migrate from previous Android SDK to Android ICU API . For Example if i have used Calendar in my Application Using java.util.Calendar will i implement that again with Android ICU API or there is shortest way .. . Answer : Like all new APIs if you want you app to work on earlier versions of Android you should not use them unless you protect the calls behind version checks . If you only intend to target the N release then you can use the android.icu ICU4J APIs .",
"Question : I am looking for a JavaScript N-triples to RDF XML converter . Actually I will use it in NodeJS . Does anybody know of a JavaScript library to convert N-triples into RDF XML .. . Answer : I haven t tried it but maybe https : github.com antoniogarrote rdf-raptor-node-js would do it it wraps my Raptor rdf syntax library with a Node.js binding . This is a compiled binding not native JS .",
"Question : I am looking for a JavaScript N-triples to RDF XML converter . Actually I will use it in NodeJS . Does anybody know of a JavaScript library to convert N-triples into RDF XML .. . Answer : Had the same problem can t make raptor work . So I designed a little web service that I call with node.js : http : semola-rdf.appspot.com with a HTTP POST endpoint .. . .. . There is a jquery plugin that could do this too http : code.google.com p rdfquery but can t make jquery with node neither.. .",
"Question : null .. . Answer : I have searched online thru this site and others for a solution so I finally bow my head and ask for help . It looks like most of the answers are identifying the node nodejs naming conflict and creating symlinks as a solution . I don t have a nodejs anywhere on my system . I am using a n as my node version manager . So .. . .. . displays a list of installed versions and allows me to choose . n simply copies the chosen version into usr local bin as node . It has already established a link from usr bin node to the managed version . I installed a javascript library called waigo . When I run the following : .. . .. . I get the following output.. . .. . .. . arrgghhh.... . I m frustrated . Any help will be appreciated . Comment : Potentially you just don t have usr bin node in your PATH so node on its own isn t resolving to the executable you want it to . What does echo PATH output Comment : echo PATH provides a list of all the directories in the path . And when I run which node I get usr local bin node",
"Question : I m using NLTK to search for n-grams in a corpus but it s taking a very long time in some cases . I ve noticed calculating n-grams isn t an uncommon feature in other packages apparently Haystack has some functionality for it . Does this mean there s a potentially faster way of finding n-grams in my corpus if I abandon NLTK If so what can I use to speed things up Comment : More reading for those interested : packages.python.org Whoosh ngrams.html http : packages.python.org Whoosh ngrams.html Comment : Related question : stackoverflow.com questions 21883108 http : stackoverflow.com questions 21883108 fast-optimize-n-gram-implementations-in-python .. . Answer : Since you didn t indicate whether you want word or character-level n-grams I m just going to assume the former without loss of generality . I also assume you start with a list of tokens represented by strings . What you can easily do is write n-gram extraction yourself . Then replace the yield with the actual action you want to take on each n-gram add it to a dict store it in a database whatever to get rid of the generator overhead . Finally if it s really not fast enough convert the above to Cython http : cython.org and compile it . Example using a defaultdict instead of yield : Comment : The newer versions of Cython recognize Python for statements and speeds them up if possible . Further you have a method lookup in the inner iteration . defining tokenjoiner .join outside the loop and replacing the inner .join should speed things up . Comment : @rocksportrocker : good spot added your suggestion . Comment : and you can rewrite the inner line with count.get ... . + 1 introduce another var for avoiding method lookup .",
"Question : The problem is often mentioned in object-relation mapping discussions and I understand that it has something do to with having to make a lot of database queries for something that seems simple in the object world . Does anybody have a more detailed--but simple--explanation of the problem Comment : all I wanted to know about select n+1 problem but was afraid to ask Comment : IMO javalobby.org java forums t20533.html http : www.javalobby.org java forums t20533.html this explanation is better Comment : Hate the name of this problem . In my dream world it s called n vs . 1 not n+1 . Comment : This is a great link with nice explanation on understanding the n+1 problem . It also covers the solutions to counter this issue : architects.dzone.com articles how-identify-and-resilve-n1 http : architects.dzone.com articles how-identify-and-resilve-n1 Comment : N+1 is one of the most famous question among java developers . It will give some performance issue if you where working on a large project . So it s better to resolve it using some techniques given here javawebtutorial.blogspot.in 2013 09 http : javawebtutorial.blogspot.in 2013 09 what-is-n1-problem-and-how-to-resolve-it.html .. . Answer : I can t comment directly on other answers because I don t have enough reputation . But it s worth noting that the problem essentially only arises because historically a lot of dbms have been quite poor when it comes to handling joins MySQL being a particularly noteworthy example . So n+1 has often been notably faster than a join . And then there are ways to improve on n+1 but still without needing a join which is what the original problem relates to . However MySQL is now a lot better than it used to be when it comes to joins . When I first learned MySQL I used joins a lot . Then I discovered how slow they are and switched to n+1 in the code instead . But recently I ve been moving back to joins because MySQL is now a heck of a lot better at handling them than it was when I first started using it . These days a simple join on a properly indexed set of tables is rarely a problem in performance terms . And if it does give a performance hit then the use of index hints often solves them . This is discussed here by one of the MySQL development team : .. . .. . http : jorgenloland.blogspot.co.uk 2013 02 dbt-3-q3-6-x-performance-in-mysql-5610.html .. . .. . So the summary is : If you ve been avoiding joins in the past because of MySQL s abysmal performance with them then try again on the latest versions . You ll probably be pleasantly surprised . Comment : Upvoted you should be able to comment now Comment : Calling early versions of MySQL a relational DBMS is quite a stretch.. . If people encountering those problems had been using a real database they would not have encountered those kinds of problems . - Comment : Interestingly many of these types of problems were solved in MySQL with the introduction and subsequent optimization of the INNODB engine but you ll still run into people trying to promote MYISAM because they think it s faster .",
"Question : The problem is often mentioned in object-relation mapping discussions and I understand that it has something do to with having to make a lot of database queries for something that seems simple in the object world . Does anybody have a more detailed--but simple--explanation of the problem Comment : all I wanted to know about select n+1 problem but was afraid to ask Comment : IMO javalobby.org java forums t20533.html http : www.javalobby.org java forums t20533.html this explanation is better Comment : Hate the name of this problem . In my dream world it s called n vs . 1 not n+1 . Comment : This is a great link with nice explanation on understanding the n+1 problem . It also covers the solutions to counter this issue : architects.dzone.com articles how-identify-and-resilve-n1 http : architects.dzone.com articles how-identify-and-resilve-n1 Comment : N+1 is one of the most famous question among java developers . It will give some performance issue if you where working on a large project . So it s better to resolve it using some techniques given here javawebtutorial.blogspot.in 2013 09 http : javawebtutorial.blogspot.in 2013 09 what-is-n1-problem-and-how-to-resolve-it.html .. . Answer : Suppose you have COMPANY and EMPLOYEE . COMPANY has-many EMPLOYEES i.e . EMPLOYEE has a field COMPANY ID . In some O R configurations when you have a mapped Company object and go to access its Employee objects the O R tool will do one select for every employee wheras if you were just doing things in straight SQL you could select from employees where company id XX . Thus N of employees plus 1 company .. . .. . This is how the initial versions of EJB Entity Beans worked . I believe things like Hibernate have done away with this but I m not too sure . Most tools usually include info as to their strategy for mapping .",
"Question : null .. . Answer : What is the meaning of the following error message : I am attempting to convert the dogfood.nt to its rdf xml representation form what does the StackOverflow message indicate Following is the code snippet used : .. . .. . I am using the semantic dogfood n-triples . Comment : Please add the code that you are running and a link-to the RDF file in question . Comment : What versions of Jena and Java are you using Comment : I am using jena 3.0.1 and java-8 Comment : What s dogfood4.nt Comment : try 3.0.0 . re . dogfood4.nt - please provide a link - otherwise we don t know what you mean by that .",
"Question : Problem : .. . .. . I am using AlertDialog and ProgressDialog at multiple places in the app . They are displaying fine with Android versions below Android N Preview . However when I tested them with Android N Preview NDP3 on Nexus 5X the translucent background doesn t seem to cover the whole screen . Translucent background of dialog not covering the whole screen in Android N : enter image description here http : i.stack.imgur.com hlFyE.png .. . .. . This is how I m creating the dialog in the activity : .. . .. . Here is the activity theme : .. . .. . Question : .. . .. . Is this a issue with Android N or has something changed in the API s which we need to incorporate for Android N and above Comment : Other than not using a DialogFragment for handling configuration changes your code would seem to be OK relative to this problem . Are you doing anything dialog-related int the theme used by this activity Comment : @CommonsWare Thanks for the comment . The app is only portrait for now but anyways should use DialogFragment . Most of the stuff in the theme is with ActionBar and colour etc . I ve included it in the question for your kind reference . Comment : I do not see anything in that theme that strikes me as the source of your problem . That being said this sample app https : github.com commonsguy cw-omnibus tree master Dialogs DialogFragment of mine behaves normally on a Nexus 6 and a Nexus 9 each running NDP3 . Comment : @CommonsWare I tried your project . Same issue . I m using Nexus 5X . Maybe its something device specific . Here is the snapshot : dl.dropboxusercontent.com u 25769338 https : dl.dropboxusercontent.com u 25769338 Screenshot 20160526-122908.png Comment : If you ran that project unmodified then my guess is that it is device-specific . It s odd that this particular effect would be device-specific but . I do not have NDP3 loaded on a 5X so I cannot confirm the behavior . I recommend that you file a bug report on this whether using my sample project or one of your own . If you use mine and you think of it post the link here in a comment and I can post the screenshots coming from a Nexus 6 and Nexus 9 for comparison . .. . Answer : This is a known issue in N DP . See https : code.google.com p android issues detail id 205765 .. . .. . It is a platform issue . You do not need to work around this in your app . Comment : If possible could you please re-open that issue It is marked as released at the moment which means that it might not get addressed . Thanks Comment : OP needs to file a new issue at developer.android.com preview bug https : developer.android.com preview bug and include relevant sample project OS version etc ."
]
} | [
"yes-answer-long",
"yes-answer-short"
] | io.js | UNK_RELATION |
uimenucontroller@copy-paste@101 | uimenucontroller -- the singleton uimenucontroller instance presents the menu interface for the cut @placeholder select select all and delete commands.this menu is referred to as the editing menu . | {
"confidence": [
72.4999771118164,
63.25279235839844,
58.24937438964844,
55.43016815185547,
55.4000129699707,
53.877742767333984,
53.17281723022461,
53.17281723022461,
52.74562454223633,
51.61350631713867,
49.84654235839844,
49.09294128417969,
49.09019088745117,
49.03884506225586,
48.3956413269043,
47.701168060302734,
46.47473907470703,
46.283023834228516,
46.283023834228516,
46.283023834228516,
46.283023834228516,
46.283023834228516,
45.676883697509766,
45.30009078979492,
45.30009078979492,
45.253135681152344,
44.52845764160156,
44.48558807373047,
43.259552001953125,
43.259552001953125,
42.83852767944336,
42.8215217590332,
42.6291618347168,
42.6291618347168,
42.305030822753906,
42.19096755981445,
41.707122802734375,
41.707122802734375,
41.6348876953125,
41.6348876953125,
41.08900451660156,
40.60499954223633,
40.19190979003906,
39.981014251708984,
39.981014251708984,
39.74489974975586,
39.44288635253906,
39.37065124511719,
39.21525955200195,
39.21525955200195,
38.95323944091797,
38.95323944091797,
38.95112609863281,
38.95112609863281,
38.95112609863281,
38.95112609863281,
38.75323486328125,
38.62892532348633,
38.5690803527832,
37.98123550415039,
37.98123550415039,
37.9233512878418,
37.876590728759766,
37.66283416748047,
37.66283416748047,
37.66283416748047,
37.66283416748047,
37.66283416748047,
37.66283416748047,
37.66283416748047,
37.66283416748047,
37.199527740478516,
37.145774841308594,
37.145774841308594,
36.94072341918945,
36.853599548339844,
36.81731033325195,
36.81731033325195,
36.81731033325195,
36.6329460144043,
36.6329460144043,
36.52372360229492,
36.52372360229492,
36.43119812011719,
36.202369689941406,
36.17877197265625,
36.07515335083008,
36.07515335083008,
36.07515335083008,
35.64710235595703,
35.398921966552734,
35.398597717285156,
35.398597717285156,
35.398597717285156,
35.313079833984375,
35.301177978515625,
35.29426574707031,
35.172481536865234,
34.67470169067383,
34.62640380859375
],
"content": [
"UIMenuController application singleton is responsible for presenting edit action menu items such as Copy Cut Delete Select and others .",
"I know it is UIMenuController but it is only provide standard cut copy past menu .",
"UIMenuController positions the editing menu above this rectangle if there is not enough space for the menu there it positions it below the rectangle .",
"I m trying to remove the default menu items from UIMenuController .",
"how to remove defaults menu items like copy-paste and select from UIMenuController",
"You could draw your own menu instead of using UIMenuController .",
"I m trying to put more than one custom menu item in UIMenuController without their being stuck under the More.. . menu .",
"For example disable paste menu item in uimenucontroller .. . .. . Usage : .. . .. . Now paste menu item will be disabled for message Textfield",
"I m using the new customization abilities of the UIMenuController to add things other than Copy to the menu for cut paste into a webview .",
"Don t you have to add the UIMenuController menu to the main or subview E.G .",
"Run it then tap the Menu button press Select All .",
"So i m using UIMenucontroller for select option .",
"For First menu only paste for other menu copy select select all When i m using shared menucontroller it affects the other menu .",
"I have already created a context menu uimenucontroller and I added three items delete copy and forward .",
"The issue is that when adding custom UIMenuItem objects to the shared menu controller UIMenuController sharedMenuController only the first custom UIMenuItem will be shown on the initial display of the menu .",
"There apparently used to be an easy way http : stackoverflow.com questions 4311009 uimenucontroller-in-uiwebview-with-custom-menu-items-without-more-menu 4413464 4413464 to prevent the More.. . label from appearing in UIMenuController when you added more than one custom menu item .",
"I ve added an UIMenuItem instance to UIMenuController .",
"I want to set flags when user tap copy option in menu on UIMenuController .",
"When text in the UITextView is selected the system default context menu as UIMenuController with items copy share etc .",
"I know how to add custom menu items to UIMenuController but do not know how to access the selected text .",
"I am trying to use UIMenuController for a dynamical menu titles and actions come from a server .",
"However I think the best way to provide visual feedback is to prompt the user with the Copy menu option from UIMenuController .",
"UIMenuController menu with my custom items stops showing after I open Print Options dialog UIPrintInteractionController with few pages select one of them appears menu with Start After Page Skip page menu items and then close the dialog .",
"Assuming that your code displays the UIMenuController by making the view first responder add the bit of code that makes the menu visible inside an operation block : .. . .. . NSOperationQueue mainQueue addOperationWithBlock : UIMenuController sharedMenuController setMenuVisible : YES animated : YES .. . .. . This displays the menu and the text entered in the textfield .",
"I have similar issue with UIMenuController..After tapping on one of the menu option again i want some menu items..so i m using above code.Its working fine in iOS6 but in iOS7 whatever targetFrame i m setting to UIMenuController is not reflecting its presenting somewhere on the view with improper arrowDirection .",
"hi can u tell me how to remove the others menu item in UIMenuController",
"UIMenucontroller can be automatically when you select a text in web view",
"But what i did is i disabled the popup menu items in .. . .. . BOOL canPerformAction : SEL action withSender : id sender .. . .. . Using .. . .. . if UIMenuController sharedMenuController UIMenuController sharedMenuController .menuVisible NO return NO .. . .. . Then i used a UIPopoverController .",
"But can t crack the UIMenuController .",
"Use the menuItems property on UIMenuController .",
"Others stackoverflow.com questions 4311009 http : stackoverflow.com questions 4311009 uimenucontroller-in-uiwebview-with-custom-menu-items-without-more-menu 4413464 4413464 have also found that this solution doesn t work .",
"My code for first menu is as follows : .. . .. . and my second menu is : .. . .. . Error : In here in second menu contains unwanted things as Select SelectAll Copy with Paste .",
"Sender is Menu not Menu Item",
"Sender is Menu Not Menu Item",
".. . .. . Reason : You can only get the UIMenuController Instance by invoking class-method like this : UIMenuController sharedMenuController .",
"When I tap hold and select a text a menu should popup with 2 custom menu .",
"Now show the second UIMenuController .. . .. .",
"UIMenuController sharedMenuController cut : sender .. . 4 .",
"I am trying to disable the UIMenuController across the application and I am using the below code .. . .. . Everything works fine as the menu comes up and disappears immediately .",
"- void dispatch : id sender NSLog @ @ sender says it is a UIMenuController and It don t have a method which would tell which menu item was pressed .",
"Hi I want to create a customize bubble menu like cut copy-paste menu in IPhone SDK3.x .",
"I used the technique in this answer http : stackoverflow.com questions 3537795 uimenucontroller-custom-items 3538344 3538344 to a similar question and it works for ridding of the Copy menu item .",
"I wrote up directions for using the UIMenuController as an answer to this question : .. . .. . Customize UIMenuController http : stackoverflow.com questions 1604716 customize-uimenucontroller 4079896 4079896",
"It is just that the UIMenuController won t show up",
"I ve tried this but the argument is set to UIMenuController .",
"1 you need to add custom menu items to the shared UIMenuController : .. . .. . 2 you need to implement your handler methods somewhere in the responder chain for the view that will be first-responder when you show the menu : .. . .. . 3 you optionally need to implement canPerformAction : in the responder chain for the view that will be first-responder when you show the menu : .. . .. . 4 if the view you want to present the menu for doesn t already support showing a menu i.e .",
"UIMenuController doesn t have a view .",
"I need a menu controller that s twice as high this doesn t help with that - it just uses some hackish code to replace the text in a UIMenuController with images .",
"Yes the alternatives to UIMenuController are way more attractive .",
"Is there a way to determine when a UIMenuController has been dismissed",
"I have a UIImageController that its items are added in this way : .. . UIMenuController menuController UIMenuController sharedMenuController .. . .. . these items are shown horizontally in a line .",
"In the action method where you are about to show the second UIMenuController get the frame of the previous UIMenuController .. . .. .",
"In that case the UIMenuController will be truncated left and or right .",
"So im using UIMenuController for MenuItem .",
"@DesetRose : I don t want UIMenuController .",
"Because UIMenuController having copy define .",
"When I tap in a text field twice then I get that text editing menu with Copy Cut Paste Lookup in Wikipedia .",
"You have to create a UIMenuItem add it to your UIMenuController shared instance : .. . .. . Then in the method func canPerformAction you do your tests whether or not you allow the action and once you re about to return true that s where you get the UIMenuController shared instance get your menu item from the list of menu items and change the title .",
"I have created a UIMenuController and have set it a custom menu item like so : .. . .. . But I wanted that object to be the only one to appear so I added this code : .. . .. . The problem is it still shows other Heading items such as Select Select All and Paste .",
"I am hoping that there is a way to intercept the UIMenuController possibly by subclassing it so that I can get to the insertion point before the balloon displays but still able to effect a change to it by changing the menu item list .",
"http : stackoverflow.com questions 6074694 how-to-remove-the-default-uimenuitem-from-the-uimenucontroller-in-ios .. . .. . I m trying to do this for the new iOS 5 methods where you can show a menu item on the table selection .",
"for example : dev.glide.me 2013 05 custom-item-in-uimenucontroller-of.html http : dev.glide.me 2013 05 custom-item-in-uimenucontroller-of.html",
"I want to use one method to handle all category-presses in the UIMenuController .",
"I am using UIMenuController using sharedMenuController property .",
".. . .. . I am trying to show a UIMenuController on a UIView .",
"I got .. . .. . There can only be one UIMenuController .",
"Is there any way to catch the copy-paste event in UIMenuController",
"This is my longPressHandler which triggers my UIMenuController .",
"Last time I checked the system returned UIMenuController .",
"It doesn t appear that there is a way to do this without replacing the UIMenuController .",
"In this app I customize the options presented in the UIMenuController .",
"If you re putting it inside of tableView : didSelectRowAtIndexPath then the UIMenuController will come up when you select the row in an ordinary fashion I gather that this is what you desire",
"But the problem is user can select text and then UIMenuController pops-up and it has share and copy button .",
"Yeah but in my case I need to select some text then choose a button from the navigation bar which is covered by the UIMenuController .",
"@JedGrant no I ve been living with the standard Editing menu for now .",
"This way resignFirstResponder gets called if whether they select one of the menu options or not so the cleanup code will always fire .",
"The sender is the Menu not the item .",
"Trying to make a soft menu .",
"The parameter is not always nil it is a menu .",
"There is great NSHipster tutorial http : nshipster.com uimenucontroller about it .",
"I need to display UIMenuController while button click .",
"For that I have implemented these delegates : as told in this stack answer by Moiz http : stackoverflow.com questions 31183894 uimenucontroller-method-settargetrectinview-not-working-in-uitableview lq 1 .. . .. . Then I added notifications for menu controller as : .. . .. . I know that passing nil as object means it will react to the notifications of menu controller from any object .",
"You used to be able to do this by preventing the Copy command from showing up stackoverflow.com questions 4311009 http : stackoverflow.com questions 4311009 uimenucontroller-in-uiwebview-with-custom-menu-items-without-more-menu 4413464 4413464 but that no longer works .",
"a UIWebView will show a menu when the user does a long-tap but a UILabel has no built-in support for showing a menu then you need to present the menu yourself .",
"I am implementing custom UIMenuController and trying to figure out how can I legally disable Share and Define UIMenuItems of UIMenuController in UIWebView iOS 9 .",
"Now that you know all of that this is how I d start tackling that : .. . .. . 1 Listen for UIMenuControllerWillShowMenuNotification s when the text view is first responder .. . .. . 2 Show your custom menu controller instead of the default UIMenuController .. . .. . Misc .",
"Currently I am listening for the UIMenuControllerWillShowMenuNotification notification and then getting the UIMenuController .",
"and the person touched the word is it would add that word as a UIMenuItem to the UIMenuController .",
"On state changes UIMenuController posts notifications to the default NSNotification center .",
"No when I select the cell using long prees gesture when keyboard is active the UImenucontroller appears but keyboard ges away I want the keyboard to be on screen .",
"After you invoke the UIMenuController from your UITableView you should do .. . menuController setMenuItems : nil menuController setMenuVisible : NO menuController update menuController nil After a menu item is selected on your selector method .",
"Otherwise you can expect the presentation of UIMenuController to fail .",
"Or is there some sample code on this UIPasteboard UIMenuController topic",
"to display UIMenuController one has to add following",
"Is there any way I could edit delete the row s data using UIMenuController",
"This is my action method : .. . .. . I get the NSLog when I select the Lookup in Wikipedia menu item .",
"Menu kind of context menu is displayed when user long taps on message .",
"I want to have a custom UIMenuController with options Copy and Info when I longpress the tableviewcell and I want to have the default UIMenuController on longpress of UITextView .",
"I realize I could add a gesture recognizer to the cell itself but that kind of defeats the purpose of the shared instance of UIMenuController doesn t it",
"This is often done by attaching a UILongPressGestureRecognizer to the view then showing the menu in the callback : .. . .. . Note there has to be a view that claims firstResponder for the menu to show ."
]
} | {
"confidence": [
78.95819854736328,
78.46492004394531,
78.23037719726562,
75.02571868896484,
74.20362091064453,
73.37596130371094,
72.50445556640625,
71.84202575683594,
71.34944152832031,
71.0899658203125,
69.51998901367188,
69.05701446533203,
68.76886749267578,
68.75149536132812,
68.35310363769531,
67.83700561523438,
67.25521850585938,
67.25521850585938,
67.2068862915039,
67.10121154785156
],
"content": [
"Question : Please have a look at my code and suggest corrections or any kind of code alterations I need to do in order to get menu displayed on selected table row . Please help I m new to iOS . .. . Answer : UIMenuController application singleton is responsible for presenting edit action menu items such as Copy Cut Delete Select and others . There is great NSHipster tutorial http : nshipster.com uimenucontroller about it . I m afraid Accomplish and Abort is not actually edit actions . So I guess using UIMenuController is not completely right decision . If you want to propose user some options on tapping table view s cell you should better use UIActionSheet . If you want to display options in the exact same way as UIMenuController does I would rather suggest you to consider using some CocoaPod like https : github.com camelcc MenuPopOverView . Comment : can i create custom items such as abort or accomplish Comment : Sure . You can find information about this in NSHipster s article UIMenuItem section . But from UX side it s not a right decision .",
"Question : I ve added an UIMenuItem instance to UIMenuController . When I tap in a text field twice then I get that text editing menu with Copy Cut Paste Lookup in Wikipedia . This is my action method : .. . .. . I get the NSLog when I select the Lookup in Wikipedia menu item . But sender is always nil . Not even the -canPerformAction : withSender : method receives anything other than nil for sender . Am I doing something wrong or is this a know framework bug Comment : Last time I checked the system returned UIMenuController . But that s as useful as nil . But I found another way to add blocks to UIMenuItem . github.com steipete PSMenuItem https : github.com steipete PSMenuItem .. . Answer : I also came across that once . Looks like a bug to me .",
"Question : I m trying to remove the default menu items from UIMenuController . I found this post for UIWebview or UITextView : .. . .. . How to remove the default UIMenuItem from the UIMenuController in iOS http : stackoverflow.com questions 6074694 how-to-remove-the-default-uimenuitem-from-the-uimenucontroller-in-ios .. . .. . I m trying to do this for the new iOS 5 methods where you can show a menu item on the table selection . So my class is a subclass of UIViewController that has a UITableView in it . I wasn t sure how or IF removing the default items was possible . Thanks .. . Answer : Use this code to remove the default features of cut copy-paste and select :",
"Question : My application has the ability to pop-up a menu . When the Select All button is pressed I want to enable the Delete button . However I haven t been able to get this working . Here is a sample project http : cl.ly 2j2S0L0d1U2J0k0v3847 illustrating the issue . Run it then tap the Menu button press Select All . The Delete button should appear immediately but it only appears when you hide the menu and then show it again . How can I fix this .. . Answer : The following does the trick : .. . .. . I ve noticed however that it does not work very reliable for example when setting animated to NO the menu is not updated on the fly . Comment : i tried doing this . I am not able to update the menus . Please help Comment : I have similar issue with UIMenuController..After tapping on one of the menu option again i want some menu items..so i m using above code.Its working fine in iOS6 but in iOS7 whatever targetFrame i m setting to UIMenuController is not reflecting its presenting somewhere on the view with improper arrowDirection .",
"Question : Hi I want to create a customize bubble menu like cut copy-paste menu in IPhone SDK3.x . I know it is UIMenuController but it is only provide standard cut copy past menu . Anyone know how to make a bubble menu similar like this . Any example and code for reference .. . Answer : Use the menuItems property on UIMenuController . Comment : Generally answers are much more helpful if they include an explanation of what the code is intended to do and why that solves the problem without introducing others",
"Question : There apparently used to be an easy way http : stackoverflow.com questions 4311009 uimenucontroller-in-uiwebview-with-custom-menu-items-without-more-menu 4413464 4413464 to prevent the More.. . label from appearing in UIMenuController when you added more than one custom menu item . You just had to remove all of the system menu items . There was even a workaround here http : stackoverflow.com questions 3255070 problems-adding-more-than-one-uimenuitem-to-uimenucontroller for still having copy work . You just had to implement a custom copy command using a different selector and then override canPerformAction : withSender : to not show the system copy : .. . .. . Unfortunately this method no longer works at least in a UIWebView subclass . canPerformAction : withSender : is called for every system menu item except copy : so the result is that the system copy menu item is always displayed . This means that if you have more than one custom menu item they are always hidden behind More.. . .. . .. . So is there a way to really remove the system s copy-item or some alternate way to prevent menu items from hiding behind More.. . Update .. . .. . This is the output I get when I override canPerformAction : withSender : notice that the method is never called for the copy : action : Comment : Apparently there is no way of removing the copy from UIMenuController within Objective-C but it s possible using CSS : -webkit-user-select : none iphonedevsdk.com forum iphone-sdk-development http : www.iphonedevsdk.com forum iphone-sdk-development 21715-how-disable-cut-copy-paste-feature.html Comment : Maybe I wasn t clear enough in the opening paragraph but I m not trying to prevent user selection . I m trying to put more than one custom menu item in UIMenuController without their being stuck under the More.. . menu . You used to be able to do this by preventing the Copy command from showing up stackoverflow.com questions 4311009 http : stackoverflow.com questions 4311009 uimenucontroller-in-uiwebview-with-custom-menu-items-without-more-menu 4413464 4413464 but that no longer works . Comment : what do you mean no longer works is it broke in iOS5 or something Comment : By no longer works I mean that the solution posted here : stackoverflow.com questions 3255070 http : stackoverflow.com questions 3255070 problems-adding-more-than-one-uimenuitem-to-uimenucontroller doesn t work . It apparently used to . Others stackoverflow.com questions 4311009 http : stackoverflow.com questions 4311009 uimenucontroller-in-uiwebview-with-custom-menu-items-without-more-menu 4413464 4413464 have also found that this solution doesn t work . As I mentioned in my update the overridden method is never called for copy : . Comment : @Ifalin Did you finally find a solution for newer versions .. . Answer : The technique you linked to still seems to work . I implemented a UIWebView subclass with these methods and only the A and B items appeared . Comment : I m still using this technique and can confirm it works in iOS 4.3.2 . I haven t tried iOS5 beta however . Comment : This works in iOS 5 . Comment : No it does not work in iOS5 for default selectors like cut copy-paste select selectAll define suggest . These are still shown even if I return NO . This neither works in a UITextField nor in a UIWebView . Comment : I can confirm it works in my app built with the latest iOS5 SDK running on iOS4 and iOS5 . I hide all of the default copy-paste menu items and show my own - all on a custom UIWebView subclass . Comment : Confirmed it too . It works fine with XCode 4.2 and iOS 5.0.1 provided that you implement the custom UIWebView subclass defined here below .",
"Question : I m using the new customization abilities of the UIMenuController to add things other than Copy to the menu for cut paste into a webview . What I do is getting the reference to the shared UIMenuController setting my NSArray of UIMenuItems into the menuItems and everything work fine as long as I add a single item . For instance I see COPY FOOBAR . Instead if I try adding more than a single item what happen is that I see COPY MORE if I press into MORE than finally the other items will show up . Is possible to show directly COPY FOO BAR THREE FOUR instead I saw a few applications that are able to do this notably iBooks . Any help very appreaciated thank you . Cheers sissensio .. . Answer : you can get the rect of the previously displayed UIMenuController using menuFrame readonly property using that you can calculate the position for another UIMenuController to be shown at the same place . In the action method where you are about to show the second UIMenuController get the frame of the previous UIMenuController .. . .. . enter image description here http : i.stack.imgur.com cCVZh.png .. . .. . Roughly you will get the arrow position . Now show the second UIMenuController .. . .. . enter image description here http : i.stack.imgur.com Mtg90.png .. . .. . since UIMenuController is a singleton if you want to show the previous menuItems again you have to set them .",
"Question : In my iPad app there is a UIWebview that displays text content . When I tap hold and select a text a menu should popup with 2 custom menu . say MENU1 MENU2 .. . .. . But it seems the COPY menu will also accompany which I couldn t disable . Is there any possibilities to disable it I tried around the forum and no solutions worked out . so itz okay to keep the COPY menu along with the other 2 . which should now look like .. . .. . Copy MENU1 MENU2 .. . .. . But unfortunately I m getting it displayed with a MORE menu as follows : .. . .. . Copy More.. . .. . .. . Clicking the More.. . menu is showing the other 2 menu . But I need all those 2 items to be displayed in the first attempt itself . either just the 2 menus alone or atleast along with the copy menu . Copy MENU1 MENU2 .. . .. . OR .. . .. . MENU1 MENU2 .. . .. . Get me some solution please... . Trying it out in many ways. . But nothing is working out.. . Plz help me out.. . Thanks Brian .. . Answer : It doesn t appear that there is a way to do this without replacing the UIMenuController . One option is to handle your own UILongPressGestureRecognizer see How to remove th COPY UIMenuItem in UIMenuController http : stackoverflow.com questions 3262530 how-to-remove-th-copy-uimenuitem-in-uimenucontroller . I ve seen proposals where you override canPerformAction but this does not work . Interestingly the copy : action is never called though it seems that everything else cut : select : etc . is . Comment : Doesn t work at all .",
"Question : Is there a way to determine when a UIMenuController has been dismissed I have a non-editable text area I m highlighting when the menu is brought up and I d like to un-highlight it when they either select an item easy or cancel not possible .. . Answer : On state changes UIMenuController posts notifications to the default NSNotification center . You can subscribe to them to get notified when the system hides the menu : Comment : Perfect thanks",
"Question : There apparently used to be an easy way http : stackoverflow.com questions 4311009 uimenucontroller-in-uiwebview-with-custom-menu-items-without-more-menu 4413464 4413464 to prevent the More.. . label from appearing in UIMenuController when you added more than one custom menu item . You just had to remove all of the system menu items . There was even a workaround here http : stackoverflow.com questions 3255070 problems-adding-more-than-one-uimenuitem-to-uimenucontroller for still having copy work . You just had to implement a custom copy command using a different selector and then override canPerformAction : withSender : to not show the system copy : .. . .. . Unfortunately this method no longer works at least in a UIWebView subclass . canPerformAction : withSender : is called for every system menu item except copy : so the result is that the system copy menu item is always displayed . This means that if you have more than one custom menu item they are always hidden behind More.. . .. . .. . So is there a way to really remove the system s copy-item or some alternate way to prevent menu items from hiding behind More.. . Update .. . .. . This is the output I get when I override canPerformAction : withSender : notice that the method is never called for the copy : action : Comment : Apparently there is no way of removing the copy from UIMenuController within Objective-C but it s possible using CSS : -webkit-user-select : none iphonedevsdk.com forum iphone-sdk-development http : www.iphonedevsdk.com forum iphone-sdk-development 21715-how-disable-cut-copy-paste-feature.html Comment : Maybe I wasn t clear enough in the opening paragraph but I m not trying to prevent user selection . I m trying to put more than one custom menu item in UIMenuController without their being stuck under the More.. . menu . You used to be able to do this by preventing the Copy command from showing up stackoverflow.com questions 4311009 http : stackoverflow.com questions 4311009 uimenucontroller-in-uiwebview-with-custom-menu-items-without-more-menu 4413464 4413464 but that no longer works . Comment : what do you mean no longer works is it broke in iOS5 or something Comment : By no longer works I mean that the solution posted here : stackoverflow.com questions 3255070 http : stackoverflow.com questions 3255070 problems-adding-more-than-one-uimenuitem-to-uimenucontroller doesn t work . It apparently used to . Others stackoverflow.com questions 4311009 http : stackoverflow.com questions 4311009 uimenucontroller-in-uiwebview-with-custom-menu-items-without-more-menu 4413464 4413464 have also found that this solution doesn t work . As I mentioned in my update the overridden method is never called for copy : . Comment : @Ifalin Did you finally find a solution for newer versions .. . Answer : Here is a solution for iOS5.x that works for me . It s by Josh Garnham suggesting creating a UIWebBrowserView Category to catch the copy : paste : define : selectors . http : ios-blog.co.uk iphone-development-tutorials rich-text-editing-highlighting-and-uimenucontroller-part-3 .. . .. . .. . .. . Note just FTR : There s a slight typo on that excellent web page . Here s precisely how you do it . Apple will 100 reject this . Make a category .. . .. . enter image description here http : i.stack.imgur.com Bjdem.png .. . .. . You have to type in UIWebBrowserView since Xcode won t bring up private classes . Full text of the .h and .m files : .. . .. . For the record a single click will still bring up the annoying spellchecker suggestions But otherwise it does remove the double-click-context-menu totally it is 100 rejected by Apple . Comment : unfortunately this seems to be a private method and does not pass the validation Comment : With some articulation it is possible to reach the UIWebBrowserView without actually doing anything that is a no-no for AppStore . Objective C is a very dynamic language . Hint : dynamic subclassing and isa swizzling . Comment : @JoeBlow I already did : stackoverflow.com a 19042279 983912 http : stackoverflow.com a 19042279 983912 Comment : @JoeBlow You shouldn t have",
"Question : I m using the new customization abilities of the UIMenuController to add things other than Copy to the menu for cut paste into a webview . What I do is getting the reference to the shared UIMenuController setting my NSArray of UIMenuItems into the menuItems and everything work fine as long as I add a single item . For instance I see COPY FOOBAR . Instead if I try adding more than a single item what happen is that I see COPY MORE if I press into MORE than finally the other items will show up . Is possible to show directly COPY FOO BAR THREE FOUR instead I saw a few applications that are able to do this notably iBooks . Any help very appreaciated thank you . Cheers sissensio .. . Answer : we have the same problem actually when i tried to develop an application in iPad . But what i did is i disabled the popup menu items in .. . .. . BOOL canPerformAction : SEL action withSender : id sender .. . .. . Using .. . .. . if UIMenuController sharedMenuController UIMenuController sharedMenuController .menuVisible NO return NO .. . .. . Then i used a UIPopoverController . Regards ZaldzBugz Comment : That s very clever . I might have to try that . Comment : So I suppose iBooks uses an undocumented API call to display its popup menu Or probably they implemented a custom component for it",
"Question : Is there a simple way to implement the copy menu when a cell is tapped instead of subclassing the UITableViewCell thanks .. . .. . RL .. . Answer : Yes Call UIMenuController sharedMenuController setMenuVisible : YES animated : ani where ani is a BOOL determining whether the controller should be animated from within - void tableView : UITableView tableView didSelectRowAtIndexPath : NSIndexPath indexPath UITableView s delegate method .. . .. . Edit : The copy command on the UIMenuController will not by default copy the detailTextLabel.text text . However there is a workaround . Add the following code into your class . Comment : it should be done with a long tap correct Comment : If you re putting it inside of tableView : didSelectRowAtIndexPath then the UIMenuController will come up when you select the row in an ordinary fashion I gather that this is what you desire Comment : yes and no : what i want is to get the menu with the COPY option to get the detailTextLabel.text text like the Contacts App Comment : Ah that s a bit more complicated . I ll update my answer to clarify . Comment : Edited the answer :",
"Question : I am developing an iPhone application and worked with UIWebViews . I planned to customize the UIMenuItems thats popped up when i highlight strings in UiWebView Copy Select All Cut etc . . I tried removing those menuItems but i cannot remove the COPY menu item . I need your help guys . Thanks ZaldzBugz Comment : I believe that this could be done in canPerformAction . But i really dont know how to remove the COPY menu item . Comment : hi can u tell me how to remove the others menu item in UIMenuController i want to remove the arrow item Comment : @Risma - You got any luck in trying to remove the arrow item and place all the available menus in the main frame itself .. . Answer : I used the technique in this answer http : stackoverflow.com questions 3537795 uimenucontroller-custom-items 3538344 3538344 to a similar question and it works for ridding of the Copy menu item . That is override UIWebView instead of UITextView in their example . Also wrote a canPerformAction : withSender : in the view controller that returns YES for my custom selectors and NO for the copy : selector then returns the value of the super implementation if the selector is none of those . Remember to set the custom UIWebView subclass name in your xib .",
"Question : null .. . Answer : UIMenuController menu with my custom items stops showing after I open Print Options dialog UIPrintInteractionController with few pages select one of them appears menu with Start After Page Skip page menu items and then close the dialog . Is that a system issue or am I doing something wrong",
"Question : There apparently used to be an easy way http : stackoverflow.com questions 4311009 uimenucontroller-in-uiwebview-with-custom-menu-items-without-more-menu 4413464 4413464 to prevent the More.. . label from appearing in UIMenuController when you added more than one custom menu item . You just had to remove all of the system menu items . There was even a workaround here http : stackoverflow.com questions 3255070 problems-adding-more-than-one-uimenuitem-to-uimenucontroller for still having copy work . You just had to implement a custom copy command using a different selector and then override canPerformAction : withSender : to not show the system copy : .. . .. . Unfortunately this method no longer works at least in a UIWebView subclass . canPerformAction : withSender : is called for every system menu item except copy : so the result is that the system copy menu item is always displayed . This means that if you have more than one custom menu item they are always hidden behind More.. . .. . .. . So is there a way to really remove the system s copy-item or some alternate way to prevent menu items from hiding behind More.. . Update .. . .. . This is the output I get when I override canPerformAction : withSender : notice that the method is never called for the copy : action : Comment : Apparently there is no way of removing the copy from UIMenuController within Objective-C but it s possible using CSS : -webkit-user-select : none iphonedevsdk.com forum iphone-sdk-development http : www.iphonedevsdk.com forum iphone-sdk-development 21715-how-disable-cut-copy-paste-feature.html Comment : Maybe I wasn t clear enough in the opening paragraph but I m not trying to prevent user selection . I m trying to put more than one custom menu item in UIMenuController without their being stuck under the More.. . menu . You used to be able to do this by preventing the Copy command from showing up stackoverflow.com questions 4311009 http : stackoverflow.com questions 4311009 uimenucontroller-in-uiwebview-with-custom-menu-items-without-more-menu 4413464 4413464 but that no longer works . Comment : what do you mean no longer works is it broke in iOS5 or something Comment : By no longer works I mean that the solution posted here : stackoverflow.com questions 3255070 http : stackoverflow.com questions 3255070 problems-adding-more-than-one-uimenuitem-to-uimenucontroller doesn t work . It apparently used to . Others stackoverflow.com questions 4311009 http : stackoverflow.com questions 4311009 uimenucontroller-in-uiwebview-with-custom-menu-items-without-more-menu 4413464 4413464 have also found that this solution doesn t work . As I mentioned in my update the overridden method is never called for copy : . Comment : @Ifalin Did you finally find a solution for newer versions .. . Answer : You could draw your own menu instead of using UIMenuController . That way you can have as many items as you want displayed at the same time without using Other . Comment : That works too .",
"Question : I m using the new customization abilities of the UIMenuController to add things other than Copy to the menu for cut paste into a webview . What I do is getting the reference to the shared UIMenuController setting my NSArray of UIMenuItems into the menuItems and everything work fine as long as I add a single item . For instance I see COPY FOOBAR . Instead if I try adding more than a single item what happen is that I see COPY MORE if I press into MORE than finally the other items will show up . Is possible to show directly COPY FOO BAR THREE FOUR instead I saw a few applications that are able to do this notably iBooks . Any help very appreaciated thank you . Cheers sissensio .. . Answer : fluXa s answer is actually correct but I dont think it was very clear . The issue is that when adding custom UIMenuItem objects to the shared menu controller UIMenuController sharedMenuController only the first custom UIMenuItem will be shown on the initial display of the menu . The remaining custom menu items will be shown if the user taps More.. . . However if the menu doesn t include any built-in system menu items copy : paste : etc the initial menu display will show all custom menu items and no More.. . item . .. . .. . If you need to include the built-in system items simply add custom UIMenuItems having the same title but with a different selector . myCopy : vs . copy : .. . .. . Essentially it boils down to NOT calling the default implementation of canPerformAction : withSender : explicitly handling all custom menu items and returning NO for all other system-supplied menu items : Comment : Thanks for that . Seems like a somewhat important detail to leave out of the documentation",
"Question : There apparently used to be an easy way http : stackoverflow.com questions 4311009 uimenucontroller-in-uiwebview-with-custom-menu-items-without-more-menu 4413464 4413464 to prevent the More.. . label from appearing in UIMenuController when you added more than one custom menu item . You just had to remove all of the system menu items . There was even a workaround here http : stackoverflow.com questions 3255070 problems-adding-more-than-one-uimenuitem-to-uimenucontroller for still having copy work . You just had to implement a custom copy command using a different selector and then override canPerformAction : withSender : to not show the system copy : .. . .. . Unfortunately this method no longer works at least in a UIWebView subclass . canPerformAction : withSender : is called for every system menu item except copy : so the result is that the system copy menu item is always displayed . This means that if you have more than one custom menu item they are always hidden behind More.. . .. . .. . So is there a way to really remove the system s copy-item or some alternate way to prevent menu items from hiding behind More.. . Update .. . .. . This is the output I get when I override canPerformAction : withSender : notice that the method is never called for the copy : action : Comment : Apparently there is no way of removing the copy from UIMenuController within Objective-C but it s possible using CSS : -webkit-user-select : none iphonedevsdk.com forum iphone-sdk-development http : www.iphonedevsdk.com forum iphone-sdk-development 21715-how-disable-cut-copy-paste-feature.html Comment : Maybe I wasn t clear enough in the opening paragraph but I m not trying to prevent user selection . I m trying to put more than one custom menu item in UIMenuController without their being stuck under the More.. . menu . You used to be able to do this by preventing the Copy command from showing up stackoverflow.com questions 4311009 http : stackoverflow.com questions 4311009 uimenucontroller-in-uiwebview-with-custom-menu-items-without-more-menu 4413464 4413464 but that no longer works . Comment : what do you mean no longer works is it broke in iOS5 or something Comment : By no longer works I mean that the solution posted here : stackoverflow.com questions 3255070 http : stackoverflow.com questions 3255070 problems-adding-more-than-one-uimenuitem-to-uimenucontroller doesn t work . It apparently used to . Others stackoverflow.com questions 4311009 http : stackoverflow.com questions 4311009 uimenucontroller-in-uiwebview-with-custom-menu-items-without-more-menu 4413464 4413464 have also found that this solution doesn t work . As I mentioned in my update the overridden method is never called for copy : . Comment : @Ifalin Did you finally find a solution for newer versions .. . Answer : for ios 5.1 canPerformAction : SEL action withSender : id sender is not working anymore . If you are ok with just disable paste action here is a method : .. . .. . add UITextFieldDelegate to you view controller and implement method like this .. . .. . it means that if user enter more than one character for each action it means that probably user is pasting something . do not accept it in textfield . it is a good practice for force user enter textfields like e-mail and Comment : still can paste 1 character . Comment : Best solution for this hands down Comment : canPerformAction does work in IOS 5.1 . The problem is your dealing with the canPerformAction in the delegate class . The canPerformAction is called on the UITextField itself not on the delegate . In order canPerformAction to work you should override canPerformAction in a UITextField subclass .",
"Question : There apparently used to be an easy way http : stackoverflow.com questions 4311009 uimenucontroller-in-uiwebview-with-custom-menu-items-without-more-menu 4413464 4413464 to prevent the More.. . label from appearing in UIMenuController when you added more than one custom menu item . You just had to remove all of the system menu items . There was even a workaround here http : stackoverflow.com questions 3255070 problems-adding-more-than-one-uimenuitem-to-uimenucontroller for still having copy work . You just had to implement a custom copy command using a different selector and then override canPerformAction : withSender : to not show the system copy : .. . .. . Unfortunately this method no longer works at least in a UIWebView subclass . canPerformAction : withSender : is called for every system menu item except copy : so the result is that the system copy menu item is always displayed . This means that if you have more than one custom menu item they are always hidden behind More.. . .. . .. . So is there a way to really remove the system s copy-item or some alternate way to prevent menu items from hiding behind More.. . Update .. . .. . This is the output I get when I override canPerformAction : withSender : notice that the method is never called for the copy : action : Comment : Apparently there is no way of removing the copy from UIMenuController within Objective-C but it s possible using CSS : -webkit-user-select : none iphonedevsdk.com forum iphone-sdk-development http : www.iphonedevsdk.com forum iphone-sdk-development 21715-how-disable-cut-copy-paste-feature.html Comment : Maybe I wasn t clear enough in the opening paragraph but I m not trying to prevent user selection . I m trying to put more than one custom menu item in UIMenuController without their being stuck under the More.. . menu . You used to be able to do this by preventing the Copy command from showing up stackoverflow.com questions 4311009 http : stackoverflow.com questions 4311009 uimenucontroller-in-uiwebview-with-custom-menu-items-without-more-menu 4413464 4413464 but that no longer works . Comment : what do you mean no longer works is it broke in iOS5 or something Comment : By no longer works I mean that the solution posted here : stackoverflow.com questions 3255070 http : stackoverflow.com questions 3255070 problems-adding-more-than-one-uimenuitem-to-uimenucontroller doesn t work . It apparently used to . Others stackoverflow.com questions 4311009 http : stackoverflow.com questions 4311009 uimenucontroller-in-uiwebview-with-custom-menu-items-without-more-menu 4413464 4413464 have also found that this solution doesn t work . As I mentioned in my update the overridden method is never called for copy : . Comment : @Ifalin Did you finally find a solution for newer versions .. . Answer : I m sorry for my English . But there is an idea . I think the method canPerformAction were called for many times but you just deal with it once . In this case I think there may be another UI Control has called it . For example the UITextView control in your UIWebView . I guess you may generate the UI by storyboard . Not every control in storyboard has its own class . You can define a class for the response control and rewrite its canPerformAction method . Comment : You are correct canPerformAction is called by UIWebBrowserView a subview of UIWebView which returns YES for copy . Hence it is not calling the canPerformAction that was written by us .",
"Question : Can Anyone help me i m having problem with UIMenucontroller.In here i have to use two menucontroller in single viewcontroller . For First menu only paste for other menu copy select select all When i m using shared menucontroller it affects the other menu . My code for first menu is as follows : .. . .. . and my second menu is : .. . .. . Error : In here in second menu contains unwanted things as Select SelectAll Copy with Paste . How can i resolve this thanks in advance .. . Answer : You should override canPerformAction in a UITextField subclass to disable the item you don t want then assign each uitextfield you created to the subclass . For example disable paste menu item in uimenucontroller .. . .. . Usage : .. . .. . Now paste menu item will be disabled for message Textfield",
"Question : Hi I want to create a customize bubble menu like cut copy-paste menu in IPhone SDK3.x . I know it is UIMenuController but it is only provide standard cut copy past menu . Anyone know how to make a bubble menu similar like this . Any example and code for reference .. . Answer : 1 you need to add custom menu items to the shared UIMenuController : .. . .. . 2 you need to implement your handler methods somewhere in the responder chain for the view that will be first-responder when you show the menu : .. . .. . 3 you optionally need to implement canPerformAction : in the responder chain for the view that will be first-responder when you show the menu : .. . .. . 4 if the view you want to present the menu for doesn t already support showing a menu i.e . a UIWebView will show a menu when the user does a long-tap but a UILabel has no built-in support for showing a menu then you need to present the menu yourself . This is often done by attaching a UILongPressGestureRecognizer to the view then showing the menu in the callback : .. . .. . Note there has to be a view that claims firstResponder for the menu to show . 5 make sure the view you re showing the menu for returns YES TRUE to canBecomeFirstResponder . For example if you try to make a UILabel a first responder it will return NO so you would have to subclass it . 6 that s about it . You may want to resignFirstResponder when the action callback is called - but to do this you ll need to implement logic to discover the firstResponder . Comment : the sender in canPerformAction is not representing the object where the menu appears in on in my case a textview - any idea of why Comment : Well answered good job Comment : - FirstViewController handleGesture : : : unrecognized-selector sent to instance 0x1e865800 for focused element on the webpage . How to fix this issue When no element inside page is focused to input text this method really works . Comment : This should be accepted ."
]
} | [
"yes-answer-long",
"yes-answer-short"
] | copy-paste | UNK_RELATION |
innodb@mysql@72 | innodb -- innodb is an acid-compliant transactional storage engine for @placeholder that uses multiversion concurrency control mvcc . | {
"confidence": [
54.730079650878906,
53.07687759399414,
52.73273849487305,
50.006874084472656,
50.006874084472656,
49.73872756958008,
49.72409439086914,
48.14994812011719,
48.14994812011719,
45.868778228759766,
45.13227844238281,
44.66206741333008,
44.47811508178711,
44.41242599487305,
44.27969741821289,
43.949832916259766,
43.92675018310547,
43.84860610961914,
42.882301330566406,
42.782318115234375,
42.586509704589844,
42.03767776489258,
41.61766052246094,
41.364776611328125,
41.12569808959961,
41.12569808959961,
40.28107452392578,
39.70288848876953,
39.667579650878906,
39.667579650878906,
39.62183380126953,
39.492374420166016,
39.28815460205078,
38.825279235839844,
38.80161666870117,
38.655277252197266,
38.262367248535156,
38.08129119873047,
37.18206024169922,
37.03461837768555,
36.920677185058594,
36.920677185058594,
36.920677185058594,
36.920677185058594,
36.920677185058594,
36.920677185058594,
36.920677185058594,
36.3867073059082,
36.107757568359375,
36.076053619384766,
36.076053619384766,
36.076053619384766,
36.076053619384766,
36.02784729003906,
35.898345947265625,
35.59919738769531,
35.54817581176758,
35.43003845214844,
35.3979377746582,
35.35450744628906,
35.18844985961914,
35.063751220703125,
35.063751220703125,
35.063751220703125,
35.063751220703125,
35.063751220703125,
35.0537223815918,
34.99378967285156,
34.92893981933594,
34.92893981933594,
34.92893981933594,
34.922359466552734,
34.922359466552734,
34.922359466552734,
34.922359466552734,
34.922359466552734,
34.922359466552734,
34.922359466552734,
34.874542236328125,
34.81197738647461,
34.62687301635742,
34.61436080932617,
34.58541488647461,
34.08134460449219,
34.08134460449219,
34.08134460449219,
34.077735900878906,
34.077735900878906,
33.87627029418945,
33.83892059326172,
33.797325134277344,
33.65577697753906,
33.65577697753906,
33.65577697753906,
33.65577697753906,
33.65577697753906,
33.65577697753906,
33.65577697753906,
33.65577697753906,
33.65577697753906
],
"content": [
"This is due to InnoDB being an ACID http : en.wikipedia.org wiki ACID compliant storage engine .",
"InnoDB is a transactional engine .",
"InnoDB : .. . .. . The InnoDB storage engine in MySQL .",
"the storage engine is innodb .",
".. . .. . This is using the InnoDB storage engine .",
"Because InnoDB is a transactional storage engine the exact count is subject to interpretation .",
"InnoDB http : dev.mysql.com doc refman 5.7 en innodb-storage-engine.html : InnoDB is a transaction-safe ACID compliant storage engine for MySQL that has commit rollback and crash-recovery capabilities to protect user data .",
"Storage engine is InnoDB .",
"Storage engine is INNODB .",
"Sets the default storage engine to InnoDB .",
"For more information about InnoDB see Chapter 14 The InnoDB Storage Engine .",
"When I clicked the storage engine the InnoDB was disabled .",
"I suggest reading this article : Understanding InnoDB MVCC http : ronaldbradford.com blog understanding-innodb-mvcc-2009-07-15 .",
"InnoDB is a fully ACID compliant database engine and therefore offers support for transactions etc .",
".. . .. . Remember that InnoDB is transactional MyISAM is not .",
"The InnoDB storage engine http : dev.mysql.com doc refman 5.1 en innodb-storage-engine.html .",
"with respect to documentation where is no possibility to turn off InnoDB storage engine since MySQL 5.7.5 and InnoDB is default engine .",
"If the answer of the previous question was YES so what is the job of MVCC in InnoDB engine .",
"InnoDB designers as most of the other transactional engine designers chose to allow gaps .",
"The InnoDB storage engine maintains InnoDB tables within a tablespace that can be created from several files .",
"This feature in InnoDB is known as concurrency .",
"Using the InnoDB transactional engine exclusively gives other benefits too .",
"MySQL InnoDB Storage Engine Unable to check .",
"All updates have to pass-through transactional engine in InnoDB which often decreases - performance compared to non-transactional storage-engines .",
"This will enable InnoDB engine .",
"table name ENGINE InnoDB",
"Are you using innodb as engine",
"InnoDB uses a feature called Multi-version concurrency control https : en.wikipedia.org wiki Multiversion concurrency control .",
"Conclusion .. . .. . In conclusion InnoDB should be your default storage engine of choice .",
"if you are using InnoDB storage engine Where are your .ibd files",
"ENGINE InnoDB ENGINE MyISAM etc .",
"I updated the below attribute as : default-storage-engine INNODB Then ran mysql show engines and could see the InnoDB was set as default engine for my DB .",
"ALTER TABLE tbl name ENGINE INNODB .. . .. . Is the only way to defragment a innodb table .",
"I m not asking for transactional security -- that s what InnoDB is for .",
"Postgres http : www.postgresql.org is ACID-compliant like innoDB and when well-tuned nearly as speedy as MyISAM .",
"InnoDB is the default for v5.7 and most general-purpose storage engine .",
"In fact I do not need InnoDB Engine and i don t have any table whose engine is InnoDB .",
"I m using InnoDB engine .",
"InnoDB uses row locking MyISAM uses table locking therefore.. . .. . InnoDB is slower when it comes to SELECT .. . InnoDB enforces referential-integrity which is as very good thing .. . InnoDB allows transactions",
"This is related to this question Why is myisam storage engine is faster than Innodb storage engine http : stackoverflow.com questions 15608955 why-is-myisam-storage-engine-is-faster-than-innodb-storage-engine 38384774 38384774 .. . .. . So in summary the question is : Why is MyISAM that fast with insert statements",
"Convert all tables to use InnoDB engine .",
"I created 5 tables with innodb engine .",
"I m using InnoDB as the engine for all my databases .",
"I know how to disable InnoDB engine .",
"I m using PHP and MYSQL innodb engine .",
"The InnoDB engine does not store deleted data .",
"To do this just add ENGINE InnoDB before the last .",
"InnoDB Summary .. . .. . Name -InnoDB .. . .. . Introduced -v3.23 source only v4.0 source and binary .. . .. . Default install -No .. . .. . Data limitations -None .. . .. . Index limitations -None .. . .. . Transaction support -Yes ACID compliant .. . .. . Locking level -Row",
"By the way to change the default from MyISAM to InnoDB add default-storage-engine innodb to your my.cnf file under the mysqld section .",
"Consider the following workflow running in MySQL with the InnoDB engine .",
"InnoDB is now the default engine in new MySQL versions .",
"I am using MySQL with innodb engine .",
"Therefore go for InnoDB + a search-engine of your choice .",
"InnoDB variables : .. . .. . InnoDB status :",
"Please see the MySQL Documentation for a detailed explanation of InnoDB http : dev.mysql.com doc refman 5.5 en innodb-storage-engine.html .",
"InnoDB implements MVCC http : en.wikipedia.org wiki Multiversion 5Fconcurrency 5Fcontrol using row-level locking http : dev.mysql.com doc refman 5.1 en internal-locking.html .",
"Reasons to use InnoDB : .. . .. . ACID transactions .. . Row level locking .. . Consistent reads allows you to reach excellent read-write concurrency .",
"--innodb OFF or --skip-innodb not work since 5.7.5 .",
"Switching on the Innodb monitors can help narrow down the causes of poor performance : .. . .. . SHOW ENGINE INNODB STATUS and the InnoDB Monitors http : dev.mysql.com doc refman 5.0 en innodb-monitors.html",
"Yes InnoDB .",
"mysqldump - Tried creating a dump and then change the ENGINE MyISAM to ENGINE InnoDB .",
"It turned out that the innodb engine were configured fine .",
"InnoDB is THE MySQL engine of choice going forward .",
"The result-of SHOW ENGINE INNODB STATUS is given below .",
"They type of the column is geometry and the engine of the table is InnoDB .",
"Already using SHOW ENGINE INNODB STATUS .",
"MyISAM is less contraint than InnoDB so read speed faster than InnoDB .. . .. . Read about Storage Engines .",
"The storage for these InnoDB tables is reclaimed when the tables are dropped or truncated .",
"I have sql table for users that contains the following fields : .. . .. . The engine is innoDB .",
"I ll test it day and see what SHOW ENGINE INNODB STATUS reports .",
"I am fairly inexperienced with the InnoDB engine and never experienced this issue with MyISAM .",
"Nice if you could point to any that is about MySQL version 5.5 and above which has InnoDb as default storage engine .",
"Do you also need to convert individual tables to use InnoDB if they were created when a different storage engine was default",
"What alternatives can I use for foreign key constraint if my web host doesn t provide a INNODB storage engine",
"During installation Magento produces the following error : .. . .. . Database server does not support the InnoDB storage engine .",
"I have one MySQL table using the InnoDB storage engine it contains about 2M data rows .",
"Is it possible to clean a mysql innodb storage engine so it is not storing data from deleted tables",
"In a web application using the InnoDB storage engine I was unable to adequately utilise database locking in the following scenario .",
"InnoDB on the other hand uses a transactional log a double-write buffer and automatic checksumming and validation to prevent corruption .",
"DDL in InnoDB is not transactional so it s possible that information in a .frm file and the InnoDB dictionary is different .",
"See mysqlperformanceblog.com 2010 02 09 blob-storage-in-innodb http : www.mysqlperformanceblog.com 2010 02 09 blob-storage-in-innodb for more details .",
".. . If you are using InnoDB tables and run out of room in the InnoDB tablespace .",
"Innodb-force-recovery does NOT recover InnoDB tablespace .",
"InnoDB ignores it .",
"INNODB : .. . .. . 1 .",
"this will not work with InnoDB",
"BTW : There s no need to run REPAIR on InnoDB tables since all the maintenance is done by the storage engine itself .",
"That suggests to me you would need a storage engine which supports row-level locking i.e . InnoDB .",
"SELECT table name FROM INFORMATION SCHEMA.TABLES WHERE engine InnoDB",
"The InnoDB parameter innodb buffer pool size is used to specify the size of the memory buffer InnoDB uses to cache data and indexes of its tables .",
"http : stackoverflow.com questions 3927690 howto-clean-a-mysql-innodb-storage-engine 4056261 4056261 .. . .. . Going forward you could alwsy shrink individual InnoDB tables .",
"We need to create a few InnoDB tables but the engine won t start .",
"Why MyISAM engine does not support foreign-key-relationship and InnoDB does",
"Why MyISAM engine does support full-text-search and InnoDB does not",
"If I will-change the engine from MyISAM to InnoDB the table will be locked",
"I checked their engine and it was innodb before I insert data into them .",
"I used the alter table engine innodb but it doesn t work .",
"Is there some way to disable InnoDB engine and skip the locking of ibdata1",
"Would the engine InnoDB in this case perform better or worse looking up the index",
"As it s InnoDB will the engine use the empty allocated space for further inserts and indexing"
]
} | {
"confidence": [
91.24457550048828,
60.97262191772461,
60.129859924316406,
58.078636169433594,
58.067691802978516,
55.4088020324707,
55.020057678222656,
54.95831298828125,
54.53935241699219,
53.201236724853516,
50.97679901123047,
50.77397537231445,
49.941993713378906,
49.50834274291992,
49.03480529785156,
48.99913787841797,
48.99462890625,
48.87761688232422,
48.70276641845703,
48.5357666015625
],
"content": [
"Question : Below is the ammount of rows for 2 tables in my mysql DB .. . 1 is myisam the other innodb .. . .. . can someone tell me why the innodb one has this in front of the number These numbers came from phpmyadmin .. . Answer : phpMyAdmin uses SHOW TABLE STATUS to get information for your tables . From the documentation http : dev.mysql.com doc refman 5.1 en show-table-status.html : .. . .. . Rows .. . .. . The number of rows . Some storage-engines such as MyISAM store the exact count . For other storage-engines such as InnoDB this value is an approximation and may vary from the actual value by as much as 40 to 50 . In such cases use SELECT COUNT to obtain an accurate count . This is due to InnoDB being an ACID http : en.wikipedia.org wiki ACID compliant storage engine . InnoDB implements MVCC http : en.wikipedia.org wiki Multiversion 5Fconcurrency 5Fcontrol using row-level locking http : dev.mysql.com doc refman 5.1 en internal-locking.html . In short there can be multiple copies of a given row at a given time . I suggest reading this article : Understanding InnoDB MVCC http : ronaldbradford.com blog understanding-innodb-mvcc-2009-07-15 .",
"Question : I have a database with about 30 tables and 5 tables of them is write-intensive . I m considering .. . .. . 1 . Convert 5 write-intensive tables to use InnoDB engine and keep the rest on MyISAM engine .. . .. . 2 . Convert all tables to use InnoDB engine . I wonder which approach is better To be more specific .. . .. . The reason I want to keep some table on MyISAM engine is some of them has around 1 000 000 rows . I m not sure how slower it will be for queries like SELECT COUNT on these tables after converted to InnoDB . I haven t done a test . I prefer getting some advices from any of you before start the switch . Comment : Why not have the best of the two worlds : MySQL PBXT .. . Answer : These days I always default to using InnoDB especially on the write-intensive tables you mention where MyISAM suffers from full table locking . Here s a to-the-point comparison . Reasons to use MyISAM : .. . .. . Tables are really fast for select-heavy loads .. . Table level locks limit their scalability for write intensive multi-user environments . Smallest disk space consumption .. . Fulltext index .. . Merged and compressed tables . Reasons to use InnoDB : .. . .. . ACID transactions .. . Row level locking .. . Consistent reads allows you to reach excellent read-write concurrency . Primary key clustering gives excellent performance in some cases . Foreign key support . Both index and data pages can be cached . Automatic crash recovery in case MySQL shutdown was unclean InnoDB tables will still - recover to the consistent state- No check repair like MyISAM may require . All updates have to pass-through transactional engine in InnoDB which often decreases - performance compared to non-transactional storage-engines . The above was taken from this site which no longer seems to be working . Comment : Your follow up concern regarding COUNT is well-founded . InnoDB does not keep an internal count of rows in a table so performing a SELECT COUNT does do a full table scan . Whereas such a query would require no time with MyISAM an equivalent InnoDB query could take many seconds for 1mil rows . The typical solution is to maintain another counter table where you would manually increment and decrement depending on whether you inserted or removed a countable row . You can find more here : dev.mysql.com doc refman 5.0 en innodb-restrictions.html http : dev.mysql.com doc refman 5.0 en innodb-restrictions.html under SHOW TABLE STATUS .",
"Question : I have been writing the results from an algorithm that calculates distances between customers in a InnoDB table . For example if my customers were A B C and D the table in the database looks like this among other columns : .. . .. . And so on.. . It is a lot of rows I think I will hit 50 million . The other columns are product type and value . Those tell me how much the customer B customer to in the columns buys of that product type . That means that I have each pair multiple times depending on how many product types the customer B buys . I needed to to a query to group each customer with the products his neighbors buys and the value . The query looks like this : .. . .. . The innodb table could not answer me that query . Despite I changed the net read timeout to 28800 the mysql connection was lost during the query . I tough it had something to do with innodb build for transactional processing and not for intensive queries . So I created a new table with MyIsam as engine and insert-select all the records from the innodb table . As expected the select was very fast 70 segs and all other selects like count distinct customer from where almost instantaneous . Just for curiosity I tried to continue the process of inserting the distances in the myisam table . It was a surprise for me when the program started to run at least 100 times faster than when it was working on the innodb table -for INSERTS For each customer the program inserts something like 3000 rows one for each neighbor for each product type . Something like 300 neighbors and 10 product types per customer . With the innodb table inserting a single customer took something between 40 and 60 seconds aprox . 3000 rows . With the myisam table it takes 1 second to insert 3 customers 9000 rows aprox . Some extra information : .. . .. . The mysql database is in my PC localhost . The program written in java and is running from my pc . I m using prepared statements and I only change the data between each row and the next . This is related to this question Why is myisam storage engine is faster than Innodb storage engine http : stackoverflow.com questions 15608955 why-is-myisam-storage-engine-is-faster-than-innodb-storage-engine 38384774 38384774 .. . .. . So in summary the question is : Why is MyISAM that fast with insert statements What do you think EDIT 1 : I m adding the create statements for both tables the innodb and myisam . EDIT 2 : I deleted some unuseful information and formated a little bit here and there . Comment : Were the tables otherwise identical indexes etc.. . And there are separate server settings such as memory cache sizes for the engines that could affect performance . Comment : You should normalise the product sales data . The table doesn t make much sense as presently designed . Comment : Identical tables same servers . Comment : Questions about performance normally need a CREATE for all relevant tables and an EXPLAIN Comment : You won t convince me that denormalizing the data like this and doubling or tripling the size of a table with 50 million rows is really going to make your reports run significantly faster . It is equally probably that they will run slower . And how are you going to maintain this data .. . Answer : MyISAM is less contraint than InnoDB so read speed faster than InnoDB .. . .. . Read about Storage Engines . .. . MyISAM : .. . .. . The MyISAM storage engine in MySQL . .. . Simpler to design and create thus better for beginners . No worries about the foreign relationships between tables . Faster than InnoDB on the whole as a result-of the simpler structure thus much less costs of server resources . Full-text indexing . Especially good for read-intensive select tables . InnoDB : .. . .. . The InnoDB storage engine in MySQL . .. . Support for transactions giving you support for the ACID property . Row-level locking . Having a more fine grained locking-mechanism gives you higher concurrency compared to for instance MyISAM . Foreign key constraints . Allowing you to let the database ensure the integrity of the state of the database and the relationships between tables . InnoDB is more resistant to table corruption than MyISAM . Support for large buffer pool for both data and indexes . MyISAM key buffer is only for indexes . MyISAM is stagnant all future enhancements will be in InnoDB MyISAM Limitations : .. . .. . No foreign-keys and cascading-deletes updates No transactional integrity ACID compliance No rollback abilities Row limit of 4 284 867 296 rows 232 Maximum of 64 indexes per row InnoDB Limitations : .. . .. . No full text indexing Below-5.6 mysql version Cannot be compressed for fast read-only For brief understanding read below links : .. . .. . MySQL Engines : InnoDB vs . MyISAM A Comparison of Pros and Cons MySQL Engines : MyISAM vs . InnoDB What are the main differences between InnoDB and MyISAM MyISAM versus InnoDB What s the difference between MyISAM and InnoDB MySql : MyISAM vs . Inno DB When to use MyISAM and InnoDB http : stackoverflow.com questions 15678406 when-to-use-myisam-and-innodb Comment : Thank you for the information and the comparison . What you are suggesting is that MyISAM is faster on this case because it doesn t have all those controls . Those controls are intended to manage multiple connections so if I had multiple connections to the database It wouldn t be faster Comment : Multiple connections hitting the same table will be slower in MyISAM because of the table level locking as opposed to row level locking .",
"Question : I am working on a project for which we are required to use transaction journaling in our DBMS MySQL . We have already switched to using InnoDB in order to use transactions for another requirement . I am trying to understand what transaction journaling is . I have been searching for over a day now including reading through MySQL documentation . Maybe I am just not searching for the right keywords I am not sure . Or maybe transaction journaling is inappropriate terminology . From what I understand database transaction journaling is similar to a journaling file system in that changes are made to a journal before they are committed to the file system . From what I ve read it sounds like the InnoDB engine stores transactions in some kind of journal before they are committed to disk . Does this sound accurate If so where is the transaction journal Is it ib logfile0 and ib logfile1 .. . Answer : You are definitely on the right track here . Whenever InnoDB does a transaction that has to be committed it is done as a two-phase commit . Transaction is written in these logs first . Then they are committed from there . This helps a great deal in the event of the MySQL crash or server crash . When you restart mysql all uncommitted entries in ib logfile0 and ib logfile1 are replayed as part of the crash recovery of InnoDB to bring InnoDB to a harmonious state This is Consistent and Durable parts of ACID Compliance http : en.wikipedia.org wiki ACID .. . .. . If you delete ib logfile0 and ib logfile1 and start mysql any uncommitted transaction that those files contained are lost . During the crash recovery cycle if the log files are missing they are regenerated based on the innodb log file size http : dev.mysql.com doc refman 5.5 en innodb-parameters.html sysvar innodb log file size setting . Please see the MySQL Documentation for a detailed explanation of InnoDB http : dev.mysql.com doc refman 5.5 en innodb-storage-engine.html . @karatedog the MVCC part of InnoDB happens within the system tablespace better known as ibdata1 . Whatever data appear to be before the start of a transaction is recorded to allow others who access the needed rows to have a view of the data before any updates were imposed . This is allows for what is called a REPEATABLE-READ . This falls under the I of ACID compliance I meaning Isolation . I wrote posts about this in the DBA StackExchange in regard to various scenarios where transaction isolation is good bad or ugly . read before write transaction http : dba.stackexchange.com a 14058 877 .. . Will these two queries result in a deadlock if executed in sequence http : dba.stackexchange.com a 3224 877 .. . Is raid 5 suitable for mysql installation http : dba.stackexchange.com a 13036 877 .. . .. . As for MyISAM crash recovery is not automatic . It crashes rather easily http : dba.stackexchange.com a 15079 877 . That s why the SQL command REPAIR TABLE exists . That s is also why the MySQL utility myisamchk has the -r option to perform REPAIR TABLE for MyISAM tables that are not online . MariaDB and Aria http : kb.askmonty.org en aria-faq have been attempts to make a crash-safe storage engine as a replacement for MyISAM . Comment : I understand that these log files are for crash recovery but isn t the MVCC mechanism responsible for a transaction to happen properly when no crash occurs MyISAM has some degree of crash recovery while it does not have transactions at all . Comment : Thank you for your detailed and timely response . I am a little confused about replaying the entries in the logs . If there was a failure in the middle of a transaction before the commit was issued I would think you wouldn t want to replay the entries since transactions are all-or-nothing you wouldn t want a portion of the transaction to be committed . Or are you saying they would be replayed only if there was a commit but the failure occurred before the transaction was committed to the database but after it was saved in the log files",
"Question : Someone just told me that InnoDB is much better than MyISAM . So when I create a table should I always try to use InnoDB Engine instead of MyISAM Or do both have it s big benefits Comment : mikebernat.com blog MySQL - InnoDB vs MyISAM http : www.mikebernat.com blog MySQL - InnoDB vs MyISAM Comment : No both have it s benefits . .. . Answer : Simple answer : No you shouldn t . A few points about each engine : .. . .. . InnoDB .. . .. . Full support for Foreign Key restraints and transactions . ACID compliant .. . Row-level locking . Arguably faster INSERT statements . And possibly UPDATE as well .. . .. . MyISAM .. . .. . Faster SELECT statements . Support for Full-Text searches .. . BLOB and TEXT columns can be indexed .. . 4x max storage limit compared to InnoDB 256TB vs 64TB .. . .. . See more in the Manual : .. . .. . MyISAM http : dev.mysql.com doc refman 5.1 en myisam-storage-engine.html .. . InnoDB http : dev.mysql.com doc refman 5.1 en innodb.html",
"Question : Someone just told me that InnoDB is much better than MyISAM . So when I create a table should I always try to use InnoDB Engine instead of MyISAM Or do both have it s big benefits Comment : mikebernat.com blog MySQL - InnoDB vs MyISAM http : www.mikebernat.com blog MySQL - InnoDB vs MyISAM Comment : No both have it s benefits . .. . Answer : InnoDB is a fully ACID compliant database engine and therefore offers support for transactions etc . As such it can therefore be slower than the MyISAM database which tends to be optimised in a different direction . Therefore if you need transactions InnoDB or another RDBMS such as PostgreSQL is the obvious choice . There s a reasonable comparison over on Wikipedia http : en.wikipedia.org wiki InnoDB",
"Question : I looked around and found some of the MySQL engines are innodb and MyISAM . Perhaps there are few more . My question is what are these database engines What are the differences between different MySQL engines And more importantly How do I decide which one to use Comment : Related : serverfault.com questions 219 http : serverfault.com questions 219 how-do-you-choose-a-mysql-database-engine .. . Answer : Storage engines are MySQL components that handle the SQL operations for different table types . InnoDB is the default for v5.7 and most general-purpose storage engine . MySQL storage-engines include both those that handle transaction-safe tables and those that handle nontransaction-safe tables . MySQL Supported Storage Engines .. . .. . 1 . InnoDB http : dev.mysql.com doc refman 5.7 en innodb-storage-engine.html : InnoDB is a transaction-safe ACID compliant storage engine for MySQL that has commit rollback and crash-recovery capabilities to protect user data . InnoDB row-level locking without escalation to coarser granularity locks and Oracle-style consistent nonlocking reads increase multi-user concurrency and performance . InnoDB stores user data in clustered indexes to reduce I O for common queries based on primary keys . To maintain data integrity InnoDB also supports FOREIGN KEY referential-integrity constraints . For more information about InnoDB see Chapter 14 The InnoDB Storage Engine . 2 . MyISAM http : dev.mysql.com doc refman 5.7 en myisam-storage-engine.html : These tables have a small footprint . Table-level locking limits the performance in read-write workloads so it is often used in read-only or read-mostly workloads in Web and data warehousing configurations . 3 . Memory http : dev.mysql.com doc refman 5.7 en memory-storage-engine.html : Stores all data in RAM for fast access in environments that require quick lookups of non-critical data . This engine was formerly known as the HEAP engine . Its use cases are decreasing InnoDB with its buffer pool memory area provides a general-purpose and durable way to keep most or all data in memory and NDBCLUSTER provides fast key-value lookups for huge distributed data sets . 4 . CSV http : dev.mysql.com doc refman 5.7 en csv-storage-engine.html : Its tables are really text-files with comma-separated values . CSV tables let you import or dump data in CSV format to exchange data with scripts and applications that read and write that same format . Because CSV tables are not indexed you typically keep the data in InnoDB tables during normal operation and only use CSV tables during the import or export stage . 5 . Archive http : dev.mysql.com doc refman 5.7 en archive-storage-engine.html : These compact unindexed tables are intended for storing and retrieving large amounts of seldom-referenced historical archived or security audit information . 6 . Blackhole http : dev.mysql.com doc refman 5.7 en blackhole-storage-engine.html : The Blackhole storage engine accepts but does not store data similar to the Unix dev-null device . Queries always return an empty set . These tables can be used in replication configurations where DML statements are sent to slave servers but the master server does not keep its own copy of the data . 7 . NDB http : dev.mysql.com doc refman 5.7 en mysql-cluster.html also known as NDBCLUSTER : This clustered database engine is particularly suited for applications that require the highest possible degree of uptime and availability . 8 . Merge http : dev.mysql.com doc refman 5.7 en merge-storage-engine.html : Enables a MySQL DBA or developer to logically group a series of identical MyISAM tables and reference them as one object . Good for VLDB environments such as data warehousing . 9 . Federated http : dev.mysql.com doc refman 5.7 en federated-storage-engine.html : Offers the ability to link separate MySQL servers to create one logical database from many physical servers . Very good for distributed or data mart environments . 10 . Example http : dev.mysql.com doc refman 5.7 en example-storage-engine.html : This engine serves as an example in the MySQL source code that illustrates how to begin writing new storage-engines . It is primarily of interest to developers . The storage engine is a stub that does nothing . You can create tables with this engine but no data can be stored in them or retrieved from them . You are not restricted to using the same storage engine for an entire server or schema . You can specify the storage engine for any table . For example an application might use mostly InnoDB tables with one CSV table for exporting data to a spreadsheet and a few MEMORY tables for temporary workspaces . Reference : 1 http : www.mysqltutorial.org understand-mysql-table-types-innodb-myisam.aspx 2 http : dev.mysql.com doc refman 5.7 en storage-engines.html .. . .. . enter image description here http : i.stack.imgur.com TA9Fx.png Comment : For a more recent version of this answer please refer to the page where it is copied from : dev.mysql.com doc refman 5.7 en storage-engines.html http : dev.mysql.com doc refman 5.7 en storage-engines.html",
"Question : There s 10 million articles out there comparing MyISAM to InnoDB two so-called database engines which Wikipedia https : en.wikipedia.org wiki Database engine vaguely defines as : .. . .. . ...the underlying software component that a database management system DBMS uses to create read update and delete CRUD data from a database . .. . .. . But what does that really mean Surprisingly I couldn t find a single article talking about the relationship of a DB to its engine How does an engine manifest itself in the concrete real world Is it that a database is really just a binary file and that its engine is the .exe that handles all I O to and from the file Does the engine handle EXPLAIN AND QEPs I guess what I m asking is : how do you define which responsibilities are MySQL s and which activities are the responsibility of its underlying engine Comment : I think the Storage Engine in case of mysql performs the real operation on the data . Depending on the used engine MyISAM InnoDB you may get better performance for some operations . I heard I do not know that MyIsam is not ACID compliant but very fast for simple writes e.g . it would be a good consideration for a logging table . I think in general it s better safer to use InnoDB . Other RDBMS do not have this concept you cannot select the storage engine . Comment : A related question on an SO sister site : dba.stackexchange.com questions 4603 http : dba.stackexchange.com questions 4603 what-exactly-is-a-database-engine Comment : From the manual : The storage-engines themselves are the components of the database server that actually perform actions on the underlying data that is maintained at the physical server level .. . Answer : Does this picture help enter image description here http : i.stack.imgur.com Y7Tdn.png .. . .. . Taken from : http : forge.mysql.com wiki MySQL Internals Custom Engine Overview Comment : For me it does thanks . Together with this short explanation http : dba.stackexchange.com a 4608 linked to by Adam Houldsworth this makes a nice answer .",
"Question : I m working on a projects which involves a lot of database writes I d say 70 inserts and 30 reads . This ratio would also include updates which I consider to be one read and one write . The reads can be dirty e.g . I don t need 100 accurate information at the time of read . The task in question will be doing over 1 million database transactions an hour . I ve read a bunch of stuff on the web about the differences between MyISAM and InnoDB and MyISAM seems like the obvious choice to me for the particular database tables that I ll be using for this task . From what I seem to be reading InnoDB is good if transactions are needed since row level locking is supported . Does anybody have any experience with this type of load or higher Is MyISAM the way to go Comment : The MySQL Performance Blog http : www.mysqlperformanceblog.com s MyISAM+InnoDB is a great resource for this type of thing . Comment : This would depend a bit on whether you re system is OLTP or more datawarehouse oriented where most of the writes are bulk loading . Comment : MyISAM doesn t support row-locking transactions it doesn t even support foreign keys.. . hell since it can t provide ACID http : en.wikipedia.org wiki ACID it can hardly even be considered a proper database This is why InnoDB has been the default engine since MySQL 5.5.. . but for whatever reason MyISAM continues to be the default engine for tables created within PhpMyAdmin so a lot of amateur databases since run on MyISAM . Comment : see this rackspace.com knowledge center article http : www.rackspace.com knowledge center article mysql-engines-myisam-vs-innodb Comment : See all compared MySql DB engines http : stackoverflow.com a 35744709 1045444 .. . Answer : MyISAM .. . .. . The MyISAM engine is the default engine in most MySQL installations and is a derivative of the original ISAM engine type supported in the early versions of the MySQL system . The engine provides the best combination of performance and functionality although it lacks transaction capabilities use the InnoDB or BDB engines and uses table-level locking . FlashMAX and FlashMAX Connect : Leading the Flash Platform Transformation Download Now Unless you need transactions there are few databases and applications that cannot effectively be stored using the MyISAM engine . However very high-performance applications where there are large numbers of data inserts updates compared to the number of reads can cause performance proboelsm for the MyISAM engine . It was originally designed with the idea that more than 90 of the database access to a MyISAM table would be reads rather than writes . With table-level locking a database with a high number of row inserts or updates becomes a performance bottleneck as the table is locked while data is added . Luckily this limitation also works well within the restrictions of a non-transaction database . MyISAM Summary .. . .. . Name -MyISAM .. . .. . Introduced -v3.23 .. . .. . Default install -Yes .. . .. . Data limitations -None .. . .. . Index limitations -64 indexes per table 32 pre 4.1.2 Max 16 columns per index .. . .. . Transaction support -No .. . .. . Locking level -Table .. . .. . .. . .. . InnoDB .. . .. . The InnoDB Engine is provided by Innobase Oy and supports all of the database functionality and more of MyISAM engine and also adds full transaction capabilities with full ACID Atomicity Consistency Isolation and Durability compliance and row level locking of data . The key to the InnoDB system is a database caching and indexing structure where both indexes and data are cached in memory as well as being stored on disk . This enables very fast recovery and works even on very large-data sets . By supporting row level locking you can add data to an InnoDB table without the engine locking the table with each insert and this speeds up both the recovery and storage of information in the database . As with MyISAM there are few data types that cannot effectively be stored in an InnoDB database . In fact there are no significant reasons why you shouldn t always use an InnoDB database . The management overhead for InnoDB is slightly more onerous and getting the optimization right for the sizes of in-memory and on disk caches and database files can be complex at first . However it also means that you get more flexibility over these values and once set the performance benefits can easily outweigh the initial time spent . Alternatively you can let MySQL manage this automatically for you . If you are willing and able to configure the InnoDB settings for your server then I would recommend that you spend the time to optimize your server configuration and then use the InnoDB engine as the default . InnoDB Summary .. . .. . Name -InnoDB .. . .. . Introduced -v3.23 source only v4.0 source and binary .. . .. . Default install -No .. . .. . Data limitations -None .. . .. . Index limitations -None .. . .. . Transaction support -Yes ACID compliant .. . .. . Locking level -Row",
"Question : I m working on a projects which involves a lot of database writes I d say 70 inserts and 30 reads . This ratio would also include updates which I consider to be one read and one write . The reads can be dirty e.g . I don t need 100 accurate information at the time of read . The task in question will be doing over 1 million database transactions an hour . I ve read a bunch of stuff on the web about the differences between MyISAM and InnoDB and MyISAM seems like the obvious choice to me for the particular database tables that I ll be using for this task . From what I seem to be reading InnoDB is good if transactions are needed since row level locking is supported . Does anybody have any experience with this type of load or higher Is MyISAM the way to go Comment : The MySQL Performance Blog http : www.mysqlperformanceblog.com s MyISAM+InnoDB is a great resource for this type of thing . Comment : This would depend a bit on whether you re system is OLTP or more datawarehouse oriented where most of the writes are bulk loading . Comment : MyISAM doesn t support row-locking transactions it doesn t even support foreign keys.. . hell since it can t provide ACID http : en.wikipedia.org wiki ACID it can hardly even be considered a proper database This is why InnoDB has been the default engine since MySQL 5.5.. . but for whatever reason MyISAM continues to be the default engine for tables created within PhpMyAdmin so a lot of amateur databases since run on MyISAM . Comment : see this rackspace.com knowledge center article http : www.rackspace.com knowledge center article mysql-engines-myisam-vs-innodb Comment : See all compared MySql DB engines http : stackoverflow.com a 35744709 1045444 .. . Answer : InnoDB offers : .. . .. . In InnoDB all data in a row except for TEXT and BLOB can occupy 8 000 bytes at most . No full text indexing is available for InnoDB . In InnoDB the COUNT s when WHERE GROUP BY or JOIN is not used execute slower than in MyISAM because the row count is not stored internally . InnoDB stores both data and indexes in one file . InnoDB uses a buffer pool to cache both data and indexes . MyISAM offers : .. . .. . MyISAM has table-level locking but no row-level locking . No transactions . No automatic crash recovery but it does offer repair table functionality . No foreign key constraints . MyISAM tables are generally more compact in size on disk when compared to InnoDB tables . MyISAM tables could be further highly reduced in size by compressing with myisampack if needed but become read-only . MyISAM stores indexes in one file and data in another . MyISAM uses key buffers for caching indexes and leaves the data-caching management to the operating-system . Overall I would recommend InnoDB for most purposes and MyISAM for specialized uses only . InnoDB is now the default engine in new MySQL versions . Comment : fwiw VARCHAR in InnoDB can also go to overflow pages like BLOB and TEXT do . All these data types are stored similarly internally . Comment : Good to know @BillKarwin We make heavy use of VARCHAR in our app and having VARCHAR contribute to this 8kB limit was a bit concerning . Comment : See mysqlperformanceblog.com 2010 02 09 blob-storage-in-innodb http : www.mysqlperformanceblog.com 2010 02 09 blob-storage-in-innodb for more details .",
"Question : I m working on a projects which involves a lot of database writes I d say 70 inserts and 30 reads . This ratio would also include updates which I consider to be one read and one write . The reads can be dirty e.g . I don t need 100 accurate information at the time of read . The task in question will be doing over 1 million database transactions an hour . I ve read a bunch of stuff on the web about the differences between MyISAM and InnoDB and MyISAM seems like the obvious choice to me for the particular database tables that I ll be using for this task . From what I seem to be reading InnoDB is good if transactions are needed since row level locking is supported . Does anybody have any experience with this type of load or higher Is MyISAM the way to go Comment : The MySQL Performance Blog http : www.mysqlperformanceblog.com s MyISAM+InnoDB is a great resource for this type of thing . Comment : This would depend a bit on whether you re system is OLTP or more datawarehouse oriented where most of the writes are bulk loading . Comment : MyISAM doesn t support row-locking transactions it doesn t even support foreign keys.. . hell since it can t provide ACID http : en.wikipedia.org wiki ACID it can hardly even be considered a proper database This is why InnoDB has been the default engine since MySQL 5.5.. . but for whatever reason MyISAM continues to be the default engine for tables created within PhpMyAdmin so a lot of amateur databases since run on MyISAM . Comment : see this rackspace.com knowledge center article http : www.rackspace.com knowledge center article mysql-engines-myisam-vs-innodb Comment : See all compared MySql DB engines http : stackoverflow.com a 35744709 1045444 .. . Answer : myisam is a NOGO for that type of workload high concurrency writes i dont have that much experience with innodb tested it 3 times and found in each case that the performance sucked but it s been a while since the last test if you re not forced to run mysql consider giving postgres a try as it handles concurrent writes MUCH better",
"Question : A co-worker just made me aware of a very strange MySQL behavior . Assuming you have a table with an auto-increment field and another field that is set to unique e.g . a username-field . When trying to insert a row with a username thats already in the table the insert fails as expected . Yet the auto-increment value is increased as can be seen when you insert a valid new entry after several failed attempts . For example when our last entry looks like this.. . .. . .. . ...and we try five new entries with the same username value on our next insert we will have created a new row like so : .. . .. . While this is not a big problem in itself it seems like a very silly attack vector to kill a table by flooding it with failed insert requests as the MySQL Reference Manual states : .. . .. . The behavior of the auto-increment mechanism is not defined if .. . the value becomes bigger than the maximum integer that can be stored in the specified integer type . Is this expected behavior Comment : Your attack vector seems a non issue . If you could flood it with failed insert requests couldn t you equally flood it with non failed requests Comment : can you bring a reproduce code instead of manual explanations Comment : @martin smith : While thats true I think a sudden surge of new users would be more obvious than a silent increase in the auto-increment that might very well fall by the wayside if not checked for . .. . Answer : InnoDB is a transactional engine . This means that in the following scenario : .. . .. . 1 . Session A inserts record 1 .. . 2 . Session B inserts record 2 .. . 3 . Session A rolls back .. . .. . there is either a possibility of a gap or session B would lock until the session A committed or rolled back . InnoDB designers as most of the other transactional engine designers chose to allow gaps . From the documentation http : dev.mysql.com doc refman 5.5 en innodb-auto-increment-handling.html : .. . .. . When accessing the auto-increment counter InnoDB uses a special table-level AUTO-INC lock that it keeps to the end of the current SQL statement not to the end of the transaction . The special lock release strategy was introduced to improve concurrency for inserts into a table containing an AUTO INCREMENT column .. . .. . .. . .. . InnoDB uses the in-memory auto-increment counter as long as the server runs . When the server is stopped and restarted InnoDB reinitializes the counter for each table for the first INSERT to the table as described earlier . If you are afraid of the id column wrapping around make it BIGINT 8-byte long . Comment : Your answer helped me with my own problem a lot . Thank you . is there a way to bypass this behaviour of InnoDB regarding autoincrement Comment : same question as Aufwind . Comment : @Ankit : please post it as another question and put a link here . Comment : As you requested : Other questions http : stackoverflow.com search q php+mysql+bigint",
"Question : with respect to documentation where is no possibility to turn off InnoDB storage engine since MySQL 5.7.5 and InnoDB is default engine . But how I can use MyISAM engine --innodb OFF or --skip-innodb not work since 5.7.5 . Will be grateful for any help . .. . Answer : As mentioned in the documentation http : dev.mysql.com doc refman 5.7 en myisam-storage-engine.html you need to specify storage engine while creating a table e.g . : Comment : Thank you very much . I checked - it s works .",
"Question : I m working on a projects which involves a lot of database writes I d say 70 inserts and 30 reads . This ratio would also include updates which I consider to be one read and one write . The reads can be dirty e.g . I don t need 100 accurate information at the time of read . The task in question will be doing over 1 million database transactions an hour . I ve read a bunch of stuff on the web about the differences between MyISAM and InnoDB and MyISAM seems like the obvious choice to me for the particular database tables that I ll be using for this task . From what I seem to be reading InnoDB is good if transactions are needed since row level locking is supported . Does anybody have any experience with this type of load or higher Is MyISAM the way to go Comment : The MySQL Performance Blog http : www.mysqlperformanceblog.com s MyISAM+InnoDB is a great resource for this type of thing . Comment : This would depend a bit on whether you re system is OLTP or more datawarehouse oriented where most of the writes are bulk loading . Comment : MyISAM doesn t support row-locking transactions it doesn t even support foreign keys.. . hell since it can t provide ACID http : en.wikipedia.org wiki ACID it can hardly even be considered a proper database This is why InnoDB has been the default engine since MySQL 5.5.. . but for whatever reason MyISAM continues to be the default engine for tables created within PhpMyAdmin so a lot of amateur databases since run on MyISAM . Comment : see this rackspace.com knowledge center article http : www.rackspace.com knowledge center article mysql-engines-myisam-vs-innodb Comment : See all compared MySql DB engines http : stackoverflow.com a 35744709 1045444 .. . Answer : I ve figure out that even though Myisam has locking contention it s still faster than InnoDb in most scenarios because of the rapid lock acquisition scheme it uses . I ve tried several times Innodb and always fall back to MyIsam for one reason or the other . Also InnoDB can be very CPU intensive in huge write loads .",
"Question : When I execute a query in MySQL it returns an error saying that InnoDB is not enabled . When I clicked the storage engine the InnoDB was disabled . How do I enable InnoDB .. . Answer : In my.ini located in MySQL folder put a sign before skip-innodb to disable this command . Then restart mysql . This will enable InnoDB engine .",
"Question : I m working on a projects which involves a lot of database writes I d say 70 inserts and 30 reads . This ratio would also include updates which I consider to be one read and one write . The reads can be dirty e.g . I don t need 100 accurate information at the time of read . The task in question will be doing over 1 million database transactions an hour . I ve read a bunch of stuff on the web about the differences between MyISAM and InnoDB and MyISAM seems like the obvious choice to me for the particular database tables that I ll be using for this task . From what I seem to be reading InnoDB is good if transactions are needed since row level locking is supported . Does anybody have any experience with this type of load or higher Is MyISAM the way to go Comment : The MySQL Performance Blog http : www.mysqlperformanceblog.com s MyISAM+InnoDB is a great resource for this type of thing . Comment : This would depend a bit on whether you re system is OLTP or more datawarehouse oriented where most of the writes are bulk loading . Comment : MyISAM doesn t support row-locking transactions it doesn t even support foreign keys.. . hell since it can t provide ACID http : en.wikipedia.org wiki ACID it can hardly even be considered a proper database This is why InnoDB has been the default engine since MySQL 5.5.. . but for whatever reason MyISAM continues to be the default engine for tables created within PhpMyAdmin so a lot of amateur databases since run on MyISAM . Comment : see this rackspace.com knowledge center article http : www.rackspace.com knowledge center article mysql-engines-myisam-vs-innodb Comment : See all compared MySql DB engines http : stackoverflow.com a 35744709 1045444 .. . Answer : A bit late to the game...but here s a quite comprehensive post I wrote a few months back http : blog.danyll.com myisam-vs-innodb detailing the major differences between MYISAM and InnoDB . Grab a cuppa and maybe a biscuit and enjoy . .. . .. . The major difference between MyISAM and InnoDB is in referential-integrity and transactions . There are also other difference such as locking rollbacks and full-text searches . Referential Integrity .. . .. . Referential integrity ensures that relationships between tables remains consistent . More specifically this means when a table e.g . Listings has a foreign key e.g . Product ID pointing to a different table e.g . Products when updates or deletes occur to the pointed-to table these changes are cascaded to the linking table . In our example if a product is renamed the linking table s foreign-keys will also update if a product is deleted from the Products table any listings which point to the deleted entry will also be deleted . Furthermore any new listing must have that foreign key pointing to a valid existing entry . InnoDB is a relational DBMS RDBMS and thus has referential-integrity while MyISAM does not . Transactions Atomicity .. . .. . Data in a table is managed using Data Manipulation Language DML statements such as SELECT INSERT UPDATE and DELETE . A transaction group two or more DML statements together into a single unit of work so either the entire unit is applied or none of it is . MyISAM do not support transactions whereas InnoDB does . If an operation is interrupted while using a MyISAM table the operation is aborted immediately and the rows or even data within each row that are affected remains affected even if the operation did not go to completion . If an operation is interrupted while using an InnoDB table because it using transactions which has atomicity any transaction which did not go to completion will not take effect since no commit is made . Table-locking vs Row-locking .. . .. . When a query runs against a MyISAM table the entire table in which it is querying will be locked . This means subsequent queries will only be executed after the current one is finished . If you are reading a large table and or there are frequent read and write operations this can mean a huge backlog of queries . When a query runs against an InnoDB table only the row s which are involved are locked the rest of the table remains available for CRUD operations . This means queries can run simultaneously on the same table provided they do not use the same row . This feature in InnoDB is known as concurrency . As great as concurrency is there is a major drawback that applies to a select range of tables in that there is an overhead in switching between kernel threads and you should set a limit on the kernel threads to prevent the server coming to a halt . Transactions Rollbacks .. . .. . When you run an operation in MyISAM the changes are set in InnoDB those changes can be rolled back . The most common commands used to control transactions are COMMIT ROLLBACK and SAVEPOINT . 1 . COMMIT - you can write multiple DML operations but the changes will only be saved when a COMMIT is made 2 . ROLLBACK - you can discard any operations that have not yet been committed yet 3 . SAVEPOINT - sets a point in the list of operations to which a ROLLBACK operation can rollback to .. . .. . Reliability .. . .. . MyISAM offers no data integrity - Hardware failures unclean shutdowns and canceled operations can cause the data to become corrupt . This would require full repair or rebuilds of the indexes and tables . InnoDB on the other hand uses a transactional log a double-write buffer and automatic checksumming and validation to prevent corruption . Before InnoDB makes any changes it records the data before the transactions into a system tablespace file called ibdata1 . If there is a crash InnoDB would autorecover through the replay of those logs . FULLTEXT Indexing .. . .. . InnoDB does not support FULLTEXT indexing until MySQL version 5.6.4 . As of the writing of this post many shared-hosting providers MySQL version is still below 5.6.4 which means FULLTEXT indexing is not supported for InnoDB tables . However this is not a valid reason to use MyISAM . It s best to change to a hosting provider that supports up-to-date versions of MySQL . Not that a MyISAM table that uses FULLTEXT indexing cannot be converted to an InnoDB table . Conclusion .. . .. . In conclusion InnoDB should be your default storage engine of choice . Choose MyISAM or other data types when they serve a specific need . Comment : So great explanation Thanks @danyll",
"Question : Below is the ammount of rows for 2 tables in my mysql DB .. . 1 is myisam the other innodb .. . .. . can someone tell me why the innodb one has this in front of the number These numbers came from phpmyadmin .. . Answer : Because InnoDB is a transactional storage engine the exact count is subject to interpretation . For example some rows may exist in storage but the transaction that created those rows has not committed yet . So the rows should not be included in the count . Even more confusing your transaction may be REPEATABLE READ isolation-level which means only rows that were committed before your transaction began are visible . Some rows may be committed but more recently than the start of your repeatable read transaction . So those rows also should not be included in the count . But the same rows are included in a count done by another transaction that was started later or in READ COMMITTED isolation-level . This is why this table statistic for InnoDB can only be approximated . An accurate count requires a scan of all stored rows to see if they are visible to the current transaction .",
"Question : When i run Select from table on an INNODB table does the table get locked implicity Does it mean that during the time MySQL takes to return the result set i cannot issue an update statement on the table From what i have understood the whole table would be locked in shared mode until the result set is returned from the server . Only then could the update command be executed . Comment : What happened when you tried Comment : Haven t tried . Just asking for the sake of knowledge . Comment : Have edited the question . .. . Answer : InnoDB uses a feature called Multi-version concurrency control https : en.wikipedia.org wiki Multiversion concurrency control . Locking in shared mode is not required since MVCC will retain earlier versions of the row for your SELECT statement to be able to read if required . So the answer is no running a SELECT statement will not need to lock any rows while updating . That is unless it is a special SELECT statement like SELECT . . FOR UPDATE . Comment : Thanks for clarifying .",
"Question : When I execute a query in MySQL it returns an error saying that InnoDB is not enabled . When I clicked the storage engine the InnoDB was disabled . How do I enable InnoDB .. . Answer : You need to enable it in my.cnf file then restart your server : .. . .. . http : dev.mysql.com doc refman 5.1 en innodb-parameters.html option mysqld innodb .. . .. . Or you can load an InnoDB plugin during runtime : .. . .. . http : dev.mysql.com doc refman 5.1 en replacing-builtin-innodb.html Comment : Do you also need to convert individual tables to use InnoDB if they were created when a different storage engine was default Comment : Yes you do need to do that .",
"Question : I m working on a projects which involves a lot of database writes I d say 70 inserts and 30 reads . This ratio would also include updates which I consider to be one read and one write . The reads can be dirty e.g . I don t need 100 accurate information at the time of read . The task in question will be doing over 1 million database transactions an hour . I ve read a bunch of stuff on the web about the differences between MyISAM and InnoDB and MyISAM seems like the obvious choice to me for the particular database tables that I ll be using for this task . From what I seem to be reading InnoDB is good if transactions are needed since row level locking is supported . Does anybody have any experience with this type of load or higher Is MyISAM the way to go Comment : The MySQL Performance Blog http : www.mysqlperformanceblog.com s MyISAM+InnoDB is a great resource for this type of thing . Comment : This would depend a bit on whether you re system is OLTP or more datawarehouse oriented where most of the writes are bulk loading . Comment : MyISAM doesn t support row-locking transactions it doesn t even support foreign keys.. . hell since it can t provide ACID http : en.wikipedia.org wiki ACID it can hardly even be considered a proper database This is why InnoDB has been the default engine since MySQL 5.5.. . but for whatever reason MyISAM continues to be the default engine for tables created within PhpMyAdmin so a lot of amateur databases since run on MyISAM . Comment : see this rackspace.com knowledge center article http : www.rackspace.com knowledge center article mysql-engines-myisam-vs-innodb Comment : See all compared MySql DB engines http : stackoverflow.com a 35744709 1045444 .. . Answer : If you use MyISAM you won t be doing any transactions per hour unless you consider each DML statement to be a transaction which in any case won t be durable or atomic in the event of a crash . Therefore I think you have to use InnoDB . 300 transactions per second sounds like quite a lot . If you absolutely need these transactions to be durable across power failure make sure your I O subsystem can handle this many writes per second easily . You will need at least a RAID controller with battery backed cache . If you can take a small durability hit you could use InnoDB with innodb flush log at trx commit set to 0 or 2 see docs for details you can improve performance . There are a number of patches which can increase concurrency from Google and others - these may be of interest if you still can t get enough performance without them ."
]
} | [
"yes-answer-long",
"yes-answer-short"
] | mysql | UNK_RELATION |
ocpjp@java@85 | ocpjp -- ocpjp oracle certified professional java programmer formerly sun certified @placeholder programmer scjp is a certification for programmers experienced using the java programming language . | {
"confidence": [
86.54979705810547,
75.34553527832031,
67.13601684570312,
57.228599548339844,
57.18190002441406,
56.32994079589844,
49.140419006347656,
48.91737365722656,
48.637779235839844,
47.35945129394531,
46.33246612548828,
45.33976745605469,
43.72229766845703,
43.62837219238281,
43.522159576416016,
43.50373077392578,
42.62731170654297,
39.773529052734375,
39.54319381713867,
38.95314025878906,
37.342376708984375,
36.394309997558594,
36.14519500732422,
35.642372131347656,
34.004051208496094,
34.004051208496094,
33.606224060058594,
33.316322326660156,
33.11418533325195,
30.97510528564453,
30.97510528564453,
29.9888858795166,
28.954118728637695,
28.648056030273438,
27.58257293701172,
27.58257293701172,
26.90385627746582,
26.523120880126953,
25.983112335205078,
25.896230697631836,
25.253337860107422,
24.7974910736084,
24.672439575195312,
24.25719451904297,
24.25719451904297,
23.978694915771484,
23.899309158325195,
23.561439514160156,
23.031414031982422,
22.84537696838379,
22.344287872314453,
22.21663475036621,
21.93515396118164,
21.93515396118164,
21.89872932434082,
21.54237174987793,
21.42147445678711,
21.42147445678711,
21.42147445678711,
21.42147445678711,
21.42147445678711,
21.391551971435547,
21.17060089111328,
21.17060089111328,
21.107250213623047,
20.91611099243164,
20.84009552001953,
20.674100875854492,
20.6342830657959,
20.362022399902344,
20.362022399902344,
20.171466827392578,
20.171466827392578,
20.171466827392578,
20.171466827392578,
20.171466827392578,
20.171466827392578,
20.171466827392578,
20.171466827392578,
20.171466827392578,
20.090341567993164,
20.015052795410156,
19.96883773803711,
19.51026153564453,
19.112014770507812,
19.092239379882812,
19.067453384399414,
19.060916900634766,
19.02904510498047,
18.902963638305664,
18.902963638305664,
18.510860443115234,
18.487716674804688,
18.487716674804688,
18.487716674804688,
18.487716674804688,
18.487716674804688,
18.487716674804688,
18.487716674804688,
18.487716674804688
],
"content": [
"As I know to become an Oracle Certified Professional Java SE 7 Programmer have to pass both OCAJP and OCPJP exams .",
"In order to be an Oracle Certified Professional Java 7 Programmer we have to sit for two exams .. . .. . OCA -JP Oracle Certified Associate Java 7 programmer .",
"Offtopic but you do know that PDF is for sun certified java programmer certification which doesn t exist anymore as such",
"What does this question have to do with the SCJP OCPJP",
"Oracle Certified Professional Java SE 7 Programmer Exams http : rads.stackoverflow.com amzn click 1430247649 .. . .. . OCA OCP Java SE 7 Programmer I II Study Guide http : rads.stackoverflow.com amzn click 0071772006",
"So you can take OCPJP exam then OCAJP exam but you won t be certified in either until the OCAJP exam is complete since OCAJP is prerequisite for OCPJP certification .",
"There s no official certification book which contains all topics for OCPJP 7 .",
"And it is possible to do in any order ex OCAJP -- OCPJP or OCPJP -- OCAJP .",
"OCPJP requires some especific knowing about Java implementation .",
"Curiosity and for OCPJP preparation .",
"I want to appear for upgrade to java se 7 programmer certification exam .",
"Why is OCPJP not treated as a bunch of separators",
"Java SE 7 programmer .",
"I m studying for the SCJP OCPJP and I came across a sample question that seams strange to me .",
"I m currently reviewing for my OCPJP 6 using the Sierra Bates reviewer .",
"From this book Oracle Certified Professional Java SE 7 Programmer Exams 1Z0-804 and 1Z0-805 : A Comprehensive OCPJP 7 .. . .. . A fully qualified resource bundle has the following form : .. . packagequalifier.bundlename + + language + + country + + variant + + script + - + extensions .. . .. . However I cannot put the hyphen in a class name.. . maybe it s an error and they wanted to put another underscore",
"I have just started preparing for the OCPJP exam .",
"My Question is does Oracle provide me a hard copy certificate for OCPJP exam 1z0 804",
"I m preparing for the SCJP recently rebranded as OCPJP by Oracle and one particular question that I got wrong on a mock exam has confused me the answer description doesn t explain things clear enough .",
"Once you pass OCAJP get OCPJP and OCAJP hard copies here .",
"I am experimenting the questions from Oracle for the Java 7 Associate certification .",
"I am currently preparing for Java SE 7 Programmer exam and I tried to solve the sample questions on the Oracle site .",
"So I m intended to do first Java SE 7 programmer and then OCA .",
"If you just passed OCPJP OCAJP should be a piece of cake for you since it s comparatively much easier. . so the only hassle is it s an extra 300 that you must pay Oracle before getting your OCPJP cert .",
"I m preparing for OCPJP exam and I ran into the following example : .. . .. . This code prints 16 .",
"Yesterday I was able to pass OCPJP exam and I am hoping to sit for OCAJP this month .",
"I don t see how SCJP certification is relevant in the slightest by the way .",
"I have already included mysql-connector-java-5.1.25-bin.jar on my classpath via : export CLASSPATH CLASSPATH : home me ocpjp chapter-10 mysql-connector-java-5.1.25 mysql-connector-java-5.1.25-bin.jar .. . 2 .",
"So when you split this String I am preparing for OCPJP using S you are effectively splitting the string at every letter .",
"I am well aware that one should use equals for such comparisons but I am studying for OCPJP.. . .. . .. . On short works as expected for 1000 but not for 10 .",
"The same thing has happened with the I am preparing for OCPJP String it has been split and the points matched by your regex are not in any of the returned values .",
"While searching on net I found this. . .. . Oracle Tutorial for upgrade to java se 7 certification http : docs.oracle.com javase tutorial extra certification javase-7-upgrade.html .. . .. . Is there any book for the same",
"I think this is the book you are looking for this may help you alot for exam OCP Java SE 7 Programmer http : rads.stackoverflow.com amzn click 0071772006",
"@SebastienLorber : In my experience being certified doesn t mean that someone really understands the material at a deep level .",
"I am preparing for OCPJP https : en.wikipedia.org wiki Oracle Certification Program and I got stuck at the following mock exam question : .. . .. . Given : .. . .. . When line 14 is reached how many objects are eligible for the garbage collector",
"Since non-space characters are delimiters each letter is a delimiter but the OCPJP letters essentially don t count because those delimiters result in trailing empty strings that are then discarded .",
"In the course of interviewing lots of Java engineers I can t say that I ve seen any correlation between certification and understanding .",
"The output of above code returns the same ClassName@hex version of the object s hashcode although the text I am referring to OCPJP Guide by S G Ganesh and Tushar Sharma states The Hexadecimal value will be different for each instance .",
"EDIT : I m using Java 6",
"One of the correct answers from OCP Java SE 6 Programmer Practice Exams is : .. . .. . You can programmatically test wheather assertions have been enabled without throwing an AssertionError .",
"I was just studying OCPJP questions and I found this strange code : .. . .. . When I ran the code I got : .. . .. . How is the output false when we re comparing two things that look the same as each other",
"After reading some of the SCJP certification last night I got thinking about switch statements and how the expressions are evaluated and I m a little puzzled by something .",
"You can refer to Oracle FAQ for this here https : blogs.oracle.com certification entry 0376 .",
"Also the Oracle docs http : docs.oracle.com javase 7 docs api java util Formatter.html syntax explains that in detail .",
"Oracle Java Cert Hard Copy Request Form http : education.oracle.com pls web prod-plq-dad db pages.getpage page id 616",
"The Oracle Java Tutorial provides information about how to do it.. . .. . .. . http : docs.oracle.com javase 7 docs technotes guides language assert.html .. . .. . An excerpt from the tutorial .. . .. . 7 .",
".. . .. . The string boo : and : foo for example yields the following results with these expressions : .. . .. . .. . Regex Result .. . : boo and foo .. . o b : and : f .. . .. . .. . Check the second example where last 2 o are just removed : the answer for your question is OCPJP substring is treated as a collection of separators which is not followed for non-empty strings so that part is trimmed .",
"It is a combination of shell behaviour and java in my opinion off-topic to a course of Java .",
"Yes but fields are not polymorphic in Java .",
"The Oracle site says that you can complete the steps in any order but you must complete all prerequisite steps to achieve certification at the current level .",
"For example the following is not allowed in Java .. . .. . Thanks",
"And actually one should not use raw Thread at all except for learning the basics of Java thread programming Javas new concurrency framework provides much better and safer abstractions for multithreaded programming .",
"@SebastienLorber : Because when I m writing Java I try to write idiomatic Java .",
"There was a change added in Java 7 http : www.oracle.com technetwork java javase jdk7-relnotes-418459.html to fix this .",
"See these links for more details on hashCode and equals method : - .. . .. . Effective Java - Item 8 - Obey the general contract when overriding equals http : my.safaribooksonline.com book programming java 9780137150021 methods-common-to-all-objects ch03lev1sec1 .. . Effective Java - Item 9 - Always override hashCode when you override equals http : my.safaribooksonline.com book programming java 9780137150021 methods-common-to-all-objects ch03lev1sec1 X2ludGVybmFsX0ZsYXNoUmVhZGVyP3htbGlkPTk3ODAxMzcxNTAwMjElMkZjaDAzbGV2MXNlYzI",
"Answers below covered how to fix your particular issue but for more on assert in Java check out this thread : stackoverflow.com questions 2758224 assertion-in-java http : stackoverflow.com questions 2758224 assertion-in-java",
"As of Java 8 the sneakyThrowInner helper method is not longer required .",
"Edit : As pointed out in the comments .. . .. . fields are not polymorphic in Java .",
"Since Java 5 wrapper class caching was introduced .",
"I do get a ClassCastException in Java 7 .",
"I am studying for the Java OCP certificate .",
"But I think that you ve got to take that Long weight 1200L into account as well as it seems that the actual answer as stated in the SCJP question is that 4 are eligible for GC .",
"But the following points which I took from SCJP OCJP notes I am not able to understand .",
"I see as 4 objects after converting to uppercase string but the answer is 3 according scjp book .",
"Convenience link-to Long source : docjar.com html api java lang Long.java.html http : www.docjar.com html api java lang Long.java.html see lines 572-578",
"It will help you understand the concept more easily .. . .. . http : www.homeandlearn.co.uk java java formatted strings.html .. . .. . https : answers.yahoo.com question index qid 20101017181211AAbtWC0 .. . .. . https : docs.oracle.com javase tutorial java data numberformat.html .. . .. . http : alvinalexander.com programming printf-format-cheat-sheet",
"@MiguelPortugal : Java people are working hard to fix such issues as you can see now its fixed in Java 7 and you do get Exception .",
"Sorry if it feels arrogant just wanted to say that these stuff are subjects of the certification .",
"Oracle split that into two distinct certifications .",
"In Java the assignment-operator is right-associative i.e .",
"Hi i am studying and playing with thread in java .",
"b c d f s How does this work in java",
"reference http : docs.oracle.com javase 1.5.0 docs api java util Formatter.html",
"Variables names in Java are resolved by the reference-type not the object they are referencing .",
"And anyway in Java all variables pointing to objects including enums arrays are references",
"This is called Hiding http : docs.oracle.com javase tutorial java IandI hidevariables.html .",
"Oh I forgot to state that I was working with Java 6 .",
"First one is relevant to java and other one is about exam achievements .",
"possible duplicate of How do I compare strings in Java",
"http : stackoverflow.com questions 513832 how-do-i-compare-strings-in-java",
"Consider the following program and predict the output : .. . .. . class Test .. . .. . public static void main String args .. . String test I am preparing for OCPJP .. . String tokens test.split S .. . System.out.println tokens.length .. . .. . .. . .. . .. . a 0 .. . .. . b 5 .. . .. . c 12 .. . .. . d 16 .. . .. . Now I understand that S is a regex means treat non-space chars as the delimiters .",
"It is not just Java it is in the floating-point standard .",
"I am copying the source code from Oracle .",
"I guess you should use Class.desiredAssertionStatus .. . .. . http : docs.oracle.com javase 6 docs api java lang Class.html desiredAssertionStatus http : docs.oracle.com javase 6 docs api java lang Class.html desiredAssertionStatus 28 29",
"Multiple classes per compilation unit are a virtually deprecated feature of Java .",
"Java treats all NaN as quiet NaN .",
"For some extra know how i was reading tutorial from Oracle .",
"I m new on stackoverflow.com but I often used it to search for answers whenever I had a problem but now I can t find any result searching for my problem so I m asking here : I m studying for the OCPJP SE 7 certification exam 1Z0-804 and I m using a book there is only one available afaik Ganesh Sharma s one In the collections chapter about the Comparator interface the book provide this example of using both the Comparator and the Comparable interface to sort an array of Student elements but the question is about the Comparator : .. . .. . So it creates a new class only for using the Comparator interface with two Student objects but I think this is very uncomfortable so I wonder : why can t I use a nested-class within Student",
"I am preparing the Java 7 certification using one of the mock test suites available .",
"You will receive your certificate approximately 6-8 weeks after passing the certification exam .",
"@mreiterer This is for a certification exam why would it seem strange that they throw in a tricky case like this",
"docs.oracle.com javase 7 docs api java lang http : docs.oracle.com javase 7 docs api java lang Double.html equals java.lang.Object 5D",
"You can check this reference http : www.java2s.com Code Java Data-Type TheFormatSpecifiers.htm .",
"You can refer to JavaRanch http : www.coderanch.com how-to java PostIncrementOperatorAndAssignment FAQ section for the answer .",
"See also stackoverflow.com questions 18198176 http : stackoverflow.com questions 18198176 java-8-lambda-function-that-throws-exception",
"true .. . .. . The reason I ask is because I know java does not allow numbers to be used for boolean values .",
"The API documentation http : docs.oracle.com javase 1.5.0 docs api java util Formatter.html seems to clearly state why .",
"from A you getting directly attribute not method as you mention java does not override attributes so it is grabbing x from A",
"Implementing Comparable http : docs.oracle.com javase 7 docs api java lang Comparable.html doesn t mean that you can use or .",
"http : docs.oracle.com javase 7 docs api java nio file FileSystems.html .. . .. . How can I use getPathMatcher"
]
} | {
"confidence": [
117.01720428466797,
105.63725280761719,
98.05594635009766,
81.78053283691406,
79.30934143066406,
65.05299377441406,
51.777618408203125,
51.40730285644531,
51.40730285644531,
49.04660415649414,
48.5435905456543,
48.371551513671875,
45.93039321899414,
45.676368713378906,
45.676368713378906,
45.593040466308594,
44.895240783691406,
43.30347442626953,
42.05997085571289,
41.663204193115234
],
"content": [
"Question : As I know to become an Oracle Certified Professional Java SE 7 Programmer have to pass both OCAJP and OCPJP exams . And it is possible to do in any order ex OCAJP -- OCPJP or OCPJP -- OCAJP . Yesterday I was able to pass OCPJP exam and I am hoping to sit for OCAJP this month . My Question is does Oracle provide me a hard copy certificate for OCPJP exam 1z0 804 .. . Answer : You can refer to Oracle FAQ for this here https : blogs.oracle.com certification entry 0376 . You will receive your certificate approximately 6-8 weeks after passing the certification exam .",
"Question : As I know to become an Oracle Certified Professional Java SE 7 Programmer have to pass both OCAJP and OCPJP exams . And it is possible to do in any order ex OCAJP -- OCPJP or OCPJP -- OCAJP . Yesterday I was able to pass OCPJP exam and I am hoping to sit for OCAJP this month . My Question is does Oracle provide me a hard copy certificate for OCPJP exam 1z0 804 .. . Answer : The Oracle site says that you can complete the steps in any order but you must complete all prerequisite steps to achieve certification at the current level . So you can take OCPJP exam then OCAJP exam but you won t be certified in either until the OCAJP exam is complete since OCAJP is prerequisite for OCPJP certification . Once you have met the prerequisites you can request a hard copy if you prefer that to downloading it . If you just passed OCPJP OCAJP should be a piece of cake for you since it s comparatively much easier. . so the only hassle is it s an extra 300 that you must pay Oracle before getting your OCPJP cert . Once you pass OCAJP get OCPJP and OCAJP hard copies here . Oracle Java Cert Hard Copy Request Form http : education.oracle.com pls web prod-plq-dad db pages.getpage page id 616 Comment : what is about the only hassle is it s an extra 300 that.. . OCAJP fee is only 150 Comment : The price depends on the country .. .",
"Question : I need help . I want to appear for upgrade to java se 7 programmer certification exam . While searching on net I found this. . .. . Oracle Tutorial for upgrade to java se 7 certification http : docs.oracle.com javase tutorial extra certification javase-7-upgrade.html .. . .. . Is there any book for the same Thanks Comment : You can visit this http : www.epractizelabs.com certification-advisor time-estimator.php site to estimate how much time it will take to be prepare for you exam . Best of Luck for your exam : Comment : Thaks Mr Pandey . It showed me some number of hours to prepare for the exam but I want to know if there is any book for upgrade exam or not. . .. . Answer : There s no official certification book which contains all topics for OCPJP 7 . So As of now you are on your own . See this http : java.boot.by ocpjp7-upgrade note this might help you . Although I can suggest below two books . Oracle Certified Professional Java SE 7 Programmer Exams http : rads.stackoverflow.com amzn click 1430247649 .. . .. . OCA OCP Java SE 7 Programmer I II Study Guide http : rads.stackoverflow.com amzn click 0071772006",
"Question : From this book Oracle Certified Professional Java SE 7 Programmer Exams 1Z0-804 and 1Z0-805 : A Comprehensive OCPJP 7 .. . .. . A fully qualified resource bundle has the following form : .. . packagequalifier.bundlename + + language + + country + + variant + + script + - + extensions .. . .. . However I cannot put the hyphen in a class name.. . maybe it s an error and they wanted to put another underscore Or is there something I am missing about the extensions As far as I know for the extension the hyphen serves to separate the sub key-value pair of a certain category. . for example ca-buddhist . What would be the fully qualified-name of a ResourceBundle with an unicode extension u ca-buddhist Thanks in advance . .. . Answer : A fully qualified resource bundle has the following form : packagequalifier.bundlename + + language + + country + + variant + + script + - + extensions .. . .. . I don t think this definition is correct . Have a look at the Javadoc http : docs.oracle.com javase 7 docs api java util ResourceBundle.html getBundle 28java.lang.String 20java.util.Locale 20java.lang.ClassLoader 29 . Strangely extensions defined in Locale http : docs.oracle.com javase 7 docs api java util Locale.html don t get mentioned.. . Comment : Would you be able to provide me with an example of a fully qualified-name ResourceBundle-wise with a unicode extension let s say u ca-buddhist",
"Question : I m currently reviewing for my OCPJP 6 using the Sierra Bates reviewer . I stumbled upon a question regarding an endless loop not throwing a StackOverflowError . As far as I ve learned it should throw it eventually . Please refer to this PDF for the question : https : java.net downloads jfjug SCJP 20Sun 20Certified 20Programmer 20for 20Java 206-0071591060.pdf .. . .. . Question I m referring to is from Self Test Chapter 5 Question 9 page 455 of the PDF . I answered CDF . The correct answer according to the book was DF . It was also explained in there that case 0 initiates an endless loop not a StackOverflowError . True it does initiate an endless loop but eventually turn out to be a StackOverflowError . The answer C stated might throw a StackOverflowError so I knew C was correct . If I m wrong can anybody explain why Comment : This for is an endless loop . Why would it cause StackOverflowError Does it take up more and more of the stack every iteration Comment : Endless or even finite with high-bound recursive call results an Stack Overflow not a loop . Comment : Offtopic but you do know that PDF is for sun certified java programmer certification which doesn t exist anymore as such Oracle split that into two distinct certifications . .. . Answer : Since in that loop you re not actually calling methods that need to call other methods a la recursion you re not adding more calls to the stack . You re merely repeating the steps you did most every time through . Since a StackOverflowError http : stackoverflow.com a 214758 1079354 is only invoked in certain conditions - namely the calling of another method which would call more methods or the allocation of more elements onto the stack then there s really no way that this particular loop could cause such an error . Comment : Thank you for the clarification I must have missed that .",
"Question : I m preparing for OCPJP7 exam on these days . I got two questions and accepting answers . First one is relevant to java and other one is about exam achievements . 1 . According to the above code segment I was expected the output as D : OCPJP7 programs NIO2 SRC Subpath.java But it is not . It provides D : OCPJP7 NIO2 SRC Subpath.java .. . .. . As I know normalize removes any redundant elements from the given path including single dot and double dot . Then why it removes programs element 2 . In order to be an Oracle Certified Professional Java 7 Programmer we have to sit for two exams .. . .. . OCA -JP Oracle Certified Associate Java 7 programmer . Java SE 7 programmer . As I know we can achieve both exams in any order . So I m intended to do first Java SE 7 programmer and then OCA . My question is what will offer by the Oracle after passing both exams . Are they offering two certificates for both exams or one certificate for both And anything else .. . Answer : As I know normalize removes any redundant elements from the given path including single dot and double dot . Then why it removes programs element . . refers to the the parent directory . In other words programs brings you forward and . . brings you back . The Javadoc of Path normalize http : docs.oracle.com javase 7 docs api java nio file Path.html normalize 28 29 states .. . .. . If a . . is preceded by a non- . . name then both names are considered redundant the process to identify such names is repeated until it is no longer applicable . So programs . . is redundant and removed . I can t answer your second question .",
"Question : I need help . I want to appear for upgrade to java se 7 programmer certification exam . While searching on net I found this. . .. . Oracle Tutorial for upgrade to java se 7 certification http : docs.oracle.com javase tutorial extra certification javase-7-upgrade.html .. . .. . Is there any book for the same Thanks Comment : You can visit this http : www.epractizelabs.com certification-advisor time-estimator.php site to estimate how much time it will take to be prepare for you exam . Best of Luck for your exam : Comment : Thaks Mr Pandey . It showed me some number of hours to prepare for the exam but I want to know if there is any book for upgrade exam or not. . .. . Answer : I think this is the book you are looking for this may help you alot for exam OCP Java SE 7 Programmer http : rads.stackoverflow.com amzn click 0071772006",
"Question : I m preparing for the SCJP recently rebranded as OCPJP by Oracle and one particular question that I got wrong on a mock exam has confused me the answer description doesn t explain things clear enough . This is the question : .. . .. . The answer is 5 but I chose 6 . I understand that overriding applies to methods at runtime and not variables but the way my mind interpreted that println was : .. . .. . 1 . call getObject on c1 .. . 2 . c1 is actually a SubCovariantTest object and has a valid override for getObject so use the overridden method .. . 3 . The override returns B so grab x from B which is 6 .. . .. . Is it a case of the JVM ignoring the getObject part and always taking x from c1 as variables are associated at compile-time Comment : Having typed the code up why not run it and see that it returns 5 Comment : i also see that it will return 5 not 6 .. . Answer : The technical term for what is happening here is hiding . Variables names in Java are resolved by the reference-type not the object they are referencing . A object has a A.x variable . B object has both A.x and B.x variables . However instance methods with the same signature are overridden not hidden and you cannot access the version of a method that is overridden from the outside . Note that hiding also applies to static-methods with the same signature . Your mock question in a simplified form without overriding :",
"Question : I m preparing for the SCJP recently rebranded as OCPJP by Oracle and one particular question that I got wrong on a mock exam has confused me the answer description doesn t explain things clear enough . This is the question : .. . .. . The answer is 5 but I chose 6 . I understand that overriding applies to methods at runtime and not variables but the way my mind interpreted that println was : .. . .. . 1 . call getObject on c1 .. . 2 . c1 is actually a SubCovariantTest object and has a valid override for getObject so use the overridden method .. . 3 . The override returns B so grab x from B which is 6 .. . .. . Is it a case of the JVM ignoring the getObject part and always taking x from c1 as variables are associated at compile-time Comment : Having typed the code up why not run it and see that it returns 5 Comment : i also see that it will return 5 not 6 .. . Answer : You are calling method from c1 : System.out.println c1.getObject .x .. . .. . c1 reference-type is : .. . .. . so for this : c1.getObject return-type is A . from A you getting directly attribute not method as you mention java does not override attributes so it is grabbing x from A",
"Question : Is anybody aware of any real life use of the class AtomicLongFieldUpdate http : docs.oracle.com javase 7 docs api java util concurrent atomic AtomicLongFieldUpdater.html I have read the description but I have not quite grasped the meaning of it . Why do I want to know that Curiosity and for OCPJP preparation . Thanks in advance . .. . Answer : Atomics are usually used in parallel programming . Under the work-stealing mode it only supports async finish forasync isolated and atomic variables . You can view atomic as a safe protection from data race and other problems that you need to concern in parallel programming . Comment : This doesn t answer the question which is specifically about AtomicLongFieldUpdate .",
"Question : If enum implements Comparable so why can t compare with or Comment : What does this question have to do with the SCJP OCPJP Comment : It is in exam topics Section 1 : Declarations Initialization and Scoping Develop code that declares classes including abstract and all forms of nested classes interfaces and enums and includes the appropriate use of package and import statements including static imports . Develop code that declares initializes and uses primitives arrays enums and objects as static instance and local-variables . Also use legal identifiers for variable names . education.oracle.com pls web prod-plq-dad http : education.oracle.com pls web prod-plq-dad db pages.getpage page id 41 p exam id 1Z0 851 .. . Answer : Implementing Comparable http : docs.oracle.com javase 7 docs api java lang Comparable.html doesn t mean that you can use or . You can only use those with numeric values . It only means that there s a compareTo http : docs.oracle.com javase 7 docs api java lang Comparable.html compareTo 28T 29 method . Try this : .. . .. . This method will return an int that is smaller than equal to or bigger than 0 depending on which value is bigger . In the case of enum values the size depends on the order of the enum value definitions .",
"Question : This question already has an answer here : .. . .. . How exactly does String.split method in Java work when regex is provided questions 22259733 how-exactly-does-string-split-method-in-java-work-when-regex-is-provided 1 answer .. . .. . I was doing a question out of the book oracle certified professional java se 7 programmer exams 1z0-804 and 1z0-805 by Ganesh and Sharma . One question is : .. . .. . 80 . Consider the following program and predict the output : .. . .. . class Test .. . .. . public static void main String args .. . String test I am preparing for OCPJP .. . String tokens test.split S .. . System.out.println tokens.length .. . .. . .. . .. . .. . a 0 .. . .. . b 5 .. . .. . c 12 .. . .. . d 16 .. . .. . Now I understand that S is a regex means treat non-space chars as the delimiters . But I was puzzled as to how the regex expression does its matching and what are the actual tokens produced by split . I added code to print out the tokens as follows .. . .. . and I got the following output .. . .. . So a lot of empty string tokens . I just do not understand this . I would have thought along the lines that if delimiters are non space chars that in the above text then all alphabetic chars serve as delimiters so maybe there should be 21 tokens if we are matching tokens that result in empty strings too . I just don t understand how Java s regex engine is working this out . Are there any regex gurus out there who can shed light on this code for me Comment : I tried your example and it makes much more sense if you replace S with s could this be a typo Comment : @mreiterer This is for a certification exam why would it seem strange that they throw in a tricky case like this The fact that they included the correct answer 16 as one of the choices makes it very unlikely that this was unintentional . Comment : P.S . If 21 had been one of the choices I probably would have gotten this wrong . Comment : Hi no it was meant to be S the opposite of s . Tricky one this . .. . Answer : First things start with s lower case which is a regular expression character-class for white space that is space tabs t new line chars n and r vertical tab v and a bunch of other characters . S upper case is the opposite of this so that would mean any non white space character . So when you split this String I am preparing for OCPJP using S you are effectively splitting the string at every letter . The reason your token array has a length of 16 . Now as for why these are empty . Consider the following String : Hello World if we were to split that using we would end up with a String array of length 2 with the following contents : Hello and World . Notice that the is not in either of the Strings it has be erased . The same thing has happened with the I am preparing for OCPJP String it has been split and the points matched by your regex are not in any of the returned values . And because most of the letters in that String are followed by another letter you end up with a load of Strings of length zero only the white space characters are preserved . Comment : The point of the questions is : why 16 and not 21 Why is OCPJP not treated as a bunch of separators There are 21 letters but last ones are ignored.. . Comment : Fair point missed that part of the question Thanks for pointing that out and highlighting the documentation in your answer .",
"Question : I m preparing for the SCJP recently rebranded as OCPJP by Oracle and one particular question that I got wrong on a mock exam has confused me the answer description doesn t explain things clear enough . This is the question : .. . .. . The answer is 5 but I chose 6 . I understand that overriding applies to methods at runtime and not variables but the way my mind interpreted that println was : .. . .. . 1 . call getObject on c1 .. . 2 . c1 is actually a SubCovariantTest object and has a valid override for getObject so use the overridden method .. . 3 . The override returns B so grab x from B which is 6 .. . .. . Is it a case of the JVM ignoring the getObject part and always taking x from c1 as variables are associated at compile-time Comment : Having typed the code up why not run it and see that it returns 5 Comment : i also see that it will return 5 not 6 .. . Answer : Although the override is done properly for SubCovariantTest the answer is 5 because of how the variable c1 is declared . It is declared as a CovariantTest and not as a SubCovariantTest . When c1.getObject .x is run it does not know that it is a SubCovariantTest no casting was used . This is why 5 is returned from CovariantTest and not 6 from SubCovariantTest . If you change .. . .. . to .. . .. . you will get 6 as you expected . Edit : As pointed out in the comments .. . .. . fields are not polymorphic in Java . Only methods are . The x in the subclass hides the x in the base-class . It doesn t override it . Thanks to JB Nizet Comment : Are you sure I m pretty sure the whole point of polymorphism is to be able to do something like this : Paint paint new RedPaint new BluePaint new GreenPaint and then have for Paint p : paint paint.getColor where each subclass of Paint has a valid override for getColor . Each should perform differently regardless of knowing the subclass or needing to cast to it . Comment : Yes but fields are not polymorphic in Java . Only methods are . The x in the subclass hides the x in the base-class . It doesn t override it . And besides encapsulation that s another good reason NOT to use public fields . Comment : Oh I see . Interesting I never knew that . You should add that to the answer . :",
"Question : I m studying for the SCJP OCPJP and I came across a sample question that seams strange to me . The sample code instantiated two generic-collections : .. . .. . The correct answer to the question was that this code would compile but adding to either collection would produce a runtime-error . When I try to compile code like this I just get errors . The Java tutorial does not even show this type of code it instead usually uses wildcards as a part of an upcast . Are the two generic-collections above even legitimate code The second by my logic would only disallow interfaces . The first one looks completely useless . Why use a generic that makes no attempt at control Comment : Don t see how this would compile AND you can add to both collections just fine - just only exactly ONE object . I leave it as an exercise for the reader to figure out which object is valid for every class : Comment : You can t do either . I wanted to find out if the sample question answer was wrong and apparently it is . Comment : Down voted just now for what reason .. . Answer : If you want to declare Type at runtime you can do something like this :",
"Question : I m studying for the SCJP OCPJP and I came across a sample question that seams strange to me . The sample code instantiated two generic-collections : .. . .. . The correct answer to the question was that this code would compile but adding to either collection would produce a runtime-error . When I try to compile code like this I just get errors . The Java tutorial does not even show this type of code it instead usually uses wildcards as a part of an upcast . Are the two generic-collections above even legitimate code The second by my logic would only disallow interfaces . The first one looks completely useless . Why use a generic that makes no attempt at control Comment : Don t see how this would compile AND you can add to both collections just fine - just only exactly ONE object . I leave it as an exercise for the reader to figure out which object is valid for every class : Comment : You can t do either . I wanted to find out if the sample question answer was wrong and apparently it is . Comment : Down voted just now for what reason .. . Answer : new produces a concrete instance of an object . The concrete instance can have only one type including any generics . Knowing this wildcards cannot work with new .",
"Question : This question already has an answer here : .. . .. . How exactly does String.split method in Java work when regex is provided questions 22259733 how-exactly-does-string-split-method-in-java-work-when-regex-is-provided 1 answer .. . .. . I was doing a question out of the book oracle certified professional java se 7 programmer exams 1z0-804 and 1z0-805 by Ganesh and Sharma . One question is : .. . .. . 80 . Consider the following program and predict the output : .. . .. . class Test .. . .. . public static void main String args .. . String test I am preparing for OCPJP .. . String tokens test.split S .. . System.out.println tokens.length .. . .. . .. . .. . .. . a 0 .. . .. . b 5 .. . .. . c 12 .. . .. . d 16 .. . .. . Now I understand that S is a regex means treat non-space chars as the delimiters . But I was puzzled as to how the regex expression does its matching and what are the actual tokens produced by split . I added code to print out the tokens as follows .. . .. . and I got the following output .. . .. . So a lot of empty string tokens . I just do not understand this . I would have thought along the lines that if delimiters are non space chars that in the above text then all alphabetic chars serve as delimiters so maybe there should be 21 tokens if we are matching tokens that result in empty strings too . I just don t understand how Java s regex engine is working this out . Are there any regex gurus out there who can shed light on this code for me Comment : I tried your example and it makes much more sense if you replace S with s could this be a typo Comment : @mreiterer This is for a certification exam why would it seem strange that they throw in a tricky case like this The fact that they included the correct answer 16 as one of the choices makes it very unlikely that this was unintentional . Comment : P.S . If 21 had been one of the choices I probably would have gotten this wrong . Comment : Hi no it was meant to be S the opposite of s . Tricky one this . .. . Answer : The reason the result is 16 and not 21 is this from the javadoc for Split http : docs.oracle.com javase 8 docs api java lang String.html split-java.lang.String- : .. . .. . Trailing empty strings are therefore not included in the resulting array . This means for example that if you say .. . .. . the result will have five elements . The first will be since it s not a trailing empty string the others will be abc def and ghi . But the remaining empty strings are removed from the array . In the posted case : .. . .. . it s the same thing . Since non-space characters are delimiters each letter is a delimiter but the OCPJP letters essentially don t count because those delimiters result in trailing empty strings that are then discarded . So since there are 15 letters in I am preparing for they are treated as delimiting 16 substrings the first is and the last is .",
"Question : I need help . I want to appear for upgrade to java se 7 programmer certification exam . While searching on net I found this. . .. . Oracle Tutorial for upgrade to java se 7 certification http : docs.oracle.com javase tutorial extra certification javase-7-upgrade.html .. . .. . Is there any book for the same Thanks Comment : You can visit this http : www.epractizelabs.com certification-advisor time-estimator.php site to estimate how much time it will take to be prepare for you exam . Best of Luck for your exam : Comment : Thaks Mr Pandey . It showed me some number of hours to prepare for the exam but I want to know if there is any book for upgrade exam or not. . .. . Answer : Manning have good oca 7 certification books .. . .. . http : www.manning.com gupta .. . .. . And a pre-order for advanced version .. . .. . http : www.manning.com gupta2 Comment : Thanks a lot for your reply . But I want to appear for Upgrade exam i.e . 1z0-805 . Comment : I don t think you would get a book specifically for upgrade . Both exams will be relatively same only with some filtering of topics . You have the topic list in the link mentioned and you could use this book to learn those topics alone for your exam . This book could generally be used for both exams 1Z0-803 and 1Z0-805 . Comment : Thanks a lot.... .",
"Question : Here I was training to my OCP and test some String behaviors . And when i get this : .. . .. . Some doubts came to me . I know what that method returns is : .. . .. . But theres a conceptual error on this compiler rules or thats all ok Comment : possible duplicate of How do I compare strings in Java http : stackoverflow.com questions 513832 how-do-i-compare-strings-in-java Comment : Don t . OCPJP requires some especific knowing about Java implementation . .. . Answer : In the first case substring returns this and this this returns true as expected . In the second case substring returns a new object so returns false because you are comparing different objects . Comment : I know . But . Why Comment : @user3220398 why what Why is substring implemented that way Comment : Yes that is it . Comment : @user3220398 if beginIndex is 0 then the result-of substring is the original string so instead of creating a new string substring just returns this . That is more efficient CPU and memory wise . I m not sure I understand why you think this is an issue . Comment : About performance it s all right . About the concept that s what i mean if user don t know the implementation of language this behavior has an exception a single case isolated . So by the way the static context this not always pointing to the same memory heap ok",
"Question : I m studying for the SCJP OCPJP and I came across a sample question that seams strange to me . The sample code instantiated two generic-collections : .. . .. . The correct answer to the question was that this code would compile but adding to either collection would produce a runtime-error . When I try to compile code like this I just get errors . The Java tutorial does not even show this type of code it instead usually uses wildcards as a part of an upcast . Are the two generic-collections above even legitimate code The second by my logic would only disallow interfaces . The first one looks completely useless . Why use a generic that makes no attempt at control Comment : Don t see how this would compile AND you can add to both collections just fine - just only exactly ONE object . I leave it as an exercise for the reader to figure out which object is valid for every class : Comment : You can t do either . I wanted to find out if the sample question answer was wrong and apparently it is . Comment : Down voted just now for what reason .. . Answer : I answered this somewhat before in this http : stackoverflow.com questions 8422842 in-java-syntax-class-extends-something 8423028 8423028 answer . cannot be used in the instantiation . I m not sure why it says the code would compile none of the java compilers I have used would allow that . You could do what is shown above by the following : .. . .. . That would compile and run but you couldn t do :",
"Question : If enum implements Comparable so why can t compare with or Comment : What does this question have to do with the SCJP OCPJP Comment : It is in exam topics Section 1 : Declarations Initialization and Scoping Develop code that declares classes including abstract and all forms of nested classes interfaces and enums and includes the appropriate use of package and import statements including static imports . Develop code that declares initializes and uses primitives arrays enums and objects as static instance and local-variables . Also use legal identifiers for variable names . education.oracle.com pls web prod-plq-dad http : education.oracle.com pls web prod-plq-dad db pages.getpage page id 41 p exam id 1Z0 851 .. . Answer : The answers provided explain the problem well but I would like to add my insights because I feel that they don t answer question why can t compare with or . The problem comes down to comparing references . PinSize.BIGGEST and PinSize.BIGGERER are reference variables . The same as the below : .. . .. . They represent addresses in memory . What is more enums are singletons so there is always one object of the specified kind . Because of that the below line is allowed and returns true . Trying to check if one address in memory is greater or smaller than the other address in memory is impossible . Implementing Comparable interface and compareTo method gives a chance to provide your own custom way of comparing objects not addresses in memory ."
]
} | [
"yes-answer-long",
"yes-answer-short"
] | java | UNK_RELATION |
aac@encoding@74 | aac -- advanced audio coding aac is a standardized lossy compression and @placeholder scheme for digital audio . | {
"confidence": [
56.10533142089844,
55.325172424316406,
52.83865737915039,
51.83547592163086,
51.494571685791016,
49.141624450683594,
48.49606704711914,
47.39540481567383,
47.29372787475586,
46.3922233581543,
46.290435791015625,
45.287254333496094,
45.287254333496094,
45.287254333496094,
45.205955505371094,
44.975830078125,
44.975830078125,
44.975830078125,
44.08491516113281,
43.97264862060547,
43.97264862060547,
43.97264862060547,
43.97264862060547,
43.97264862060547,
43.97264862060547,
43.95049285888672,
43.95049285888672,
42.94731140136719,
42.94731140136719,
42.77030944824219,
42.77030944824219,
42.422637939453125,
42.235008239746094,
41.744972229003906,
41.579925537109375,
41.579925537109375,
40.394981384277344,
40.377586364746094,
40.372840881347656,
39.975318908691406,
39.6740837097168,
39.12334060668945,
38.8828125,
38.8828125,
38.8828125,
38.8828125,
38.8828125,
38.8828125,
38.8828125,
38.8828125,
38.8828125,
38.8828125,
38.8828125,
38.8828125,
38.8828125,
38.8828125,
38.8828125,
38.8828125,
38.8828125,
38.3969841003418,
38.02369689941406,
37.956382751464844,
37.92100143432617,
37.92100143432617,
37.92100143432617,
37.87963104248047,
37.87963104248047,
37.87963104248047,
37.87963104248047,
37.87963104248047,
37.87963104248047,
37.85289764404297,
37.11240005493164,
37.02051544189453,
37.02051544189453,
37.01776123046875,
36.9205322265625,
36.88481521606445,
36.88481521606445,
36.85261917114258,
36.85261917114258,
36.67729187011719,
36.67729187011719,
36.67729187011719,
36.67729187011719,
36.67729187011719,
36.67729187011719,
36.67729187011719,
36.67729187011719,
36.67729187011719,
36.665924072265625,
35.869014739990234,
35.69164276123047,
35.69164276123047,
35.663021087646484,
35.408363342285156,
35.408363342285156,
35.26689147949219,
35.15375518798828,
35.15375518798828
],
"content": [
"audio m4a audio aac audio aacp audio x-aac audio mpeg audio mp4a audio mp4a-latm audio mp4",
"AAC is an audio encoding format .",
"How to convert this audio to mp3 or AAC",
"Output should be H264 with AAC audio .",
"It records the audio in AAC format but a .caf audio container packages the audio file .",
"Give these types a shot and the community would appreciate a confirmation of what works : .. . .. . audio mpeg audio mp4a audio mp4a-latm audio aac audio x-aac",
"I m attempting to convert an AAC audio stream for playback .",
"The Android developer docs state the following about this mime type : audio mp4a-latm - AAC audio note this is raw AAC packets not packaged in LATM .",
"Is there really a problem with streaming ts files with aac audio",
"I am currently developing an application that needs to record audio encode it as AAC stream it and do the same in reverse - receiving stream decoding AAC and playing audio .",
"the output codecs are : libx264 for video and faac or fdk-aac for audio output i tried both aac encoders but it did not change .",
"Just would like to know : is there any iOS native framework SDK supports the streaming of HE-AAC AAC+ audio files",
"I m talking about files that end .aac not AAC audio inside M4A or MP4 containers .",
"Your aac audio frames still have adts headers when provided to a unit of processing which is expecting raw aac .",
"There is a Freeware Advanced Audio AAC Decoder for Android https : code.google.com p aacdecoder-android .",
"I try to encode audio to AAC with profile FF PROFILE AAC LOW by the following settings .",
"I am trying to encode aac audio using android AudioRecord and MediaCodec .",
"True I should have described 3GPP and M4A as containers for AAC audio .",
"I choose The AAC format as there is an article from Fraunhofer called AAC-ELD based Audio Communication on iOS A Developer s Guide .",
"I create a MP4 video with H264 video and AAC audio .",
"The user records audio file which is saved in the .AAC format .",
"AAC is broken into audio frames. . extract both sets of frames and join them .",
"I m using mp4 container : video : h254 and audio : AAC .",
"Even if I already set FLV tag to Raw AAC audio",
"I m using the Android MediaRecorder to record AAC encoded audio files .",
"The audio does work in VLC so it seems to be an issue with Flash being unable to decode the AAC audio .",
"is there a difference between M4A audio files and AAC audio files or are they exactly the same thing but with a different file extension",
"So do you have any advice on how I could convert a MP3 audio to an AAC audio",
"For the case that the AAC audio stream is 2 channels it works fine both video and audio play correctly .",
"I want to convert audio files encoded in AAC to WAV .",
"This is just a wrapper format however and the actual audio data it contains is in AAC format .",
"AAC is an audio codec which was Designed to be the successor of the MP3 format AAC generally achieves better sound quality than MP3 at similar bit rates .",
"For example if it is mentioned that AAC LC codec supported by Android Android supported codec and my hardware does not support AAC LC codec can I play AAC LC audio music",
"I wrote a loop to encode pcm audio data generated by my app to aac using Extended Audio File Services .",
"I have made a small application to extract audio from an mp4 file or simply convert an existing audio file to AAC mp4 format both raw AAC or inside mp4 container .",
"The iPhone supports more than aac audio just curious why your only supporting AAC doesn t the logitech camera support any of the following g711 ulaw apcm mpeg2 audio etc .",
"It works with MP3 audio mpeg though.. . .. . .. . Finally I created a MediaExtractor for an AAC file and looked at the format object it was producing .",
"Now I don t want to record sound in .aac format directly I need to convert recorded .caf audio file into .aac audio file.. . any idea how to do this",
"Everything is ok except the output is AAC not AAC LC .",
"Here is what each browser supports : .. . .. . Internet Explorer 9.0+ : .mp3 .aac .. . Chrome : .ogg .mp3 .wav .aac .. . Firefox : .ogg .wav .. . Safari : .mp3 .aac .wav .. . Opera : .ogg .wav .. . .. . Chrome seems to support .aac http : www.chromium.org audio-video but it isn t included in the list of officially supported file extensions .",
"http : stackoverflow.com questions 10817036 can-i-use-avcapturesession-to-encode-an-aac-stream-to-memory .. . Writing video + generated audio to AVAssetWriterInput audio stuttering http : stackoverflow.com questions 12187124 writing-video-generated-audio-to-avassetwriterinput-audio-stuttering .. . How do I use CoreAudio s AudioConverter to encode AAC in real-time",
"I have run this application with existing mp4 files as input and it properly extracts audio and encodes to mp4 audio only : AAC or even directly in AAC format i.e .",
"I have an application that rips aac+ audio streams cutting them at every regular interval i.e .",
"I used this command : .. . .. . Any command that works and records AAC audio with VLC from the Terminal would be greatly appreciated .",
"Here is my code to set up Audio .. . .. . Here I get AAC Encoded data from",
"I would like to get AAC audio from PCM by mediacodec but always got failure .",
"I have tried with bass aac an extension to the Bass audio library which claims to be able to handle AAC+ unsuccessfully .",
"I have a series of MP4 files H.264 video AAC audio 16KHz .",
"I mean list of Audio Object Types it support MPEG-2 and MPEG-4 AAC LC etc .",
"All these libraries cannot convert default android audio format AMR codec to MP3 or AAC .",
".AAC is not a container format and instead it is a raw MPEG-4 Part 3 bitstream with audio stream encoded .",
"Note that M4A does not have to contain exactly AAC audio there are other valid options as well .",
"@tikson do u have the full correct code that convert pcm raw audio file to aac file-format",
"As I understand it Android will only play AAC format audio if it s encoded as MPEG-4 or 3GPP .",
"I m able to play AAC audio encoded as M4A when it s local to the app but it fails when obtaining it from a server .",
"You can use this for help and Guidance or use Multiplayer class in it to playback aac audio .",
"If you analyze your MP4 file with MediaInfo for example you will see AAC for audio but without ADTS wrapper .",
"This is why Silverlight can read in this case your AAC audio embedded in a MP4 file .",
"I need to send raw AAC audio frames one at a time to my decoder .",
"It s raw AAC .",
"I want to compile AAC library fdk-aac on Ubuntu but there is no makefile for it .",
"I need an encoder that can convert mp3 files to he-aac aka aac+ .",
"When capturing audio from my audio unit mixer output and writing it to an AAC file via CAAudioUnitOutputCapturer the ExtAudioFileWriteAsync API fails .",
"I want save audio file into .aac format and send to iPhone : .. . .. . But after I send this audio file to iPhone iPhone can t read it .",
"The problem occurs when I often stop and start audio playback and seek a lot back and forth in an AAC audio file through an ExtAudioFileRef object .",
"stackoverflow.com questions 10726762 http : stackoverflow.com questions 10726762 converting-audio-on-android-to-mp3-or-aac",
"I m trying to write an AAC audio stream into an mp4 file using the FFMPEG libraries .",
"Now I need to live stream AAC encoded audio over the network without writing it to a file .",
"I made one FLV audio tag per AAC frame easier to deal with seeking timestamps etc .. .",
"Now my Rockboxed portable player can read AAC audio tracks extracted from FLV YouTube videos .",
"When converting to adts aac the converted audio has a prefix of about 40ms of silence.. . Weird.. .",
"AAC is compressed .",
"Kostya on the FFMPEG team is currently working on an AAC encoder but it has a long way to go--its not ready for primetime with LC-AAC let alone HE-AAC its not even committed to the repository yet .",
"Anyone with experience in aac can suggest how to concatenate two aac buffers",
"Like for aac use format use .aac extension with kAudioFormatMPEG4AAC as the AVFormatIDKey",
"On my search for this topic i concluded that you can play shoutcast but only the mpeg type not AAC AAC+ .",
"And yes it is raw aac data blocks .",
"I think it is AAC+ .",
"aac packets I presume :",
"Too bad ffmpeg does not support he-aac .. .",
"Nero AAC is the only one as far as I know .",
"I want to build an app that plays AAC audio stream sent by my Raspberry Pi with Gstreamer .",
"So please give me the source code of a class which can join two AAC audio file .",
"All your errors come from one thing the so-called AAC audio .",
"I m doing some integration work with video H.264 and audio AAC from an IP camera .",
"Is there a better way of appending two MPEG-4 AAC audio files almost instantaneously",
"Though we ask the AVAudioRecorder to record in MPEG4-AAC format it always produces a .caf Core Audio Format file .",
"adding an audio input to your capture session seems to tie up the AAC encoder .",
"I am trying to decode AAC-ELD 16kHz audio frames on Samsung S4 5.0.1 .",
"I m attempting to use Aurora.JS to play audio received from a streaming AAC-encoded source .",
"I tried using the MediaFormat.createAudioFormat to create the format object to pass to MediaCodec.configure but I kept getting errors when using AAC audio mp4a-latm .",
"Working Demo. . A very basic demo of AAC file playback http : www.swfcabin.com swf-files 1411416171.swf see below if you need some test AAC file .. . .. . I can happily confirm that it s 100 possible to play an .aac audio file using NetStream .",
"avio open avformat new stream etc. . .. . .. . The problem is that the app already has AAC-LC audio so audio frame does not need to be encoded because my app just bypass data received from socket buffer .",
"I m trying to build a radio player and the client is providing a stream which is a FLV container with the audio being AAC .. . .. . When I read the headers it shows up as audio aacp .",
"@Danijel : Here is what ffprobe reports for the AAC stream : Duration : N A bitrate : 63 kb s Stream 0 : 0 : Audio : aac HE-AACv2 44100 Hz stereo fltp 63 kb s",
"How to read AAC or m4b files",
"Only Safari and IE support .aac .",
"I want to use Windows Media Foundation to get the audio data of an AAC-encoded file .",
"Now I have a subtle problem when playing back mp4 m4a containers that contain MPEG-4 HE-AAC audio data .",
"media format configuration : .. . .. . encode : .. . .. . send to ffmpeg muxer .. . .. . When I extracted the stream by ffmpeg ffmpeg indicated the audio format was adpcm swf not AAC ."
]
} | {
"confidence": [
62.01702117919922,
58.629844665527344,
58.008277893066406,
57.92613983154297,
57.528831481933594,
57.50267791748047,
56.80387878417969,
56.611236572265625,
56.530067443847656,
56.30213928222656,
55.82542419433594,
55.32365417480469,
55.02895736694336,
54.91608428955078,
54.65512466430664,
54.55218505859375,
54.55218505859375,
54.348114013671875,
54.26323699951172,
53.534461975097656
],
"content": [
"Question : As I understand it Android will only play AAC format audio if it s encoded as MPEG-4 or 3GPP . I m able to play AAC audio encoded as M4A when it s local to the app but it fails when obtaining it from a server . The following works as the m4a file is held locally in the res raw directory . The following doesn t work . But does with MP3 s . Can anyone shed any light on why it fails when the m4a audio file is not local Here s some of the error.. . I m targeting SDK 1.6 . Comment : You re confusing encoding with file formats . AAC is an audio encoding format . M4A is a file-type or package that sits around the AAC data . 3GPP is similar but can contain other types of encoded audio . See here developer.android.com guide appendix media-formats.html http : developer.android.com guide appendix media-formats.html and here en.wikipedia.org wiki M4a http : en.wikipedia.org wiki M4a . Comment : True I should have described 3GPP and M4A as containers for AAC audio . Off the top of my head I think M4A may only be used for static files and 3GPP can only stream using RTSP rather than HTTP This would cause problems for HTTP streaming . Correct me if I m wrong.. . .. . Answer : There is a Freeware Advanced Audio AAC Decoder for Android https : code.google.com p aacdecoder-android . You can use this for help and Guidance or use Multiplayer class in it to playback aac audio . There is a sample app and library in it to help you understand .. . .. . Hope this helps Comment : It is written PLEASE NOTE that the use of this software may require the payment of patent royalties . You need to consider this issue before you start building derivative works . We are not warranting or indemnifying you in any way for patent royalities YOU ARE SOLELY RESPONSIBLE FOR YOUR OWN ACTIONS For more information about the AAC patents please visit vialicensing.com licensing aac-fees.aspx quot http : www.vialicensing.com licensing aac-fees.aspx quot not sure that it is a good idea to use this library",
"Question : null .. . Answer : I would like to get AAC audio from PCM by mediacodec but always got failure . Below are my coding could someone help me to figure out the root cause Thanks . media format configuration : .. . .. . encode : .. . .. . send to ffmpeg muxer .. . .. . When I extracted the stream by ffmpeg ffmpeg indicated the audio format was adpcm swf not AAC . Could someone teach me to fix the problem Thanks a lot .",
"Question : As I understand it Android will only play AAC format audio if it s encoded as MPEG-4 or 3GPP . I m able to play AAC audio encoded as M4A when it s local to the app but it fails when obtaining it from a server . The following works as the m4a file is held locally in the res raw directory . The following doesn t work . But does with MP3 s . Can anyone shed any light on why it fails when the m4a audio file is not local Here s some of the error.. . I m targeting SDK 1.6 . Comment : You re confusing encoding with file formats . AAC is an audio encoding format . M4A is a file-type or package that sits around the AAC data . 3GPP is similar but can contain other types of encoded audio . See here developer.android.com guide appendix media-formats.html http : developer.android.com guide appendix media-formats.html and here en.wikipedia.org wiki M4a http : en.wikipedia.org wiki M4a . Comment : True I should have described 3GPP and M4A as containers for AAC audio . Off the top of my head I think M4A may only be used for static files and 3GPP can only stream using RTSP rather than HTTP This would cause problems for HTTP streaming . Correct me if I m wrong.. . .. . Answer : This is a wild shot in the dark but I have seen similar behavior with the flash-player where it actually ignores the file name and only relies on the MIME type sent by the server . Any idea what headers are being sent down from example.com You might want to try wrapping your blah.m4a in a page that can set the headers and then stream the binary-data . Give these types a shot and the community would appreciate a confirmation of what works : .. . .. . audio mpeg audio mp4a audio mp4a-latm audio aac audio x-aac Comment : A good suggestion - thanks . Unfortunately I ve had no luck trying an array of possible content-types . For reference I ve listed the ones that have not worked below . It s still possible it s something to do with HTTP headers - or something - it might be that it s very fussy about what it can be fed . audio m4a audio aac audio aacp audio x-aac audio mpeg audio mp4a audio mp4a-latm audio mp4 Comment : I definitely experienced an issue with this . For our streaming purposes the MediaPlayer would not play the streaming file unless the Http header content-type was set correctly . Interestingly the content-length was not required though .",
"Question : is there a difference between M4A audio files and AAC audio files or are they exactly the same thing but with a different file extension .. . Answer : .M4A files typically contain audio only and are formatted as MPEG-4 Part 14 files .MP4 container . .AAC is not a container format and instead it is a raw MPEG-4 Part 3 bitstream with audio stream encoded . Note that M4A does not have to contain exactly AAC audio there are other valid options as well .",
"Question : I can get it to work in safari but doesn t work in chrome and firefox . any solution .. . Answer : Only Safari and IE support .aac . Here is what each browser supports : .. . .. . Internet Explorer 9.0+ : .mp3 .aac .. . Chrome : .ogg .mp3 .wav .aac .. . Firefox : .ogg .wav .. . Safari : .mp3 .aac .wav .. . Opera : .ogg .wav .. . .. . Chrome seems to support .aac http : www.chromium.org audio-video but it isn t included in the list of officially supported file extensions . I suggest using both .ogg and .mp3 or .ogg and .aac to cover all bases . References .. . .. . HTML 5 Doctor - HTML5 audio the state of play http : html5doctor.com html5-audio-the-state-of-play .. . Chromium - Audio Video http : www.chromium.org audio-video Comment : FF seems to support aac in an mp4 container if you re using vista+ developer.mozilla.org en-US docs Web HTML https : developer.mozilla.org en-US docs Web HTML Supported media formats",
"Question : I wish to play an AAC+ shoutcast stream in Python . I have tried with bass aac an extension to the Bass audio library which claims to be able to handle AAC+ unsuccessfully . I m perfectly willing to write a binding to an external library if necessary . Suggestions .. . Answer : Using GSTreamer http : gstreamer.freedesktop.org via gst-python http : gstreamer.freedesktop.org modules gst-python.html would be a good solution . GST can handle the whole audio pipeline from the HTTP streaming to speaker output . I would suggest using gst-launch to get a feel of the API .. . .. . You can use souphttpsrc or other plugins to enable receiving metadata or more advanced output . Note : The in the shoutcast URL forces a audio only stream without any metadata . This is useful to localise issues relating to shoutcast icecast and not the more general audio-streaming",
"Question : I have the following function which takes a WAV PCM file and encodes it to an AAC-encoded MP4 file using Android s MediaCode and MediaMuxer classes . This is audio only . The function runs successfully and outputs a .mp4 of reasonable that is recognized as AAC-encoded . But it doesn t play on Android web or iOS players and crashes Audacity . Is there something I am missing Code is shown below . .. . Answer : You seem to be encoding your AAC into LATM format which isn t very popular . Maybe that s the reason players won t play it . Try using some other media type audio mp4 or audio 3gpp . See AAC container formats https : en.wikipedia.org wiki Advanced Audio Coding Container formats .",
"Question : is there a difference between M4A audio files and AAC audio files or are they exactly the same thing but with a different file extension .. . Answer : They are not the same thing . An m4a is basically the same thing as an mp4 and is just a container format . codec container . It does not imply a codec and therefor could contain mp3 ac3 or any other audio codec . A AAC file is concatenated AAC frames prepended with ADTS headers and optionally an ID3 tag .",
"Question : As I understand it Android will only play AAC format audio if it s encoded as MPEG-4 or 3GPP . I m able to play AAC audio encoded as M4A when it s local to the app but it fails when obtaining it from a server . The following works as the m4a file is held locally in the res raw directory . The following doesn t work . But does with MP3 s . Can anyone shed any light on why it fails when the m4a audio file is not local Here s some of the error.. . I m targeting SDK 1.6 . Comment : You re confusing encoding with file formats . AAC is an audio encoding format . M4A is a file-type or package that sits around the AAC data . 3GPP is similar but can contain other types of encoded audio . See here developer.android.com guide appendix media-formats.html http : developer.android.com guide appendix media-formats.html and here en.wikipedia.org wiki M4a http : en.wikipedia.org wiki M4a . Comment : True I should have described 3GPP and M4A as containers for AAC audio . Off the top of my head I think M4A may only be used for static files and 3GPP can only stream using RTSP rather than HTTP This would cause problems for HTTP streaming . Correct me if I m wrong.. . .. . Answer : try -- .. . .. . 1 MP.prepareAsync .. . .. . 2 onPrepared mp.start",
"Question : is there a difference between M4A audio files and AAC audio files or are they exactly the same thing but with a different file extension .. . Answer : There are raw video and audio streams this streams cannot be played directly on most video audio-player they need to be encapsulated on a transport a raw H.264 video stream and a raw AAC audio stream need to be inside a MP4 encapsulator it can be also inside an AVI or MOV encapsulator . A MP4 file can contain a H.264 video stream and or an AAC audio stream but for some reason someone decided that a MP4 file that contains video and audio use the file extension M4V v for video and if it is an MP4 file that only contains audio to use the M4A extension that is a common practice in other encapsulators like Windows Media which use WMV and WMA or OGG which use OGV and OGA silly as it seems . So a file that has a M4A file extension is an MP4 file that can contain a AAC audio track but it is not always the case that s why programs like mediainfo become handy to know what is inside a file .",
"Question : As I understand it Android will only play AAC format audio if it s encoded as MPEG-4 or 3GPP . I m able to play AAC audio encoded as M4A when it s local to the app but it fails when obtaining it from a server . The following works as the m4a file is held locally in the res raw directory . The following doesn t work . But does with MP3 s . Can anyone shed any light on why it fails when the m4a audio file is not local Here s some of the error.. . I m targeting SDK 1.6 . Comment : You re confusing encoding with file formats . AAC is an audio encoding format . M4A is a file-type or package that sits around the AAC data . 3GPP is similar but can contain other types of encoded audio . See here developer.android.com guide appendix media-formats.html http : developer.android.com guide appendix media-formats.html and here en.wikipedia.org wiki M4a http : en.wikipedia.org wiki M4a . Comment : True I should have described 3GPP and M4A as containers for AAC audio . Off the top of my head I think M4A may only be used for static files and 3GPP can only stream using RTSP rather than HTTP This would cause problems for HTTP streaming . Correct me if I m wrong.. . .. . Answer : There is a the open-source OpenMXPlayer http : www.pocketmagic.net 2014 06 android-audio-player-using-mediacodec-mediaextractor that illustrates how to handle audio both for local files or online streaming sources . It supports not only AAC but also the other popular formats . The idea behind it is to use the MEdiaCodec API introduced in Android 4.1 . Hope this provides a good starting point for anyone needing a quick and hassle free audio-player implementation .",
"Question : I m trying to used the MediaCodec API on Android to decode an AAC stream . It s raw AAC . I tried using the MediaFormat.createAudioFormat to create the format object to pass to MediaCodec.configure but I kept getting errors when using AAC audio mp4a-latm . It works with MP3 audio mpeg though.. . .. . .. . Finally I created a MediaExtractor for an AAC file and looked at the format object it was producing . I saw that it included the key csd-0 for a ByteBuffer composed of two bytes both with the value 0x12 . If I include that key and value in the format object that I used to configure the AAC codec everything works . Does anyone have an idea what is going on The documentation states that I shouldn t configure that key . Does anyone have a pointer to MediaCodec examples to decode AAC files without using MediaExtractor to generate the format object Comment : Further investigation has lead me to believe that csd-0 contains the ESDS Elementary Stream Descriptor . Looking at MakeAACCodecSpecificData in avc utils.cpp in the Android sources I see that the first 5 bits are the object-type 2 the next 4 are the frequency index 4 48000 the next 4 are the channel config 2 . This wiki page http : wiki.multimedia.cx index.php title Understanding AAC indicates that the remaining bits are for frame length depends on core decoder and extension flag . I m using MediaFormat.createAudioFormat which should setup the important elements of the ESDS . .. . Answer : I had no issues decoding playing AAC content on the few devices I tested . My approach was to use the MediaExtractor first to set the Data source then initialise the MediaFormat and finally do the work in a loop with buffers sent in out to from the MediaCodec . For the surface I used null as this is just an audio-player so there is nothing to display . I also put together a sample code as an Android library that is available on my blog : http : www.pocketmagic.net 2014 06 android-audio-player-using-mediacodec-mediaextractor",
"Question : null .. . Answer : I want to implement pause and resume functionality to my Audio Recorder . I know I cant use MediaRecorder to do this . So please give me the source code of a class which can join two AAC audio file . Comment : MediaMuxer possibly . Comment : Possible duplicate of How to Pause and Resume Audio recording in android http : stackoverflow.com questions 21900792 how-to-pause-and-resume-audio-recording-in-android Comment : Using bytes API What happens when you join the bytes of Audio2.aac to the end of Audio1.aac . The nature of AAC is that its broken into frames so to add more frames you can just add more bytes at the end the bytes being other AAC frames Comment : Can you give me an example",
"Question : I want to know if it s really possible to play an AAC ADTS header file with Netstream.appendbytes . I m talking about files that end .aac not AAC audio inside M4A or MP4 containers . I m aware Netstream can t parse ADTS headers etc so I already have a class for parsing the data and gives back correct info such as channels bitrates framelengths etc . Putting this together gives silence : Make FLV header + append - Make audio tag header + append - now append with raw headerless AAC payload frame 1 + update previous tag size - Make new audio tag for next AAC frame append - raw headerless payload append frame 2 and so on until track end . Can someone please clarify : .. . .. . In the FLV tag we put extra byte to specify whether Raw or Sequenced AAC type . If I have removed the 7 byte header and left with only data up the next frame SyncWord . I assume its Raw but I get silence whichever setting I choose . Should I be considering anything else ie an additional function depending on type Should AAC header bytes exist in some data at some point sent to the Appendbytes command Even if I already set FLV tag to Raw AAC audio Do all AAC files hold 1024 samples per frame regardless of channels or should I multiply 1024 by channels number I ask because I need this for correct duration calculation and noticed when testing MP3s that I get silence if duration or framelengths are wrong . I have a lot of questions and a lot research AAC specs FLV specs etc but nothing is helping and there is some confused info on the net well they don t always speak from an AS3 perspective. . . I guess I just need to know it s definitely possible rather than keep on blindly against a technical limitation .. . .. . PS : I have succesfully played .MP3 audio files with AppendBytes and now changed the process to accomodate AAC ie : parsing 7 byte header not 4 byte header etc . More to it than that ofcos . Thanks for reading and hope someone out there can help . .. . Answer : I meant to answer this a while back.. . Working Demo. . A very basic demo of AAC file playback http : www.swfcabin.com swf-files 1411416171.swf see below if you need some test AAC file .. . .. . I can happily confirm that it s 100 possible to play an .aac audio file using NetStream . So to clarify my own questions : .. . .. . You need both AAC types mentioned at first to kickstart the AAC decoder then afterwards you can do the usual FLV tag with AAC type : Raw + Raw AAC data no ADTS header and continue as such until track end . Nope . No ADTS bytes should be sent to the Netstream decoder . Yes every AAC frame contains 1024 samples and each frame is equal to 23.21 milisecs around 44 frames for 1 second of audio . Channel settings are irrelevant . The image below illustrates the process . As you can see after the FLV header metadata there is tags for BOTH types at first but afterwards its AAC type raw for the rest of the way . No ADTS means remove the 7 byte header from each AAC frame and shove what s left into FLV tags . I made one FLV audio tag per AAC frame easier to deal with seeking timestamps etc .. . enter image description here http : i.stack.imgur.com uEnha.jpg .. . .. . After analysing a test FLV made with FFMPEG inside a Hex editor I understood to use both settings . I don t how they figured out you needed both instead of either one or other like the FLV Specs ver 10.1 was suggesting . I bow my head to the genius of those guys girls . I was stuck because of this : enter image description here http : i.stack.imgur.com dSLXO.jpg .. . .. . The Process image at top is enough for those who know netstream.appendbytes to get on with it : .. . .. . If you need some test audio files.. . .. . .. . .. . AAC Loop test 1 : credits : Mark 45 King - http : goo.gl U7IuWe .. . AAC Loop test 2 : credits : U.T.F.O - http : goo.gl W8ieJd .. . AAC Extended test : credits : Enya - http : goo.gl EVCy4X Comment : Code share will be posted asap but if you need playback on mobile you can try the : Fresh Planet AAC Player ANE https : github.com freshplanet ANE-AACPlayer",
"Question : I m writing a Flash video-player to play Apple HLS video streams and I m finding that any content with an AAC audio track which has been segmented by the Apple tools with the -optimize option enabled Now the default has an audio track which I can not decode The sync bytes aren t where I think they should be . What does the optimize option do to the audio Is it re-encoding it or just packing it differently Most importantly what do I need to do in order to read the audio track correctly I ve been searching for some months now but no one seems to have a technically useful answer to this i.e . anything beyond It makes the files smaller . This appears to only affect the audio track if I disable audio decoding the video plays back just fine in all cases at least all I ve seen so far - Apple tools ffmpeg commercial encoders etc . .. . Answer : Ok so after some experimenting I think I ve found the answer to my question . Normally AAC frames are packed such that a small whole number of AAC frames fit within a single Payload Unit roughly interleaved in PTS order with the video frames they synchronize with . These Payload Units are then packed into the payload space of consecutive 188 byte TS Packets with the empty space in the last TS Packet padded with junk i.e . not part of the data-stream . This can mean that in a 10 second TS segment you might have an overhead in the order of roughly 2-6 Kbytes . With AAC optimization two things appear to change . 1 . The size of the Payload Units containing the AAC frames is increased reducing overall the number of Payload Units . 2 . The Payload Units are sized to an exact multiple of the payload space in a TS Packet rather than to fit an number of whole AAC frames . This means that padding is all but eliminated - All used space is valuable data so the overall size is reduced . In addition this means that AAC frames are no longer immediately adjacent to the video frames they should sync with - They may be some considerable distance apart in fact . This also means however that an individual Payload Unit may not be able to fit a whole AAC frame at the end so as much of the frame as will fit is put in this Payload Unit and the rest is put at the beginning of the next AAC Payload Unit - This means that AAC Payload Units may not start with AAC frame sync bytes Which is what I was seeing Wherever either the read AAC frame is not long enough to contain a whole header or where the AAC payload length in the AAC header is less than remaining Payload Unit length then the remaining data must be in the next AAC Payload Unit - Note however this may be in the next segment",
"Question : As I understand it Android will only play AAC format audio if it s encoded as MPEG-4 or 3GPP . I m able to play AAC audio encoded as M4A when it s local to the app but it fails when obtaining it from a server . The following works as the m4a file is held locally in the res raw directory . The following doesn t work . But does with MP3 s . Can anyone shed any light on why it fails when the m4a audio file is not local Here s some of the error.. . I m targeting SDK 1.6 . Comment : You re confusing encoding with file formats . AAC is an audio encoding format . M4A is a file-type or package that sits around the AAC data . 3GPP is similar but can contain other types of encoded audio . See here developer.android.com guide appendix media-formats.html http : developer.android.com guide appendix media-formats.html and here en.wikipedia.org wiki M4a http : en.wikipedia.org wiki M4a . Comment : True I should have described 3GPP and M4A as containers for AAC audio . Off the top of my head I think M4A may only be used for static files and 3GPP can only stream using RTSP rather than HTTP This would cause problems for HTTP streaming . Correct me if I m wrong.. . .. . Answer : This work-around allows you to play M4A files from the net and AAC files in other containers such as MP4 3GP . It simply downloads the file and plays from the cache . Comment : Good idea but of course this requires the entire file to be downloaded first before it can be played . Could be useful for some situations but obviously not suitable as a streaming solution . Comment : That s true though this code can be built on to create a streaming solution using a local file or files as a makeshift circular-buffer . It s unfortunate that the MediaPlayer cannot receive from an InputStream or you d be able to do a circular-buffer in the standard way .",
"Question : As I understand it Android will only play AAC format audio if it s encoded as MPEG-4 or 3GPP . I m able to play AAC audio encoded as M4A when it s local to the app but it fails when obtaining it from a server . The following works as the m4a file is held locally in the res raw directory . The following doesn t work . But does with MP3 s . Can anyone shed any light on why it fails when the m4a audio file is not local Here s some of the error.. . I m targeting SDK 1.6 . Comment : You re confusing encoding with file formats . AAC is an audio encoding format . M4A is a file-type or package that sits around the AAC data . 3GPP is similar but can contain other types of encoded audio . See here developer.android.com guide appendix media-formats.html http : developer.android.com guide appendix media-formats.html and here en.wikipedia.org wiki M4a http : en.wikipedia.org wiki M4a . Comment : True I should have described 3GPP and M4A as containers for AAC audio . Off the top of my head I think M4A may only be used for static files and 3GPP can only stream using RTSP rather than HTTP This would cause problems for HTTP streaming . Correct me if I m wrong.. . .. . Answer : I wrote a smal blog on a cloud-based solution I use for a music-player I m developing . It s based on the young Android Cloud Services ACS project which isn t available yet but still it shows a potential solution using cloud-based transcoding to stream any media files . Have a look : http : positivelydisruptive.blogspot.com 2010 08 streaming-m4a-files-using-android-cloud.html .. . .. . Joel Comment : Hi Joel . It s a possible option however it removes the advantages of AAC over other formats higher perceived quality at a lower bitrate as you re just streaming MP3 in the end .",
"Question : I am trying to initialize AAC encoder with the following parameters aac-profile 5 mime audio mp4a-latm bitrate 12000 channel-count 1 sample-rate 8000 .. . .. . But the codec initialization fails with the following error : .. . .. . 06-14 19 : 17 : 58.009 6194-6450 E SoftAACEncoder2 : Unable to initialize encoder for profile sample-rate bit-rate channels .. . 06-14 19 : 17 : 58.010 6194-6449 E ACodec : OMX.google.aac.encoder ERROR 0x80001001 .. . 06-14 19 : 17 : 58.010 6194-6449 E ACodec : signalError omxError 0x80001001 internalError -2147483648 .. . 06-14 19 : 17 : 58.010 6194-6449 E MediaCodec : Codec reported err 0x80001001 actionCode 0 while in state 6 .. . .. . But when I try to initialize it with sampling rate of 16khz it works but the documentation says the AAC-HE profile supports 8khz sampling rate . Any idea what could be the issue Comment : Try bitrate 16000 or even bitrate 32000 .. . Also what is your bit-depth setting 8bit or 16bit audio Comment : Hi Thanks for the reply I tried with 16000 the result is same . I am using 16bit audio . .. . Answer : What documentation says that HE-AAC supports 8 kHz sampling rate There s also a difference between the standard itself supporting it and this particular encoder supporting it . In practice HE-AAC uses a technique called sideband replication SBR . This boils down to that the main AAC stream itself is of the half sample rate and then the higher sample rate is reconstructed on top of this . If you d encode 8 kHz audio in this way the main AAC stream would be 4 kHz and I m not sure if the encoder actually supports that . Therefore HE-AAC mostly makes sense if you have got a high sample rate - it doesn t make much sense to try to use it for a 8 kHz audio stream .",
"Question : null .. . Answer : Does dash.js supports 4 channels in the audio stream I m using mp4 container : video : h254 and audio : AAC . For the case that the AAC audio stream is 2 channels it works fine both video and audio play correctly . But 4 channels does NOT work . I m using FFMPEG to create the files and WOWZA to setup the DASH streaming . For the case that the AAC audio stream is 4 channels I get the following error : .. . .. . Command line to generate the 2-channels file : .. . .. . Command line to generate the 4-channels file : .. . .. . This is the fmmpeg -i information printed for each file : .. . .. . 2 Channels output file details : .. . .. . 4 Channels output file details : .. . .. . 4 Channels output file mdp file : .. . .. . HTML Player Code :",
"Question : null .. . Answer : I need to send raw AAC audio frames one at a time to my decoder . I was able to parse the raw AAC bitstream from an MP4 file container but I m unable to find any solutions or a way to determine audio frame size . I have used C to parse the AAC bistream using the BMFF library https : basemedia.codeplex.com from Codeplex . Comment : Which programming language Have you written any code so far If so post it here . Comment : @GoBusto I have used C to parse the AAC bistream using Bmff lib from codeplex Comment : Did you solve this Comment : @joshcomley Yes i just had to Parse the Individual samples for MP4 and feed it to the decoder ."
]
} | [
"yes-answer-long",
"yes-answer-short"
] | encoding | UNK_RELATION |
blazegraph@deployment@84 | blazegraph -- blazegraph is an open-source rdf graph database capable of clustered @placeholder . | {
"confidence": [
49.25910186767578,
47.217525482177734,
46.231231689453125,
46.15533447265625,
45.48320388793945,
44.72468185424805,
44.72468185424805,
43.955604553222656,
43.464271545410156,
42.88408279418945,
42.88408279418945,
42.88408279418945,
42.88408279418945,
41.26525115966797,
41.24662399291992,
41.20402526855469,
41.20402526855469,
41.20402526855469,
40.2480354309082,
39.765472412109375,
39.363426208496094,
39.363426208496094,
39.363426208496094,
39.363426208496094,
39.363426208496094,
39.363426208496094,
39.213294982910156,
38.142364501953125,
38.142364501953125,
37.501129150390625,
36.67888641357422,
36.46171951293945,
36.46171951293945,
35.85474395751953,
35.403934478759766,
34.97871398925781,
34.813995361328125,
34.62112045288086,
34.62112045288086,
34.62112045288086,
34.62112045288086,
34.62112045288086,
34.62112045288086,
34.612857818603516,
34.159122467041016,
33.40005874633789,
33.40005874633789,
32.719398498535156,
31.936582565307617,
31.936582565307617,
31.936582565307617,
31.936582565307617,
31.936582565307617,
31.718727111816406,
30.497665405273438,
30.497665405273438,
28.467945098876953,
28.467945098876953,
28.467945098876953,
28.467945098876953,
28.182533264160156,
26.719057083129883,
25.783405303955078,
25.58904457092285,
25.446216583251953,
23.899822235107422,
23.809234619140625,
22.786073684692383,
22.786073684692383,
22.786073684692383,
22.57455825805664,
21.676864624023438,
21.20939064025879,
21.004512786865234,
20.602785110473633,
20.067691802978516,
19.915388107299805,
19.367801666259766,
18.90704917907715,
18.59078025817871,
18.231409072875977,
17.713409423828125,
17.23084831237793,
17.23084831237793,
17.10791778564453,
17.09213638305664,
16.67867088317871,
16.67867088317871,
16.67867088317871,
16.67867088317871,
16.67867088317871,
16.67867088317871,
16.67867088317871,
16.67867088317871,
16.67867088317871,
15.700601577758789,
13.927092552185059,
13.927092552185059,
13.927092552185059,
13.927092552185059
],
"content": [
"I m using Blazegraph 2.1.2 .",
"Not sure if this Blazegraph built-in blazegraph.github.io database apidocs com bigdata rdf axioms https : blazegraph.github.io database apidocs com bigdata rdf axioms OwlAxioms.html covers that .",
"With the following RDF in Blazegraph taken from this answer http : stackoverflow.com a 16032942 : .. . .. . the following SPARQL is returning blank : .. . .. . Here are the Blazegraph namespace configs Blazegraph is running as NanoSparqlServer from command-line : .. . .. . What am I missing",
"Regarding the RDF in this example here s an update that is validated to load in Blazegraph 1.5.1 .",
"Context : 14M triples Blazegraph workbench .",
"I am trying to learn about Blazegraph .",
"I m running Blazegraph 2.1.2 on a local cluster .",
"Thanks to people that help me to answer this question in the Blazegraph mailing list .",
"You can use the Blazegraph GAS API https : wiki.blazegraph.com wiki index.php RDF GAS API Running GAS Programs to execute graph analytics on data loaded in Blazegraph .",
"I also could not create Blazegraph tag. .",
"The triple store I am using is Blazegraph .",
"do you think is better than neo4j or blazegraph",
"I am trying to implement transactions in Blazegraph .",
"Then you need to create a SAILGASEngine https : github.com blazegraph database blob master bigdata-gas src main java com bigdata rdf graph impl sail SAILGASEngine.java .",
"I have read here https : wiki.blazegraph.com wiki index.php InferenceAndTruthMaintenance that Blazegraph can use rules but I d like to get SWRL working with Blazegraph .",
"Is the search API defined here https : github.com blazegraph tinkerpop3 the only way",
"Is there any way to achieve the same results in Blazegraph without using the Search API",
"I m no Blazegraph expert but what is the motivation for you to split the journal file",
"I m experimenting with using Blazegraph to run graph algorithms on ConceptNet but first I have to get the data imported .",
"There are some RDF syntax issues but the underlying reason is that Blazegraph does not support OWL Reasoning out of the box .",
"I m not sure any Blazegraph devs are on StackOverflow but they do have a mailinglist .",
"I have not found how to address Blazegraph developers. . it seems that support is not free .",
"I am trying to insert simply by the update call of the triple store Blazegraph .",
"I know how to access Virtuso but about Blazegraph I am not sure .",
"I installed Blazegraph 2.1.1 from its .deb file .",
"When Blazegraph is importing N-Triples data it skips relative URIs .",
"Update : I found an explanation for this error in the Blazegraph documentation https : wiki.blazegraph.com wiki index.php REST API Context Not Bound Error .28Quads mode without defaultGraph.29 .",
"I am doing some experiments with the Blazegraph Nano SPARQL Server .",
"It is possible to compile Blazegraph again after updating the web.xml file .",
"I m trying to follow the example given in this answer http : stackoverflow.com a 29921434 1513916 on OWL reasoning in Blazegraph but the query : .. . .. . returns only : .. . .. . but not the expected inference : .. . .. . My namespace configuration in Blazegraph : .. . .. . What am I missing",
"appears to have column 1 converted to another Blazegraph-provided",
"How can I split a Blazegraph journal file RWStore into several files on the same server instance",
"I would like to export the results of my SPARQL query from Blazegraph into a file .",
".. . .. . Can Blazegraph store 4-column Quad data natively or am I mis-understanding the nature of RDF Triple Quad storage",
"Here are some from the beginning : .. . .. . I got fastload.properties from the Blazegraph samples on GitHub https : github.com blazegraph database blob master bigdata-sails src samples com bigdata samples fastload.properties but then changed the end : .. . .. . I added com.bigdata.journal.AbstractJournal.file blazegraph.jnl because otherwise it would tell me that property was missing .",
"Take a look at the TestBFS https : github.com blazegraph database blob master bigdata-gas src test java com bigdata rdf graph analytics TestBFS.java class in the bigdata-gas package : .. . .. . To use it outside of the test case context you need to create a SailConnection of some sort .",
"I saw the DB-Engines Ranking of Graph DBMS http : db-engines.com en ranking graph+dbms but one of my team members insists on working with Blazegraph .",
"I can t find how to bind SELECT variables for Blazegraph SPARQL query for remote Repository .",
"Unfortunately the Blazegraph developers chose to implement their access API in such a way that it is no longer Sesame-compatible .",
"You ll want to use the Blazegraph SPARQL Endpoint https : wiki.blazegraph.com wiki index.php REST API SPARQL End Point to configure it .",
"In the link you mentioned it s said that Blazegraph does not support OWL reasoning out of the box .",
"I understood the link so that the desired inference will be achieved with the given Blazegraph configuration since the parameter axiomsClass is set here to OwlAxioms .",
"But What I m really trying to do is to run GAS programs testing BFS may be against my Blazegraph remote-server .",
"What I want to achieve : Send a SPARQL CONSTRUCT query to a SPARQL endpoint via Blazegraph RemoteRepository based on Sesame SAIL get an RDF result serialize that RDF to JSON-LD .",
"I am trying to add this simple example of RDF : .. . .. . into the Blazegraph triple store but I am getting the following error : .. . .. . As far as I know I am keeping a close check at namespace .",
"You ll need to make sure to use the IP of the docker-container to access the Blazegraph instance .",
"Edit bigdata-war src WEB-INF web.xml to set the queryTimeout property as : .. . .. . Recompile Blazegraph .",
".. . .. . My Blazegraph https : www.blazegraph.com schema knowledge database to import into is configured for QUADs with : com.bigdata.rdf.store.AbstractTripleStore.quads true .. . I ve imported the Quads-file http : data.dws.informatik.uni-mannheim.de structureddata 2015-11 quads classspecific schemaOrgEvent.sample.txt into Blazegraph https : www.blazegraph.com using the web-based UPDATE console @ http : 127.0.0.1 : 9999 bigdata update .",
"Blazegraph is allowing only SPARQL queries SELECTing s p o but quadruple selections s p o c do not .",
"I created a properties test.properties file with your properties above and loaded Blazegraph with the executable-jar from Sourceforge .",
"I want to run the PageRank algorithm in Blazegraph on dataset downloaded from SNAP the Stanford Network Analysis Project .",
"As far as I can see there is a PageRank implementation in Blazegraph but I cannot find a way to run it .",
"The issue was caused due to a supressed exception in the json-ld Sesame integration library by an incompatible version of the HTTP Client in Blazegraph .",
"Specifically the rule is : .. . .. . This works just fine and dandy when I test it in Protege with the Hermit reasoner but alas it does not work when I test it in Blazegraph .",
"Blazegraph working http : i.stack.imgur.com uxN7j.png .. . .. . However if try to do anything queries upload data .. . the triple store simply fails with an ERROR : Could not contact server .",
"When I enter -i -t the container and run blazegraph manually however I can execute the wget above both against localhost and the container s IP .",
"I only wanted to point out that despite the Sesame tag-it s really Blazegraph-specific so a here s how you do this in Sesame answer won t help you .",
"I never used Blazegraph but when I look into the docs at wiki.blazegraph.com wiki index.php InferenceAndTruthMaintenance https : wiki.blazegraph.com wiki index.php InferenceAndTruthMaintenance they say It s not full RDFS e.g .",
"See for example this tutorial for Sesame http : www.rivuli-development.com further-reading sesame-cookbook creating-custom-sparql-functions and this for Blazegraph https : wiki.blazegraph.com wiki index.php CustomFunction .",
"The fact that my URIs were relative was my mistake it seems that only absolute URIs are allowed in N-Triples but it would have been nice for Blazegraph to let me know this instead of failing silently .",
"I want them to actually prepare proper RDF and simulate the process of publishing it on the web as Linked Data so I have prepared a Docker image comprising : .. . .. . Triple Store : Blazegraph https : www.blazegraph.com product listening to port 9999 .",
"I m relatively new to RDF SPARQL and I m trying to import and query some N-Quad 4 column quadruple data into Blazegraph https : www.blazegraph.com See schemaOrgEvent.sample.txt http : data.dws.informatik.uni-mannheim.de structureddata 2015-11 quads classspecific schemaOrgEvent.sample.txt .",
"If Blazegraph supports OWL reasoning e.g . not just RDFS reasoning that should be enough to let you infer that : John is a : Vegetarian at least according to this non-standard definition of vegetarian .",
"I have copied an instance of Open Refine with the RDF extension included .",
"I want to start a project based on a graph database .",
"RDF can be divided into separate graphs of triples analogous to tables in a database .",
"@SuzanCioc no the language tag is actually defined as part of RDF literals http : www.w3.org TR rdf11-concepts h3 section-Graph-Literal",
"Or are different languages stored as normal values in RDF graphs",
"So the tag concept disobeys RDF model",
"or is it just for working with in-memory on-the-fly-loaded rdf dataset",
"lang is a native SPARQL operator see the standard http : www.w3.org TR rdf-sparql-query func-lang which returns the language tag of an RDF literal http : www.w3.org TR rdf11-concepts h3 section-Graph-Literal e.g .",
"SPARQL queries RDF triples .",
"Using the W3C XML Validator http : validator.w3.org validate by input I get the following errors : .. . .. . Error Line 2 Column 8 : Namespace prefix rdf on RDF is not defined rdf : RDF .. . .. . Error Line 3 Column 19 : Namespace prefix rdf on Description is not defined .. . rdf : Description .. . .. . Error Line 4 Column 57 : Namespace prefix rdf on subject is not defined rdf : subject resource http : www.w3.org Home Lassila .. . .. . Error Line 5 Column 66 : Namespace prefix rdf on predicate is not defined .. . rdf : predicate resource http : description.org schema Creator .. . .. . Error Line 6 Column 14 : Namespace prefix rdf on object is not defined .. . rdf : object Ora Lassila rdf : object .. . .. . Error Line 7 Column 76 : Namespace prefix rdf on type is not defined .. . rdf : type resource http : www.w3.org 1999 02 22-rdf-syntax-ns Statement .. . .. . Error Line 8 Column 18 : Namespace prefix a on attributedTo is not defined .. . a : attributedTo Ralph Swick .. . .. . Similarly using the W3C RDF XML Validator http : www.w3.org RDF Validator I get the following error : .. . .. . FatalError : The prefix rdf for element rdf : RDF is not bound .",
"The RDF result works perfectly fine .",
"Titan Distributed Graph Database http : thinkaurelius.github.io titan .. . .. . It also exposes a web interface for you to easily search for chains loops and all sorts of patterns .",
"Update : even though I can access blazegraph through the web executing a query fails connection reset by peer : wget 127.0.0.1 : 9999 bigdata sparql query select 20 http : 127.0.0.1 : 9999 bigdata sparql query select 20 20where 20 20 s 20 p 20 o 20 20limit 201 .",
"I might suggest you consider and perhaps test with some different RDF stores and or SPARQL processors .",
"If I wasn t already familiar with titan I d just try those in order : graph dbms http : db-engines.com en ranking graph+dbms",
"Your sample-data is not valid XML so it can t possibly be valid RDF XML - you haven t defined any namespaces in the XML so it is invalid .",
"We are struggling with selecting a database .",
"java -Xmx2g -Dbigdata.propertyFile test.properties -jar bigdata-bundled.jar .. . .. . Go to the workbench : http : localhost : 9999 bigdata and paste the RDF below into the Update tab on the workbench selecting RDF Data with the format Turtle .",
"More exactly I want to select results in my graph where an assumption is true .",
"See current support http : www.blazegraph.com docs api com bigdata rdf axioms OwlAxioms.html .",
"If you have a particular SNAP data set converted to RDF you d like to see feel free to post a link .",
"Which database is suitable for having a fast scalable and searchable social media site",
"The fourth dimension of a Quad data store is the graph .",
"I have a file data.nq containing the following lines : .. . .. . In the same directory there is blazegraph.jar using version 2.1.0 and a file p.properties with the following content : .. . .. . Then I run the bulk loader https : wiki.blazegraph.com wiki index.php Bulk Data Load with the following command : .. . .. . However I get the following error : .. . .. . I do the same but setting the quads mode off .",
"That is setting the following property in p.properties : .. . .. . In this case I get no error but also no named graphs in the dataset .",
"How can I load quads using the bulk loader",
"It says that I have to set the property defaultGraph in the properties file .",
"Thus I have added the following line to the properties file : .. . .. . However I got the same error .",
"It is required to add defaultGraph as an option in the command-line not in the properties file .",
"I m new to semantic data what does the defaultGraph mean how does it relate to the imported N-Quad data",
"Also how are N-Quad s 4-columns consumed structured within the triple store after import i.e .",
"is ALL the data from the 4 columns available if so how is it queried structured re-constructed from SPO-triples",
"I m trying to learn and use the GAS API to implement a Random Walk over my database associating every visited vertex to the starting vertex .",
"At the moment I am puzzled how I can optimise simple lookups .",
"Suppose all my vertices have a property id which is unique .",
"This property is set by the user .",
"Is there any way to speed up finding a vertex of a particular id while still sticking to the Tinkerpop APIs"
]
} | {
"confidence": [
67.55400848388672,
65.00403594970703,
63.90319061279297,
61.056968688964844,
60.652305603027344,
57.70935821533203,
56.73047637939453,
56.71031188964844,
55.165733337402344,
55.159942626953125,
54.22473907470703,
53.43121337890625,
52.05401611328125,
52.00914764404297,
51.60576629638672,
51.26042938232422,
50.79109191894531,
50.17955780029297,
49.55337142944336,
48.81737518310547
],
"content": [
"Question : I m relatively new to RDF SPARQL and I m trying to import and query some N-Quad 4 column quadruple data into Blazegraph https : www.blazegraph.com See schemaOrgEvent.sample.txt http : data.dws.informatik.uni-mannheim.de structureddata 2015-11 quads classspecific schemaOrgEvent.sample.txt . When I import the Quads data web-console I m left with only triples-based 3-column tuple data i.e . Blazegraph is allowing only SPARQL queries SELECTing s p o but quadruple selections s p o c do not . What am I doing wrong .. . .. . Can Blazegraph store 4-column Quad data natively or am I mis-understanding the nature of RDF Triple Quad storage .. . .. . My Blazegraph https : www.blazegraph.com schema knowledge database to import into is configured for QUADs with : com.bigdata.rdf.store.AbstractTripleStore.quads true .. . I ve imported the Quads-file http : data.dws.informatik.uni-mannheim.de structureddata 2015-11 quads classspecific schemaOrgEvent.sample.txt into Blazegraph https : www.blazegraph.com using the web-based UPDATE console @ http : 127.0.0.1 : 9999 bigdata update . I haven t tried direct bulk upload https : wiki.blazegraph.com wiki index.php REST API Bulk Data Load yet . Also the imported quad data as well as becoming triples normalised appears to have column 1 converted to another Blazegraph-provided identifier the original Quad data format being 4-columns .. . .. . And after import 3-columns : .. . .. . Whose query was : .. . .. . The value t1702 is a foreign key of sorts and can be used to link-to other triples i.e . it is repeated within the imported date . .. . Answer : SPARQL queries RDF triples . The fourth dimension of a Quad data store is the graph . RDF can be divided into separate graphs of triples analogous to tables in a database . You may be able to query the Quad store with the following :",
"Question : With the following RDF in Blazegraph taken from this answer http : stackoverflow.com a 16032942 : .. . .. . the following SPARQL is returning blank : .. . .. . Here are the Blazegraph namespace configs Blazegraph is running as NanoSparqlServer from command-line : .. . .. . What am I missing .. . Answer : There are some RDF syntax issues but the underlying reason is that Blazegraph does not support OWL Reasoning out of the box . See current support http : www.blazegraph.com docs api com bigdata rdf axioms OwlAxioms.html . There has been some work towards and ELK Reasoner . Regarding the RDF in this example here s an update that is validated to load in Blazegraph 1.5.1 . It incorporates the feedbackup above and adds namespaces . I created a properties test.properties file with your properties above and loaded Blazegraph with the executable-jar from Sourceforge . java -Xmx2g -Dbigdata.propertyFile test.properties -jar bigdata-bundled.jar .. . .. . Go to the workbench : http : localhost : 9999 bigdata and paste the RDF below into the Update tab on the workbench selecting RDF Data with the format Turtle . If you then go to the query tab and run something like : .. . .. . You ll see all of the triples inferred by the OWLAxiomsVocabulary .",
"Question : null .. . Answer : I m trying to follow the example given in this answer http : stackoverflow.com a 29921434 1513916 on OWL reasoning in Blazegraph but the query : .. . .. . returns only : .. . .. . but not the expected inference : .. . .. . My namespace configuration in Blazegraph : .. . .. . What am I missing Comment : In the link you mentioned it s said that Blazegraph does not support OWL reasoning out of the box . So what do you expect Do have OWL reasoning enabled Does such an option exist Comment : I understood the link so that the desired inference will be achieved with the given Blazegraph configuration since the parameter axiomsClass is set here to OwlAxioms . Isn t Did I misunderstand this Comment : I never used Blazegraph but when I look into the docs at wiki.blazegraph.com wiki index.php InferenceAndTruthMaintenance https : wiki.blazegraph.com wiki index.php InferenceAndTruthMaintenance they say It s not full RDFS e.g . rules RDFS4a and RDFS4b are disabled by default nor OWL . It is meant to be a useful set of inference rules not corresponding directly to a standard . Comment : Moreover the docs state that for full RDFS or OWL RL you have to take by yourself . Your example needs inference based on existential restrictions . Not sure if this Blazegraph built-in blazegraph.github.io database apidocs com bigdata rdf axioms https : blazegraph.github.io database apidocs com bigdata rdf axioms OwlAxioms.html covers that . It s supposed to be a subset of OWL but there is no complete information on what s exactly covered . Comment : Ok you seem to be right . It was my delusion in understanding of the linked example . Thank you for support .",
"Question : With the following RDF in Blazegraph taken from this answer http : stackoverflow.com a 16032942 : .. . .. . the following SPARQL is returning blank : .. . .. . Here are the Blazegraph namespace configs Blazegraph is running as NanoSparqlServer from command-line : .. . .. . What am I missing .. . Answer : This data is not well formed yet : .. . .. . You d also need to say that : carrot is an individual of type : Carrot with an assertion like : .. . .. . Then since : carrot will be an instance of : Carrot and : Carrot is a subclass of : Vegetable you can infer that : carrot is an instance of : Vegetable and thus that : John : eats some : Vegetable . If Blazegraph supports OWL reasoning e.g . not just RDFS reasoning that should be enough to let you infer that : John is a : Vegetarian at least according to this non-standard definition of vegetarian .",
"Question : I want to run the PageRank algorithm in Blazegraph on dataset downloaded from SNAP the Stanford Network Analysis Project . As far as I can see there is a PageRank implementation in Blazegraph but I cannot find a way to run it . Is it possible to run it If yes how .. . Answer : You can use the Blazegraph GAS API https : wiki.blazegraph.com wiki index.php RDF GAS API Running GAS Programs to execute graph analytics on data loaded in Blazegraph . The example below shows running a PageRank over all of the data loaded in a namespace . If you have a particular SNAP data set converted to RDF you d like to see feel free to post a link . PageRank example output over the connectivity of Autonomous System AS Links : Comment : Hi How can I do it from a Java code Well I m trying to implement a algorithm but as a start I would like to run one of the implemented to start learning but I don t know how . I posted a question : stackoverflow.com questions 36261303 http : stackoverflow.com questions 36261303 gas-api-implementation-and-usage Thanks",
"Question : I m experimenting with using Blazegraph to run graph algorithms on ConceptNet but first I have to get the data imported . The data will be Write Once Read Many so I don t need any kind of incremental writing . I installed Blazegraph 2.1.1 from its .deb file . I also downloaded blazegraph.jar so that I could follow directions that involve running commands on blazegraph.jar . The file assoc.nt is in N-Triples format containing about 25 million edges . Here are some from the beginning : .. . .. . I got fastload.properties from the Blazegraph samples on GitHub https : github.com blazegraph database blob master bigdata-sails src samples com bigdata samples fastload.properties but then changed the end : .. . .. . I added com.bigdata.journal.AbstractJournal.file blazegraph.jnl because otherwise it would tell me that property was missing . I changed the bufferMode from DiskRW to Disk because someone s property file https : github.com grove triplestores blob master bigdata RWStore.properties indicated that this would give me Write-Once-Read-Many semantics which is exactly what I want . Here s my final fastload.properties : .. . .. . I ran the command : .. . .. . It spun the CPU for a few minutes but ultimately seems to have added nothing . Here s the output I got : .. . Answer : I believe I ve found an answer to the problem I was encountering . When Blazegraph is importing N-Triples data it skips relative URIs . The fact that my URIs were relative was my mistake it seems that only absolute URIs are allowed in N-Triples but it would have been nice for Blazegraph to let me know this instead of failing silently . I prefixed all my URIs with http : and a domain-name and now it is loading data . Here s what my data looks like now : .. . .. . I got some alarming output that seemed to indicate it was taking between 1 and 10 seconds to load each record but I think these warnings were misleading because they only showed up at moments when loading significantly slowed down : .. . .. . Despite the warnings it loaded 25 million edges in about 8 minutes which is not bad .",
"Question : I m preparing a Docker image to teach my students the basics of Linked Data . I want them to actually prepare proper RDF and simulate the process of publishing it on the web as Linked Data so I have prepared a Docker image comprising : .. . .. . Triple Store : Blazegraph https : www.blazegraph.com product listening to port 9999 . GRefine . I have copied an instance of Open Refine with the RDF extension included . Listening to port 3333 . Linked Data Server : I have copied an instance of Jetty with Pubby inside it . Listening to port 8080 . I have tested the three in my localhost runing Ubuntu 14.04 and they work fine . This is the Dockerfile I m using to build the image : .. . .. . I run the container and it does map the appropriate ports : .. . .. . The triple store for example seems to be working . If I go to 127.0.0.1 : 9999 I can access the triple store : .. . .. . Blazegraph working http : i.stack.imgur.com uxN7j.png .. . .. . However if try to do anything queries upload data .. . the triple store simply fails with an ERROR : Could not contact server . Since the same setting works on the host I assume I m doing something wrong with Docker . I have tried with -P instead of mapping the ports and with --net host but I get the same error . PS : Jetty also fails in the same fashion and GRefine is not even working . Comment : Update : even though I can access blazegraph through the web executing a query fails connection reset by peer : wget 127.0.0.1 : 9999 bigdata sparql query select 20 http : 127.0.0.1 : 9999 bigdata sparql query select 20 20where 20 20 s 20 p 20 o 20 20limit 201 . Comment : When I enter -i -t the container and run blazegraph manually however I can execute the wget above both against localhost and the container s IP . .. . Answer : You ll need to make sure to use the IP of the docker-container to access the Blazegraph instance . Outside of the container it will not be running on 127.0.0.1 but rather the IP assigned to the docker-container . You ll need to run something like .. . .. . docker inspect --format .NetworkSettings.IPAddress CONTAINER ID .. . .. . Where CONTAINER ID is the value of your docker instance . Comment : I m still getting the same error . I can access 127.0.0.1 : 9999 bigdata splash http : 127.0.0.1 : 9999 bigdata splash but then if I access the container s IP obtained with inspect 172.17.0.4 the connection is refused : mikel@durruti : wget 172.17.0.4 : 9999 bigdata sparql query select 20 http : 172.17.0.4 : 9999 bigdata sparql query select 20 20where 20 20 s 20 p 20 o 20 20limit 201 Konektatzen 172.17.0.4 : 9999.. . huts egin da : Connection refused Thanks",
"Question : With the following RDF in Blazegraph taken from this answer http : stackoverflow.com a 16032942 : .. . .. . the following SPARQL is returning blank : .. . .. . Here are the Blazegraph namespace configs Blazegraph is running as NanoSparqlServer from command-line : .. . .. . What am I missing .. . Answer : The reason seems to be in the fact that in .. . .. . : Carrot rdf : type : Vegetable .. . .. . you start Carrot from a capital letter but in .. . .. . .. . : eats : carrot . .. . .. . you use lowercase letter . Comment : But presumably carrot is an individual that is an instance of Carrot . Since eats is an object property it wouldn t make sense to say that John eats Carrot since object properties relate individuals with other individuals not classes . Comment : I think Carrot here is an individual same as carrot . Just not necessarily the same one . Comment : As the full definition of Carrot contains rdf : type owl : NamedIndividual I think it is just a typo Comment : Thanks for pointing to the typo fixed that . However that did not change anything . I am still not getting the desired output .",
"Question : I m trying to learn and use the GAS API to implement a Random Walk over my database associating every visited vertex to the starting vertex . I m having some issues understanding how I can manage to do this I ve been reviewing the PATHS BFS PR and other GAS classes as examples but I m not quite sure how to start . I think my implementation should extend BaseGASProgram and implement the needed methods . Also as iterative the frontier contains all the vertexes of the current iteration . The concept of predecessor is also clear to me . But I don t think that I understand very well the Gather Apply Scatter philosophy and how to distribute the Random Walk over these three concepts . Also once I implement my code how do I call it How do I even call the already implemented algorithms PR SSSP BFS etc . inside my code Should I instantiate an SSSP object and then what Or GASContext GASRunnerBase .. . Answer : Take a look at the TestBFS https : github.com blazegraph database blob master bigdata-gas src test java com bigdata rdf graph analytics TestBFS.java class in the bigdata-gas package : .. . .. . To use it outside of the test case context you need to create a SailConnection of some sort . See the blazegraph-samples GitHub project for examples . Then you need to create a SAILGASEngine https : github.com blazegraph database blob master bigdata-gas src main java com bigdata rdf graph impl sail SAILGASEngine.java . This should get you started in terms of calling the GASEngine directly at the Java layer . Comment : Thanks Brad I was just checking these classes I m going to try it out and let you know . When I got it kind of figured out I ll mark your answer . Thanks Comment : Hi Brad sorry to bother you . I ve managed to run the TestBFS program using the local example file . But What I m really trying to do is to run GAS programs testing BFS may be against my Blazegraph remote-server . I ve already connected to my server and perform queries both for selecting and inserting using RemoteRepository . But for using the GAS API and run GASPrograms do I still need to use a SailConnection or is it just for working with in-memory on-the-fly-loaded rdf dataset Thanks again for your help . Comment : @aquiros : If this answer is somewhat helpful for you then please consider accepting and or upvoting it . If you have a substantial follow-up question then please ask a new question . If you keep asking many questions in the comments then you might be perceived as a help vampire that keeps on asking questions but doesn t accept or upvote answers . Comment : @honk thanks . I m somewhat still working on this but You re right . I m gonna accept this since It was helpful in some ways",
"Question : Among the SPARQL Query Examples https : www.mediawiki.org wiki Wikibase Indexing SPARQL Query Examples there is a query for US presidents and spouses https : www.mediawiki.org wiki Wikibase Indexing SPARQL Query Examples US presidents and spouses : .. . .. . It contains function-like syntax lang l which is intended to filter by language . How does this work Is this a special function of Blazegraph Or are different languages stored as normal values in RDF graphs How can I store data this way so that it will be retrieved with the lang function correctly May I have my own function to have ND predicates like probability a 0.8 .. . Answer : lang is a native SPARQL operator see the standard http : www.w3.org TR rdf-sparql-query func-lang which returns the language tag of an RDF literal http : www.w3.org TR rdf11-concepts h3 section-Graph-Literal e.g . the EN in p foaf : name Robert @EN . . Some SPARQL engines support the ability to implement custom functions . See for example this tutorial for Sesame http : www.rivuli-development.com further-reading sesame-cookbook creating-custom-sparql-functions and this for Blazegraph https : wiki.blazegraph.com wiki index.php CustomFunction . Comment : So the tag concept disobeys RDF model Comment : @SuzanCioc no the language tag is actually defined as part of RDF literals http : www.w3.org TR rdf11-concepts h3 section-Graph-Literal",
"Question : null .. . Answer : I am trying to learn about Blazegraph . At the moment I am puzzled how I can optimise simple lookups . Suppose all my vertices have a property id which is unique . This property is set by the user . Is there any way to speed up finding a vertex of a particular id while still sticking to the Tinkerpop APIs Is the search API defined here https : github.com blazegraph tinkerpop3 the only way My previous experience is in TitanDB http : titan.thinkaurelius.com and in Titan s case it s possible to define an index which the Tinkerpop APIs integrate with flawlessly . Is there any way to achieve the same results in Blazegraph without using the Search API",
"Question : How can I connect to a triple store and access an ontology through the RDFLib Python API The triple store I am using is Blazegraph . I know how to access Virtuso but about Blazegraph I am not sure . .. . Answer : You ll want to use the Blazegraph SPARQL Endpoint https : wiki.blazegraph.com wiki index.php REST API SPARQL End Point to configure it . For the default namespace using the executable-jar this is : .. . .. . With a specific namespace kb in this example it is :",
"Question : null .. . Answer : How can I split a Blazegraph journal file RWStore into several files on the same server instance For example : I want an 100 GB journal file to be split into 5 files . Comment : I m no Blazegraph expert but what is the motivation for you to split the journal file For example what problem do you want to solve with it Please consider editing http : stackoverflow.com posts 37138823 edit your question in order to provide some details .",
"Question : I want to start a project based on a graph database . We are struggling with selecting a database . Our project is about social media sharing more than media . Each user has a profile like on Facebook with some properties city friendship following system etc . . Each user can post videos images articles sounds and some more types . I saw the DB-Engines Ranking of Graph DBMS http : db-engines.com en ranking graph+dbms but one of my team members insists on working with Blazegraph . Which database is suitable for having a fast scalable and searchable social media site .. . Answer : Titan Distributed Graph Database http : thinkaurelius.github.io titan .. . .. . It also exposes a web interface for you to easily search for chains loops and all sorts of patterns . I used it to search for patterns on a massive social network and it performed very well . The same guys that created Titan also created TinkerPop http : tinkerpop.incubator.apache.org . Comment : Did you have any experience on it do you think is better than neo4j or blazegraph please provide more details and some references . Comment : well that s why I wrote titan and not neo4j : it is the one that I used and the one I know that performs well . If I wasn t already familiar with titan I d just try those in order : graph dbms http : db-engines.com en ranking graph+dbms",
"Question : null .. . Answer : I can t find how to bind SELECT variables for Blazegraph SPARQL query for remote Repository . Examples exist only for a local repository and with different classes . IPreparedTupleQuery does not have a bindParameters method . Doing Prepare every time takes a lot of time . https : wiki.blazegraph.com wiki index.php RDR Comment : This question is not really Sesame-related . Unfortunately the Blazegraph developers chose to implement their access API in such a way that it is no longer Sesame-compatible . It superficially looks like the Sesame API but it deviates in key areas from the standard . Comment : In this particular case the problem is that their IPreparedTupleQuery interface doesn t actually extend Sesame s org.openrdf.query.TupleQuery . If it did you could simple use setBinding to add bindings to your request.. . It might be that they provide an alternative mechanism to achieve the same goal but you d be best off asking their dev support team directly . Comment : I see..thank you . Yeah for org.openrdf.query.TupleQuery I can call setBinding but for the IPreparedTupleQuery I can t.. . and I have not found the way how to do it..so I asked Comment : don t get me wrong I think it s a valid question . I only wanted to point out that despite the Sesame tag-it s really Blazegraph-specific so a here s how you do this in Sesame answer won t help you . I m not sure any Blazegraph devs are on StackOverflow but they do have a mailinglist . If you ask there and get an answer could you then post that answer here Comment : I have not found how to address Blazegraph developers. . it seems that support is not free . I also could not create Blazegraph tag. .",
"Question : I am trying to add this simple example of RDF : .. . .. . into the Blazegraph triple store but I am getting the following error : .. . .. . As far as I know I am keeping a close check at namespace . I have also tried this example : Comment : Note that your question is incomplete you haven t show how you attempt to insert the data so we have no way of knowing if you are using the appropriate API call Comment : But I have tried every simple to simple example but it is still giving error even for the ones validated by the validator . I am trying to insert simply by the update call of the triple store Blazegraph . I am also mentioning the namespace but its not working.Event for the geoname ontology its showing the same error . Comment : problem solved.There was a silly mistake.I was supposed to check the use namespace instead of writing that . .. . Answer : Your sample-data is not valid XML so it can t possibly be valid RDF XML - you haven t defined any namespaces in the XML so it is invalid . Using the W3C XML Validator http : validator.w3.org validate by input I get the following errors : .. . .. . Error Line 2 Column 8 : Namespace prefix rdf on RDF is not defined rdf : RDF .. . .. . Error Line 3 Column 19 : Namespace prefix rdf on Description is not defined .. . rdf : Description .. . .. . Error Line 4 Column 57 : Namespace prefix rdf on subject is not defined rdf : subject resource http : www.w3.org Home Lassila .. . .. . Error Line 5 Column 66 : Namespace prefix rdf on predicate is not defined .. . rdf : predicate resource http : description.org schema Creator .. . .. . Error Line 6 Column 14 : Namespace prefix rdf on object is not defined .. . rdf : object Ora Lassila rdf : object .. . .. . Error Line 7 Column 76 : Namespace prefix rdf on type is not defined .. . rdf : type resource http : www.w3.org 1999 02 22-rdf-syntax-ns Statement .. . .. . Error Line 8 Column 18 : Namespace prefix a on attributedTo is not defined .. . a : attributedTo Ralph Swick .. . .. . Similarly using the W3C RDF XML Validator http : www.w3.org RDF Validator I get the following error : .. . .. . FatalError : The prefix rdf for element rdf : RDF is not bound . Line 2 Column 10",
"Question : null .. . Answer : I have written an SWRL rule in an ontology https : raw.githubusercontent.com samuel-peers campyDatabase master Ontologies CampyOntology2.0.owl I ve written . Specifically the rule is : .. . .. . This works just fine and dandy when I test it in Protege with the Hermit reasoner but alas it does not work when I test it in Blazegraph . I have read here https : wiki.blazegraph.com wiki index.php InferenceAndTruthMaintenance that Blazegraph can use rules but I d like to get SWRL working with Blazegraph . Is it possible Comment : There s no mention of SWRL support on their website . Comment : Is SPARQL and option If so the SWRL rule can be written and executed using SPARQL . Comment : Then wouldn t the SPARQL query have to be triggered every time someone inputs the triple : someInstance : hasSampleLocale : tag retail",
"Question : How can I connect to a triple store and access an ontology through the RDFLib Python API The triple store I am using is Blazegraph . I know how to access Virtuso but about Blazegraph I am not sure . .. . Answer : You probably want to access the triple store via SPARQL with SPARQLWrapper http : rdflib.github.io sparqlwrapper .",
"Question : I am doing some experiments with the Blazegraph Nano SPARQL Server . I started the server with the following command : .. . .. . However I need to set a timeout for queries . There is a context parameter named queryTimeout http : wiki.blazegraph.com wiki index.php NanoSparqlServer web.xml for that but I do not know how it has to be used . Can I add a command option to set this parameter If this parameter can only be set in a web.xml file where can I find a minimal web.xml file that I can use to set the queryTimeout parameter .. . Answer : It is possible to compile Blazegraph again after updating the web.xml file . The steps are : .. . .. . Clone the git repository . Checkout the release . Edit bigdata-war src WEB-INF web.xml to set the queryTimeout property as : .. . .. . Recompile Blazegraph .",
"Question : I have a file data.nq containing the following lines : .. . .. . In the same directory there is blazegraph.jar using version 2.1.0 and a file p.properties with the following content : .. . .. . Then I run the bulk loader https : wiki.blazegraph.com wiki index.php Bulk Data Load with the following command : .. . .. . However I get the following error : .. . .. . I do the same but setting the quads mode off . That is setting the following property in p.properties : .. . .. . In this case I get no error but also no named graphs in the dataset . How can I load quads using the bulk loader Update : I found an explanation for this error in the Blazegraph documentation https : wiki.blazegraph.com wiki index.php REST API Context Not Bound Error .28Quads mode without defaultGraph.29 . It says that I have to set the property defaultGraph in the properties file . Thus I have added the following line to the properties file : .. . .. . However I got the same error . .. . Answer : It is required to add defaultGraph as an option in the command-line not in the properties file . Thanks to people that help me to answer this question in the Blazegraph mailing list . Comment : I m new to semantic data what does the defaultGraph mean how does it relate to the imported N-Quad data Comment : Also how are N-Quad s 4-columns consumed structured within the triple store after import i.e . is ALL the data from the 4 columns available if so how is it queried structured re-constructed from SPO-triples"
]
} | [
"yes-answer-long",
"yes-answer-short"
] | deployment | UNK_RELATION |
jsf-1.2@servlet-2.5@89 | jsf-1 .2 -- jsf-1 .2 is the latest release of the jsf 1.x specification and it works with @placeholder and jsp 2.1 . | {
"confidence": [
71.62989044189453,
69.07208251953125,
68.708984375,
68.24410247802734,
67.60406494140625,
66.02254486083984,
63.200599670410156,
62.087154388427734,
60.34587097167969,
60.31401443481445,
59.928428649902344,
59.3415412902832,
57.40340042114258,
55.64425277709961,
55.64425277709961,
55.228172302246094,
54.97553634643555,
54.73163986206055,
53.29753112792969,
52.87934494018555,
52.28045654296875,
52.28045654296875,
51.96733856201172,
51.58190155029297,
51.39199447631836,
50.820457458496094,
50.7854118347168,
50.7854118347168,
50.7854118347168,
50.30862045288086,
50.18020248413086,
48.995059967041016,
48.951637268066406,
48.951637268066406,
48.89533615112305,
48.76395034790039,
48.58531951904297,
48.51779556274414,
48.34339141845703,
48.0281982421875,
47.196266174316406,
47.196266174316406,
47.196266174316406,
47.196266174316406,
47.196266174316406,
46.94482421875,
46.85943603515625,
46.800533294677734,
46.27968978881836,
46.27968978881836,
46.27968978881836,
46.27968978881836,
46.27968978881836,
46.27968978881836,
46.08330154418945,
46.065162658691406,
45.8530158996582,
45.36933135986328,
45.239295959472656,
45.239295959472656,
45.239295959472656,
45.05010223388672,
44.74966812133789,
44.74966812133789,
44.74966812133789,
44.59022521972656,
44.574283599853516,
44.574283599853516,
44.574283599853516,
44.574283599853516,
44.574283599853516,
44.574283599853516,
44.373931884765625,
44.32299041748047,
44.29375076293945,
44.06348419189453,
43.83246994018555,
43.638343811035156,
43.558834075927734,
43.558834075927734,
43.558834075927734,
43.06304168701172,
43.01405334472656,
42.9158935546875,
42.9158935546875,
42.9158935546875,
42.9158935546875,
42.79677963256836,
42.4363899230957,
42.283905029296875,
42.283905029296875,
42.283905029296875,
42.283905029296875,
42.283905029296875,
42.028812408447266,
41.681365966796875,
41.6668815612793,
41.48777770996094,
41.36418914794922
],
"content": [
"And the OP is using JSF 1.x not 2.x .",
"This does not work on IBM WAS 7 JSF 1.2 JSP 2.1 .",
"I have to use JSF 1.x and cannot upgrade it to JSF 2 .",
"See also : .. . .. . Migrating JSF 1.1 with Ajax4jsf 1.x to JSF 2 http : stackoverflow.com questions 17553033 migrating-jsf-1-1-with-ajax4jsf-1-x-to-jsf-2 .. . Migrating from JSF 1.2 to JSF 2.0 http : stackoverflow.com questions 4441713 migrating-from-jsf-1-2-to-jsf-2-0 .. . a4j : support tag not found using JSF 2 http : stackoverflow.com questions 5402697 a4jsupport-tag-not-found-using-jsf-2",
"jsf 1.x",
"The jspx tag on question only confirms JSF 1.x more as JSP is deprecated in JSF 2.x and no one sane developer would use it in JSF 2.x .",
"It s not available in JSF 1.x .",
"Mojarra is the reference implementation of the Oracle JSF 1.x 2.x spec .",
"For that refer this answer : Migrating from JSF 1.2 to JSF 2.0 http : stackoverflow.com questions 4441713 migrating-from-jsf-1-2-to-jsf-2-0 4532870 4532870 .",
"This answer works in JSF 2.x only .",
"This is not compatible with JSF 2.x .",
"@T.G Hint : question is about JSF 1.x .",
"Migrating from JSF 1.2 to JSF 2.0 http : stackoverflow.com questions 4441713 migrating-from-jsf-1-2-to-jsf-2-0 and Why Facelets is preferred over JSP as the view definition language from JSF2.0 onwards",
"You seem to be trying to use JSF 1.2 with Facelets 1.x .",
"It s however possible to integrate Facelets 1.x in JSF 1.2 .",
"That makes sense I never used JSF 1 with JSP",
"As pointed by BallusC this answer works in JSF 2.x only sorry .",
"Note that this is not JSF 1.x specific the same applies on JSF 2.x as well and also on UIRepeat class behind Facelets ui : repeat .",
"Are you using jsf-2 or no",
"Better ask OP which JSF version exactly he is using before suggesting JSF 2.x specific solutions .",
"I ve googled for things such as custom JSF 1.x components with javascript etc .",
"classes in the stacktrace tells that you re still using Ajax4jsf for JSF 1.x .",
"jsf-1.2 or jsf 2.0",
"If you are learning JSF then avoid using that legacy JSF 1.2 thing and start with an average later version - at least JSF 2 .",
"Sadly we are using JSF 1.2 and JSP .",
"It s only migrating from JSF 1.x to 2.x which requires more work for sure if you also need to change the view technology from JSP to Facelets .",
"@Mahendran : nothing in the question implies that OP is using JSF 2.x .",
"OP did nowhere imply confirm that he is using JSF 2.x .",
"You need to look for a JSF 2.x targeted question answer .",
"JSF 1.2 is 100 backwards compatible with JSF 1.1 .",
"Is there anything equivalent in JSF 1.2 .. . .. . Passing parameters to method calls is not specific to JSF 2 .",
"my current application use jsf 1 and doesnt use Ajax",
"Upgrade your application code to work with JSF 2.x .",
"This was only available in JSF 2.x in flavor of f : ajax listener .",
"Moreover reRender attribute implies RichFaces 3.x which strongly suggests JSF 1.x .",
"Sorry I should have clarified that I m using JSF 1.2 and seems like the h : button tag only is supported in JSF 2.x",
"JSF 2.1 which offer much better functionality .",
"we are using jsf-impl jsf-api jsf-ibm jars .",
"Hope this works with JSF 1.2.. .",
"You can put .. . .. . in jour jsp jsf page .",
"We will be moving to JDeveloper 12c and JSF 2 as soon as possible .",
"@Lion probably maintenance of a legacy application that can t migrate to JSF 2 .",
"I have seen in JSF 2 that it is possible to pass parameters to method calls .",
"I have seen in JSF 2 that it is possible to pass parameters to method calls .",
"JSF 2 just happens to be part of Java EE 6 as well .",
"When trying this with JSF 1.2 this is working but not with JSF 2.2 .",
"At the console select your application then JSP and JSF options then Select a JSF implementation that the container will use for this application .",
"Case 3 namely uses JSF 2.x specific syntax .",
"I m using JSF 1.2 .",
"JSF 1.2 .. . 4 .",
"My Question is related to jsf .",
"They re both JSF 1.2 .",
"Is it a JSF version issue",
"Is there anything equivalent in JSF 1.2",
"While upgrading the application from jsf-1.1 to jsf-1.2 i am getting the below error .. . .. . Below is the tld file .. . .. . Edit 2 : Tld tag below that is used in jsp .. . .. . Edit 3 : JSP code .. . .. . Edit 4 : Below is stack-trace after changed the namespace to 2.1",
"I m using JSF 1.2 .. . .. . The mentioned context-param is introduced in JSF 2.0 .",
"But it ll in end make the upgrade path to JSF 2.x so much easier .",
"I use the latest version of JWL and Portlet Bridge jsf-ibm.jar v 3.1.20 jsf-portletbridge.jar v 3.1.19 .",
"It s not useable on JSF 1.x but it s open-source and should provide some insight .",
"I am working on JSF 1.x On an example stated in JavaServer Faces in Action .",
"You should rather be using an action event here but this was not available for inputs in JSF 1.x .",
"https : community.jboss.org message 845006 or Migrate JSF 1.2 Seam app to WildFly Beta 1 http : stackoverflow.com questions 19843066 migrate-jsf-1-2-seam-app-to-wildfly-beta-1 but the proposed solution excluding the weld subsystem doesn t work for me .",
"i m using jsf-1.2",
"JSF indeed doesn t validate that .",
"jsf-1.2 with Apache MyFaces",
"How exactly does that fail in JSF 1.2",
"Are seam 1.1 and JSF 1.2 compatible",
"I am using JSF 1.2 .",
"Does it already have JSF builtin",
"Replace .. . .. . by .. . .. . to get JSF to autocreate the bean .",
"Sorry missed the JSF 1.2 part .",
"What JSF impl version exactly",
"I m noticing a lot of issues operating the hot deploying of JSF pages in the following environment : .. . .. . 1 .",
"Why not given them up and upgrade the application to have at least JSF 2.x",
"Only if you re relying on view scoped state but in JSF 1.x the view-scope already doesn t exist as a managed-bean scope .",
"Nobody would expect that one would be using JSF 1.x these days as it has more than 5 years ago been upgraded to JSF 2.0 and is EOL ed for three years .",
"I m using JSF 1.2 not 2 so no composite-component .",
"The task is to find way to use datatable s var in the columns block using jsf-1.2 Earlier I use jsf 2.1 and I didn t have such problems .",
"I m using JDeveloper 11.1.2.4 with JSF 1.2 and having issues with the selectOneChoice components that are being populated by JSF selectItems .",
"Problem resolved only changed the jars in WEBINF jsf-api-1.2 10.jar and jsf-impl-1.2 10.jar .",
"An AJAX call invokes the JSF lifecycle the same way that any regular JSF postback would .",
"Given the lack of Facelets view handler I wonder if you re reading the right Facelets tutorial since JSF 2.0 a Facelets view-handler configuration is not mandatory as it s the default view handler already so perhaps you were accidently reading a JSF 2.0 targeted tutorial while you should really be reading the one for JSF 1.x so for the sake of completeness here s a link-to the official developer guide of Facelets 1.x http : facelets.java.net nonav docs dev docbook.html .",
"Have a look at this post http : stackoverflow.com questions 11578940 jsf-1-2-not-able-to-retreive-bean-values-in-xhtml-page 11579028 comment15320495 11579028 .",
"Or this possible when using jsf",
"Only for JSF 2.0.. .",
"But it s not possbile to set it in jsf .",
"In JSF side you mean",
"It is necessary to use the ICEfaces 1.8.2a release libraries on Glassfish 3 as the original ICEfaces 1.8.2 runtime libraries will fail with a JSF 2 not supported error when used in a JEE5 JSF 1.2 project .",
"The Sun JSF Reference Implementation also known as Sun JSF RI was named like that just JSF RI from the beginning on until version 1.2 08 .",
"I am using a selectManyListbox with JSF 1.2 .",
"I m using richfaces 3 and jsf-1.2 .",
"CKEditor is not a JSF component its a third library",
"I have a form with JSF 1.2 RichFaces 3.3.4 .",
"If you want to implement this mechanism inside JSF context .",
"I am using JSF 1.2 09 rich faces 3.3.3 jsf-facelets 1.1.14 .",
"I m not sure about the compatibility of the old Sun Rave framework on JSF 2 .",
"Using JSF 1.2 and JSP ... . .. . .. . Is it possible to iterate over a Map whose values contain Collections",
"How do I get request URL in JSF 1.2",
"In other words if you deploy your JSF 1.2 web application to a Servlet 3.0 compatible container like Tomcat 7 Glassfish 3 etc and your web.xml is declared conform Servlet 3.0 spec version then it ll just work out the box for JSF 1.x as well ."
]
} | {
"confidence": [
72.8037338256836,
70.72581481933594,
69.67899322509766,
68.17866516113281,
66.78054809570312,
64.8345947265625,
63.11548614501953,
62.46792984008789,
62.120155334472656,
61.4627571105957,
59.330543518066406,
58.371334075927734,
58.141265869140625,
57.55028533935547,
57.548118591308594,
56.86826705932617,
56.806732177734375,
56.63770294189453,
56.60669708251953,
56.18749237060547
],
"content": [
"Question : We are migrating our JSF 1.2 project to JSF 2.0 and using a command button in a JSP page .Clicking command button get a reponse from external system and display response . While clicking this command button we are getting blank page with below execption .. . .. . During debug I found that we are getting a success response but its not able to find original page as it lost state view ID .. . .. . Is there any specific config required in web.xml to save view state .. . Answer : The presence of Ajax4jsf 1.x specific org.ajax4jsf . classes in the stacktrace tells that you re still using Ajax4jsf for JSF 1.x . This is not compatible with JSF 2.x . You must remove all Ajax4jsf 1.x related JAR files and registrations in web.xml . You need to use JSF s own f : ajax facilities instead or to upgrade to RichFaces 4.x which bundles a newer JSF 2.0 compatible version of a4j : xxx tags . Note that this in turn requires Facelets instead of JSP . So you have to migrate from JSP to Facelets as well . See also : .. . .. . Migrating JSF 1.1 with Ajax4jsf 1.x to JSF 2 http : stackoverflow.com questions 17553033 migrating-jsf-1-1-with-ajax4jsf-1-x-to-jsf-2 .. . Migrating from JSF 1.2 to JSF 2.0 http : stackoverflow.com questions 4441713 migrating-from-jsf-1-2-to-jsf-2-0 .. . a4j : support tag not found using JSF 2 http : stackoverflow.com questions 5402697 a4jsupport-tag-not-found-using-jsf-2",
"Question : I would like after click on save button data should be saved and user redirected to corbeille page . This is my current implementation : .. . .. . I tried with this : .. . .. . it is not working How can I do this Comment : Have only one action . Have the save method return-type as String . After you save the values return the path to your welcome page or the navigation case to your welcome page . E.g return welcome.xhtml redirect-faces true Comment : Or you can do save in actionListener and have action welcome.xhtml redirect-faces true Comment : @Mahendran : nothing in the question implies that OP is using JSF 2.x . Moreover reRender attribute implies RichFaces 3.x which strongly suggests JSF 1.x . The jspx tag on question only confirms JSF 1.x more as JSP is deprecated in JSF 2.x and no one sane developer would use it in JSF 2.x . Better ask OP which JSF version exactly he is using before suggesting JSF 2.x specific solutions . Comment : @BalusC oh thanks . My inexperience in richfaces is showing . So I am thinking aloud here . So h : outputLink or navigation case .. . Answer : To enable page redirection just add faces-redirect true in the end of the string return on the bean . As pointed by BallusC this answer works in JSF 2.x only sorry . You could use the onComplete attribute of the a4j button to execute the redirect which version of JSF are you using tag documentation http : docs.jboss.org richfaces latest vdldoc a4j commandButton.html Comment : This answer works in JSF 2.x only . OP did nowhere imply confirm that he is using JSF 2.x . Comment : i m using jsf-1.2 Comment : Since i m new to JSF i have not worked with versions before 2.0 and cant do much to help you . About the a4j button as told above 2 actions will not work you can try to change the second one to the onComplete attribute it will execute its method after the request has been completed . Good Luck and hope your problem will be solved soon",
"Question : null .. . Answer : While upgrading the application from jsf-1.1 to jsf-1.2 i am getting the below error .. . .. . Below is the tld file .. . .. . Edit 2 : Tld tag below that is used in jsp .. . .. . Edit 3 : JSP code .. . .. . Edit 4 : Below is stack-trace after changed the namespace to 2.1 Comment : @BalusC do you have any idea . Comment : As already stated you are likely to face unusual problems regularly with those versions . Why not given them up and upgrade the application to have at least JSF 2.x It is even quite difficult to get some help for those legacy JSF versions . Comment : You don t even provide the JSP code where this exception appears . Seriously it s hard to help you with the current state of your question .",
"Question : Is there any way of iterating over a list in JSF 1.2 without using any third party components I know I can do it using Tomahawk . I also know that it can be done using JSTL but I am keeping that as my last resort . Also I cannot use ui : repeat since we are using JSF 1.2 . Is there any elegant way like ui : repeat to do it in jsf-1.2 .. . Answer : The only JSF 1.2 component http : docs.oracle.com javaee 5 javaserverfaces 1.2 docs tlddocs which can iterate over a List is the h : dataTable http : docs.oracle.com javaee 5 javaserverfaces 1.2 docs tlddocs h dataTable.html . In JSP the only other standard i.e . not 3rd party tag which can iterate over a List is the JSTL c : forEach http : docs.oracle.com javaee 5 jstl 1.1 docs tlddocs c forEach.html . Using JSTL shouldn t harm that much if the List which you d like to iterate over is already available during view build time . You ll only run into trouble when it s only available during view render time for example because it s been nested in a h : dataTable and should be iterating over a property of table s var . This just won t work due to reasons also mentioned in JSTL in JSF2 Facelets.. . makes sense http : stackoverflow.com questions 3342984 jstl-in-jsf2-facelets-makes-sense 3343681 3343681 .. . .. . There are no other ways without using a 3rd party library such as Tomahawk s t : dataList unless you re open to reinventing the wheel by creating a custom UIComponent yourself . This is however not a trivial job . It s however possible to integrate Facelets 1.x in JSF 1.2 . A guide is described in the Facelets 1.x docbook http : facelets.java.net nonav docs dev docbook.html . This is only going to be quite some of work if you already have an existing JSF application using JSP as view technology you d need to convert JSP to Facelets . But it ll in end make the upgrade path to JSF 2.x so much easier . See also a.o . Migrating from JSF 1.2 to JSF 2.0 http : stackoverflow.com questions 4441713 migrating-from-jsf-1-2-to-jsf-2-0 and Why Facelets is preferred over JSP as the view definition language from JSF2.0 onwards http : stackoverflow.com questions 13092161 why-facelets-is-preferred-over-jsp-as-the-view-definition-language-from-jsf2-0-o Comment : thanks ...... . Comment : +1 for the detailed explaination Comment : You re welcome . Comment : Thank you for this depressing piece of information.. . Why oh why am I trapped in JSF 1.2 Comment : @nvy : you need a h : column to specify a table column . Also unlike in Facelets you can t use deferred EL in template text in JSP so you should really use h : outputText for the abc . So all with all this should do : h : datatable value bean.list var abc h : column h : outputText value abc h : column h : datatable . See also the Java EE 5 tutorial : docs.oracle.com javaee 5 tutorial doc bnarf.html bnarz http : docs.oracle.com javaee 5 tutorial doc bnarf.html bnarz",
"Question : Can anybody tell me what things I need to keep in mind before migrating an application from JSF 1.1 to JSF 1.2 Comment : Are you using Rational Application Developer or WASdev Comment : no I am going to use eclipse but we are migrating from websphere 6.1 to 8.0 . .. . Answer : Not much really . JSF 1.2 is 100 backwards compatible with JSF 1.1 . Only thing which you need to take into account that JSF 1.2 fixes many really many bugs . So if you ever incorrectly assumed some specific JSF 1.1 application behavior as normal behavior but which is under the covers actually caused by a bug then it would seemingly break . In any case just run unit tests before and after the upgrade and fix the issues individually . It s only migrating from JSF 1.x to 2.x which requires more work for sure if you also need to change the view technology from JSP to Facelets . For that refer this answer : Migrating from JSF 1.2 to JSF 2.0 http : stackoverflow.com questions 4441713 migrating-from-jsf-1-2-to-jsf-2-0 4532870 4532870 . Comment : can you tell me is there any other way to run junit tests if we have not used annotations and also not extended TestCase class Comment : Would I only need to replace the libraries and the system will be up and running",
"Question : I would like after click on save button data should be saved and user redirected to corbeille page . This is my current implementation : .. . .. . I tried with this : .. . .. . it is not working How can I do this Comment : Have only one action . Have the save method return-type as String . After you save the values return the path to your welcome page or the navigation case to your welcome page . E.g return welcome.xhtml redirect-faces true Comment : Or you can do save in actionListener and have action welcome.xhtml redirect-faces true Comment : @Mahendran : nothing in the question implies that OP is using JSF 2.x . Moreover reRender attribute implies RichFaces 3.x which strongly suggests JSF 1.x . The jspx tag on question only confirms JSF 1.x more as JSP is deprecated in JSF 2.x and no one sane developer would use it in JSF 2.x . Better ask OP which JSF version exactly he is using before suggesting JSF 2.x specific solutions . Comment : @BalusC oh thanks . My inexperience in richfaces is showing . So I am thinking aloud here . So h : outputLink or navigation case .. . Answer : The simplest way : Just return your welcome page full path on your consultDossier.save method . Comment : OP asked to perform a redirect not a forward . Comment : I do Agree with BalusC and I would like to manage this through my jspx",
"Question : Before I get started with my question here are my unfortunate limitations : .. . .. . 1 . I m using JSF 1.2 not 2 so no composite-component . 2 . I m using JSP for rendering instead of facelets so none of those composite components either . 3 . I m not allowed to use any 3rd-party tag libraries richFaces iceFaces etc . These limitations are set in stone . Now moving onto my question . Currently we have a JSP subview which handles creating an address . There is a lot of javascript that goes along with this along with a backing bean . This page is never used directly . Instead it s included using a jsp : include . However there are several attributes that I want to be able to change . For instance is county required are we currently doing address scrubbing etc . In order to do this it would make sense to use a custom component I think . However I m not really sure the best way to do this . If I could I would simply turn this JSP into a composite-component and be done with it . However that s not really an option based on my limitations . What are my options This wouldn t be so difficult if it weren t for the amount of javascript involved . I know my explanation was vague however I m looking more for guidance than a direct answer . I ve googled for things such as custom JSF 1.x components with javascript etc . I haven t found many good articles however . Thanks in advance . Comment : Sounds like they expect you to pick fly poop out of pepper while wearing boxing gloves . Been there . It sounds like you want to add custom validations on form fields . The real question is why does a jsp : include forgo this What will a custom component bring to the table other than your ability to learn how to write a custom component under the JSF1.2 spec which IMHO is broken Comment : If it were only so easy No validation is done using JSF validators . Not even defining the required attribute . They don t want to change that . There are many other customizations that need done beyond validation . For example each address can be attached to a different contact whose contactId contact table s PK needs defined up front . There s also display logic : can this address be a legal address -- one defined using lat long -- instead of a mailing address . Comment : @Zack.. . I just noticed that you are a fellow Yinzer meet me in chat if you get a chance I will create a room for us . I would like to talk through this . Comment : I created a room called Zack and Maple shaft room . I will hang out there for the next couple hours and check in to see if you show up . .. . Answer : Create a JSP tag file . WEB-INF tags foo.tag .. . .. . Declare and use it as follows no additional XML configuration necessary : .. . .. . Note that JSTL is also here a view build time tag like as in Facelets . Also note that you can t use to reference JSP tag attributes . Comment : This seems like a great solution . When adding attributes to this I could still use EL for that correct my : foo showAddress bean.showAddress Comment : This does not work on IBM WAS 7 JSF 1.2 JSP 2.1 .",
"Question : I m noticing a lot of issues operating the hot deploying of JSF pages in the following environment : .. . .. . 1 . Eclipse Indigo latest version .. . 2 . Tomcat 5.5 .. . 3 . JSF 1.2 .. . 4 . Facelets View Handler .. . .. . I noticed that if I modify an already rendered xhtml page for example the CSS style of an element and then re-publish through Eclipse or manually copying the xhtml file inside Tomcat this page maintaining the servlet container up it doesn t show me the current changes . I also in vain setup the following configuration on my web application : .. . .. . My last tought is that the Restore-View Phase of a typical JSF page processing does not check if the client-view the xhtml page of course has changed from the last time it has been loaded in the FacesContext . If so how can i force the building of a new UIViewRoot object for each submitted request I m a lot frustrating in restarting the tomcat server for each change in jsf pages . Thanks a lot for your support . .. . Answer : Try adding the following to your web.xml config file : .. . .. . It tells JSF to re-render the Facelet . See how I put 1 . In a Prod environment you would always put -1 to disable this feature since the facelets shouldn t be changing in a Prod environment . You also need to make sure you can Hot Deploy class and JSP resources . You can find how to do that here : .. . .. . http : ducquoc.wordpress.com 2010 11 06 eclipse-wtp-tomcat-hot-deploy Comment : Works great thanks - Any thoughts on how to conditionally set this instead of hard-coding it into web.xml i.e . if server is localhost",
"Question : null .. . Answer : I want to add a list of strings to a data-table and display . The jsp code is .. . .. . which is working fine as the variables are prompted in the IDE . However while its deployed on the server I get an error as : .. . .. . org.apache.jasper.JasperException : Unable to compile class for JSP : .. . .. . An error occurred at line : 42 in the jsp file : NewFile1.jsp The method setVar String in the type DataTableTag is not applicable for the arguments JspValueExpression .. . .. . .. . 39 : h : panelGrid columns 2 rendered applicationDetails.deleteUser true .. . 40 : h : outputLabel value Enter User Id : h : outputLabel .. . 41 : h : inputText value applicationDetails.userId h : inputText .. . 42 : h : dataTable value applicationDetails.showUsersToDeleteList var item .. . 43 : h : outputText value item h : outputText .. . 44 : h : dataTable .. . 45 : h : panelGrid .. . Comment : This suggests classpath pollution with multiple different versioned JSF and or EL or even Java EE .. . : X libraries . What server are you deploying to Does it already have JSF builtin What server are you locally developing with Are you embedding a JSF API impl along with your webapp Comment : I am using JSF 1.2 Tomcat 7.0 JSF is not builtin for Tomcat all i want to do is display an arraylist type string in a datatable . Comment : Problem suggests that runtime classpath is polluted with duplicate wrong libraries . Logically it would be helpful for us in order to help you if you list all libraries in runtime classpath a.o . those in WAR s WEB-INF lib so we can point out offending ones . Comment : The libraries that I have in the class path are : JRE System Library jre1.8.0 66 Apache Tomcat v7.0 EclipseLink2.5.2 WebApp jsf-api-1.2.jar jsf-impl-1.2.jar jstl-1.2.jar Comment : Problem resolved only changed the jars in WEBINF jsf-api-1.2 10.jar and jsf-impl-1.2 10.jar .",
"Question : I am using a datatable and for each row I have two buttons an Edit and a Delete . I need these buttons to be read-only i.e . disabled if a certain condition is met for the row in question . I have seen in JSF 2 that it is possible to pass parameters to method calls . Is there anything equivalent in JSF 1.2 Ideally what I would like it something like the looping variable is loop and there is another bean helper which contains the method I would like to invoke : .. . .. . In this case it does not make semantic sense to add an isEditable attribute to the bean and it is not practical to create a wrapper Object around the bean . Thanks in advance . .. . Answer : I have seen in JSF 2 that it is possible to pass parameters to method calls . Is there anything equivalent in JSF 1.2 .. . .. . Passing parameters to method calls is not specific to JSF 2 . It is specific to EL 2.2 which is in turn part of JSP 2.2 Servlet 3.0 Java EE 6 . JSF 2 just happens to be part of Java EE 6 as well . In other words if you deploy your JSF 1.2 web application to a Servlet 3.0 compatible container like Tomcat 7 Glassfish 3 etc and your web.xml is declared conform Servlet 3.0 spec version then it ll just work out the box for JSF 1.x as well . If you re however still targeting a container of an older Servlet version then you need to supply a different EL implementation which supports invoking methods with arguments . One of those implementations is JBoss-EL http : docs.jboss.org seam 2.0.0.GA reference en html elenhancements.html which you can install by just dropping the jboss-el.jar https : maven.atlassian.com content repositories jboss-releases org jboss-seam jboss-el 2.0.0.GA jboss-el-2.0.0.GA.jar file in WEB-INF lib of your webapp and adding the following context parameter to the web.xml . Here s a Mojarra-specific example Mojarra http : stackoverflow.com questions 7162190 what-is-mojarra is the codename of JSF RI : .. . .. . If you re using MyFaces as JSF implementation you need the following context parameter instead : .. . .. . See also : .. . .. . Invoke direct methods or methods with arguments variables parameters in EL http : stackoverflow.com questions 3284236 invoke-direct-methods-or-methods-with-arguments-variables-parameters-in-el",
"Question : How is Mojarra different from Sun s JSF Reference Implemenation Is it just a later version Is it simply a rename .. . Answer : Mojarra is the reference implementation of the Oracle JSF 1.x 2.x spec .",
"Question : My Question is related to jsf . I am trying to make a jsf dataTable with radio buttons . For e.g . In the first row there are 5 columns : The first column has a question and rest 4 are radio buttons . : I want the user to select only one radio-button out of the 4 in a single row and repeat the same process for all the rows . I have read the following link where a javascript code is given for selecting one row using radio-buttons : How to group Radio Buttons in h : datatable jsf2.0 http : stackoverflow.com questions 7146625 how-to-group-radio-buttons-in-hdatatable-jsf2-0 and http : www.javabeat.net how-to-use-hselectoneradio-inside-hdatatable-in-jsf .. . .. . But my requirement is to select one of the radio-button in a row .. . .. . I got some clue here : http : www.javaworld.com article 2077687 enterprise-java group-radio-buttons-inside-a-jsf-datatable-component.html but I would rather prefer a javascript code to do this activity rather than going for a custom tag if possible.Or if there is another way to do the same in pure jsf . Edit : .. . .. . Code in jsp : .. . .. . JS : .. . .. . The problem is that each radio-button in the consecutive rows have the same value for radio.name.substring radio.name.lastIndexOf : but the radio buttons in the same row doesn t have the same name as I checked in View Source of browser . So how to overcome that . Comment : If you have tried it show the code you have worked with it ll help identify what mistake you may be making . Comment : @ miqdadamirali I added the code .. . Answer : The name of the radio buttons generated in html by jsf in the first row are : j id jsp 2000213722 8 : 0 : rad1 j id jsp 2000213722 8 : 0 : rad2 j id jsp 2000213722 8 : 0 : rad3 and j id jsp 2000213722 8 : 0 : rad4 .. . .. . Similarly the name of the radio buttons generated in html by jsf in the second row are : j id jsp 2000213722 8 : 1 : rad1 j id jsp 2000213722 8 : 1 : rad2 j id jsp 2000213722 8 : 1 : rad3 and j id jsp 2000213722 8 : 1 : rad4 .. . .. . So we can see the string after last colon in the name rad1 rad2 rad3 signifies that the column is different and the integer after the first colon 0 1 2 signifies that the row is different but they are same for every radio-button in the same row . So my logic will be that no two radio buttons with name i.e . 0 or 1 or 2 should be checked at the same time . So I changed my script code as follows to extract that 0 or 1 or 2 for each row : .. . .. . My requirement is that it should allow me to select radio buttons simultaneously in different rows but not in the same row in the first row all radio buttons have the name 0 in second 1 in third 2 and in fourth row the value of name is 4 . So I am taking that part of name which is same for a row i.e . the part after the first colon so that according to the logic it will allow only one radio-button to be checked with that name and it will uncheck all other radio buttons with the same name except the one checked . So this logic works for me .",
"Question : I m currently migrating a JSF-1.2 app to Wildfly 8 Final and am stuck : .. . .. . First of all I ve read many post with related issues e.g . https : community.jboss.org message 845006 or Migrate JSF 1.2 Seam app to WildFly Beta 1 http : stackoverflow.com questions 19843066 migrate-jsf-1-2-seam-app-to-wildfly-beta-1 but the proposed solution excluding the weld subsystem doesn t work for me . What I did : .. . .. . .. . I followed the multi-jsf feature tutorial here https : community.jboss.org wiki StepsToAddAnyNewJSFImplementationOrVersionToWildFly and installed JSF 1.2 as a module for wildfly to be exact 3 modules . The next was that I added exclusions for javax.faces.api and com.sun.jsf-impl main slots as well as the corresponding dependencies to the 1.2 slots to my jboss-deployment-structure.xml for my war . Since the app is using Tomahawk and Tomahawk Sandbox which I am also deploying with my ear I also excluded the main slots and included the 1.2 slots of both modules for these deployments . My problem : .. . .. . .. . When I try to call the initial page of the deployment login.xhthml I get the following error which is caused by the module org.jboss.as.jsf-injection in slot 1.2 .. . .. . The error is caused by the ConversationAwareViewHandler which is contained in the jar weld-core-jsf-2.1.2.Final.jar in module org.jboss.as.jsf-injection which I also installed with the JSF 1.2 modules . This Class still references JSF 2.2 API and fails accordingly . Excluding the weld subsystem from tomahawk and my war did also not work . I tried this : .. . .. . What can I do else .. . Answer : To make it short this problem is caused by an incompatibility of weld and JSF 1.2 that won t be fixed in future releases see here https : issues.jboss.org browse WFLY-3215 . In my opinion there are three ways one can go : .. . .. . 1 . Upgrade your application code to work with JSF 2.x . 2 . Exclude the weld subsystem where necessary will likely require reconfiguring the default-cdi settings of wildfly . 3 . Patch the class ConversationAwareViewHandler appropriately to act differently in case of the old JSF API . For me there was only the option to patch the JSF-injection module since an application upgrade was not possible and option 2 would require a larger restructuring of the application . Comment : Very well stated . I found out the following post access.redhat.com solutions 1273803 https : access.redhat.com solutions 1273803 which shows a way of configuring weld to use JSF 1.2 slot . It worked fine in EAP 6.3.0 .",
"Question : We migrated to WebSphere 7.0 from 6.1 recently and also upgraded from JSF1.1 to JSF1.2 . Everytime the session expires and anything is submitted through the browser i now get an exception : .. . .. . How can i prevent that error The results of a request are rendered on the same page as the input fields . I am using a session scoped backing bean for the page . Edit : It does look like a WAS 7.0 JSF 1.2 migration issue see https : www.ibm.com developerworks forums thread.jspa threadID 332460 tstart 30 https : www.ibm.com developerworks forums thread.jspa threadID 332460 tstart 30 no answer provided .. . .. . BalusC explains here why it happens javax.faces.application.ViewExpiredException : View could not be restored http : stackoverflow.com questions 3642919 javax-faces-application-viewexpiredexception-view-could-not-be-restored . But why did it not happen before Several apps were working fine before the migration . Comment : A slightly offtopic question but why do you near the end of 2011 still migrate to something as old as WebSphere 7 and JSF 1.2 Both have been superseded by WebSpere 8 resp . JSF 2.1 which offer much better functionality . Comment : 1 . Being on the latest version of IBM products is not a painless experience . 2 . Management decision . .. . Answer : This is not new for JSF 1.2 and also has little to do with Websphere . My guess is that you previously had state stored on the client and thus never encountered this exception before . The default in JSF is to save the state on the server . You can explicitly ask for state on the client by putting the following in web.xml : .. . .. . See this question for a more elaborate answer : Why does JSF need to save the state of UI components on the server-side http : stackoverflow.com questions 5474316 why-does-jsf-need-to-save-the-state-of-ui-components-on-the-server-side Comment : Setting was always server .",
"Question : I am trying to get the reusable group of jsf-1.2 components inside a panelgrid using Facelet tag file with @Balusc s previous answer at How to make a grid of JSF composite-component http : stackoverflow.com questions 5713718 how-to-make-a-grid-of-jsf-composite-component as a reference . I have copied WEB-INF tags input.xhtml and example.taglib.xml and the main application xhtml . However I am running into some issues . 1 . If I don t pass the id and simply do .. . .. . in my main xhtml and open that page I am getting java.lang.IllegalArgumentException and the exception trace : .. . .. . 2.To get past this when I pass the id value in my tag .. . .. . I get duplicate Id for a component j id2 : cat error . 3.To get past this I removed all the c : when and just kept one input type of text in the input.xhtml and now I see 2 textboxes rendered but when I do view-source I see .. . .. . I was expecting 2 rows but seeing 3 rows instead.Also I wasn t expecting c : set definition in the tag file to be a part of my td view . Any pointers will be appreciated . .. . Answer : For Facelets 1.x you need to declare the JSTL core taglib in the following XML namespace : .. . .. . Please note that there s no jsp in the URI for Facelets 1.x . Comment : That does it You are the Savior @Balusc : Comment : You re welcome . Comment : Not sure why but for Ajax to work with a4j : support I also had to wrap Tomahawk s div around h : message t : div id id -message h : message for id errorClass error t : div",
"Question : null .. . Answer : I am upgrading my CKEditor to latest release to resolve xss attacks vulnerability . Do I need to upgrade my JSF framework version in any case Comment : No why Did you try Errors Comment : CKEditor is not a JSF component its a third library",
"Question : I m trying to get a very basic JSF page running . Using Websphere 7.0 as the server so I m trying to stick with JSF 1.2 . The browser isn t rendering the html by which I mean that it s simply displaying all the html code including doctype etc . My first guess might be that it s not getting passed through the FacesServlet but when the url-pattern doesn t match it gets page not found . Is it a JSF version issue Any other ideas Thanks folks .. . .. . I ve included jstl-api-1.2.jar and jstl-imp-1.2.jar in my lib folder . I have the following web.xml set up : .. . .. . faces-config.xml : .. . .. . index.jsp : .. . .. . And the start of the xhtml file : Comment : It looks that you re using Facelets in your proyect . If this is the scenario then you have a problem with the suffix and the pattern : Faces Servlet will process every .jsf page i.e . http : YourServerIP YourProject index.jsf but then the default suffix is xhtml . Try changing the Faces Servlet pattern to .xhtml and check that you re accesing to your pages like http : YourServerIP YourProject index.xhtml . .. . Answer : You seem to be trying to use JSF 1.2 with Facelets 1.x . That s fine but the Facelets view handler is missing in faces-config.xml . You should have the following entry in there : .. . .. . Note that you need the jsf-facelets.jar http : mavenhub.com mvn thirdparty-releases com.sun.facelets jsf-facelets 1.1.15 file for this . Also note that you actually don t need to provide JSTL http : stackoverflow.com tags jstl info along with your webapp WebSphere 7 as being a full fledged Java EE 5 application server already provides it by itself . I recommend to remove those JSTL JAR files as it might possibly conflict with the ones provided by WebSphere . JSF is also already provided by WebSphere but Facelets not as that is only part of Java EE since Java EE 6 . Given the lack of Facelets view handler I wonder if you re reading the right Facelets tutorial since JSF 2.0 a Facelets view-handler configuration is not mandatory as it s the default view handler already so perhaps you were accidently reading a JSF 2.0 targeted tutorial while you should really be reading the one for JSF 1.x so for the sake of completeness here s a link-to the official developer guide of Facelets 1.x http : facelets.java.net nonav docs dev docbook.html .",
"Question : I am working on JSF 1.x On an example stated in JavaServer Faces in Action . My EL expression of Faces Context is not executing at run time in command button on retrieving the image . My Project Structure is as follows : .. . .. . Structure http : i.stack.imgur.com Vyox7.jpg .. . .. . I have not used any Java code in this example And it contains only one Login Page . The login.jsp is as follows : .. . .. . My Deployment Descriptor web.xml is as follows : .. . .. . Faces-config.xml is as follows : .. . .. . My Maven Dependencies are as follows : .. . .. . The Application Ran successfully . But the Image for submit button is not displaying which is retrieved through a run time expression . Browser Display : .. . .. . Browser Display http : i.stack.imgur.com WwpAi.jpg .. . .. . I have configured my JBoss tools from which i can see the preview which evaluates the expression and displays the submit button before deployment : .. . .. . Eclipse Screen Shot : .. . .. . Eclipse Screen Shots http : i.stack.imgur.com YDeLL.jpg .. . .. . The EL expression used in is not evaluating at runtime . I have to use JSF 1.x and cannot upgrade it to JSF 2 . Please suggest me the solution and help me know what is going wrong . My problem is similar to the problem stated here in this link : FacesContext not resolved at run-time http : www.java.net node 703730 .. . .. . EDIT : .. . .. . I just added a Debug statement in login.jsp which is as follows : .. . .. . Debug Result : .. . .. . Debug Result http : i.stack.imgur.com 9csi1.jpg .. . .. . The expression is getting evaluated at runtime But I feel the result must not contain balaji images submit.gif And it should only contain images submit.gif . Comment : Have you tried with request.contextPath instead Comment : Which URL do you use to access the page Comment : localhost : 8090 balaji http : localhost : 8090 balaji I am using Tomcat 7 Server . Comment : Have you tried .face instead of .jsp in your config Comment : I like a complete question but this is ridiculous . We don t need pictures of your web pages . Actually in this case the title alone is sufficient . .. . Answer : You have set an url-pattern containing faces you must access your JSF pages using this pattern or change to another pattern . Example of other pattern : Comment : If FacesServlet wasn t invoked OP would not have seen output labels and input texts at all . Comment : That makes sense I never used JSF 1 with JSP Comment : @Christophe Roussy Expressing is working fine . Plez look at the debug i have added on edited question . Now the problem is in javascript . Please help me out with the new problem with onmouseover and onmouseout events which is not executing my JS . Comment : create a new question for that",
"Question : We migrated to WebSphere 7.0 from 6.1 recently and also upgraded from JSF1.1 to JSF1.2 . Everytime the session expires and anything is submitted through the browser i now get an exception : .. . .. . How can i prevent that error The results of a request are rendered on the same page as the input fields . I am using a session scoped backing bean for the page . Edit : It does look like a WAS 7.0 JSF 1.2 migration issue see https : www.ibm.com developerworks forums thread.jspa threadID 332460 tstart 30 https : www.ibm.com developerworks forums thread.jspa threadID 332460 tstart 30 no answer provided .. . .. . BalusC explains here why it happens javax.faces.application.ViewExpiredException : View could not be restored http : stackoverflow.com questions 3642919 javax-faces-application-viewexpiredexception-view-could-not-be-restored . But why did it not happen before Several apps were working fine before the migration . Comment : A slightly offtopic question but why do you near the end of 2011 still migrate to something as old as WebSphere 7 and JSF 1.2 Both have been superseded by WebSpere 8 resp . JSF 2.1 which offer much better functionality . Comment : 1 . Being on the latest version of IBM products is not a painless experience . 2 . Management decision . .. . Answer : Have you checked this Handling session expired in JSF web application running in JBoss AS 5 http : stackoverflow.com questions 1030892 handling-session-expired-in-jsf-web-application-running-in-jboss-as-5 .. . .. . At least that is how I m handling session expiration in my JSF application . Hope it helps Steven Comment : I would like to not handle it at all as i used to . But instead of refreshing the page it now shows a HTTP 500 in the browser .",
"Question : I write a application use bundled IceFaces 1.8.1 and jsf-1.2 . but it cannot deploy in Glassfish 3.1.2 . The error message is .. . .. . java.lang.ClassNotFoundException : org.icefaces.x.context.BridgeFacesContext2 .. . Answer : Check the answer to this question : JSF 1.2 app not working with GlassFish v3 http : stackoverflow.com questions 2333330 jsf-1-2-app-not-working-with-glassfish-v3 Also check : https : wikis.oracle.com display GlassFish JavaServerFacesRI JavaServerFacesRI-IwanttouseMojarra1.2inGlassfishv3 .. . .. . Also : http : www.icesoft.org JForum posts list 17044.page sthash.4uwE5n1N.F9JR7G2x.dpbs .. . .. . However I have the same problem on Glassfish 4 and did not succeed yet deployment ok but I cannot view my pages due to : java.lang.ClassNotFoundException : org.icefaces.x.context.BridgeFacesContext2 .. . .. . UPDATE : .. . .. . Checkout http : anonsvn.icesoft.org repo icefaces tags icefaces-1.8.2a icefaces Call ant build.all inside icefaces folder . Copy the icefaces jars from lib folder inside your .war WEB-INF lib that means remove icefaces1.8.2.jar icefaces-comps-1.8.2.jar icefaces-facelets-1.8.2.jar and replace them with the same new jars - 1.8.2a version from lib folder . The explanation is here : http : www.icesoft.org JForum posts list 16568.page sthash.3XjXYufx.dpbs : .. . .. . NOTE : The ICEfaces 1.8.2a release consists of official ICEfaces 1.8.2 release plus a patch to resolve issues when deploying a JSF 1.1 or JSF 1.2 ICEfaces project to Glassfish 3 . It is necessary to use the ICEfaces 1.8.2a release libraries on Glassfish 3 as the original ICEfaces 1.8.2 runtime libraries will fail with a JSF 2 not supported error when used in a JEE5 JSF 1.2 project . - See more at : http : www.icesoft.org JForum posts list 16568.page sthash.3XjXYufx.dpuf .. . .. . Followed steps from here : http : www.icesoft.org JForum posts list 17044.page sthash.4uwE5n1N.F9JR7G2x.dpbs see deryk.sinotte s post starting with : I did the following .. . .. . After deploying the .war with 1.8.2a icefaces jars the error went away"
]
} | [
"yes-answer-long",
"yes-answer-short"
] | servlet-2.5 | UNK_RELATION |
pyjamas@deployment@115 | pyjamas -- pyjamas is a port of google web toolkit to python featuring a python debugging environment and desktop @placeholder option and compilation to javascript for web device deployment . | {
"confidence": [
56.114444732666016,
52.58490753173828,
51.151763916015625,
51.151763916015625,
51.07408142089844,
49.88813781738281,
49.25817108154297,
47.55402374267578,
45.403404235839844,
45.403404235839844,
44.83702087402344,
44.62224578857422,
44.27818298339844,
44.089080810546875,
44.00398635864258,
43.61939239501953,
42.89841079711914,
42.483707427978516,
42.2114372253418,
42.2114372253418,
42.17120361328125,
42.17120361328125,
42.000736236572266,
42.000736236572266,
41.63629150390625,
41.52153015136719,
41.52153015136719,
41.52153015136719,
41.498992919921875,
41.14410400390625,
41.14410400390625,
40.8613395690918,
40.8281135559082,
40.580387115478516,
40.004852294921875,
40.00470733642578,
39.80403137207031,
39.80403137207031,
39.80403137207031,
39.80403137207031,
39.80403137207031,
39.80403137207031,
39.31431579589844,
38.376869201660156,
38.260562896728516,
38.260562896728516,
37.9911994934082,
37.94871520996094,
37.299041748046875,
36.868324279785156,
36.69598388671875,
36.543067932128906,
36.543067932128906,
36.543067932128906,
36.543067932128906,
36.543067932128906,
36.543067932128906,
36.543067932128906,
36.543067932128906,
36.543067932128906,
36.53562927246094,
36.43560791015625,
35.40367126464844,
35.40367126464844,
35.40367126464844,
35.008602142333984,
34.81813430786133,
34.81813430786133,
34.154380798339844,
34.0380744934082,
34.0380744934082,
34.0380744934082,
34.0380744934082,
34.0380744934082,
34.0380744934082,
33.86805725097656,
33.86805725097656,
33.67873764038086,
33.33989334106445,
33.33989334106445,
32.83412551879883,
32.36122131347656,
32.15056228637695,
32.15056228637695,
32.15056228637695,
32.15056228637695,
32.15056228637695,
32.15056228637695,
32.15056228637695,
32.15056228637695,
32.15056228637695,
31.011167526245117,
31.011167526245117,
31.011167526245117,
31.011167526245117,
31.011167526245117,
31.011167526245117,
30.573532104492188,
30.489212036132812,
30.30270004272461
],
"content": [
"I am learning Pyjamas framework of python to generate the frontend which is basically a javascript code generated by Pyjamas .",
"I write python code which is translated to javascript by pyjamas .",
"I am using pyjamas to develop a web page .",
"I am writing a web application using Pyjamas .",
"tl dr : would it be reasonable to try to use Pyjamas in a .NET desktop application to convert loose Python scripts into JavaScript in-memory",
"From skimming through the documentation for Pyjamas I am getting the impression that Pyjamas itself is written in Python .",
"I tried installing pyjamas-desktop but it was not straight forward for me and I could not succeed in installing pyjamas-desktop .",
"This seems would require pyjamas-desktop be installed .",
"I m very interested Pyjamas for python javascript - but the documentation doesn t explain how to implement security with the JSON-RPC .",
"I am trying to use pyjamas http : pyjs.org to compile some python that I wrote into javascript .",
"I am thinking that one option might be to automatically translate the Python script to JavaScript using something like Pyjamas http : pyjs.org .",
"I m running Pyjamas on Windows 8.1 with Python 2.7 64-bit .",
"pyjamas is really a ported version of GWT google widget or something of the likes not a pure encompassing Python - JS .",
"Does anyone know of a good reference for Pyjamas or GWT",
"But Pyjamas is something else entirely .",
"we converted the desktop app into web app using pyjamas and it generated the html files javascripts .",
"Is this possible by running my Python through pyjamas and then using the outputted javascript into a chrome extension",
"Some tornado references on the old pyjamas list i m not familiar with it though : http : groups.google.com group pyjamas-dev search group pyjamas-dev q tornado qt g Search+in+this+group http : groups.google.com group pyjamas-dev search group pyjamas-dev q tornado qt g Search+in+this+group",
"In my opinion Pyjamas should be avoided .",
"You cannot use Tkinter with pyjamas .",
"I usually work on Django framework for developing web-applications and I am very confused in using Pyjamas with Django .",
"I am trying to create web based system using pyjamas and hangs on one functionality .",
"Is it possible to easily convert between say Jython and Java or Pyjamas and Javascript",
"Numpy is written in C and Pyjamas can t translate C to javascript .",
"What I have in mind is to provide a desktop-like frontend for my web application with pyjamas and do server-side logic with tornado .",
"Also is it a good idea to use Pyjamas with Django",
"Use pyjamas for client-side Django for server-side .",
"The pyjs vs . pyjamas doesn t match either .",
"Is there an equivalent method for GWT pyjamas",
"But I use pyjamas and the last code does rais the error stating .. . .. . It appears that pyjamas is not supporting eval and exec yet .",
"See this message https : groups.google.com forum topic pyjamas-dev 0lr7ox1O9jE on the pyjamas mailing list .",
"This can be done with javascript jQuery Sproutcore JavascriptMVC Pyjamas .. . or Adobe AIR or.. .",
"I am currently using the latest 0.8 Pyjamas in order to test .",
"that TodoApp was relevant for pyjamas 0.5 . .. . .. . for a working JSONRPC example please see either rick hightower s absolutely brilliant article : http : www.ibm.com developerworks web library wa-aj-pyjamas .. . .. . or simply see the standard pyjamas examples jsonrpc .",
"There is a tutorial on how to use Pyjamas with AJAX on this page http : pyjs.org book output Bookreader.html Rest 20of 20the 20World of of Pyjamas book .",
"There s nothing specific to integrating pinax and pyjamas more than it is specific to integrating django and pyjamas .",
"Is it possible to send these notifications to the pyjamas application running in the browser",
"I don t know if you are familiar with the pyjamas bookreader",
"pyjamas has it s own UI components .",
"I m trying to use pyjamas http : pyjs.org .",
"What other alternatives to pyjamas would you refer",
"I am trying to get scipy working with pyjamas .",
"I am somewhat new to both web development and new to the Django and Pyjamas frameworks .",
"GWT and Pyjamas were created to remove the drugery of coding Javascript and compensating for all of the different browser implementations and object models .",
"Has anyone succeeded in getting Pyjamas and Web.py working together",
"PS : I am using web.py V0.37 and the latest Pyjamas development release .",
"I am not a web application pro but need to start working on a project so I need to know if pyjamas or shall I say the javascript generated o p of pyjamas is as good as pyqt in terms of 2d graphics and widget features .",
"pyjamas doesn t support translating a tkinter app and you definitely can t run a tkinter app in a web browser .",
"Oh well pyjamas coolness makes up for a lot .",
"Or .. . .. . I can learn one of the twitter apis the Requests library and pyjamas converts python code to javascript so I can make a simple script and load it into google-chrome s firefox extensions .",
"Specifically I want to trigger events in the web application generated in the server-side and be able to display those events using the pyjamas widgets .",
"I would like to create small project using django and pyjamas .",
"I find it hard to choose between pyjamas + django and GWT + Hibernate .",
"Is pyjamas mature enough to replace GWT on a performance and functionality point of view",
"Is pyjamas mature enough to replace GWT on a performance and functionality point of view",
"I ve played with pyjamas a little and am currently implementing json-rpc with django .",
": Sorry for the pyjamas tag I m not allowed to create a pyjd tag : -",
"Does pyjamas support all the pyqt UI features with same look-and-feel",
"Is it possible to write an application using the pyjamas widgets together with the tornado server model",
"So my question is : how do I do long-polling in pyjamas",
"So i googled again read different articles and what helped me to understand things clearly is this http : code.google.com p pyjamas wiki JSONRpcWithApacheModPython and this http : groups.google.com group pyjamas-dev browse thread thread 2ddce43c99c54b57 .",
"I am having a difficult time understanding the Pyjamas GWT event-handling system .",
"Hope this http : code.google.com p pyjamas wiki DjangoWithPyjamas link helps you .",
"I have the compiled Pyjamas my project.html being served as Django templates .",
"Why do you want pyjamas to be served as django template",
"Tried all sorts of other combinations of URLs renaming directories compiling the Pyjamas part with the -d option in the hope to get a debug stack-trace .. . to no avail .",
"i am installed pyjamas as yum install pyjamas on fedora19 .. . .. . The following file i executed .. . .. . hello.py .. . .. . when i am building the js file .. . .. . i am getting following error .. . .. . How to resolve this",
"So to embed the functionality of Pyjamas inside our software I think I would need to include all of the Pyjamas source files in my software and then execute them using IronPython .",
"Okay I understand that I would add the relevant Javascript into the code .py code Pyjamas file before compiling .",
"Is there some solution for clean-urls in Pyjamas or that should be solved on some other level",
"The only thing I ve confirmed is that this gets the pyjamas-generated page to show up .",
"Further we chose mootools as js lib over pyjamas .",
"Recently I came across pyjamas http : pyjs.org framework .",
"I ve got Pyjamas and Django running via Apache2 with mod-wsgi on Windows 7 .",
"How would one get the csrf token into the Pyjamas-generated form",
"Since you get an .. . .. . ImportError : No module named pyjamas .. . .. . you may need to add the module s path to PYTHONPATH with",
"https : groups.google.com forum fromgroups topic pyjamas-dev hoUsC7iQ9J0 use this link it might help u for solving your issue",
"To answer Daniel Kluev our reason for serving the pyjamas page through django is because JSONRPC requests from pyjamas - django run into the CSRF protections in django resulting in a 403 error .",
"It seems like it might be impossible because from what I understand CSRF tokens are not persistent which a Pyjamas-generated page is .. . My Pyjamas page is generated from a Pyjamas .py file resulting in a folder full of hard-coded stuff .",
"Okay that seemed like the ticket and I m sure it would be if I could just get Django to serve up the relevant Pyjamas page in a reasonable way but I m tired of hacking the URLs interface of Django to get Pyjamas to even show up correctly .. . Too many frustrations and not enough documentation to keep going with this Pyjamas thing .",
"Also my personal experience is that most Python programmers already know Javascript reasonably well from building web apps .",
"where python has something callled : http : wiki.python.org moin Pyjamas .. . .. . Follow up : native way .. . .. . http : support.awesomium.com kb javascript introduction-to-javascript-c-integration .. . .. . http : support.awesomium.com kb wrappers-integration ansi-c-api",
"I ve managed to deploy a couple of medium sized webapps using pyjamas and believe me it was very smooth sailing .",
"If you are looking into using webkit you could get best of the two worlds and use Pyjamas with PyJD .",
"The core functionality of my application is to show some Events which are generated asynchronously in an HTML table using the corresponding pyjamas widget .",
"The route I have chosen is to combine pyjs old pyjamas with web2py via JSONRPC .",
"I have an application written in pyjamas which must check for new events to update an event table in the browser .",
"Currently I am doing JSONRPC calls in pyjamas periodically to look for new events .",
"Anyway I want to do long-polling just for the kick of it : Seriously : there must be a way to do long-polling in pyjamas isn t there",
"I downloaded the latest pyjamas and I installed it in my c : Python26 Lib site-packages folder .",
"I am trying to build the HelloWorld example page from the Pyjamas example folder .",
"Maybe some integration code and or a sample Pyjamas interface which uses Pinax as the backend -- all with adequate explanation if possible",
"So the pyjamas book http : pyjs.org book output Bookreader.html Rest 20of 20the 20World would be a good starting point .",
"I am setting up Django and Pyjamas to work together JSONRPC Client Server + Django templates .",
"I have the Django template folder set to my Pyjamas project output folder .",
"that we have seen is to pass the token to pyjamas as a cookie or form element which can then be sent back to django during the RPCs .",
"I believe pyjamas py2Js http : www.mccarroll.net py2js will do good job of conversion .",
"Pylint is probably the first place to start - it can be installed with easy install then run as .. . .. . The verbosity of errors can be easily edited - but any major problems will be highlighted immediately - and you don t need those extra pyjamas-desktop modules installed",
"Most real-world highly-scalable web apps use real Javascript typically with some supporting framework such as the very popular jQuery or any of its many competitors if for whatever reason you can t or more likely don t want to then GWT is probably a less risky choice than pyjamas in my opinion .",
"speed ease of development platform independence .. . .. . Platform independence if you mean cross-browser compatibility is a HUGE reason to use pyjamas because the python code includes a sane override infrastructure which handles everything for you ."
]
} | {
"confidence": [
79.6046142578125,
78.15840911865234,
72.43274688720703,
68.34378814697266,
66.6858139038086,
66.04603576660156,
63.78676986694336,
63.4118537902832,
62.88903045654297,
62.470855712890625,
62.22549057006836,
61.64451217651367,
60.624263763427734,
59.27875900268555,
58.601402282714844,
58.4807243347168,
57.45443344116211,
57.364498138427734,
56.904815673828125,
56.612022399902344
],
"content": [
"Question : I am using pyjamas to develop a web page . I write python code which is translated to javascript by pyjamas . This way debugging programming error is caught only when testing the web page . It would be much more efficient if we can run the code-first in the Python interpreter before compiling to javascript . This seems would require pyjamas-desktop be installed . I tried installing pyjamas-desktop but it was not straight forward for me and I could not succeed in installing pyjamas-desktop . I am wondering if there is anyway to run the code to just check for errors i.e . I do not want to see the widgets popped up . But just running in the interpreter so that errors like missing to import a module that is used in the program are caught . .. . Answer : Pylint is probably the first place to start - it can be installed with easy install then run as .. . .. . The verbosity of errors can be easily edited - but any major problems will be highlighted immediately - and you don t need those extra pyjamas-desktop modules installed Other similar tools that do the same sort of thing are PyCheckMate syntax check only PyChecker and PyFlakes .",
"Question : I am not a web application pro but need to start working on a project so I need to know if pyjamas or shall I say the javascript generated o p of pyjamas is as good as pyqt in terms of 2d graphics and widget features . I have a desktop python application which has some rich 2d graphics with animations collision-detection etc. . implemented using pyqt . Now I am specifically looking for equivalent web client with similar graphics and widget features . Does pyjamas support all the pyqt UI features with same look-and-feel I am also exploring GWT for this since I believe GWT has a good set of UIs and also supports decent 3rd party tools like vaadin smartgwt but my preference is for pyjamas because its python and I am writing a equivalent pyqt based desktop app so am more comfortable with python then java . Also am not sure if GWTs look-and-feel would match with that of pyqt based UI on windows . Any insights would be very helpful .. . .. . Thanks in advance .. . .. . Regards Shyam Comment : I figured out that there is a qt webkit which is also ported to pyqt using which a web interface can be developed with the same look-and-feel as a pyqt desktop application . Will explore this further . If somebody has any pointers to it then plz suggest .. . Answer : Probably too late but if anyone else would need an answer .. . .. . Pyjamas widgets are mostly same as GWT s most are direct translation from GWT but we have some own widgets too and do not target Qt GTK or any other toolkit . If you are looking into using webkit you could get best of the two worlds and use Pyjamas with PyJD . This way your very same application could be compiled into html css javascript and run in web browsers and at the same time you could run it in pyqt-webkit xulrunner or mshtml with original python code .",
"Question : null .. . Answer : I am working on a .NET application that uses Python for its internal scripting-language IronPython . We now have a goal of generating HTML pages using the information that users have created using the application . Ideally when we export to HTML we would be able to bring over the functionality our users have written in their Python scripts . I am thinking that one option might be to automatically translate the Python script to JavaScript using something like Pyjamas http : pyjs.org . I am not a Python expert or JavaScript expert . From skimming through the documentation for Pyjamas I am getting the impression that Pyjamas itself is written in Python . So to embed the functionality of Pyjamas inside our software I think I would need to include all of the Pyjamas source files in my software and then execute them using IronPython . However before I head down that road I want to ask whether that sounds feasible . I am trying to give my client an estimate and I can easily imagine spinning my wheels for a lot of hours before figuring out that Pyjamas just isn t going to work in that scenario . tl dr : would it be reasonable to try to use Pyjamas in a .NET desktop application to convert loose Python scripts into JavaScript in-memory",
"Question : I love both python and Java and I have this first serious web application project that I would like to carry out . I find it hard to choose between pyjamas + django and GWT + Hibernate . In fact from my beginner point of view it seems like the python world is more suitable for a quickly-developed and fun web application . And on the other hand the java world is useful for performance-oriented scalable solutions and for serious projects with big money involved.. . .. . .. . My requirements are quite simple : this application has to replace a desktop application . So the performance factor is there . But my deadlines are pretty short . Is pyjamas mature enough to replace GWT on a performance and functionality point of view .. . Answer : In fact from my beginner point of view it seems like the python world is more suitable for a quickly-developed and fun web application . And on the other hand the java world is useful for performance-oriented scalable solutions and for serious projects with big money involved.. . .. . .. . Naah . For example YouTube is in Python -- where do you see that affecting its performance scalability or big money characteristics Is pyjamas mature enough to replace GWT on a performance and functionality point of view Completely different question from the previous silly observation . GWT has been around for longer and has more users and contributors . Perhaps pyjamas is good enough for many uses -- nevertheless it is at release 0.7 with GWT at release 2.0 which can be taken as an indication that GWT is better more developed and mature . Most real-world highly-scalable web apps use real Javascript typically with some supporting framework such as the very popular jQuery or any of its many competitors if for whatever reason you can t or more likely don t want to then GWT is probably a less risky choice than pyjamas in my opinion . Comment : Of course my silly observation was ironic Comment : -1 you can t compare version numbers like that .",
"Question : I am learning Pyjamas framework of python to generate the frontend which is basically a javascript code generated by Pyjamas . Though being a new concept and a GWT equivalent in python I am interested in learning it but I can not really find out what is the actual significance of it I mean we are coding in python compiling the code and generating javascript which allows us to put CSS classes with the code . So basically it does not removes the need of a designer as well . Also is it a good idea to use Pyjamas with Django Please suggest . Thanks in advance .. . Answer : GWT and Pyjamas were created to remove the drugery of coding Javascript and compensating for all of the different browser implementations and object models . Yes you still need a designer . Yes you can code in python and not .. . have to learn Javascript in theory . No you won t have to recode to work around features of the Javascript .. . implementations in new browsers or old browsers . Comment : Thanks Terrel . I usually work on Django framework for developing web-applications and I am very confused in using Pyjamas with Django . I am not able to find out whether it should be used with Django or not because they both are so different that it does not seem to be a good deal atleast to me . Comment : Use pyjamas for client-side Django for server-side . GWT actually gives you a choice - you can write once and deploy on either server or client or both . youtube.com watch v hNEvr2eLad0 http : www.youtube.com watch v hNEvr2eLad0 Comment : Interesting comment : joelonsoftware.com items 2007 09 18.html http : www.joelonsoftware.com items 2007 09 18.html maybe GWT is the NewSDK and Gmail won t be obsolete .",
"Question : we have created the python desktop application using Tkinter library and it is working . we converted the desktop app into web app using pyjamas and it generated the html files javascripts . While opening the html file in the browser it showing the following error in the message box .. . .. . Is anything needs to be configured or setup to run this in web Thanks in advance.. . Comment : use web framework like Flask or Django and create it from scratch - web-applications work different then desktop applications . .. . Answer : pyjamas doesn t support translating a tkinter app and you definitely can t run a tkinter app in a web browser .",
"Question : Is it possible to write an application using the pyjamas widgets together with the tornado server model What I have in mind is to provide a desktop-like frontend for my web application with pyjamas and do server-side logic with tornado . Specifically I want to trigger events in the web application generated in the server-side and be able to display those events using the pyjamas widgets . Does somebody have a working example of this .. . Answer : Some tornado references on the old pyjamas list i m not familiar with it though : http : groups.google.com group pyjamas-dev search group pyjamas-dev q tornado qt g Search+in+this+group http : groups.google.com group pyjamas-dev search group pyjamas-dev q tornado qt g Search+in+this+group",
"Question : I love both python and Java and I have this first serious web application project that I would like to carry out . I find it hard to choose between pyjamas + django and GWT + Hibernate . In fact from my beginner point of view it seems like the python world is more suitable for a quickly-developed and fun web application . And on the other hand the java world is useful for performance-oriented scalable solutions and for serious projects with big money involved.. . .. . .. . My requirements are quite simple : this application has to replace a desktop application . So the performance factor is there . But my deadlines are pretty short . Is pyjamas mature enough to replace GWT on a performance and functionality point of view .. . Answer : I ve managed to deploy a couple of medium sized webapps using pyjamas and believe me it was very smooth sailing . It s a slimmed-down version of GWT too so it is easier to learn . Most of the UI widgets are 100 lines ish Also the pythonic use of OO is pretty exemplary . Comment : Can you as well provide info on how easy it is to debug a pyjama application in comparison to GWT pyjama does not have a hosted mode",
"Question : I am trying to create web based system using pyjamas and hangs on one functionality . The functionality is to click a button and it should run some python programs in back-end . I have to display the logs generated by back-end python program in the same page where the clicked button is . I really appreciate your help guys .. . Answer : There is a tutorial on how to use Pyjamas with AJAX on this page http : pyjs.org book output Bookreader.html Rest 20of 20the 20World of of Pyjamas book . Comment : Thanks @farfromhome i read that article but frankly its not explained in a way it should be . So i googled again read different articles and what helped me to understand things clearly is this http : code.google.com p pyjamas wiki JSONRpcWithApacheModPython and this http : groups.google.com group pyjamas-dev browse thread thread 2ddce43c99c54b57 . Comment : Then by Stack Overflow custom you ought to put that in a new answer yourself and select it as the right one to let people know that you ve figured it out by yourself . : Comment : Sorry for very very long delayed answer : I had added the solution to my blog pymantra.pythonblogs.com 90 pymantra archive http : pymantra.pythonblogs.com 90 pymantra archive 531 pyjamas-run python script onclick of button.html",
"Question : I want to do some pixel level image-manipulation for the HTML5 canvas through GWT or pyjamas . I know one way to do this in JavaScript is to use the contexts createImageData function to create an ImageData object which lets you access pixel values . Is there an equivalent method for GWT pyjamas Also is there a performance difference between using this ImageData object and drawing 1x1 pixel size rectangles Thanks .. . Answer : Not sure if it helps : For GWT you can check out either one of these two libraries not sure if they support ImageData : .. . .. . http : code.google.com p google-web-toolkit-incubator wiki GWTCanvas .. . .. . http : code.google.com p gwt-canvas",
"Question : Is it possible to write an application using the pyjamas widgets together with the tornado server model What I have in mind is to provide a desktop-like frontend for my web application with pyjamas and do server-side logic with tornado . Specifically I want to trigger events in the web application generated in the server-side and be able to display those events using the pyjamas widgets . Does somebody have a working example of this .. . Answer : The route I have chosen is to combine pyjs old pyjamas with web2py via JSONRPC . So far it is working fine .",
"Question : I m running Pyjamas on Windows 8.1 with Python 2.7 64-bit . I ve struggled a bit with getting everything installed but I believe the struggle has been fruitful -- I ve run bootstrap the file run bootstrap first then pyjd setup.py and have moved on to experimenting with Pyjamas DESKTOP . I m trying to view the Hello.py example in the examples helloworld directory by running both a run.bat file in the command-line by double-clicking in the GUI Windows Explorer . The code of the .bat file is below : .. . .. . The program will compile run open up a white window then immediately quit . Which makes me think it s not quite running or that Pyjamas doesn t interface with Windows 8.1 . If I run the Hello.py file directly by typing .. . .. . into the command-line the same thing happens . I m guessing this is a Windows software versioning problem 8.1 isn t capable of running the current version of Pyjamas or .....any ideas .. . Answer : Haven t run into this particular error but to help debug what is going on you can try this : .. . .. . If you can get an IDE that can have a running console of python . Here is an overly comprehensive list http : stackoverflow.com questions 81584 what-ide-to-use-for-python . Just quick browsing on the debugging column I would say use Netbeans or PyDev with Eclipse .",
"Question : I am having a difficult time understanding the Pyjamas GWT event-handling system . I am currently using the latest 0.8 Pyjamas in order to test . I am not sure of what the best event-handling structure would be as I have never done GUI programming . I haven t had much luck with the documentation I ve found thus far . Does anyone know of a good reference for Pyjamas or GWT My main difficulty comes from understanding where listeners such as onClick onMouseleave etc are coming from How are they triggered Where are they defined Do I define them What is the layered structure for the event-handling system I know these are very general questions but I m really just looking for a point in the right direction . Thank you and I appreciate any help given . .. . Answer : I would suggest you study source in examples folder . Start with this http : pyjs.org book output Bookreader.html Getting 20Started .. . .. . There are some links which has been helpful for me : http : gwt.google.com samples Showcase Showcase.html .. . .. . http : pyjs.org examples .. . .. . Also in examples folder there is a great example called showcase which gives you all API and some helpful code samples localhost somedir showcase output Showcase.html .. . .. . since API is similar you can always check them books especially helpful for understanding callback etc. . : .. . .. . http : www.amazon.com Beginning-Google-Web-Toolkit-Professional dp 1430210311 ref sr 1 12 ie UTF8 qid 1334659695 sr 8-12 http : rads.stackoverflow.com amzn click 1430210311 .. . .. . http : www.amazon.com Google-Toolkit-Applications-Ryan-Dewsbury dp 0321501969 ref sr 1 7 ie UTF8 qid 1334659695 sr 8-7 http : rads.stackoverflow.com amzn click 0321501969 .. . .. . for Django and Pyjamas http : www.derekschaefer.net 2011 02 08 pyjamas-django-pure-win .. . .. . However i agree there is a great need for better introduction tutorials beyond the hello world example . I m struggling with it myself . Good luck .. . .. . ps . I ve created small callback example that seems to work . I would be greatfull if people correct me here and edit this example to be of more use for people . All im trying to do here is to have navigation with 2 pages represented by 2 classes : Intro and Outro",
"Question : I m trying to make a simple script in python that will scan a tweet for a link and then visit that link . I m having trouble determining which direction to go from here . From what I ve researched it seems that I can Use Selenium or Mechanize Which can be used for browser automation . Would using these be considered web-scraping Or .. . .. . I can learn one of the twitter apis the Requests library and pyjamas converts python code to javascript so I can make a simple script and load it into google-chrome s firefox extensions . Which would be the better option to take .. . Answer : For web-scraping Scrapy http : scrapy.org seems to be the best framework . It is very well documented and easy to use .",
"Question : EDIT .. . .. . Okay rookie here so please bear with me . What I m trying to ask is the following : .. . .. . 1 . Is it plausible for a Python-syntax fan to use one of these options while other team members plain vanilla version Is it a matter of personal preference or would it require converting other people to using these technologies as well 2 . Is it possible to easily convert between say Jython and Java or Pyjamas and Javascript 3 . Also in general what advantages disadvantages have people experienced from using these in the real world I think that states a little more clearly what I m looking for . Input from anyone who uses these technologies in the industry would be very helpful . Thanks in advance for your insights . Comment : It s not just syntax . Syntax is mere visuals . .. . Answer : You are talking about two different things . First Jython and IronPython are Python implementations that you can embed in a Java or C application to provide scripting capability . This reduces the amount of code that you have to write overall . Or you can look at them as a way to glue together and leverage an existing collection of class libraries . However you look at it these are good things and lots of people use them . But Pyjamas is something else entirely . It complicates your web stack and makes it harder to pass projects on to other programmers . The main use-case is if you have a shop of Python programmers and they need to provide a rich Internet application-client side but cannot afford the time to learn Javascript . Not as broadly useful . Also my personal experience is that most Python programmers already know Javascript reasonably well from building web apps . It really is not much of a learning curve to just dive into Javascript . I ve written JSCRIPT scripts on Windows as a batch-file replacement and bits of Javascript with Jquery in numerous web pages . When I wanted to learn server-side Javascript for node.js it really only took a couple of weeks to round out my knowledge of Javascript . In my opinion Pyjamas should be avoided . Sooner rather than later Javascript engines will be supporting version 1.8 of the language which greatly narrows the gap between the languages other than the curly-braces issue .",
"Question : I have one design decision to make . In my web ajax application we need to decide where should we put user-interface logic Should It be completely loaded via javascript pure single page . and Only data comes and go . or .. . .. . Should server send some format XML which translated via javascript to dynamically create rich user-interface . semi-ajax . so some data and ui comes and go . Which option is better speed ease of development platform independence .. . .. . Thanks . .. . Answer : I faced similar dilemma few months back . As Lennart above says it makes sense to go for pyjamas or similar library if your app is more desktopish . Further one of the biggest advantage of pyjamas provide is logically well separated backend and frontend code . IMO that is very important . If your app is not like a desktop app like ours was then multipage offers more advantages such as single change wont breaks entire app easier to maintain etc . You might want to consider can have your app server serve json and other web server serves static content and js . Js would request json app server for data . That way we managed to keep out frontend and backend separate . Further we chose mootools as js lib over pyjamas . Ofcourse it is upto your taste and need of application . We did use python template server-side templates but at compile-time not at runtime like usual approach . This needed to change our thinking a little but the offered many advantages . I end up telling you my story but I thought it s relevant and hope that helps .",
"Question : null .. . Answer : I am trying to get scipy working with pyjamas . I have a python script that I am trying to convert to javascipt : .. . .. . However when I load it up in a browser it says this : .. . .. . I found out that I could get pyjs to translate scipy by copying scipy directly to my project folder . When I build my project it translates it but now I get the following error in my browers : .. . .. . I tried copying numpy directly to the project folder but it doesn t work . Running the python script gives an error saying numpy cannot be imported from the source directory . I looked into getting around this but it keeps going deeper and deeper into the rabbit hole . My questions then : Is there a way to use scipy in pajamas without having to write a custom module myself Is it even possible to translate imported modules packages Comment : See this message https : groups.google.com forum topic pyjamas-dev 0lr7ox1O9jE on the pyjamas mailing list . Numpy is written in C and Pyjamas can t translate C to javascript .",
"Question : What s the simplest way to set up a JSON-RPC server in python and make it secure I m very interested Pyjamas for python javascript - but the documentation doesn t explain how to implement security with the JSON-RPC . .. . Answer : I ve played with pyjamas a little and am currently implementing json-rpc with django . Have you considered using ssl to secure the site . Short of implementing your own basic encryption routine its probably the best way forward . Comment : Do you mean to distribute SSL client certs to all the clients",
"Question : I ve been trying to figure out how to convert python files into JavaScript files . I downloaded the latest pyjamas and I installed it in my c : Python26 Lib site-packages folder . I m running Python 2.6 on Windows 7 . Comment : that project hasn t been updated in over 2 years I wouldn t use it if I were you.. . Comment : @MattDMo : Really I see a commit from 15 days ago in their GitHub repository . Comment : What other alternatives to pyjamas would you refer Comment : @icktoofay Oh I was looking at PyPI.. . Comment : As a start try reading some documentation Here s an online book . pyjs.org book Bookreader.html http : pyjs.org book Bookreader.html .. . Answer : It looks like you should be able to translate a Python file to JavaScript like so : Comment : or just pyjsbuild main.py where the folder containing the .py files are in the site-packages pyjs directory",
"Question : This has already cost me many hours of Googling and I still cannot get it working time to ask SO for help : - .. . .. . I try to put together a simple test application where the frontend is written in Pyjamas the backend is running on Web.py http : webpy.org . They are supposed to talk to each other via JSON-RPC . The desired functionality is to let the user enter a string which is then converted to uppercase . There is a description in the Pyjamas online book Rest of the World http : pyjs.org book Bookreader.html Rest 20of 20the 20World on how to use JSON-RPC which presents various technologies mixed together and is therefore difficult to parse . By looking at hints e.g . from Amund Tveit s blog http : amundblog.blogspot.co.at 2008 12 ajax-with-python-combining-pyjs-and.html etc . I cobbled together the following : .. . .. . 1 The server script which is really simple : .. . .. . and it definitely works tested with a simple query script not shown that relies on Josh Marshall s JSON-RPC library https : github.com joshmarshall jsonrpclib . 2 The client-script for Pyjamas which is also straightforward : .. . .. . I compiled it with PyJs renamed the default output directory to static so that web.py can serve it edited static Client.html so that the internal references point to static : .. . .. . .. . and then pointing the browser to http : localhost : 8080 static Client.html . All I get is a blank page inspecting the page source shows static Client.html above so it was indeed served to the browser . The server s log also shows that at least some pages have been served : .. . .. . No indication of what went wrong however . Tried all sorts of other combinations of URLs renaming directories compiling the Pyjamas part with the -d option in the hope to get a debug stack-trace .. . to no avail . Has anyone succeeded in getting Pyjamas and Web.py working together If yes then please share how . Thanks . PS : I am using web.py V0.37 and the latest Pyjamas development release . The current stable release V0.8.1 does not work either . .. . Answer : https : groups.google.com forum fromgroups topic pyjamas-dev hoUsC7iQ9J0 use this link it might help u for solving your issue"
]
} | [
"yes-answer-long",
"yes-answer-short"
] | deployment | UNK_RELATION |
pcre.net@wrapper@32 | pcre.net -- pcre.net is a .net @placeholder for the pcre library . | {
"confidence": [
59.54975509643555,
54.913368225097656,
41.5172119140625,
37.7318115234375,
28.017471313476562,
26.224342346191406,
22.87809944152832,
18.561840057373047,
17.284130096435547,
15.68350601196289,
14.39933967590332,
12.829507827758789,
12.829507827758789,
12.829507827758789,
12.829507827758789,
12.829507827758789,
12.829507827758789,
12.829507827758789,
12.829507827758789,
12.829507827758789,
12.829507827758789,
12.829507827758789,
12.829507827758789,
12.829507827758789,
12.829507827758789,
12.829507827758789,
12.829507827758789,
12.829507827758789,
11.101489067077637,
11.101489067077637,
11.101489067077637,
11.101489067077637,
11.101489067077637,
11.101489067077637,
11.101489067077637,
11.101489067077637,
11.101489067077637,
11.101489067077637,
11.101489067077637,
11.101489067077637,
11.101489067077637,
11.101489067077637,
11.101489067077637
],
"content": [
"Disclaimer : I m the author of PCRE.NET https : github.com ltrzesniewski pcre-net .",
"I use PCRE.NET https : github.com ltrzesniewski pcre-net Perl Compatible Regular Expressions for .NET lib .",
"PCRE.NET is an AnyCPU assembly which ships both an x86 and an x64 version of the native library inside .",
"In the currently available PCRE.NET we can make it either 32-bit or 64 due to its C++ dependencies .",
"You could also try the following if you re willing to spend a few minutes : clone the PCRE.NET repository build the solution in either x86 or x64 mode depending on your platform and reference the obtained PCRE.NET.dll and PCRE.NET.Wrapper.dll instead of the NuGet package in your ASP.NET solution .",
"Meanwhile I ve opened an issue here https : github.com ltrzesniewski pcre-net issues 5 .",
"I want an AnyCPU dll for PCRE for C .",
".. . .. . To make the library compatible with .NET 4 you ll have to replace some interfaces like IReadOnlyList T with IList T Volatile.Write with Thread.VolatileWrite etc .",
"I ll have to download the source and build the sln as my application is on .net-4.0 while the one from NuGet is build using .net-4.5",
"The best way to use the library is through the NuGet package though .",
"Last but not least make sure to run the build script build Build.Bat to compile the library as it will execute the steps required to embed the mixed-mode assemblies inside PCRE.NET.dll .",
"I have a interesting error and have a two application .",
"One is Asp.net APP and other one is Console APP .",
"My Console APP is work good but Asp.net APP give error Stackoverflow .. . .. . What can I do for Asp.net App",
"Console APP : .. . .. . Asp.Net APP : .. . .. . Error : .. . .. . An unhandled-exception of type System.StackOverflowException occurred in 420cc350a653e64458da2ef4f8e4ac89.dll .. . .. .",
"enter image description here http : i.stack.imgur.com rdN2a.png .. . .. . Best Regards",
"Hey there I m the lib author : Interesting error you ve got there could you post more of the stack-trace",
"@LucasTrzesniewski Firstly Thank you for this lib .",
"I looked exception detail but there is a no more information .",
"Cannot evaluate expression because the current thread is in a stack-overflow state . .",
"How can I get detail error message",
"Hmm yes the stack-overflow completely breaks the app and therefore the debugger.. .",
"I ll try to reproduce this issue on my side but I can t give promises about the timeframe .",
"I never tested it with ASP.NET but I suspect this might be a LibZ+appdomains related issue .",
"If this workaround works it means it s a LibZ issue I use it to package both assemblies into a single DLL hence the GUID-looking DLL name in the error .",
"What are you trying to match with :",
". 1 is it C comments",
"If yes why do you need a recursive pattern since comments can t be nested the first close the comment even there are several before .",
"Is there an implementation that can be truly MSIL like using DllImport with an if else for selecting the correct source based on the application .",
"If not Can anyone guide as to how to make one .",
"Any help would be appreciated",
"It will choose the correct one at runtime .",
"It won t run or ARM or any other architecture though .",
"If you want some details the main MSIL assembly contains two mixed-mode assemblies in its resources .",
"At runtime it will choose the correct one unpack it into TEMP then load and use it .",
"You need to have the MSVC 2015 redistributable https : support.microsoft.com en-us kb 2977003 package installed though because the C++ CLI part depends on it .",
"As for this line : .. . .. . You could replace it with : .. . .. . Not that pretty but works .",
"Ok This might be a stupid question But While adding the reference does anything else needs to be added to the references of the project in use or just refering PCRE.NET.dll enough",
"As I can see The PCRE.NET.dll is AnyCPU but the PCRE.NET.Wrapper is 64 bit.. .",
"Nope PCRE.NET.dll is enough it embeds both PCRE.NET.Wrapper.x86.dll and PCRE.NET.Wrapper.x64.dll if you use the released precompiled version or use the build script .",
"Ok I see then just make sure you use the build script after you change the code - it will package the self-contained dll .",
"You ll have to switch a couple interfaces like IReadOnlyList to IList on the way .",
"Error C3083 Volatile : the symbol to the left of a : : must be a type PCRE.NET.Wrapper InternalRegex.cpp 207 Error C2039 Write : is not a member of System : : Threading PCRE.NET.Wrapper InternalRegex.cpp 207 Error C3861 Write : identifier not found PCRE.NET.Wrapper InternalRegex.cpp 207 Error active name followed by : : must be a class or namespace name PCRE.NET.Wrapper InternalRegex.cpp 207 I am getting the below errors can you shed any light on how to solve them"
]
} | {
"confidence": [
63.40216827392578,
60.292572021484375
],
"content": [
"Question : I want an AnyCPU dll for PCRE for C . In the currently available PCRE.NET we can make it either 32-bit or 64 due to its C++ dependencies . Is there an implementation that can be truly MSIL like using DllImport with an if else for selecting the correct source based on the application . If not Can anyone guide as to how to make one . Any help would be appreciated .. . Answer : Disclaimer : I m the author of PCRE.NET https : github.com ltrzesniewski pcre-net . PCRE.NET is an AnyCPU assembly which ships both an x86 and an x64 version of the native library inside . It will choose the correct one at runtime . It won t run or ARM or any other architecture though . If you want some details the main MSIL assembly contains two mixed-mode assemblies in its resources . At runtime it will choose the correct one unpack it into TEMP then load and use it . You need to have the MSVC 2015 redistributable https : support.microsoft.com en-us kb 2977003 package installed though because the C++ CLI part depends on it . .. . .. . To make the library compatible with .NET 4 you ll have to replace some interfaces like IReadOnlyList T with IList T Volatile.Write with Thread.VolatileWrite etc . As for this line : .. . .. . You could replace it with : .. . .. . Not that pretty but works . Last but not least make sure to run the build script build Build.Bat to compile the library as it will execute the steps required to embed the mixed-mode assemblies inside PCRE.NET.dll . Comment : Ok This might be a stupid question But While adding the reference does anything else needs to be added to the references of the project in use or just refering PCRE.NET.dll enough As I can see The PCRE.NET.dll is AnyCPU but the PCRE.NET.Wrapper is 64 bit.. . Comment : Nope PCRE.NET.dll is enough it embeds both PCRE.NET.Wrapper.x86.dll and PCRE.NET.Wrapper.x64.dll if you use the released precompiled version or use the build script . The best way to use the library is through the NuGet package though . Comment : I ll have to download the source and build the sln as my application is on .net-4.0 while the one from NuGet is build using .net-4.5 Comment : Ok I see then just make sure you use the build script after you change the code - it will package the self-contained dll . You ll have to switch a couple interfaces like IReadOnlyList to IList on the way . Comment : Error C3083 Volatile : the symbol to the left of a : : must be a type PCRE.NET.Wrapper InternalRegex.cpp 207 Error C2039 Write : is not a member of System : : Threading PCRE.NET.Wrapper InternalRegex.cpp 207 Error C3861 Write : identifier not found PCRE.NET.Wrapper InternalRegex.cpp 207 Error active name followed by : : must be a class or namespace name PCRE.NET.Wrapper InternalRegex.cpp 207 I am getting the below errors can you shed any light on how to solve them",
"Question : null .. . Answer : I use PCRE.NET https : github.com ltrzesniewski pcre-net Perl Compatible Regular Expressions for .NET lib . I have a interesting error and have a two application . One is Asp.net APP and other one is Console APP . My Console APP is work good but Asp.net APP give error Stackoverflow .. . .. . What can I do for Asp.net App Console APP : .. . .. . Asp.Net APP : .. . .. . Error : .. . .. . An unhandled-exception of type System.StackOverflowException occurred in 420cc350a653e64458da2ef4f8e4ac89.dll .. . .. . enter image description here http : i.stack.imgur.com rdN2a.png .. . .. . Best Regards Comment : Hey there I m the lib author : Interesting error you ve got there could you post more of the stack-trace Comment : @LucasTrzesniewski Firstly Thank you for this lib . I looked exception detail but there is a no more information . Cannot evaluate expression because the current thread is in a stack-overflow state . . How can I get detail error message Comment : Hmm yes the stack-overflow completely breaks the app and therefore the debugger.. . I ll try to reproduce this issue on my side but I can t give promises about the timeframe . I never tested it with ASP.NET but I suspect this might be a LibZ+appdomains related issue . Meanwhile I ve opened an issue here https : github.com ltrzesniewski pcre-net issues 5 . Comment : You could also try the following if you re willing to spend a few minutes : clone the PCRE.NET repository build the solution in either x86 or x64 mode depending on your platform and reference the obtained PCRE.NET.dll and PCRE.NET.Wrapper.dll instead of the NuGet package in your ASP.NET solution . If this workaround works it means it s a LibZ issue I use it to package both assemblies into a single DLL hence the GUID-looking DLL name in the error . Comment : What are you trying to match with : . 1 is it C comments If yes why do you need a recursive pattern since comments can t be nested the first close the comment even there are several before ."
]
} | [
"yes-answer-long",
"yes-answer-short"
] | wrapper | UNK_RELATION |
ofstream@c++-standard-library@37 | ofstream -- output file streams are @placeholder objects used to write to files . | {
"confidence": [
36.39408493041992,
35.41786193847656,
34.12611389160156,
32.905853271484375,
31.15618896484375,
30.95138931274414,
30.611312866210938,
30.611312866210938,
30.327648162841797,
30.289295196533203,
29.46300506591797,
29.12104034423828,
28.801475524902344,
28.56113624572754,
28.270870208740234,
28.129907608032227,
27.6163330078125,
27.42483901977539,
27.41883087158203,
27.172550201416016,
26.994731903076172,
26.947460174560547,
26.92174530029297,
26.639636993408203,
26.546106338500977,
26.36838150024414,
26.126060485839844,
26.026111602783203,
26.026111602783203,
25.612396240234375,
25.21819496154785,
24.905101776123047,
24.737140655517578,
24.737140655517578,
24.737140655517578,
24.737140655517578,
24.713001251220703,
24.713001251220703,
24.713001251220703,
24.713001251220703,
24.713001251220703,
24.535839080810547,
24.133159637451172,
24.133159637451172,
24.133159637451172,
23.727924346923828,
23.54718589782715,
23.54718589782715,
23.54718589782715,
23.389266967773438,
23.33087921142578,
23.3114070892334,
23.285221099853516,
23.276634216308594,
23.246868133544922,
23.246868133544922,
23.18310546875,
23.077110290527344,
22.96059799194336,
22.739269256591797,
22.687969207763672,
22.663414001464844,
22.663414001464844,
22.663414001464844,
22.663414001464844,
22.663414001464844,
22.642887115478516,
22.642887115478516,
22.642887115478516,
22.642887115478516,
22.642887115478516,
22.642887115478516,
22.642887115478516,
22.642887115478516,
22.642887115478516,
22.548986434936523,
22.389259338378906,
22.36225700378418,
22.36225700378418,
22.296567916870117,
22.11783218383789,
22.11783218383789,
22.11783218383789,
21.959308624267578,
21.959308624267578,
21.959308624267578,
21.959308624267578,
21.766014099121094,
21.725109100341797,
21.725109100341797,
21.72176742553711,
21.654233932495117,
21.654233932495117,
21.554340362548828,
21.554340362548828
],
"content": [
"This is available for output streams e.g . ostream ofstream stringstream .",
"ofstream is mainly used when you want to output to a file .",
"I use ofstream to write these file .",
"I understand ofstream is used for writing to a file .",
"I m trying to write the contents of buf pointer to the file created by ofstream .",
"The problem is with the call to write on the ofstream .",
"f in ofstream denotes file .",
"ofstream is an abstraction for a file object .",
"Hello Im coding a very basic password generator and I want to write the output of the loop to a file using ofstream .",
"The ofstream packet and stack are then passed by reference to a print function that writes the matches to the same output file - waiting for when the ofstream is not in use .",
"I am trying to write binary file using std : : ofstream : : write method .",
"foo std : : ofstream file .",
"Is there some way to make ofstream take arbitrary objects",
"This flag can only be used in streams open for output-only operations .",
"Is there an easy way to indent the output going to an ofstream object",
"std : : ofstream creates a new file by default .",
"@GMan : thanks for the tips so the copy is done to write to the ofstream",
"To avoid continuously opening and closing multiple-files that I am writing to I am attempting to use a vector of ofstream objects .",
"Anyways I wanted to pass in the ofstream to be used later .",
"ofstream will close files when its destructor is called i.e .",
"You need to use binary mode when you create the ofstream http : www.cplusplus.com reference fstream ofstream ofstream instance .",
"Get a FILE from the ofstream .",
"Standard way of changing files : read input file process write to new output file when succeeded overwrite input file with output file .",
"Constructor of the std : : ofstream automatically opens the file .",
"I do suspect http : stackoverflow.com questions 3279733 ofstream-doesnt-write-buffer-to-file 3279778 3279778 the issue http : stackoverflow.com questions 3279733 ofstream-doesnt-write-buffer-to-file 3279814 3279814 was you dereferencing the pointer though .",
"@DietmarK hl : Is mixing C style FILE streams and C++ I O streams guaranteed to provide consistent output",
"I m trying to create an ofstream and then write values from an array into it .",
"I m kind of confused by ofstream .",
"ofstream inherited from ostream .",
"It should print the name of the file exactly as used in the ofstream constructor in this case FinalOutput.txt and even more important strerror errno .",
"The ofstream destructor should automatically flush .",
"So I have : .. . .. . in my .h : .. . .. . and in my .cpp .. . .. . I get errors : .. . .. . expected initializer before token .. . .. . at std : : ofstream operator std : : ofstream output myClass s .. . .. . and .. . .. . no match for operator operand types are std : : ofstream aka std : : basic ofstream and const char 5 .. . .. . at ofstream ofile output.txt .. . .. . Whats the poblem .. . .. .",
"The modified function after adding the ofstream parameter becomes : .. . .. . You will need to pass the ofstream object throughout in all callers of PrintTree",
"Note : .. . .. . that ofstream will not create intermediate directories : contacts must exist prior to the use of the ofstream .",
"As answered on C++ Ofstream Overwriting 1 you need to use ios : : app in ofstream flags .",
"1 : stackoverflow.com questions 8220196 c-ofstream-overwriting http : stackoverflow.com questions 8220196 c-ofstream-overwriting",
"myfile.open creates the file for you or maybe when you create the ofstream object .",
"destruction of the ofstream will occur on exit from the function and close the file .",
"The contents of config.txt is .. . .. . If I give that directly to ofstream the program creates the file test.txt .",
"If I give that directly to ofstream the program creates the file test.txt .",
"If I give that directly to ofstream the program creates the file test.txt .",
"std : : ofstream is movable .",
"I just curious if ofstream inherited from ostream .",
"I also tried flushing the ofstream but it didn t work .",
"You need to flush the ofstream before closing it .",
"Is there any way better than ofstream",
"In the table there is no ifstream or ofstream .",
"error : struct std : : ofstream",
"use fstream not ofstream",
"For those reasons you should change this : .. . .. . .. . std : : ofstream operator std : : ofstream output myClass s .. . .. . .. . To this : .. . .. . You don t need to create a stream instance in the implementation of the operator either .",
"An ofstream is an ostream so providing just one ofstream operator ofstream const Point should fulfil both use-cases .",
"From debugging I know that the out ofstream object reads everything but then it seems to freeze and not output anything else into it .",
"The problem was that in the marked line below ofstream seemed unable to write a simple string the templating appeared to be the problem : .. . .. . This gives the error :",
"If I do void foo const std : : ofstream dumFile what does it do does it write to dumFile and cannot change it s address or it cannot write into it",
"this function takes a ofstream as a reference then builds struct packets and threads off the structs with the ofstream to a trie matching class .",
"Once the ofstream is available then starting the print sequence should tie-up the ofstream form other threads .",
"I assume your program behaves like standard unix tools that when not given a file will write to standard output and when given a file will write into that file .",
"the common base-class is the correct thing to do as it allows it to be used for all sorts of output streams .",
"C++ .. . .. . This is an attempt to make a class that mimics the output behavior of using the operator of an ofstream as far as being able to use std : : endl and write string s is concerned .",
"the ofstream outfile in the function is a local variable .",
"The question was simply how to lock-out a ofstream that was being used by multiple threads so only one has access to it at a time .",
"the destructor will close the ofstream so it is unnecessary to explicitly call myfile.close .",
"If you don t a default ofstream object is created which is why it compiles .",
"It is ofstream s responsibility to maintain that model in all reasonable contexts .",
"You should check that the ofstream is open for writing after being created .",
"You ll have to specify std : : ofstream : : binary when opening .",
"The line ofstream ofile output.txt is both incorrect and unnecessary .",
"ofstream dat output.c str br that helped thanks :",
"I m trying to pass a string as a path for an ofstream .",
"The problem is the ofstream crashes after half the matches are written .",
"What is the equivalent of this fprintf line : .. . .. . using ofstream",
"That s why std : : ofstream : : open also exists .",
"But my question is is std : : ofstream a movable type",
"I tried using ofstream wofstream but didnot helped .",
"Why are you using a dynamically allocated instance of ofstream",
"Use ifstream to read data from a file : .. . .. . If you really need to read line by line then do this : .. . .. . But you probably just need to extract coordinate pairs : .. . .. . Update : .. . .. . In your code you use ofstream myfile however the o in ofstream stands for output .",
"8 file descriptors for each and every ofstream so 400 ofstreams 3200 file descriptors - limit hit",
"parallel writes to an ofstream",
"Get an ofstream from the ostream .",
"This should be a comment not an answer because you haven t told how to write a std : : stringstream to a std : : ofstream",
"I want to add new out put from a buff to the end of a file rst.txt using ofstream .",
"I add this ofstream to the code under write cout function but it only writes the last line of result to the file and not all .",
"Therefore i m wondering if there s an option to set the ofstream to point directly on the file inside the archive .",
"I am having the worst time trying to make a class that has a std : : ofstream and a std : : mutex that is locked and unlocked to control access to the ofstream .",
"If thread 1 has ofstream xyz open then thread 12 is referencing the exact same ofstream xyz so no need to update or flush anything .",
"My code looks like the following so far : .. . .. . I am using a vector of ofstream pointers because ofstream doesn t have a copy-constructor .",
"Given that std : : ofstream has a move-constructor it works to pass a temporary object to a function declared as void foo std : : ofstream using e.g .",
"If you don t open the file you have a stream with a default constructed file buffer that is being written to and will get discarded when the ofstream is discarded .",
"So just do this and while we re at it avoid endl unless you know exactly what you are doing : .. . .. . You can now just pass an std : : ofstream object to that function and will write into the file .",
"Especially given that once the ofstream has done the write I never open the file for input using an ifstream so there is never a need to cache anything once it has been written to the disk .",
"It is used to format stream output .",
"@Quentin To re-cite : If I try to remove the ofstream .",
"I subclassed ifstream and ofstream : ibfstream and obfstream .",
"The aim of the following function is to return an ofstream .",
"Simply by removing ofstream but properly this time ."
]
} | {
"confidence": [
44.64213562011719,
41.48760223388672,
39.16162872314453,
38.94934844970703,
38.24015426635742,
35.93875503540039,
35.33365249633789,
35.30424499511719,
34.26077651977539,
33.448951721191406,
33.38068389892578,
33.38068389892578,
33.26496505737305,
33.25998306274414,
33.03645706176758,
33.03645706176758,
33.019981384277344,
32.6337890625,
32.428714752197266
],
"content": [
"Question : I m kind of confused by ofstream . ofstream inherited from ostream . And it also inherited method operator from ostream . The above code clip is trying to use an object of ofsream to output hello world to the terminal just as cout did . The above code clip can compile but shows nothing . Why does it happen Thanks Comment : ofstream is mainly used when you want to output to a file . f in ofstream denotes file . Comment : I understand ofstream is used for writing to a file . I just curious if ofstream inherited from ostream . It also should be capable to write to terminal . Comment : @FihopZz : It may be capable of doing that but that s not its default behavior . In the iostream headers there are some platform specific things that are done in order to set cout up to write to a terminal . It doesn t happen just by calling the default constructor which is what you are doing with your object x . Comment : @BenjaminLindley thanks . Got it . .. . Answer : It s been a long time but IIRC of stream is an output file-stream which streams data into an opened file . For an ofstream object to actually print to the terminal you would have to make it open dev console or something similar . A plain instance of ofstream probably doesnt open dev console b c you already have cout available .",
"Question : I have followed instructions on the net and this code is suppose to add the inputs to the end of the file database . But when i check the data over rides the existing data . Please help here is my code : Comment : Try adding out to the stream open mode.. . Comment : As answered on C++ Ofstream Overwriting 1 you need to use ios : : app in ofstream flags . 1 : stackoverflow.com questions 8220196 c-ofstream-overwriting http : stackoverflow.com questions 8220196 c-ofstream-overwriting .. . Answer : Use : .. . .. . ios : : out : Open for output operations . ios : : app : All output operations are performed at the end of the file appending the content to the current content of the file . This flag can only be used in streams open for output-only operations . Comment : Thx it worked . I entirely forgot about that .",
"Question : I m kind of confused by ofstream . ofstream inherited from ostream . And it also inherited method operator from ostream . The above code clip is trying to use an object of ofsream to output hello world to the terminal just as cout did . The above code clip can compile but shows nothing . Why does it happen Thanks Comment : ofstream is mainly used when you want to output to a file . f in ofstream denotes file . Comment : I understand ofstream is used for writing to a file . I just curious if ofstream inherited from ostream . It also should be capable to write to terminal . Comment : @FihopZz : It may be capable of doing that but that s not its default behavior . In the iostream headers there are some platform specific things that are done in order to set cout up to write to a terminal . It doesn t happen just by calling the default constructor which is what you are doing with your object x . Comment : @BenjaminLindley thanks . Got it . .. . Answer : ofstream is an abstraction for a file object . In order to be able to create a file you need to pass in the file s name . If you don t a default ofstream object is created which is why it compiles . By itself such an object isn t of much use . Try :",
"Question : this function takes a ofstream as a reference then builds struct packets and threads off the structs with the ofstream to a trie matching class . A stack is returned with n matches in order of match distance . The ofstream packet and stack are then passed by reference to a print function that writes the matches to the same output file - waiting for when the ofstream is not in use . The problem is the ofstream crashes after half the matches are written . The ofstream packet and outfile header .. . .. . spawn threads from record list .. . .. . check for valid return from match .. . .. . and print when ofstream is available .. . .. . Fairly new at mutithreading these functions worked fine as a single thread . Should the check for ofstream available be placed within the while-loop that spins off the candidate matches Once the ofstream is available then starting the print sequence should tie-up the ofstream form other threads . Is there a better way to reserve use of an ofstream shared by multiple threads .. . Answer : This code exhibits undefined-behavior from multiple threads . See N3485 27.2.3 iostreams.threadsafety 1 : .. . .. . Concurrent access to a stream object 27.8 27.9 stream buffer object 27.6 or C Library stream 27.9.2 by multiple threads may result in a data race 1.10 unless otherwise specified 27.4 . Note : Data races result in undefined-behavior 1.10 . end note .. . .. . In the general case streams are not safe to use across threads . You must protect the stream using a lock such as std : : mutex . Note that even if streams were safe to access across threads this code would probably not do what you want . Consider this line : .. . .. . which is the same as .. . .. . Note the race-condition . Let s say that your implementation s operator for streams is synchronized for you by the implementation . You still have a potential race in this outer code . For instance here is one possible execution of this across 2 threads : .. . .. . Instead of getting that to write as a single line you ll get output from each thread mixed up together resulting in gibberish . Comment : that was a typo in editing for the post it is myfile matchSet.testCase corr.match corr.editDistance n - your race-condition is exactly what happens when it crashes - I can see the garbled output in the outfile . But when one thread opens the file then the other thread should see it as open and pause in the while-loop Comment : @forest : No . Why would you expect it to pause Those are 5 completely separate IO operations they may be interleaved in any order unless you use locks to enforce otherwise . As for the is open check if your streams implementation is not synchronized there is no guarantee that opening the file on one thread will update the state and flush CPU caches and such for a thread running on a different CPU . It d be very easy for both threads to end up inside the if file.is open check for instance . Comment : @Billy ONeal yes I understand that intuition and common sense has no place in c++ but if I open an ofstream then pass references to it down a dozen paths any change on each of those paths is referencing the same ofstream so it seems like in this sense as far as each thread is concerned they are one thread . If thread 1 has ofstream xyz open then thread 12 is referencing the exact same ofstream xyz so no need to update or flush anything . Pragamtically this logic is clearly wrong but it seemed logical.. . Comment : @forest : That s not a C++ thing that s a parallelism in general thing . Why would you expect 5 completely independent function-calls to be executed as an atomic operation without any form of synchronization Why would you expect mutable shared data such as ostream s format or error condition flags to be thread safe without synchronization I know of no language which would obey your asserted logic . Comment : @Billy ONeal : I am confused now . Why does threading overrule referencing",
"Question : I m kind of confused by ofstream . ofstream inherited from ostream . And it also inherited method operator from ostream . The above code clip is trying to use an object of ofsream to output hello world to the terminal just as cout did . The above code clip can compile but shows nothing . Why does it happen Thanks Comment : ofstream is mainly used when you want to output to a file . f in ofstream denotes file . Comment : I understand ofstream is used for writing to a file . I just curious if ofstream inherited from ostream . It also should be capable to write to terminal . Comment : @FihopZz : It may be capable of doing that but that s not its default behavior . In the iostream headers there are some platform specific things that are done in order to set cout up to write to a terminal . It doesn t happen just by calling the default constructor which is what you are doing with your object x . Comment : @BenjaminLindley thanks . Got it . .. . Answer : http : en.wikipedia.org wiki Input output 28C 2B 2B 29",
"Question : I ve been using fprintf for a while now and I d like to ask a question . What is the equivalent of this fprintf line : .. . .. . using ofstream How to use the s in ofstream is what I d really like to know . How to take the next argument and print it as a string Comment : Something like os SomeStringValue where os is a properly opened std : : ofstream http : en.cppreference.com w cpp io basic ofstream . Comment : this really has nothing to do with string s consider removing that tag . Comment : When you really need to fall back on non-trivial printf-style strings you can use snprintf to build the string and then output it on your stream . Comment : Actually you should use fprintf OutputFile SomeStringValue instead of your approach when the entire format string is s or better yet fputs SomeStringValue OuputFile as this avoid parsing the string for format specifiers . Comment : @DietmarK hl : Is mixing C style FILE streams and C++ I O streams guaranteed to provide consistent output .. . Answer : You don t use it . The equivalent is essentially : .. . .. . Go read about it on any of several reference pages . Such as http : www.cplusplus.com reference ostream ostream operator 3C 3C",
"Question : I ve been using fprintf for a while now and I d like to ask a question . What is the equivalent of this fprintf line : .. . .. . using ofstream How to use the s in ofstream is what I d really like to know . How to take the next argument and print it as a string Comment : Something like os SomeStringValue where os is a properly opened std : : ofstream http : en.cppreference.com w cpp io basic ofstream . Comment : this really has nothing to do with string s consider removing that tag . Comment : When you really need to fall back on non-trivial printf-style strings you can use snprintf to build the string and then output it on your stream . Comment : Actually you should use fprintf OutputFile SomeStringValue instead of your approach when the entire format string is s or better yet fputs SomeStringValue OuputFile as this avoid parsing the string for format specifiers . Comment : @DietmarK hl : Is mixing C style FILE streams and C++ I O streams guaranteed to provide consistent output .. . Answer : You can t . You just write the string to the stream . If you mean you want to provide some additional formatting to the string like right-justified with space padding then you can use the I O manipulators setfill set the fill character to be the space character and setw length setting the width of the output . If you want something that mimics the syntax of the C style format strings you can use Boost.format http : www.boost.org libs format . Comment : That s actually kind of interesting and strangely useful for something else I am doing thanks jxh .",
"Question : I m currently using std : : ofstream as follows : .. . .. . Then I attempt to pass a std : : stringstream object to outFile as follows : .. . .. . Now my outFile contains nothing but garbage : 0012E708 repeated all over . In GetHolesResults I can write .. . .. . and it will output correctly in outFile . Any suggestion on what I m doing wrong Comment : I suggest you rephrase the title to something in the line of : writting stringstream contents into ofstream or ostream for what matters Comment : Eric you should mark Johannes answer as accepted so that I can delete mine which is clearly worse than his approach Comment : Ok done . But back in the days I used your solution Comment : : Someone upvoted my answer today which might indicate that they chose a less-than-perfect solution when a better one was available . .. . Answer : You can do this which doesn t need to create the string . It makes the output stream read out the contents of the stream on the right side usable with any streams . Comment : I m curious : why this solution works with std : : stringstream but not with std : : ostringstream In the second case I am getting an empty file .",
"Question : I am trying to write binary file using std : : ofstream : : write method . I found out that some characters are not written as they are for example : .. . .. . will write the following into a binary file : 0d 0a 00 00 00 Why is there additional 0d byte appearing .. . Answer : You opened the file in text mode and running on Windows . It adds the 0x0d to 0x0a . You need to use binary mode when you create the ofstream http : www.cplusplus.com reference fstream ofstream ofstream instance .",
"Question : this function takes a ofstream as a reference then builds struct packets and threads off the structs with the ofstream to a trie matching class . A stack is returned with n matches in order of match distance . The ofstream packet and stack are then passed by reference to a print function that writes the matches to the same output file - waiting for when the ofstream is not in use . The problem is the ofstream crashes after half the matches are written . The ofstream packet and outfile header .. . .. . spawn threads from record list .. . .. . check for valid return from match .. . .. . and print when ofstream is available .. . .. . Fairly new at mutithreading these functions worked fine as a single thread . Should the check for ofstream available be placed within the while-loop that spins off the candidate matches Once the ofstream is available then starting the print sequence should tie-up the ofstream form other threads . Is there a better way to reserve use of an ofstream shared by multiple threads .. . Answer : If you are new to multi-threading then let this be a lesson in why you should use mutex locks . The fstream object is just that - an object . You must protect it against simultaneous access by using a mutex . If you just want threads to be able to write information to a file you could instead pass a file name as a string instead of an fstream . The thread could then open the file with exclusive read-write access . This would use a local fstream object and the locking would be handled by the operating-system . Comment : Or rather some form of lock . A Windows mutex would be overkill for this : Comment : Yep I didn t say Windows . I didn t see anything in the question that mentioned a Windows target . I use the term mutex to refer to a type of lock . In Windows there are two mutex implementations that I know of Critical Section and Mutex which each have their uses . Comment : I understand that . What I m saying is the word mutex means something else in other contexts which may be confusing to someone who is new . Comment : @paddy I will give the filename a try rather than pass the ofstream reference Comment : @BillyONeal No worries and it s a fair comment . Hopefully the terminology is not confusing to someone who is using Boost",
"Question : To avoid continuously opening and closing multiple-files that I am writing to I am attempting to use a vector of ofstream objects . My code looks like the following so far : .. . .. . I am using a vector of ofstream pointers because ofstream doesn t have a copy-constructor . Furthermore I m using a shared pointer because that is supposed to be more robust against memory-leaks . The above successfully creates the files I want in the target directory . If I want to close the files I can do something like filelist 5 - close .. . .. . The only part I m not sure about is how I actually write to each of these files . Typically for a single file I do something like : .. . .. . What is the equivalent of that I want to use in this case Comment : I think you want to use unique-ptr and not shared-ptr here . Comment : Can you comment on why an unique-ptr would be better than shared-ptr in this situation Thanks . Comment : I m assuming each pointer points to a different file stream and you don t want to have other pointers . shared-ptr is used when you have multiple pointers pointing to the same object . Comment : In your current code you can do this : filelist.push back filelist 0 which makes the pushed back pointer point at the same file stream as the first pointer . .. . Answer : Try this : Comment : Wouldn t a some text be sufficient Comment : @JesseGood Sure allow me to edit .",
"Question : To avoid continuously opening and closing multiple-files that I am writing to I am attempting to use a vector of ofstream objects . My code looks like the following so far : .. . .. . I am using a vector of ofstream pointers because ofstream doesn t have a copy-constructor . Furthermore I m using a shared pointer because that is supposed to be more robust against memory-leaks . The above successfully creates the files I want in the target directory . If I want to close the files I can do something like filelist 5 - close .. . .. . The only part I m not sure about is how I actually write to each of these files . Typically for a single file I do something like : .. . .. . What is the equivalent of that I want to use in this case Comment : I think you want to use unique-ptr and not shared-ptr here . Comment : Can you comment on why an unique-ptr would be better than shared-ptr in this situation Thanks . Comment : I m assuming each pointer points to a different file stream and you don t want to have other pointers . shared-ptr is used when you have multiple pointers pointing to the same object . Comment : In your current code you can do this : filelist.push back filelist 0 which makes the pushed back pointer point at the same file stream as the first pointer . .. . Answer : You need either an ostream or ostream . filelist i is a shared-ptr ostream which you can in this case think of as basically an ostream . This means that filelist i gives you an ostream via the operator http : en.cppreference.com w cpp memory shared-ptr operator 2a overload . So you would use something like filelist i some text std : : endl",
"Question : I am having the worst time trying to make a class that has a std : : ofstream and a std : : mutex that is locked and unlocked to control access to the ofstream . Basically I want a class thread safe ofstreamwith a operator so I can use it like : .. . .. . So I know I need an operator overload . While there is plenty of info for this operator for classes on the right-hand-side of I cannot find any documentation for how to implement your own ostream-like input . I know the following code cannot work because of whatever input output requirements has but this is the spirit of the class I need . This way a single thread safe ofstream can be d to from multiple threads without problems my hope is . Comment : The standard streams are required to be thread-safe . You ll have to be more specific about what you want to accomplish with this lock . Comment : @PeteBecker may be output from a single operation should not be interleaved This is a valid requirement . Comment : @SergeyA - yes it s certainly possible to guess at what the question is intended to ask . I was looking for something more definitive which neither you nor I can provide . Comment : I did not know streams are required to be thread-safe . There were some errors I was trying to rule out but they don t seem to be related to threading but I was having a hard time proving that without this class . But also the interleaving problem where multiple lines are written at the same time should be avoided . The question was simply how to lock-out a ofstream that was being used by multiple threads so only one has access to it at a time . .. . Answer : Something like that However it is usually better to implement operator as a free function rather than class member . Comment : That appears to work fine although for some reason it cannot accept std : : endl Comment : What do you mean by cannot accept Comment : I can any const strings including those with a n character but if I put stream std : : endl the program aborts . It also aborts if I try stream.flush . Taking some time trying to figure out why . Comment : It confuses me a lot but any flushy action of the ofstream std : : endl or .flush results in a Debug Assertion Failure at this point in the std : : fstream header : virtual int CLR OR THIS CALL sync synchronize C stream with external file return Myfile 0 Traits : : eq int type Traits : : eof overflow 0 fflush Myfile 0 : -1 Comment : I think a custom operator must be set up for std : : endl stackoverflow.com questions 1134388 http : stackoverflow.com questions 1134388 stdendl-is-of-unknown-type-when-overloading-operator",
"Question : I m trying to write the contents of buf pointer to the file created by ofstream . For some reason the file is empty however the contents of buf is never empty.. . What am I doing wrong Comment : I think we d need to see the calling code too maybe you can strip this down to a compilable example Also don t use manual allocation like that . : Change your buf stuff to std : : vector char buf n + 1 and : : vsprintf buf 0 fmt varptr and for outputting std : : copy buf.begin buf.end std : : ostream iterator char ofstr . And of course no need to delete anymore . Also you don t need to call ofstr.close the destructor does that anyway . Comment : have you checked permissions on the log file Comment : @GMan : Wouldn t std : : string fit the need even more than std : : vector char Comment : @GMan : thanks for the tips so the copy is done to write to the ofstream Comment : @GMan : Thanks for the explanations . Makes sense . .. . Answer : You need to flush the ofstream before closing it . Try ofstr.flush before ofstr.close I had this error some time ago when I thought that closing the stream automatically flushes it but as it turned out it doesn t . Comment : I m pretty sure it should perhaps that was a bug in your implementation . But maybe I m wrong I ll look . Comment : @GMan : Did you look into it Do tell us if you find any thing interesting Comment : Ah yeah . It is indeed the case close flushes the stream and that close is called by the destructor . 27.8 . 1.2 3 describes the destructor of a basic filebuf and says that it calls close . 27.8 . 1.3 6 describes the closing procedure which includes flushing the stream . And of course the file streams all have the same behavior as owning a basic filebuf as a member meaning when they destruct the basic filebuf does leading to the previous effects .",
"Question : I am having the worst time trying to make a class that has a std : : ofstream and a std : : mutex that is locked and unlocked to control access to the ofstream . Basically I want a class thread safe ofstreamwith a operator so I can use it like : .. . .. . So I know I need an operator overload . While there is plenty of info for this operator for classes on the right-hand-side of I cannot find any documentation for how to implement your own ostream-like input . I know the following code cannot work because of whatever input output requirements has but this is the spirit of the class I need . This way a single thread safe ofstream can be d to from multiple threads without problems my hope is . Comment : The standard streams are required to be thread-safe . You ll have to be more specific about what you want to accomplish with this lock . Comment : @PeteBecker may be output from a single operation should not be interleaved This is a valid requirement . Comment : @SergeyA - yes it s certainly possible to guess at what the question is intended to ask . I was looking for something more definitive which neither you nor I can provide . Comment : I did not know streams are required to be thread-safe . There were some errors I was trying to rule out but they don t seem to be related to threading but I was having a hard time proving that without this class . But also the interleaving problem where multiple lines are written at the same time should be avoided . The question was simply how to lock-out a ofstream that was being used by multiple threads so only one has access to it at a time . .. . Answer : You can have such implementation for instance :",
"Question : I am having the worst time trying to make a class that has a std : : ofstream and a std : : mutex that is locked and unlocked to control access to the ofstream . Basically I want a class thread safe ofstreamwith a operator so I can use it like : .. . .. . So I know I need an operator overload . While there is plenty of info for this operator for classes on the right-hand-side of I cannot find any documentation for how to implement your own ostream-like input . I know the following code cannot work because of whatever input output requirements has but this is the spirit of the class I need . This way a single thread safe ofstream can be d to from multiple threads without problems my hope is . Comment : The standard streams are required to be thread-safe . You ll have to be more specific about what you want to accomplish with this lock . Comment : @PeteBecker may be output from a single operation should not be interleaved This is a valid requirement . Comment : @SergeyA - yes it s certainly possible to guess at what the question is intended to ask . I was looking for something more definitive which neither you nor I can provide . Comment : I did not know streams are required to be thread-safe . There were some errors I was trying to rule out but they don t seem to be related to threading but I was having a hard time proving that without this class . But also the interleaving problem where multiple lines are written at the same time should be avoided . The question was simply how to lock-out a ofstream that was being used by multiple threads so only one has access to it at a time . .. . Answer : Here is a complete class that will print mostly-ungarbled text from commands like ts ofs print this message std : : endl except between subsequent s another thread may start printing . I suspect there could a fix for that but I have no idea how to do it . Inspiration is from this post http : stackoverflow.com questions 1134388 stdendl-is-of-unknown-type-when-overloading-operator .",
"Question : I d like to write some files directly to zip archive file rather that creating them first on some folder and copy them to the archive on the second stage . Therefore i m wondering if there s an option to set the ofstream to point directly on the file inside the archive . for example say i have archive in tmp called data.zip and inside it there s a file data1.log .. . .. . can i do something like : .. . .. . and start pushing data using the operator thanks Comment : No it s not possible in standard C++ you need support from some external library to handle ZIP archives . Comment : You ll need to write your own functions e.g . a std : : streambuf wrapper on top of the lzma or 7z libraries . Comment : FWIW I know the ZipLib https : bitbucket.org wbenny ziplib wiki Home library is capable of a stream to an individual file . .. . Answer : can i do something like : .. . .. . .. . std : : ofstream ostr tmp data.zip data1.log std : : ios : : binary .. . .. . .. . and start pushing data using the operator No that s not possible . Also note the std : : ostream operator std : : ostream const T http : en.cppreference.com w cpp io basic ostream operator ltlt2 operator is explicitly reserved for text formatted output not to write binary-data . To achieve such you would need a std : : streambuf http : en.cppreference.com w cpp io basic streambuf implementation that wraps the incoming character data to a file that is finally compressed and added to the archive . The C++ standard-library has no notion how to magically interact with binary .zip files . Also what would you mean start pushing data A .zip archive also contains information about particular compressed file names and their relative paths . How would you interact with the std : : ofstream interface to specify which file s data to add actually .. . .. . You should research on c++ wrappers for the LZMA 7zip http : 7-zip.org sdk.html library that let you control adding files to archives .",
"Question : So I have : .. . .. . in my .h : .. . .. . and in my .cpp .. . .. . I get errors : .. . .. . expected initializer before token .. . .. . at std : : ofstream operator std : : ofstream output myClass s .. . .. . and .. . .. . no match for operator operand types are std : : ofstream aka std : : basic ofstream and const char 5 .. . .. . at ofstream ofile output.txt .. . .. . Whats the poblem .. . .. . Comment : The line ofstream ofile output.txt is both incorrect and unnecessary . You should remove it . Comment : So how do I create an output.txt file Comment : @user3452963 Outside the operator as usual : myClass c std : : ofstream s output.txt s c .. . Answer : It is usually a bad idea to restrict a function to std : : ofstream when it may as well work with any kind of std : : ostream . It also looks highly suspicious when you pass a non- const reference to a print function . This means that you officially allow printing to have side effects which modify the printed object For those reasons you should change this : .. . .. . .. . std : : ofstream operator std : : ofstream output myClass s .. . .. . .. . To this : .. . .. . You don t need to create a stream instance in the implementation of the operator either . You receive a reference to one as the first argument . So just do this and while we re at it avoid endl unless you know exactly what you are doing : .. . .. . You can now just pass an std : : ofstream object to that function and will write into the file . You just need to create the object passing the filename to its constructor :",
"Question : This question already has an answer here : .. . .. . C++ ifstream error using string as opening file path . questions 6323619 c-ifstream-error-using-string-as-opening-file-path 3 answers .. . .. . i am working for school project and i have to write some lines to a txt file . Nothing unusual but here comes the problem . When i try to input output file name through parameters in function it says that there is no matching function for call . Let me show you my code : .. . .. . I would be very happy if someone would know what is problem here and how to make it work . Thanks .. . Answer : You have either to enable the -std c++11 compiler option or use ofstream dat output.c str .. . .. . See the reference documentation of the available std : : ofstream constuctors http : en.cppreference.com w cpp io basic ofstream basic ofstream . Comment : ofstream dat output.c str br that helped thanks : Comment : @lucian24 I think both options should work equally well . Comment : yes but i don t know how to enable c++11 in eclipse so i just used second one Comment : @lucian24 You can enable that in the projects c++ build options . Comment : Thanks i wil try to find it"
]
} | [
"yes-answer-long",
"yes-answer-short"
] | c++-standard-library | UNK_RELATION |
glade@user-interface@28 | glade -- glade is a visual @placeholder designer for the gtk + toolkit and the gnome desktop environment . | {
"confidence": [
48.74969482421875,
48.74969482421875,
45.73628234863281,
45.73628234863281,
45.73628234863281,
44.84248352050781,
44.50577926635742,
44.171600341796875,
43.82921600341797,
43.50858688354492,
43.20927810668945,
43.181819915771484,
43.15833282470703,
42.307884216308594,
42.091983795166016,
41.65444564819336,
41.65444564819336,
41.65444564819336,
41.65444564819336,
41.65444564819336,
41.65444564819336,
41.65444564819336,
41.65444564819336,
40.656455993652344,
40.641178131103516,
40.641178131103516,
40.140438079833984,
39.44330978393555,
39.42675018310547,
39.196128845214844,
39.196128845214844,
39.196128845214844,
39.196128845214844,
39.196128845214844,
39.196128845214844,
39.196128845214844,
38.3369140625,
38.20075607299805,
38.182861328125,
38.17467498779297,
38.17467498779297,
38.006500244140625,
37.6836051940918,
37.62115478515625,
37.598548889160156,
37.598548889160156,
37.598548889160156,
37.598548889160156,
37.598548889160156,
37.598548889160156,
37.598548889160156,
37.598548889160156,
37.598548889160156,
37.598548889160156,
37.598548889160156,
37.41802215576172,
37.26144790649414,
36.98035430908203,
36.98035430908203,
36.98035430908203,
36.98035430908203,
36.98035430908203,
36.96843719482422,
36.73295974731445,
36.647300720214844,
36.647300720214844,
36.647300720214844,
36.647300720214844,
36.647300720214844,
36.58528137207031,
36.58528137207031,
36.4791259765625,
36.4791259765625,
36.15623474121094,
36.15623474121094,
36.15623474121094,
36.15623474121094,
36.15623474121094,
36.15623474121094,
36.15623474121094,
36.15623474121094,
36.15623474121094,
36.15623474121094,
36.15623474121094,
35.972572326660156,
35.972572326660156,
35.734073638916016,
35.634033203125,
35.634033203125,
35.452980041503906,
35.452980041503906,
35.452980041503906,
35.452980041503906,
35.452980041503906,
35.452980041503906,
35.452980041503906,
35.452980041503906,
35.452980041503906,
35.452980041503906,
35.452980041503906
],
"content": [
"I m developing an application with Gtk and Glade .",
"I m using anjuta with glade and gtk+ .",
"I ve programmed a software gui using glade and gtk .",
"I have GTK GUI created by means of Glade .",
"glade 3.8.x targets Gtk+3 .",
"You are trying to load a GTK+ 3 glade file into a GTK+ 2 program .",
"Now i want to use it in Glade designer .",
"So if you are targeting Gtk+2 you need to install glade-gtk2 and use that version of glade .",
"also Glade3 is for gtk+ 2 development and Glade is for gtk+ 3 development",
"I used glade to create some gtk buttons .",
"You need to write some code using the GTK+ toolkit to use the glade file .",
"Glade 3.20 adds support for GtkPopover which itself was added in GTK+ 3.12 .",
"But then I found advise to use GtkBuilder instead of Glade because Glade will be replaced by GtkBuilder in future releases of Gtk .",
"glade : 16052 : Gtk-WARNING : Unknown property : GtkPaned.wide-handle .. . .. . glade : 16052 : Gtk-WARNING : Unknown property : GtkPaned.wide-handle .. . .. . glade : 16052 : Gtk-WARNING : Unknown property : GtkPaned.wide-handle GLib-GIO-Message : Using the memory GSettings backend .",
"I m designing my GUI using Glade Interface Designer .",
"But glade and GTK in C doesn t seem to be very popular compared to python... .",
"I m trying to install glade for my GTK Haskell binding .",
"By default Glade requires the latest version of GTK+ installed on your computer .",
"The glade-3.8.x series is the last version supporting Gtk+2 .",
"I m writing my first gtk program using gtkmm and glade .",
"In that library there is a widget Gtk : : GL : : DrawingArea - but this widget IS NOT available in glade .",
"The class you use to load the glade file into GTK+ 3 is GtkBuilder .",
"I want to create a dialog using Glade 3 or gtk and Python .",
"Ubuntu provides the glade-gtk2 package which packages the 3.8.x version whereas the glade package packages the latest Gtk+3 only version .",
"I have an window defined in a gtk-builder file made with Glade .",
"How can I port this code to the newest versions of GTK and Glade",
"Please tell me : .. . .. . which packages I need to install .. . .. . how to integrate the UI I ve create with Glade the .glade file with my Java Gnome Gtk project specifically in Eclipse .. . .. . and give an example .",
"In A it shows how work in Glade environment and in B it shows how use python to access .glade file and show the simple interface .",
"Is it possible to do such things in Glade User interface edior for GTK+",
"Isn t it a glade file",
"Most of the GUI is designed in Glade .",
"This is my glade file .",
"Design the UI in glade .",
"Generate the .glade xml file .",
"I m using Glade 3.8.0 .",
"There is no generated code in Glade 3 .",
"Install the Glade interface designer on your Mac Linux or Windows computer .",
"Glade outputs glade files xml which have to be translated to .rb .",
"Main Bug in Glade",
"After having downloaded the tarball for glade 3.20.0 and installing it and all other dependencies I am unable to launch the glade application .",
"@Joel lib glade is deprecated glade the file-format and glade the software program are still used",
"@Joel no what I m saying is calling .ui files glade files is still correct because Glade is still the software used to build them it s just that the stuff to use them is now part of GTK+ itself",
"I would like to know if there is a way to change the size of the title bar icon and the title bar itself using Glade or GTK .",
"Anyway I d like to use a Glade UI that I ve created in a Java Gnome Gtk project but I have no idea from where to start .",
"due to problems in the glade packaged for Ubuntu .",
"I make my interface with glade .",
"My Glade File Looks Like this .",
"The Glade code is : .. . .. . And my python code is :",
"I have created a UI with glade .",
"Are you using the latest version of glade",
"And how did you install glade",
"However the .glade file is an xml file .",
"Is it possible to add this widget to Glade palette",
"Gjs Seed file .. . .. . Glade file",
"What version of glade are you using",
"To cross check if the generated file is .glade file or GtkBuilder compatible XML file as both are in XML format root node in .glade file will be glade-interface whereas in GtkBuilder compatible XML file it will be interface .. . .. . If you have an existing .glade file you can look into gtk-builder-convert http : developer.gnome.org gtk 2.24 gtk-builder-convert.html script to convert to GtkBuilder compatible XML file .",
"@andlabs it seems the support is only from glade 3.20 : compatdb.org forums topic 111487-glade-3200-released http : www.compatdb.org forums topic 111487-glade-3200-released",
"I have one question about Glade .",
"Glade doesn t define behavior only appearance .",
"Is there a way to reverse engineer these files to Glade XML files",
"There is no way to reverse assemble a C++ file into a Glade file .",
"The software to do this would have to be as big as Glade itself .",
"and by the way no it is not possible to do it in glade",
"Inspecting Gnome Maps Builder and Nautilus the button is listed as an StWidget the closest I can find in glade is a MenuButton Widget .",
"Newer pyGTK versions require GTKBuilder and .xml files instead of Glade and .glade files and now my poor app is broken .",
"Anyway I am following the glade tutorial from the gtk2hs website http : projects.haskell.org gtk2hs docs tutorial glade .",
"what have to i install for compiling of file.c that use gtk2 e file glade makes with glade 3.8",
"Hi @andlabs I installed glade using the classic apt-get command - sudo apt-get install glade",
"I m using glade 3.10 but I ve checked also in glade 3.8 and added an alternative solution that should work for you .",
"C Code : .. . .. . Glade File testing interface.glade :",
"Python 3 file : .. . .. . Glade code :",
"The Glade ID is used with gtk builder get object https : developer.gnome.org gtk3 stable GtkBuilder.html gtk-builder-get-object to retrieve an object or widget by its ID from a Glade file .",
"But I d still like to know if this is the right Gtk Glade UI hierarchy to use and if there is a shortcut to preview from Glade .. . .. . The code below will also output the starting hierarchy : .. . .. . .. . and the ending hierarchy : .. . .. . .. . hopefully confirming that the deep clone code is ok .",
"I m using : .. . .. . Ubuntu Precise 12.04 .. . Glade 3.12.0 .. . libgtksourceview 3.0 .. . Gtk+ 3.0 .. . .. . Kind regards",
"I m stuck because the glade module was loaded from module gtk : .. . .. . but there s no way now to do that anymore .",
"Problem is Glade-3 is not on our system and I can t find gtk-builder-convert on the web .",
"When I try and install Glade it tries to use older versions of Cairo and GTK .",
"Do you get any option to select the version of Gtk+ when you launch glade",
"In GTK 3 which doesn t support the old glade format just the newer gtkbuilder one it is possible to render to memory .",
"It looks like you are using a newer version of Gtk then what glade is generating the UI file for .",
"It is valid for the version of Gtk that glade is generating the ui for it is just that you aren t using that version in the project which uses the ui .",
"Once you have MSYS2 you can use pacman to install both GTK+ 3 and glade .",
"How do you link the buttons of a dialog window GtkDialog for example with a response Gtk : : ResponseType value with Glade .",
"I am using Glade 3.19 GTK+3 and python 3.5.1 to create a GUI application .",
"I m trying to use gtkmm version 3.14.0 and glade version 3.18.3 on a Fedora 21 system to create a Gtk : : TreeView Gtk : : ListStore with many small images .",
"Note : similarly on Fedora the glade package ships the Gtk+3 version whereas the glade3 not really an optimal name ships the Gtk+2 version .",
"that tutorial is using glade instead of GtkBuilder I was told that GtkBuilder is some kind of replacement and I should use it instead of Glade now I have .glade file and I want .xml file",
"Using Glade editor : .. . .. . In glade editor select your ScrolledWindow you have packed TextView into ScrolledWindow haven t you",
"EDIT : 4.7.16 : .. . .. . I detected the reason why : Glade don t place the Child of the GtKScrolledWindow in its .glade File .",
"So you just want to install Glade .",
"I m writing an application in C and with glade on GNU Linux .",
"The definition of the GtkListStore was removed from the glade file .",
"The setting in Glade might fail because of similar reasons .",
"I have an application with a TreView designed in Glade .",
"The problem is that I can t find the table in glade .",
"The glade file is in the same directory as my source code .",
"I created that file using glade-3 .",
"Just use the glade file as shown it works great",
"What he wants is a glade file with GtkBuilder XML in it .",
"I used glade to build my GUI ."
]
} | {
"confidence": [
66.46732330322266,
65.50677490234375,
65.49250030517578,
64.81770324707031,
62.26743698120117,
61.8099479675293,
60.890708923339844,
59.41759490966797,
58.25961685180664,
58.028465270996094,
57.80866622924805,
56.572784423828125,
56.566619873046875,
56.34657669067383,
55.83122253417969,
55.82965087890625,
54.73788833618164,
54.43034362792969,
53.40741729736328,
52.68500518798828
],
"content": [
"Question : I am having a hard time searching for gtkbulider as it does not show up in my Debian repos is that Glade by another name Gtk comes in 3 different versions 1 2 3 . what is the best version to install to go along with what version Glade and lets not forget about this GtkBuilder I cannot find by name to install . I have just installed Glade 3.12.1 and it says it is missing .. . .. . What are all the packages that I need to install to get all three of them to happily work together As I am planing on trying to learn how to use it using C as my Programming Language . What are some good sources with examples and understandable documentation to read the how to s and what for s to help me get a good basic understanding of how to put all three of these together so that they all wokr together to make one happy program that hopefully runs with little to no errors And does this GTK and Glade GtkBuilder only work Linux running Gnome or can these apps that are build by these programs be ran on Debian openbox and all the other Linux flavors what do not use Gnome like KDE for instance or is it just Gnome specific only .. . Answer : You can create gtkbuilder files with the glade interface designer at least with newer versions round about 2 years . In your application the one you write compile use the GtkBuilder object to load the widget-tree from the file . .glade is just a different afaik format to store the widget-tree . As of now I d recommend Gtk+ 3.x - from my personal experience things are a lot more thought out and less evolutionary read : backwards compat cruft is kept . As long as the target has a somewhat recent which has GtkBuilder support glib gtk+ library you should be fine . gtk+ is multiplatform and GtkBuilder is part of it - nothing gnome specific . Use the devhelp https : wiki.gnome.org Apps Devhelp application for quick and easy doc access install the doc packages coming from a fedora background Comment : thank you I ll install and experiment -- thanks again .",
"Question : I ve built a small GUI app for work that uses some .glade files for pop-up windows . Recently the ground beneath me was shifted - my environment was upgraded . Newer pyGTK versions require GTKBuilder and .xml files instead of Glade and .glade files and now my poor app is broken . I need to convert the .glade file to the newer .xml file . Problem is Glade-3 is not on our system and I can t find gtk-builder-convert on the web . I ve looked at the Gnome GIT Browser don t know where to start looking or how to search it . Would anyone be kind enough to point me to the gtk-builder-convert python script .. . Answer : gtk-builder-convert is part of GTK and it should already be installed on your system since you have GTK version 2.12 or higher . But if you really can t find it here it is in the git browser : http : git.gnome.org browse gtk+ tree gtk gtk-builder-convert Comment : Thanks . A which gtk-builder-convert on my system returns a Command not found",
"Question : I ve built a small GUI app for work that uses some .glade files for pop-up windows . Recently the ground beneath me was shifted - my environment was upgraded . Newer pyGTK versions require GTKBuilder and .xml files instead of Glade and .glade files and now my poor app is broken . I need to convert the .glade file to the newer .xml file . Problem is Glade-3 is not on our system and I can t find gtk-builder-convert on the web . I ve looked at the Gnome GIT Browser don t know where to start looking or how to search it . Would anyone be kind enough to point me to the gtk-builder-convert python script .. . Answer : ubuntu : install the tools by sudo apt-get install libgtk2.0-dev .. . .. . but it is now deprecated Comment : That s only on Ubuntu . The OP didn t say which platform they were on . Comment : right..changed. .",
"Question : I ve did a research on the Internet looking for tutorials documentations to explain me how to use a UI designed in Glade in a Java Gnome project but no luck . I already know how to create a UI from the code using the Java Gnome GTK . Anyway I d like to use a Glade UI that I ve created in a Java Gnome Gtk project but I have no idea from where to start . Please tell me : .. . .. . which packages I need to install .. . .. . how to integrate the UI I ve create with Glade the .glade file with my Java Gnome Gtk project specifically in Eclipse .. . .. . and give an example . Thanks in advance . That s how my Glade UI looks Just click the image to see it bigger : .. . .. . enter image description here http : i.stack.imgur.com cgX9C.png .. . .. . This is the XML code of the UI above : Comment : I don t understand the question . What do you mean by use a Glade UI And what is a Java Gnome project Comment : Glade UI is the user-interface that I built the one that I show in the printscreen screenshot . Java Gnome is the Gtk binding for Java http : www.gtk.org language-bindings.php Comment : How did you create this Glade UI Is there code-behind the interface Is it all drag-and-drop design Comment : @Code-Guru Both first you create it with drag-and-drop and save the file but if you open the file in a text-editor you ll see a XML code the represents it . Will add the UI code in the question . .. . Answer : You re supposed to use the Builder http : java-gnome.sourceforge.net doc api 4.1 org gnome gtk Builder.html class available since java-gnome 4.0.20 . Create it call the addFromFile method to give it your glade file . Then just call getObject with the name of the object as entered in the Glade UI to get that object . The only thing I see as missing is the signal connection stuff . The original GtkBuilder http : developer.gnome.org gtk3 stable GtkBuilder.html class in C provides much more especially signals connection features gtk builder connect signals for example . So you may need to connect signals by hand if these features are not available in the Java bindings . This means setting in glade in the signals tab the signal you want to connect and setting the name of the callback this signal will call . You can have a good guess of the basics by seeing how it s done in python : .. . .. . http : python-gtk-3-tutorial.readthedocs.org en latest builder.html .. . .. . Just browse the web for glade tutorial or glade gtkbuilder for the rest .",
"Question : I ve did a research on the Internet looking for tutorials documentations to explain me how to use a UI designed in Glade in a Java Gnome project but no luck . I already know how to create a UI from the code using the Java Gnome GTK . Anyway I d like to use a Glade UI that I ve created in a Java Gnome Gtk project but I have no idea from where to start . Please tell me : .. . .. . which packages I need to install .. . .. . how to integrate the UI I ve create with Glade the .glade file with my Java Gnome Gtk project specifically in Eclipse .. . .. . and give an example . Thanks in advance . That s how my Glade UI looks Just click the image to see it bigger : .. . .. . enter image description here http : i.stack.imgur.com cgX9C.png .. . .. . This is the XML code of the UI above : Comment : I don t understand the question . What do you mean by use a Glade UI And what is a Java Gnome project Comment : Glade UI is the user-interface that I built the one that I show in the printscreen screenshot . Java Gnome is the Gtk binding for Java http : www.gtk.org language-bindings.php Comment : How did you create this Glade UI Is there code-behind the interface Is it all drag-and-drop design Comment : @Code-Guru Both first you create it with drag-and-drop and save the file but if you open the file in a text-editor you ll see a XML code the represents it . Will add the UI code in the question . .. . Answer : Ok you need to : .. . .. . Init GTK library .. . Create a Builder object .. . Retrieve the window widget .. . Display the window widget .. . .. . I assume you have already installed the java-gnome library in your Linux system and imported the jar in your eclipse project project properties - java build path - add external jars - usr share java gtk.jar . A sample code : .. . .. . This is the way it should work . If you want to set a listener on an object e.g . a button you retrieve the oject by name as seen before with the window and then : .. . .. . Is it working for you Well it s not for me . The problem was my code was throwing an exception when calling Builder.addFromFile filename .. . .. . java.text.ParseException : Invalid object-type GtkLabel .. . .. . The error is about the first element in the tree . After a deep research I found that due to a known bug never fixed you need to pre-define every widget before using it : in this case just call .. . .. . before creating the builder . This is obviously not intended to work in this way and will be fixed in the future . More info on this issue : .. . .. . Thread on java-gnome-developer mailing list https : www.mail-archive.com java-gnome-developer@lists.sourceforge.net msg00081.html .. . .. . Thread on Java-gnome-hackers mailing list http : article.gmane.org gmane.comp.gnome.bindings.java.devel 1606 .. . .. . Hope this can help.. .",
"Question : I ve created a custom widget with my own drawing in C using GTK 3 toolkit . Now i want to use it in Glade designer . Is it possible to add this widget to Glade palette It seems that this documentation : https : developer.gnome.org gladeui unstable catalogintro.html can be used to add widgets written in C C++ to Glade palette but what is the correct way to get the same result for widgets written in C Thanks . .. . Answer : It may not be possible . The way to approach it would be to write a shim library in C that uses libmono to interoperate with your C widgets . Here is a link-to Mono s documentation on how to do that . http : www.mono-project.com docs advanced embedding The entry-point into your shim library would then be listed in the init-function element in the Glade catalog . Alternatively you can fake the widget classes in the Glade catalog their properties and signals will appear though you have to manually write them in the catalog file . If they are container widgets you won t be able to add child widgets to them . They ll just appear as grey boxes in Glade . You do this by adding glade-widget-class elements to the catalog as described on this page https : developer.gnome.org gladeui stable widgetclasses.html of Glade s documentation . Comment : Thank you . I ll try approach with the shim library .",
"Question : Which interface tool would you recommend I use for creating user interfaces for GtkSharp applications I started with Glade because it has wrappers in GtkSharp and allows for loading widgets from resource files . But then I found advise to use GtkBuilder instead of Glade because Glade will be replaced by GtkBuilder in future releases of Gtk . Is it true Furthermore it seems for UI generation MonoDevelop uses Stetic which extends Glade . Which one should I use .. . Answer : There is a difference between Glade the application and libglade the library . Libglade is a library that has been replaced by GtkBuilder and so you should not use it . Glade the application is the UI designer which can save GtkBuilder files or libglade files for compatibility . Stetic ties in with Mono and MonoDevelop a bit more and so if you use MonoDevelop then you should probably use Stetic . Comment : Thanks for explanations . I am going to use Visual Studio for backend code Glade the application for design UI and GtkBuilder as format of stored UI . And Gtk Beans as .Net library for using GtkBuilder format .",
"Question : Gnome Tweak Tool http : i.stack.imgur.com CJbYq.jpg .. . .. . Name of that Gtk widget on the side which has options : Apperance Desktop etc . .. . Answer : The widget you are referring to seems to be a GtkStackSidebar . It s documentation can be found here https : developer.gnome.org gtk3 stable GtkStackSidebar.html . If you are trying to id widgets in the future check the GTK3 Widget Gallery https : developer.gnome.org gtk3 stable ch03.html it contains a collection of the most common widget including screenshots so that should help . Comment : Can you please tell me where can I find it in Glade Comment : A way to ID widgets directly is to enable the GTK+ Inspector and use that . StackSidebar was only added in recent versions of Glade and you can find it under Controls . You re supposed to use it with a Stack under Containers .",
"Question : I am learning to use glade 3 to create a GUI . However the .glade file is an xml file . I am not sure how to go forward from here . Google search is not really helping . There is a question already asked for same thing here Tool to convert .Glade or xml file to C source http : stackoverflow.com questions 2787202 tool-to-convert-glade-or-xml-file-to-c-source . However I am not really able to understand the answer given in that . Can someone tell the basic flow of the development cycle using glade 3 1 . Design the UI in glade . 2 . Generate the .glade xml file . 3 . AND THEN WHAT How can the xml file be converted to an executable A . Should I convert this xml file to a language C and compile the C code B . Or is there a way for xml code to be directly converted to an ELF executable I am trying to make the GUI for my own use . I use linux and want an ELF executable like how I would get if I wrote the C code using gtk library and compiled it using gcc . Comment : Welcome to Stack Overflow You asked this question 17 minutes ago as of writing this comment . Stack Overflow is a website not everyone is looking at it at all hours so you will need to be patient to get an answer . Anyway glade files are just what the UI looks like . You need to write some code using the GTK+ toolkit to use the glade file . You can use C or any other language you like . The class you use to load the glade file into GTK+ 3 is GtkBuilder . I don t know about GTK+ 2 . You can also use GResource part of GLib to embed the xml into your binary . Good luck Comment : @andlabls yea that was just a comment written out of frustration on all the unsuccesful googling and apparent lack of un-obscure howtos .. . thanks for the pointers ..maybe i will look into GtkBuilder and GResource .. . but for now i will just write the code myself ...will come back to glade later .. . .. . Answer : If we look at the Wikipedia page for Glade https : en.wikipedia.org wiki Glade Interface Designer it has an entire section about how to use Glade in a program : with GtkBuilder . Now all that remains is to read-the-docs https : developer.gnome.org gtk3 stable GtkBuilder.html and you can begin using Glade . No offense but I ve never used Glade before and this is fairly clear in all docs . For example here s Glade s homepage https : glade.gnome.org .",
"Question : Is there any way to embed a video stream ffmpeg in a GTK Window Right now I am using Glade along with the Python GTK3 bindings and I don t see any obvious methods provided by Glade . Perhaps a library or something part of GTK3 not exposed in Glade .. . Answer : The easiest way is by using GStreamer . They have a few docs over it : http : docs.gstreamer.com display GstSDK Basic+tutorial+5 3A+GUI+toolkit+integration .. . .. . Setting it in Glade directly probably won t be possible though .",
"Question : when I am programming with gtkmm there is a widget Gtk : : DrawingArea . I can program that widget by hand so write the code or more elegant way is to use glade user-interface designer where I can do the same graphically . Now I am trying to connect OpenGL with gtkmm through gtkglextmm library . In that library there is a widget Gtk : : GL : : DrawingArea - but this widget IS NOT available in glade . So is there any way to program with OpenGL + gtkglextmm using glade for the graphical user-interface part Thanks . .. . Answer : First of all libglade is an old library . If you are writing new project start with gtk builder http : library.gnome.org devel gtkmm stable classGtk 5F1 5F1Builder.html . As you can see here http : library.gnome.org devel gtkmm-tutorial unstable sec-builder-using-derived-widgets.html.en gtkmm provide easy way to create your own widgets and see them almost in glade tool . You simply insert plain DrawinArea widget to window and then tell gtk-builder to put in this place yours derived-class . Here is all together : .. . .. . Setting up gtk-builder : .. . .. . Opengl DrawingArea class : .. . .. . Constructing opengl drawingarea : Comment : Thank you very much qba . So the key was in using derived widgets .",
"Question : null .. . Answer : After having downloaded the tarball for glade 3.20.0 and installing it and all other dependencies I am unable to launch the glade application . It throws the following message : .. . .. . sam@ : glade GLib-GIO-Message : Using the memory GSettings backend . Your settings will not be saved or shared with other applications . glade : 16052 : Gtk-WARNING : Unknown property : GtkPaned.wide-handle .. . .. . glade : 16052 : Gtk-WARNING : Unknown property : GtkPaned.wide-handle .. . .. . glade : 16052 : Gtk-WARNING : Unknown property : GtkPaned.wide-handle GLib-GIO-Message : Using the memory GSettings backend . Your settings will not be saved or shared with other applications . GladeUI-Message : 20 missing displayable value for GtkWidget : : AtkObject : : accessible-role GladeUI-Message : 1 missing displayable value for GtkCellRendererAccel : : accel-mode GladeUI-Message : No displayable values for property VteTerminal : : backspace-binding GladeUI-Message : No displayable values for property VteTerminal : : cursor-blink-mode GladeUI-Message : No displayable values for property VteTerminal : : cursor-shape GladeUI-Message : No displayable values for property VteTerminal : : delete-binding GladeUI-Message : Glade needs artwork a default icon will be used for the following classes : PeasGtkPluginManagerView needs an icon named widget-libpeas-gtk-pluginmanagerview GtkApplicationWindow needs an icon named widget-gtk-applicationwindow GtkSourceView needs an icon named widget-gtksourceview-gtksourceview PeasGtkPluginManager needs an icon named widget-libpeas-gtk-pluginmanager glade : symbol lookup error : glade : undefined symbol : gtk css provider load from resource .. . .. . If I search for Glade from the terminal and click on it also nothing happens . It would be great if someone could point me as to what is going wrong . Thanks .",
"Question : I have received Gtk C++ source header-files . Is there a way to reverse engineer these files to Glade XML files Comment : 1.- Glade is deprecated in someway you should use GtkBuilder instead . 2.- No . Comment : @Joel lib glade is deprecated glade the file-format and glade the software program are still used Comment : @andlabs sure we can avoid external libraries when the core of gtk has a support it one right Comment : @Joel no what I m saying is calling .ui files glade files is still correct because Glade is still the software used to build them it s just that the stuff to use them is now part of GTK+ itself Comment : And yes you can t automatically convert C code to a Glade XML file because C code can do whatever it wants and be formatted in a number of ways that makes static-analysis effectively impossible . You ll have to recreate the GUI from scratch sorry . .. . Answer : There is no way to reverse assemble a C++ file into a Glade file . Consider three reasons this is so : .. . .. . C++ is much more versatile than Glade . It has so much flexibility that to ask a piece of software to cram it into an inflexible format like Glade would be nearly impossible . The software to do this would have to be as big as Glade itself . There s a lot of pain no gain . What do you gain by reverse assembling it C++ is already the more flexible platform Glade is only made available for people who don t want to do all their layout dynamically in code . If you already have code in C++ you re better off than if you were just given Glade files to work with . C++ wouldn t be the first choice of language to do this with . If there was such a thing it would be released natively for C first . Since there is no such tool for C I think we can be sure there is no such tool for C++ a language for which GTK+ must use a binding . My advice : stick with your C++ files . You re better off with them .",
"Question : i ve been trying to run a software where i ve built the UI by Glade . Glade then transform the UI in an XML file and then in Python i just load that file . But i ve a problem with maybe deprecated properties of gtk objects . This is what the interpreter says : .. . .. . I could try to remove GtkBox.margin-left-right-bottom but i need the property GtkScrolledWindow.min-content-height . The strange thing is that GtkScrolledWindow.min-content-width has been working corretcly because i can t see any WARNING about that . EDIT : : informations about Gtk and Glade versions currently running .. . .. . collega GUI.py .. . .. . I ran this command http : stackoverflow.com questions 126141 how-do-you-find-out-which-version-of-gtk-is-installed-on-ubuntu to retrieve the version of gtk : .. . .. . and i got Comment : Are you using the latest version of glade It looks like you are using a newer version of Gtk then what glade is generating the UI file for . Comment : See my EDIT please Comment : When you create a ui file within glade you are usually asked which version to target . Make sure you select 2.24.x or close and not 3.x or 1.x . Comment : I can t do it. . i can only save it as libglade file glade file or GtkBuilder file . But nothing happens it doesn t work Comment : It is valid for the version of Gtk that glade is generating the ui for it is just that you aren t using that version in the project which uses the ui . .. . Answer : The glade-3.8.x series is the last version supporting Gtk+2 . glade 3.8.x targets Gtk+3 . Ubuntu provides the glade-gtk2 package which packages the 3.8.x version whereas the glade package packages the latest Gtk+3 only version . So if you are targeting Gtk+2 you need to install glade-gtk2 and use that version of glade . Note : similarly on Fedora the glade package ships the Gtk+3 version whereas the glade3 not really an optimal name ships the Gtk+2 version . Comment : Ok good. . i ve installed it and now it crashes every time i m going to load the file edited with the previous Glade 3.x.x . Endless torment . In a few minutes i ll try to search for a workaround any tip is welcome . Thanks Comment : If you run glade from the terminal you might see it the output it prints to the terminal what is causing it to crash . You could then open the glade file with a text-editor and remove the offending elements properties . The problem is most likely that the new glade wrote elements properties to the file which glade 3.8.x cannot read causing it to crash because of poor error-handling . Comment : If i got something from the terminal. . but it just create a core dump and i can t find it with ls -a Comment : If you actually want to debug the crash just run it through gdb . Comment : As i thought i simply get a segmentation fault. . maybe instead of debugging a software i tried to find exceptions. . but i think it will be hard to catch something helpful from this shit i ll try to to do other loadings or something else",
"Question : I m developing an application with Gtk and Glade . My impression is that it s common practice to create a subclass of GtkWindow for your main window but I m stuck on how I would construct my subclass from a GtkBuilder definition . Does anyone know how Comment : Have you looked at library.gnome.org devel gtk stable GtkBuilder.html http : library.gnome.org devel gtk stable GtkBuilder.html Could you clarify exactly what your objective is here .. . Answer : Subclassing GtkWindow is more common in GTK s various language bindings than it is in plain C . You didn t mention which language you were using . That said the way I subclass GtkWindow in C is to create the contents of the window in Glade but not the window itself . In Glade 3 IIRC you can right-click on a widget in the palette and choose Add widget as toplevel to place a non-toplevel widget without a container . Then write code for your subclass of GtkWindow let s call it MyAppWindow . I won t go into that in this answer since there are plenty of examples in the GObject documentation . In the init function my app window init load the Glade file use gtk builder get object to get a pointer to the outermost widget in the Glade file and use gtk container add to add it to the window you are constructing . Then use gtk builder connect signals as you normally would . You have to set all the window s properties manually this way since you can t do it in Glade but other than that I ve found it works quite well . Comment : That seems good . I ve been studying the GNOME sources to get an idea of how they do it and they do subclass GtkWindow . I m not sure if they use the technique you outlined though . Comment : Which applications are you looking at I sometimes look at Gedit for examples of how to do things but it is huge . Comment : I usually look at Gedit too . As it turns out though Gedit doesn t actually use GtkBuilder -- in fact I m pretty sure none of the standard GNOME apps do . Which I think explains my confusion -- I expected that anyone in their right mind would want to use GtkBuilder . Comment : GtkBuilder is relatively new so older applications would have to port legacy code to use it . Also it s probably more useful for simple applications with a static interface.. . Comment : Actually it s in complicated applications where GtkBuilder is absolutely indispensable . If the application is simple with a static interface you can just build the GUI in code and forget about it .",
"Question : null .. . Answer : I m working on a python project and I used glade to make the GUI . When I try to launch my glade script it gives this error : .. . .. . How can I fix this I am using Kali Linux a Debian derivative . Comment : What is the exact error Comment : And how did you install glade Comment : Hi @oldtechaa thank for answering here the error-code - File mainWindow.py line 9 in init interface.add from file mainWindow.glade glib.GError : mainWindow.glade : required gtk+ version 3.12 current version is 2.24 Comment : Hi @andlabs I installed glade using the classic apt-get command - sudo apt-get install glade Comment : You are trying to load a GTK+ 3 glade file into a GTK+ 2 program . You will need to switch to python-gobject to use GTK+ 3 .",
"Question : null .. . Answer : Is there any build of Glade 3.18.3 as a Windows Binary Would really like to make use of GTK3+ with Glade however they seem to have stopped at 3.8.5 : which only supports GTK 2.24 . Comment : GTK+ 3 is no longer distributed as standalone packages on Windows you will need to use MSYS2 to get it . Once you have MSYS2 you can use pacman to install both GTK+ 3 and glade . See the GTK+ website for details . Comment : Cheers thank you",
"Question : I have looked through the available widgets in glade 3.20 and can not find anything called StWidget . Inspecting Gnome Maps Builder and Nautilus the button is listed as an StWidget the closest I can find in glade is a MenuButton Widget . Builder Example Python is the StWidget http : i.stack.imgur.com yE9rQ.jpg .. . .. . I basically want to make a funky dropdown widget like a lot of the modern gnome apps have started using . .. . Answer : I m pretty much the farthest thing from an authoritative answer so I really hope I m corrected by a developer at some point in the future . However I was researching this class of widgets so at least I ve discovered a few things . The St widgets are used within gnome-shell and are not actually related to GTK in implementation . They are implemented on Clutter so they are from a different linage . I was not able to confirm their future place within GTK however they ve been mentioned in the initial GTK4 discussions . It also looks like no real documentation exists so using the St s would be playing on the development edge . Not sure how you found the St widgets in nautilus though I thought applications were still all GTK.. . excluding any gnome-shell integration components those could have St widgets . If your making Applications stick with the mainline GTK . However if you wanted a menu like that for gnome-shell have you investigated making a gnome-shell extension Comment : your quite right i was using the inspector i was looking at the wrong thing in the end any how I managed to reproduce what i was after . like you say there is not mush info on these stwidgets and how they fit into the picture .",
"Question : I m trying to design some window in glade and I want it to use in my python code using GtkBuilder .. . .. . I just somehow can t generate GtkBuilder xml .. . .. . When I save something in Glade I get .glade file .. . .. . Can you please help me how can I generate GtkBuilder xml Thank you .. . Answer : I have tried the following on Ubuntu 10.04 but I guess it should work on your system as well . If you are using glade-3 when you are saving the file select Save As.. . option instead of Save you will prompted to enter the file name with file browser displayed . Here in the bottom left corner you can see selection options for file-format like : .. . File Formats .. . GtkBuilder .. . Libglade .. . .. . sorry cant upload image : .. . .. . Select GtkBuilder option and save-as the filename.xml of your choice . That should do it To cross check if the generated file is .glade file or GtkBuilder compatible XML file as both are in XML format root node in .glade file will be glade-interface whereas in GtkBuilder compatible XML file it will be interface .. . .. . If you have an existing .glade file you can look into gtk-builder-convert http : developer.gnome.org gtk 2.24 gtk-builder-convert.html script to convert to GtkBuilder compatible XML file . Hope this helps Comment : this is how I did it but when I run the xml I get Traceback most recent call last : File . main.py line 49 in module w Window File . main.py line 39 in init self.builder.add from file main.xml glib.GError : Invalid object-type GtkGrid Comment : @javo : What is the version of Gtk+ you are using Looks like GtkGrid is part of Gtk+3 . In main.xml what does the line requires lib gtk+ version XXX say the version required is Do you get any option to select the version of Gtk+ when you launch glade Comment : As another.anon.coward says GtkGrid is part of GTK 3 . So depending of the version of the GTK Library which according to your Ubuntu version and Distrowatch http : distrowatch.com table.php distribution ubuntu is GTK 2.20 you need to set in your glade project properties that version so that it knows which widgets are available . See the project properties dialog http : tadeboro.github.com Glade3 figures preferences-dialog.png . Comment : Ooops another.anon.coward uses Ubuntu 10.04 but you javo use Fedora 15 so your GTK version is 3.0 . If you have an error it means you re probably not using the right bindings . pygtk is no more used it s gobject-instrospection that is used with GTK 3 . So don t use in your python code the import pygtk but instead : from gi.repository import Gtk . Read these links : live.gnome.org PyGObject https : live.gnome.org PyGObject and python-gtk-3-tutorial.readthedocs.org en latest http : python-gtk-3-tutorial.readthedocs.org en latest Comment : It s just that for GTK 3 the old pyGTK bindings have been replaced by new bindings that use pyGObject . The introspection features of GObject help in the bindings maintenance which was more difficult in pyGTK .",
"Question : I want to create some popover widget using only glade : is it possible I mean speaking of popover : some window that shows when clicking on a button and that disappears when clicking elsewhere . I tried a lot of things I read a lot of things on the internet but I found nothing that is strange in my sense . Comment : GTK+ 3.12 adds GtkPopover . More recent versions of glade should have that available try 3.18 Comment : @andlabs I am on glade 3.19 but I cannot see any GtkPopover widget . But I will search everywhere . Comment : @andlabs it seems the support is only from glade 3.20 : compatdb.org forums topic 111487-glade-3200-released http : www.compatdb.org forums topic 111487-glade-3200-released Comment : @andlabs I installed the last version and here it is Thank you very much . You can post it as an answer and I will accept it . .. . Answer : Glade 3.20 adds support for GtkPopover which itself was added in GTK+ 3.12 . You ll have to be careful about making sure your generated .ui files are backward compatible which includes going in and checking the header of the file . Comment : After creating a GtkPopover you need to create a GtkMenuButton and then you have to select the popover in its use-popover property . Comment : That s only if you want to use a popover with a GMenu . You don t have to do that a popover is just a GtkBin so it can contain anything just like a normal window . Comment : Yes but only the GtkMenuButton has the use-popover property . I could not find another way to show the popover using only glade . Comment : Oh yes you need to connect your UI elements using code somehow . Glade doesn t define behavior only appearance . It can take advantage of GModule features to hook up signals by function name but other than that :"
]
} | [
"yes-answer-long",
"yes-answer-short"
] | user-interface | UNK_RELATION |
python-os@operating-system@68 | python-os -- the python-os module provides a portable way of using @placeholder dependent functionality . | {
"confidence": [
35.591190338134766,
31.48499298095703,
27.007625579833984,
26.95296859741211,
25.554210662841797,
25.41614532470703,
25.380569458007812,
24.90354347229004,
24.413135528564453,
24.198444366455078,
24.124422073364258,
23.9323673248291,
23.9082088470459,
23.848133087158203,
23.747371673583984,
23.747371673583984,
23.575586318969727,
23.5308837890625,
22.702842712402344,
22.702842712402344,
22.374711990356445,
22.141450881958008,
22.141450881958008,
22.141450881958008,
22.099050521850586,
21.920631408691406,
21.920631408691406,
21.920631408691406,
21.920631408691406,
21.920631408691406,
21.920631408691406,
21.585594177246094,
21.506072998046875,
21.330184936523438,
21.16599464416504,
20.77534294128418,
20.77534294128418,
20.76879119873047,
20.76879119873047,
20.76451873779297,
20.730010986328125,
20.4403076171875,
20.080490112304688,
20.080490112304688,
20.080490112304688,
20.080490112304688,
20.080490112304688,
20.080490112304688,
20.05272102355957,
20.017860412597656,
19.40268325805664,
19.40268325805664,
19.40268325805664,
18.954286575317383,
18.954286575317383,
18.935203552246094,
18.935203552246094,
18.935203552246094,
18.935203552246094,
18.935203552246094,
18.575420379638672,
18.575420379638672,
18.537540435791016,
18.417034149169922,
17.865983963012695,
17.865983963012695,
17.792491912841797,
17.792491912841797,
17.692895889282227,
17.641735076904297,
17.562543869018555,
17.562543869018555,
17.562543869018555,
17.424148559570312,
17.11955451965332,
17.069869995117188,
16.724721908569336,
16.547607421875,
16.547607421875,
16.547607421875,
16.547607421875,
16.334762573242188,
16.114118576049805,
15.186149597167969,
14.970040321350098,
14.692090034484863,
14.692090034484863,
14.639971733093262,
14.308487892150879,
13.824751853942871,
13.791777610778809,
13.791777610778809,
13.791777610778809,
13.76189136505127,
13.664270401000977,
13.564756393432617,
13.475540161132812,
13.390679359436035,
13.193025588989258,
13.193025588989258
],
"content": [
"I am only asking if there is a way to ignore popup errors from wine linux or python-os module.. .",
"I would like the loop to continue without me having to be there to press OK . .. . .. . EDIT : .. . .. . I am running the loop in python and using os module to execute the command in the shell so if there s anything I can do from the Python side using os that would work too .",
"I am practicing with the os module and more specifically os.walk .",
"I am trying to write a python CLI program using module python cmd .",
"Is there a better way to do this so that I can generalize it for an nth subdirectory in Python",
"You are using Python 2 by the looks of it .",
"The answer to this question and many other os .",
"but in python shall .",
"While fooling around with the OS module in the python interpreter run inside the shell on a Linux system I noticed it is possible to do the following : .. . .. . Producing the following output indicating a new python REPL session : .. . .. . From here its possible to once again make a system call to start a new session of Python from which I can make the system call again etc .",
"In your case you can stay with os of course .",
"Pycharm reset wich version of Python I was using .",
"You may use subprocess https : docs.python.org 2 library subprocess.html .. . .. . Subprocess if better than os in a way that it has more controll on execution of a command when os just throws it to bash .",
"You can use the file attribute to return several different paths relevant to the currently loaded Python module copied from another StackOverflow answer http : stackoverflow.com a 9271479 5209610 : .. . .. . When a module is loaded in Python file is set to its name .",
"questions 1196074 how-to-start-a-background-process-in-python 6 answers .. . .. . I have a python script .",
"so how to change directory in terminal using python script",
"are you say it not possible to change directory using python script",
"Example usage : .. . .. . source : Python : module for creating PID-based lockfile",
"Python errors",
"@NajeebChoudhary Yes you can change what directory the Python script runs in with Python .",
"When you pass python to it it starts a new Python interpreter that is independent from the one os.system was called from .",
"@GilHamilton : prctl PR SET CHILD SUBREAPER can be called in Python using ctypes .",
"Your script s scope is limited to that python program .",
"python script can change directory normaly",
"questions is : Python pretty much defers to the libc underneath .",
"This is the code I came up with using os module : .. . .. . I am wondering if there s any better way to do this very same task probably shorter more efficient and more pythonic",
"@MarioHonse : No sudo in whatever context when installing Python packages .",
"Your package isn t installed in the global Python package repository .",
"I created a python script that finds MySQL installation in windows system .",
"This question already has an answer here : .. . .. . How to start a background-process in Python",
"This need to be executed by another python start.py with similar function as follows .",
"If I run my script like this : python foo.py file will just be foo.py .",
"For os system I have found the solution of adding double quotes before and after the command screen but still won t work .",
"For remote servers you d need to do something like here : Python check if website exists http : stackoverflow.com questions 16778435 python-check-if-website-exists",
"My aim is to use python to programmatically locate another python file on my system .",
"It could affect the contents of the file attribute copied from Python 3 Data model documentation https : docs.python.org 3 reference datamodel.html : .. . .. . file is the pathname of the file from which the module was loaded if it was loaded from a file .",
"I m trying to change the directory of my terminal from a Python script .",
"Python can t change what directory your terminal is running in .",
"And you don t actually use Python 3 .",
"I m running python 3.4.1 on windows-8.1 .",
"I am trying to execute those python script using CLI program .",
"http : stackoverflow.com questions 1444790 python-module-for-creating-pid-based-lockfile .. . .. . This will give you a general idea .",
"I have a file settings.py that looks like this : .. . .. . ENV VAR is an environmental variable from the OS I m on OSX .",
"I installed my own package via sudo python setup.py install locally .",
"I installed my own package via sudo python setup.py install locally .",
"The script need to be executed by another python but without waiting for the out put it should pass-through .",
"OR .. . .. . subprocess.Popen python main.py .. . .. . Problem here start.py won t finish as witing for the out put of main.py .",
"@sugunan subprocess.Popen python main.py would not run it would also won t wait for main.py to finish",
"I have a python program and I want to get the path to the program from within the program but INCLUDING the file name itself .",
"With the linux command getconf I can read .. . .. . PHYS PAGES .. . .. . CLK TCK .. . .. . GNU LIBC VERSION .. . .. . With python os.sysconf : .. . .. . SC CLK TCK .. . .. . SC PHYS PAGES .. . .. . It doesn t work with .. . .. . GNU LIBC VERSION .. . .. . Tested on many Python 2.6 and 2.7 versions under many distros centos and debian .",
"I know this can be done with Python in other ways but we are using the windows app for a special reason .",
"What exactly is wine doing that python couldn t do on its own",
"I made a script in python that renames all files and folders does not recurse in .",
"Details .. . .. . Python Version - 2.7.10 .. . .. . Operating System - Windows 10 Pro",
"Even I create a file curr dir dir1 log1.out manually by mkdir and touch the python code also throws the same exception while being executed .",
"Suppose I have a file known as xyz in a folder as shown below : .. . .. . And if I want the nth subdirectory from the file how do I obtain it python",
"I grock GNU LIBC VERSION doesn t exist in os.sysconf names but this doesn t solve my question : why does the python function-handle a subset",
"In your example the command-line-shell is one program that invokes python in order to execute your script .",
"These Python environments seem independent from each other in that variables aren t shared amongst sessions and that the system calls are treated equivalently .",
"@Alik right but if the Python documentation is satified starting with in a subshell is it worth making that distinction here",
"Learn pdb which is a python debugger simple but powerful for small or even medium size projects .",
"It s difficult to offer any meaningful advice if you don t know what the question is - Also why are you using wine with Python",
"@Carpetsmoker I am using python to loop through many files while executing a wine command that runs the windows app on each one of them",
"Notice that when pid 0 the following code is called : .. . .. . try : .. . if env is None : .. . exec fn executable cmd .. . else : .. . exec fn executable cmd env .. . except OSError e : .. . if not DEBUG : .. . cmd executable .. . sys.stderr.write unable to execute r : s n .. . cmd e.strerror .. . os . exit 1 .. . .. . if not DEBUG : .. . cmd executable .. . sys.stderr.write unable to execute r for unknown reasons cmd .. . os . exit 1 .. . .. . .. . Notice here that if an OSError is raised in the try block we exit to the system with a status of 1 failure .",
"No Module named plumbum error come .",
"as long as the module is ran from a file i.e .",
"not code in an editor file will be the abs path to the module",
"Python follows the philosophy .. . .. . It is better to ask for forgiveness than to ask for permission .",
"yep and execute python script in new xterm...can you help me",
"Instead follow the Python community best practices and create virtual environments for installing your packages : packaging.python.org en latest https : packaging.python.org en latest installing.html creating-virtual-environments",
"@BAH : same problem when I move the DB VAR definition outside of the logic block--it just isn t inheriting a value even when I can verify that variable is definitely defined on the OS with echo DB VAR .",
"I would like to write a Python script that will be able to wait for those launched programs to finish not just for the Perl script .",
"Hard to see how you d utilize that for your use-case especially from python .",
"I m writing a little program in python 3 to automatize the ordenation of my downloads folder .",
"I was able to obtain what I want using copytree from shutil module .",
"Remember to be wary of where the module you are loading came from .",
"When I try to execute another python script in my CLI program my objective is I have some python script in other folder and CLI program in other folder .",
"Now when you try to run any module that is included in the package as your normal user and that module tries to open modify read create any directory or file that is part of the package itself it will run into permission problems .",
"I am trying to write a python script so that I can find all sub directories called something within a parent directory.Then I would like to rename the sub directories and move them somewhere else .",
"To see what os.system does in Python look at what the underlying c lib s system call does http : code.metager.de source xref gnu glibc sysdeps posix system.c .",
"Python is batteries included so you probably should leverage the requests and urllib3 packages for HTTP requests use subprocess cautiously for executing commands and checkout out the scrapy package for web-scraping .",
"The error output appears to be shell-based not a traditional Python stack-trace maybe one of the get something functions making use of Popen to do some shell commands you desire .",
"I am trying to get all directories from a specified root this seems to run fine when I run it on windows by giving it a path however when I move it to the raspberry-pi I get a syntax-error .. . .. . I have been following this but not sure if I have been doing it correct : http : www.tutorialspoint.com python-os walk.htm I have only just started with python so not sure what is wrong .",
"The solution to your problem is to first uninstall the module you can simply delete the entire tree as root .",
"try using file .",
"You are correct didn t know the OP was considering running the program in such a primitive way.. .",
"@MikkoOhtamaa I m not installing it using sudo pip .",
"Isn t using to background just a shell feature",
"This code works but is there a better way to achieve this",
"That makes it easy to return the file name with the smallest size using the min function .",
"I like your way of thinking.. . Be as lazy as possible and rely on prior art .",
"Do not install packages using sudo pip - that is highly discouraged because of various problems associated with this approach .",
"Any file-level operations can be performed properly without using elevated permissions like sudo .",
"Or do I happen to be using the version of distutils with a crazy bug that has since been fixed",
"These sessions seem to run inside each other at least to some extent rather than in parallel as evidenced by the outcome of the quit function : .. . .. . Yet a quick examination os.system ps -e of the ongoing processes from the shell reveals a new sh for each python interpreter running : .. . .. . Can anyone explain this seemingly strange behaviour in terms of underlying system processes",
"print settings.comp name returns the value mymachine.local but print settings.DB VAR returns the error : .. . .. . AttributeError : module object has no attribute DB VAR .. . .. . Basically I need to control which values are passed to these variables depending on the environment that the code is being run .",
"@dbliss all SVR4-compatible UNIXlike systems have either flock or fcntl LOCK or both and the Python fcntl.flock call will automatically fall back to fcntl if no flock call is available .",
"You can get the absolute path of the file using os.path.abspath That should give you something like C : folder1 folder2 folder3 .. . .",
"The os.path https : docs.python.org 2 library os.path.html module-os.path module would make your path and filename manipulations a lot easier .",
"or better question is there a way I can store the path name without including the first directory .",
"You will have to extract the hostname explicitly to make host work the way have chosen to interact with it ."
]
} | {
"confidence": [
35.934974670410156,
32.83115005493164,
32.37253189086914,
30.974632263183594,
27.90035057067871,
27.65508460998535,
26.701560974121094,
26.55894660949707,
26.087261199951172,
25.49440574645996,
22.903118133544922,
22.738182067871094,
22.501617431640625,
22.482593536376953,
22.359264373779297,
22.359264373779297,
21.741710662841797,
21.552303314208984,
21.08135986328125,
21.00492286682129
],
"content": [
"Question : I am running wine on Ubuntu 14 to execute a windows application on multiple-files from the shell . From the 3000 files about 4 or 5 fail and raise a pop-up error which stops the loop . Then I need to press OK in order for the loop to continue . Is there any parameter in wine or some shell command in linux to ignore errors I would like the loop to continue without me having to be there to press OK . .. . .. . EDIT : .. . .. . I am running the loop in python and using os module to execute the command in the shell so if there s anything I can do from the Python side using os that would work too . Comment : What exactly is wine doing that python couldn t do on its own Comment : What errors Python errors Wine errors Linux errors It s difficult to offer any meaningful advice if you don t know what the question is - Also why are you using wine with Python That seems like a strange thing to do.. . Comment : sorry for the lack of clarification . the windows app is converting some xml files to csvs . I know this can be done with Python in other ways but we are using the windows app for a special reason . I believe the errors are wine errors because when executing this on a windows there are no errors . If anybody is interested this is the converter which relies on .NET to function : xmltocsv.codeplex.com releases view 118938 https : xmltocsv.codeplex.com releases view 118938 Comment : @Carpetsmoker I am using python to loop through many files while executing a wine command that runs the windows app on each one of them Comment : why the downvote I am only asking if there is a way to ignore popup errors from wine linux or python-os module.. . .. . Answer : The steps in the following link solved my issue https : wiki.winehq.org FAQ How do I disable the GUI crash dialog.3F",
"Question : While fooling around with the OS module in the python interpreter run inside the shell on a Linux system I noticed it is possible to do the following : .. . .. . Producing the following output indicating a new python REPL session : .. . .. . From here its possible to once again make a system call to start a new session of Python from which I can make the system call again etc . These Python environments seem independent from each other in that variables aren t shared amongst sessions and that the system calls are treated equivalently . These sessions seem to run inside each other at least to some extent rather than in parallel as evidenced by the outcome of the quit function : .. . .. . Yet a quick examination os.system ps -e of the ongoing processes from the shell reveals a new sh for each python interpreter running : .. . .. . Can anyone explain this seemingly strange behaviour in terms of underlying system processes That is are these sessions running in parallel or from within each other Apologies if this question has come up before but I wasn t sure how others might have presented it . Comment : What exactly do you find strange Comment : There s nothing strange about it . os.system is documented to create a new process it uses the term subshell . Creating new processes is precisely what it s for . Comment : @Alik makes a good if indirect point in his comment to my answer . The answer to this question and many other os . questions is : Python pretty much defers to the libc underneath . To see what os.system does in Python look at what the underlying c lib s system call does http : code.metager.de source xref gnu glibc sysdeps posix system.c . .. . Answer : Python s os.system starts a new system process . When you pass python to it it starts a new Python interpreter that is independent from the one os.system was called from .",
"Question : While fooling around with the OS module in the python interpreter run inside the shell on a Linux system I noticed it is possible to do the following : .. . .. . Producing the following output indicating a new python REPL session : .. . .. . From here its possible to once again make a system call to start a new session of Python from which I can make the system call again etc . These Python environments seem independent from each other in that variables aren t shared amongst sessions and that the system calls are treated equivalently . These sessions seem to run inside each other at least to some extent rather than in parallel as evidenced by the outcome of the quit function : .. . .. . Yet a quick examination os.system ps -e of the ongoing processes from the shell reveals a new sh for each python interpreter running : .. . .. . Can anyone explain this seemingly strange behaviour in terms of underlying system processes That is are these sessions running in parallel or from within each other Apologies if this question has come up before but I wasn t sure how others might have presented it . Comment : What exactly do you find strange Comment : There s nothing strange about it . os.system is documented to create a new process it uses the term subshell . Creating new processes is precisely what it s for . Comment : @Alik makes a good if indirect point in his comment to my answer . The answer to this question and many other os . questions is : Python pretty much defers to the libc underneath . To see what os.system does in Python look at what the underlying c lib s system call does http : code.metager.de source xref gnu glibc sysdeps posix system.c . .. . Answer : As per the documentation of os.system https : docs.python.org 2 library os.html os.system : .. . .. . Execute the command a string in a subshell . os.system forks executes a subshell passing the argument to this subshell and waits for the subshell to exit . The subshell executes the command and waits for it to terminate hence the process tree is :",
"Question : While fooling around with the OS module in the python interpreter run inside the shell on a Linux system I noticed it is possible to do the following : .. . .. . Producing the following output indicating a new python REPL session : .. . .. . From here its possible to once again make a system call to start a new session of Python from which I can make the system call again etc . These Python environments seem independent from each other in that variables aren t shared amongst sessions and that the system calls are treated equivalently . These sessions seem to run inside each other at least to some extent rather than in parallel as evidenced by the outcome of the quit function : .. . .. . Yet a quick examination os.system ps -e of the ongoing processes from the shell reveals a new sh for each python interpreter running : .. . .. . Can anyone explain this seemingly strange behaviour in terms of underlying system processes That is are these sessions running in parallel or from within each other Apologies if this question has come up before but I wasn t sure how others might have presented it . Comment : What exactly do you find strange Comment : There s nothing strange about it . os.system is documented to create a new process it uses the term subshell . Creating new processes is precisely what it s for . Comment : @Alik makes a good if indirect point in his comment to my answer . The answer to this question and many other os . questions is : Python pretty much defers to the libc underneath . To see what os.system does in Python look at what the underlying c lib s system call does http : code.metager.de source xref gnu glibc sysdeps posix system.c . .. . Answer : When you use os.system it performs the command in a subshell https : docs.python.org 2 library os.html os.system something like bin sh -c yourcommand . Thus it s completely sensible that you would get the behavior you describe . It s not different from running : .. . .. . in any shell . with mild differences on Windows please read the documentation . Comment : It invokes system system call which in turn on most unix system runs bin sh -c yourcommand Comment : @Alik right but if the Python documentation is satified starting with in a subshell is it worth making that distinction here",
"Question : null .. . Answer : I created a python script that finds MySQL installation in windows system . The script searches in registry where MySQL creates the installer creates the registry keys . My script gets the correct installed path of MySql Server it forms the correct command path e g .. . .. . but none of the commands executes it . Subprocess.call gives me the following error .. . .. . whilst os.system .. . .. . operable program or batch-file . For os system I have found the solution of adding double quotes before and after the command screen but still won t work . Is there a solution on that",
"Question : I have a python program and I want to get the path to the program from within the program but INCLUDING the file name itself . The name of my file is PyWrapper.py . Right now I m doing this : .. . .. . The output is : .. . .. . This is the path to the directory in which my file is saved but I would like it to output : .. . .. . Which is the path including the filename itself . Is this possible Thanks . .. . Answer : try using file . as long as the module is ran from a file i.e . not code in an editor file will be the abs path to the module Or for command-line . Comment : No it isn t . If I run my script like this : python foo.py file will just be foo.py . Comment : You are correct didn t know the OP was considering running the program in such a primitive way.. . Updated origonal",
"Question : I am trying to create a bunch of directories and sub directories at a specific location in my PC . My process is something like this : .. . .. . 1 . Check if there s any directory with the same directory name . Skip if so . 2 . If not create the directory and the pre-defined sub directories under that directory . This is the code I came up with using os module : .. . .. . I am wondering if there s any better way to do this very same task probably shorter more efficient and more pythonic .. . Answer : Python follows the philosophy .. . .. . It is better to ask for forgiveness than to ask for permission . So rather than checking isdir you would simply catch the exception thrown if the leaf directory already exists : .. . .. . You can also replace string interpolation s s dir1 dir2 with os.path.join dir1 dir2 .. . .. . Another more succinct way is to do the cartesian-product instead of using two nested for-loops : Comment : This will treat existing directories and a failed attempt to create the directory such as lacking permissions the same way . You should check that error.errno 17 17 meaning that the directory already exists and rethrow the exception if it s not .",
"Question : I installed my own package via sudo python setup.py install locally . In its source code there s the code which causes OSError : 13 Permission denied ... . : .. . .. . curr dir is : .. . .. . And : .. . .. . How can I fix it P.S . Even I create a file curr dir dir1 log1.out manually by mkdir and touch the python code also throws the same exception while being executed . Comment : Do not install packages using sudo pip - that is highly discouraged because of various problems associated with this approach . Instead follow the Python community best practices and create virtual environments for installing your packages : packaging.python.org en latest https : packaging.python.org en latest installing.html creating-virtual-environments Comment : @MikkoOhtamaa I m not installing it using sudo pip . Comment : You should use sudo to access that directory . You can try changing the permission with chmod 755 to allow permission to your user . But what distro and what package are you installing Comment : @TatakaiWasumi my own . Comment : @MarioHonse : No sudo in whatever context when installing Python packages . Please create virtual environments and sudo is not needed for installing anything . .. . Answer : I installed my own package via sudo python setup.py install locally . Once you used sudo which you should not do all files that your package includes are owned by root because its the root user that is running setup.py install . Now when you try to run any module that is included in the package as your normal user and that module tries to open modify read create any directory or file that is part of the package itself it will run into permission problems . All files for your package are owned by root and you are trying to run it with your normal user and that user cannot create directories in the package s source path which is referred to here os.path.dirname os.path.realpath file . The solution to your problem is to first uninstall the module you can simply delete the entire tree as root . Next as your normal user create a virtual environment and install your package . This will make sure that : .. . .. . 1 . Your package isn t installed in the global Python package repository . 2 . Files for your package are owned by your normal user account . 3 . Any file-level operations can be performed properly without using elevated permissions like sudo . Now if you need to create these directories as part of your package s setup procedure then you need to modify your setup.py .",
"Question : I have a python program and I want to get the path to the program from within the program but INCLUDING the file name itself . The name of my file is PyWrapper.py . Right now I m doing this : .. . .. . The output is : .. . .. . This is the path to the directory in which my file is saved but I would like it to output : .. . .. . Which is the path including the filename itself . Is this possible Thanks . .. . Answer : Just in case you would like to find the absolute path for other files not just the one you are currently running in that same directory a general approach could look like this : .. . .. . As others are mentioning you could take advantage of the file attribute . You can use the file attribute to return several different paths relevant to the currently loaded Python module copied from another StackOverflow answer http : stackoverflow.com a 9271479 5209610 : .. . .. . When a module is loaded in Python file is set to its name . You can then use that with other functions to find the directory that the file is located in . Remember to be wary of where the module you are loading came from . It could affect the contents of the file attribute copied from Python 3 Data model documentation https : docs.python.org 3 reference datamodel.html : .. . .. . file is the pathname of the file from which the module was loaded if it was loaded from a file . The file attribute may be missing for certain types of modules such as C modules that are statically linked into the interpreter for extension modules loaded dynamically from a shared library it is the pathname of the shared library file .",
"Question : This question already has an answer here : .. . .. . How to start a background-process in Python questions 1196074 how-to-start-a-background-process-in-python 6 answers .. . .. . I have a python script . Which is running as a service with a while-loop for ever . The script need to be executed by another python but without waiting for the out put it should pass-through . So the main script with while-loop is as follows main.py . Which never going to be end . This need to be executed by another python start.py with similar function as follows . OR .. . .. . subprocess.Popen python main.py .. . .. . Problem here start.py won t finish as witing for the out put of main.py . But I want to make it like start.py need to load main.py and leave it in background . Then the start.py need to complete the process . How can I modify the .. . .. . os.system main.py 1 .. . .. . function to skip the waiting for main.py Please consider this need to run on cross-platform . Comment : why not use subprocess.Popen os.system is going to wait for the process to return Popen won t you could also use to background the process Comment : see stackoverflow.com questions 3516007 run-process-and-dont-wait http : stackoverflow.com questions 3516007 run-process-and-dont-wait Comment : subprocess.Popen is fine . But still it keeping the console with the next script execute . Comment : Isn t using to background just a shell feature Which won t for windows . Comment : @sugunan subprocess.Popen python main.py would not run it would also won t wait for main.py to finish .. . Answer : I recommend for you to check out Plumbum https : plumbum.readthedocs.org en latest specifically the section on background foreground https : plumbum.readthedocs.org en latest foreground-and-background-execution .. . .. . Cross platform also . Comment : No Module named plumbum error come . Comment : have you installed it Comment : pip install plumbum",
"Question : I m trying to change the directory of my terminal from a Python script . The program execute successfully but the directory in my terminal doesn t change . Here is the program . screen shot http : i.stack.imgur.com uHMvT.png Comment : Each program on the system has its own Current-Working-Directory and child processes cannot change their parent s working directory . In your example the command-line-shell is one program that invokes python in order to execute your script . Your script s scope is limited to that python program . .. . Answer : Python can t change what directory your terminal is running in . It can only change the path inside of the script . Comment : so how to change directory in terminal using python script Comment : @NajeebChoudhary As I said in my answer . You can t . Comment : but in python shall . python script can change directory normaly Comment : @NajeebChoudhary Yes you can change what directory the Python script runs in with Python . You cannot change the directory of the parent process the terminal . Comment : are you say it not possible to change directory using python script",
"Question : I want to add a wrapper around a specific shell command . This will run in Linux only and I don t care about cross-platform support . This code works but is there a better way to achieve this Or am I opening myself up to any weird behavior Thanks .. . Answer : You may use subprocess https : docs.python.org 2 library subprocess.html .. . .. . Subprocess if better than os in a way that it has more controll on execution of a command when os just throws it to bash . Comment : What does subprocess offer me specifically When I was googling before posting this I saw a variation of your comment all over but in this case I want to replace the executable with the one I am wrapping . I have no need to get the return code out err do error-handling etc etc . Comment : In your case you can stay with os of course . No need to switch to subprocess at all but in future if you are going to expand your script you may need some return codes pipes etc oum ya need it .",
"Question : I am trying to create a bunch of directories and sub directories at a specific location in my PC . My process is something like this : .. . .. . 1 . Check if there s any directory with the same directory name . Skip if so . 2 . If not create the directory and the pre-defined sub directories under that directory . This is the code I came up with using os module : .. . .. . I am wondering if there s any better way to do this very same task probably shorter more efficient and more pythonic .. . Answer : How about : .. . .. . And if we re worried about os.makedirs throwing errors :",
"Question : Suppose I have a file known as xyz in a folder as shown below : .. . .. . And if I want the nth subdirectory from the file how do I obtain it python For e.g . for the 2nd sub directory I can do something like : .. . .. . for the third .. . .. . This method looks a bit awkward . Is there a better way to do this so that I can generalize it for an nth subdirectory in Python Comment : Do you want the subdirectory or the containing directory Comment : @JeremyKemball The nth subdirectory starting 0 from the file . .. . Answer : You can get the absolute path of the file using os.path.abspath That should give you something like C : folder1 folder2 folder3 .. . . You can then use string operations to find the nth directory .",
"Question : Suppose I have a file known as xyz in a folder as shown below : .. . .. . And if I want the nth subdirectory from the file how do I obtain it python For e.g . for the 2nd sub directory I can do something like : .. . .. . for the third .. . .. . This method looks a bit awkward . Is there a better way to do this so that I can generalize it for an nth subdirectory in Python Comment : Do you want the subdirectory or the containing directory Comment : @JeremyKemball The nth subdirectory starting 0 from the file . .. . Answer : A recursive approach : .. . .. . n is the number of levels to go up the directory tree .",
"Question : Suppose I have a file known as xyz in a folder as shown below : .. . .. . And if I want the nth subdirectory from the file how do I obtain it python For e.g . for the 2nd sub directory I can do something like : .. . .. . for the third .. . .. . This method looks a bit awkward . Is there a better way to do this so that I can generalize it for an nth subdirectory in Python Comment : Do you want the subdirectory or the containing directory Comment : @JeremyKemball The nth subdirectory starting 0 from the file . .. . Answer : This is a bit awkward but short enough to use directly : .. . .. . reduce lambda x y : y x os.path.dirname n path",
"Question : Suppose I have a file known as xyz in a folder as shown below : .. . .. . And if I want the nth subdirectory from the file how do I obtain it python For e.g . for the 2nd sub directory I can do something like : .. . .. . for the third .. . .. . This method looks a bit awkward . Is there a better way to do this so that I can generalize it for an nth subdirectory in Python Comment : Do you want the subdirectory or the containing directory Comment : @JeremyKemball The nth subdirectory starting 0 from the file . .. . Answer : You know this calls for a clever-clogs recursive solution but perhaps something like .. . .. . would be clear and preserve the os.path localization magic you would lose by just splitting os.path.abspath . You could always try something like .. . .. . but that s not guaranteed to work for all symlinks etc .",
"Question : null .. . Answer : I have a file settings.py that looks like this : .. . .. . ENV VAR is an environmental variable from the OS I m on OSX . I ve confirmed that manually calling os.environ.get ENV VAR from within the shell gives me the desired output . The file execution.py lives in the same directory as settings.py and has the statement import settings in the header . print settings.comp name returns the value mymachine.local but print settings.DB VAR returns the error : .. . .. . AttributeError : module object has no attribute DB VAR .. . .. . Basically I need to control which values are passed to these variables depending on the environment that the code is being run . Any pointers on what I m doing wrong here would be very much appreciated . Comment : Use local settings.py stackoverflow.com questions 4909958 django-local-settings http : stackoverflow.com questions 4909958 django-local-settings Your specific error seems to be occurring because DB VAR is only defined inside the if block . Comment : Difficult to debug this as it may be related to idiosyncracies of your machine . Can you put some print in there to verify what you say about the comp name and show the output of running the file Comment : @BrenBarn : Putting print statements in the settings file doesn t result in any output in terminal when I call import settings inside the execution file . @BAH : same problem when I move the DB VAR definition outside of the logic block--it just isn t inheriting a value even when I can verify that variable is definitely defined on the OS with echo DB VAR . Any other thoughts Even when I type from settings import I still have the problem Comment : @Aaron : If you put print statements and nothing is printed it suggests the file isn t being imported . Are you running this as part of a framework of some kind or are you just running execution.py directly from the command-line Comment : @Aaron : Probably because you had another file somewhere called settings.py and that was getting imported instead . In your file where you do import settings try printing settings . file to see where it s importing it from .",
"Question : null .. . Answer : With the linux command getconf I can read .. . .. . PHYS PAGES .. . .. . CLK TCK .. . .. . GNU LIBC VERSION .. . .. . With python os.sysconf : .. . .. . SC CLK TCK .. . .. . SC PHYS PAGES .. . .. . It doesn t work with .. . .. . GNU LIBC VERSION .. . .. . Tested on many Python 2.6 and 2.7 versions under many distros centos and debian . I grock GNU LIBC VERSION doesn t exist in os.sysconf names but this doesn t solve my question : why does the python function-handle a subset",
"Question : I am trying to write a python CLI program using module python cmd . When I try to execute another python script in my CLI program my objective is I have some python script in other folder and CLI program in other folder . I am trying to execute those python script using CLI program . Below is the os.popen method used to execute other script there is CLI program : .. . .. . and hare is error : .. . .. . there is some link-to other cmd CLI program 1 cmd Create line-oriented command processors https : pymotw.com 2 cmd index.html 2 Console built with Cmd object Python recipe http : code.activestate.com recipes 280500-console-built-with-cmd-object .. . .. . and some screen shot s for more information : enter image description here http : i.stack.imgur.com ngGW2.png .. . .. . Please run above code in your system . Comment : if anyone can have idea . how to solve this please post your program..it is very help for my work Comment : to execute other script and i also already try sys.system if you have idea to solve this with os.system please post it.. . Comment : ok sorry for import sys i am remove this when is post my program . Comment : yep and execute python script in new xterm...can you help me .. . Answer : As specified in the doc : .. . .. . https : pymotw.com 2 cmd index.html .. . .. . do shell is defined as such : .. . .. . But you are defining it as .. . .. . I think the intended use is define it as specified from the documentation . I ran your code and followed your example . I replicated your error . I then as specified in the documentation for do shell I changed the method to the as expected : .. . .. . From there the sys module was missing so you need to import that as well unless you did not copy it from your source . After that I got an error for index out of range probably because of the expectation of extra parameters needing to be passed . Furthermore because you are talking about Python scripts I don t see the need for the extra commands you are adding I simply changed the line to this : .. . .. . However if there is a particular reason you need the xterm command then you can probably put that back and it will work for your particular case . I also did not see the use-case for this : .. . .. . I commented that out . I ran your code and everything worked . I created a test file that just did a simple print and it ran successfully . So the code actually looks like this : .. . .. . The full code should look like this : Comment : read document properly . do shell self line args : here args for argument . Comment : Is this link the correct doc you are referencing : pymotw.com 2 cmd index.html https : pymotw.com 2 cmd index.html Comment : i post on link in my quastion Comment : @NajeebChoudhary Let me know what you think . I updated my answer Comment : thanks...it is realy help"
]
} | [
"yes-answer-long",
"yes-answer-short"
] | operating-system | UNK_RELATION |
nvidia-digits@digits@59 | nvidia-digits -- nvidia deep-learning gpu training system @placeholder is a gui for training and developing deep neural networks . | {
"confidence": [
56.99475860595703,
49.613983154296875,
45.897491455078125,
44.915863037109375,
42.17234802246094,
40.75817108154297,
40.20281219482422,
39.635223388671875,
38.43141555786133,
38.43141555786133,
38.279632568359375,
37.91743087768555,
37.828582763671875,
37.45023727416992,
36.35234069824219,
36.247642517089844,
36.10350799560547,
35.590301513671875,
34.38216018676758,
34.38216018676758,
34.167118072509766,
34.08759689331055,
33.199920654296875,
33.16816711425781,
33.10527038574219,
32.598350524902344,
31.381948471069336,
31.381948471069336,
31.37670135498047,
31.346227645874023,
30.833879470825195,
30.81568145751953,
27.684486389160156,
26.676536560058594,
25.27395248413086,
25.13242530822754,
25.13242530822754,
25.13242530822754,
24.67513656616211,
24.296905517578125,
24.225187301635742,
24.082304000854492,
23.938953399658203,
23.87051773071289,
23.821063995361328,
23.821063995361328,
23.77288055419922,
23.469881057739258,
23.144546508789062,
23.138023376464844,
22.825265884399414,
22.72136688232422,
22.72136688232422,
22.72136688232422,
22.00519371032715,
21.744131088256836,
21.707460403442383,
21.18704605102539,
20.75497055053711,
20.75497055053711,
20.75497055053711,
20.75497055053711,
20.354496002197266,
20.34173583984375,
20.34173583984375,
20.34173583984375,
20.34173583984375,
20.34173583984375,
20.34173583984375,
20.34173583984375,
20.34173583984375,
20.34173583984375,
20.34173583984375,
20.34173583984375,
20.163991928100586,
19.720521926879883,
19.505882263183594,
19.178184509277344,
19.061796188354492,
18.935272216796875,
18.784259796142578,
18.784259796142578,
18.784259796142578,
18.5696964263916,
18.5696964263916,
18.5696964263916,
18.051513671875,
17.812458038330078,
17.812458038330078,
17.80721092224121,
17.80721092224121,
17.80721092224121,
17.80721092224121,
17.80721092224121,
17.80721092224121,
17.80721092224121,
17.80721092224121,
17.80721092224121,
17.80721092224121,
17.80721092224121
],
"content": [
"I am using Nvidia Digits Box with GPU Nvidia GeForce GTX Titan X and Tensorflow 0.6 to train the Neural Network and everything works .",
"GPU by NVIDIA web driver",
"I am using nvidia-digits questions tagged nvidia-digits to train a CNN and get predictions .",
"I ve used Nvidia DIGITS before for some small image classification tasks .",
"NVidia DIGITS is based on caffe and therefore can work without a dedicated GPU Here the thread how to install on Macs : https : github.com NVIDIA DIGITS issues 88 .. . .. . According to https : www.github.com NVIDIA DIGITS issues 251 CUDA cannot be run on computers that do not have a dedicated NVidia GPU but according to How to run my CUDA application on ATI or Intel card in software mode",
"According to github.com NVIDIA DIGITS issues 251 https : github.com NVIDIA DIGITS issues 251 DIGITS is working on caffe and therefore it can also work on CPU just needs some tweeking .",
"I am trying to use a Torch Autoencoder implemented in NVIDIA Digits on RGB 256x256 images .",
"Einstein at Home has four separate programs to find gravitational waves : CPU NVidia GPU CUDA AMD GPU and ARM .",
"I ve been messing around with NVIDIA Digits to train a new dataset .",
"I am trying to achieve this using NVidia DIGITS and Caffe .",
"I wonder if there are ways to make full usage of GPU instead of CPU to speed up the training process .",
"The result is the training process is very slow .",
"I would like to use DIGITS to be able to setup a model to train carry out a proof of concept training on the data I have then generate a script to carry out the training on the full data set .",
"To make DIGITS work you need to .. . .. . build Caffe with CPU ONLY and tell DIGITS not to use any GPUs by running digits-devserver with the --config flag .. . .. . https : github.com NVIDIA caffe blob v0.13.2 Makefile.config.example L9-L10 https : github.com NVIDIA DIGITS issues 251 .",
"I have access to a small sample of the training-data .",
"I created a GoogleNet Model via Nvidia DIGITS with two classes called positive and negative .",
"Training will take long depending on your GPU but you should be patient .",
"@keiv-fly : How about NVIDIA web driver",
"Installed Digits as per the install guide https : github.com NVIDIA DIGITS blob digits-2.0 docs WebInstall.md .. . Caffe and OpenCV 2.4 were installed by default by the installer script .. . OpenCV 3 clobbered by OpenCV 2.4",
"Carried out the steps from the Digits Getting Started guide https : github.com NVIDIA DIGITS blob digits-2.0 docs GettingStarted.md .. . All steps were successful .. . 8 .",
"I checked the code a bit and thought the training script https : github.com NVIDIA DIGITS blob f9ad5ced48fa49c677066f1d6b315601ccfae163 digits model tasks train.py L49 would be a good place to start but I don t have in-depth knowledge of Caffe so I m not sure what the best quickest way to achieve this would be .",
"I have successfully completed the provided tutorial https : github.com NVIDIA DIGITS tree master examples autoencoder and I am confused about how to adjust the network to fit my data .",
"http : stackoverflow.com questions 10043974 how-to-run-my-cuda-application-on-ati-or-intel-card-in-software-mode there is a program gpuocelot that receives CUDA instructions and can work on NVidia GPU AMD GPU and x86 .",
"If you tried all possible solutions however you still feel slow and you can tried to change your hardware as GPU cluster http : on-demand.gputechconf.com supercomputing 2014 presentation SC424-deep-learning-gpu-clusters.pdf .",
"It is a driver that allows CUDA functionality on several Mac computers that have NVidia GPUs .",
"You got the training-data",
"@Igor evo if you are going to try this trick many times you may consider altering the training script of DIGITS .",
"I could probably use the net surgery you suggested and add modified code to the DIGITS training script .",
"The training-data lives on a server to which I can submit train and predict scripts .",
"I trained a neural-network model on Digits and it seemed to run fine there .",
"I am using the Nvidia DIGITS + caffe GoogLeNet and provided 10K samples per class so a whopping 20 million images 1Tb data .",
"However when I check the Volatile GPU Util using nvidia-smi -l 1 I notice that it s only 6 and I think most of the computation is on CPU since I notice that the process which runs Tensorflow has about 90 CPU usage .",
"For instance until recently reduce mean was not implemented on GPU and before that Rank was not implemented on GPU and it was implicitly being used by many ops .",
"I am using digits for image classification task .",
"Can anyone suggest a simple way to modify the DIGITS code to be able to select multiple pretrained networks",
"If my Mac does not have GPU then I have no chances to use GPU",
"If you don t have a specific code for GPU then the CPU code will not work on GPU .",
"The GPU drivers are specifically written for the GPU architecture and cannot be easily virtualized .",
"So it is not working without GPU .",
"Can anyone tell me where should i make changes in the digits files for that",
"I suspect you have a bottleneck somewhere like in this github issue https : github.com tensorflow tensorflow issues 838 -- you have some operation which doesn t have GPU implementation so it s placed on CPU and the GPU is idling because of data transfers .",
"The architecture differs a lot for CPU and GPU .",
"Finally just like @Shai said the most challenge of all process always is preparing data and check training whether the outcome is what you expected if it is not you should check data preparing data again or check training configuration .",
"Background : .. . .. . I wish to use both Caffe http : caffe.berkeleyvision.org and Digits https : developer.nvidia.com digits such that I can use Caffe within the Digits framework or external to it .",
"To solve this I would first recommend upgrading to 0.8 since it had a few more ops implemented for GPU reduce prod for integer inputs reduce mean and others .",
"Then you can create your session with log device placement True and see if there are any ops placed on CPU or GPU that would cause excessive transfers per step .",
"I m working on a machine-learning problem that has strict requirements on where data can reside .",
"Now I want to install DIGITS .",
"But the data prep create db task itself is being estimated to be 102 days and I shudder to think what the actual training time will be if that estimate is correct .",
"This project uses Caffe external to Digits and does not make any use of the Digits framework .",
"There are often ops in the input pipeline such as parse example which don t have GPU implementations I find it helpful sometimes to pin the whole input pipeline to CPU using with tf.device cpu : 0 : block",
"I couldn t find anything in DIGITS documentation .",
"Moreover can I have digits on my Mac",
"I have installed all the dependancies for DIGITS too .",
"I am using CPU only to do the learning. .",
"At one point I saw a network from fully connected preloaded.py https : github.com tensorflow tensorflow blob master tensorflow examples how tos reading data fully connected preloaded.py being slow because there was a Rank op that got placed on CPU and hence triggering the transfer of entire dataset from GPU to CPU at each step .",
"Do I need to remove OpenCV and reinstall Caffe and Digits",
"why downvote.. . As the author said But the data prep create db task itself is being estimated to be 102 days by using ImageDataLayer you don t have to creat lmdb database and just use txt file for training .",
"However I get a CUDA driver version error although I am not using GPU .",
"On the caffe homepage it is stated that you can choose whether you work with CPU or GPU .",
"The difference in architectures between CPU and GPU does not allow simple transformation of the code written for one architecture to the other .",
"So I do not have GPU and I need to run it only using CPU .",
"The network contains some layers with same dimensions and names as both pretrained networks .",
"Do I need to process the mean.binaryproto file from Digits somehow before I use it with caffe",
"Any image i try to classify individually using digits seems to run okay .",
"Im entirely new to caffe and DIGITS and as i said i ve spent days googling this problem - and cant seem to figure it out .",
"can you describe code and or DIGITS screen shots what exactly are you doing that causes the error",
"Turns out it was a bug - Posted on git and they flagged it officially and patched - to anyone else experiencing this problem update your DIGITS files",
"enter image description here http : i.stack.imgur.com z2nR8.jpg .. . .. . I am trying to build a model in DIGITS .",
"However for a particular project I require that Caffe uses OpenCV 3 and not OpenCV 2.4 which Digits installs by default .",
"How do I best resolve the OpenCV version conflict without breaking either Caffe Digits installations",
"I am trying to call the running instance of DIGITS from a front-end Android mobile-application .",
"If I classify an image with DIGITS it shows me a nice result like positive : 85.56 and negative : 14.44 .",
"How do I calculate the confidence levels not sure if this is the right term shown by DIGITS from the results shown by classify.py",
"I am new to machine-learning .",
"I created a pull request on the official repository and my changes were then merged with the main branch of DIGITS meaning it is now possible to use this functionality in DIGITS .",
"It appears that by installing Digits my OpenCV 3 installation was clobbered with OpenCV 2.4 which is now causing problems within my original Caffe installation .",
"Is there an easy way to incorporate this into the DIGITS code I edited the question",
"First you need to know what scenario you should use LMDB LevelDB http : stackoverflow.com a 35715139 2469488 and what benefit do you get especially training in parallel http : image-net.org tutorials cvpr2015 getting started.pdf .",
"libopencv core.so file usually links to the last version of OpenCV installed in the system .",
"without modifying caffe questions tagged caffe code to load wights from multiple pretrained networks into one network",
"I changed the code so that multiple pretrained networks can be loaded by using a colon as separator .",
"You can do this with caffe using the --weights parameter separating different networks with commas .",
"If so what do I need to do differently to prevent the OpenCV version conflicts while still allowing Caffe with OpenCV 3 and Digits to work side-by-side",
"DIGITS provides a REST API so the curl command would be : .. . .. . It is important to mention that the curl tool is using the Content-Type multipart form-data according to RFC 2388 .",
"in the installation it says : I have 2 modes to use DIGITS : 1- Development mode 2- production mode .. . .. . using the first mode : I should go to the PATH that my caffe binary file exist is it caffe.so",
"Then i exported the trained model files and copied them into a different system running the standard caffe web demo .",
"EDIT : I thought it wouldn t be possible to do it directly from DIGITS as confirmed by answers .",
"And digits is pretty high level...you ll need to drop into python or c++ to get it done .",
"Here is the default code : .. . .. . I have calculated my nodes following their notation : 3x256x256 196 608 but how do I calculate what my interval should be for the Linear layers and what my node scale down factor should be",
"Thanks",
"Thanks for your great answer",
"After I did some profiling work I noticed that tensor.eval session .. . feed dict .. . takes too much time and the time consumption grows as code running time goes by .",
"I wonder how I can improve this function usage and I really appreciate it : BTW I am using Tensorflow 0.6 I tried to upgrade it to 0.8 but I got the problems there - I guess that may be Tensorflow 0.8 bug : stackoverflow.com questions 36877559 http : stackoverflow.com questions 36877559 tensorflow-0-8-import-and-export-output-tensors-problems .",
"I also wonder if I can improve tensor.eval usage if I still keep using 0.6",
"I wanted to score the test db and get the predicted prob in csv file .",
"The server cannot provide any outbound web-traffic .",
"I ve been unable to find a path forward on this task through Googling .",
"Is this not possible",
"If it is possible how do I go about doing this"
]
} | {
"confidence": [
69.36661529541016,
67.40116119384766,
65.1742935180664,
60.413818359375,
60.07229232788086,
59.24262237548828,
57.71918487548828,
48.9788703918457,
47.00227737426758,
45.75566482543945,
38.850799560546875,
38.75756072998047,
33.6138916015625,
33.33602523803711,
33.20363998413086,
29.850868225097656,
26.996864318847656,
23.2327880859375,
21.185388565063477,
13.859637260437012
],
"content": [
"Question : I am using Nvidia Digits Box with GPU Nvidia GeForce GTX Titan X and Tensorflow 0.6 to train the Neural Network and everything works . However when I check the Volatile GPU Util using nvidia-smi -l 1 I notice that it s only 6 and I think most of the computation is on CPU since I notice that the process which runs Tensorflow has about 90 CPU usage . The result is the training process is very slow . I wonder if there are ways to make full usage of GPU instead of CPU to speed up the training process . Thanks .. . Answer : I suspect you have a bottleneck somewhere like in this github issue https : github.com tensorflow tensorflow issues 838 -- you have some operation which doesn t have GPU implementation so it s placed on CPU and the GPU is idling because of data transfers . For instance until recently reduce mean was not implemented on GPU and before that Rank was not implemented on GPU and it was implicitly being used by many ops . At one point I saw a network from fully connected preloaded.py https : github.com tensorflow tensorflow blob master tensorflow examples how tos reading data fully connected preloaded.py being slow because there was a Rank op that got placed on CPU and hence triggering the transfer of entire dataset from GPU to CPU at each step . To solve this I would first recommend upgrading to 0.8 since it had a few more ops implemented for GPU reduce prod for integer inputs reduce mean and others . Then you can create your session with log device placement True and see if there are any ops placed on CPU or GPU that would cause excessive transfers per step . There are often ops in the input pipeline such as parse example which don t have GPU implementations I find it helpful sometimes to pin the whole input pipeline to CPU using with tf.device cpu : 0 : block Comment : Thanks for your great answer After I did some profiling work I noticed that tensor.eval session .. . feed dict .. . takes too much time and the time consumption grows as code running time goes by . I wonder how I can improve this function usage and I really appreciate it : BTW I am using Tensorflow 0.6 I tried to upgrade it to 0.8 but I got the problems there - I guess that may be Tensorflow 0.8 bug : stackoverflow.com questions 36877559 http : stackoverflow.com questions 36877559 tensorflow-0-8-import-and-export-output-tensors-problems . I also wonder if I can improve tensor.eval usage if I still keep using 0.6",
"Question : null .. . Answer : I m working on a machine-learning problem that has strict requirements on where data can reside . The training-data lives on a server to which I can submit train and predict scripts . The server cannot provide any outbound web-traffic . I have access to a small sample of the training-data . I ve used Nvidia DIGITS before for some small image classification tasks . I would like to use DIGITS to be able to setup a model to train carry out a proof of concept training on the data I have then generate a script to carry out the training on the full data set . I ve been unable to find a path forward on this task through Googling . Is this not possible If it is possible how do I go about doing this",
"Question : I need to classify images into one of 2000 classes . I am using the Nvidia DIGITS + caffe GoogLeNet and provided 10K samples per class so a whopping 20 million images 1Tb data . But the data prep create db task itself is being estimated to be 102 days and I shudder to think what the actual training time will be if that estimate is correct . What is the best way to approach this challenge should I break up dataset into 3-4 models and use them separately Use a smaller dataset and risk less accuracy something else Thanks for helping out a newbie . .. . Answer : First you need to know what scenario you should use LMDB LevelDB http : stackoverflow.com a 35715139 2469488 and what benefit do you get especially training in parallel http : image-net.org tutorials cvpr2015 getting started.pdf . But what things you will encounter is that creating LMDB is large and slow and you also need to use SSD instead of HDD https : www.reddit.com r MachineLearning comments 3op2c3 help on speeding up caffe lmdb creation for to decrease time-consuming problem . Second when you only need to train CNN with small datasets e.g 2M images you can just use ImageDataLayer same as @kli nlpr said . Finally just like @Shai said the most challenge of all process always is preparing data and check training whether the outcome is what you expected if it is not you should check data preparing data again or check training configuration . If you tried all possible solutions however you still feel slow and you can tried to change your hardware as GPU cluster http : on-demand.gputechconf.com supercomputing 2014 presentation SC424-deep-learning-gpu-clusters.pdf .",
"Question : I have seen caffe installation for Mac . But I have a question . If my Mac does not have GPU then I have no chances to use GPU and I have to use CPU-only or I have the chance of using virtual GPU by NVIDIA web driver Moreover can I have digits on my Mac as I try to download it it does not have any options for Mac download and it is just for Ubuntu I am very confused about these questions Can you please make me clear about these Comment : The architecture differs a lot for CPU and GPU . If you don t have a specific code for GPU then the CPU code will not work on GPU . I suppose that it could also be the case the other way around . On the caffe homepage it is stated that you can choose whether you work with CPU or GPU . Comment : According to github.com NVIDIA DIGITS issues 251 https : github.com NVIDIA DIGITS issues 251 DIGITS is working on caffe and therefore it can also work on CPU just needs some tweeking . And according to the thread CUDA is not working on CPUs . Comment : @keiv-fly : How about NVIDIA web driver Comment : It is a driver that allows CUDA functionality on several Mac computers that have NVidia GPUs . So it is not working without GPU . Comment : I posted all the solutions to the problem that I found in the thread .. . Answer : The difference in architectures between CPU and GPU does not allow simple transformation of the code written for one architecture to the other . The GPU drivers are specifically written for the GPU architecture and cannot be easily virtualized . On the other hand some software supports both . This includes OpenGL instructions and caffe http : caffe.berkeleyvision.org . NVidia DIGITS is based on caffe and therefore can work without a dedicated GPU Here the thread how to install on Macs : https : github.com NVIDIA DIGITS issues 88 .. . .. . According to https : www.github.com NVIDIA DIGITS issues 251 CUDA cannot be run on computers that do not have a dedicated NVidia GPU but according to How to run my CUDA application on ATI or Intel card in software mode http : stackoverflow.com questions 10043974 how-to-run-my-cuda-application-on-ati-or-intel-card-in-software-mode there is a program gpuocelot that receives CUDA instructions and can work on NVidia GPU AMD GPU and x86 . In scientific shared computing they wrote separate programs for different devices e.g . Einstein at Home has four separate programs to find gravitational waves : CPU NVidia GPU CUDA AMD GPU and ARM . To make DIGITS work you need to .. . .. . build Caffe with CPU ONLY and tell DIGITS not to use any GPUs by running digits-devserver with the --config flag .. . .. . https : github.com NVIDIA caffe blob v0.13.2 Makefile.config.example L9-L10 https : github.com NVIDIA DIGITS issues 251 . Other possibility : .. . .. . you can still use the --config flag with the web installer . Try this : .. . .. . . runme.sh --config . Choose N to select none . Also a possibility : .. . .. . I am trying to answer how you can choose CPU or GPUs. . Within the caffe folder there is a Makefile.config.example file. . Copy the contents of this file into a new file and rename it as Makefile.config . If you want to use CPU then 1 . comment out the USE CUDNN : 1 Within Makefile.config file 2 . uncomment CPU ONLY : 1 3 . issue the make all command again within the caffe folder. . .. . .. . And if nothing helps you can do the procedure two times because it helped someone at the end of the thread .",
"Question : I need to classify images into one of 2000 classes . I am using the Nvidia DIGITS + caffe GoogLeNet and provided 10K samples per class so a whopping 20 million images 1Tb data . But the data prep create db task itself is being estimated to be 102 days and I shudder to think what the actual training time will be if that estimate is correct . What is the best way to approach this challenge should I break up dataset into 3-4 models and use them separately Use a smaller dataset and risk less accuracy something else Thanks for helping out a newbie . .. . Answer : You got the training-data This is the most challenging part of all the process don t give up on it Try breaking the task of data creation into steps and parrallelize them . Training will take long depending on your GPU but you should be patient .",
"Question : Is there a simple way e.g . without modifying caffe questions tagged caffe code to load wights from multiple pretrained networks into one network The network contains some layers with same dimensions and names as both pretrained networks . I am trying to achieve this using NVidia DIGITS and Caffe . EDIT : I thought it wouldn t be possible to do it directly from DIGITS as confirmed by answers . Can anyone suggest a simple way to modify the DIGITS code to be able to select multiple pretrained networks I checked the code a bit and thought the training script https : github.com NVIDIA DIGITS blob f9ad5ced48fa49c677066f1d6b315601ccfae163 digits model tasks train.py L49 would be a good place to start but I don t have in-depth knowledge of Caffe so I m not sure what the best quickest way to achieve this would be . .. . Answer : AFAIK there is no straight forward way of doing so . However you can use net surgery https : github.com BVLC caffe blob master examples net surgery.ipynb to load the pretrained models and manually assign their weights to the target net . Once you have a single net with all the weights initialized according to the various pretrained models you can save it and use it as a single pretrained model for the rest of your work . Comment : this is how to do it...a NN model is just a bunch of weights so all you need to do is copy them over and save it . good luck though...if you copy layers from different nets they may not play well together . And digits is pretty high level...you ll need to drop into python or c++ to get it done . Comment : Is there an easy way to incorporate this into the DIGITS code I edited the question Comment : @Igor evo if you are going to try this trick many times you may consider altering the training script of DIGITS . However I think if you are going to do this only once or twice you d better do it manually using net surgery . Comment : I m probably going to do this multiple times with different architectures so I m going to need something a bit more high-level . Comment : I could probably use the net surgery you suggested and add modified code to the DIGITS training script . I was hopping Caffe would expose some API for loading weights from a different network .",
"Question : Is there a simple way e.g . without modifying caffe questions tagged caffe code to load wights from multiple pretrained networks into one network The network contains some layers with same dimensions and names as both pretrained networks . I am trying to achieve this using NVidia DIGITS and Caffe . EDIT : I thought it wouldn t be possible to do it directly from DIGITS as confirmed by answers . Can anyone suggest a simple way to modify the DIGITS code to be able to select multiple pretrained networks I checked the code a bit and thought the training script https : github.com NVIDIA DIGITS blob f9ad5ced48fa49c677066f1d6b315601ccfae163 digits model tasks train.py L49 would be a good place to start but I don t have in-depth knowledge of Caffe so I m not sure what the best quickest way to achieve this would be . .. . Answer : As Shai suggested there was no way of doing this so I decided to clone the official repository and make the appropriate changes . I changed the code so that multiple pretrained networks can be loaded by using a colon as separator . I created a pull request on the official repository and my changes were then merged with the main branch of DIGITS meaning it is now possible to use this functionality in DIGITS . Comment : have you made similar pull request to the BVLC caffe repository Comment : You can do this with caffe using the --weights parameter separating different networks with commas .",
"Question : null .. . Answer : I am trying to use a Torch Autoencoder implemented in NVIDIA Digits on RGB 256x256 images . I have successfully completed the provided tutorial https : github.com NVIDIA DIGITS tree master examples autoencoder and I am confused about how to adjust the network to fit my data . Here is the default code : .. . .. . I have calculated my nodes following their notation : 3x256x256 196 608 but how do I calculate what my interval should be for the Linear layers and what my node scale down factor should be",
"Question : I need to classify images into one of 2000 classes . I am using the Nvidia DIGITS + caffe GoogLeNet and provided 10K samples per class so a whopping 20 million images 1Tb data . But the data prep create db task itself is being estimated to be 102 days and I shudder to think what the actual training time will be if that estimate is correct . What is the best way to approach this challenge should I break up dataset into 3-4 models and use them separately Use a smaller dataset and risk less accuracy something else Thanks for helping out a newbie . .. . Answer : I think you can use ImageDataLayer rather than LMDB or levelDB . Comment : why downvote.. . As the author said But the data prep create db task itself is being estimated to be 102 days by using ImageDataLayer you don t have to creat lmdb database and just use txt file for training . In my experience the speed of imagedatalayer is also very fast .",
"Question : I am using nvidia-digits questions tagged nvidia-digits to train a CNN and get predictions . However the .. . classify one.json returns top 5 predictions by default . I need a larger n how can I modify my request param to get the top n for example I couldn t find anything in DIGITS documentation . .. . Answer : Try modifying the accuracy param of your top Accuracy layer of the model s prototxt file . You should have something like .. . .. . Change the top k : 5 to the number you wish to get e.g . top k : 10 for getting top 10 classes .",
"Question : null .. . Answer : I am new to machine-learning . I ve been messing around with NVIDIA Digits to train a new dataset . My dataset however is too inaccurate and I think it is because there is too much background in the image that it is getting confused as to what the actual object is . My question : .. . .. . Is there a way possibly using RCNN to crop out the background and then proceed to train using the cropped image The object is consistent ex only one object like a singular person but there may be people in the background and always by itself . Comment : How big is your dataset How many categories and how many images do you have in each categories Comment : @gyurisc Roughly 10 000 images and 20 categories so max of 500 images per category .",
"Question : Background : .. . .. . I wish to use both Caffe http : caffe.berkeleyvision.org and Digits https : developer.nvidia.com digits such that I can use Caffe within the Digits framework or external to it . However for a particular project I require that Caffe uses OpenCV 3 and not OpenCV 2.4 which Digits installs by default . This project uses Caffe external to Digits and does not make any use of the Digits framework . It appears that by installing Digits my OpenCV 3 installation was clobbered with OpenCV 2.4 which is now causing problems within my original Caffe installation . To make things clearer below is a listing of the steps that I have taken . From a fresh Ubuntu 14.04 installation : .. . .. . 1 . Installed Caffe dependencies except OpenCV as per the Ubuntu install guide http : caffe.berkeleyvision.org install apt.html .. . 2 . Installed OpenCV 3 from source to usr local .. . 3 . Tested OpenCV installation .. . Demos worked fine including OpenCV 3-specific code .. . 4 . Compiled Caffe setting the Makefile.config to use OpenCV 3 .. . 5 . Tested Caffe installation .. . All tests passed demos worked fine .. . 6 . Installed Digits as per the install guide https : github.com NVIDIA DIGITS blob digits-2.0 docs WebInstall.md .. . Caffe and OpenCV 2.4 were installed by default by the installer script .. . OpenCV 3 clobbered by OpenCV 2.4 7 . Carried out the steps from the Digits Getting Started guide https : github.com NVIDIA DIGITS blob digits-2.0 docs GettingStarted.md .. . All steps were successful .. . 8 . Suspected OpenCV conflict so tried to compile a Caffe demo .. . Error occurred relating to OpenCV 3.0 and 2.4 conflict -- details below . Compilation command : .. . .. . g++ classification.cpp -o classification -I home josh software caffe include -L home josh software caffe build lib -lcaffe -I usr local cuda include -L usr local cuda lib64 -lcuda -lcudart -lcublas -lcurand -I home josh software cudnn include -L home josh software cudnn lib64 -lcudnn -L usr lib x86 64-linux-gnu -lglog -L usr local lib -lboost system -lopencv core -lopencv highgui -lopencv imgproc -lopencv imgcodecs -DUSE OPENCV .. . .. . Error message : .. . .. . usr bin ld : warning : libopencv core.so.3.0 needed by home josh software caffe build lib libcaffe.so may conflict with libopencv core.so.2.4 usr bin ld : tmp ccHaWcOl.o : undefined-reference to symbol ZN2cv6String10deallocateEv usr local lib libopencv core.so.3.0 : error adding symbols : DSO missing from command-line collect2 : error : ld returned 1 exit status .. . .. . Questions : .. . .. . 1 . How do I best resolve the OpenCV version conflict without breaking either Caffe Digits installations 2 . Do I need to remove OpenCV and reinstall Caffe and Digits If so what do I need to do differently to prevent the OpenCV version conflicts while still allowing Caffe with OpenCV 3 and Digits to work side-by-side .. . Answer : When OpenCV library is installed the shared-libraries are stored like libopencv core.so.2.4.8 where 2.4.8 is the version number of OpenCV . libopencv core.so file usually links to the last version of OpenCV installed in the system . Thus though libopencv core.so was initially linked to libopencv core.so.3.0 when you installed the older version the link got updated to link-to the older version . The workaround will be to specifically call the latest OpenCV library in caffe . To do so you will have to modify the Makefile present in caffe . Replace all occurrences of opencv to : libopencv .so.3.0",
"Question : null .. . Answer : enter image description here http : i.stack.imgur.com z2nR8.jpg .. . .. . I am trying to build a model in DIGITS . I am using CPU only to do the learning. . However I get a CUDA driver version error although I am not using GPU . What could this problem be I have attached my solver.prototxt below . enter image description here http : i.stack.imgur.com 3dLOS.jpg Comment : have you tried to build caffe in CPU ONLY mode Comment : Yes I did. . and it got resolved. .",
"Question : I created a GoogleNet Model via Nvidia DIGITS with two classes called positive and negative . If I classify an image with DIGITS it shows me a nice result like positive : 85.56 and negative : 14.44 . If it pass that model it into pycaffe s classify.py https : github.com BVLC caffe blob master python classify.py with the same image I get a result like array 0.38978559 -0.06033826 dtype float32 .. . .. . So how do I read interpret this result How do I calculate the confidence levels not sure if this is the right term shown by DIGITS from the results shown by classify.py Comment : it seems like the deploy.prototxt you feed to classify.py is missing the last Softmax layer . Comment : The last layer entry is layer name : prob type : Softmax bottom : loss3 classifier top : prob Comment : it is a bit odd . as usually Softmax layer should output values in range 0..1 that sum to one.. . can you look at the log and see what output layer you are actually getting Comment : Here is the log output https : gist.github.com pogopaule 5a74d504c5d98b39c107b184f85808b3 file-classify-py-output and the full deploy.prototxt https : gist.github.com pogopaule 5a74d504c5d98b39c107b184f85808b3 file-deploy-prototxt .. . Answer : This issue https : github.com BVLC caffe issues 2515 led me to the solution . As the log shows the network produces three outputs https : gist.github.com pogopaule 5a74d504c5d98b39c107b184f85808b3 file-classify-py-output-L3247-L3249 . Classifier classify only returns the first output https : github.com BVLC caffe blob 8714b53719165e42f7844126f671f32ecc9b2e2f python caffe classifier.py L91 . So e.g . by changing predictions out self.outputs 0 to predictions out self.outputs 2 I get the desired values .",
"Question : I trained a neural-network model on Digits and it seemed to run fine there . Then i exported the trained model files and copied them into a different system running the standard caffe web demo . I hoped to just be able to plug those files in and have them run in Caffe but i am getting an error . Specifically I copied my model into bvlc reference caffenet.caffemodel the deploy.prototxt into deploy.prototxt and the mean.binaryproto into the ilsvrc 2012 mean.npy file . However when I try to run it it appears to not like the format of the mean.binaryproto file as indicated by the error message : .. . .. . what am I doing wrong here Do I need to process the mean.binaryproto file from Digits somehow before I use it with caffe .. . Answer : You need to convert the .binaryproto file to a numpy file . There is a nice example here https : github.com BVLC caffe issues 290 using caffe.io and caffe.proto .",
"Question : null .. . Answer : I have installed and compiled caffe BVLC version . It works well . Now I want to install DIGITS . I have installed all the dependancies for DIGITS too . I want to install it on my Mac . So I do not have GPU and I need to run it only using CPU . in the installation it says : I have 2 modes to use DIGITS : 1- Development mode 2- production mode .. . .. . using the first mode : I should go to the PATH that my caffe binary file exist is it caffe.so supposing caffe.so as the required binary file I set the path as below : .. . .. . the result is : .. . .. . Then I want to starts the development server : .. . .. . but finally I face this error : .. . .. . Do you know where I am making mistake",
"Question : null .. . Answer : I am using digits for image classification task . I wanted to score the test db and get the predicted prob in csv file . Can anyone tell me where should i make changes in the digits files for that",
"Question : Not sure if this is an issue or not - but i have been searching for days and cannot seem to figure it out Any image i try to classify individually using digits seems to run okay . However when using the classify many images button the network crashes because of the aforementioned title bug i dont even know what the hell it is . Im entirely new to caffe and DIGITS and as i said i ve spent days googling this problem - and cant seem to figure it out . what is the 5th dimension on the image and if i do actually have 5D images how do i convert them to 4D Thanks Comment : your question is not clear . can you describe code and or DIGITS screen shots what exactly are you doing that causes the error .. . Answer : Turns out it was a bug - Posted on git and they flagged it officially and patched - to anyone else experiencing this problem update your DIGITS files",
"Question : null .. . Answer : I am trying to call the running instance of DIGITS from a front-end Android mobile-application . DIGITS provides a REST API so the curl command would be : .. . .. . It is important to mention that the curl tool is using the Content-Type multipart form-data according to RFC 2388 . This enables uploading of binary files etc . Many people use Android Volley for HTTP POST transfer however for multipart form-data a custom request should be written which turns to be complex . I am looking to send parameter name value to the server where value can be either an image or a String . I have tried so far to adapt the solutions suggested here http : stackoverflow.com questions 32240177 working-post-multipart-request-with-volley-and-without-httpentity and here http : stackoverflow.com a 16803473 3852150 but didn t figure out how to send name value to the server . Adapting these answers or suggesting some more up-to-date libraries would be great . Comment : Did you find solution to your problem Would be interested to learn",
"Question : In a recent discussion I found out that some parts of the deploy.prototxt exist only because they have been directly copied from the train test.prototxt and are ignored during testing . For example : .. . .. . I was told that the section containing LR for weights as biases was useless in deploy files and could be deleted . This got me thinking is the convolution param portion absolutely required If yes do we still have to define the weight and bias fillers as we will only do testing using this file and fillers are initialized only when we need to train a network . Is there any other detail that is unnecessary .. . Answer : The convolution param portion is required but you can remove weight filler and bias filler if you want . Comment : Thank you Harsh One small question though : Do I need to remove it or I can if I want to and otherwise it won t be an issue anyway . Comment : @Qazi it s not mandatory to remove these portions . Comment : @Shai Thank you"
]
} | [
"yes-answer-long",
"yes-answer-short"
] | digits | UNK_RELATION |
xmlseclibs@xml-encryption@71 | xmlseclibs -- xmlseclibs is a library written in php for working with @placeholder and signatures . | {
"confidence": [
52.93812561035156,
52.51826858520508,
50.20161437988281,
50.0162467956543,
48.98798370361328,
46.408477783203125,
46.39539337158203,
46.39539337158203,
43.01084518432617,
42.6099967956543,
40.19200897216797,
39.09785079956055,
37.498779296875,
37.498779296875,
37.22441482543945,
35.58258056640625,
35.31245040893555,
35.31245040893555,
35.043296813964844,
34.63322067260742,
34.08743667602539,
33.566490173339844,
32.93067932128906,
32.619224548339844,
32.619224548339844,
32.619224548339844,
32.025360107421875,
31.939990997314453,
31.079750061035156,
30.507953643798828,
30.10570526123047,
29.96258544921875,
27.756174087524414,
27.756174087524414,
27.454910278320312,
26.287960052490234,
26.287960052490234,
22.656442642211914,
20.36920166015625,
18.51837158203125,
18.349138259887695,
17.299047470092773,
17.299047470092773,
17.261362075805664,
17.094362258911133,
16.7076416015625,
16.67937469482422,
16.67937469482422,
16.67937469482422,
16.67937469482422,
16.610706329345703,
16.412675857543945,
16.092866897583008,
15.830939292907715,
15.655909538269043,
15.436288833618164,
15.385690689086914,
15.241954803466797,
14.944461822509766,
14.877403259277344,
14.877403259277344,
14.68600845336914,
14.394241333007812,
14.19845962524414,
13.986146926879883,
13.986146926879883,
13.986146926879883,
13.701581954956055,
13.497732162475586,
13.217794418334961,
13.217794418334961,
13.217794418334961,
13.217794418334961,
13.217794418334961,
13.059520721435547,
12.742725372314453,
12.742725372314453,
12.125624656677246,
12.125624656677246,
12.125624656677246,
12.125624656677246,
12.125624656677246,
12.125624656677246,
12.125624656677246,
12.125624656677246,
12.125624656677246,
12.125624656677246,
12.125624656677246,
12.125624656677246,
12.125624656677246
],
"content": [
"I am using the SAML2 library from simpleSAMLphp project which in turn is using the PHP xmlseclibs library for signing XML and verifying the signatures .",
"PHP library xmlseclibs doesn t do that by default .",
"The IdP-s response comes back with a signature .. . .. . and looks like xmlseclibs is not supporting dsa signatures .",
"Is this a version of xmlseclibs that does not use mcrypt or a version of simplesamlphp that does not use xmlseclibs",
"I recently had the same issue with the xmlseclibs library .",
"Since xmlseclibs is PHP it seems like another PHP solution might be desirable .",
"I managed to verify WP8 IAP receipt using xmlseclibs https : code.google.com p xmlseclibs library .",
"Signing example .. . .. . Signing occurs with the library xmlseclibs http : code.google.com p xmlseclibs with this code NB .",
"I am trying to sign XML file with PHP and xmlseclibs .",
"I m trying to submit a signed XML document with xmlseclibs https : code.google.com p xmlseclibs but the signature is turning itself to be wrong .",
"as an update simplesamlphp is also using xmlseclibs so no DSA support there either",
"I got the library from enter link description here https : code.google.com p xmlseclibs .. . .. . Thanks in advance .",
"It does look like a bug you should post it to xmlseclibs issue tracker .",
"an earlier answersuggest that xmlseclibs XML canonicalization is flawed http : stackoverflow.com a 2201304 367456 .",
"I ve wrote a facade library called xmldsig https : github.com Maks3w xmldsig for simplify the use of the underline XMLSecLibs .. . .. . With this library the code result as this :",
"I m using xmlseclibs http : code.google.com p xmlseclibs to try and sign a SOAP document but it does not seem to canonicalize things in the same way depending on whether I m signing or validating .",
"i use xmlseclibs v.1.3.1 .. . .. . here is how i try to sign my xml .. . .. . It always give me Failure",
"simplesamlphp uses xmlseclibs 1.3.1 which in turn uses mcrypt and mcrypt is not supported on RedHat Linux 7 .",
"maybe an invalid question but if XML Signature mandates the DSAwithSHA1 signature algorithm how come that the PHP xmlseclibs library that looks like being used widely is not implementing DSA encryption",
"This was first time for me working with xml signatures so bare with me .",
"It appears that the xmlseclibs has a method XMLSecurityKey : : convertRSA which accepts a modulus and an exponent and will create a PEM compatible public-key .",
"http : stackoverflow.com questions 15140200 how-to-validate-signature-with-phpseclib-in-a-xml-signature-message .. . .. . http : code.google.com p xmlseclibs issues attachmentText id 6 aid -1080340148797098435 name example.php token 81f737657f6cf89b3e7fcdb6cc15033b http : code.google.com p xmlseclibs issues attachmentText id 6 aid -1080340148797098435 name example.php token 81f737657f6cf89b3e7fcdb6cc15033b .. . .. . http : code.google.com p xmlseclibs issues detail id 13 .. . .. . Which is the proper XML exclusive canonicalization",
"The provider of the service gave me this example request : .. . .. . I am using xmlseclib library https : github.com robrichards xmlseclibs for signing soap requests .",
"But then I tested it by immediately trying to validate it after signing it again with xmlseclibs and the public-key certificate but the validation failed .",
"See the bug report for more information : http : code.google.com p xmlseclibs issues detail id 6",
"I don t know enough about xmlseclibs to say why this is happening but it s definitely wrong on both counts .",
"The xmlseclibs library library canonicalizes this as following : .. . .. . However the element my partner actually signs is this : .. . .. . Pretty much the same however without the xmlns : xsi http : www.w3.org 2001 XMLSchema-instance namespace .",
"After a long struggle I finally got the signatures working .",
"I ve been signing work-related xml for almost a year and today i noticed that i was doing it wrong please excuse my bad english it s not my primary language .. . .. . I use the xmlseclibs library for php and i want the signatures to be like this : .. . .. . The following example should help me to demonstrate what i want to do .",
"I have two XML files structured as follows : .. . .. . My Key .. . .. . A Public Key .. . .. . I am using the xmlseclibs library by Robert Richards which requires a .PEM representation of the key in order to encrypt and decrypt things .",
"I m signing the SAML file with this PHP library : https : code.google.com p xmlseclibs and using the following code : .. . .. . I will say if I don t have the last part of this line .. . .. . Specifically array force uri true uri context encHash1 the service provider sees the file and successfully auth s my request .",
"The code below if you are interested is what I managed to do with xmlseclibs so far : .. . .. . XML string .. . .. . Creating XML object to sign .. . .. . Creating the signature object with xmlseclibs .. . .. . Trying to turn off the ds : prefix which didn t work .. . .. . Accessing the necessary key data .. . .. . Signing the XML object .. . .. . Adding the public-key .. . .. . Appending the enveloped signature to the XML object .. . .. . Saving the signed XML code toa file .. . .. . Additionaly would also like from this library : .. . .. . 1 .",
"The expected structure of the output XML should be something like this : .. . .. . I tried using xmlseclibs but I can t figure out how to include all the required information since the examples are rather basic .",
"So I was wondering who is correct here -- does the xsi namespace have to be included even though there are no elements in this namespace because it is included in the InclusiveNamespaces or if it is not why does xmlseclibs includes that namespace there with C14N canonicalization",
"With XML Signatures my understanding is that the signature covers a normalized form of the XML .",
"This seems pretty clearly like a bug in xmlseclibs but nonetheless it s one I d be happy to fix myself if I just knew which canonical form was the correct one .",
"I ve found some partial information about signed XML and x509 some libraries xmlseclibs - useless uses openssl functions which do not support sha256 phpseclib - looks promising but their documentation and examples are poor with no help .",
"I added some debugging code to xmlseclibs to find out what it s doing and I realized that the reason the signing key it comes up with and the validation key it comes up with are different are because it canonicalizes things differently in the two situations .",
"The xsi namespace is mentioned in the signature Transform elements : Transform Algorithm http : www.w3.org 2001 10 xml-exc-c14n InclusiveNamespaces xmlns http : www.w3.org 2001 10 xml-exc-c14n PrefixList default saml ds xs xsi Transform .. . .. . The SAML authentication fails because of this since the SHA1 digest in the signature does not match the digest xmlseclibs calculated on the element .",
"While PF is not a code library it s a complete on-premise SSO solution it supports all the various identity protocols needed for cloud computing SAML 1.0 1.1 2.0 WS-Federation and can pretty easily hook into a PHP application via RESTful Web Services or PHP Libraries .",
"Im using xmlseclib php which seems to work .",
"In the library I send a private RSA key and a certificate .",
"Know official and trustable repository to ensure the library is not corrupted .",
"I am using SAML 2.0 as a service provider and embedded php-saml https : github.com onelogin php-saml - used simplesamlphp first but found a bit tough to embed .",
"PHP : .. . .. . 2 .",
"You might consider using lightsaml https : github.com aerialship lightsaml library .",
"You d have to ask the guys who wrote the open-source PHP stuff on why they left it out .",
"Part of the historical reason for lacking DSA support in PHP libraries may be related to this : .. . .. . https : bugs.php.net bug.php id 41033",
"First step would be to enable error output for PHP so you can see the real error message .",
"It could be that you are hitting this bug https : bugs.php.net bug.php id 61930 but there is no way to know without the error message from PHP .",
"Hello have been working on this for a couple of days and cant find the problem .",
"However my PHP code ends up with Internal Error .",
"You should be able to install the php-mcrypt extension from the Fedora project repo : .. . .. . Check the versions available above is just an example .",
"I m working on a project and have basically reached a point where I don t know what to do to get much farther .",
"Also you need php-curl enabled .",
"This is the XML I am trying to sign : .. . .. . I got some code working in PHP to sign it using a combination of public-key and private key certificates and it seemed to work .",
"It s not clear which errors you get nor what specifically is working .",
"Did you get this working",
"Right now I ve spent a whole day by searching for a way to do it in PHP .",
"I ve just spent about 20 mins on simplesamlphp and found that it is totally dependant on it s own URL structures and being a proper webserver endpoint instead of just a library .",
"Thanks it helps but it is still not formal documentation needed to have a complete map of the library and next to go directly to what you need and in the other hand to know inmediatly the library s limitations .",
"I guess will need to work with the creators of the simpleSAMLphp library to find a more elegant solution for the long term .",
"I wanted to use it to verify xml-signature by provided certificate as it is written in MS documentation .",
"Actually some further debugging showed that the problem was with a bug in the SAML2 library which is a part of smipleSAMLphp project : https : github.com simplesamlphp saml2 .",
"It wouldn t necessarily have to be in PHP per se it could be a COM object or possibly something else entirely that I can interface with .",
"I need to verify in-app purchases made in Windows 8 applications server-side using PHP .",
"At this moment I am building the XML with HEREDOC simply php strings and with a cleanup I d like to create the XML with DOMDocument directly .",
"For Windows there is WWSAPI msdn.microsoft.com en-us library dd430435 28VS.85 29.aspx http : msdn.microsoft.com en-us library dd430435 28VS.85 29.aspx but that s only installed-by-default on Win7+ .",
"Existing material how to create and add WSSE Headers with PHP actually even exists on this website so it is specifically absolutely not clear what you re asking here for as by the text in the title this question has been asked before but you don t highlight what makes it different to existing material .",
"So the exact same code library is doing both the signing and validating but the two processes don t agree for some reason .",
"It would be also interesting to learn about whether or not you contacted the vendor of the library for your support options or not .",
"MSDN s documentation page http : msdn.microsoft.com en-us library windows apps jj649137.aspx has an example only in C .",
"Do not get me wrong I didn t mean to be rude phpseclib looks like a strong library .",
"If someone who has used this library have an idea how can I reach that I will be really gratefull for any suggestions .",
"When decrypting element SAML2 library does this : .. . .. . see https : github.com simplesamlphp saml2 blob master src SAML2 Utils.php line 494 .. . .. . This is a workaround in case there would be some orphan elements when only a subset of the document was serialized for encryption .",
"Don t know for PHP mine is for Python .. . it probably wouldn t be that hard to write a c14n-compliant serialiser function for DOMDocument though the rules really aren t hugely complex XML serialisation is much easier than parsing .",
"@SoaperGEM the PHP DOM extension has a just recently documented but there since 5.2.0 method for c14n : php.net manual en domnode.c14n.php http : www.php.net manual en domnode.c14n.php",
"I want to sign my xml files so that the persons I give them to can be certain that they are not tampered with and that I guarantee that these are XML files from me .",
"I have som questions I hope you could answer for me : .. . .. . 1 .",
"How should I handle the certificate",
"If I use my cert I bought for my https server it is only valid for 1 year",
"I want my signed documents to valid forever .",
"Should I generate my own cert",
"How do I do that in openssl",
"2 .",
"Could someone please give me an overview of what goes into ds : SignatureValue ds : DigestValue and ds : X509Certificate and how they are used",
"My auto-added tag : .. . .. . Thanks",
"Have you solved this problem",
"The certificate should be included in field 3 .",
"It can help building a trusted chain of certificates so that the receiver can determine that the signature is valid ."
]
} | {
"confidence": [
68.80664825439453,
63.46681213378906,
63.223880767822266,
62.759552001953125,
60.51182556152344,
56.029869079589844,
55.733848571777344,
55.260276794433594,
54.702171325683594,
54.702171325683594,
54.558998107910156,
54.509666442871094,
53.51914978027344,
53.36512756347656,
49.626808166503906,
48.34661865234375,
47.81882095336914,
47.81882095336914
],
"content": [
"Question : I ve checked SO and googled around but haven t found answers so far . I am using SAML 2.0 as a service provider and embedded php-saml https : github.com onelogin php-saml - used simplesamlphp first but found a bit tough to embed . The IdP-s response comes back with a signature .. . .. . and looks like xmlseclibs is not supporting dsa signatures . Question A : any suggestions what to use to verify the dsa signature Question B : just curious what libs other people are using for SAML . I ve just spent about 20 mins on simplesamlphp and found that it is totally dependant on it s own URL structures and being a proper webserver endpoint instead of just a library . Cheers Comment : as an update simplesamlphp is also using xmlseclibs so no DSA support there either .. . Answer : Part of the historical reason for lacking DSA support in PHP libraries may be related to this : .. . .. . https : bugs.php.net bug.php id 41033",
"Question : I ve checked SO and googled around but haven t found answers so far . I am using SAML 2.0 as a service provider and embedded php-saml https : github.com onelogin php-saml - used simplesamlphp first but found a bit tough to embed . The IdP-s response comes back with a signature .. . .. . and looks like xmlseclibs is not supporting dsa signatures . Question A : any suggestions what to use to verify the dsa signature Question B : just curious what libs other people are using for SAML . I ve just spent about 20 mins on simplesamlphp and found that it is totally dependant on it s own URL structures and being a proper webserver endpoint instead of just a library . Cheers Comment : as an update simplesamlphp is also using xmlseclibs so no DSA support there either .. . Answer : PingFederate from Ping Identity gives you DSA as an option As IDP and SP . Although XML Signature mandates the DSAwithSHA1 signature algorithm it is not required by SAML V2.0 but is RECOMMENDED . While PF is not a code library it s a complete on-premise SSO solution it supports all the various identity protocols needed for cloud computing SAML 1.0 1.1 2.0 WS-Federation and can pretty easily hook into a PHP application via RESTful Web Services or PHP Libraries . Comment : maybe an invalid question but if XML Signature mandates the DSAwithSHA1 signature algorithm how come that the PHP xmlseclibs library that looks like being used widely is not implementing DSA encryption Also is there a free alternative to PF Comment : You d have to ask the guys who wrote the open-source PHP stuff on why they left it out . Probably because it s not required per SAML2 spec . Most commercial SAML solutions should support DSA RSA keys . You might be able to find something free but it will not have the simplicity protocol support or Technical Support options that PF does . Maybe check out PingOne if you just want an external service to call . Not free but very quick easy cheap to implement and includes free trial .",
"Question : I am running into the problem with validating the signature for the SAML 2.0 Assertion XML . I am using the SAML2 library from simpleSAMLphp project which in turn is using the PHP xmlseclibs library for signing XML and verifying the signatures . I am receiving the following assertion from my partner : .. . .. . The signature element requests exclusive C14N canonicalization . The xmlseclibs library library canonicalizes this as following : .. . .. . However the element my partner actually signs is this : .. . .. . Pretty much the same however without the xmlns : xsi http : www.w3.org 2001 XMLSchema-instance namespace . The xsi namespace is mentioned in the signature Transform elements : Transform Algorithm http : www.w3.org 2001 10 xml-exc-c14n InclusiveNamespaces xmlns http : www.w3.org 2001 10 xml-exc-c14n PrefixList default saml ds xs xsi Transform .. . .. . The SAML authentication fails because of this since the SHA1 digest in the signature does not match the digest xmlseclibs calculated on the element . So I was wondering who is correct here -- does the xsi namespace have to be included even though there are no elements in this namespace because it is included in the InclusiveNamespaces or if it is not why does xmlseclibs includes that namespace there with C14N canonicalization .. . Answer : Actually some further debugging showed that the problem was with a bug in the SAML2 library which is a part of smipleSAMLphp project : https : github.com simplesamlphp saml2 . When decrypting element SAML2 library does this : .. . .. . see https : github.com simplesamlphp saml2 blob master src SAML2 Utils.php line 494 .. . .. . This is a workaround in case there would be some orphan elements when only a subset of the document was serialized for encryption . Unfortunately this creates an extra xsi namespace which shows up in the canonicalization down the road if xsi is included in the InclusiveNamespaces PrefixList . Changing it to : .. . .. . actually does the trick in my case . However this is just a q quick hack and is not ideal since it may introduce some other errors for different implementations . I guess will need to work with the creators of the simpleSAMLphp library to find a more elegant solution for the long term .",
"Question : I ve been signing work-related xml for almost a year and today i noticed that i was doing it wrong please excuse my bad english it s not my primary language .. . .. . I use the xmlseclibs library for php and i want the signatures to be like this : .. . .. . The following example should help me to demonstrate what i want to do . We have the following xml file : .. . .. . And after i sign it looks like this : .. . .. . Now that s the structure i need however when i do this the sign is applied over all the document node1 and node2 but i only want to sign the node2 that s the error im getting i noticed it thanks to the DigestValue . But when i do that i got the following : .. . .. . I ve trying for days but i can t place the signature where i want it to be just under the tag that s been signed not inside . Any thoughts The function i m using is something like this : .. . .. . does anybody knows how to do this .. . Answer : I recently had the same issue with the xmlseclibs library . Here s what worked for me : .. . .. . Hope it can be of help .",
"Question : Hello have been working on this for a couple of days and cant find the problem . This was first time for me working with xml signatures so bare with me . i use xmlseclibs v.1.3.1 .. . .. . here is how i try to sign my xml .. . .. . It always give me Failure result.. . could some1 help me with what i m doing wrong Thnx . P.s . sorry for any english mistakes because it s not my native language . .. . Answer : First step would be to enable error output for PHP so you can see the real error message . It could be that you are hitting this bug https : bugs.php.net bug.php id 61930 but there is no way to know without the error message from PHP .",
"Question : We are trying to run simplesamlphp as an SP on RedHat Linux 7 . The code is failing with a HP Fatal error : .. . .. . Call to undefined function mcrypt module open . simplesamlphp uses xmlseclibs 1.3.1 which in turn uses mcrypt and mcrypt is not supported on RedHat Linux 7 . Has anyone found a way to get around this problem Is this a version of xmlseclibs that does not use mcrypt or a version of simplesamlphp that does not use xmlseclibs .. . Answer : You should be able to install the php-mcrypt extension from the Fedora project repo : .. . .. . Check the versions available above is just an example . As a note SimpleSAMLphp requires mcrypt for encrypting assertions only . See SimpleSAMLphp prerequisites : https : simplesamlphp.org docs 1.5 simplesamlphp-install section 3",
"Question : I m using xmlseclibs http : code.google.com p xmlseclibs to try and sign a SOAP document but it does not seem to canonicalize things in the same way depending on whether I m signing or validating . I ll give you an example . This is the XML I am trying to sign : .. . .. . I got some code working in PHP to sign it using a combination of public-key and private key certificates and it seemed to work . It added the ds : Signature element with all the proper stuff and it looked great . But then I tested it by immediately trying to validate it after signing it again with xmlseclibs and the public-key certificate but the validation failed . So the exact same code library is doing both the signing and validating but the two processes don t agree for some reason . I added some debugging code to xmlseclibs to find out what it s doing and I realized that the reason the signing key it comes up with and the validation key it comes up with are different are because it canonicalizes things differently in the two situations . When I tell it to sign the samlp : Response element this is the canonical form it signs I ve added newlines here for readability : .. . .. . However when it goes to validate the signature this is the canonical form it computes to validate against again I ve added newlines here : .. . .. . So as you can see this version omits the xmlns : saml attribute from the samlp : Response element while the first does not . Note that this is different from the xmlns : samlp attribute which is included in both . This seems pretty clearly like a bug in xmlseclibs but nonetheless it s one I d be happy to fix myself if I just knew which canonical form was the correct one . Should that attribute be omitted by exclusive canonicalization Or should it be included Which one is the correct exclusive canonical form Comment : It does look like a bug you should post it to xmlseclibs issue tracker . .. . Answer : You are creating the DOM document improperly and trying to use the invalid in-memory tree . Either serialize and use the serialized result or properly create the namespace declarations in the tree before trying to sign . See the bug report for more information : http : code.google.com p xmlseclibs issues detail id 6",
"Question : I need to verify in-app purchases made in Windows 8 applications server-side using PHP . MSDN s documentation page http : msdn.microsoft.com en-us library windows apps jj649137.aspx has an example only in C . Right now I ve spent a whole day by searching for a way to do it in PHP . No success . All over the internet there are only .NET examples on this topic . I ve found some partial information about signed XML and x509 some libraries xmlseclibs - useless uses openssl functions which do not support sha256 phpseclib - looks promising but their documentation and examples are poor with no help . Is it possible to do it somehow without learning everything about signed XML RSA and x509 Right now I ve read almost everything but everywhere is info only about encoding . Nothing about verifying . Comment : Did you get this working .. . Answer : I managed to verify WP8 IAP receipt using xmlseclibs https : code.google.com p xmlseclibs library . Also you need php-curl enabled .",
"Question : An API client I have developed works with XML messages and the messages are signed according to the XML Signature Syntax and Processing http : www.w3.org TR xmldsig-core specification . After a long struggle I finally got the signatures working . At this moment I am building the XML with HEREDOC simply php strings and with a cleanup I d like to create the XML with DOMDocument directly . However this causes the message to be invalidated by the server . This is the current setup server accepts this message when signed : .. . .. . This is the OO approach server rejects this message when signed : .. . .. . What can cause the difference as such the XML signature is invalidated by the server The code to sign the message is exactly the same . The server is simply reporting Invalid electronic signature . If required I can show more code . EDIT more output and comparison of XML generated .. . .. . To give some more information this is the output of the first HEREDOC xml generated via document- saveXml : .. . .. . This is the output document- saveXML for the second direct DOMDocument generation method : .. . .. . In php var-dump gives the exact same string-length . If I compare both strings obviously they are the same . Comparing both objects then they are not the same . Signing example .. . .. . Signing occurs with the library xmlseclibs http : code.google.com p xmlseclibs with this code NB . both types are signed the same way : .. . .. . If I dump the XML after it s signed the DigestValue and SignatureValue values are different . So the server is correct the signature is invalid but I cannot come up with a clue why method A works and B not . Comment : an earlier answersuggest that xmlseclibs XML canonicalization is flawed http : stackoverflow.com a 2201304 367456 . That might also explain your experience . That answer you give then sounds just misleading then at best then in case there is an error in phpseclibs at that end . .. . Answer : You are overwriting merchant when you create the Merchant element so just rename the variable Comment : That was a typo as I got the data from an array and I copy pasted it into a slightly more readable format . All the values are injected as required afaik the issue is something else . Comment : Thanks for the answer anyhow : Comment : @JurianSluiman Without actual code you wont be able to get much help Comment : here are the examples for both the XML output and signature functions . The digest and signature itself are different resulting in the given error .",
"Question : An API client I have developed works with XML messages and the messages are signed according to the XML Signature Syntax and Processing http : www.w3.org TR xmldsig-core specification . After a long struggle I finally got the signatures working . At this moment I am building the XML with HEREDOC simply php strings and with a cleanup I d like to create the XML with DOMDocument directly . However this causes the message to be invalidated by the server . This is the current setup server accepts this message when signed : .. . .. . This is the OO approach server rejects this message when signed : .. . .. . What can cause the difference as such the XML signature is invalidated by the server The code to sign the message is exactly the same . The server is simply reporting Invalid electronic signature . If required I can show more code . EDIT more output and comparison of XML generated .. . .. . To give some more information this is the output of the first HEREDOC xml generated via document- saveXml : .. . .. . This is the output document- saveXML for the second direct DOMDocument generation method : .. . .. . In php var-dump gives the exact same string-length . If I compare both strings obviously they are the same . Comparing both objects then they are not the same . Signing example .. . .. . Signing occurs with the library xmlseclibs http : code.google.com p xmlseclibs with this code NB . both types are signed the same way : .. . .. . If I dump the XML after it s signed the DigestValue and SignatureValue values are different . So the server is correct the signature is invalid but I cannot come up with a clue why method A works and B not . Comment : an earlier answersuggest that xmlseclibs XML canonicalization is flawed http : stackoverflow.com a 2201304 367456 . That might also explain your experience . That answer you give then sounds just misleading then at best then in case there is an error in phpseclibs at that end . .. . Answer : I have now solved it by exporting and importing the XML again . It s quite ugly but allows me to flexibly handle the DOMNodes . If there is a suggestion how to stop doing this I am pleased to hear so . Comment : There is no need to re-invent the wheel the method is called DOMDocument : : normalizeDocument http : php.net manual en domdocument.normalizedocument.php and that has nothing to do with repair btw reload would have been a better term as that is exactly what you re doing . Comment : Reading about the link you post in the comment of my question I might fix the issue by replacing xmlns document- createAttribute xmlns xmlns- value http : www.idealdesk.com ideal messages mer-acq 3.3.1 by document- setAttributeNS http : www.idealdesk.com ideal messages mer-acq 3.3 . 1 . I don t have time to look into it now but thanks for this answer and I will check it out If it doesn t work I will try normalizeDocument as an alternative .",
"Question : I have signed the XML but I don t know how to include KeyValue element in the signature . Having some documentation would save a lot of time . The code below if you are interested is what I managed to do with xmlseclibs so far : .. . .. . XML string .. . .. . Creating XML object to sign .. . .. . Creating the signature object with xmlseclibs .. . .. . Trying to turn off the ds : prefix which didn t work .. . .. . Accessing the necessary key data .. . .. . Signing the XML object .. . .. . Adding the public-key .. . .. . Appending the enveloped signature to the XML object .. . .. . Saving the signed XML code toa file .. . .. . Additionaly would also like from this library : .. . .. . 1 . Know official and trustable repository to ensure the library is not corrupted . 2 . Turning off the ds : prefix because nor the example nor the documentation of the XML I am producing includes such prefix . 3 . Linebreaks every X characters in the Base64 type values . 4 . Full indentation otherwise none at all . I got the library from enter link description here https : code.google.com p xmlseclibs .. . .. . Thanks in advance . .. . Answer : Here is a list of links which might help with those issues : .. . .. . How to validate signature with phpseclib in a XML signature message http : stackoverflow.com questions 15140200 how-to-validate-signature-with-phpseclib-in-a-xml-signature-message .. . .. . http : code.google.com p xmlseclibs issues attachmentText id 6 aid -1080340148797098435 name example.php token 81f737657f6cf89b3e7fcdb6cc15033b http : code.google.com p xmlseclibs issues attachmentText id 6 aid -1080340148797098435 name example.php token 81f737657f6cf89b3e7fcdb6cc15033b .. . .. . http : code.google.com p xmlseclibs issues detail id 13 .. . .. . Which is the proper XML exclusive canonicalization http : stackoverflow.com questions 2200988 which-is-the-proper-xml-exclusive-canonicalization .. . .. . Not sure it will solve everything but should help you along a bit . Comment : Thanks it helps but it is still not formal documentation needed to have a complete map of the library and next to go directly to what you need and in the other hand to know inmediatly the library s limitations . I m quite sure such thing doesn t exist to-date but i had to do my last try .",
"Question : I have signed the XML but I don t know how to include KeyValue element in the signature . Having some documentation would save a lot of time . The code below if you are interested is what I managed to do with xmlseclibs so far : .. . .. . XML string .. . .. . Creating XML object to sign .. . .. . Creating the signature object with xmlseclibs .. . .. . Trying to turn off the ds : prefix which didn t work .. . .. . Accessing the necessary key data .. . .. . Signing the XML object .. . .. . Adding the public-key .. . .. . Appending the enveloped signature to the XML object .. . .. . Saving the signed XML code toa file .. . .. . Additionaly would also like from this library : .. . .. . 1 . Know official and trustable repository to ensure the library is not corrupted . 2 . Turning off the ds : prefix because nor the example nor the documentation of the XML I am producing includes such prefix . 3 . Linebreaks every X characters in the Base64 type values . 4 . Full indentation otherwise none at all . I got the library from enter link description here https : code.google.com p xmlseclibs .. . .. . Thanks in advance . .. . Answer : I ve wrote a facade library called xmldsig https : github.com Maks3w xmldsig for simplify the use of the underline XMLSecLibs .. . .. . With this library the code result as this :",
"Question : I have two XML files structured as follows : .. . .. . My Key .. . .. . A Public Key .. . .. . I am using the xmlseclibs library by Robert Richards which requires a .PEM representation of the key in order to encrypt and decrypt things . As an encryption novice I m not sure where to begin and a cursory Google search did not reveal anything particularly obvious.. . Thanks Comment : It appears that the xmlseclibs has a method XMLSecurityKey : : convertRSA which accepts a modulus and an exponent and will create a PEM compatible public-key . However it does not seem to have any methods to create the necessary private keys . Any help on that .. . Answer : Since xmlseclibs is PHP it seems like another PHP solution might be desirable . Here s how : .. . .. . phpseclib has built-in support for XML keys PuTTY keys and PKCS1 keys . It ll auto detect the format and load it and getPrivateKey getPublicKey will output PKCS1 formatted keys by default if no parameters are provided . More info : .. . .. . http : phpseclib.sourceforge.net rsa examples.html convert",
"Question : I m using xmlseclibs http : code.google.com p xmlseclibs to try and sign a SOAP document but it does not seem to canonicalize things in the same way depending on whether I m signing or validating . I ll give you an example . This is the XML I am trying to sign : .. . .. . I got some code working in PHP to sign it using a combination of public-key and private key certificates and it seemed to work . It added the ds : Signature element with all the proper stuff and it looked great . But then I tested it by immediately trying to validate it after signing it again with xmlseclibs and the public-key certificate but the validation failed . So the exact same code library is doing both the signing and validating but the two processes don t agree for some reason . I added some debugging code to xmlseclibs to find out what it s doing and I realized that the reason the signing key it comes up with and the validation key it comes up with are different are because it canonicalizes things differently in the two situations . When I tell it to sign the samlp : Response element this is the canonical form it signs I ve added newlines here for readability : .. . .. . However when it goes to validate the signature this is the canonical form it computes to validate against again I ve added newlines here : .. . .. . So as you can see this version omits the xmlns : saml attribute from the samlp : Response element while the first does not . Note that this is different from the xmlns : samlp attribute which is included in both . This seems pretty clearly like a bug in xmlseclibs but nonetheless it s one I d be happy to fix myself if I just knew which canonical form was the correct one . Should that attribute be omitted by exclusive canonicalization Or should it be included Which one is the correct exclusive canonical form Comment : It does look like a bug you should post it to xmlseclibs issue tracker . .. . Answer : Neither are the correct canonical-form The signing XML has a namespace declaration that comes after the non-namespace attributes which breaks the Document Order rule : .. . .. . Namespace nodes have a lesser document order position than attribute nodes . The verification XML is missing the saml namespace node completely . Canonicalisation doesn t remove namespace nodes merely because there is no child content that references them . It only removes redundant namespace nodes ie . namespaces that were already in effect on the parent . I don t know enough about xmlseclibs to say why this is happening but it s definitely wrong on both counts . FWIW the c14n function on my DOM here says : .. . .. . eta : I just looked at xmlseclibs.php in the SVN and there s not an easy fix for this as its current approach is fundamentally flawed . It tries to create a canonicalised DOM and then serialises it with plain old saveXML . As there are C14N serialisation rules about attribute order and character escapes that saveXML does not promise to follow there is no way this can possibly work . Comment : Do you know of any alternative codebases that do XML signing then It wouldn t necessarily have to be in PHP per se it could be a COM object or possibly something else entirely that I can interface with . Comment : Don t know for PHP mine is for Python .. . it probably wouldn t be that hard to write a c14n-compliant serialiser function for DOMDocument though the rules really aren t hugely complex XML serialisation is much easier than parsing . For Windows there is WWSAPI msdn.microsoft.com en-us library dd430435 28VS.85 29.aspx http : msdn.microsoft.com en-us library dd430435 28VS.85 29.aspx but that s only installed-by-default on Win7+ . There s also XMLStarlet for the command-line . Comment : @SoaperGEM the PHP DOM extension has a just recently documented but there since 5.2.0 method for c14n : php.net manual en domnode.c14n.php http : www.php.net manual en domnode.c14n.php",
"Question : I need to verify in-app purchases made in Windows 8 applications server-side using PHP . MSDN s documentation page http : msdn.microsoft.com en-us library windows apps jj649137.aspx has an example only in C . Right now I ve spent a whole day by searching for a way to do it in PHP . No success . All over the internet there are only .NET examples on this topic . I ve found some partial information about signed XML and x509 some libraries xmlseclibs - useless uses openssl functions which do not support sha256 phpseclib - looks promising but their documentation and examples are poor with no help . Is it possible to do it somehow without learning everything about signed XML RSA and x509 Right now I ve read almost everything but everywhere is info only about encoding . Nothing about verifying . Comment : Did you get this working .. . Answer : Speak for yourself . I love phpseclib s build your own example approach to documentation . That said I don t think phpseclib can really be used in this case . So you have the SignatureValue tag . What does that signature cover though With XML Signatures my understanding is that the signature covers a normalized form of the XML . xmlseclibsnormalizes an XML doc but phpseclib doesn t as it s a crypto lib - not an XML lib . Comment : Do not get me wrong I didn t mean to be rude phpseclib looks like a strong library . But I missed more detailed examples like what to load in x509- loadCA .. . etc . I wanted to use it to verify xml-signature by provided certificate as it is written in MS documentation . And verification should be possible somehow by this lib . I found this example link http : phpseclib.sourceforge.net x509 examples.html validate loadx509 signoself selfsetdnprop csrload crlload issuersetdnprop subjsetdnprop But I m not sure what to use for validation . Comment : I think it s unreasonable to expect phpseclib to discuss how it can be validated against other X.509 implementations . phpseclib s website should document phpseclib - not other software packages . That said it does provide an interoperability page that should serve your purposes : phpseclib.sourceforge.net interop.html http : phpseclib.sourceforge.net interop.html",
"Question : I am trying to sign XML file with PHP and xmlseclibs . However all validation tools say that my signature is invalid . XMLSpy says : The calculated digest value doesn t match the digest of reference .. . .. . This is my XML : .. . .. . This is the digest I get : .. . .. . Methods I used to get it : .. . .. . 1 . PHP : .. . .. . 2 . OpenSSL : .. . .. . 3 . This website : http : hash.online-convert.com sha1-generator .. . .. . This is the digest that XMLSpy somehow gets and that works : .. . .. . How do I get this digest Comment : The digest value may not depend only on the blob to sign but also on the Transforms of the Reference signing it in your xml-signature . It would help if you can share your signature file . Note that I get the same hash value as you when signing this blob with the same canonicalization C14N . .. . Answer : XMLSpy formats XML before it signs it . It adds line feeds and tabs and C14N does not remove these . When you remove Signature you are left with this XML which is used to calculate digest : .. . .. . Another thing XMLSpy does is that it adds attribute URI to Reference . PHP library xmlseclibs doesn t do that by default . So I changed my code to this :",
"Question : I have two XML files structured as follows : .. . .. . My Key .. . .. . A Public Key .. . .. . I am using the xmlseclibs library by Robert Richards which requires a .PEM representation of the key in order to encrypt and decrypt things . As an encryption novice I m not sure where to begin and a cursory Google search did not reveal anything particularly obvious.. . Thanks Comment : It appears that the xmlseclibs has a method XMLSecurityKey : : convertRSA which accepts a modulus and an exponent and will create a PEM compatible public-key . However it does not seem to have any methods to create the necessary private keys . Any help on that .. . Answer : I have found a Java utility http : www.platanus.cz blog converting-rsa-xml-key-to-pem that can do it .",
"Question : I have two XML files structured as follows : .. . .. . My Key .. . .. . A Public Key .. . .. . I am using the xmlseclibs library by Robert Richards which requires a .PEM representation of the key in order to encrypt and decrypt things . As an encryption novice I m not sure where to begin and a cursory Google search did not reveal anything particularly obvious.. . Thanks Comment : It appears that the xmlseclibs has a method XMLSecurityKey : : convertRSA which accepts a modulus and an exponent and will create a PEM compatible public-key . However it does not seem to have any methods to create the necessary private keys . Any help on that .. . Answer : I was searching for hours for exactly the same problem . This Java tool did the job : .. . .. . But the link has changed it is now available from here http : www.platanus.cz blog converting-rsa-xml-key-to-pem"
]
} | [
"yes-answer-long",
"yes-answer-short"
] | xml-encryption | UNK_RELATION |
silkjs@v8@62 | silkjs -- silkjs is a command shell built on top of google s @placeholder javascript engine highly optimized for server-side applications . | {
"confidence": [
48.19647979736328,
48.19647979736328,
46.99843215942383,
45.848270416259766,
45.49424743652344,
45.49424743652344,
45.163330078125,
42.90232849121094,
41.83392333984375,
41.83392333984375,
41.83392333984375,
40.458518981933594,
40.458518981933594,
38.95551300048828,
38.841007232666016,
37.82638931274414,
36.98311233520508,
36.90348434448242,
36.90348434448242,
36.90348434448242,
36.90348434448242,
36.90348434448242,
36.90348434448242,
36.90348434448242,
36.90348434448242,
36.90348434448242,
34.2092170715332,
33.91056823730469,
33.88595199584961,
33.88595199584961,
30.893037796020508,
30.506206512451172,
27.513290405273438,
21.73473358154297,
20.67089080810547,
20.035728454589844,
20.035728454589844,
18.806529998779297,
17.983699798583984,
17.87493133544922,
17.3507022857666,
15.526918411254883,
15.526918411254883,
15.526918411254883,
15.526918411254883,
15.526918411254883,
15.526918411254883,
15.526918411254883,
15.526918411254883,
15.526918411254883,
15.526918411254883,
13.474888801574707,
13.474888801574707,
13.474888801574707,
13.474888801574707,
13.474888801574707,
13.474888801574707,
13.474888801574707,
13.474888801574707,
13.474888801574707,
13.474888801574707,
13.474888801574707,
13.474888801574707,
13.474888801574707,
13.474888801574707,
13.474888801574707,
13.474888801574707,
13.474888801574707,
13.474888801574707,
13.474888801574707,
13.474888801574707,
13.474888801574707,
13.474888801574707,
13.474888801574707,
13.474888801574707,
13.474888801574707,
13.474888801574707,
13.474888801574707,
13.474888801574707,
13.474888801574707,
13.474888801574707,
13.474888801574707,
13.474888801574707,
13.474888801574707,
13.474888801574707,
13.474888801574707,
13.474888801574707,
13.474888801574707,
10.481973648071289,
10.481973648071289,
10.481973648071289
],
"content": [
"My goal here is not to bash SilkJS .",
"SilkJS does not do GZIP or SSL .",
"Perform the SilkJS OSX Lion Quick Install http : silkjs.org installing-silkjs .. . 2 .",
"Load MySQL http : silkjs.org documentation MySQL from SilkJS REPL .. . .. . Download configure : .. . .. . Starting the SilkJS REPL I ran : .. . .. . How can I run a simple MySQL query from SilkJS under Lion",
"It is an exploration of the reliability of SilkJS for more commercial projects .",
"Load balancer in front of a farm of SilkJS servers .",
"It is an exploration of the reliability of SilkJS and V8 based server-side solutions for more enterprise projects .",
"I have followed the instructions to install SilkJS from website http : www.silkjs.net installing-silkjs I have got following error while performing make command in instruction 5 .",
"In other words : SilkJS m.connect 127.0.0.1 root test Works great now .",
"I have been using SilkJS for a few hobby projects of mine .",
"SilkJS should scale exactly like you would Apache+PHP .",
"2 What resources are available regarding the security of using SilkJS as a web-server or other V8 based solutions",
"5 What resources are you aware of regarding the building of a website using SilkJS as the web-server besides the official website itself",
"I m trying to set headers for a simple HTTP request in SilkJS. . the request goes through fine but without my headers. .",
"Does anyone know of a way to utilize prepared statements in SilkJS",
"I think if you post any security or other issues to the SilkJS google group you will see a patch posted to the github repository in a timely manner .",
"3 What pitfalls have you guys faced with using SilkJS or other V8 based solutions as a web-server and how if possible have you dealt with it",
"Fresh web install of silkjs on OSX Lion : .. . .. . Now to see it works : .. . .. . Note the console.dir shows a function .",
"1 What enterprise projects if any do you guys know using SilkJS",
"4 Does SilkJS handle horizontal-scaling well distributing load across multiple servers",
"Whoever makes the best case for or against the use of SilkJS for use in an enterprise environment gets the correct answer vote .",
"You can trivially implement Apache as a reverse proxy in front of SilkJS to provide those functions .",
"Other than the SilkJS.net site you might look for various repos on github that have example programs using SilkJS .",
"It says : .. . .. . The SilkJS servers are hosted on Amazon s EC2 cloud behind a load balancer for both speed and redundancy .",
"I am trying to install SilkJS in mavericks I am getting the following error .",
"Version of my XCode is 5.0.2 and I have downloaded latest version of silk from github https : github.com mschwartz SilkJS .",
"http : www.sencha.com blog discover-music-with-sencha-touch-2 .. . .. . That article discusses how Modus Create built an application for NPR using Sencha Touch as the front end and SilkJS as the back end .",
"I am looking into using SilkJS http : silkjs.org to build a web-application that utilizes MySQL .",
"I d like to use MySQL from SilkJS http : silkjs.org under OSX Lion but can t find the exact steps to get it to work .",
"I reinstalled SilkJS and connected as described above using m.connect localhost root test on a clean mysql install containing the test database .",
"In response to those of you that might say to just use NodeJS NodeJS is asynchronous and I am looking to use synchronous logic SilkJS is synchronous .",
"Both SilkJS hosts are fed by the NPR API via cURL and are responsible for trimming more than 300KB out of the data package bringing the average load to less than 200KB before being gzipped for transmission",
"SEE : stackoverflow.com questions 4771984 http : stackoverflow.com questions 4771984 are-dynamic-mysql-queries-with-sql-escaping-just-as-secure-as-prepared-statement SilkJS does not currently provide prepared statements",
"In that regard I am open to security reviews and stability reviews for V8 on the server-side within the context of usage via NodeJS .",
"In fact you can shard your server-side application and use apache as a reverse proxy to connect to the proper shard based upon URL requested .",
"There is a much higher level class for accessing curl that has a JavaScript flavor instead of a C style procedure style .",
"The intent is to write JavaScript classes or interfaces that do the error checking and those would call the builtin methods .",
"3 I am fully aware that most applications are i o bound and not cpu bound .",
"So far the performance is amazing and I absolutely love being able to use JavaScript for both the front-end and the back-end .",
"Or if you re running in the httpd environment you set Config.mysql something like this : Config.mysql host : localhost or some other host running MySQL server user : someuser username to authenticate in MySQL server passwd : whatever password of username in MySQL server db : database name name of database in MySQL server to connect to .. . .. . Then the HTTP server will create a global SQL object available from request to request .",
"As for what I mean by enterprise think e-commerce sites with several hundred thousand hits per month and or applications for which stability and up-time are essential and have hundred of thousands of users .",
"The curl.setHeader method just returns undefined from what I can read in the documentation http : www.silkjs.net documentation builtin curl curl-setHeader it should return integer 0 for success or an error-code otherwise. . is undefined some kind of error-code",
"Here s a simple test to reproduce the problem :",
"The documentation is bad it s describing the format of setting a cookie NAME CONTENT rather than the expected way to set a header NAME : CONTENT .",
"I noticed this when I went through the source code .",
"The status flag is still undefined though but now I can see that the header is there in the http-request :",
"Thanks Nik .",
"See this page : .. . .. . http : silkjs.net documentation cURL .. . .. . You are using the lowest level routines for accessing curl .",
"Anything that is builtin .",
"method is low-level with absolutely no error checking .",
"You can pass invalid values as parameters to these functions and your program will core dump crash .",
"I followed the general instructions found here : .. . .. . 1 .",
"Install MySQL http : stackoverflow.com a 7141542 54426 .. . 3 .",
"The rest of the methods defined as properties of the function constructor .",
"So you must construct a MySQL object : .. . .. . Now in order to connect you have to pass in host user passwd and db .",
"This is automatic you can just use SQL.getDataRows SQL.getScalar and so on .",
"No dice .",
"I still got the apparent error followed by the segfault on invoking startTransaction .",
"I m able to connect using the mysql5 client without issues : mysql5 -u root -p test",
"I found the problem .",
"I forgot to use 127.0.0.1 instead of localhost for the hostname .",
"I am thinking about using it in some commercial projects but I want to do my due diligence on the viability of such a decision .",
"There are some questions I have and would like some insight into .",
"history of vulnerabilities average time to patch etc .",
"Is your answer based on theoretical calculations and field-tested examples",
"Before responding let me first eliminate 80 of the responses I will get with the following constraints : .. . .. . 1 No I will not use NodeJS .",
"For both business and mental-health reasons asynchronous call-back frenzied programming is not something I will use .",
"Do not attempt to convince me that I will get used to it and love it .",
"It s not optimal for the type of projects I am working on .",
"Yes you heard me - asynchronous is not perfect for everything .",
"2 I am aware that synchronous programming can be simulated in NodeJS .",
"No I am not interested in that either .",
"I am not using NodeJS - get over it .",
"As a result yes using PHP is usually fine .",
"However there are certain projects for which cpu optimzations due yield a sizeable return on investment .",
"No a company does not have to be Facebook for this to be true .",
"This is not intended to be a discussion on why PHP is okay .",
"3 Yes I know what Java is .",
"No I am not interested on why that would be great if I wanted to reduce the cpu bottleneck .",
"Once again this is not intended to be a discussion on why other languages are okay .",
"4 Yes it is possible to have a best answer to this question .",
"Also I am aware that despite my desire to avoid NodeJS it does utilize V8 .",
"I absolutely love it and will continue using it when possible .",
"However as a professional programmer I can t just use what I enjoy for every project .",
"So let the insight commence. .",
"Scale a MySQL backend like you already know how .",
"I think it would be a risk to trust an implementation of either or both of those in the wild against all the various bots hacker or otherwise spiders browser custom perl programs etc .",
"Thank you very much",
"A requirement of this project is that it supports using prepared statements for MySQL .",
"In response to those of you that might say to just escape the input that is not a secure way to use MySQL .",
"In response to those of you that might say to just get used to asynchronous because it s so much better no no it is not ."
]
} | {
"confidence": [
71.83961486816406,
63.39350891113281,
62.6327018737793,
54.535072326660156,
45.12282943725586,
44.4109992980957
],
"content": [
"Question : I have been using SilkJS for a few hobby projects of mine . So far the performance is amazing and I absolutely love being able to use JavaScript for both the front-end and the back-end . I am thinking about using it in some commercial projects but I want to do my due diligence on the viability of such a decision . There are some questions I have and would like some insight into . 1 What enterprise projects if any do you guys know using SilkJS 2 What resources are available regarding the security of using SilkJS as a web-server or other V8 based solutions history of vulnerabilities average time to patch etc . 3 What pitfalls have you guys faced with using SilkJS or other V8 based solutions as a web-server and how if possible have you dealt with it 4 Does SilkJS handle horizontal-scaling well distributing load across multiple servers Is your answer based on theoretical calculations and field-tested examples 5 What resources are you aware of regarding the building of a website using SilkJS as the web-server besides the official website itself Before responding let me first eliminate 80 of the responses I will get with the following constraints : .. . .. . 1 No I will not use NodeJS . For both business and mental-health reasons asynchronous call-back frenzied programming is not something I will use . Do not attempt to convince me that I will get used to it and love it . It s not optimal for the type of projects I am working on . Yes you heard me - asynchronous is not perfect for everything . 2 I am aware that synchronous programming can be simulated in NodeJS . No I am not interested in that either . I am not using NodeJS - get over it . 3 I am fully aware that most applications are i o bound and not cpu bound . As a result yes using PHP is usually fine . However there are certain projects for which cpu optimzations due yield a sizeable return on investment . No a company does not have to be Facebook for this to be true . This is not intended to be a discussion on why PHP is okay . It is an exploration of the reliability of SilkJS for more commercial projects . 3 Yes I know what Java is . No I am not interested on why that would be great if I wanted to reduce the cpu bottleneck . Once again this is not intended to be a discussion on why other languages are okay . It is an exploration of the reliability of SilkJS and V8 based server-side solutions for more enterprise projects . 4 Yes it is possible to have a best answer to this question . Whoever makes the best case for or against the use of SilkJS for use in an enterprise environment gets the correct answer vote . Also I am aware that despite my desire to avoid NodeJS it does utilize V8 . In that regard I am open to security reviews and stability reviews for V8 on the server-side within the context of usage via NodeJS . As for what I mean by enterprise think e-commerce sites with several hundred thousand hits per month and or applications for which stability and up-time are essential and have hundred of thousands of users . My goal here is not to bash SilkJS . I absolutely love it and will continue using it when possible . However as a professional programmer I can t just use what I enjoy for every project . So let the insight commence. . .. . Answer : SilkJS should scale exactly like you would Apache+PHP . Load balancer in front of a farm of SilkJS servers . Scale a MySQL backend like you already know how . SilkJS does not do GZIP or SSL . I think it would be a risk to trust an implementation of either or both of those in the wild against all the various bots hacker or otherwise spiders browser custom perl programs etc . You can trivially implement Apache as a reverse proxy in front of SilkJS to provide those functions . In fact you can shard your server-side application and use apache as a reverse proxy to connect to the proper shard based upon URL requested . I think if you post any security or other issues to the SilkJS google group you will see a patch posted to the github repository in a timely manner . Other than the SilkJS.net site you might look for various repos on github that have example programs using SilkJS . http : www.sencha.com blog discover-music-with-sencha-touch-2 .. . .. . That article discusses how Modus Create built an application for NPR using Sencha Touch as the front end and SilkJS as the back end . It says : .. . .. . The SilkJS servers are hosted on Amazon s EC2 cloud behind a load balancer for both speed and redundancy . Both SilkJS hosts are fed by the NPR API via cURL and are responsible for trimming more than 300KB out of the data package bringing the average load to less than 200KB before being gzipped for transmission Comment : Thank you very much",
"Question : null .. . Answer : I am trying to install SilkJS in mavericks I am getting the following error . Version of my XCode is 5.0.2 and I have downloaded latest version of silk from github https : github.com mschwartz SilkJS . I have followed the instructions to install SilkJS from website http : www.silkjs.net installing-silkjs I have got following error while performing make command in instruction 5 .",
"Question : I d like to use MySQL from SilkJS http : silkjs.org under OSX Lion but can t find the exact steps to get it to work . I followed the general instructions found here : .. . .. . 1 . Perform the SilkJS OSX Lion Quick Install http : silkjs.org installing-silkjs .. . 2 . Install MySQL http : stackoverflow.com a 7141542 54426 .. . 3 . Load MySQL http : silkjs.org documentation MySQL from SilkJS REPL .. . .. . Download configure : .. . .. . Starting the SilkJS REPL I ran : .. . .. . How can I run a simple MySQL query from SilkJS under Lion .. . Answer : Fresh web install of silkjs on OSX Lion : .. . .. . Now to see it works : .. . .. . Note the console.dir shows a function . The rest of the methods defined as properties of the function constructor . So you must construct a MySQL object : .. . .. . Now in order to connect you have to pass in host user passwd and db . Or if you re running in the httpd environment you set Config.mysql something like this : Config.mysql host : localhost or some other host running MySQL server user : someuser username to authenticate in MySQL server passwd : whatever password of username in MySQL server db : database name name of database in MySQL server to connect to .. . .. . Then the HTTP server will create a global SQL object available from request to request . This is automatic you can just use SQL.getDataRows SQL.getScalar and so on . Comment : No dice . I reinstalled SilkJS and connected as described above using m.connect localhost root test on a clean mysql install containing the test database . I still got the apparent error followed by the segfault on invoking startTransaction . I m able to connect using the mysql5 client without issues : mysql5 -u root -p test Comment : I found the problem . I forgot to use 127.0.0.1 instead of localhost for the hostname . In other words : SilkJS m.connect 127.0.0.1 root test Works great now .",
"Question : null .. . Answer : I am looking into using SilkJS http : silkjs.org to build a web-application that utilizes MySQL . A requirement of this project is that it supports using prepared statements for MySQL . Does anyone know of a way to utilize prepared statements in SilkJS In response to those of you that might say to just escape the input that is not a secure way to use MySQL . In response to those of you that might say to just use NodeJS NodeJS is asynchronous and I am looking to use synchronous logic SilkJS is synchronous . In response to those of you that might say to just get used to asynchronous because it s so much better no no it is not . Comment : SEE : stackoverflow.com questions 4771984 http : stackoverflow.com questions 4771984 are-dynamic-mysql-queries-with-sql-escaping-just-as-secure-as-prepared-statement SilkJS does not currently provide prepared statements",
"Question : I m trying to set headers for a simple HTTP request in SilkJS. . the request goes through fine but without my headers. . The curl.setHeader method just returns undefined from what I can read in the documentation http : www.silkjs.net documentation builtin curl curl-setHeader it should return integer 0 for success or an error-code otherwise. . is undefined some kind of error-code Here s a simple test to reproduce the problem : .. . Answer : Thanks Nik . See this page : .. . .. . http : silkjs.net documentation cURL .. . .. . You are using the lowest level routines for accessing curl . There is a much higher level class for accessing curl that has a JavaScript flavor instead of a C style procedure style . Anything that is builtin . method is low-level with absolutely no error checking . You can pass invalid values as parameters to these functions and your program will core dump crash . The intent is to write JavaScript classes or interfaces that do the error checking and those would call the builtin methods .",
"Question : I m trying to set headers for a simple HTTP request in SilkJS. . the request goes through fine but without my headers. . The curl.setHeader method just returns undefined from what I can read in the documentation http : www.silkjs.net documentation builtin curl curl-setHeader it should return integer 0 for success or an error-code otherwise. . is undefined some kind of error-code Here s a simple test to reproduce the problem : .. . Answer : The documentation is bad it s describing the format of setting a cookie NAME CONTENT rather than the expected way to set a header NAME : CONTENT . I noticed this when I went through the source code . The status flag is still undefined though but now I can see that the header is there in the http-request :"
]
} | [
"yes-answer-long",
"yes-answer-short"
] | v8 | UNK_RELATION |
pyrocms@php@83 | pyrocms -- pyrocms is a lightweight themeable open-source cms built on top of the @placeholder framework codeigniter praised for its simplicity . | {
"confidence": [
59.18972396850586,
49.27454376220703,
48.35070037841797,
47.37810516357422,
46.50801086425781,
46.50801086425781,
46.42787170410156,
46.13417053222656,
46.13417053222656,
45.89909744262695,
45.86619567871094,
45.668731689453125,
44.263492584228516,
44.263492584228516,
44.263492584228516,
44.06288146972656,
44.06288146972656,
44.04195785522461,
44.04195785522461,
43.66811752319336,
43.66811752319336,
43.61312484741211,
42.969547271728516,
42.427276611328125,
41.59682846069336,
41.40048599243164,
41.381980895996094,
41.34220504760742,
40.7015495300293,
40.7015495300293,
40.32770919799805,
40.04172134399414,
39.96122360229492,
39.96122360229492,
39.96122360229492,
39.96122360229492,
39.96122360229492,
39.20381546020508,
38.87615203857422,
38.87615203857422,
38.78368377685547,
38.78368377685547,
38.560752868652344,
38.25642013549805,
38.25642013549805,
38.25642013549805,
36.62081527709961,
36.62081527709961,
36.62081527709961,
36.62081527709961,
36.489463806152344,
36.456207275390625,
36.2020378112793,
35.992984771728516,
35.82819747924805,
35.82819747924805,
35.535743713378906,
34.853858947753906,
34.727142333984375,
34.69995880126953,
34.32611846923828,
34.218223571777344,
33.75690841674805,
33.75690841674805,
33.500728607177734,
33.378700256347656,
33.2945556640625,
32.25482940673828,
32.12130355834961,
32.12130355834961,
32.12130355834961,
32.12130355834961,
32.12130355834961,
32.12130355834961,
32.12130355834961,
32.12130355834961,
32.12130355834961,
31.036231994628906,
31.036231994628906,
31.036231994628906,
31.036231994628906,
31.036231994628906,
31.036231994628906,
31.00311279296875,
31.00311279296875,
30.46293830871582,
30.363887786865234,
30.286537170410156,
29.990047454833984,
29.990047454833984,
29.990047454833984,
29.986164093017578,
29.821834564208984,
29.735748291015625,
29.735748291015625,
29.367507934570312,
29.367507934570312,
28.28243637084961,
26.641374588012695,
26.641374588012695
],
"content": [
"i developed project into PYROCMS and PYROCMS developed into Codeigniter .",
"@mgrueter There s a small base of community for PyroCMS though this is a great CMS CMF .",
"The site is on PyroCMS .",
"I am using CodeIgniter with PyroCMS in my work as a website developer .",
"A fresh install of PyroCMS 3.0 Beta.. .",
"i have creating a website with pyrocms .",
"Currently I m working on a website that built with Pyrocms the website is not mine and I m new to Pyrocms .",
"This is the very old syntax of PyroCMS tags .",
"I m using PyroCMS Pro 2.2.6 .",
"probably it s not pyrocms",
"finally it solved .. . .. . in main Index.php file of Pyrocms Codeigniter based CMS .. . .. . My Boss Added This code and problem Solved .. . .. . Thanks .. .",
"I have actually made contact forms as all of these types of addon but the one I have settled on for PyroCMS v1.1 is a modular plugin https : github.com pyrocms pyrocms blob develop system pyrocms modules contact plugin.php .",
"but PYROCMS required Mcrypt extension .",
"Definitely an issue with pyrocms .",
"I am new in pyrocms .",
"I m using PyroCMS Pro 2.2.6 .",
"I have a problem with PyroCMS v2.2 .",
"I want to extend sparks library available in PyroCMS for that .",
"I am using pyrocms 1.3.x version .",
"How to create text input field in pyrocms",
"I m fairly new to pyrocms and php in general .",
"I m working on this project in codeigniter pyrocms and i m trying to get clean-urls .",
"It also appears it isn t possible to override the core modules https : github.com pyrocms pyrocms issues 1325 issuecomment-7740818 .",
"Hello i am new in pyrocms .",
"I recently downloaded pyrocms it is probably the latest version .",
"main C : laragon www pyrocms artisan : 0 0.0010 121632 2 . require C : laragon www pyrocms bootstrap autoload.ph p C : laragon www pyrocms artisan : 16 .. . .. . Fatal error : require : Failed opening required C : laragon www pyrocms bootstra p . . vendor autoload.php include path .",
"i try install PyroCMS 3 on win 7 x86 i download it with composer : .. . .. . all seems correct but then i go on localhost pyrocms i see only structure of folder i try localhost pyrocms install or localshot pyrocms index.php but when i visit localhost pyrocms public a get this errot .. . .. . Warning : require C : laragon www pyrocms bootstrap . . vendor autoload.php : failed to open stream : No such file or directory in C : laragon www pyrocms bootstrap autoload.php on line 17 .. . .. . it seems like premission issue but on win",
"Now my client wants this to be in Pyrocms .",
"I am developing a bidding system in PyroCMS version 2.2.0 .",
"i have cleared the browser-cache as well as pyrocms cache and try but not working .",
"If PyroCMS thinks the Publish Date is in the future it wont show it on the frontend .",
"i m indeed using PyroCMS v2.2 .",
"I have had a good look in pyrocms documentation .",
"I am using pyrocms community edition .",
"PyroCMS seems to be creating files in my username to",
"is pyrocms installed with vagrant user or root or another user",
"How I block access to xmlrpc.php file in Pyrocms .",
"I m using the asset library that comes with pyrocms for my cms and I have a set up like this for my assets .",
"Error while installing pyrocms on windows machine .",
"I am trying to make it dynamic using PyroCMS .",
"I have a PyroCMS installation I m working with powered by CodeIgniter and I ve run into a snag .",
"Therefor i did this instead of the original call .. . .. . .. . .. . Question .. . .. . Im trying to make a mailsystem in Codeigniter with the PyroCms .",
"See PyroCMS Tags documentation - Using Tags and Variables in Tag Parameters http : docs.pyrocms.com 2.2 manual guides pyrocms-tags using-tags-and-variables-in-tag-parameters for more information .",
"Is that possible to realize with the Entry Looping functionality of the Streams module in PyroCMS and how",
"Can you tell me what is nessesery folder structure for PyroCMS",
"I found in config and few other files a name of PyroCMS .",
"Check the field domain in the table core sites in your PyroCMS DB .",
"I am trying to perform an installation of PyroCMS 2.1.1.5 Pro .",
"I m using PyroCMS 2.2 for a new site and the Bootstrap 3 theme .",
"I m trying to use the PyroCMS Contact form in a facebook tab .",
"I m using PyroCMS Pro 2.2.6 and I would like to show the total number of items in a PyroCMS Stream in a menu item specifically I would show dynamically the number of reviews in database .",
"This is usually caused if you re installing PyroCMS through a different URL than you use to open the website .",
"If those are not provided pyrocms uses the corresponding settings of your website you can change them in the settings part of the backend",
"I am getting this error when installing PyroCMS .. . .. . Warning : require C : xampp htdocs pyrocms bootstrap . . vendor autoload.php : failed to open stream : No such file or directory in C : xampp htdocs pyrocms bootstrap autoload.php on line 17 .. . .. . Fatal error : require : Failed opening required C : xampp htdocs pyrocms bootstrap . . vendor autoload.php include path .",
"So for anyone else having problems in PyroCMS 2.2 using render js try the following :",
"If anyone used this module kindly share I have no past experience with Pyrocms .. . .. . Thank you",
"Do I use the PyroCMS blog loop functionality and if so how",
"Also i can not do it on the php end because i am using pyrocms and i need to display it using pyrocms tage which does not allow me to use php in the views .",
"When i try composer update i get this error : .. . .. . php artisan clear-compiled .. . .. . Warning : require C : laragon www pyrocms bootstrap . . vendor autoload.php : faile d to open stream : No such file or directory in C : laragon www pyrocms bootstrap autoload.php on line 17 .. . .. . Call Stack : 0.0000 119776 1 .",
"Easiest way to send e-mails in pyrocms is by using Events : : trigger email data array .. . .. . The data array is the data you re using in the email template while the third parameter is the type of response you expect see pyrocms docs http : docs.pyrocms.com 2.2 manual developers tools events contact-triggers .",
"For example take a look at this header partial from the base theme of Pyro 2.2 : .. . .. . https : github.com pyrocms pyrocms blob 2.2 develop addons shared addons themes base views partials header.html L33 .. . .. . note this example is a remote css file but the same can be done with js files etc .",
"If you are not sure that description always exists you should also put it inside the if scope like that : .. . .. . Take a look at these links of documentation : .. . .. . Lex parser Github repo https : github.com pyrocms lex checking-if-a-variable-exists .. . PyroCMS documentation about Lex tags http : docs.pyrocms.com 2.2 manual guides pyrocms-tags checking-if-a-variable-exists",
"I use PyroCMS for almost all my clients and the same issue is in the default .htaccess file .",
"Using PyroCMS 2.2 how can I have a registration form assign a user to one of the new Groups I created .",
"I love PyroCMS because of streams and the amazingly compact and modular code and gaining the ability to easily filter and sort would be remarkable .",
"I would like to disable the CK Wysiwyg editor in PyroCMS 2.x so that I can enter plain HTML code without switching each time to the source view .",
"When calling the method parse string with exactly the same arguments : .. . .. . Calling it in a public-controller gives the desired result .. . Calling it in a plugin however it returns empty with no errors .. . .. . I believe this is not a codeigniter issue as the parser was overloaded by pyrocms .",
"I ve PyroCMS project running on my intranet and i have used the flicker gallery from https : arthurguy.co.uk code pyrocms-add-on-flickr-gallery The Back end that is admin panel showing all the photo galleries 21 but the front end of site not showing the Last two added photo galleries .",
"How would I configure PyroCMS the assets plugin to get may assets from the bower components folder",
"I have read the documentation of pyrocms and it pretty much says the exact way to use the where clause just like above .",
"I am using community edition of Pyrocms so cant really use the benefit of stream module that comes in pro edition .",
"But since I am doing in a Pyrocms stream-way if stream field has an option to auto populate it would be great .",
"I setup the vagrant box mapping my local projects directory then use composer to pulled down a setup of Pyrocms .",
"I m having a few issues with PyroCMS altering some of my tags after I save the page .",
"C : xampp php PEAR in C : xampp htdocs pyrocms bootstrap autoload.php on line 17 .. . .. . Thanks in advance .",
"I am using PyroCMS Contact Plugin and I ve created a rather simple contact form .",
"You need to create a custom layout with the name of the custom module and PyroCMS will load the custom layout when the module is loaded .",
"The relevant JS call : .. . .. . My current set-up for view.php with PyroCMS calls : .. . .. . Any help would be greatly appreciated",
"Please help me as I started pyrocms a few days ago and a newbie web developer .",
"well if I use Rewritecond alone it works but then my pyrocms errors without the rest .",
"Now i want to know how can i control the different section of the same page using pyrocms .",
"I have been using PyroCMS and CI for quite some time and truly love it .",
"I think you might be getting a little confused by the site prefixes in PyroCMS 1.3.x .",
"C : laragon bin php php-5.6.13 PEAR in C : laragon www pyrocms bootstrap autoload.php on line 17 .. . .. . Call Stack : 0.0000 119776 1 .",
"I need to manage login in such a way that it should redirect the control after successful login to the page which call login method in pyrocms .",
"main C : laragon www pyrocms artisan : 0 0.0010 121632 2 . require C : laragon www pyrocms bootstrap autoload.ph p C : laragon www pyrocms artisan : 16 .. . .. . Script php artisan clear-compiled handling the pre-update-cmd event returned wit h an error .. . .. . RuntimeException Error Output : .. . .. . update --prefer-source --prefer-dist --dry-run --dev --no-dev --lock --no-plugins --no-custom-installers --no-autoloader --no-scripts --no- progress --with-dependencies -v vv vvv --verbose -o --optimize-autoloader -a --classmap-authoritative --ignore-platform-reqs --prefer-stable --pre fer-lowest packages1 .. . packagesN .. . .. . How can i fix it",
"When i am trying to send email using pyrocms it shows email template table doesn t exists but this table is exists in database with default email template name.I have changed name of that table but error is not solve .",
"I m currently working on a cms which is built on the Laravel 4 framework .",
"I am having some trouble making a third level navigation bar in PyroCMS I have not two levels working fine but for some reason it won t let me look through the navigation array twice .",
"I read Blog Plugin Docs http : docs.pyrocms.com 2.2 manual plugins blog also check the Blog Plugin Code at package PyroCMS Core Modules Blog Plugins and can t find where it fails .",
"PyroCMS Language Field http : i.stack.imgur.com bTqJn.png .. . .. . I tried many different tags like : .. . .. . Only the first one worked and displayed the language value English Germany etc . .",
"I am working with PyroCMS I have a custom built module with streams so the form is Generated using .. . .. . But the issue is that I have a field type SLUG which generate the slug from the TITLE .",
"Background .. . .. . Framework : Codeignighter PyroCMS .. . .. . I have a DB that stores a list of products I have a duplicate function in my application that first looks for the common product name so it can add a suffix value to the duplicated product .",
"Assuming you re using PyroCMS v2x .. . .. . www.sitename.com post-title is going to be controlled by your pages controller .",
"Im using the ci-merchant http : ci-merchant.org library in my PyroCMS module locally on my development WAMP server .",
"If I m intentionally issue a wrong query the sql query output is .. . .. . Here you see that PyroCMS tries to lookup the data for the created by field .",
"If you disable the created by field you should get the correct row : .. . .. . It would be great if you could file an issue on the pyrocms github page .",
"I saw this route I downloaded from sample module at pyrocms .. . .. . I tried to removed the 1 above and the site runs smooth .",
"I am using the pyrocms https : www.pyrocms.com with the streams module https : www.pyrocms.com store details pyrostreams to loop through content .. . .. . I would like to get the id of the current looped item and then use that in a stream form to edit the content .",
"In pyrocms you can create html partials and then in the pyro page you can call that partial like so .. . .. . which will call my-partial.html that sits inside the .. . .. . However when i call the partial using jquery .load http : api.jquery.com load the lex parsing on that partial is not rendered ."
]
} | {
"confidence": [
59.930030822753906,
59.456382751464844,
57.079490661621094,
56.66884231567383,
56.10432052612305,
55.92380905151367,
53.59397506713867,
52.77281188964844,
49.51131820678711,
47.39812088012695,
46.595985412597656,
46.565467834472656,
46.447044372558594,
46.42366027832031,
46.085472106933594,
45.854610443115234,
45.62192916870117,
45.526161193847656,
45.29380798339844,
45.096595764160156
],
"content": [
"Question : I just moved old site of my client to some test server . The site is on PyroCMS . I ve changed database settings in aplication config database.php and changed base url in aplication config config.php to my test site URL . Unfortunatly site is giving me 500 error and I don t have any error logs to see what else is to change . Where I have to do changes to site run My .htaccess looks like this : Comment : There are some .htaccess issue will be there Comment : But what kind of issue you meen Comment : Can you please add .htaccss code so i will check what is the issue . Comment : First bakup your htaccess.then try to remove .htaccess all content and check . Comment : I ve already done it but nothings changed after removing htaccess content .. . Answer : I use PyroCMS for almost all my clients and the same issue is in the default .htaccess file . Try to remove : .. . .. . And try to add : .. . .. . Many hosting disable +FollowSymLinks for security reason . Make sure to set 775 permission to : .. . .. . system cms cache .. . system cms logs .. . addons .. . uploads .. . assets .. . .. . Also make sure to set your env to PYRO DEVELOPMENT to see all the errors in this debug phase . Comment : Can you tell me what is nessesery folder structure for PyroCMS I m wondering if i have copied all files of old site I don t see system folder in my root.. . Comment : You need : addons assets system uploads and index.php . If you don t have system the site can t run Comment : I have : application codeigniter third party uploadify and uploads folders . Maybe it s some kind of custom CMS based on Pyro Diffrents are to big Comment : probably it s not pyrocms Comment : It s strange.. . I found in config and few other files a name of PyroCMS .",
"Question : while doing some tasks i have this issue that i couldint fix .. . .. . the Domain was multilingual on subdomain like this link .. . .. . http : ru.example.com .. . .. . so i need to remake it to be directory : .. . .. . http : example.com ru .. . .. . until now every thing is Okay and work find .. . .. . while i tried to redirect old links to new links with this htaccess code .. . .. . so the result was example.com ru index.php about-us .. . .. . and its wrong call i wanna help on this to become .. . .. . im using Pyrocms that build on codigniter Comment : Read this w3code.in 2015 09 http : w3code.in 2015 09 how-to-remove-index-php-file-from-codeigniter-url Comment : Thanks we solved and i d posted the answer .. . Answer : finally it solved .. . .. . in main Index.php file of Pyrocms Codeigniter based CMS .. . .. . My Boss Added This code and problem Solved .. . .. . Thanks .. .",
"Question : When i am trying to send email using pyrocms it shows email template table doesn t exists but this table is exists in database with default email template name.I have changed name of that table but error is not solve . .. . Answer : Easiest way to send e-mails in pyrocms is by using Events : : trigger email data array .. . .. . The data array is the data you re using in the email template while the third parameter is the type of response you expect see pyrocms docs http : docs.pyrocms.com 2.2 manual developers tools events contact-triggers . The data array should at least include the slug key - this the slug of the e-mail template you want to be sent . The data array can also include from name reply-to to and lang . If those are not provided pyrocms uses the corresponding settings of your website you can change them in the settings part of the backend Comment : Thanks...... . : Comment : please accept the answer so other users can see that this helped to solve the problem . Comment : @mgrueter There s a small base of community for PyroCMS though this is a great CMS CMF . Could you tell us how you identified the fields available for data It s just that it s not in docs . Thanks for the answer by the way . Comment : Sure . The event is defined in system cms modules templates events.php . I was just going through the code its not much and noted which parameters are getting used in the actual send email function . Most important is the slug which is the slug of the email template that should be used . Other parameters are lang from name reply-to to and attach . If those parameters aren t included they will be substituted with the corresponding value of your installation - e . g . server mail taken from the settings as from address .",
"Question : i try install PyroCMS 3 on win 7 x86 i download it with composer : .. . .. . all seems correct but then i go on localhost pyrocms i see only structure of folder i try localhost pyrocms install or localshot pyrocms index.php but when i visit localhost pyrocms public a get this errot .. . .. . Warning : require C : laragon www pyrocms bootstrap . . vendor autoload.php : failed to open stream : No such file or directory in C : laragon www pyrocms bootstrap autoload.php on line 17 .. . .. . it seems like premission issue but on win And the autoload.php file exist . When i try composer update i get this error : .. . .. . php artisan clear-compiled .. . .. . Warning : require C : laragon www pyrocms bootstrap . . vendor autoload.php : faile d to open stream : No such file or directory in C : laragon www pyrocms bootstrap autoload.php on line 17 .. . .. . Call Stack : 0.0000 119776 1 . main C : laragon www pyrocms artisan : 0 0.0010 121632 2 . require C : laragon www pyrocms bootstrap autoload.ph p C : laragon www pyrocms artisan : 16 .. . .. . Fatal error : require : Failed opening required C : laragon www pyrocms bootstra p . . vendor autoload.php include path . C : laragon bin php php-5.6.13 PEAR in C : laragon www pyrocms bootstrap autoload.php on line 17 .. . .. . Call Stack : 0.0000 119776 1 . main C : laragon www pyrocms artisan : 0 0.0010 121632 2 . require C : laragon www pyrocms bootstrap autoload.ph p C : laragon www pyrocms artisan : 16 .. . .. . Script php artisan clear-compiled handling the pre-update-cmd event returned wit h an error .. . .. . RuntimeException Error Output : .. . .. . update --prefer-source --prefer-dist --dry-run --dev --no-dev --lock --no-plugins --no-custom-installers --no-autoloader --no-scripts --no- progress --with-dependencies -v vv vvv --verbose -o --optimize-autoloader -a --classmap-authoritative --ignore-platform-reqs --prefer-stable --pre fer-lowest packages1 .. . packagesN .. . .. . How can i fix it Thank you .. . Answer : I forgot use .. . .. . php artisan dump autoload .. . .. . my bad . Comment : please add details on how you actually fixed your problem so this answer can help others in the future",
"Question : null .. . Answer : I have a PyroCMS installation I m working with powered by CodeIgniter and I ve run into a snag . The desired functionality for the blog is to mimic the transitions used in Medium following this tutorial : .. . .. . http : tympanus.net Tutorials MediumStylePageTransition 1 .. . .. . I ve added the relevant .js and .css files to the install and reference them properly on the front end but how do I direct the .getJSON call within the function to pull its data from CodeIgniter Do I use the PyroCMS blog loop functionality and if so how Or do I need to take a more direct approach in getting my data The relevant JS call : .. . .. . My current set-up for view.php with PyroCMS calls : .. . .. . Any help would be greatly appreciated",
"Question : i have creating a website with pyrocms . i have seen that the admin page works fine in my localhost in all browsers . But when i add the site in the development server the admin page works only in firefox and opera . It did not work in IE and Chrome . I am using pyrocms 1.3.x version . i have cleared the browser-cache as well as pyrocms cache and try but not working . I found that it is the problem of session losing after login . Is there any solution to fix this Comment : This was puzzling me for a while .. . Answer : i solved this by myself .. . .. . i just edit the config file in system cms config config.php .. . .. . and remove the value of config cookie domain . ie .. . .. . Hope this may help someone .",
"Question : I am getting this error when installing PyroCMS .. . .. . Warning : require C : xampp htdocs pyrocms bootstrap . . vendor autoload.php : failed to open stream : No such file or directory in C : xampp htdocs pyrocms bootstrap autoload.php on line 17 .. . .. . Fatal error : require : Failed opening required C : xampp htdocs pyrocms bootstrap . . vendor autoload.php include path . C : xampp php PEAR in C : xampp htdocs pyrocms bootstrap autoload.php on line 17 .. . .. . Thanks in advance . .. . Answer : Open cmd then go to the directory of your project . cmd cd c : xampp htdocs yourproject then update composer that s it",
"Question : i have a big problem in my project . i developed project into PYROCMS and PYROCMS developed into Codeigniter . but PYROCMS required Mcrypt extension . i have a ssh detail of server but i don t have permission to install anything into server . i need a solution for Mcrypt extension how to working without install or Download from anywhere and upload it in project root directory if it is possible . i need a solution like this https : github.com thomaswelton laravel-mcrypt-faker it is possible in laravel using this packed to working project without install Mcrypt extension please give a any solution like that for PYROCMS . today is last day of project i need to upload today whatever happen otherwise i lose this project and also my work . please help . Thanks Comment : Have you tried to simply add the laravel-mcrypt-faker to your composer.json There are no direct dependencies to lavarel so possibly this work . Comment : no actually i don t try to integrate with Codeigniter . .. . Answer : You can override default library with your own library . You can try below code : .. . .. . P.S . : I have not tested this code : .. . .. . Create a file : .. . .. . codeigniter application libraries MY Encrypt.php .. . .. . And have below code to get started : .. . .. . Reference : https : ellislab.com codeigniter user-guide general creating libraries.html Comment : Thanks for replay but not working i am not able to overwrite this error the CI Encrypt write Mcrypt code into construct and i am not able to overwrite parent class construct . Comment : @renishkhunt in that case do not call parent constructor . I have updated the code",
"Question : That s my code for my JavaScript but when I load in production it doesn t load the script-tag . However in system cms config asset.php if I turn asset min and asset combine to false then it loads the JS files individually without combining or minifying . But I want it to combine and minify . Help .. . Answer : I have been having a similar problem . It turns out asset : render js doesn t work however php Asset : : render js does . So for anyone else having problems in PyroCMS 2.2 using render js try the following :",
"Question : This may or may not have been answered . Since i ve been searching for a correct answer the last few days i m afraid not . I m working on this project in codeigniter pyrocms and i m trying to get clean-urls . I already managed to remove index.php from the url . Except the blog module builds the urls from the date the post have been created www.sitename.com year month post-title . Obviously i want to achieve a url like www.sitename.com post-title . I tried routing in the module blog config routes.php but that dind t work out for me as well . Any help in the right direction would be much appreciated . Thanks in advance .. . Answer : Assuming you re using PyroCMS v2x .. . .. . www.sitename.com post-title is going to be controlled by your pages controller . It s a special thing the core dev team wrote in . The blog is a module so www.sitename.com module name .. . is how you call the module . You can shorten the URL for the blog by editing the routing control in the blog module . You could at best get away with www.sitename.com blog title but you ll need to rewrite some of the module code and routing to do that . There s no easy way to do it like you might find in wordpress . Comment : Thanks for your comment i m indeed using PyroCMS v2.2 . So isn t there any other way like for example by using .htaccess",
"Question : Here is my if-statement in a loop . Sometimes the description will exist and sometimes it will not . But all I am getting is the word LIKE and not ME when the description actually exists . Comment : How do you know description exists Comment : In my loop I am passing either an array of contents or an array of events..and the description only exists in the array for events . Comment : If you ever get Lex parser code that doesn t work be sure to test it in isolation first on a very simple page partial there are bugs and it can behave unpredictably on pages with multiple or nested loops conditionals . .. . Answer : If description can be evaluated to true if description may work . But to test if a variable actually exists is not null you can use the keyword exists like this : if exists description . If you are not sure that description always exists you should also put it inside the if scope like that : .. . .. . Take a look at these links of documentation : .. . .. . Lex parser Github repo https : github.com pyrocms lex checking-if-a-variable-exists .. . PyroCMS documentation about Lex tags http : docs.pyrocms.com 2.2 manual guides pyrocms-tags checking-if-a-variable-exists",
"Question : null .. . Answer : Currently I m working on a website that built with Pyrocms the website is not mine and I m new to Pyrocms . The problem is : .. . .. . On the first load the layout will be displayed but without any image . When I try to refresh the page second load everything disappear just blank page . But when I try to install it on my local machine the site just working well without any problem . I ve been checking any error possibilities from cache folder permissions .htaccess file and clearing the cache but it seems nothing is work . When I trace the rendering process grey bar with number in my screenshot the process stopped on number 3 . On : system cms core MY Controller.php line 75 after this code the rendering process stopped : .. . .. . Here is a screenshot : .. . .. . FIRST LOAD : first load http : i.stack.imgur.com 9TdXc.png .. . .. . AFTER REFRESH : second load http : i.stack.imgur.com KyRf9.png .. . .. . Any advice or help would be appreciated . Comment : anything in system cms logs or the log files of your webserver Comment : oh and check if the mcrypt extension is installed on the webserver . loading the session library could casue the whole thing to crash if it isn t . Comment : thanks @mgrueter for your response i ve been checked value for mcrypt these are the current setting values mcrypt support --- enabled mcrypt filter support --- enabled but mcrypt.algorithms dir and mcrypt.modes dir setting are no value oh and there is no logs.. . Comment : i dont know what is the problem but if i clear browser-cache the cycle back to the screenshot i attached no image then blank page Comment : is the production mode enabled check .htaccess for SetEnv PYRO ENV production and disable if neccessary . and also change log threshold in system cms config config.php to 2 . There should be any kind of log or error message then",
"Question : null .. . Answer : I recently downloaded pyrocms it is probably the latest version . But when I try to install it I get error saying Only variable references should be returned by reference on core common.php file on line 272 . Any help will be appreciated . Comment : Simple copy-paste of that error message should give you something like this answer http : stackoverflow.com questions 28348879 only-variable-references-should-be-returned-by-reference-codeigniter answer-28348880 in google or in SoF search-form field . Comment : yeah I solved it . Just had to change return config 0 config code to config 0 config return config 0 Thank you for the response .",
"Question : Using PyroCMS 2.2 how can I have a registration form assign a user to one of the new Groups I created . Within the admin panel I have a created a user group called client . When my registration form within my module is sent it creates the client but sets the type for group to config default group user within the core module . Is there a way for me to set the group to client for this specific registration form in this module Comment : Did you try changing it to config default group client Comment : Thats not gonna fix the problem . What if I want to create a new module for subcontractors and so on...which I do eventually . Its not good to change code within core modules . .. . Answer : It doesn t look like there is an inbuilt way to do this . It also appears it isn t possible to override the core modules https : github.com pyrocms pyrocms issues 1325 issuecomment-7740818 . Seems like you have 2 options : .. . .. . Modify the core module .. . .. . Try to port the user module into your own module",
"Question : null .. . Answer : I m using PyroCMS Pro 2.2.6 . I created in a PyorCMS Stream a language field which I would like to use in my template to display the language code en de fr etc . : PyroCMS Language Field http : i.stack.imgur.com bTqJn.png .. . .. . I tried many different tags like : .. . .. . Only the first one worked and displayed the language value English Germany etc . . Which tag can I use to display the language code BTW there seems to be missing the label above the radio buttons when you choose PyroCMS Language as field type . Comment : That s not possible with this field type . It only displays the actual name of the language not the code . The Yes No option means Should we filter by the current theme and what languages they support - straight out of the source code in system cms modules streams core field types pyro lang field.pyro lang.php . Soooo - depending on what you re trying to do you ll have to look for another way . Comment : Thanks The question is then how I can show the right language code in the html tag html xmlns w3.org 1999 xhtml quot http : www.w3.org 1999 xhtml quot lang en Comment : You can use the constant CURRENT LANGUAGE docs.pyrocms.com 2.1 manual developers tools http : docs.pyrocms.com 2.1 manual developers tools constants-and-globals or the language plugin lang : code . The latter gives you the language of the currenty logged in user or the system default if no user is logged in .",
"Question : I want to manage my theme assets using bower . How would I configure PyroCMS the assets plugin to get may assets from the bower components folder .. . Answer : Only for 2.1 or 2.2 version . In your controller or base controller maybe system cms core public controller.php constructor register the path for bower components writing the next code : .. . .. . Use this in your views writing first the name of path : .. . .. . For correct read of assets you must place the bower.json and bower components folder to your theme folder for example :",
"Question : null .. . Answer : I am developing a bidding system in PyroCMS version 2.2.0 . I have to develop a payment module to process the payment . How can I make use of sparks to develop the payment class Comment : Please provide more information about exactly what you want to accomplish and what you have already attempted . Comment : I have to develop a payment module to process payments from gateways like Skrill and Debit Credit Card . I want to extend sparks library available in PyroCMS for that . I have to allow the users to buy the package from the applications by entering their payment details . Once detail is verified and validated the amount of the package should be processed to the merchant-account and the purchase action is completed . I am stuck in the payment section .",
"Question : I want to customize the theme In the addons- themes- myprojectname i kept css img js views theme.php and i activated the theme from the control panel of the pyrocms .. . .. . 1 In the views- partials- meta.html i have kept the like this .. . .. . My pages i.e views are in modules but this css is not applying to my page but page . This page is not a pyro cms theme page it is .html page renamed to .php and placed in the view .. . Answer : You might be having css images and js files in seperate folders . Try it like this",
"Question : I am setting up a dev environment for Pryocms in a Ubuntu based Vagrant dev box . The problem I have is that when PyroCMS creates anything in the storage directory it is not created with permissions for anyone to read and write so the system then throws an error saying file un-writeable . To carry on I have to chmod -R 777 storage and then it moves on but if something new is created the problem arises again . PyroCMS seems to be creating files in my username to Comment : how did you do the installation is pyrocms installed with vagrant user or root or another user Comment : Haven t got as far as the installation yet . I setup the vagrant box mapping my local projects directory then use composer to pulled down a setup of Pyrocms . When I try and run the installer is when the problems occur . .. . Answer : I have managed to fix the issue using the following : .. . .. . I understand that this may not be a great fix and certainly not for a production server but for a local box it certainly works by forcing the mounted shared to use 777 permissions .",
"Question : null .. . Answer : I am using pyrocms community edition . I am having a trouble for auto populating the stream fields in the view page . I am trying to edit the field and the old value does not populate by itself . I am well aware that auto populate feature can be achieved through CI Form builder . This is how I have set up my form .. . .. . My plan B would be to generate form with code-igniter form builder if the solution does not comes . But since I am doing in a Pyrocms stream-way if stream field has an option to auto populate it would be great . Comment : which model library function did you use to get profile fields Comment : it was obtained by stream fieds driver function : profile fields this- streams- fields- get stream fields Comment : and did you provide the data through the current data or entry id parameters Check the function definition and comments in system cms libraries Streams drivers Streams fields.php on line 343"
]
} | [
"yes-answer-long",
"yes-answer-short"
] | php | UNK_RELATION |
cq5@web@129 | cq5 -- adobe communiqu 5 or cq5 is the predecessor brand name of a product called adobe experience-manager or aem a large-scale @placeholder content-management-system that is currently available from adobe systems . | {
"confidence": [
74.19181060791016,
74.06838989257812,
72.46137237548828,
70.62447357177734,
70.26669311523438,
69.70873260498047,
67.87102508544922,
66.51585388183594,
66.06917572021484,
65.83350372314453,
65.19803619384766,
64.47380828857422,
63.34333419799805,
63.258705139160156,
62.78779983520508,
61.03011703491211,
60.7242431640625,
58.46198654174805,
57.33060073852539,
54.102325439453125,
54.102325439453125,
53.39316940307617,
52.74101257324219,
52.31249237060547,
52.14152145385742,
51.82527160644531,
50.638423919677734,
49.6866455078125,
48.78632736206055,
48.68418502807617,
45.67888641357422,
45.25240707397461,
45.23638916015625,
45.23638916015625,
44.78539276123047,
44.78539276123047,
43.923370361328125,
43.45745086669922,
43.295005798339844,
43.01742172241211,
42.95351028442383,
42.80262756347656,
42.757076263427734,
42.705223083496094,
42.55162048339844,
42.44383239746094,
42.39125061035156,
42.386871337890625,
42.22697448730469,
41.34147262573242,
41.14263153076172,
41.02589416503906,
41.022865295410156,
40.95386505126953,
40.832645416259766,
40.32795333862305,
40.32795333862305,
40.15367889404297,
40.11527633666992,
40.11527633666992,
39.858463287353516,
39.57350158691406,
39.57350158691406,
39.57350158691406,
39.32819366455078,
39.31315612792969,
39.31315612792969,
39.31315612792969,
39.26023864746094,
39.237937927246094,
39.096099853515625,
38.579463958740234,
38.579463958740234,
38.579463958740234,
38.52080154418945,
37.8692626953125,
37.8692626953125,
37.69871520996094,
37.69871520996094,
37.69871520996094,
37.69871520996094,
37.56022262573242,
37.42676544189453,
37.31450271606445,
37.2939567565918,
37.19910430908203,
37.19910430908203,
37.19910430908203,
37.19910430908203,
37.19910430908203,
37.08616638183594,
36.84819412231445,
36.78297424316406,
36.59443664550781,
36.438541412353516,
36.283363342285156,
36.283363342285156,
36.283363342285156,
36.283363342285156
],
"content": [
"I m using Adobe CQ5 .",
"i am new to adobe CQ5 .",
"The out of the box OOTB page properties dialog in Adobe Experience Manager AEM CQ5 provides an Image tab .",
"I am new to Adobe cq5 .",
"My client is currently using Adobe CQ5 .",
"I am new to Adobe CQ5 .",
"I would like to take a look at Adobe CQ5 CMS system .",
"possible duplicate of Sharing content between Adobe CQ5 pages http : stackoverflow.com questions 15787449 sharing-content-between-adobe-cq5-pages",
"I have a question related with Adobe CQ5 content migration .",
"I am learning Adobe CQ5 on my own .",
"I was wondering if anyone had experience using require.js with the Adobe CQ5 platform .",
"Using Adobe Experience Manager 5.6.1 AEM Formerly CQ5 I am trying to create a new tab similar to the Image tab in Page Properties .",
"In Adobe AEM formerly CQ5 the foundation component parsys design dialog allows the user to set the Cell Padding .",
"The Adobe AEM CQ5 dispatcher simply takes the response body from requests made into the CQ5 instances and saves them as files that then the httpd can deliver .",
"I know Adobe offers CRX as opensource - but my interest is in CQ5 cms .",
"I feel Adobe just changed the look-and-feel of CQ5 and they have released a new version of it called AEM 6.x .. . .. . What are the killer features of AEM 6.x that are not there in CQ5",
"This issue is related to frequent building of client lib folder in adobe cq5 .",
"Adobe CQ5 is a tool being used for creating websites having content-oriented pages .",
"Adobe CQ5 s documentation on Personalization is very poor as expected .",
"JCR Java Content Repository in Adobe cq5 now by default connects to H2 database...how to make it use sql mysql",
"I have a specific Adobe CQ5 5.5 content template that authors will use to create pages .",
".. . Applies to : CQ 5.x and Adobe Experience Manager 6.x",
"As Atigar says the Adobe CQ5 users forum is at http : forums.adobe.com community digital marketing suite cq5 .. . .. . CQ5 is based on three Apache Software Foundation projects : .. . .. . http : felix.apache.org - the Apache Felix OSGi framework .",
"This is a seperate piece of software from the AEM CQ5 jar .",
"If you are used to wordpress drupal etc what is called a theme in those systems is called a design in CQ5 AEM .",
"packaged for resale that they may be able to leverage : .. . .. . http : www.headstandmedia.com what-we-do cms adobe-cq5 cq5-development .. . http : www.ensemble.com expertise digitalmarketing cq5.shtml",
"Now July 2013 called Adobe Experience Manager AEM - see dev.day.com content docs en cq current.html http : dev.day.com content docs en cq current.html",
"Is there any way to connect external data base like mysql can be connected to Adobe CQ5",
"I have only Adobe Flex work experience .",
"This is a product of Adobe so you cannot get it free .",
"I am integratign AEM 6 with Adobe Target and have some problems with it .",
"But in Adobe CQ5 you normally use the Felix annotations https : felix.apache.org documentation subprojects apache-felix-maven-scr-plugin scr-annotations.html for Declarative Services",
".. . .. . I have seen AEM 6.0 the core of it is the same as CQ5 .",
"I need to add support for a proprietary 3D format in cq5 AEM .",
"CQ5 is now known as ADEP .",
"CQ5 generally requires a license .",
"dev.day.com content kb home cq5 Development http : dev.day.com content kb home cq5 Development HowToConfigureSlingDatasource.html",
"The appropriate release based on the version of AEM you are currently running can be obtained here https : github.com Adobe-Consulting-Services acs-aem-commons releases .",
"This is what Adobe generally recommends .",
"I want to learn CQ5 is it typical",
"why AEM or CQ5 is creating a test pagexyz Binary node at root level after some multiple startups of AEM isntance",
"One such reference for google-tag-manager can be referenced here http : www.citytechinc.com us en blog 2014 01 integrating-adobe-experience-manager-aem-google-tag-manager.html .",
"Link : http : adobe-consulting-services.github.io acs-aem-commons features widgets.html multi-field-panel-since-150",
"for more please visit http : www.cqtuts.com cq5 cq5-component.html",
"You can run code directly on the server by using AEM Fiddle from the ACS tools library : adobe-consulting-services.github.io acs-aem-tools features http : adobe-consulting-services.github.io acs-aem-tools features aem-fiddle.html",
"AEM Fiddle is essentially the same idea as Groovy Console but lets you execute your code via JSPs or any other script languages AEM supports .. . adobe-consulting-services.github.io acs-aem-tools features http : adobe-consulting-services.github.io acs-aem-tools features aem-fiddle.html",
"Adding Reference links to what Opkar has shared : - .. . .. . Link : - http : www.aemsolrsearch.com .. . .. . Git : - https : github.com headwirecom aem-solr-search .. . .. . Video Demo : - http : www.aemsolrsearch.com demo .. . .. . AEM 6.2 Documentation : - https : docs.adobe.com docs en aem 6-2 deploy platform queries-and-indexing.html Configuring AEM with an embedded SOLR server .. . .. . Adobe AEM Community post : - http : help-forums.adobe.com content adobeforums en experience-manager-forum adobe-experience-manager.topic.html forum ir8q-is there a detailed.html .. . .. . I hope this would be helpful .",
"Adobe analytics : If you have thousands of pages then go with adobe-analytics .",
"There are some other techniques for sharing content and reference data across pages including inheritance and data components described in this SO Q A http : stackoverflow.com questions 15787449 sharing-content-between-adobe-cq5-pages rq 1 .",
"I m a newbie in CQ5 .",
"C mon Adobe manage your documentation better",
"help-forums.adobe.com content adobeforums en http : help-forums.adobe.com content adobeforums en experience-manager-forum adobe-experience-manager.topic.html forum 8ieg-hi i set theosg.html They seem aware of it at least .",
"1 : http : www.aemcq5tutorials.com tutorials adobe-cq5-aem-curl-commands .. . .. . 2 : https : osgi.org javadoc r4v42 index.html org osgi service event EventHandler.html .. . .. . 3 : https : docs.adobe.com docs en aem 6-1 develop extending workflows wf-extending.html .. . .. . 4 : https : docs.adobe.com docs en aem 6-1 administer operations workflows wf-start.html .. . .. . 5 : https : helpx.adobe.com experience-manager using uploading-files-aem1.html .. . .. . 6 : https : poi.apache.org spreadsheet index.html .. . .. . 7 : code example",
"What is the best approach to achieve this in CQ5 .",
"The Client Library ClientLib feature in Adobe AEM formerly Adobe CQ makes it easy to include client libraries by category and each library can pull in other libraries through dependencies .",
"It takes planning but you can re-use code and markup in AEM CQ5 but totally change the look by changing the design .",
"Creating a Website Link : - http : www.aemcq5tutorials.com tutorials aem-create-a-website-in-cq5 .. . .. . I hope this would help you .",
"A detailed tutorial on this can be found here : http : jenikya.com blog 2013 04 dynamic-dialog-data-in-cq5.html .. . .. . For method 2 refer this http : stackoverflow.com questions 25708043 populating-select-box-options-on-changing-pathfield-in-dialog-of-adobe-cq5 25772802 25772802",
"Day has been bought by Adobe .",
"Try searching for Adobe CQ instead .",
"Im using adobe CQ 5 and I have created a bunch of components .",
"I am new to CQ5 and learning it .",
"If not how can I structure it in CQ5",
"I am new to CQ5 and ExtJS .",
"Which version of CQ5",
"I am trying to access Adobe AEM via WebDAV however I cannot get it to work .",
"You can use Adobe Illustrator .ai to build graphics for use within an AEM web site .",
"Adobe recommends this approach as AEM 6.0 introduced the concept of processing profiles which you could attach to folders .",
"What ever I have been through the reference links of Adobe CQ5 blogs I see most of them are on CRXDE environment rather than eclipse environment .",
"I have created Author instance for Adobe CQ5 using CRXDe Editor it working successfully now want to publish it on IIS Server .. . .. . i have also download Dispatcher for Windows OS and configured it with IIS now i m missing one which is how to host CQ5 site on IIS Author instance is working properly .",
"In Adobe CQ in the documentation for Text.getName path it says : .. . .. . But what is the name part of a path",
"I couldn t understand the need for a parbase component in CQ5 .",
"This is a standard followed by all the Out-Of-the-Box components in CQ5 .",
"We have two CQ5 environments.E1 and E2 .",
"possible duplicate of vanity url-redirection CQ5 http : stackoverflow.com questions 26680812 vanity-url-redirection-cq5",
"According to my rep you need to engage with Adobe to get a copy .",
"Instead to get a glimpse of it please refer developer website of Day OR adobe CQ .",
"I created a live copy in Adobe CQ .",
"I am using Adobe CQ version 5.6.1 .",
"You need a Web Developer with Adobe CQ knowledge .",
"Adobe CQ can be a challenge for the best developers .",
"I develop the site with Day CQ5 .",
"There isn t much you can find about CQ5 widgets .",
"My cq5 Content Structure is... . .. . .. . pageFourNew has around 500 Properties .",
"CQ5 is a system built on top of Felix OSGi console Jackrabbit JCR and a few other pieces e.g .",
"CQ5 still encourages coding in JSP i.e .",
"By the way which version of CQ5 are you using @reporter",
"Select your CQ5 project under Project .",
"Which component can I use in CQ5",
"The forums for developers working with CQ5 are rather scattered about .",
"Here is a similar question : In cq5 widget hide and show based on checkbox in dialog http : stackoverflow.com questions 22868253 in-cq5-widget-hide-and-show-based-on-checkbox-in-dialog .. . .. . You may also take a look at Adobe CQ Widgets API documentation in order to see what events are available for your particular xtype : .. . .. . https : docs.adobe.com docs en cq 5-5 widgets-api index.html",
"One of the examples is in the stackoverflow question bellow : AEM CQ5 html5smartimage filename lost on image upload http : stackoverflow.com questions 33801859 aem-cq5-html5smartimage-filename-lost-on-image-upload .. . .. . Does anybody know what this is suppose to do",
"I m developing a site on Adobe Day CQ .",
"I m following this http : stackoverflow.com questions 15233798 cq5-programmatically-run-a-workflow tutorial to write a workflow for 3 HTML forms without using CQ5 form component and CQ5 workflow submit button .",
"But here are a few if they happen to mesh with your particular needs : .. . .. . Video component - http : www.brightcove.com en partners cq5 and http : blog.brightcove.com en 2011 12 brightcove-integrates-video-cloud-adobe E2 80 99s-cq5-cms and http : coresecure.com bc-cq5-component .. . Google maps component - http : blogs.adobe.com livecyclepost 2011 09 google-maps-component-for-adep-wemcq5 .. . Adobe third-party references - http : dev.day.com docs en crx current developing developers getting started.html Third 20Party 20Libraries .. . .. . There are consultants as well you could tap to create custom components .",
"Which version of CQ5 do you use",
"Or are you talking about writing a procedure in CQ5",
"The main question is : How to use external jars in CQ5",
"Save and use the file to start your CQ5 application ."
]
} | {
"confidence": [
107.25139617919922,
88.6104507446289,
88.00379180908203,
87.47303009033203,
86.55892944335938,
85.93895721435547,
83.8634262084961,
81.32575225830078,
80.87930297851562,
79.54345703125,
77.33331298828125,
76.91447448730469,
76.18647766113281,
75.02365112304688,
73.28813171386719,
71.25643157958984,
70.08699035644531,
69.48004913330078,
67.96540832519531,
66.87731170654297
],
"content": [
"Question : I would like to take a look at Adobe CQ5 CMS system . Does anybody know if I can download it to my developer computer I can not find link on web site . I know Adobe offers CRX as opensource - but my interest is in CQ5 cms . .. . Answer : You can download it . Adobe has re-branded and re-released Communique since acquiring Day Software . CQ5 is now known as ADEP . Read about it in Adobe s ADEP Architecture Guide : http : wwwimages.adobe.com www.adobe.com content dam Adobe en solutions customer-experience-solutions enterprise-platform pdfs adep-2011-architecture-considerations-for-new-and-existing-customers-ue.pdf . Here is an excerpt : .. . .. . The Day CQ and CRX product lines have been incorporated into ADEP . CRX forms the foundation of the Experience Services stack and CQ has been branded as the new Web Experience Management solution . Architecturally these products are unchanged enabling a smooth upgrade experience in the future . New customers requiring the web content-management capabilities of CQ should purchase and develop their applications on one of the Web Experience Management solution editions Basic Standard Premium . The Web Experience Management solution incorporates all the capabilities of CQ 5.4 . Download a trial version of ADEP here : http : www.adobe.com devnet enterprise-platform trial-downloads.html Comment : Note that since the above comment was written the CQ product is back at adobe.com products cq.html http : www.adobe.com products cq.html Comment : Now July 2013 called Adobe Experience Manager AEM - see dev.day.com content docs en cq current.html http : dev.day.com content docs en cq current.html Comment : @Yetimoner : Trial download link you posted not working anymore : Comment : dev.day.com docs en cq current getting started http : dev.day.com docs en cq current getting started download and startworking.html now says July 2013 Business partners can request download access via spphelp@adobe.com",
"Question : I would like to take a look at Adobe CQ5 CMS system . Does anybody know if I can download it to my developer computer I can not find link on web site . I know Adobe offers CRX as opensource - but my interest is in CQ5 cms . .. . Answer : Adobe CQ5 is a tool being used for creating websites having content-oriented pages . This is a product of Adobe so you cannot get it free . Instead to get a glimpse of it please refer developer website of Day OR adobe CQ . Also we have some useful URLs which can be referred : http : vimeo.com 39504016 an introduction video http : docs.adobe.com http : adobecq5interviewquestions.wordpress.com introduction-to-cq",
"Question : how to setup a debugger for AEM or CQ I m using Eclipse IDE and Maven 3.2.5 for build and AEM version 6.0 . I m new to AEM and Java . .. . Answer : This Adobe article walks you through it : https : helpx.adobe.com experience-manager kb CQ5HowToSetupRemoteDebuggingWithEclipse.html .. . .. . Step 1 : Add the Remote Debugging JVM Parameter .. . .. . .. . To use remote debugging you must start CQ5 with this JVM parameter : .. . -agentlib : jdwp transport dt socket address 8000 server y suspend n .. . .. . .. . You can add the parameter by doing the following .. . .. . .. . Start your server like this : crx-quickstart bin start -d --debug-port 8000 . The -d parameter adds the jvm parameter to the CQ5 java process . Add it to your crx-quickstart bin start script CQ JVM OPTS environment variable so your server always starts in debug mode . Include it as a parameter when starting CQ5 with java -jar directly . For example java -Xmx512m .. . .. . .. . -agentlib : jdwp transport dt socket address 8000 server y suspend n -jar cq-author-4502.jar .. . .. . Notes .. . .. . .. . If necessary you can change the port defined under .. . address 8000 .. . from 8000 to something that works better in .. . .. . .. . your environment . Starting CQ 5.5 using the last solution when Quickstart forks a new process it does not start the JVM with the debug options . You can prevent forking by specifying the -nofork command-line option . Te start script is located under crx-quickstart server for CQ versions 5.5 .. . .. . Step 2 : Start a remote debugging session .. . .. . To start a remote debugging session from Eclipse do the following : .. . .. . .. . Open Eclipse . Choose Run Debug Configurations . Right-click Remote Java Applications and select New . Select your CQ5 project under Project . Type in the port from the address configuration of the jvm parameter defined above . In the example it is port 8000 and the host .. . .. . .. . name of the machine you are connecting to most likely localhost To start a debugging session double-click your new configuration in the Debug Configurations screen after saving it . .. . Applies to : CQ 5.x and Adobe Experience Manager 6.x",
"Question : I would like to take a look at Adobe CQ5 CMS system . Does anybody know if I can download it to my developer computer I can not find link on web site . I know Adobe offers CRX as opensource - but my interest is in CQ5 cms . .. . Answer : I am working on CQ5 its a very advanced CMS tool as compared to the others . But its not a open-source like other Drupal Joomla etc . You have to purchase the developer suite . Refer to the links for online document support http : dev.day.com docs en.html . Comment : i am new to adobe CQ5 . I have only Adobe Flex work experience . I want to learn CQ5 is it typical and please share the tutorial links . Comment : Ravi some basic language foundations will carry over but it s a completely different stack than Flex . Pretty much you are looking at CRX JCR + Sling + OSGI I believe running on Felix + J2EE + ExtJS for a lot of the dialog systems etc",
"Question : I am new to Adobe cq5 . Went through many online blogs and tutorials but could not get much . Can any one describe a way how I can create an HTML page from Adobe Illustrator .ai file containing images and font required for web page . I have installed CQ5 instance on my system but don t know how to work with AI files . Thanks in advance . Comment : You need a Web Developer with Adobe CQ knowledge . Can I ask what your skill level is Are you a developer Adobe CQ can be a challenge for the best developers . .. . Answer : You can use Adobe Illustrator .ai to build graphics for use within an AEM web site . You place those graphics in the the AEM DAM Digial Asset Manager . You can then use those assets . For example : .. . .. . 1 - reference them in web pages . 2 - build components that use them . See http : scottsdigitalcommunity.blogspot.ca 2013 04 creating-gallery-components-that.html .. . .. . As a new user I recommend that you read this : http : helpx.adobe.com experience-manager using onboardAEM.html . From that link - you will find a section about creating your first AEM site . Its a must to walk through to learn AEM . You will also find other articles that will show you how to perform tasks - like creating OSGi services .",
"Question : I would like to take a look at Adobe CQ5 CMS system . Does anybody know if I can download it to my developer computer I can not find link on web site . I know Adobe offers CRX as opensource - but my interest is in CQ5 cms . .. . Answer : The best thing to do is learn SLING . http : sling.apache.org documentation getting-started discover-sling-in-15-minutes.html .. . .. . If you really understand Sling and OSGI the JCR stuff is pretty trivial . Mastery of these core technologies makes CQ AEM pretty straightforward .",
"Question : When I say CQ5 I mean the version 5.5 . I would like to know the major differences in features . .. . .. . I have seen AEM 6.0 the core of it is the same as CQ5 . I checked out the examples all the examples are the same the only difference I found was the UI of WCM i.e . there is a new look-and-feel for it but you can still switch to the classic mode . CQ5 still encourages coding in JSP i.e . it still uses scriplets . Is there any alternative to using Scriptlets in AEM 6.x I feel Adobe just changed the look-and-feel of CQ5 and they have released a new version of it called AEM 6.x .. . .. . What are the killer features of AEM 6.x that are not there in CQ5 Comment : Besides yash s answer : With AEM 6 you can also use AEM Forms which is meant to replace Live Cycle . But it is a separate license . They also enhanced many integrations to their Marketing Cloud products like Adobe Campaign . .. . Answer : I would recommend you to take a look for release notes https : docs.adobe.com docs en aem 6-0 release-notes.html .. . .. . I like below features quite a lot : .. . .. . A new repository Apache Jackrabbit Oak . Sightly a new templating language that way you can avoid scriptlet code to a great extent . Supporting better user management by delegating the permissions . Create projects wizard project templates .. . .. . The above ones are very few which I have highlighted . There are many more so as per my opinion its not just UI changes so make sure you go through release notes to learn and then justify accordingly .",
"Question : I would like to take a look at Adobe CQ5 CMS system . Does anybody know if I can download it to my developer computer I can not find link on web site . I know Adobe offers CRX as opensource - but my interest is in CQ5 cms . .. . Answer : CQ5 generally requires a license . However you CAN get started with the various components . CQ5 is a system built on top of Felix OSGi console Jackrabbit JCR and a few other pieces e.g . ExtJS for a lot of front end stuff . If you learn these technologies you won t know CQ5 but you will have a big step up in terms of learning it .",
"Question : I have a query regarding CQ . Your reply will really make the difference to my understanding . In other CMS like Vignette content authors create the contents separately not directly on the page for ex . products details and then those contents are iterated processed to display on the page . But in CQ the scenario is other way round . Authors directly create the content on the page . Now if same content is needed on other page how will that be re-used Regards Ronak Comment : possible duplicate of Sharing content between Adobe CQ5 pages http : stackoverflow.com questions 15787449 sharing-content-between-adobe-cq5-pages Comment : If I create page with FORM in it for product text product image description etc still it would need separate page for each product I guess to enter details via form .. . Answer : Content can be reused across pages via Reference components http : docs.adobe.com docs en aem 6-0 author page-authoring default-components editmode.html Reference . From the docs : .. . .. . The Reference component lets you reference text in another part of a CQ based website within the current instance . The referenced paragraph will then appear as-if it was on the current page . Instead of referencing a specific paragraph the path can also be modified to specify an entire paragraph-system .. . There are some other techniques for sharing content and reference data across pages including inheritance and data components described in this SO Q A http : stackoverflow.com questions 15787449 sharing-content-between-adobe-cq5-pages rq 1 .",
"Question : Is there any way to connect external data base like mysql can be connected to Adobe CQ5 JCR Java Content Repository in Adobe cq5 now by default connects to H2 database...how to make it use sql mysql .. . Answer : Go to : system-console configMgr .. . Open up : the JDBC Connections Pool configuration .. . Enter all the standard JDBC config elements username password driver JDBC URI .. . Enter a Datasource Name referred to below as yourDataSourceName .. . .. . .. . In your JSP or Servlet : Comment : There s also a helpful guide posted on how to configure database connections on the CQ documentation site . dev.day.com content kb home cq5 Development http : dev.day.com content kb home cq5 Development HowToConfigureSlingDatasource.html",
"Question : I would like to take a look at Adobe CQ5 CMS system . Does anybody know if I can download it to my developer computer I can not find link on web site . I know Adobe offers CRX as opensource - but my interest is in CQ5 cms . .. . Answer : According to my rep you need to engage with Adobe to get a copy . We don t have it in house yet as the do want a training session so that users aren t frustrated with the complexity . I ve played around on a test site and also played with it at conventions and it seems like one of the better designed CMS options at the moment .",
"Question : According this link http : docs.adobe.com docs en dispatcher.html .. . .. . Dispatcher is Adobe Experience Manager s caching and or load-balancing tool . I need to know what does my dispatcher cache . How can I found out it .. . Answer : The Adobe AEM CQ5 dispatcher simply takes the response body from requests made into the CQ5 instances and saves them as files that then the httpd can deliver . The dispatcher can be configured to allow requests to be either cached or sent directly to the CQ5 instance . This configuration is done in a file dispatcher.any http : docs.adobe.com docs en dispatcher disp-config.html . Check the documentation it is good enough . In general you decide what is cached and what not by defining a set of rules . allow means to cache and deny not to cache . For example : .. . .. . Will : .. . .. . by default cache every request rule 0000 .. . send to the instance requests to that contain en news and private rules 0001 and 0002 . The documentation also describe how to write these rules http : docs.adobe.com docs en dispatcher disp-config.html par title 25 . Finally the dispatcher will never cache requests without extension requests with a query-string non-GET requests and requests with an authentication header . Comment : will myurl.jsp parameter values cache on dispatcher Comment : not really since that url does not have an extension .",
"Question : Anyone here develops on DAY CQ Can advise what is the forum or community to seek for help I tried to sign up to their google groups but am not able to do so Comment : What is DAY CQ Comment : Day has been bought by Adobe . And Day is not an acronym . Try searching for Adobe CQ instead . .. . Answer : As Atigar says the Adobe CQ5 users forum is at http : forums.adobe.com community digital marketing suite cq5 .. . .. . CQ5 is based on three Apache Software Foundation projects : .. . .. . http : felix.apache.org - the Apache Felix OSGi framework . In general you don t need to know much about it to develop with CQ5 . http : jackrabbit.apache.org - the Apache Jackrabbit JCR content repository the CRX content repository that CQ5 runs on uses the same core code with some extensions . http : sling.apache.org - the Apache Sling web framework which CQ5 uses to process HTTP requests including mapping them to scripts or servlets . Understanding the Sling way of doing things helps a lot in understanding CQ . These 3 projects all have user mailing lists as well .",
"Question : The Client Library ClientLib feature in Adobe AEM formerly Adobe CQ makes it easy to include client libraries by category and each library can pull in other libraries through dependencies . However the documentation around Themes is a little thin . This link http : wem.help.adobe.com enterprise en US 10-0 wem developing components.html 3Ccq 3aincludeClientLib 3E is about all I can find on the subject . Here is an excerpt of the sample code : .. . .. . If this tag were to be used how would CQ determine what Client Libs to pull in Does it look for a theme property of type String Or does it look for a certain directory structure in the etc designs section Or does it take the passed in categories and add theme-js to the end like so Or is the theme invoked through the URL In other words the word theme in this case is a token that is replaced with a selector from a URL applied theme .. . Answer : Depends on what you mean by theme . If you are used to wordpress drupal etc what is called a theme in those systems is called a design in CQ5 AEM . To set a design you choose a designpath in the page properties . This will affect where information about components for each template is stored all changes made in design mode about what components are allowed where are stored under this path and is the convention for where CSS JS and non-DAM image resources are stored . It takes planning but you can re-use code and markup in AEM CQ5 but totally change the look by changing the design .",
"Question : I m developing a site on Adobe Day CQ . My site should consist of many different components that can not be found in the standard-library Day CQ . Are there any third-party component libraries for this CMS or will I need to create them yourself .. . Answer : Surprisingly not as many as one might expect--at least at present . It certainly seems like fertile ground for a startup . But here are a few if they happen to mesh with your particular needs : .. . .. . Video component - http : www.brightcove.com en partners cq5 and http : blog.brightcove.com en 2011 12 brightcove-integrates-video-cloud-adobe E2 80 99s-cq5-cms and http : coresecure.com bc-cq5-component .. . Google maps component - http : blogs.adobe.com livecyclepost 2011 09 google-maps-component-for-adep-wemcq5 .. . Adobe third-party references - http : dev.day.com docs en crx current developing developers getting started.html Third 20Party 20Libraries .. . .. . There are consultants as well you could tap to create custom components . They likely have some libraries they have developed but not yet packaged for resale that they may be able to leverage : .. . .. . http : www.headstandmedia.com what-we-do cms adobe-cq5 cq5-development .. . http : www.ensemble.com expertise digitalmarketing cq5.shtml",
"Question : I am new to Adobe cq5 . Went through many online blogs and tutorials but could not get much . Can any one describe a way how I can create an HTML page from Adobe Illustrator .ai file containing images and font required for web page . I have installed CQ5 instance on my system but don t know how to work with AI files . Thanks in advance . Comment : You need a Web Developer with Adobe CQ knowledge . Can I ask what your skill level is Are you a developer Adobe CQ can be a challenge for the best developers . .. . Answer : Simply put you can t . For starters CQ5 is a modular CMS in that you drag in various components to build a page up . You have page templates that contain the basics of a page such as the header and footer but you don t create entire pages in one go so to speak . You build them up from reusable components . Second you can t automatically convert an illustrator file to a webpage you need a web developer to translate it into HTML Javascript JSP s and CSS . Also CQ5 can require quite a bit of back end coding in Java so that is something to keep in mind . CQ5 is really an enterprise CMS so depending on your needs it might be worth taking a look at something like Wordpress https : wordpress.com although you still wont be able to simply upload an AI file .",
"Question : I have a question related with Adobe CQ5 content migration . We have two CQ5 environments.E1 and E2 . We copied content of E1 s author to E2 s author instance . We did it by creating CRX content package . Our content copy went well but now we are realizing that we have missed our versions in pages . For example on E1 we hav a page example.html with three versions 1.0 1.2 1.3 but in E2 we are finding no version of example.html . PS : We create versions manually by Author instance . .. . Answer : The Package Manager only takes the latest version of a page and does not copy it s history . The only way to have the versions on both instances is using a cluster where the whole repository is synchronized .",
"Question : We are no longer using the adobe scene7 integration in our application so I disabled the scene7 bundles using OSGi configuration http : adobe-consulting-services.github.io acs-aem-commons features osgi-disabler.html even after doing that I still see a scene7 related error in my error-log such as below . Can I also disable the bundle com.day.cq.wcm.cq-wcm-webservice-support in order to avoid the errors or is there any other way to avoid this error we are using AEM 6.0 .. . Answer : The failing code is called by ServicesStatisticsJob which has a hardcoded scheduler expression . as suggested here http : help-forums.adobe.com content adobeforums en experience-manager-forum adobe-experience-manager.topic.html forum 4luc-hi team pleaseh.html you can disable it by unbind -ing the service config for the process at- .. . .. . http : localhost : 4502 system-console configMgr com.day.cq.wcm.webservicesupport.impl.statistics.ServicesStatisticsJob",
"Question : Anyone here develops on DAY CQ Can advise what is the forum or community to seek for help I tried to sign up to their google groups but am not able to do so Comment : What is DAY CQ Comment : Day has been bought by Adobe . And Day is not an acronym . Try searching for Adobe CQ instead . .. . Answer : The forums for developers working with CQ5 are rather scattered about . I have bookmarked this one : http : tech.groups.yahoo.com group jcr-crx which has seen 22 postings since the first of the year . There is also a much more forum for users of the open-source Apache Jackrabbit which underlies CQ5 s repository : http : blog.gmane.org gmane.comp.apache.jackrabbit.user .",
"Question : We have a lot content that need to be imported in AEM . what is best way to import it Is that any possibilities to import-from-excel file check this example http : i.stack.imgur.com q3l4l.jpg .. . .. . An good example for exporting is here etc importers bulkeditor.html we can export the file with single Properties Columns where i can define the Root Path and Properties . I tried this packet but dos not contain what I like . https : helpx.adobe.com experience-manager using creating-custom-excel-service-experience.html Comment : Where does the content come from Another AEM CQ instance Or some 3rd party stuff. . Comment : Is the same platform actually i need to add just in properties for a page . .. . Answer : Importing data to AEM can be done in lots of ways . What is the right way for you depends on your specific requirements . Is this a one time import or are you rather planning to write a reusable import tool Is the import done by programmers or admins or rather by editors Do you need fault tolerance or a rollback Are you working on productive instances .. . Here are a few of the more or less common ways ordered from cheap fast to extensive comfortable along with links to the documentation or examples : .. . .. . 1 . Write a bash-script and post values with cURL requests 1 .. . 2 . Upload data in DAM write EventHandler 2 7 or a workflow 3 with a workflow launcher 4 and parse the data afterwards change the repository . 3 . Upload data in separate file in an own component with a file-upload section 5 parse the data and change the repository . For parsing excel data I would suggest you use apache-poi 6 which is already included in AEM . But using formats like csv json or xml will maybe save you lots of parsing efforts . 1 : http : www.aemcq5tutorials.com tutorials adobe-cq5-aem-curl-commands .. . .. . 2 : https : osgi.org javadoc r4v42 index.html org osgi service event EventHandler.html .. . .. . 3 : https : docs.adobe.com docs en aem 6-1 develop extending workflows wf-extending.html .. . .. . 4 : https : docs.adobe.com docs en aem 6-1 administer operations workflows wf-start.html .. . .. . 5 : https : helpx.adobe.com experience-manager using uploading-files-aem1.html .. . .. . 6 : https : poi.apache.org spreadsheet index.html .. . .. . 7 : code example"
]
} | [
"yes-answer-long",
"yes-answer-short"
] | web | UNK_RELATION |
banana@visualization@56 | banana -- the banana project a fork of kibana is a log @placeholder tool for use with apache solr data . | {
"confidence": [
52.855323791503906,
48.869651794433594,
48.85277557373047,
48.77989196777344,
48.029747009277344,
47.86437225341797,
42.36827850341797,
41.77445602416992,
41.35527801513672,
40.814266204833984,
39.31873321533203,
39.31873321533203,
39.098697662353516,
37.73389434814453,
37.33984375,
37.10345458984375,
36.91596984863281,
36.80657958984375,
36.80657958984375,
36.11130905151367,
36.07493209838867,
35.97924041748047,
35.685791015625,
35.685791015625,
35.65581512451172,
35.609046936035156,
35.609046936035156,
35.49372482299805,
35.49372482299805,
35.217185974121094,
35.179832458496094,
35.09757995605469,
35.09757995605469,
35.08493423461914,
34.92219543457031,
34.719234466552734,
34.61690139770508,
34.51130676269531,
34.51130676269531,
34.19025421142578,
34.19025421142578,
34.19025421142578,
33.87863540649414,
33.86498260498047,
33.86498260498047,
33.86498260498047,
33.86498260498047,
33.86498260498047,
33.727088928222656,
33.727088928222656,
33.721649169921875,
33.721649169921875,
33.60204315185547,
33.60204315185547,
33.60204315185547,
33.60204315185547,
33.60204315185547,
33.42778778076172,
32.87283706665039,
32.87283706665039,
32.7295036315918,
32.60989761352539,
32.60989761352539,
32.60989761352539,
32.54705047607422,
32.5379753112793,
32.5379753112793,
32.450103759765625,
32.450103759765625,
32.450103759765625,
32.37898254394531,
32.37898254394531,
32.37898254394531,
32.37898254394531,
32.37898254394531,
32.37898254394531,
32.37898254394531,
32.35636520385742,
32.337623596191406,
32.337623596191406,
32.337623596191406,
32.337623596191406,
32.337623596191406,
32.337623596191406,
32.337623596191406,
32.337623596191406,
32.337623596191406,
31.723709106445312,
31.68372344970703,
31.42078399658203,
31.42078399658203,
31.42078399658203,
31.42078399658203,
31.345474243164062,
31.345474243164062,
31.149919509887695,
31.149919509887695,
31.061803817749023,
31.051515579223633,
30.952774047851562
],
"content": [
"Is it possible to use multiple queries in LucidWorks Banana with Solr like with Kibana and elasticsearch",
"And information is available at this address : http : blog.trifork.com 2014 05 20 advanced-kibana-dashboard it is Kibana but Banana is a fork of Kibana .",
"I am using Banana the open-source port of Kibana 3 https : github.com LucidWorks banana to visualize data stored in SOLR .",
"Kibana vs Banana .",
"Similar question for Solr and Banana .",
"Is Banana the only visualization tool available for Solr",
"I use the Banana interface great but there are not many discussion on it .. . .. . I have a project of create a menu over the Banana index.html .",
"I have installed Apache SOLR and Banana on a single machine for data-visualization requirements .",
"When I added the banana folder inside here Users myusername Documents solr-5.1.0 server solr-webapp webapp banana everything worked perfectly .",
"Once the dashboard is manually in Solr I can then load it from Banana .",
"Has anyone had luck in getting banana working with Solr 4.2",
"At LucidWorks we have only tested Banana on Solr 4.4 and above .",
"Banana Hue",
"The Wave.hs https : github.com HeinrichApfelmus reactive-banana blob master reactive-banana-wx src Wave.hs example demonstrates the recursive use of a wxTimer with reactive-banana .",
"I m using Banana above Solr and I think the Table panel is really usefull to export data as CSV .",
"graprefuit and reactive-banana",
"The model implementation https : github.com HeinrichApfelmus reactive-banana blob develop reactive-banana src Reactive Banana Model.hs does indeed provide a denotational-semantics for functional reactive-programming as implemented by reactive-banana .",
"The example code for reactive-banana demonstrates its use .",
"I m still evaluating on whether to use Banana or Hue for this .",
"Author of reactive-banana here .",
"Author of reactive-banana http : haskell.org haskellwiki Reactive-banana speaking .",
"But when I try to compile my main play project that uses banana-rdf it doesn t compile banana-rdf but tries to compile the main project : the compilation fails because banana-rdf classes are missing in the classpath .",
"I m trying to get the Save-to-Solr feature of banana working and failing with a status code of 404 .",
"But the problem is that Banana is always showing the GMT+0 time solr result times minus 2 hours .",
"I m using reactive-banana and sdl2 using this glue library https : github.com cies reactive-banana-sdl2 for a game-like project .",
"Are explicit delays representable in reactive-banana",
"Yes reactive-banana can do that .",
"You could do it and publish the first reactive-banana-gtk project yourself : .",
"Does anyone have an example on how to properly integrate banana-rdf into a project",
"Thinking of switching to Banana so that I can use the d3 graphs too .",
"I would like to use banana-rdf https : github.com w3c banana-rdf in my project ideally by defining it as a dependency in a build.scala using dependsOn : .. . .. . However banana-rdf is a multi-project so needs to be composed differently http : www.scala-sbt.org 0.12.3 docs Getting-Started Multi-Project.html .",
"I want to change the colours of my Banana term .",
"I m migrating to latest banana version 1.6.0 .",
"The RootProject file . . banana-rdf project reference just references the root project and what you really need is a reference to the banana-rdf subproject in the rdf subdirectory .",
"reactive-banana + gtk2Hs .",
"I am trying out the examples of reactive-banana in its tutorial http : www.haskell.org haskellwiki FRP explanation using reactive-banana Making the example runnable .",
"I am learning reactive-banana .",
"I m following the instructions from their github site here https : github.com LucidWorks banana basically dropping the banana src directory into the my SOLR HOME solr-webapp webapp directory .",
"Just to confirm your process from https : github.com LucidWorks banana blob release QUICKSTART : .. . .. . If you dropped the src folder and not the banana folder then you will need to browse to http : solrserver.yourdomain.com : 8983 solr src index.html dashboard",
"I m running Solr 4.2 and would like to try out LucidWorks Banana product .",
"However when I navigate to the banana directory on my Solr server I receive a 404 error .",
"Once I dropped the Banana folder into C : Windows solr-webapp webapp I was able to bring up the dashboard .",
"I think the post might really boil down to comparison of banana vs kibana not what the title conveys .",
"This doesn t appear to be exposed in the cabal file https : github.com HeinrichApfelmus reactive-banana blob 565d190fddd17a7224dd3609852716b989bfa885 reactive-banana-wx reactive-banana-wx.cabal so it s not part of the package s public interface .",
"https : github.com HeinrichApfelmus reactive-banana blob develop reactive-banana src Reactive Banana Model.hs .. . .. . Can this 120 lines-of-code be considered as a denotational-semantics for FRP",
"Moment has no MonadFix instance -- In the current master it does https : github.com HeinrichApfelmus reactive-banana blob 3ac2dfc54e09ee9ce72d241fb434af10c7477d1b reactive-banana src Reactive Banana Types.hs L102 .",
"I found the reactive-banana-wx and wonder if there is also a similiar package for gtk as reactive-banana should support gtk according to http : www.haskell.org haskellwiki Reactive-banana",
"You can take a look at reactive-banana-wx http : hackage.haskell.org package reactive-banana-wx to see how to bind an event-based framework to reactive-banana .",
"So we need to accumE http : hackage.haskell.org package reactive-banana-0.8.1.2 docs Reactive-Banana-Combinators.html v : accumE .",
"Testing in reactive-banana http : stackoverflow.com questions 27216295 testing-in-reactive-banana .. . .. . interpretFramwork needs a new signature .",
"@TingL : No use the cabal file provided in reactive-banana-wx .",
"Here an example reactive-banana 0.8 : .. . .. . To hold it you can use a Behavior .",
"is from Control.Arrow and unionWith is the one from reactive-banana .",
"This is what reactive-banana-wx does for the wx library .",
"It was almost a direct transliteration of the reactive-banana-wx code .",
"update : switching is in reactive-banana as of version 0.7.0.0",
"Banana Pi isn t part of the pre-made configurations .",
"This is an important aspect of the design of reactive-banana .",
"Edit : Update - I believe this link https : github.com HeinrichApfelmus reactive-banana blob master reactive-banana src Reactive Banana Test.hs will provide sufficient hints .",
"I got some brand new banana Pi s these are the Banana Pi-M2 and the Banana Pi-M3 .. . .. . I was trying to install Debian on both of them but I couldn t get it to work .",
"Will using Builder let me use reactive-banana to calculate the samples though",
"I think the issue is independent of reactive-banana .",
"Disclosure : I m the author of the reactive-banana library .",
"I believe currently there is no support for connecting Banana to MySQL .",
"For hints about enabling CORS on Solr check here : here https : github.com LucidWorks banana tree release resources enable-cors",
"Mumbo-jumbo about reactive-banana network types .. . .. . Such a function is incompatible with the actual type of entire networks used in reactive-banana .",
"I made a script on ubuntu and now I want it to run on my banana-pi with bananian raspbian for banana-pi .",
"From types it s obvious if you understand basics of monads that fromAddHandler http : hackage.haskell.org package reactive-banana-0.8.1.2 docs Reactive-Banana-Frameworks.html v : fromAddHandler and reactimate http : hackage.haskell.org package reactive-banana-0.8.1.2 docs Reactive-Banana-Frameworks.html v : reactimate can only be used in Moment context e.g .",
"Turn pitch Event into Behavior with stepper http : hackage.haskell.org package reactive-banana-0.8.1.2 docs Reactive-Banana-Combinators.html v : stepper and replace accumE with accumB http : hackage.haskell.org package reactive-banana-0.8.1.2 docs Reactive-Banana-Combinators.html v : accumB to get octave Behavior instead of octave Event .",
"I tried with accumB http : hackage.haskell.org package reactive-banana-0.8.1.2 docs Reactive-Banana-Combinators.html v : accumB and unionWith http : hackage.haskell.org package reactive-banana-0.8.1.2 docs Reactive-Banana-Combinators.html v : unionWith but I don t think I am getting right the mechanism .",
"Is there or does it make sense for it to be a reactive-banana over webkitgtk3 s DOM",
"Running banana 1.5 as a standalone war in tomcat7 and talking to solrCloud .",
"The collection for banana-int is running on the same server as the collection for logdata .",
"Trying to tinker with the banana-int collection so it treats application text as json .",
"I have installed bananian https : www.bananian.org OS on Banana pro .",
"Now I want to make wifi access-point on banana pro .",
"For some reason this defaulted to a really low resolution for my screen with the Banana Pro .",
"When you have only 1 Event http : hackage.haskell.org package reactive-banana-0.8.1.2 docs Reactive-Banana-Combinators.html t : Event or multiple Events that happen simultaneously or multiple Events of the same type it s easy to just union http : hackage.haskell.org package reactive-banana-0.8.1.2 docs Reactive-Banana-Combinators.html v : union or otherwise combine them into a resulting Event then pass to reactimate http : hackage.haskell.org package reactive-banana-0.8.1.2 docs Reactive-Banana-Frameworks.html v : reactimate and immediately output it .",
"The module was renamed to Control.Event.Handler http : hackage.haskell.org package reactive-banana-0.8.0.0 docs Control-Event-Handler.html v : newAddHandler in reactive-banana 0.8 .",
"I am a beginner with reactive-banana and understanding how the model implementation works in the Slotmachine example would be helpful in understanding reactive-banana .",
"For details about what the combinators are doing see Reactive.Banana.Combinators http : hackage.haskell.org package reactive-banana-0.8.1.2 docs Reactive-Banana-Combinators.html .",
"For the fine print on the timing of events and behavior updates in reactive-banana see this question http : stackoverflow.com questions 24149514 dealing-with-the-current-time-in-reactive-banana .",
"Depending on what you are trying to do the changes http : hackage.haskell.org package reactive-banana-0.8.1.2 docs Reactive-Banana-Frameworks.html v : changes function might be useful .",
"You are looking for accumE http : hackage.haskell.org package reactive-banana docs Reactive-Banana-Combinators.html v : accumE which builds events from streams of events .",
"I m using the asteroid https : github.com HeinrichApfelmus reactive-banana blob master reactive-banana-wx src Asteroids.hs example as a model to work from .",
"I have scoured the documentation of reactive-banana http : hackage.haskell.org package reactive-banana and I can t find a way to specify explicit time delays .",
"@AndrewC I guess this https : github.com HeinrichApfelmus reactive-banana blob master reactive-banana-wx src Asteroids.hs is the link you wanted",
"How can i use Banana to generate data-visualization of my non indexed database .",
"That being so it makes sense to remove the indirection involved in externally plugging something like reactive-banana as the old reactive-banana-threepenny http : hackage.haskell.org package reactive-banana-threepenny-0.7.1.3 package used to do .",
"This might not be related to either SDL or reactive-banana .",
"Is there a way to unit test networks created in reactive-banana",
"I am using Reactive-Banana in a WX interface .",
"Note ProjectRef as well as the name of the subproject - banana-rdf .",
"They can only do that inside Moment http : hackage.haskell.org package reactive-banana-0.8.1.2 docs Reactive-Banana-Switch.html t : Moment monadic context .",
"This is hinted at in the documentation for the stepper function http : hackage.haskell.org packages archive reactive-banana 0.4.2.0 doc html Reactive-Banana-Model.html v 3astepper .",
"This example for example seems to be using the Prim implementation : https : github.com HeinrichApfelmus reactive-banana blob master reactive-banana doc examples SlotMachine.hs .. . .. . Is it possible to modify it to use the Model implementation",
"It works because stepper performs the update notionally slightly after http : hackage.haskell.org package reactive-banana-0.8.1.2 docs Reactive-Banana-Combinators.html v : stepper the triggering event so that use cases such as this one work .",
"But I also realized I can use webkit to render my app but still need reactive-banana for gtk .",
"We are running a BANANA SOLR application and whenever the page is redirected to the pip.json file the application generates a single-page-application using the JSON content given in the file .",
"I have created a Banana custom panel and I want to change dynamically its custom query by a system of select tag ."
]
} | {
"confidence": [
63.30430603027344,
62.74787902832031,
60.61941909790039,
60.091732025146484,
56.95354080200195,
55.97282028198242,
52.37543487548828,
51.6932487487793,
51.659854888916016,
47.59711837768555,
46.344234466552734,
44.228675842285156,
43.6708869934082,
43.599613189697266,
43.476715087890625,
43.201080322265625,
42.91651153564453,
42.640201568603516,
41.96870040893555,
41.8976936340332
],
"content": [
"Question : null .. . Answer : I have installed Apache SOLR and Banana on a single machine for data-visualization requirements . Some parts of MySql data is not indexed in apache SOLR . How can i use Banana to generate data-visualization of my non indexed database . Comment : I believe currently there is no support for connecting Banana to MySQL . Comment : Thank you for your comment @aadel can you tell me the idea if is there any other solution . Comment : you can either index the data you need to visualize in Solr or use a classical BI tool to do the work in the relational world . Just a note if the fields are stored in Solr but not indexed you can still visualize in Banana but you just won t be able to search them . Comment : Thank you so much I appreciate you .",
"Question : How do Elasticsearch and Solr compare in respect to the following : .. . .. . 1 . Indexing logs . 2 . Indexing events . 3 . Indexing PDF documents . 4 . Ease of creating and distributing visualizations . Kibana vs Banana . 5 . Support and documentation for developers . Any help is appreciated . EDIT .. . .. . More specifically i am trying to figure out how exactly a PDF document or an event can be indexed at all . I have worked a little bit on Elasticsearch and since i am a fan of JSON i found it quite useful when i tried to index structured-data . For example logs are mostly structured and thus i guess easier to index and search . Now what if i want to index the whole log file itself Follow up .. . .. . Is Kibana the only visualization tool available for Elasticsearch Is Banana the only visualization tool available for Solr Comment : So this doesn t specifically answer your questions at all since you are concentrating on logging but just something that might be worth a look : stackoverflow.com questions 10213009 solr-vs-elasticsearch http : stackoverflow.com questions 10213009 solr-vs-elasticsearch . I think the post might really boil down to comparison of banana vs kibana not what the title conveys . Another key thing is handling of pdf documents for which you might need to look into plugins at least for Elasticsearch . Comment : downvote should i be more specific Comment : Oh I did not downvote this . I think the question can be updated a bit to focus a bit on your requirements and take out the general elasticsearch vs solr stuff . But to me it seems like good question that I myself am curious about . Considering the stackoverflow post I referenced earlier and how popular that was I don t see why kibana vs banana shouldn t be a good post . Of course your post is more than just that . Have you looked at Logstash as a whole But I think the post title and the content itself does require some refining . Comment : thanks in the meantime please feel free to edit the question if you have any suggestions Comment : I gave it a shot - has to be peer reviewed . I try to stick with minor edits and not speak for the poster . But please review if accepted and change it if you don t like it . .. . Answer : Here is an answer to try to address just the Elasticsearch aspect of the post . Take a look at https : github.com elastic elasticsearch-mapper-attachments for handling PDFs .. . .. . For events logs you would need to transform those into structured-data to index in Elasticsearch . You can have a field in there for the source the log file the data came from and other information like that - you will have all the data in the whole log file indexed in that fashion . You can take advantage of ES aggregations to group results based on log file calculate statistics etc . The ELK stack https : qbox.io blog welcome-to-the-elk-stack-elasticsearch-logstash-kibana is definitely worth a look . I don t know if Kibana is the only visualization tool but it is probably the most popular and likely to offer more than something else . Comment : thanks man : mapper attachment is awesome is there something similar for Solr Comment : Sorry not really sure about Solr - never worked with it yet .",
"Question : Is it possible to use multiple queries in LucidWorks Banana with Solr like with Kibana and elasticsearch We would like to display them in one diagram histogram using different colors.. . The way we want it : Screenshot how it looks like in Kibana ElasticSearch .. . .. . enter image description here http : i.stack.imgur.com aTHdT.png .. . .. . What we already got : Banana with just one query per diagram histogram .. . .. . enter image description here http : i.stack.imgur.com qh1ns.png .. . Answer : We are currently working on supporting it You will find it in the next version 1.5 .. . .. . if you have any more questions you can contact us https : github.com LucidWorks banana issues",
"Question : I want to change the default route to the Banana default dashboard . Because I don t want to load a file each time I launch Banana and if I want to use an other computer I will be owned .. . .. . I don t know where I can find this variable in which file . I saw this on the config.js file but I don t really understand : .. . .. . Does someone have an idea .. . Answer : I found the solution : . It is in dashboards.js in the src app services directory . I had to change the lines marked default.json by the file exported from my Banana putted in the src app dasboards directory . And information is available at this address : http : blog.trifork.com 2014 05 20 advanced-kibana-dashboard it is Kibana but Banana is a fork of Kibana .",
"Question : When should a POST request turn into an an OPTIONS request and what does that mean What does the end server see in that case I m trying to get the Save-to-Solr feature of banana working and failing with a status code of 404 . I think this is a CORS problem but am not sure where to go with it . Running banana 1.5 as a standalone war in tomcat7 and talking to solrCloud . SolrCloud was I believe set up for CORS . Queries for data in the dashboard itself are properly returning data . The collection for banana-int is running on the same server as the collection for logdata . Having trouble inspecting the POST data from Chrome s Inspect-Element but stepped through the angular caught the http.post path data config turned this into a command-line POST and that succeeded in putting the dashboard into Solr . Once the dashboard is manually in Solr I can then load it from Banana . This tells me things server url collection etc are wired up correctly from the banana js perspective . Chrome screenshot http : i.stack.imgur.com j89uX.png .. . Answer : This is most likely due to CORS . AngularJS is sending pre-flight OPTIONS request specifying Access-Control-Request-Method : POST in header which tells the server that the upcoming method is POST . For hints about enabling CORS on Solr check here : here https : github.com LucidWorks banana tree release resources enable-cors Comment : SOLR is wired up for CORS that was necessary to get the log-based queries and loading the dashboard to go through . It seems to be the OPTIONS POST in particular that is broken . Comment : hmmm.. . try to disable preflight OPTIONS request by replacing application json with text plain in the post function inside solr-angular-client.js which would result in sending the POST request directly . Comment : Not there but definitely better . It went through as a POST but my solr didn t recognize the payload as a valid json update . Comment : I think text json will do . Comment : yeah I tried that . text json is also turning into an options also . Trying to tinker with the banana-int collection so it treats application text as json .",
"Question : Are there any other data-visualization tools for Elasticsearch other than Kibana Similar question for Solr and Banana . can someone please comment on the pros and cons of any such tools .. . Answer : Lucid work Release Updated Version For Solr couple of weeks Back called SILK . you can find out more about it here : https : github.com LucidWorks silk Comment : cool i ll look into this",
"Question : I m running Solr 4.2 and would like to try out LucidWorks Banana product . However when I navigate to the banana directory on my Solr server I receive a 404 error . I m following the instructions from their github site here https : github.com LucidWorks banana basically dropping the banana src directory into the my SOLR HOME solr-webapp webapp directory . I ve tried modifying the src config.js and src app dashboards default.json files as suggested by the readme file to change the localhost URL to the actual server name or the IP address . Both attempts still resulted in the 404 error . Has anyone had luck in getting banana working with Solr 4.2 Is it not supported on this version of Solr Hopefully I m missing something really simple . Thanks .. . Answer : I figured this out thanks to Ravi s suggestion that made me re-examine my configuration . Turns out my web app was actually running from C : Windows solr-webapp and not SOLR HOME solr-webapp webapp . I missed that my CWD was set to C : Windows even though everything else was pointing to SOLR HOME directories . Once I dropped the Banana folder into C : Windows solr-webapp webapp I was able to bring up the dashboard . Now I have other errors but that s a different set of issues . Hope this helps someone . TL DR - make sure your CWD is consistent with the destination of banana . Comment : Same Issue resolved by having a look in your main solr installation folder for the solr-webapp folder . No idea why but for me it ended up in Users myusername Documents solr-5.1.0 server solr-webapp webapp . When I added the banana folder inside here Users myusername Documents solr-5.1.0 server solr-webapp webapp banana everything worked perfectly . Hope it helps someone .",
"Question : I m running Solr 4.2 and would like to try out LucidWorks Banana product . However when I navigate to the banana directory on my Solr server I receive a 404 error . I m following the instructions from their github site here https : github.com LucidWorks banana basically dropping the banana src directory into the my SOLR HOME solr-webapp webapp directory . I ve tried modifying the src config.js and src app dashboards default.json files as suggested by the readme file to change the localhost URL to the actual server name or the IP address . Both attempts still resulted in the 404 error . Has anyone had luck in getting banana working with Solr 4.2 Is it not supported on this version of Solr Hopefully I m missing something really simple . Thanks .. . Answer : At LucidWorks we have only tested Banana on Solr 4.4 and above . So I am not sure whether all the functionality will work with Solr 4.2 . However I do know a couple of users on Solr 4.3 who might have made some small code changes . That said the webapp is just javascript html and should at least come up maybe with errors on the dashboard but not a 404 even without modifying config.js default.json . Just to confirm your process from https : github.com LucidWorks banana blob release QUICKSTART : .. . .. . If you dropped the src folder and not the banana folder then you will need to browse to http : solrserver.yourdomain.com : 8983 solr src index.html dashboard Comment : Thanks I figured out my issue and your answer made me re-examine my configuration . I m going to answer my own question but thank you for your help Greatly appreciated Comment : I m accessing banana from a remote machine so I had to update config.js and default.json...but I also want to point at something other than collection1 so I need to update those files anyway . Thanks",
"Question : I m currently working on a project on which I would like to index several data sources Oracle and HBase into Solr for full-text-search . Additionally I want to be able to visualize the data I index into Solr . I m still evaluating on whether to use Banana or Hue for this . Here comes the problem : As far as I understood the Solr docs I can only search on indexed but non-stored fields but not retrieve their original contents . I suppose this will make it quite difficult for the visualizers to produce some nice labeled graphs for me .. . .. . I would really like to avoid storing the fields as the actual data could grow quite big eventually and it is already stored inside another database . Is there some plugin another SearchHandler maybe which is able to retrieve the matching datafields from an external datasource to be able to deliver them together with the search results If not where would be the best place to implement such a functionaliy A Solr SearchHandler Banana Hue Thank you very much in advance for any suggestions : .. . Answer : IMHO the best way to implement such functionality is as a SearchHandler that returns Banana compatible response . You should index the fields that you need to be searchable without storing them in Solr . The search handler should retrieve corresponding rows from HBase according to search results which would enable labeled data in Banana . In a separate process you also have to maintain the index periodically when HBase data are added updated etc . The first use-case here https : wiki.apache.org solr FieldOptionsByUseCase is very similar to yours . Comment : That s exactly what I was afraid of Thank you very much for your answer",
"Question : null .. . Answer : Let s say I want to show in a Banana TimePicker Panel exactly the Locale time which is present into the Solr query results let s say times with GMT+2 . But the problem is that Banana is always showing the GMT+0 time solr result times minus 2 hours . So the only workaround I found was to change my Locale directly from the client-side that s sad.. . Does anyone has a solution by editing directly the file module.js Thank you by advance . Comment : Solr always store dates in ISO8601 format which is GMT+00 . In Histogram panel Time Correction setting specifies how time is calculated : browser displays values in local client time whereas utc keeps time as is i.e . value stored in Solr . Comment : Thank s a lot Aadel great it works really well .",
"Question : Im a newbie to angular and trying to understand how the redirect works . We are running a BANANA SOLR application and whenever the page is redirected to the pip.json file the application generates a single-page-application using the JSON content given in the file . banana index.html dashboard file pip.json .. . .. . Question : - .. . .. . I don t see any folder dashboard file within my application What does dashboard file mean after the sign. . .. . Answer : Everything after the symbol is Angular related . So in your example banana index.html will hit the server and respond with a request . The dashboard file pip.json will NOT hit the server and will be caught by Angular s routing .",
"Question : I have a pretty simple configuration : .. . .. . I tried using the 4 different project declarations above for bananaRdfProject . As I may edit this banana-rdf locally I want it to be recompiled each time I build my play project so that I do not have to publish the banana-rdf.. . But when I try to compile my main play project that uses banana-rdf it doesn t compile banana-rdf but tries to compile the main project : the compilation fails because banana-rdf classes are missing in the classpath . Isn t it supposed to compile banana-rdf before trying to compile my main project If not what is the point of depending on an external RootProject Comment : Related question stackoverflow.com q 20083564 1305344 http : stackoverflow.com q 20083564 1305344 Comment : thanks @JacekLaskowski .. . Answer : The RootProject file . . banana-rdf project reference just references the root project and what you really need is a reference to the banana-rdf subproject in the rdf subdirectory . The available subprojects are defined in https : github.com w3c banana-rdf blob master project build.scala . There are a few : .. . .. . To reference banana-rdf you should then use the following ProjectRef pointing at a right module subproject in a build configuration . Note ProjectRef as well as the name of the subproject - banana-rdf . With the ProjectRef you should be able to resolve any types defined in the banana-rdf subproject .",
"Question : This problem is a continuation of what I started here http : stackoverflow.com questions 12292934 functional-banana-traveller-game-intriguing-and-maddening . I m using the asteroid https : github.com HeinrichApfelmus reactive-banana blob master reactive-banana-wx src Asteroids.hs example as a model to work from . The problem I want to talk about here is the one of a timer . The asteroids example uses the event0 function to make one which relies on the Graphics.UI.WX library . I don t want to use WX for this project . Could someone tell me what event0 is doing generally so that I can figure out what I need to do to make a similar function .. . Answer : To bind reactive-banana to an external event-based framework be it WX or any other have a look at the Reactive.Banana.Frameworks module . The event0 function from reactive-banana-wx is just a thin wrapper over the fromAddHandler http : hackage.haskell.org packages archive reactive-banana latest doc html Reactive-Banana-Frameworks.html v 3afromAddHandler function from said module . The example code for reactive-banana demonstrates its use . Comment : Thanks for responding Heinrich . I have re-visited the slot machine example for instruction on how to use fromAddHandler . Comment : Also at first glance ActuatePause.hs looks instructive as well .",
"Question : I am using Banana the open-source port of Kibana 3 https : github.com LucidWorks banana to visualize data stored in SOLR . I have some problems in displaying a stacked histogram . I am not sure if that is possible . To make it simpler I would like to display the number of events stacked by a status . The equivalent SQL for one bar would be : SELECT count EventID DeliveryStatus FROM .. . GROUP BY DeliveryStatus .. . .. . There is an option available in the Histogram Settings for Mode : values but it does not display the count . It does something like : SELECT EventID DeliveryStatus FROM .. . GROUP BY DeliveryStatus .. . .. . enter image description here http : i.stack.imgur.com v3hD8.jpg .. . Answer : Yes this is possible but you need to check Stack option under Chart Settings section in panel configuration noticed it s unchecked in the screenshot above . Here s an example : .. . .. . enter image description here http : i.stack.imgur.com 5JdoG.png Comment : I agree it is possible to have the stack view but it does not display the count of events in my case . What does for example SG 8 mean in your case Comment : In the histogram above 8 is the count of SG events 2 is the count of US events etc.. . in the specified time-span . Y axis represents stacked values of Value Field . Comment : Thank you again for your reply I tried you solution . In fact what I would like is to represent on the Y axis the count in you case 8 and not the value of the Value Field . Do you think that is possible Comment : Welcome I see your point . I believe this is not possible in the current release but I think it will be added in a future release .",
"Question : I found the reactive-banana-wx and wonder if there is also a similiar package for gtk as reactive-banana should support gtk according to http : www.haskell.org haskellwiki Reactive-banana Comment : I think putting one together based on how reactive-banana-wx works should be pretty easy . You could do it and publish the first reactive-banana-gtk project yourself : . .. . Answer : The reactive-banana library can be used on top of any imperative event-based library via the AddHandler type . However it is often convenient to write a little glue code that is specific to the library you want to build on . This is what reactive-banana-wx does for the wx library . I have trouble installing GTK on my Mac that s why I haven t written a similar glue code package for the gtk library . However other people have used reactive-banana with gtk for instance John Lato in his jaek project https : github.com JohnLato jaek .",
"Question : Is there or does it make sense for it to be a reactive-banana over webkitgtk3 s DOM Originally I was looking for reactive-banana-gtk but then realized the widgets were to rigid and I saw no easy way to define new widgets from Haskell . DOM together with css on the other hand could satisfy my needs . Hope this justifies the use-case . What would I need to do to get reactive-banana working over Graphics.UI.Gtk.WebKit.DOM I haven t found anything on hackage github nor by googling it . .. . Answer : My library Threepenny-GUI https : wiki.haskell.org Threepenny-gui is a GUI library that uses the web browser as a display so you can use HTML+JavaScript from Haskell . This may be what you are looking for . It has FRP built-in as well . It doesn t depend on reactive-banana just yet but I expect to change this in a future release . Comment : I already took a look at that project but from how I understand it it produces a server to which you then connect a browser as your client . I don t want that . But I also realized I can use webkit to render my app but still need reactive-banana for gtk .",
"Question : null .. . Answer : I use the Banana interface great but there are not many discussion on it .. . .. . I have a project of create a menu over the Banana index.html . In this menu the user will be able to select the country he want for the log view that means the preconfigured dashboard he want to be redirected to . So I will create two dashboard . But where do I have to change the path I saw that I can change it in the services dashboard.js file . But where is the file using dashboard.js and which I will tell : when the user choose this option see dashboardOne.js or if this is this option choose dashboardTwo.js Or I will make an other system which will be : menu.html thanks to menu.js href this file which point on dashboardOne.js if the user choose this option and so on . Thanks",
"Question : I ve been working on a game that uses multiple audio tracks whose volumes are adjusted in realtime based on mouse motion . I m using SDl-Mixer for audio and Reactive-Banana for the game in general . The problem is that the tracks which have all been started at the beginning stop playing when the input-loop starts . The cause may be something else but I wonder if there s some strange interaction between SDL and Reactive-Banana that I don t understand . I ve been trying to puzzle this out for a while but it might just be something simple that I ve overlooked . Thanks in advance . Here s the code for a simple test : .. . .. . Edit : The problem doesn t seem to lie in Reactive Banana necessarily . Any sort of forever loop causes the audio to stop . Comment : Add imports also . Comment : What happens when you remove reactive-banana from the picture by replacing the last line with forever getMouseState print Comment : Same result . I m pretty sure reactive-banana isn t the problem at this point . .. . Answer : This might not be related to either SDL or reactive-banana . Issues like that are often fixed by compiling with the -threaded compiler flag . If this is a Cabal project add .. . .. . to your Executable section . Comment : Tried it didn t seem to help . In fact the audio didn t start at all . Does this have to do with the fact that the FFI spawns its own thread I m wondering if I need to explicitly fork a thread for SDL . I m really inexperienced with FFI in haskell so I might have the wrong idea . Comment : Do I understand correctly that if you use -threaded then the audio will not start at all but if you don t use -threaded then it will at least start If so then this is an indication that SDL doesn t work well with concurrency . Which is probably unsurprising . Comment : SDL is designed to work with concurrency it has a thread library in it but there are of course some rules . Most SDL calls can only be made from the thread where SDL.init was initially called but having other threads around certainly won t cause an issue : Comment : @Apfelmus : I m actually not using any concurrency at this point not to my knowledge but yeah that s what happened .",
"Question : I would like to use banana-rdf https : github.com w3c banana-rdf in my project ideally by defining it as a dependency in a build.scala using dependsOn : .. . .. . However banana-rdf is a multi-project so needs to be composed differently http : www.scala-sbt.org 0.12.3 docs Getting-Started Multi-Project.html . From what I can see these multi-project definitions only allow you to specify project locations as file paths and won t allow URIs . Question : Am I right in saying that I have to clone these multi-project GIT dependencies into my project and reference them as folders I rather like the idea of leaving all the GIT cloning up to SBT and having these cloned in some tmp SBT folder rather than cluttering up my project.. . Comment : Related question stackoverflow.com q 19832655 1305344 http : stackoverflow.com q 19832655 1305344 .. . Answer : I depend on Banana RDF subprojects all the time with ProjectRef like this : .. . .. . One especially nice part is that you can just tack a commit or branch name as a fragment-identifier on the URI and everything works exactly as you d expect . Comment : I tried this and it works well however when I update the dependency my main project doesn t seem to see the change . What did you do to keep things in sync",
"Question : I am testing reactive-banana 0.8.0.0 using one of the examples involving animation https : github.com HeinrichApfelmus reactive-banana blob master reactive-banana-wx src Animation.hs .. . .. . I get an error about the Paths module not found . The problem line is : .. . .. . and error is : .. . .. . Anyone know where to get or how to install this module I am using Haskell Platform 2013.2 and mingw32 from mingw.org on Windows XP 64 . Comment : It s a module generated provided by Cabal which can be used to e.g . retrieve data files from an installed Cabal package . AFAIK you can t just use it separately . Comment : Thanks . So should I make a cabal file for Animation.hs if I want to test it manually Any special requirement for the cabal file Comment : @TingL Presumably there is already a cabal file included in the package . Type cabal repl and import the file and you should be good to go . Comment : @TingL : No use the cabal file provided in reactive-banana-wx . You can use cabal repl as indicated by Daniel Wagner . Alternatively you could set the buildExamples flag cabal configure -f buildExamples and build the package cabal build which will give you an executable called Animation somewhere in the dist directory . Comment : I see . Thanks . I tried that and encountered a segfault in wxc . stackoverflow.com questions 23367950 wxc-segfault-in-wxhaskell http : stackoverflow.com questions 23367950 wxc-segfault-in-wxhaskell . But it s a different issue . .. . Answer : This question may be outdated by now but I just happened to end up at this page somehow . As of this writing the module appears to be included https : github.com HeinrichApfelmus reactive-banana blob 565d190fddd17a7224dd3609852716b989bfa885 reactive-banana-wx src Paths.hs in the package itself under the src directory . This doesn t appear to be exposed in the cabal file https : github.com HeinrichApfelmus reactive-banana blob 565d190fddd17a7224dd3609852716b989bfa885 reactive-banana-wx reactive-banana-wx.cabal so it s not part of the package s public interface . Instead it is only listed under other-modules for the Animation executable . To answer the question of where to get or how to install this module - just use the cabal file included in the package ."
]
} | [
"yes-answer-long",
"yes-answer-short"
] | visualization | UNK_RELATION |
centos@linux@109 | centos -- centos is a community-supported mainly free software operating-system based on red hat enterprise @placeholder rhel . | {
"confidence": [
55.731788635253906,
52.30218505859375,
51.03160858154297,
51.03160858154297,
50.720497131347656,
49.541473388671875,
46.09065246582031,
45.30166244506836,
44.35603332519531,
44.05916976928711,
43.13349914550781,
42.68807601928711,
41.43241500854492,
40.6787109375,
39.43521499633789,
39.08097457885742,
38.8076057434082,
38.64622116088867,
38.64622116088867,
37.70059585571289,
36.90500259399414,
36.307456970214844,
36.11600875854492,
35.89300537109375,
35.566009521484375,
35.43645095825195,
35.361942291259766,
34.6773681640625,
34.660186767578125,
34.57295227050781,
34.48477554321289,
34.446937561035156,
33.85251998901367,
33.81869888305664,
33.76639175415039,
33.742218017578125,
33.62732696533203,
33.23361587524414,
33.23361587524414,
33.14973068237305,
32.87038040161133,
32.785945892333984,
32.785945892333984,
32.785945892333984,
32.785945892333984,
32.785945892333984,
32.49739074707031,
32.49739074707031,
32.38199234008789,
32.33369064331055,
31.989036560058594,
31.966917037963867,
31.966917037963867,
31.966917037963867,
31.966917037963867,
31.966917037963867,
31.966917037963867,
31.966917037963867,
31.966917037963867,
31.763925552368164,
31.760576248168945,
31.5517635345459,
31.509958267211914,
31.509958267211914,
31.461088180541992,
31.409656524658203,
31.27176856994629,
31.177927017211914,
31.177927017211914,
31.177927017211914,
31.177927017211914,
31.177927017211914,
31.177927017211914,
31.009958267211914,
30.95163917541504,
30.799732208251953,
30.799732208251953,
30.799732208251953,
30.799732208251953,
30.783702850341797,
30.745346069335938,
30.62066650390625,
30.62066650390625,
30.482778549194336,
30.482778549194336,
30.37398910522461,
30.320653915405273,
30.320653915405273,
30.320653915405273,
30.320653915405273,
30.320653915405273,
30.320653915405273,
30.320653915405273,
30.320653915405273,
30.320653915405273,
30.320653915405273,
30.320653915405273,
30.320653915405273,
30.320653915405273
],
"content": [
": .. . .. . Fedora or newer Red Hat CentOS : .. . .. . Older RHEL CentOS : .. . .. . Even older RHEL CentOS : .. . .. . Debian or Ubuntu : .. . .. . should grab you the first main library you need .",
"Ubuntu is based upon Debian and CentOS is based upon RHEL .",
"The point of CentOS RHEL is long term support .",
"CollabNet provides an RHEL CentOS RPM that includes JavaHL .",
"To set up the repository install the webtatic-release RPM : .. . .. . Webtatic EL6 for CentOS RHEL 6 : .. . .. . Webtatic EL5.1 for CentOS RHEL 5 : .. . .. . Webtatic 5 for CentOS RHEL 5 : .. . .. . and repeat the search reinstall process again .",
"The systemd shipping with RHEL Centos 7 is based on version 208 .",
"http : tecadmin.net install-subversion-1-8-on-centos-rhel",
"This web UI will be used on CentOS 6 which is derived from RHEL 6 .",
"Is it not possible with CentOS RHEL Amazon would I need another distro",
"CentOS 6 and RHEL 6 are no longer supported and the last build for them is docker 1.7.1 .",
"I am using centos Operating System .",
"You can follow this tecmint.com how-to-enable-epel-repository-for-rhel-centos-6-5 http : www.tecmint.com how-to-enable-epel-repository-for-rhel-centos-6-5 this is surely a mirror list issue .",
"Try following the instructions here : http : www.cyberciti.biz tips rhel-centos-fedora-apache2-fastcgi-php-configuration.html .. . .. . I ve successfully used these instructions on Centos .",
"You don t have to worry about it on CentOS 5.4+ and some other Red Hat-based systems .",
"With RHEL 7 CentOS 7 firewalld https : fedoraproject.org wiki FirewallD was introduced to manage iptables .",
"Here are my fontconfig files : .. . .. . My system is a CentOS system so I imagine it is probably either ferencing the default fontconfig.properties.src file or the fontconfig.Fedora.properties.src file since CentOS and Fedora are both derived from Red Hat .",
"Is lz4 supported for CentOS",
"It s been years since I had to deal with yum CentOS RHEL but it looks like there s not actually a vim package .",
"I followed from this link http : www.tecmint.com how-to-enable-epel-repository-for-rhel-centos-6-5 .. . .. . I ju",
"Your link ovirt.org release 4.0.0 http : www.ovirt.org release 4.0.0 is about RHEL 7 CentOS 7 .",
"The system Centos 6.7 x64 .",
"My operating-system centos 6.7 latest uses the older GLIBC 2.12 .",
"Host system : CentOS 6.5",
"I am testing some software on a Centos 6 system running in Parallels 10 based on my Mac - i.e .",
"Environment : CentOS 6.7 as host system OpenVZ container with CentOS 6.7 too .",
"CentOS 5 is based on Fedora 6 .",
"PHP Version 5.3.3 on CentOS x86-64 RHEL 6 .. . .. . Apparently my PHP installation was configured to exclude Mysqli and disable PDO for some reason .",
"It is Red Hat Enterprise Linux Server release 6.7 .",
"Look at the PostGIS installation http : postgis.net install for Red Hat Centos Scientific Linux for example .",
"This manual contains only this notice : .. . .. . If you are using CentOS or Redhat Csoke Arpad created RPMs for these distributions PHP Mongo http : csaapi.hu RHEL x86-64 php mongo .",
"To list Old MySql .. . .. . To remove Old MySql .. . .. . Remi Dependency on CentOS 6 and Red Hat RHEL 6 .. . .. . Install MySQL server .. . .. . To list New MySql .. . .. . start MySql server .. . .. . etc init.d mysqld start use restart after update .. . .. . OR .. . .. . service mysqld start use restart after update .. . .. . Last .. . .. . Now my MySql version is 5.5.32 .. . .. . Ref : .. . .. . http : www.webtatic.com packages mysql55 .. . .. . http : www.if-not-true-then-false.com 2010 install-mysql-on-fedora-centos-red-hat-rhel .. . .. . Hope it help some one .. . .. . NOTE : Adding comments from @pim in comments",
"from Ovirt s website : .. . .. . oVirt 4.0 is intended for production use and is available for the following platforms : .. . .. . Fedora 23 .. . Red Hat Enterprise Linux 7.2 or later .. . CentOS 7.2 or later .. . Scientific Linux 7.2 or later .. . .. . So Centos 6.8 isn t supported officially so even if you get it running it will be a pain to update .",
"The rippled rpm package is currently only available for CentOS RHEL 7 https : ripple.com build rippled-setup system-requirements and Ubuntu 15+ using alien .. . .. . You could try installing with : .. . .. . but YMMV .",
"maybe this tutorial https : www.digitalocean.com community tutorials how-to-send-e-mail-alerts-on-a-centos-vps-for-system-monitoring help",
"Which is the lowest version of centos is supported with php 5.6.12 as i need to update server and i am having centos 5.11 .",
"I m not sure if this is relevant in CentOS 6 but in my system with CentOS 5 I had to do this .",
"I ve seen this in various peoples salt --versions-report for unrelated issues but I can t figure out how to achieve it myself on CentOS RHEL .",
"Tested on CentOS 6.4 I confirm it is the centos way .",
"CentOS https : github.com takase1024 chefdk-centos",
"Totally worked for RHEL",
"Also I am not able to find the lz4 rpm packages for CentOS but available for other rpm based Operating Systems .",
"While our database itself is using about 12gb of RAM the operating-system CentOS 6.4 is caching around 25gb additionally .",
"I have a OpenVZ VPS the operating-system is CentOS 6 I try to install Docker but Docker start error .",
".. . .. . I m using Python 2.7.5 on a CentOS Linux release 7.2.1511 Core operating-system",
"Traceback output is : http : pastebin.com 4uzbWvR0 .. . .. . My operating-system is CentOS 6.3 and all the installations is automated and managed by Puppet .",
"The response i got from server admin team is that php version 5.6.12 rpm is not available for Centos 5.11 operating-system .",
"Two are based on Ubuntu 16.04 and two on CentOS 7 .",
"And I thought that CentOS 5 was based on EL5 .",
"CentOS and Ubuntu are very very different system .",
"The URL is : dev.centos.org centos 5 CentOS-Testing.repo http : dev.centos.org centos 5 CentOS-Testing.repo which you can as root cd etc yum.repos.d wget dev.centos.org centos 5 CentOS-Testing.repo http : dev.centos.org centos 5 CentOS-Testing.repo",
"CentOS RHEL 7 has changed the firewall to use firewall-cmd which has a notion of zones which is like a Windows version of Public Home and Private networks .",
"using CentOS .",
"will this work on centOs",
"Running CentOS .",
"on Centos 6.3 :",
".. . .. . Centos 5 .",
"Version of Centos",
"This is on Centos v4 .",
"This is for CentOS not for PHP .",
"My system is CentOS 7 and I am using packages from the centos-sclo-rh repo .",
"for libSM.so.6 missing you would use libSM.so.6 and run : .. . .. . Fedora Red Hat Enterprise CentOS : .. . .. . or on older RHEL CentOS : .. . .. . or on Debian Ubuntu : .. . .. . first install and download the database for apt-file .. . .. . then search with .. . .. . Note the prefix path usr lib in the usual case rarely some libraries still live under lib for historical reasons On typical 64-bit systems 32-bit libraries live in usr lib and 64-bit libraries live in usr lib64 .",
"@StevenLu : Centos 7 is based off Fedora 19 .",
"It worked for me on CentOS 7 .",
"it s a centos 6.6 box .",
"I use postfix dovecot and my system is CentOS 6.7 .",
"RHEL 7 uses firewalld instad of iptables",
"Or you might try to report directly to CentOS if it is related only to CentOS .",
"ubuntu centOS",
"Helped on CentOS",
"But not suitable for centOS .",
"This was me on CentOS .",
"That includes CentOS .",
"And CentOS 7 .",
"CentOS 5 is rather old CentOS 7 was released last year CentOS 5 gets only fixes .",
"IIRC CentOS 6 using a no-longer-supported version of Python 2.6.6 .",
"If you are using RHEL CentOS 7 the OP was not but I thought I d share the solution for my case then you will need to use firewalld instead of the iptables service mentioned in other answers .",
"RHEL and CentOS 7 use firewall-cmd instead of iptables https : access.redhat.com documentation en-US Red Hat Enterprise Linux 7 html Migration Planning Guide sect-Red Hat Enterprise Linux-Migration Planning Guide-Security and Access Control.html .",
"Solved it by installing libmemcached-last and libmemcached-last-devel from EPEL http : www.rackspace.com knowledge center article installing-rhel-epel-repo-on-centos-5x-or-6x repo .",
"I followed these steps - .. . .. . Taken from - http : www.tecmint.com install-mysql-on-rhel-centos-6-5-fedora-17-12 .. . .. . By doing above i uninstalled MySQL 5.0 .",
"Please cleanup the current salt repo in your OS and refer to this setup repo.saltstack.com rhel http : repo.saltstack.com rhel",
"Repositories in CentOS are collections of software that the server administrator can easily install .",
"On RHEL 6 : php-process is directly available .",
"Indeed I ve dealt with this when building rrdtool on RHEL .",
"Also I should test this for Centos 6.6 and Centos 7 .",
"we have many Centos clients Centos 5-7 .",
"CentOS is RPM-based and half the RPM and YUM tools are written in Python .",
"I m using CentOS 5 .",
"OS : Centos 6.x",
"Tested on CentOS 6.5 .",
"I am on a CentOS distribution .",
"OpenVAS is installed on CentOS machine .",
"CentOS 6 on Fedora 12 .",
"CentOS 6.8 - 64",
"My server is centos - apache",
"Centos 6.5 Final .",
"Under CentOS this can be done with :",
"But in centos it s not working. .",
"Here s the relevant but of csvcut : .. . .. . This is on CentOS .",
"Is it possible to run sips on CentOS"
]
} | {
"confidence": [
60.58800506591797,
58.361629486083984,
56.340431213378906,
53.620140075683594,
52.937496185302734,
49.236236572265625,
49.11683654785156,
48.3445930480957,
47.82441711425781,
47.419921875,
47.258758544921875,
46.79222869873047,
46.63238525390625,
46.63238525390625,
46.63238525390625,
46.63238525390625,
46.63238525390625,
46.61418533325195,
46.517940521240234,
46.20115280151367
],
"content": [
"Question : I m now deploying on CentOS 6.5 and I m now starting to use docker . So I follow the instructions on : https : docs.docker.com engine installation centos .. . .. . No matter which method I follow to install I get version of 1.7.1 . But now I run the command in the documentation : .. . .. . With failure docker : network is not a docker command . . And I finally know that the network action is first introduced in 1.9 . So is there any way to install docker 1.9 in centos6 .. . Answer : CentOS 6 and RHEL 6 are no longer supported and the last build for them is docker 1.7.1 . That page of the documentation https : docs.docker.com engine installation centos also mentions .. . .. . Docker runs on CentOS 7.X Docker requires a 64-bit installation regardless of your CentOS version . Also your kernel must be 3.10 at minimum which CentOS 7 runs . The kernel that those distro s are running on 2.6.x is over 13 years old and although newer features are back-ported to them by Red Hat they lack certain options that are required by Docker and have proven to be unstable and unsuitable for production . I encourage you to upgrade upgrade to CentOS 7.x if you want to keep using Docker . Comment : Thank you master . I will re-consider the situation seriously .",
"Question : I tried to update MySQL from 5.1 to 5.5 in CentOS 6.2 . The following is the process I did : .. . .. . When I tried the 4th step I got the following output : .. . .. . How to fix it .. . Answer : To list Old MySql .. . .. . To remove Old MySql .. . .. . Remi Dependency on CentOS 6 and Red Hat RHEL 6 .. . .. . Install MySQL server .. . .. . To list New MySql .. . .. . start MySql server .. . .. . etc init.d mysqld start use restart after update .. . .. . OR .. . .. . service mysqld start use restart after update .. . .. . Last .. . .. . Now my MySql version is 5.5.32 .. . .. . Ref : .. . .. . http : www.webtatic.com packages mysql55 .. . .. . http : www.if-not-true-then-false.com 2010 install-mysql-on-fedora-centos-red-hat-rhel .. . .. . Hope it help some one .. . .. . NOTE : Adding comments from @pim in comments Comment : I m getting the same problem as the OP . Instead of upgrading mysql-libs to the latest version it believes mysql55-libs and mysql-libs are unrelated and conflict with one another . If you remove the previous versions of MySQL first will that zap your datadir ibdata1 etc my.cnf logs etc . and or directory structures in general Comment : I forgot for what server I did this.. . You should take the backup of databases you have also log you have. . I dont think you will have them after you upgrade.. . Comment : I am going to try these steps http : blog.iphoting.com blog 2012 06 19 upgrading-to-mysql-5-dot-5-on-centos-6 tonight . I will see if yum s replace combined with --replace-with will let me skip yum remove . Comment : Ok. . if it succeed please add your answer to this question. . that will sure help others.. . Comment : Woked like a charm .",
"Question : I have just installed CentOS 6 64bit version I m trying to install a 32-bit application on a 64-bit machine and got this error : .. . .. . lib ld-linux.so.2 : bad ELF interpreter : No such file or directory .. . .. . I m new to linux . How do I resolve this .. . Answer : You re on a 64-bit system and don t have 32-bit library support installed . To install baseline support for 32-bit executables .. . .. . Most desktop Linux systems in the Fedora Red Hat family : .. . .. . Possibly some desktop Debian Ubuntu systems : .. . .. . Fedora or newer Red Hat CentOS : .. . .. . Older RHEL CentOS : .. . .. . Even older RHEL CentOS : .. . .. . Debian or Ubuntu : .. . .. . should grab you the first main library you need . Warning .. . .. . Incidentially this either implies that your RPM resp . DPkg DSelect database is corrupted or that the application you re trying to run wasn t installed through the package manager . If you re new to Linux you probably want to avoid using software from sources other than your package manager whenever possible.. . .. . .. . If you don t use sudo in your set-up .. . .. . Type .. . .. . every time you see sudo eg .. . .. . Once you have that you ll probably need support libs .. . .. . Anyone needing to install glibc.i686 or glibc.i386 will probably run into other library dependencies as well . To identify a package providing an arbitrary library you can use .. . .. . if you re not sure it s in usr bin you can also fall back on .. . .. . Look over the output for missing libraries and for each one take its name e.g . for libSM.so.6 missing you would use libSM.so.6 and run : .. . .. . Fedora Red Hat Enterprise CentOS : .. . .. . or on older RHEL CentOS : .. . .. . or on Debian Ubuntu : .. . .. . first install and download the database for apt-file .. . .. . then search with .. . .. . Note the prefix path usr lib in the usual case rarely some libraries still live under lib for historical reasons On typical 64-bit systems 32-bit libraries live in usr lib and 64-bit libraries live in usr lib64 . Debian Ubuntu organise multi-architecture libraries differently . This should give you a package name e.g . : .. . .. . You can then pkcon install libSM.i686 or specify the version fully : sudo dnf install ibSM-1.2.0-2.fc15.i686 to grab the requisite library . Using pkcon in a GUI or sudo dnf yum apt-get as appropriate .. . .. . Some libraries will have an epoch designator before their name this can be omitted it s an artefact of the way that the underlying RPM libraries handle version numbers e.g . Here the 2 : can be omitted just pkcon install libpng.i686 or sudo dnf install libpng-1.2.46-1.fc16.i686 . It vaguely implies something like : at some point the version number of the libpng package rolled backwards and the epoch had to be incremented to make sure the newer version would be considered newer during updates . Or something similar happened . Twice . Updated to clarify and cover the various package manager options more fully March 2016 Comment : iv installed that now im getting libpam.so.0 : cannot open shared object file Comment : If your app doesn t list its required libraries you ll have to hunt them down and install them yourself if you re lucky they ll be available through yum . You can use ldd binary to list libraries . For each library that is listed that doesn t give a readout like lib ld-linux.so.2 0x4f8d9000 or libc.so.6 lib libc.so.6 0x4f8fa000 try : sudo yum provides lib libWHATEVER.so -- to find the package name s and then sudo yum install PACKAGE.i686 to install it . Making sure to grab the i386 or i686 not x86-64 as it would install by default on your system Comment : This answer is a Godsend when you have 32-bit software that you must migrate to your 64-bit system . Comment : This was very helpful for installing Oracle s jre 1.7 on Fedora 20 . In addition to glibc.i686 I had to install libgcc.i686 . Comment : +1 very helpful Note that for me ldd on the binary in question resulted in not a shared executable . Installing 32-bit glibc was the only way to make forwards progress after installing 32-bit glibc ldd worked and showed dependent libraries . Thanks again",
"Question : I installed the Ripple rpm repo https : ripple.com following documentation https : ripple.com build rippled-setup installation-on-centosred-hat-with-yum .. . .. . step 1 .. . .. . sudo rpm -Uvh https : mirrors.ripple.com ripple-repo-el7.rpm .. . .. . Then step2 I run command : .. . .. . but I get the error : .. . .. . Does anyone know how to resolve it .. . Answer : That error message occurs when attempting to install the rippled package on an unsupported environment . The rippled rpm package is currently only available for CentOS RHEL 7 https : ripple.com build rippled-setup system-requirements and Ubuntu 15+ using alien .. . .. . You could try installing with : .. . .. . but YMMV .",
"Question : Trying to upgrade using a command yum update ovirt-engine-setup detailed link is here . http : www.ovirt.org release 4.0.0 .. . .. . Error : Package : ovirt-engine-lib-4.0.1.1-1.el7.centos.noarch ovirt-4.0 Requires : python abi 2.7 Installed : python-2.6.6-64.el6.x86 64 @base releasever python abi 2.6 Error : Package : ovirt-engine-dwh-4.0.1-1.el7.centos.noarch ovirt-4.0 Requires : apache-commons-collections Error : Package : otopi-java-1.5.1-1.el7.centos.noarch ovirt-4.0 Requires : apache-commons-logging Error : Package : otopi-1.5.1-1.el7.centos.noarch ovirt-4.0 Requires : python abi 2.7 Installed : python-2.6.6-64.el6.x86 64 @base releasever python abi 2.6 You could try using --skip-broken to work around the problem You could try running : rpm -Va --nofiles --nodigest .. . .. . I have both python-2.6 and 2.7 and as a default it is linked python2.7 using alias . But still there is a error saying requires python abi 2.7 .. . .. . Tried all these possible SO https : stackoverflow.com search q requires 20python abi 20 3D 202.7 questions . But problems are not resolved . Comment : Your link ovirt.org release 4.0.0 http : www.ovirt.org release 4.0.0 is about RHEL 7 CentOS 7 . And Fedora . .. . Note : requires python abi 2.7 means no rpm package python-2.7 available or installed . I.e . the rpm package base has only information about rpm packages . .. . Answer : from Ovirt s website : .. . .. . oVirt 4.0 is intended for production use and is available for the following platforms : .. . .. . Fedora 23 .. . Red Hat Enterprise Linux 7.2 or later .. . CentOS 7.2 or later .. . Scientific Linux 7.2 or later .. . .. . So Centos 6.8 isn t supported officially so even if you get it running it will be a pain to update . Ideally you can bring up a new VM on 7.2 and migrate the engine to the new host .",
"Question : I am trying to debug a font-related issue in a third-party Java application . Specifically ChemAxon JChem . I ve been consulting this guide : http : java.sun.com j2se 1.5.0 docs guide intl fontconfig.html .. . .. . Part of the problem is that I m not sure which fontconfig.properties.src file my Java setup is currently referencing . Here are my fontconfig files : .. . .. . My system is a CentOS system so I imagine it is probably either ferencing the default fontconfig.properties.src file or the fontconfig.Fedora.properties.src file since CentOS and Fedora are both derived from Red Hat . So can I definitively tell which fontconfig file my system is using Thanks .. . .. . -John David .. . Answer : You can use the above options but as of JDK 7 and 8 there is a issue with the JDK fontconfig file are not picked up for any Linux operating-system . Its defaulting to libfontconfig that is present in the OS . Here is the defect URL http : bugs.java.com view bug.do bug id 7175487",
"Question : CentOS release 6.5 Final . Python 2.7.5 using Virtualenv . @development-tools installed . This is the output from trying to install pylibmc : .. . .. . Can anyone help .. . Answer : I had similar problem today on my CentOS box . Solved it by installing libmemcached-last and libmemcached-last-devel from EPEL http : www.rackspace.com knowledge center article installing-rhel-epel-repo-on-centos-5x-or-6x repo . Comment : There is libmemcached-last in EPEL at least for EL6 which the question is about . Which release are you using",
"Question : I installed CentOS 7 with minimal configuration os + dev tools . I am trying to open 80 port for httpd service but something wrong with my iptables service .. . what s wrong with it What am I doing wrong Comment : try this etc init.d iptables save Comment : I got the answer here http : serverfault.com questions 470287 how-to-enable-iptables-instead-of-firewalld-services-on-rhel-7-and-fedora-18 . RHEL 7 uses firewalld instad of iptables .. . Answer : If you do so and you re using fail2ban you will need to enable the proper filters actions : .. . .. . Put the following lines in etc fail2ban jail.d sshd.local .. . .. . Enable and start fail2ban : .. . .. . Reference : http : blog.iopsl.com fail2ban-on-centos-7-to-protect-ssh-part-ii",
"Question : I start the instalation now i receive a error for file dependencies .. . .. . see : .. . .. . How to install a libmysqlclient.so.15 dependence on centos Thanks . Comment : yum install mysql Comment : could you build this application from source Comment : hi is a server with cpanel and I already have mysql . I need to know how to fix these dependencies .. . Any other tips Comment : What distribution is that .. . Answer : You can try to find the right package by the following command : .. . .. . then : .. . .. . You may double check the package name by doing yum search package name . If not found you may try to fix your yum repositories e.g . by configuring Webtatic Yum http : webtatic.com projects yum-repository Repository . To set up the repository install the webtatic-release RPM : .. . .. . Webtatic EL6 for CentOS RHEL 6 : .. . .. . Webtatic EL5.1 for CentOS RHEL 5 : .. . .. . Webtatic 5 for CentOS RHEL 5 : .. . .. . and repeat the search reinstall process again . .. . .. . If you re running cPanel you may try to run the following script : .. . .. . If won t help remove the broken package e.g . rpm -e cpanel-mysql-5.0.96-1.cp1136 and run the check command again . If still doesn t work another thing could be to recompile your Apache only if your LAMP is broken by : .. . .. . .. . .. . Related .. . .. . CentOS .. . .. . libmysqlclient.so.15 : cannot open shared object file : No such file or directory http : stackoverflow.com questions 10529401 libmysqlclient-so-15-cannot-open-shared-object-file-no-such-file-or-directory 22282382 .. . Linux - Dependency libmysqlclient.so.15 not found http : stackoverflow.com questions 8889603 linux-dependency-libmysqlclient-so-15-not-found 11031075 .. . .. . Ubuntu .. . .. . mysql2.so : libmysqlclient r.so.15 : cannot open shared object file : No such file or directory http : stackoverflow.com questions 8456300 mysql2-so-libmysqlclient-r-so-15-cannot-open-shared-object-file-no-such-file",
"Question : I have server with installed CentOS 6.2 with nginx and php-fpm from remi repos .. . .. . httpd also installed but when I try to install mod-fastcgi yum sais that no pachage availiable .. . .. . How I can install mod-fastcgi Googling different sites says that command .. . .. . must install this package . But yum sais : .. . Answer : You should be able to do an install from source . Try following the instructions here : http : www.cyberciti.biz tips rhel-centos-fedora-apache2-fastcgi-php-configuration.html .. . .. . I ve successfully used these instructions on Centos . Comment : thanks....I will try this",
"Question : I m trying to compile svg2pdf on centos . I think I ve managed to get the required dependencies installed using yum : .. . .. . The Makefile contains : .. . .. . After typing make the first couple of lines of output are : .. . .. . There is no librsvg-2.0.pc on this system but there is when I installed this using macports on my macbookpro . How should I get this package linked Should I change the Makefile and if so to what Should I generate the .pc files and if so how Or is there another way to resolve this Or has anyone been successful at installing svg2pdf on centos and if so how did you manage it I don t have much experience on linux so I might be missing something obvious . .. . Answer : I think CentOS uses -devel packages . Have you installed librsvg2-devel and cairo-devel Comment : Indeed I ve dealt with this when building rrdtool on RHEL . Dependency hell at its finest .",
"Question : I tried to install lz4 libraries in CentOS but failing with the following error . What is the right way to setup the liblz4.so Also I am not able to find the lz4 rpm packages for CentOS but available for other rpm based Operating Systems . Is lz4 supported for CentOS .. . Answer : Packages for CentOS for lz4 appear to be available in EPEL http : fedoraproject.org wiki EPEL . Comment : I could find the required rpm and able to install it through above info . But how to make yum install it automatically . This is required for a naive user . Comment : You add the EPEL repo to your system and yum will work just fine . Information about doing that is on the page I linked .",
"Question : I installed CentOS 7 with minimal configuration os + dev tools . I am trying to open 80 port for httpd service but something wrong with my iptables service .. . what s wrong with it What am I doing wrong Comment : try this etc init.d iptables save Comment : I got the answer here http : serverfault.com questions 470287 how-to-enable-iptables-instead-of-firewalld-services-on-rhel-7-and-fedora-18 . RHEL 7 uses firewalld instad of iptables .. . Answer : I had the problem that rebooting wouldn t start iptables . This fixed it :",
"Question : I installed CentOS 7 with minimal configuration os + dev tools . I am trying to open 80 port for httpd service but something wrong with my iptables service .. . what s wrong with it What am I doing wrong Comment : try this etc init.d iptables save Comment : I got the answer here http : serverfault.com questions 470287 how-to-enable-iptables-instead-of-firewalld-services-on-rhel-7-and-fedora-18 . RHEL 7 uses firewalld instad of iptables .. . Answer : Try the following command iptables-save .",
"Question : I installed CentOS 7 with minimal configuration os + dev tools . I am trying to open 80 port for httpd service but something wrong with my iptables service .. . what s wrong with it What am I doing wrong Comment : try this etc init.d iptables save Comment : I got the answer here http : serverfault.com questions 470287 how-to-enable-iptables-instead-of-firewalld-services-on-rhel-7-and-fedora-18 . RHEL 7 uses firewalld instad of iptables .. . Answer : I modified the etc sysconfig ip6tables-config file changing : .. . .. . To : .. . .. . And this : .. . .. . To : .. . .. . This seemed to save the changes I made using the iptables commands through a reboot .",
"Question : I installed CentOS 7 with minimal configuration os + dev tools . I am trying to open 80 port for httpd service but something wrong with my iptables service .. . what s wrong with it What am I doing wrong Comment : try this etc init.d iptables save Comment : I got the answer here http : serverfault.com questions 470287 how-to-enable-iptables-instead-of-firewalld-services-on-rhel-7-and-fedora-18 . RHEL 7 uses firewalld instad of iptables .. . Answer : Put the IPtables configuration in the traditional file and it will be loaded after boot : .. . .. . etc sysconfig iptables",
"Question : I installed CentOS 7 with minimal configuration os + dev tools . I am trying to open 80 port for httpd service but something wrong with my iptables service .. . what s wrong with it What am I doing wrong Comment : try this etc init.d iptables save Comment : I got the answer here http : serverfault.com questions 470287 how-to-enable-iptables-instead-of-firewalld-services-on-rhel-7-and-fedora-18 . RHEL 7 uses firewalld instad of iptables .. . Answer : And to add you should also be able to do the same for ip6tables after running the systemctl mask firewalld command :",
"Question : I have a Red Had Enterprise Linux 5 and a CentOS 5 box both of which I am trying to configure to automatically connect to a synergy server on startup . I have followed the guide at http : synergy2.sourceforge.net autostart.html and configured them the same way I configured previous Ubuntu 7.10 boxes and this only seems to get me half way there . Currently synergy connects at the login screen but once I login it doesn t come back up . I added the following lines to etc gdm Init PostLogin PreSession Default : .. . .. . All files are owned by root : root with 755 permissions I m just not sure what I m missing here . .. . Answer : I use the following on RHEL 5.4 added to etc gdm Init PostLogin PreSession Default .. . .. . In all cases add the script after any existing script but before the exit 0 . This works for me . I think it should work as long as you use the Default X Session if any custom Sessions are used you will probably have to move the script to the appropriate place .",
"Question : I installed CentOS 7 with minimal configuration os + dev tools . I am trying to open 80 port for httpd service but something wrong with my iptables service .. . what s wrong with it What am I doing wrong Comment : try this etc init.d iptables save Comment : I got the answer here http : serverfault.com questions 470287 how-to-enable-iptables-instead-of-firewalld-services-on-rhel-7-and-fedora-18 . RHEL 7 uses firewalld instad of iptables .. . Answer : With RHEL 7 CentOS 7 firewalld https : fedoraproject.org wiki FirewallD was introduced to manage iptables . IMHO firewalld is more suited for workstations than for server environments . It is possible to go back to a more classic iptables setup . First stop and mask the firewalld service : .. . .. . Then install the iptables-services package : .. . .. . Enable the service at boot-time : .. . .. . Managing the service .. . .. . Saving your firewall rules can be done as follows : .. . .. . or Comment : It s not saving the iptables . Rebooting the server loses all changes . Comment : On my system the iptables are saved correctly . Have you made sure the iptables service is started at boot You can do this by running systemctl enable iptables Comment : You may also have firewalld running which will add additional iptables rules to the list every time you reboot the system . To stop firewalld run systemctl mask firewalld Comment : Added the info about masking firewalld to the answer as @TroodoN-Mike suggested Comment : @Sgaduuw Can you please elaborate on why you think fitewalld is not less suitable for servers",
"Question : null .. . Answer : Have attempted to test a bunch of custom Salt grains modules utilizing python boto modules for AWS deployments but have continuously run into Python errors . Generally being unable to import modules correctly etc when running because Salt is defaulting to Python 2.6 . Even though my install has both Python 2.6 2.7 the Salt master minion default to 2.6 . Generally the modules I ve tested so far run manually fine under 2.7.. . Wanting to know how I can configure a Salt-Master and Minions to default to Python 2.7 . I ve seen this in various peoples salt --versions-report for unrelated issues but I can t figure out how to achieve it myself on CentOS RHEL . Seems even if I have an OS with a base of Python2.7 soon as Salt-Master is installed via yum there comes Python 2.6... . I ve tested on CentOS 6.x Amazon Linux which should be similar which are the main OS es I use . How do I enforce Python 2.7 Is it not possible with CentOS RHEL Amazon would I need another distro Comment : Did you setup the correct repo for your salt . Please cleanup the current salt repo in your OS and refer to this setup repo.saltstack.com rhel http : repo.saltstack.com rhel Comment : Not sure if it was being stuck on Salt 15.5.2 or general install issues with python . It was an older installation from a time when Salt was basically broken on AmazonLinux and I d employed a bunch of workarounds. . Fresh install from latest correct repo did the trick though custom modules no longer crying over python thanks Comment : Perhaps I should push as best practice to saltstack documentation about the repo issues -"
]
} | [
"yes-answer-long",
"yes-answer-short"
] | linux | UNK_RELATION |
activepivot@transactional@133 | activepivot -- activepivot from quartet fs is an in-memory analytics solution that provides real-time olap capabilities through its @placeholder engine and multi-threaded processing . | {
"confidence": [
58.5275993347168,
55.811065673828125,
55.4233512878418,
53.77271270751953,
49.4068489074707,
47.631744384765625,
46.427955627441406,
45.99747085571289,
45.12578582763672,
45.061580657958984,
45.061580657958984,
45.061580657958984,
44.826812744140625,
44.75468826293945,
44.36255645751953,
44.12383270263672,
43.56683349609375,
43.56683349609375,
42.80198669433594,
42.64665985107422,
42.49641799926758,
42.49641799926758,
42.313209533691406,
42.13288116455078,
41.95000457763672,
41.68778991699219,
41.68778991699219,
41.68778991699219,
40.780517578125,
40.780517578125,
40.34992599487305,
39.57481002807617,
39.57481002807617,
39.12262725830078,
39.12262725830078,
39.12262725830078,
38.85416030883789,
38.411529541015625,
38.39582061767578,
38.2103385925293,
37.4067268371582,
37.4067268371582,
37.4067268371582,
37.4067268371582,
37.4067268371582,
37.19117736816406,
37.143306732177734,
37.143306732177734,
37.143306732177734,
37.143306732177734,
37.143306732177734,
37.143306732177734,
37.143306732177734,
37.143306732177734,
37.143306732177734,
37.143306732177734,
37.143306732177734,
37.143306732177734,
37.01296615600586,
36.99639892578125,
36.48031997680664,
36.48031997680664,
36.42265701293945,
36.42265701293945,
36.42265701293945,
36.26839065551758,
34.79485321044922,
34.57814407348633,
34.57814407348633,
34.57814407348633,
34.57814407348633,
34.36198806762695,
34.36198806762695,
34.36198806762695,
34.36198806762695,
34.36198806762695,
33.83503723144531,
33.28827667236328,
33.28827667236328,
33.160980224609375,
33.014381408691406,
32.86224365234375,
32.713966369628906,
31.796825408935547,
31.723907470703125,
31.723907470703125,
31.723907470703125,
31.246810913085938,
31.246810913085938,
31.246810913085938,
31.246810913085938,
31.06092071533203,
30.359580993652344,
30.206817626953125,
30.112646102905273,
30.0809268951416,
30.0809268951416,
30.0809268951416,
29.964332580566406,
29.895263671875
],
"content": [
"But that being said there are many ways to get the total memory usage or your ActivePivot solution jvisualvm jconsole the Quartet FS health check agent.. . .",
"But in 2013 ActivePivot is still the only OLAP server with real-time support .",
"But for ActivePivot that does not help much : ActivePivot is an in-memory database .",
"You will find a presentation of ActivePivot Distributed Architecture from the Quartet FS User Group 2012 at http : www.youtube.com watch v VnZoelJulM4 .",
"I am new to activePivot .",
"ActivePivot can push real-time updates into an OLAP result set and it exposes a proprietary streaming API to subscribe to those updates .",
"Multidimensional continuous queries and associated real-time events are a unique feature of ActivePivot exposed with a proprietary API called the ActivePivot Streaming API .",
"Finally the quick and dirty solution : configure your measures as nullable fields in ActivePivot .",
"Is there any equivalent in activepivot",
"Do you use relational stores ActivePivot store",
"IQueriesService.retrieveObject is an obsolete service that was introduced in ActivePivot 3.x .",
"Working on ActivePivot v5 it seems there is no such element as the indexer .",
"At that time ActivePivot stored the input objects directly in the memory and it was natural to provide means to retrieve those objects .",
"A client with support for real-time OLAP queries should be built against that API this is a large task that goes beyond that a stack-overflow question you should read the documentation of the ActivePivot product and probably liaise with Quartet FS professional services .",
"where will i get ActivePivot.lic for ActivePivot In Memory Analytical tool .",
"Partitioning provides intrinsic parallelism to most of the data intensive algorithms in ActivePivot .",
"ActivePivot implements the standards of OLAP : .. . .. . The MDX query language .. . The XMLA protocol for communications .. . .. . So does Tableau Software .",
"When a multidimensional MDX query is sent to an OLAP provider like ActivePivot a cell set is returned encoded in the XMLA protocol .",
"Knowing that most sections of the ActivePivot query-engine run as fast as memory can be fetched the NUMA impact is particularly visible .",
"The in-memory datastore of ActivePivot is internally split into partitions since version 5.0 .",
"PS : we use Excel and ActivePivot Live as UI",
"How to load MongoDB data source to ActivePivot cube",
"There is an easy solution when the ActivePivot application only uses a fraction of the resources we find that it is often the case-when several ActivePivot solutions run on the same server .",
"Can ActivePivot leverage that to compress the vectors",
"this query will run on the ActivePivot Sandbox sample application .. . .. . .. . .. . But the most efficient way is to use a post processor because post processors run in the core aggregation engine of ActivePivot while the MDX engine operates at a higher layer .",
"The most elegant option is probably to use the ActivePivot Distributed Architecture with Polymorphic Distribution .",
"ActivePivot Live only displays the result-of your MDX query as sent by the server .",
"The POST keyword has been supported for the Hierarchize function since ActivePivot 5.1 .",
"I m writing some client code to integrate with ActivePivot .",
"Here s a simple example using the ActivePivot sandbox cube .",
"I need to remove records from a store of ActivePivot 5.0 .",
"But later versions of ActivePivot introduced a column store : the data is extracted from the input objects and packed and compressed into columnar structures .",
"Using Relational Stores is it possible to do a one-to-many join from the ActivePivot store to a joining store .",
"In ActivePivot 5.0 I m monitoring a file containing my data to inject in the datastore .",
"I would like to know if it is possible to connect activepivot to tableau software",
"ActivePivot 4.3.3 has been tested and works with Tableau Software .",
"So how can you get the most from your ActivePivot solution on a NUMA hardware",
"ActivePivot Live provides a bunch of useful tools to manipulate MDX queries and the dynamic formatting is one of them .",
"For instance a bulk transaction processing a large-data update into ActivePivot will operate in parallel over the partitions .",
"On Linux you prefix the JVM launch with the following option http : linux.die.net man 8 numactl : .. . .. . If the entire server is dedicated to one ActivePivot solution you can leverage the ActivePivot Distributed Architecture to partition the data .",
"In ActivePivot what is the most efficient way to configure DISTINCT COUNT aggregation",
"As ActivePivot supports the MDX language you can do it in MDX .",
"In ActivePivot 5 what number of partitions should I choose for the fact store",
"ActivePivot uses partitioning to improve parallelism and that speeds up query execution .",
"We are looking after more feedback about leveraging ActivePivot on NUMA severs .",
"We are migrating an ActivePivot application to a new server 4 sockets Intel Xeon 512GB of memory .",
"Then you can implement the toString method of your Price class as ActivePivot uses this for default formatting .",
"The relational stores includes the concept of an ActivePivot Store which is your main store on which your schema is based .",
"The ActivePivot Distributed Architecture offers an elegant way to federate heterogeneous cubes on the fly : ActivePivot Polymorphic Distribution .",
"For documentation you can start at http : support.quartetfs.com confluence display AP4 ActivePivot+Distributed+Architecture .",
"Hi David Both files are being used against a single Relational ActivePivot store .",
"The relational-store of ActivePivot ships with a high performance multithreaded CSV-Source to parse files and load them into data stores .",
"I ve been trying to create a new action in ActivePivot Live that calls retrieveObject on the QueriesService .",
"For ActivePivot 5.x the retrieveObject service has been removed completely in favor of direct access to the underlying datastore .",
"More generally drillthrough queries and also MDX queries and GetAggregates queries are contextual in ActivePivot .",
"In the ActivePivot Sandbox application since version 5.0 there is an example of drillthrough post processed property that extracts the book id that way :",
"You can easily do it with the MDX-based web client interface ActivePivot Live .",
"Suppose my ActivePivot store joins to another store on SOME ID but the key for the other store is SOME ID SOME TYPE .",
"The simplified idea behind the relational stores as of RS 1.5.x AP 4.4.x is that when one entry is submitted into the ActivePivot Store then starting from the ActivePivot Store it ll recursively resolve the joins in order to retrieve maximum one entry in each of the joined stores .",
"Relational stores and cubes are defined in ActivePivot through the various XML configuration-files available like Formats.csv LoadInstructions.csv WhatverCube.xml and SchemaFields.xml .",
"I ve tried calling Window.setTitle from my GinBootstrappers.afterApplicationLoaded method but that seems to only show for a second or less before being changed back to ActivePivot Live",
"For ActivePivot 4.x the retrieveObject service has been somewhat maintained although indirectly as in fact generic objects are reconstructed on the fly from the compressed data .",
"For instance when you deploy your ActivePivot solution on a server with 64 cores configure 64 partitions .",
"In my activepivot solution I have a store containing the desk and the currency for each trade .",
"For instance an ActivePivot solution that only uses 16 cores out of 64 and 256GB out of a TeraByte .",
"I had a look on this question : Can I connect ActivePivot to the tableau software",
"The ActivePivot Live frontend was in the first place written to leverage those real-time updates presenting them in familiar pivot-table controls .",
"In our ActivePivot project we have designed our cube with predefined hierarchies and levels .",
"I know it is already possible to bucket group members in ActivePivot using Analysis Dimension but this is too static for our use-case .",
"Based the information I see here : .. . .. . http : quartetfs.com en products activepivot open-component .. . .. . ...the product understands MDX .",
"ActivePivot supports the XMLA multidimensional format since version 2.0 and the tabular format since version 4.3.3 .",
"Out of the box ActivePivot will not know how to aggregate those prices so you ll also write a custom aggregation function extending com.quartetfs.biz.pivot.aggfun.impl.GenericAggregationFunction .",
"ActivePivot Polymorphic Distribution will merge them on the fly into a virtual cube joining on the shared dimensions while also making available the unique measures in each cube .",
"Then join the cubes together with polymorphic distribution ActivePivot will merge them together on the fly and present both measure as-if they belonged to the same virtual cube .",
"I want to change the window title for ActivePivot Live so that users having multiple Live instances open can better find the right one .",
"We have an ActivePivot cube that is a polymorphic cube 2 nodes where 1 node is itself a horisontally distributed cube 8 nodes .",
"But as ActivePivot is object based there is always a solution to do what you want : .. . .. . For the price measure you could write a Price java class that contains an amount and a currency instead of just using a number .",
"As each thread runs on its own partition there is very little contention between threads that s one of the main reasons why ActivePivot scales to hundreds of cores .",
"If there are 4 NUMA nodes you start 4 JVMs hosting 4 ActivePivot nodes each one bound to its NUMA node .",
"And that also means that as of 2013 and outside of ActivePivot Live you will not find a toolkit WPF or not that has done the whole job of enriching its pivot-table controls with real-time updates .",
"In ActivePivot from a post processed property such as those you can write to customize drillthrough you have indeed access to all the standard attributes of the current drillthrough row .",
"Can we configure ActivePivot cubes or thread pools change our queries configure the operating-system",
"In our ActivePivot project we aggregate large vectors of simulated data the length of the vectors can reach one million values and the memory consumption is very high .",
"So I suspect the answer is yes but you ll need to tell us a little bit more about connectivity options for ActivePivot before you can be sure .",
"I am trying to edit the Infragistics WPF PivotGrid Sample so that it will connect to the ActivePivot Sandbox Server .",
"I have never seen this type of error when using any other XMLA ADOMD client with ActivePivot .",
"http : stackoverflow.com questions 12473037 can-i-connect-activepivot-to-the-tableau-software but it is not complete .",
"In ActivePivot a formatter does not know the cube location for which a cell has been generated actually with MDX constructs some cell values can be computed that are not associated to any location .",
"ActivePivot users generally copy the file into some deleted directory so that it is detected by another file-watcher and pushed by the CSV Source into a special transaction handler that peforms the deletions .",
"The large-data structures of ActivePivot datastore aggregates primary index and bitmap index are allocated in large continuous chunks they re in general not split by date or any other member and you cannot distinguish .",
"Those errors appear because on application shutdown the ActivePivotManager is aggressively stopping the distribution without waiting for each distributed ActivePivot to be notified that other cubes have been stopped .",
"ActivePivot supports XMLA and I can connect to the same Sandbox Server using the From Analysis Services DataSource option in MS Excel with no issues .",
"I have been tasked with coming up with a high performance front-end for a live ActivePivot back-end .",
"ActivePivot will not automagically detect that the vectors you aggregate are sparse and apply some compression mechanism but as ActivePivot is object based you can write your own aggregation function that will aggregate compressed vectors or any other kind of data you want actually .",
"Indeed ActivePivot does take avantages of partitioning to enable multicore scalability speed up queries and data management and make possible NUMA Non-uniform memory access optimization .",
"In the CSV file that I use for loading ActivePivot I have 2 fields that need to be multiplied together to compute my record s value : price quantity .",
"In ActivePivot Live 3 how can a pivot-table cell have a particular background-color according to the value it contains and the measure to which the cell refers",
"Implement your own class responsible of cell rendering .. . .. . ActivePivot Live has convenient entry points in the code to meet your needs .",
"Via ActivePivot Live : .. . .. . A end-user can define its own context values : right-click on the view click query editor and at the bottom of the pop-up click Add a context value and add the queriesTimeLimit context value with the desired timeout value in seconds .",
"I ve seen them suggested as the solution to several questions here Such as this http : stackoverflow.com a 15947890 2224622 and I m curious if it s possible to run two or more polymorphic distributed cubes within the same JVM - so a single ActivePivot application instance with two or more distributed cubes ."
]
} | {
"confidence": [
79.70416259765625,
77.42860412597656,
77.42418670654297,
73.25343322753906,
69.41058349609375,
67.12257385253906,
65.03412628173828,
61.714935302734375,
59.943511962890625,
58.43183135986328,
55.804561614990234,
54.86914825439453,
52.816368103027344,
52.53737258911133,
52.53737258911133,
52.1706428527832,
52.16732406616211,
51.947998046875,
51.72399139404297,
50.932193756103516
],
"content": [
"Question : We are having a front end UI .Net Application project most probably like Active Pivot Live UI . In .Net Application project other than Active Pivot connection-string nothing is used from Active Pivot Side . In this .Net Application project Query Generation by our own method call for ExecuteCellset Microsoft.AnalysisServices.AdomdClient.dll method and processing the returned CellSet to render it in desired form to UI is taking place in class-library dll . We can make connection with AP Server and can get cellset and render it in desired form to Front end UI . Now we wants to update the rendered UI for example Grid populated with cellset values in REAL-TIME as in Active Pivot Live and Excel . Please help us to update the front end .Net UI in real-time . Please provide a Sample project with example Web Service to achieve real-time update to .Net UI like in this video clipping .. . .. . http : www.youtube.com watch feature player embedded v bDc-WzHnlTk http : www.youtube.com watch feature player embedded v bDc-WzHnlTk .. . Answer : OLAP standards like XMLA and OLEDB over which the ADOMD.NET library operates do not support real-time updates . Multidimensional continuous queries and associated real-time events are a unique feature of ActivePivot exposed with a proprietary API called the ActivePivot Streaming API . A client with support for real-time OLAP queries should be built against that API this is a large task that goes beyond that a stack-overflow question you should read the documentation of the ActivePivot product and probably liaise with Quartet FS professional services .",
"Question : In ActivePivot 5 what number of partitions should I choose for the fact store I have tried different configurations but I m not sure which one to choose . .. . Answer : There isn t a magic number of partitions that works all the time but start with one partition per core in your system . That works well for 80 of the projects . For instance when you deploy your ActivePivot solution on a server with 64 cores configure 64 partitions . The in-memory datastore of ActivePivot is internally split into partitions since version 5.0 . Partitioning provides intrinsic parallelism to most of the data intensive algorithms in ActivePivot . For instance a bulk transaction processing a large-data update into ActivePivot will operate in parallel over the partitions . Similarly a large query aggregating terabytes of data will operate in parallel over the partitions . And for both cases the multi-threading model is very simple : one thread per partition . As each thread runs on its own partition there is very little contention between threads that s one of the main reasons why ActivePivot scales to hundreds of cores . Intuitively knowing that the ActivePivot multi-threading model is to run one thread per partition it makes sense to configure one partition per core so that the largest queries and the largest transactions get the chance to use all the cores in the systems but not more than that . .. . .. . One known exception to this rule of thumb : the projects that focus on smaller datasets with restless real-time updates and calculations . Those projects usually have less than a few tens of gigabytes but process fast paced data updates that continuously trigger the recalculation of hundreds of small continuous queries . Those projects have small datasets and do not benefit much from bulk transactions . More importantly as there may be thousands of concurrent queries there is enough work to keep the cores of the system busy just by running each query single-threaded on one core . For that kind of workload the partitioning becomes more of an overhead than anything and it makes sense configuring only a small number of partitions one two or four for instance.. . .",
"Question : Find the CURRENT MEMORY SIZE Does Active Pivot cube expose the current memory size on the cube or Is it possible to find the current Date s memory Size EXample : Total used Size 400Gb CobDate 2014040 Total used Size 200GB .. . Answer : The large-data structures of ActivePivot datastore aggregates primary index and bitmap index are allocated in large continuous chunks they re in general not split by date or any other member and you cannot distinguish . But that being said there are many ways to get the total memory usage or your ActivePivot solution jvisualvm jconsole the Quartet FS health check agent.. . . Then use your favorite frontend to make a simple contributors.COUNT query along your date dimension . That will give you the number of records for each date and the total number of records enough to compute an estimate for the memory usage of each date .",
"Question : We are migrating an ActivePivot application to a new server 4 sockets Intel Xeon 512GB of memory . After deploying we launched our application benchmark that s a mix of large OLAP queries concurrent to real-time transactions . The measured performance is almost twice slower than on our previous server that has similar processors but twice less cores and twice less memory . We have investigated the differences between the two servers and it appears the big one has a NUMA architecture non uniform memory acccess . Each CPU socket is physically close to 1 4 of the memory but further away from the rest of it.. . The JVM that runs our application allocates a large global heap there is a random fraction of that heap on each NUMA node . Our analysis is that the memory access pattern is pretty random and CPU cores frequently waste time accessing remote memory . We are looking after more feedback about leveraging ActivePivot on NUMA severs . Can we configure ActivePivot cubes or thread pools change our queries configure the operating-system .. . Answer : Peter described the general JVM options available today to reduce the performance impact of NUMA architectures . To keep it short a NUMA aware JVM will partition the heap with respect to the NUMA nodes and when a thread creates a new object the object is allocated in the NUMA node of the core that runs that thread if the same thread later uses it the object will be in the local memory . Also when compacting the heap the NUMA aware JVM avoids moving large-data chunks between nodes and reduces the length of stop-the-world events . So on any NUMA hardware and for any Java application the -XX : +UseNUMA option should probably be enabled . But for ActivePivot that does not help much : ActivePivot is an in-memory database . There are real-time updates but the bulk of the data resides in the main memory for the life of the application . Whatever the JVM options the data will be split among NUMA nodes and the threads that execute queries will access memory randomly . Knowing that most sections of the ActivePivot query-engine run as fast as memory can be fetched the NUMA impact is particularly visible . So how can you get the most from your ActivePivot solution on a NUMA hardware There is an easy solution when the ActivePivot application only uses a fraction of the resources we find that it is often the case-when several ActivePivot solutions run on the same server . For instance an ActivePivot solution that only uses 16 cores out of 64 and 256GB out of a TeraByte . In that case you can restrict the JVM process itself to a NUMA node . On Linux you prefix the JVM launch with the following option http : linux.die.net man 8 numactl : .. . .. . If the entire server is dedicated to one ActivePivot solution you can leverage the ActivePivot Distributed Architecture to partition the data . If there are 4 NUMA nodes you start 4 JVMs hosting 4 ActivePivot nodes each one bound to its NUMA node . With this deployment queries are distributed among the nodes and each node will perform its share of the work at max performance within the right NUMA node .",
"Question : I ve edited to rephrase this question : .. . .. . We want to store trade and sub-trade data . So to give an idea of data we have input data like this : .. . .. . Trade Data Relational Store .. . .. . Sub-Trade Data .. . .. . Any we re looking for the best solution to model this in AP . If we use relational stores to create 2 stores with the same layout as above with the Sub-Trade store being the main ACTIVE PIVOT store and join them based on TradeKey then we end up aggregating incorrectly on the Trade-Level measures as the trade is copied into the cube for each Sub-Trade entry . E.g . TradeLevelMeasure1 has double the correct value as it exists in the cube for both sub-trade entries .. . .. . A solution we ve come up with is to use a single store and add a new dimension to indicate the trade level Trade or SubTrade . So we get something like this : .. . .. . This way we should be able to aggregate correctly and then expand on the sub-trade measures when required . Does this seem like a viable solution or is there a better way to achieve this .. . Answer : Your dataset contains measures that do not have the same dimensionality and thus do not belong to a single cube and its fixed topology . Measures defined at the trade level only aggregate among trades while sub-trade measures only make sense in the context of sub-trades . The ActivePivot Distributed Architecture offers an elegant way to federate heterogeneous cubes on the fly : ActivePivot Polymorphic Distribution . In short you will define two simple cubes one at the trade level with the trade measures and one at the sub-trade level that aggregates only sub-trade measures . ActivePivot Polymorphic Distribution will merge them on the fly into a virtual cube joining on the shared dimensions while also making available the unique measures in each cube . You will find a presentation of ActivePivot Distributed Architecture from the Quartet FS User Group 2012 at http : www.youtube.com watch v VnZoelJulM4 . For documentation you can start at http : support.quartetfs.com confluence display AP4 ActivePivot+Distributed+Architecture .",
"Question : I would like to know if it is possible to connect activepivot to tableau software By the way is it possible to connect to microsoft reporting-services .. . Answer : ActivePivot implements the standards of OLAP : .. . .. . The MDX query language .. . The XMLA protocol for communications .. . .. . So does Tableau Software . When a multidimensional MDX query is sent to an OLAP provider like ActivePivot a cell set is returned encoded in the XMLA protocol . Most OLAP frontends Microsoft Excel in particular rely on a multidimensional format to represent the cell set in XMLA . But a few rely on the older tabular format that is the case of Tableau Software and also Microsoft SQL Server Reporting Services . ActivePivot supports the XMLA multidimensional format since version 2.0 and the tabular format since version 4.3.3 . ActivePivot 4.3.3 has been tested and works with Tableau Software .",
"Question : I have been tasked with coming up with a high performance front-end for a live ActivePivot back-end . I already have a client-side service-layer that provides a continuous stream IObservable T of pre-aggregated pre-formatted data as well as metadata detailing the dimensions and what-not in the report . My requirements can be summarized as : .. . .. . 1 . Dynamically set up row and column headers based on metadata in the stream . 2 . Dynamically pass live data through to the appropriate row column of the control . 3 . Highlight changes to data . eg . increased values may highlight temporarily in green decreased values in red . 4 . Intercept user actions on row column headers ie . drill-downs so that I can instigate a change in the underlying MDX query . 5 . Intercept user actions probably double-click on data values so that I can instigate a drill-through query the results of which would be displayed in a separate data grid . All the third party components appear to be geared around slicing and dicing disconnected or rarely updated data sets . They sacrifice performance to achieve a higher degree of flexibility that I simply don t need and performance is paramount for my scenario . Does anyone know of a WPF control that is performance-focussed and geared more towards the viewing of pre-aggregated pre-formatted data Comment : The words WPF and performance rarely go together if ever .. . good luck . .. . Answer : PivotTable-like frontends that allow slice and dice data exploration are in general associated with OLAP technology . Some of those frontends target one specific server using a proprietary data model and some others implement the standard : MDX queries over XMLA transport . But when OLAP technology was designed 20 years ago doing it in real-time seemed unthinkable . One consequence is that the XMLA standard has no support for updates in a cell set . Actually it practically forbids it because of the static representation of cell sets and cell set axis . ActivePivot can push real-time updates into an OLAP result set and it exposes a proprietary streaming API to subscribe to those updates . The ActivePivot Live frontend was in the first place written to leverage those real-time updates presenting them in familiar pivot-table controls . But in 2013 ActivePivot is still the only OLAP server with real-time support . That explains why there isn t yet a standard to subscribe to OLAP real-time updates . And that also means that as of 2013 and outside of ActivePivot Live you will not find a toolkit WPF or not that has done the whole job of enriching its pivot-table controls with real-time updates . The libraries we know of have actually transposed the static data representation of XMLA in their pivot-table designs making it cumbersome or impossible to update the cells think of the Microsoft Excel Pivot Table for instance . Under the constraint of a particular technology like WPF I would select a general purpose UI toolkit that makes it easy to arrange and compose tables . From there that s a D.I.Y . job . Comment : @KentBoogaart - I ve created a UI toolkit which allows you to create live tables which can be joined filtered extended with calculated-columns and then bound to WPF controls . The tables expose an IObservable interface and have been designed for performance . The project page is bitbucket.org mendelmonteiro reactivetables https : bitbucket.org mendelmonteiro reactivetables",
"Question : I ve been trying to create a new action in ActivePivot Live that calls retrieveObject on the QueriesService . Something like this : .. . .. . This works fine on a local cube but in a distributed setup if fails to retrieve an object from a remote-server . Maybe this is not surprising but the question is how do I make it work Would a new query type similar to the LargeDealsQuery in this example help me http : support.quartetfs.com confluence display AP4 How+to+Implement+a+Custom+Web+Service .. . .. . UPDATE : .. . .. . Here is the context . What I have is too may fields to resonably show in the drill-through blotter so I m hiding some in the cube drill-through config both for display but also to reduce the amount of data transfered . To see all the fields when that is needed I added a drill-through details item to the right-click menu that will query the cube for all fields on a single drill-through row and show that in a pop-up . Maybe there is a better way to get this functionality .. . Answer : IQueriesService.retrieveObject is an obsolete service that was introduced in ActivePivot 3.x . At that time ActivePivot stored the input objects directly in the memory and it was natural to provide means to retrieve those objects . But later versions of ActivePivot introduced a column store : the data is extracted from the input objects and packed and compressed into columnar structures . The input objects are then released vastly reducing memory usage . For ActivePivot 4.x the retrieveObject service has been somewhat maintained although indirectly as in fact generic objects are reconstructed on the fly from the compressed data . As you noticed the implementation only supports local cubes . Only MDX queries and Drillthrough queries have a distributed implementation . For ActivePivot 5.x the retrieveObject service has been removed completely in favor of direct access to the underlying datastore . There is a good chance you can address your use-case with a distributed drillthrough query that retrieve raw facts . Another quick fix would be to issue your request manually on each of the local cubes in the cluster . More generally drillthrough queries and also MDX queries and GetAggregates queries are contextual in ActivePivot . You can attach IContextValue s to the query that will alter the way the query is executed . For drillthrough queries in particular you can attach the IDrillThroughProperties context value to the query : .. . .. . This will among other things allow you to retrieve only the columns you want for a specific drillthrough query . Comment : Hi Antoine . Thanks for the answer . I added some context to the question . What I really want is standard drill-through with a limited number of fields and a full drill-through with all fields for a single fact . Can I get that using a drill-through queries",
"Question : We are migrating an ActivePivot application to a new server 4 sockets Intel Xeon 512GB of memory . After deploying we launched our application benchmark that s a mix of large OLAP queries concurrent to real-time transactions . The measured performance is almost twice slower than on our previous server that has similar processors but twice less cores and twice less memory . We have investigated the differences between the two servers and it appears the big one has a NUMA architecture non uniform memory acccess . Each CPU socket is physically close to 1 4 of the memory but further away from the rest of it.. . The JVM that runs our application allocates a large global heap there is a random fraction of that heap on each NUMA node . Our analysis is that the memory access pattern is pretty random and CPU cores frequently waste time accessing remote memory . We are looking after more feedback about leveraging ActivePivot on NUMA severs . Can we configure ActivePivot cubes or thread pools change our queries configure the operating-system .. . Answer : You can try using -XX : +UseNUMA .. . .. . http : docs.oracle.com javase 7 docs technotes guides vm performance-enhancements-7.html .. . .. . If this doesn t yield the result you expect you might have to use taskset to lock a JVM to a specific socket and effectively break the server into four machines with one JVM each . I have observed that machine with more sockets have slower access to their memory even their local memory and how always give you the performance gains you want as a result .",
"Question : In ActivePivot what is the most efficient way to configure DISTINCT COUNT aggregation For instance if I want to configure a measure that for each cell returns the number of distinct products that contribute to that cell . .. . Answer : As ActivePivot supports the MDX language you can do it in MDX . Here is an example where we define an MDX calculated member that counts the distinct desks contributing to a cell . this query will run on the ActivePivot Sandbox sample application .. . .. . .. . .. . But the most efficient way is to use a post processor because post processors run in the core aggregation engine of ActivePivot while the MDX engine operates at a higher layer . The LEAF COUNT post processor is designed for that purpose here is how you would declare it in the Sandbox application : .. . .. . As the post processor must be declared in the configuration of the cube it is not as flexible as the MDX solution that a user can apply on any hierarchy at the last minute . But again it is more performant especially in the context of hierarchies with large cardinalities .",
"Question : In our ActivePivot project we aggregate large vectors of simulated data the length of the vectors can reach one million values and the memory consumption is very high . Most of the time most of the values in the vectors are zero . Can ActivePivot leverage that to compress the vectors Can we still aggregate the compressed vectors .. . Answer : ActivePivot will not automagically detect that the vectors you aggregate are sparse and apply some compression mechanism but as ActivePivot is object based you can write your own aggregation function that will aggregate compressed vectors or any other kind of data you want actually . Now if you need an example of zero-based vector compression here is a simple one : .. . .. . And here is the base code to aggregate those with an ActivePivot aggregation function :",
"Question : Relational stores and cubes are defined in ActivePivot through the various XML configuration-files available like Formats.csv LoadInstructions.csv WhatverCube.xml and SchemaFields.xml . Can the configuration information specified in these files be accessed through an ActivePivot API after being parsed and loaded or do we have to parse load and examine these files ourselves to know the tables fields dimensions and measures defined in the currently active relational stores and cubes .. . Answer : The complete and detailed definition of your ActivePivot instances and also of the schema can be retrieved at runtime from the ActivePivot Manager : .. . .. . Those definitions are also exposed through the Administration Service available in Java or as a web service : .. . .. . For more details have a look at the online javadoc http : support.quartetfs.com documentation javadoc .. . .. . You can also retrieve information about the Relational Stores using the java API . You access stores through the store universe :",
"Question : How to load MongoDB data source to ActivePivot cube Is there any library available for that purpose Thanks . .. . Answer : you can follow those steps : .. . .. . write a connector to Mongo based on a java driver https : docs.mongodb.org ecosystem drivers java http : mongodb.github.io mongo-java-driver 3.2 driver getting-started quick-tour . then I ll use Jackson to convert the entries received from Mongo from JSON to Java objects http : www.mkyong.com java jackson-2-convert-java-object-to-from-json . All the code above will sit in a source let s call it Mongo Source this source will implement Quartet co.qfs.msg.ISource so then when you call fetch while loading your data you ll get all the entries you re looking for .",
"Question : I want to change the window title for ActivePivot Live so that users having multiple Live instances open can better find the right one . I ve tried calling Window.setTitle from my GinBootstrappers.afterApplicationLoaded method but that seems to only show for a second or less before being changed back to ActivePivot Live .. . Answer : Found my own answer . GinBootstrapper.APPLICATION NAME is public and not final so in my Bootstrapper I can simply add this line to the constructor :",
"Question : I want to change the window title for ActivePivot Live so that users having multiple Live instances open can better find the right one . I ve tried calling Window.setTitle from my GinBootstrappers.afterApplicationLoaded method but that seems to only show for a second or less before being changed back to ActivePivot Live .. . Answer : The window title is set by the application and it is not possible to change it .",
"Question : After loading our initial facts into the cube we then load a second file that adds measures to the existing facts so no new facts are created by the second file . We use a Handler to do this . When the second file is removed from the filesystem we would like to remove just the relevant measures from the facts . Is there a way for us to plug into the Directory File Watcher mechanism to accomplish this Comment : Could you add more information regarding your loading architecture Do you use relational stores ActivePivot store It seems that you have the initial facts separated from your measures . Are your measures contained in a separate store linked to the store containing the initial facts Is their any reason why you need to separate the initial facts from your measures Comment : Hi David Both files are being used against a single Relational ActivePivot store . We receive the data spread across multiple-files so load the first file to create the facts and then add the extra measures to the existing facts using the second file . Does that answer your question .. . Answer : If we understand correctly and to simplify the usecase your dataset has two measures A and B . For the same records one file brings measure A and another file brings measure B . And you want to freely update or delete the data for measure A or B independently . There are several ways you can achieve this . First you could decouple the measures : instead of records that bear both A and B fields you would have two records with a generic value field and a mesure type field to distinguish between both measure types . This design is flexible because you can introduce a new measure C later itself fed from another file . The most elegant option is probably to use the ActivePivot Distributed Architecture with Polymorphic Distribution . You would setup two independent cubes one holding only the A measure another cube with the B measure . Then join the cubes together with polymorphic distribution ActivePivot will merge them together on the fly and present both measure as-if they belonged to the same virtual cube . Finally the quick and dirty solution : configure your measures as nullable fields in ActivePivot . This way when you want to erase measure A you actually write null to the A fields of your records . Comment : Thanks Antoine but out problem isn t how to store the empty values but how to detect when the file is deleted . Since the addition of the measures is done inside a Handler when the file is removed it isn t automatically removed when we remove the file . We re extending DefaultTransactionHandler but we don t get any call to the submitStore method on file deletion . Perhaps we re missing something in our configuration . to be clear we do get a call to submitStore when we add a file Comment : You cannot really trigger deletion of data in ActivePivot when you notice that a file has been deleted : at that point the file does not exist anymore and you cannot read it to locate the keys of the records you may want to delete . ActivePivot users generally copy the file into some deleted directory so that it is detected by another file-watcher and pushed by the CSV Source into a special transaction handler that peforms the deletions .",
"Question : I would like to retrieve data from activePivot s cube by sending MDX with Rest request . I tried to do it and I retrieved a json object then I parsed this json object to retrieve just specific information look to the picture . I had a look on this question : Can I connect ActivePivot to the tableau software http : stackoverflow.com questions 12473037 can-i-connect-activepivot-to-the-tableau-software but it is not complete . Now I would like to render information whatever the request is in a dynamic table in a web page . How can I do it enter image description here http : i.stack.imgur.com juxtI.png .. . Answer : You are trying to perform what we call the rendering of a Pivot Table from a CellSet . The CellSet and optionally the corresponding Cube discovery information are sufficient to perform this task and you could write it yourself by basically just iterating on the axes and the cells on the CellSet . There is no open-source library that will help you do so to my knowledge the REST Api you are using is recent . Since you are using ActivePivot you might be aware of ActivePivot Live 4 which is the UI front end for ActivePivot which consumes the same API you are consuming and contains a TabularView component that performs what you are trying to do with a lot of added features that could be interesting for you named : .. . .. . Lazy rendering it can render very large CellSets quickly with a low memory-footprint .. . Support for real-time updates on the CellSet via a WebSocket query .. . Highly configurable table you can customize the style of every element programmatically or via a UI .. . Columns can be reordered pinned resized .. . Capability to have a complex rendering of a column or a group of columns sparklines hierarchy trees for instance .. . Components available as a library so you can include them in your Angular application if you prefer .. . .. . This product contains a lot more features that you can for instance see in these two videos everytime you see a table with data this is the TabularView : https : www.youtube.com watch v -B07d4meYbQ and https : www.youtube.com watch v QMTVAtdpuRs . So if you are using ActivePivot Live you can display any MDX as a table in a div with the id table with the following code : .. . .. . Then later you can change the mdx with .. . .. . So that you can wrap this inside an Angular directive for instance . Otherwise you will have to implement it yourself but can of course ask for help here if you have particular issues or bugs you encounter while trying to implement it .",
"Question : I would like to know if it is possible to connect activepivot to tableau software By the way is it possible to connect to microsoft reporting-services .. . Answer : Based the information I see here : .. . .. . http : quartetfs.com en products activepivot open-component .. . .. . ...the product understands MDX . It also allows connectivity from Excel which infers that there is an ODBC Other driver that Tableau could also probably leverage . So I suspect the answer is yes but you ll need to tell us a little bit more about connectivity options for ActivePivot before you can be sure .",
"Question : where will i get ActivePivot.lic for ActivePivot In Memory Analytical tool . I am trying to run MDX query from Java . But getting below error .. . .. . SEVERE : Error loading Quartet FS license : License could not be found either in the classpath ActivePivot.lic neither at the system property location activepivot.license null neither at the environment variable location ACTIVEPIVOT LICENSE null .. . .. . org.springframework.beans.factory.BeanCreationException : Error creating bean with name cubeJettyConfig : Injection of autowired dependencies failed nested exception is org.springframework.beans.factory.BeanCreationException : Could not autowire field : protected com.qfs.store.IDatastore com.met.oxf.qfs.cfg.CubeJettyConfig.datastore nested exception is org.springframework.beans.factory.BeanCreationException : Error creating bean with name datastore defined in class com.met.oxf.qfs.cfg.DatastoreConfig : Instantiation of bean failed nested exception is org.springframework.beans.factory.BeanDefinitionStoreException : Factory method public com.qfs.store.IDatastore com.met.oxf.qfs.cfg.DatastoreConfig.datastore com.quartetfs.biz.pivot.definitions.IActivePivotManagerDescription threw exception nested exception is java.lang.UnsupportedOperationException : The current license does not enable the datastore component only one store can be defined in the schema instead of 10 Comment : I m deleting the mdx tag as this seems to be only ver very loosely related . If the user adds some mdx code then I could obliviously be added back . Added the java tag as it looks more related to java . .. . Answer : Can you contact the person who generated the license for you through QFS jira It seems you do not have datastore module enabled and your intance uses 10 stores This is why you have such message Comment : can you also add the full stack where we see the info related to the licensing environment",
"Question : I have a price measure that I want to format differently in different locations e.g . the formatting depends on the value of a dimension . I could have multiple measures with different formatting but that would complicate a lot of other things . The standard IFormatter framework does not have location information as far as I understand . I guess could implement this as a post processed mesaure I could maybe also have different object types for the different types of prices and then use an IFormatter implementation that switched on the object-type Is there a best practice for this - pros cons .. . Answer : In ActivePivot a formatter does not know the cube location for which a cell has been generated actually with MDX constructs some cell values can be computed that are not associated to any location . But as ActivePivot is object based there is always a solution to do what you want : .. . .. . For the price measure you could write a Price java class that contains an amount and a currency instead of just using a number . Out of the box ActivePivot will not know how to aggregate those prices so you ll also write a custom aggregation function extending com.quartetfs.biz.pivot.aggfun.impl.GenericAggregationFunction . Then you can implement the toString method of your Price class as ActivePivot uses this for default formatting . And you ll have access to the currency when formatting . Of course if you want a more decoupled design or user-based contextual formatting you can also write a PriceFormatter to format your price instances ."
]
} | [
"yes-answer-long",
"yes-answer-short"
] | transactional | UNK_RELATION |
pdh@telecommunication@53 | pdh -- pdh or plesiochronous digital hierarchy is a @placeholder technology used to transport large amount of data through some advanced digital communication mediums like optical fibers and microwave systems . | {
"confidence": [
48.906829833984375,
48.43535614013672,
41.64112854003906,
38.85636901855469,
36.581275939941406,
36.581275939941406,
36.581275939941406,
33.62548828125,
25.8240909576416,
19.592243194580078,
17.83259391784668,
17.04360008239746,
16.70916748046875,
16.56081771850586,
16.350114822387695,
16.08639907836914,
15.083466529846191,
15.083466529846191,
15.083466529846191,
14.895524978637695,
14.765625953674316,
14.447020530700684,
14.447020530700684,
14.447020530700684,
14.447020530700684,
14.447020530700684,
14.447020530700684,
14.447020530700684,
14.447020530700684,
14.447020530700684,
14.414080619812012,
14.216585159301758,
14.014993667602539,
13.867642402648926,
13.562156677246094,
13.56064224243164,
13.410980224609375,
13.158635139465332,
12.95272445678711,
12.95272445678711,
12.537710189819336,
12.537710189819336,
12.537710189819336,
12.537710189819336,
12.537710189819336,
12.537710189819336,
12.537710189819336,
12.537710189819336,
12.537710189819336,
12.537710189819336,
12.537710189819336,
12.537710189819336,
12.537710189819336,
12.537710189819336,
12.537710189819336,
12.537710189819336,
12.537710189819336,
12.537710189819336,
12.537710189819336,
12.537710189819336,
12.537710189819336,
12.537710189819336,
12.537710189819336,
12.537710189819336,
12.537710189819336,
12.537710189819336,
12.537710189819336,
12.537710189819336,
12.537710189819336,
12.537710189819336,
12.537710189819336,
12.537710189819336,
12.537710189819336,
12.537710189819336,
12.537710189819336,
12.537710189819336,
12.537710189819336,
12.537710189819336,
12.537710189819336,
12.537710189819336,
12.537710189819336,
12.537710189819336,
12.537710189819336,
12.537710189819336,
12.537710189819336,
12.537710189819336,
12.537710189819336,
12.537710189819336,
12.537710189819336,
12.537710189819336,
12.537710189819336,
12.537710189819336,
12.537710189819336,
12.537710189819336,
12.537710189819336,
12.537710189819336,
12.537710189819336,
12.537710189819336
],
"content": [
"Additional information : .. . I haven t used PDH before .",
"Performance Data Helper PDH pdh.dll .. . 5 .",
"I m computing context-switch counts using the PDH library .",
"I looked up on internet and found pdh library for windows .",
"The PDH API is more straightforward to use but the registry API is more capable at the expense of difficulty and tediousness .",
"Update .. . .. . For most counters the precision is only a concern during the calculation of the final value which happens within the PDH library .",
"pdh error http : i.stack.imgur.com GRGV6.jpg .. . .. . English translate : .. . .. . Access point in procedure PdhAddEnglishCounterA not found in library DLL pdh.dll .",
"Just a couple of clarifications : 1 CPU usage in cycles sec doesn t really have any meaning in modern processors thus pdh gives of processor 2 the pdh commands provide estimates based upon OS activity and not the actual hardware performance counters .",
"On server systems with lots of RAM or with large HDDs this might get a problem .",
"i am currently trying to make some sort of CPU usage overview for my DirectX program but it seems that i am not able to get this information through PdhAddCounter .",
"I think the safest way to do this would be to watch all process objects and each time you collect the data go through and find the one with the desired Process Id .",
"My code looks like this : .. . .. . After the PdhAddCounter call my status is -1073738824 wich causes the program to fail .",
"If you need to do a Windows XP compatible application you need to use a workaround like this : http : en.verysource.com code 3604946 1 platforminfo.cpp.html .",
"Some counter types never have fractional parts .",
"MSDN states : You should not use the registry functions to consume counter data .",
"This seems like a major design flaw to me .",
"I am programming a client to collect performance data from windows machines .",
"This data will be send to a central server storing the information and displaying it graphically .",
"I am using the windows performance API to collect the system data .",
"This is easily proven by opening the program in the debugger when another instance has already been started then stepping through to allow the program to determining the correct instance 1 then manually closing the first instance followed by stepping again to allow the program to query the counters - they won t work .",
"I then used only raw counters to calculate the percentages and I came closer to 100 99.98 is what I get .",
"Im using a Windows 7 64bit system do i have to make something different in a 64bit environment",
"Thanks for any help .",
"Remember : PdhAddCounter is locale sensible .",
"The response -1073738824 means PDH CSTATUS NO OBJECT 0xC0000BB8 .",
"The api didn t find that string .",
"Are you using a non-english OS",
"For Vista and Windows 7 8 .. . you can use PdhAddEnglishCounter instead .",
"You may also want to use GetSystemTimes http : msdn.microsoft.com en-us library windows desktop ms724400 28v vs.85 29.aspx kernel32 API which will free you from the dependency on pdh.dll .",
"See my answer here http : stackoverflow.com questions 448811 calculate-total-cpu-usage 20324308 20324308 .",
"Interrupt Time isn t documented like this but it is plainly also a component of privileged time .",
"Some playing around with perfmon suggests that the format should be .. . .. . The thread ID you already have you can get the process name from the process ID using the answers to this question http : stackoverflow.com questions 4102569 get-process-name-from-process-id-win32 .",
"The server needs to know how the data I send is related to each other and I can t find anything useful on the web about CPU counters .",
"It would be something like dpc time + interrupt time + other undistinguished privileged time and the latter isn t a separate counter .",
"At any time some process is taking some percentage of cpu usage.It is shown in resource monitor under cpu tab for every process individually .",
"From Win32 API if you are using COM already WMI might be the easiest as reading Performance Data needs significant boilerplate code whatever API you start from .",
"So I dug a little further in this issue to find out on microsoft support https : support.microsoft.com en-us kb 262938 that rates require some minimal delays between two consecutive queries .",
"Example .. . .. . processor time + idle time 100 .. . .. . This is not too hard to find out but I cannot find any information on the other percentage values like interrupt time privileged time or user time .",
"You need to use GetProcessTimes http : msdn.microsoft.com en-us library windows desktop ms683223 28v vs.85 29.aspx .. . .. . And unfortunately it won t give you the CPU usage it will give you the amount of CPU-time since the process started .",
"So to get CPU usage you will need to take one sample store that and then take another sample a known amount of time later and then calculate the time and if you want to know the total usage you ll need to add the usertime and kerneltime together of course .",
"I am trying to get around the old How do I get a Windows Performance Counter for the current process http : stackoverflow.com questions 4384240 how-do-i-get-a-windows-performance-counter-for-the-current-process issue .",
"Basically I am enumerating Process Object instances http : msdn.microsoft.com en-us library aa372151.aspx to get a list of Process objects that I can then query for their process id and compare to my own .",
"Based on this I can build a performance counter path using the correct instance index to create something similar to Process my program 3 counter that I can then use to query whatever counter it is that I am interested in .",
"But what happens if one or more of the other instances of my program exit prior to the PdhAddCounter http : msdn.microsoft.com en-us library aa372204 28v VS.85 29.aspx call",
"If I understand correctly this would mean that my counter path now refers to a different process or is now invalid .",
"They might even disappear while querying for the process id.. . .. . .. . How do I prevent the counter path from becoming invalid before I can use it to get a counter handle",
"I m pretty sure the path of an existing counter is not going to change .",
"Instances may come and go and end up recycle identifiers and thus paths but as long as your instance lives I m pretty sure it will have the same identifier and thus path .",
"I would be shocked if this were not the case .",
"@Luke : Unfortunately paths do become invalid .",
"Wow you are right .",
"Basically it is impossible to reliably monitor an instance if it s name is not unique .",
"I did stumble across a workaround http : msdn.microsoft.com en-us library aa372175 28v VS.85 29.aspx specifically for the Process and Thread objects but that s a global setting that could affect other applications .",
"The workaround might affect other applications so that won t fly as you yourself point out .",
"Would monitoring all processes help at all",
"As far as I can tell there is no way of mapping an open counter to what process it belongs-to .",
"I don t think you can do this with PdhAddCounter .",
"Maybe you can use the registry interface to collect multiple counters for all processes in that case I believe the counters will be stored sequentially for each object and you can figure it out from there .",
"I may be wrong though I am thinking about this from the perspective of a provider which I recently implemented .",
"Haven t ever written consumer code .",
"That s a recommendation not a mandate .",
"An explanation for the downvote would be appreciated .",
"There was a similar thread about this here http : stackoverflow.com questions 4156474 how-can-i-programmatically-get-thread-counts-for-a-windows-process and I tried to implement it myself .",
"i.e .",
"Trying to get the number of threads running in the server using c++ library .",
"May I know exactly what COUNTER PATH is",
"e.g .",
"Process Thread Count in the given link http : stackoverflow.com questions 4156474 how-can-i-programmatically-get-thread-counts-for-a-windows-process",
"What does it mean to make a string with that and the pid number",
"The following is what I have wrote so far without really understanding anything : .. . .. . Also the solution given in the link above says to expand the wildcard path but when I checked the PdhAddCounter page http : technet.microsoft.com en-us library aa372204 28v vs.85 29.aspx it said : If the counter path contains a wildcard character all counter names matching the wildcard character are added to the query so I wasn t sure if expansion is really needed .",
"I ve been looking at various http : www.dre.vanderbilt.edu mxiong tmp backup RTI Vanderbilt throughput internal PerfMon.cxx examples http : technet.microsoft.com en-us library aa371886 28v vs.85 29.aspx but I m not still sure if I m creating the query correctly or still what that COUNTER PATH is .",
"Can anybody give me an explanation",
"You probably want PdhAddEnglishCounter .",
"don t know what they were smoking when they dreamed up PdhAddCounter .",
"Who in the world understands what Proces opera Piekwaarde virtuele bytes means",
"PdhAddCounter adds named counters to an open query .",
"L Process Thread Count is such a name .",
"It s considered a path name as its syntax is hierarchical parts separated by similar to file paths .",
"The wildcard means that you want to add the thread counters for Process Foo Process Bar etc to get the total number of threads for all processes together .",
"If you re running two copie of foo.exe the second is Process Foo 1",
"Does it mean that in order to get the number of threads specific to a process of say pid 12 the COUNTER PATH should be Process 12 Thread Count",
"Clarified : you pass the program names .",
"Ah the information could be found on technet.microsoft.com en-us library cc780836 28v ws.10 29 http : technet.microsoft.com en-us library cc780836 28v ws.10 29 although the problem hasn t been resolved .",
"I ll look into it. .",
"Im trying to understand the performance API but I have a problem to understand the PdhGetFormattedCounterValue function and the dwFormat parameter .",
"How do I know which format to choose when calling this function",
"I found the PDH COUNTER INFO structure on MSDN and saw that this structure has a dwType member but I still not understand how to use this structure to get information about the counter format to successfully call the PdhGetFormattedCounterValue function .",
"You get to choose .",
"Many counters are calculated as fractions or they are scaled or both so they have fractional parts .",
"Which makes PDH FMT DOUBLE a good choice .",
"You could read all the documentation and work out which and then add two code paths to handle counters that might be fractional and counters that won t be fractional but this would be a lot of work for very little gain or none .",
"Just use PDH FMT DOUBLE .",
"But as you say the precision of bulk totals such as disk free space could be an issue .",
"Happily it isn t .",
"A double has 52 bits of significand .",
"For a counter reported in bytes this has room for 4 petabytes without any loss of precision .",
"But disk free space is reported in megabytes not bytes so a double can report up to 272 bytes or 4 zettabytes with no loss of precision .",
"And I m pretty sure you can t have a single volume bigger than 264 bytes ."
]
} | {
"confidence": [
49.98065185546875,
43.9583740234375,
41.02665328979492,
39.69667434692383,
37.047420501708984,
36.624141693115234,
35.537078857421875,
33.09135818481445,
31.049026489257812,
29.515907287597656,
19.472320556640625,
19.219257354736328,
15.864900588989258,
12.592921257019043,
11.29961109161377,
11.29961109161377
],
"content": [
"Question : Current Situation : .. . I m looking to try and measure the current CPU utilisation of my system in Hertz . I ve had a look at this answer http : stackoverflow.com a 64166 4343260 which addresses my question however I cannot seem to make the code work . This is my current code in main.cpp from the answer : .. . .. . The Problem : .. . The value returned from getCurrectValue is zero . Related Observations : .. . I have observed that the values in a and i of type PDH STATUS are both zero I speculate that this could be related to my lack of a value in CPUUsage although I m not sure why the function wouldn t be returning properly into these values . Additional information : .. . I haven t used PDH before . Comment : If you ve got 0 for the both status and despite this get zero CPU usage it s probably because of the minimal delay required for diplaying cpu rates see below the edit of my answer . . Comment : Just a couple of clarifications : 1 CPU usage in cycles sec doesn t really have any meaning in modern processors thus pdh gives of processor 2 the pdh commands provide estimates based upon OS activity and not the actual hardware performance counters . .. . Answer : No ugly statics status checks use of instances instead of global minimal include save even without unicode definition solution of Christophe plz rather upvote him than me built-in .",
"Question : Current Situation : .. . I m looking to try and measure the current CPU utilisation of my system in Hertz . I ve had a look at this answer http : stackoverflow.com a 64166 4343260 which addresses my question however I cannot seem to make the code work . This is my current code in main.cpp from the answer : .. . .. . The Problem : .. . The value returned from getCurrectValue is zero . Related Observations : .. . I have observed that the values in a and i of type PDH STATUS are both zero I speculate that this could be related to my lack of a value in CPUUsage although I m not sure why the function wouldn t be returning properly into these values . Additional information : .. . I haven t used PDH before . Comment : If you ve got 0 for the both status and despite this get zero CPU usage it s probably because of the minimal delay required for diplaying cpu rates see below the edit of my answer . . Comment : Just a couple of clarifications : 1 CPU usage in cycles sec doesn t really have any meaning in modern processors thus pdh gives of processor 2 the pdh commands provide estimates based upon OS activity and not the actual hardware performance counters . .. . Answer : It s a PdhAddCoutner https : msdn.microsoft.com en-us library windows desktop aa372204 28v vs.85 29.aspx is language dependent . You should use PdhAddEnglishCounter https : msdn.microsoft.com en-us library windows desktop aa372536 28v vs.85 29.aspx instead . EDIT : And you should have a minimal delay 500ms between the query ran in the init and the query in getvalue . Additional explanations : .. . .. . Running your code on my windows-8.1 system it turned out that in init the status i returned was PDH CSTATUS NO OBJECT which means that it didn t find the object Processor Total . I first thought there was a typo and verified the name of the object and the counter on Technet https : technet.microsoft.com en-us library cc938593.aspx . By curiosity I ran the original windows command perfmon.exe and noticed that all the objects and counter were translated in my native language . Running your code using the native language name of the counter gave me the correct result . About the timing constraint .. . .. . Once the language issue addressed debugging step by step I got meaningful values of my CPU usage . But once I removed the breakpoints I got either 0 or 100 . So I dug a little further in this issue to find out on microsoft support https : support.microsoft.com en-us kb 262938 that rates require some minimal delays between two consecutive queries . Once I added a Sleep 1000 at exit of init I got again meaningful CPU usage values .",
"Question : I need to check context switches for thread . I m writing function that return context switches from thread id . I m computing context-switch counts using the PDH library . I can get the thread context-switch count for all threads using this construction : .. . .. . where resultBuffer is Thread Total Total Context Switches sec .. . .. . What do I have to change Total Total .. . Answer : Some playing around with perfmon suggests that the format should be .. . .. . The thread ID you already have you can get the process name from the process ID using the answers to this question http : stackoverflow.com questions 4102569 get-process-name-from-process-id-win32 .",
"Question : Im trying to understand the performance API but I have a problem to understand the PdhGetFormattedCounterValue function and the dwFormat parameter . How do I know which format to choose when calling this function I found the PDH COUNTER INFO structure on MSDN and saw that this structure has a dwType member but I still not understand how to use this structure to get information about the counter format to successfully call the PdhGetFormattedCounterValue function . .. . Answer : You get to choose . Many counters are calculated as fractions or they are scaled or both so they have fractional parts . Which makes PDH FMT DOUBLE a good choice . Some counter types never have fractional parts . You could read all the documentation and work out which and then add two code paths to handle counters that might be fractional and counters that won t be fractional but this would be a lot of work for very little gain or none . Just use PDH FMT DOUBLE . Update .. . .. . For most counters the precision is only a concern during the calculation of the final value which happens within the PDH library . But as you say the precision of bulk totals such as disk free space could be an issue . Happily it isn t . A double has 52 bits of significand . For a counter reported in bytes this has room for 4 petabytes without any loss of precision . But disk free space is reported in megabytes not bytes so a double can report up to 272 bytes or 4 zettabytes with no loss of precision . And I m pretty sure you can t have a single volume bigger than 264 bytes . Memory use of processes and so is reported in bytes but the values are always multiples of the page-size 4096 bytes so the bottom 12 bits of any reported value are zero . Hence a double can represent a memory size of up to 264 bytes - i.e . the entire 64-bit memory space - without loss of precision . Precision isn t a problem . Just use PDH FMT DOUBLE . Comment : Hi I was thinking a bit about your comment and I think that I might get accuracy problems when using only doubles . On server systems with lots of RAM or with large HDDs this might get a problem . Comment : I updated my answer .",
"Question : What is the most efficient and fundamental way to get cpu-usage and network throughput on windows platform Correct Me If I m Wrong.. . .. . .. . 1 . windows api Win32 SDK c c++ sorry I have no idea.. . .. . 2 . Windows Management Instrumentation WMI .. . Win32 PerfFormattedData Tcpip NetworkInterface class BytesReceivedPerSec .. . Win32 PerfRawData PerfOS Processor class PercentProcessorTime .. . 3 . System.Diagnostics PerformanceCounter .. . 4 . Performance Data Helper PDH pdh.dll .. . 5 . PerformanceCounter c .net framework or another nowaday method 6 . NtQuerySystemInformation in ntdll.dll .. . .. . So what is the best way to get this values could I only import windows.h and kernel32.dll to get both cpu percent usage and network-interface speed values thanks .. . Answer : In C++ I would use PdhOpenQuery http : msdn.microsoft.com en-us library aa372652 28VS.85 29.aspx PdhAddCounter http : msdn.microsoft.com en-us library aa372204 28VS.85 29.aspx etc.. . http : msdn.microsoft.com en-us library aa373078 28VS.85 29.aspx Don t know for C but I guess there is something available in .NET .",
"Question : My code : .. . .. . I have this error : .. . .. . pdh error http : i.stack.imgur.com GRGV6.jpg .. . .. . English translate : .. . .. . Access point in procedure PdhAddEnglishCounterA not found in library DLL pdh.dll . If i m using PdhAddCounter instead of PdhAddEnglishCounter i see in Status : 0xC0000BC0 PDH CSTATUS BAD COUNTERNAME . What I need to do with this p.s . I m using Visual Studio 2010 on Windows XP . .. . Answer : The reason for your error as MSDN says http : msdn.microsoft.com en-gb library windows desktop aa372536 28v vs.85 29.aspx is that PdhAddEnglishCounter is not supported on Windows XP .. . .. . enter image description here http : i.stack.imgur.com DAxnT.png .. . .. . For PdhAddCounter the counter path has to be correctly localized . Refer to MSDN here http : msdn.microsoft.com en-gb library windows desktop aa373193 28v vs.85 29.aspx . You might want to consider PdhLookupPerfNameByIndex as an alternative again MSDN here http : msdn.microsoft.com en-us library windows desktop aa372648 28v vs.85 29.aspx . There is a useful article on the MS Knowledgebase http : support.microsoft.com scid kb en-us 287159 x 11 y 9 too .",
"Question : I want to calculate current cpu-usage for particular application in my code . I looked up on internet and found pdh library for windows . When I tried it I am getting overall cpu-usage not cpu-usage for one process . So what I do with this line to get cpu-usage for particular process I tried replacing Total with process name explorer . At that time I am getting 0 cpu-usage . But I checked in resource monitor that opening many windows at a time increased cpu-usage upto 20 . Still in log file cpu-usage is showing 0 . Can anyone help me with this thanks in advance . Comment : Can you post the solution you came up with .. . Answer : You need to use GetProcessTimes http : msdn.microsoft.com en-us library windows desktop ms683223 28v vs.85 29.aspx .. . .. . And unfortunately it won t give you the CPU usage it will give you the amount of CPU-time since the process started . So to get CPU usage you will need to take one sample store that and then take another sample a known amount of time later and then calculate the time and if you want to know the total usage you ll need to add the usertime and kerneltime together of course . Comment : Thanks for your response . But I think you didn t understand or I didn t explain well . Suppose chrome.exe is one process . At any time some process is taking some percentage of cpu usage.It is shown in resource monitor under cpu tab for every process individually . I want that number.I have separate thread for that . So I want cpu-usage for particular process i.e . chrome.exe in this case . And by total means overall cpu-usage consume by all process that we can see in task-manager . Comment : And what I suggested will give you that . You will have to do a little bit of coding to work out the percentage and the handle of the process you are interested in . Comment : I got another way to do it . Comment : @Darshan : You can post your solution as an answer to help others and also get points .",
"Question : What is the most efficient and fundamental way to get cpu-usage and network throughput on windows platform Correct Me If I m Wrong.. . .. . .. . 1 . windows api Win32 SDK c c++ sorry I have no idea.. . .. . 2 . Windows Management Instrumentation WMI .. . Win32 PerfFormattedData Tcpip NetworkInterface class BytesReceivedPerSec .. . Win32 PerfRawData PerfOS Processor class PercentProcessorTime .. . 3 . System.Diagnostics PerformanceCounter .. . 4 . Performance Data Helper PDH pdh.dll .. . 5 . PerformanceCounter c .net framework or another nowaday method 6 . NtQuerySystemInformation in ntdll.dll .. . .. . So what is the best way to get this values could I only import windows.h and kernel32.dll to get both cpu percent usage and network-interface speed values thanks .. . Answer : what is the best way .. . .. . Depends on the rest of the program . In .NET noting the C tag on the question both WMI and Performance Counters are easy to access . From Win32 API if you are using COM already WMI might be the easiest as reading Performance Data needs significant boilerplate code whatever API you start from . Comment : do you think there is any straight to the kernal method to collect this kind of values Comment : @user1045565 What do you mean by the kernel method Comment : could I only import windows.h and kernel32.dll to get both cpu percent usage and network-interface speed values Comment : i am not saying the win32asm MASM just asking the C C++ basic way to fetch the cpu info thanks Comment : @user1045565 Also consider Waiting To Be Deleted s answer but that does require Pdh.h and Pdh.lib these are part of the Windows SDK . Why the restriction to just Windows.h kernel32.dll",
"Question : I am trying to get around the old How do I get a Windows Performance Counter for the current process http : stackoverflow.com questions 4384240 how-do-i-get-a-windows-performance-counter-for-the-current-process issue . Basically I am enumerating Process Object instances http : msdn.microsoft.com en-us library aa372151.aspx to get a list of Process objects that I can then query for their process id and compare to my own . Based on this I can build a performance counter path using the correct instance index to create something similar to Process my program 3 counter that I can then use to query whatever counter it is that I am interested in . But what happens if one or more of the other instances of my program exit prior to the PdhAddCounter http : msdn.microsoft.com en-us library aa372204 28v VS.85 29.aspx call If I understand correctly this would mean that my counter path now refers to a different process or is now invalid . They might even disappear while querying for the process id.. . .. . .. . How do I prevent the counter path from becoming invalid before I can use it to get a counter handle Comment : I m pretty sure the path of an existing counter is not going to change . Instances may come and go and end up recycle identifiers and thus paths but as long as your instance lives I m pretty sure it will have the same identifier and thus path . I would be shocked if this were not the case . Comment : @Luke : Unfortunately paths do become invalid . This is easily proven by opening the program in the debugger when another instance has already been started then stepping through to allow the program to determining the correct instance 1 then manually closing the first instance followed by stepping again to allow the program to query the counters - they won t work . .. . Answer : Wow you are right . This seems like a major design flaw to me . Basically it is impossible to reliably monitor an instance if it s name is not unique . I did stumble across a workaround http : msdn.microsoft.com en-us library aa372175 28v VS.85 29.aspx specifically for the Process and Thread objects but that s a global setting that could affect other applications . I think the safest way to do this would be to watch all process objects and each time you collect the data go through and find the one with the desired Process Id . Comment : The workaround might affect other applications so that won t fly as you yourself point out . Would monitoring all processes help at all As far as I can tell there is no way of mapping an open counter to what process it belongs-to . Comment : I don t think you can do this with PdhAddCounter . Maybe you can use the registry interface to collect multiple counters for all processes in that case I believe the counters will be stored sequentially for each object and you can figure it out from there . I may be wrong though I am thinking about this from the perspective of a provider which I recently implemented . Haven t ever written consumer code . Comment : MSDN states : You should not use the registry functions to consume counter data . Comment : That s a recommendation not a mandate . The PDH API is more straightforward to use but the registry API is more capable at the expense of difficulty and tediousness . Comment : An explanation for the downvote would be appreciated .",
"Question : I want to calculate current cpu-usage for particular application in my code . I looked up on internet and found pdh library for windows . When I tried it I am getting overall cpu-usage not cpu-usage for one process . So what I do with this line to get cpu-usage for particular process I tried replacing Total with process name explorer . At that time I am getting 0 cpu-usage . But I checked in resource monitor that opening many windows at a time increased cpu-usage upto 20 . Still in log file cpu-usage is showing 0 . Can anyone help me with this thanks in advance . Comment : Can you post the solution you came up with .. . Answer : You can check this http : www.codeproject.com Articles 87529 Calculate-Memory-Working-Set-Private-Programmatica for example . Explained everything in that project . It will give memory based on process id same way shown in task manager .. . .. . Thanks Darshan Comment : What has this to do with the original question You asked for CPU usage not memory.. . Comment : Memory usage and CPU usage are two vastly vastly different things . Comment : oops. . sorry. . my bad. . Let me check what I did exactly to solve this problem as I don t remember right now and get back to this post again .",
"Question : i am currently trying to make some sort of CPU usage overview for my DirectX program but it seems that i am not able to get this information through PdhAddCounter . My code looks like this : .. . .. . After the PdhAddCounter call my status is -1073738824 wich causes the program to fail . Im using a Windows 7 64bit system do i have to make something different in a 64bit environment Thanks for any help . .. . Answer : Remember : PdhAddCounter is locale sensible . The response -1073738824 means PDH CSTATUS NO OBJECT 0xC0000BB8 . The api didn t find that string . Are you using a non-english OS If you need to do a Windows XP compatible application you need to use a workaround like this : http : en.verysource.com code 3604946 1 platforminfo.cpp.html . For Vista and Windows 7 8 .. . you can use PdhAddEnglishCounter instead .",
"Question : i am currently trying to make some sort of CPU usage overview for my DirectX program but it seems that i am not able to get this information through PdhAddCounter . My code looks like this : .. . .. . After the PdhAddCounter call my status is -1073738824 wich causes the program to fail . Im using a Windows 7 64bit system do i have to make something different in a 64bit environment Thanks for any help . .. . Answer : You may also want to use GetSystemTimes http : msdn.microsoft.com en-us library windows desktop ms724400 28v vs.85 29.aspx kernel32 API which will free you from the dependency on pdh.dll . See my answer here http : stackoverflow.com questions 448811 calculate-total-cpu-usage 20324308 20324308 .",
"Question : I am programming a client to collect performance data from windows machines . This data will be send to a central server storing the information and displaying it graphically . I am using the windows performance API to collect the system data . But now I have a little problem . The server needs to know how the data I send is related to each other and I can t find anything useful on the web about CPU counters . My question is how these counters stand in relation to each other . Example .. . .. . processor time + idle time 100 .. . .. . This is not too hard to find out but I cannot find any information on the other percentage values like interrupt time privileged time or user time . How stand these in relation to the processor time for example . The ultimate goal is to add all these values and get 100 at the end . Thank you in advance and sorry for my english I hope my question is clear . .. . Answer : This article makes clear http : technet.microsoft.com en-us library cc750967.aspx in the paragraph ending would be 15 that .. . .. . Privileged Time + User Time + Idle Time 100 .. . .. . Which implies that all the other CPU time measurements are subsets of one of these three measures . The Counter Description in perfmon describes the relationship for most of them for example : .. . .. . DPC Time is a component of Privileged Time because DPCs are executed in privileged mode . Interrupt Time isn t documented like this but it is plainly also a component of privileged time . Comment : Hi I am still testing . It seems that I get incorrect results when calculating Privileged Time + User Time + Idle Time because of rounding accuracy issues . I then used only raw counters to calculate the percentages and I came closer to 100 99.98 is what I get . But I am still trying to calculate the total privileged time from other values since I am not 100 sure which values relate to privileged time . Comment : That s expected . The counters aren t entirely accurate so they won t sum to exactly 100 . I don t think you can assemble privileged time from other counters . It would be something like dpc time + interrupt time + other undistinguished privileged time and the latter isn t a separate counter . Comment : Yes I guess i can t get these kind of details on windows . Thank you for your answers .",
"Question : There was a similar thread about this here http : stackoverflow.com questions 4156474 how-can-i-programmatically-get-thread-counts-for-a-windows-process and I tried to implement it myself . i.e . Trying to get the number of threads running in the server using c++ library . May I know exactly what COUNTER PATH is e.g . Process Thread Count in the given link http : stackoverflow.com questions 4156474 how-can-i-programmatically-get-thread-counts-for-a-windows-process What does it mean to make a string with that and the pid number The following is what I have wrote so far without really understanding anything : .. . .. . Also the solution given in the link above says to expand the wildcard path but when I checked the PdhAddCounter page http : technet.microsoft.com en-us library aa372204 28v vs.85 29.aspx it said : If the counter path contains a wildcard character all counter names matching the wildcard character are added to the query so I wasn t sure if expansion is really needed . I ve been looking at various http : www.dre.vanderbilt.edu mxiong tmp backup RTI Vanderbilt throughput internal PerfMon.cxx examples http : technet.microsoft.com en-us library aa371886 28v vs.85 29.aspx but I m not still sure if I m creating the query correctly or still what that COUNTER PATH is . Can anybody give me an explanation Comment : You probably want PdhAddEnglishCounter . don t know what they were smoking when they dreamed up PdhAddCounter . Who in the world understands what Proces opera Piekwaarde virtuele bytes means .. . Answer : PdhAddCounter adds named counters to an open query . L Process Thread Count is such a name . It s considered a path name as its syntax is hierarchical parts separated by similar to file paths . The wildcard means that you want to add the thread counters for Process Foo Process Bar etc to get the total number of threads for all processes together . If you re running two copie of foo.exe the second is Process Foo 1 Comment : Does it mean that in order to get the number of threads specific to a process of say pid 12 the COUNTER PATH should be Process 12 Thread Count Comment : Clarified : you pass the program names . Comment : Ah the information could be found on technet.microsoft.com en-us library cc780836 28v ws.10 29 http : technet.microsoft.com en-us library cc780836 28v ws.10 29 although the problem hasn t been resolved . I ll look into it. .",
"Question : Performance counter names in Windows are localized so for instance the counter Processor Total Processor Time is called something else in other language versions of Windows . This means that in order to find the correct name one must first find the index of the counter and then use the PdhLookupPerfNameByIndex http : msdn.microsoft.com en-us library aa372648 28v VS.85 29.aspx function to get the localized name using PdhAddEnglishCounter http : msdn.microsoft.com en-us library aa372536 28v VS.85 29.aspx is out if Windows XP should be supported . This is all good for the performance object Processor and counter Processor Time parts of the counter path above but what about the instance name Total I cannot find this string in the registry so I suppose that it is provided by whatever system component that provides the information . Is the instance name for system provided performance counters guaranteed to be the same across different language versions of Windows .. . .. . If not how can I determine which instance corresponds to the Total instance .. . Answer : According to this support KB http : support.microsoft.com kb 287159 only the objects and counters have friendly names : .. . .. . However instances do not have a user friendly name in each language . So this leads me to believe that instance names for a given counter are obtained either dynamically e.g . ProcessId for a process or statically e.g . hard-coded . Of course there is nothing stopping somebody from hard-coding Total in an English build and something else in a German build though it seems the common practice is to keep the language stuff confined to the registry and deal with the objects and counters by index and the instances by dynamic or static names . I think Microsoft consistently uses Total as I ve seen it on a few foreign language installs .",
"Question : Performance counter names in Windows are localized so for instance the counter Processor Total Processor Time is called something else in other language versions of Windows . This means that in order to find the correct name one must first find the index of the counter and then use the PdhLookupPerfNameByIndex http : msdn.microsoft.com en-us library aa372648 28v VS.85 29.aspx function to get the localized name using PdhAddEnglishCounter http : msdn.microsoft.com en-us library aa372536 28v VS.85 29.aspx is out if Windows XP should be supported . This is all good for the performance object Processor and counter Processor Time parts of the counter path above but what about the instance name Total I cannot find this string in the registry so I suppose that it is provided by whatever system component that provides the information . Is the instance name for system provided performance counters guaranteed to be the same across different language versions of Windows .. . .. . If not how can I determine which instance corresponds to the Total instance .. . Answer : Luke is correct . In order to get the localized version of Processor Total Processor Time we have to get the localized names of each of the components of the path Processor and Processor Time with the Total being constant . The indexes can vary across OS versions so you have to discover them on each run . The win32pyutil module contains methods that will load the english-to-index map but retains it and since it s not small if you only need it once then that can be a memory waster . We use the following : .. . .. . To construct the counter name : .. . .. . which yields the desired value . e.g . Processore Total Tempo Processore in Italian ."
]
} | [
"yes-answer-long",
"yes-answer-short"
] | telecommunication | UNK_RELATION |
jasmine-npm@jasmine@78 | jasmine-npm -- the jasmine module is a package of helper code for developing @placeholder projects for node.js . | {
"confidence": [],
"content": []
} | {
"confidence": [],
"content": []
} | [
"yes-answer-long",
"yes-answer-short"
] | jasmine | UNK_RELATION |
csound@audio@36 | csound -- csound is a sound design @placeholder synthesis and signal-processing system providing facilities for music composition and performance on all major operating systems and platforms . | {
"confidence": [
49.03263854980469,
49.03263854980469,
47.55125427246094,
47.55125427246094,
47.05600357055664,
44.9536247253418,
44.671871185302734,
44.303382873535156,
43.63452911376953,
43.38948440551758,
43.328712463378906,
43.22545623779297,
43.05158233642578,
43.05158233642578,
43.05158233642578,
43.05158233642578,
43.05158233642578,
41.789756774902344,
41.789756774902344,
41.42667007446289,
41.42667007446289,
39.55790328979492,
39.55790328979492,
39.55790328979492,
39.55790328979492,
39.55790328979492,
38.296077728271484,
38.296077728271484,
38.296077728271484,
37.70987319946289,
37.142635345458984,
36.75398254394531,
36.44804763793945,
36.44804763793945,
36.2877311706543,
34.85193634033203,
34.85193634033203,
34.85193634033203,
34.85193634033203,
34.85193634033203,
34.85193634033203,
34.85193634033203,
34.85193634033203,
34.85193634033203,
33.590110778808594,
33.590110778808594,
33.590110778808594,
33.49139404296875,
33.49139404296875,
30.760108947753906,
30.7099609375,
30.7099609375,
30.64795684814453,
28.74591064453125,
28.74591064453125,
28.201580047607422,
27.484085083007812,
27.484085083007812,
27.145633697509766,
26.939754486083984,
24.4323673248291,
23.429973602294922,
22.038272857666016,
21.95465660095215,
21.291160583496094,
19.988094329833984,
19.988094329833984,
19.872512817382812,
18.726268768310547,
17.926258087158203,
17.926258087158203,
17.886659622192383,
17.886659622192383,
17.512136459350586,
17.422666549682617,
17.235475540161133,
17.235475540161133,
17.235475540161133,
17.235475540161133,
17.235475540161133,
17.235475540161133,
17.235475540161133,
17.235475540161133,
17.235475540161133,
17.235475540161133,
17.235475540161133,
17.235475540161133,
17.235475540161133,
16.761743545532227,
16.27674102783203,
15.42763900756836,
15.42763900756836,
15.42763900756836,
15.334493637084961,
15.303423881530762,
15.249410629272461,
14.903894424438477,
14.582030296325684,
14.392037391662598,
14.392037391662598
],
"content": [
"Users have compiled Csound for RPi and there are instructions for building Csound on RPi at 1 .",
"1 - https : github.com csound csound blob develop BUILD.md",
"Thanks for the answer and for csound itself .",
"I don t know csound .",
"The sound engine I chose to use is CSound 6 and it s C++ API .",
"i m looking at Csound-iOS-6.07.0 examples .",
"Csoundo is a library for Processing so that you can use Csound technology inside of Processing and create your own graphic instruments .",
"I am currently working on a multi channel audio convolver using Csound .",
"I m part of the Csound mailing list username : Cacophony7 .. . .. . http : csound.1045644.n5.nabble.com Trying-to-get-Csoundo-Processing-library-to-work-on-Windows-7-td5639076.html",
"However the CSound manuals give little to no information about the use of the 32-bit libraries other than the few words spent on this http : floss.booktype.pro csound a-the-csound-api page .",
"Meh I fixed it for now by picking no inputs in the config as suggested in http : csound.1045644.n5.nabble.com Csound-QiuteCsound-problem-td3231424.html .",
"You could try going to sourceforge.net projects csound http : sourceforge.net projects csound and downloading it manually .",
"There appears to be a serious lack of information for csound c++",
"I am currently looking into using CSound for a project .",
"Is there a way to create audio units from a CSound file",
"Simply link-to the Csound framework in your Xcode project .",
"If you have csound compiled for arm then you re fine .",
"This can also be done in native Csound code .",
"Isn t Csound capable of doing the analysis for you",
"You could try using the unix command http : aam.mathematik.uni-freiburg.de IAM Info locdocu Csound 6 a.html for csound provided you have it installed .",
"Csound by itself doesn t offer this functionality in a simple way but you could use the python or lua opcodes to run code within Csound .",
"I have just discovered csound and installed its C++ bindings .",
"@Drakosha and @Paul R : why couldn t you create the csound tag",
"There are also a few examples in the Csound source code in the examples and frontends folders .",
"I m currently working on an app that uses the Mobile Csound API to create a synthesizer .",
"Or at least endpoints where I can connect XCode IB to a Csound file",
"My CSound instrument updates a handful of parameters via MIDI controller messages .",
"Is there a CSound way to do this other than building it from Python opcodes",
"I saw libraries such as csound and stk and it appears that the sounds they produced are synthesized i.e .",
"I know exists CSOUND http : www.csounds.com but I don t know how to call it from PHP and if exists a CSOUND API for PHP as I found one in language C .",
"Csound can be compiled for different CPU architectures and it can also be compiled to use either 32-bit float or 64-bit double floating-point precision for its signal-processing .",
"I am not sure about the Android API to Csound but if there s a function called sendscore it sounds like the right one .",
"Shortly phrased how do I get Python to send data to a CSound .csd file how do I read the data in the .csd file and how do I send a .wav file from CSound to Python",
"sending parameter values from python to csound could be done using the osc protocol .. . .. . sending audio from csound to python could be done by routing jack channels between the two applications",
"I ve looked at the examples that come with Csound for android but I want to call it without using the UI widgets that all the examples seem to be about .",
"I was thinking about to create a score and partiture file and then execute it launching csound from unix command .",
"So I am wondering.. . Is it possible for CSound to receive a data feed via the Internet",
"If I recall correctly this was discussed on the Csound mailing list maybe it s possible with Csound6 .",
"Or you could use Csound from the python or other language API and control things from there .",
"I know Objective-C and CSound but I am not a low-level DSP programmer .",
"Thanks Rory - and would the end user - for an AU compiled with this framework - need Csound installed separately",
"Peter do you think the RPi isn t capable of running a few simple csound synths in parallel",
"Right now I m just wondering where csound would get its routines if installed on a 32bit Windows setup .",
"A pre-compiled Csound appropriate for your CPU architecture should be available from apt repositories .",
"I am currently working on a specialization project on simulating guitar effects with Evolutionary Algorithms and want to use Python and CSound to do this .",
"You might also want to use the csPerfThread wrapper class which can schedule messages to and from Csound when it is running .",
"It s worked on my mums computer a minute ago by installing csound and automatically pops up in help modules .",
"I cannot believe that any scaling is done by Csound in the case you describe so I see two possibilities for the difference in the scalemax value : .. . 1 The input files have these different maxima .",
"Have also provided a screenshot of the scaling that occurs that can be viewed in the terminal output of csound : dropbox.com sh q5hw3c3aa5jmvk0 AAAOne2ZeLTfV4snhiKV7p7qa dl 0 https : www.dropbox.com sh q5hw3c3aa5jmvk0 AAAOne2ZeLTfV4snhiKV7p7qa dl 0",
"The bin folder inside my CSound installation folder contains the following files that might have something to do with it but after trying all of them they do not seem to be the library I m looking for : .. . .. . So please please help me with this .",
"You can use Csound s python API so you can run Csound within python and pass values using the software bus .",
"I already have looked a bit into the Python API so I think I will be able to send the parameters to CSound without too much trouble .",
"I haven t used csound in quite some years after installing the latest non-RC version 6.03.2 on Windows 7 I was unpleasantly surprised that I get no audio from it anymore .",
"I also think I figured out what I misunderstood : It is not actually the targeted architecture which is 64 or 32-bit but it is the precision of the values that go in and out of csound .",
"There is a symbol one can set by adding a parameter to the linker -DUSE DOUBLE which tells csound to use double-precision values 32-bit instead of 64 bit floating-point values .",
"When trying cabal-install hcsound I get following .. . .. . I have libcsound64-dev of version 1 : 6.02 dfsg-2 which installs csound.h into usr include csound so I did following : .. . .. . In that case configuring is done nicely but I get errors on build stage : .. . .. . Some of the mentioned function names are present in usr include csound csound.h some are not .",
"But I haven t found a way to send the audio file from CSound to Python it doesn t seem to have any easy built-in function for it correct me if I m wrong I may have overlooked it .",
"qjackctl and jackd are also ported to windows there is an article in the csoundjournal that shows how to connect csound to ableton-live using jack csounds.com journal issue14 csoundlivecsound.html http : www.csounds.com journal issue14 csoundlivecsound.html",
"You probably need to send a string like : .. . .. . This means turn on instrument 1 now time 0 for 10 seconds You may want to use more values if your instrument is set up for it using what are called p-fields in Csound .",
"The idea is to generate effect parameters in my algorithm in Python send them to CSound and apply the filter to the audio file then send the new audio file back to Python to perform frequency analysis for comparison with the target audio file this will be done in a loop till the audio file is similar enough to the target audio file so sending receiving between CSound and Python will be done alot .",
"Just music",
"Alternatively you could import both channels into the table using a stereo sound file .",
"You should take a look at how to build Processing libraries.. . .. . .. . http : code.google.com p processing wiki LibraryGuidelines .. . .. . There are templates and more.. . .. . .. . http : code.google.com p processing w list",
"I m just trying to get Csoundo to work on Processing .",
"If you haven t seen this already check out Julius Smith s excellent and comprehensive book Physical Audio Signal Processing https : ccrma.stanford.edu jos pasp Time Varying Delay Effects.html",
"Is possible to generate a sound in PHP with a defined note pitch and duration",
"I want to receive data from an external source that is then used to manipulate a sound .",
"I ve done some basic read-ups on DSP and audio synthesis but I m no expert in it .",
"Currently I am using audio samples of the guitar sound .",
"You can use open-source audio processing libraries .",
"The processing can be done by these libraries or you use one of your own .",
"My intention is to use the library go produce sound output from Haskell program so if anyone suggests better solution it would also be great .",
"I already failed to install haskore-supercollider I have haskore package but did not managed to get if it can produce sound in real-time .",
"The STK does have effects classes as well not just synthesis classes JCRev is one for reverb but I would highly recommend staying away from it as they are really hard to compile and maintain .",
"I d like to allow the user to apply pitch-shifting or wah-wah compression on the guitar sound being played .",
"I am creating two ftables and loading two different IR s 2048 points long into them at a sample rate of 48kHz .",
"I am using the first gen function table commands iRL ftgen 0 0 2048 -1 IRL.wav 0 0 0 and iRR ftgen 0 0 2048 -1 IRR.wav 0 0 0 .",
"One problem i currently have is setting the function table number to negative -1 does stop scaling but each ftable is scaled differently .",
"One scalemax value is 0.155 and the other 0.145 .",
"I wanted to know how I can completely stop this scaling from occurring so both the IR s are not scaled and loaded into the table .",
"I think what you do is correct although you do not set the function table number to negative -1 but the GEN number which is 1 for normalising and -1 for simple copy .",
"This is very likely if they are real stereo impulse responses .",
"2 Make sure you really import a mono audio file into the table .",
"If IRL.wav has more than one channel you will get mess .",
"Just as a side note I was wondering if you don t need global-variables for the tables giRL and giRR rather than iRL and iRR .",
"Both the files being used are recorded stereo Impulse response files and I am trying to apply a real-time true stereo convolution filter .",
"I have attached a link-to my code here .",
"Have made the variables global but still no difference in the scaling .",
"It seems this article is about it : Tools for Real-time Spectral Processing pvs opcodes http : www.csounds.com manual html SpectralRealTime.html",
"Then you can access all or Csound s API s functions .",
"If you are on a linux system the easiest way is to use qjackctl and simply draw a connection between the too applications",
"I am working in Windows 7 and woun t be switching to a linux system anytime soon .",
"I tried installing on a windows system with pip install --allow-unverified csnd csnd you need it twice.. . and it failed .",
"All functionality is available from python .",
"Edited to add : since it seem that the adc s is are causing some kind of problem for PortAudio which don t show up via play through rendered file because presumably it doesn t try to initialize the adcs when playing that way I ve uninstalled ASIO4ALL and rebooted but still no luck playing directly I just get a more cryptic log now because it lists no adcs at all but still doesn t get past enumerating those non-existing adcs now : .. . .. . This with direct run Ctrl+R playing via rendered file Alt+F still works as before .",
"I have something implemented but it is inefficient it get 100 of the CPU processing it is probably because it is coded incorrectly .",
"Also this is my first post on stackoverflow for it has answered all my previous questions by proxy for which I m eternally grateful of course .",
"Would a PureData program hit the CPU at all when not busy changing patches",
"It seems to me that most books are based on Java 6 .",
"I know next to nothing about Java ."
]
} | {
"confidence": [
67.60286712646484,
64.13233947753906,
61.15946960449219,
59.92229461669922,
59.10466384887695,
57.45892333984375,
55.10273361206055,
53.36955261230469,
53.331520080566406,
52.30051803588867,
50.4732551574707,
50.47174072265625,
47.70020294189453,
47.19630432128906,
46.804595947265625,
42.520179748535156,
38.59645080566406,
13.763617515563965
],
"content": [
"Question : I am currently looking into using CSound for a project . I want to receive data from an external source that is then used to manipulate a sound . So I am wondering.. . Is it possible for CSound to receive a data feed via the Internet This data would change a variable which then manipulates sounds . The sockrecv http : www.csounds.com manual html sockrecv.html function seems to be what could do this but I am not sure what kind of data it accepts - anything Just music Or is there some other function that can do this Or could one just use something from C C++ Comment : If I recall correctly this was discussed on the Csound mailing list maybe it s possible with Csound6 . .. . Answer : Csound by itself doesn t offer this functionality in a simple way but you could use the python or lua opcodes to run code within Csound . Or you could use Csound from the python or other language API and control things from there .",
"Question : I m probably missing something truly essential in my CSound6 API adventures . I ve scoured the internets for answers but without luck . Also this is my first post on stackoverflow for it has answered all my previous questions by proxy for which I m eternally grateful of course . Here she goes : .. . .. . I m developing a standalone sampler synthesizer step sequencer based on a Raspberry Pi 2 think of the good old Electribe SX MX . The GUI is based on SDL2 which I got going after some struggling . The sound engine I chose to use is CSound 6 and it s C++ API . Of course because of the Raspberry Pi being a 32-bit platform I should link against 32-bit libraries . However the CSound manuals give little to no information about the use of the 32-bit libraries other than the few words spent on this http : floss.booktype.pro csound a-the-csound-api page . Of course that would have been enough if libcsound.a or csound.dll or something alike would exist . I ve got everything going with csound64 linked but I m pretty sure that she ll disappoint me when actually compiling for the Raspberry . The bin folder inside my CSound installation folder contains the following files that might have something to do with it but after trying all of them they do not seem to be the library I m looking for : .. . .. . So please please help me with this . Even if you re in the same trouble leave a note . Thanks for your help in advance Comment : RPi uses an ARM CPU not a 32bit x86.. . Pretty sure you don t want to run Windows binaries under an x86 emulator although maybe you could and still manage realtime audio Comment : No I m targeting armhf linux in the end and I might extend this with either a realtime or a preemptive kernel . I also figured that I do not need a specific 32bit library when I finally Cross-compile or compile on the RPi itself . Peter do you think the RPi isn t capable of running a few simple csound synths in parallel Right now I m just wondering where csound would get its routines if installed on a 32bit Windows setup . Just not wondering enough to actually install one and see Comment : I don t know csound . My point was that you can t use Windows DLLs . If you have csound compiled for arm then you re fine . It doesn t matter what you develop with as long as your code is portable between 64 and 32bit Comment : Thanks I figured this . I also think I figured out what I misunderstood : It is not actually the targeted architecture which is 64 or 32-bit but it is the precision of the values that go in and out of csound . There is a symbol one can set by adding a parameter to the linker -DUSE DOUBLE which tells csound to use double-precision values 32-bit instead of 64 bit floating-point values . Comment : Yes 64 vs 32-bit refers to size of pointers integers . Float vs double is a separate thing . .. . Answer : Csound can be compiled for different CPU architectures and it can also be compiled to use either 32-bit float or 64-bit double floating-point precision for its signal-processing . Users have compiled Csound for RPi and there are instructions for building Csound on RPi at 1 . A pre-compiled Csound appropriate for your CPU architecture should be available from apt repositories . Development headers should also be available as a separate development package . 1 - https : github.com csound csound blob develop BUILD.md Comment : Thanks Steven welcome to stackoverflow",
"Question : Is possible to generate a sound in PHP with a defined note pitch and duration I know exists CSOUND http : www.csounds.com but I don t know how to call it from PHP and if exists a CSOUND API for PHP as I found one in language C . .. . Answer : I don t think there is a standard api or package for it . You could try using the unix command http : aam.mathematik.uni-freiburg.de IAM Info locdocu Csound 6 a.html for csound provided you have it installed . Comment : I was thinking about to create a score and partiture file and then execute it launching csound from unix command .",
"Question : It seems to me that most books are based on Java 6 . I know next to nothing about Java . I m just trying to get Csoundo to work on Processing . Csoundo is a library for Processing so that you can use Csound technology inside of Processing and create your own graphic instruments . I m part of the Csound mailing list username : Cacophony7 .. . .. . http : csound.1045644.n5.nabble.com Trying-to-get-Csoundo-Processing-library-to-work-on-Windows-7-td5639076.html .. . Answer : Yes it will help but you might not not need to learn that much . You should take a look at how to build Processing libraries.. . .. . .. . http : code.google.com p processing wiki LibraryGuidelines .. . .. . There are templates and more.. . .. . .. . http : code.google.com p processing w list",
"Question : I am currently working on a specialization project on simulating guitar effects with Evolutionary Algorithms and want to use Python and CSound to do this . The idea is to generate effect parameters in my algorithm in Python send them to CSound and apply the filter to the audio file then send the new audio file back to Python to perform frequency analysis for comparison with the target audio file this will be done in a loop till the audio file is similar enough to the target audio file so sending receiving between CSound and Python will be done alot . Shortly phrased how do I get Python to send data to a CSound .csd file how do I read the data in the .csd file and how do I send a .wav file from CSound to Python It is also preferred that this can work dynamically on its own till the criterions for the audio file is met . Thanks in advance Comment : Isn t Csound capable of doing the analysis for you It seems this article is about it : Tools for Real-time Spectral Processing pvs opcodes http : www.csounds.com manual html SpectralRealTime.html .. . Answer : sending parameter values from python to csound could be done using the osc protocol .. . .. . sending audio from csound to python could be done by routing jack channels between the two applications Comment : I will look at the osc protocol although I am not familiar with routing jack channels between two applications . Comment : If you are on a linux system the easiest way is to use qjackctl and simply draw a connection between the too applications Comment : I am working in Windows 7 and woun t be switching to a linux system anytime soon . Comment : qjackctl and jackd are also ported to windows there is an article in the csoundjournal that shows how to connect csound to ableton-live using jack csounds.com journal issue14 csoundlivecsound.html http : www.csounds.com journal issue14 csoundlivecsound.html",
"Question : I am currently working on a specialization project on simulating guitar effects with Evolutionary Algorithms and want to use Python and CSound to do this . The idea is to generate effect parameters in my algorithm in Python send them to CSound and apply the filter to the audio file then send the new audio file back to Python to perform frequency analysis for comparison with the target audio file this will be done in a loop till the audio file is similar enough to the target audio file so sending receiving between CSound and Python will be done alot . Shortly phrased how do I get Python to send data to a CSound .csd file how do I read the data in the .csd file and how do I send a .wav file from CSound to Python It is also preferred that this can work dynamically on its own till the criterions for the audio file is met . Thanks in advance Comment : Isn t Csound capable of doing the analysis for you It seems this article is about it : Tools for Real-time Spectral Processing pvs opcodes http : www.csounds.com manual html SpectralRealTime.html .. . Answer : You can use Csound s python API so you can run Csound within python and pass values using the software bus . See csound.h . You might also want to use the csPerfThread wrapper class which can schedule messages to and from Csound when it is running . All functionality is available from python . Comment : I already have looked a bit into the Python API so I think I will be able to send the parameters to CSound without too much trouble . But I haven t found a way to send the audio file from CSound to Python it doesn t seem to have any easy built-in function for it correct me if I m wrong I may have overlooked it .",
"Question : I know Objective-C and CSound but I am not a low-level DSP programmer . Is there a way to create audio units from a CSound file Or at least endpoints where I can connect XCode IB to a Csound file I know about Cabbage already that makes VSTs but I hate being tied into someone else s code . Comment : what do you mean with audio units .. . Answer : Sure it s pretty trivial to do this . Simply link-to the Csound framework in your Xcode project . Then you can access all or Csound s API s functions . https : csound.github.io docs api index.html I think there is also a chapter in the the Audio Programming book about doing this . And you can also check out : https : github.com eddyc CsoundAU Comment : Thanks Rory - and would the end user - for an AU compiled with this framework - need Csound installed separately",
"Question : I am currently working on a multi channel audio convolver using Csound . I am creating two ftables and loading two different IR s 2048 points long into them at a sample rate of 48kHz . I am using the first gen function table commands iRL ftgen 0 0 2048 -1 IRL.wav 0 0 0 and iRR ftgen 0 0 2048 -1 IRR.wav 0 0 0 . One problem i currently have is setting the function table number to negative -1 does stop scaling but each ftable is scaled differently . One scalemax value is 0.155 and the other 0.145 . I wanted to know how I can completely stop this scaling from occurring so both the IR s are not scaled and loaded into the table . .. . Answer : I think what you do is correct although you do not set the function table number to negative -1 but the GEN number which is 1 for normalising and -1 for simple copy . I cannot believe that any scaling is done by Csound in the case you describe so I see two possibilities for the difference in the scalemax value : .. . 1 The input files have these different maxima . This is very likely if they are real stereo impulse responses . 2 Make sure you really import a mono audio file into the table . If IRL.wav has more than one channel you will get mess . Alternatively you could import both channels into the table using a stereo sound file . Just as a side note I was wondering if you don t need global-variables for the tables giRL and giRR rather than iRL and iRR . Comment : Both the files being used are recorded stereo Impulse response files and I am trying to apply a real-time true stereo convolution filter . I have attached a link-to my code here . Have made the variables global but still no difference in the scaling . Have also provided a screenshot of the scaling that occurs that can be viewed in the terminal output of csound : dropbox.com sh q5hw3c3aa5jmvk0 AAAOne2ZeLTfV4snhiKV7p7qa dl 0 https : www.dropbox.com sh q5hw3c3aa5jmvk0 AAAOne2ZeLTfV4snhiKV7p7qa dl 0",
"Question : I ve looked at the examples that come with Csound for android but I want to call it without using the UI widgets that all the examples seem to be about . I know about how to load up an instrument but how do I ask it to play a note of a specified frequency Do I use sendscore Cheers . .. . Answer : I am not sure about the Android API to Csound but if there s a function called sendscore it sounds like the right one . You probably need to send a string like : .. . .. . This means turn on instrument 1 now time 0 for 10 seconds You may want to use more values if your instrument is set up for it using what are called p-fields in Csound . The C API functions for this are : .. . .. . Check out : .. . .. . http : csound.github.io docs api group CONTROLEVENTS.html http : csound.github.io docs api group SCOREHANDLING.html",
"Question : I have just discovered csound and installed its C++ bindings . The API is documented here after a usual installation on Linux : .. . .. . However what I am missing is a good tutorial to get me started with the API . Comment : Did u try to google Comment : There s a whole bunch of tutorials here : csounds.com tootsother index.html http : www.csounds.com tootsother index.html Comment : None of the tutorial you link-to are relevant to the c++ API . @Drakosha and @Paul R : why couldn t you create the csound tag I can t do it myself . Comment : @Drakosha : thank you for the down vote . Yes I did try to google it but google interprets C++ as simply C which comes often in many result as representing the musical note C . Google is not the answer to everything . Comment : There appears to be a serious lack of information for csound c++ Do let us know if you find anything as I m struggling with the same issue at the moment.. . .. . Answer : Here s an introduction to C API pdf http : www.csounds.com articles RoryWalsh CsoundAPI.pdf which is practically the same as the C++ API . There are also a few examples in the Csound source code in the examples and frontends folders . Comment : Thanks for the answer and for csound itself . To welcome you at S.O . here is a gift of your first 25 points . :",
"Question : null .. . Answer : I m trying to build hCsound-0.4.2 on Debian-linux machine it seems that since 2012 latest version there were some changes in csound.h file but I m not sure . When trying cabal-install hcsound I get following .. . .. . I have libcsound64-dev of version 1 : 6.02 dfsg-2 which installs csound.h into usr include csound so I did following : .. . .. . In that case configuring is done nicely but I get errors on build stage : .. . .. . Some of the mentioned function names are present in usr include csound csound.h some are not . Is there a possibility that c2hs processes wrong header What can be done to find out possible reasons for incorrect behaviour Has someone experience of building hCsound recently My intention is to use the library go produce sound output from Haskell program so if anyone suggests better solution it would also be great . I already failed to install haskore-supercollider I have haskore package but did not managed to get if it can produce sound in real-time . Comment : Ah I haven t tried to build hCsound recently . Could you please upload your csound.h somewhere and post a link and I ll debug it Comment : @JohnL here I pasted csound.h along with some info about its version : pastebin.com vFu2YrGq http : pastebin.com vFu2YrGq",
"Question : I am building an iOS app that allows the user to play guitar sounds - e.g . plucking or strumming . I d like to allow the user to apply pitch-shifting or wah-wah compression on the guitar sound being played . Currently I am using audio samples of the guitar sound . I ve done some basic read-ups on DSP and audio synthesis but I m no expert in it . I saw libraries such as csound and stk and it appears that the sounds they produced are synthesized i.e . not played from audio samples . I am not sure how to apply them or if I can use them to apply effects such as pitch-shifting or wah-wah to audio samples . Can someone point me in the right direction for this .. . Answer : You can use open-source audio processing libraries . Essentially you are getting audio samples in and you need to process them and send them as samples out . The processing can be done by these libraries or you use one of your own . Here s one DSP-Library https : github.com e7mac DSP-Library Disclaimer : I wrote this . Look at the process float float method for any of the classes to see how one does this . Wah-wah and compression are 2 completely different effects . Wah-wah is a lowpass filter whose center frequency varies slowly whereas compression is a method to equalize the volume . The above library has a Compressor https : github.com e7mac DSP-Library blob master Compressor.cpp class that you can check out . The STK does have effects classes as well not just synthesis classes JCRev is one for reverb but I would highly recommend staying away from it as they are really hard to compile and maintain . If you haven t seen this already check out Julius Smith s excellent and comprehensive book Physical Audio Signal Processing https : ccrma.stanford.edu jos pasp Time Varying Delay Effects.html Comment : Thanks e7mac for the reply . Btw do you have references to other dsp library that can do what I mention I m checking out your library out now btw . Thanks . Comment : Try github.com micknoise Maximilian https : github.com micknoise Maximilian or theamazingaudioengine.com http : theamazingaudioengine.com or bartolsthoorn.github.io NVDSP http : bartolsthoorn.github.io NVDSP . Definitely nothing is standard though - most people end up writing their own Comment : Thanks a lot e7mac",
"Question : My CSound instrument updates a handful of parameters via MIDI controller messages . It needs to be able to store and retrieve parameter sets patches and update the parameters on MIDI patch change messages . Is there a CSound way to do this other than building it from Python opcodes I think I could build a patch manager in PureData but would that tax a Raspberry PI beyond usefulness Would a PureData program hit the CPU at all when not busy changing patches Comment : I thought of a better way to do this - use nodejs . Here is the project in progress : github.com jbeuckm RaspPi-Resonant-EQ https : github.com jbeuckm RaspPi-Resonant-EQ .. . Answer : This can also be done in native Csound code . Simply write the the details to disk and recall them later at any stage . You can use any of the file writing opcodes such a fout or foutk for this . https : csound.github.io docs manual foutk.html .. . .. . To read the values from disk you can use fink : .. . .. . https : csound.github.io docs manual fink.html",
"Question : I haven t used csound in quite some years after installing the latest non-RC version 6.03.2 on Windows 7 I was unpleasantly surprised that I get no audio from it anymore . Oddly enough I can render to file and CsoundQt then can automatically play the redendered file ok also through PortAudio . For the sake of fixing an example input I m using 01C01 db vs linear.csd from the demos although the choice of this file doesn t really matter for the outcome . Here s what I get when I just hit play or Ctrl+R in CsoundQt : .. . .. . And I get no audio out . And here is what happens if I use the render to file Alt+F : .. . .. . And of course I can hear it this way . But why doesn t direct play work Edited to add : since it seem that the adc s is are causing some kind of problem for PortAudio which don t show up via play through rendered file because presumably it doesn t try to initialize the adcs when playing that way I ve uninstalled ASIO4ALL and rebooted but still no luck playing directly I just get a more cryptic log now because it lists no adcs at all but still doesn t get past enumerating those non-existing adcs now : .. . .. . This with direct run Ctrl+R playing via rendered file Alt+F still works as before . .. . Answer : Meh I fixed it for now by picking no inputs in the config as suggested in http : csound.1045644.n5.nabble.com Csound-QiuteCsound-problem-td3231424.html . This is quite annoying as the line mic input is auto-configured when plugging stuff in on Windows so one would expect PortAudio to manage this much by itself but apparently that s beyond its current feature set . I ll have to remember to change that back to adc when using some input . enter image description here http : i.stack.imgur.com zO5J2.png",
"Question : null .. . Answer : i m looking at Csound-iOS-6.07.0 examples . Could someone please explain me the difference between the MasterViewController and the DetailViewController Is possible to modify the MasterViewController with the interface-builder options Is there a guide to understand from zero Many Thanks",
"Question : Hi having a bit of a problem understanding what I ve done wrong . On mac osx 10.8.5 trying to find previously installed and working objects . Import csnd6 doesn t work anymore after installing virtualenv . I ve used sudo pip install csnd and worked fine I ve used it days before I can still see it in the 2.7 site packages in the library but python seems not to be looking in library python-2.7 site-packages .. . .. . So I think it s because of installing virtual env afterwards . Or doing something that s not obvious to me . I ve done it the suggested way with virtual env now and have successfully installed packages with pip but my problem is that pip is not recognising pypi packages now : .. . .. . pip search can find it but doesn t want to install the module and I haven t had any joy using .. . .. . Any point in the right direction would be greatly appreciated Comment : It s pip install --allow-external csnd not pip allow-external .. . . Comment : Instead of trying every command under the sun why don t you read a tutorial http : simononsoftware.com virtualenv-tutorial . Comment : @BurhanKhalid - I didn t spot the part in the virtualenv tuturial that explains potential issues with installing externally hosted packages with pip . Comment : I ve used --allow-external and it responds with use unverified which still didn t work . I have gone through the tutorial to find I was doing it the exact way specified I m not sure what Burhan meant by trying every command under the sun . I ve only used the ones people have specified using . My problem is csnd6 module doesn t appear anymore if I type help modules it used to appear there and still is in the site packages in the library . It s worked on my mums computer a minute ago by installing csound and automatically pops up in help modules . But on my one I ve lost it . Comment : csnd is really hosted on sourceforge and I think the pypi link is busted . I tried installing on a windows system with pip install --allow-unverified csnd csnd you need it twice.. . and it failed . pip.log showed a lot of attempts to read urls . You could try going to sourceforge.net projects csound http : sourceforge.net projects csound and downloading it manually . .. . Answer : If you want to tell Python looking in library python-2.7 site-packages just do some thing : .. . .. . Open Eclipse - Prefereces - Pydev- Interpreters- Python Interpreter - Libraries - New Folder - .. . .. . then point to library python-2.7 site-packages - Apply",
"Question : I m currently working on an app that uses the Mobile Csound API to create a synthesizer . For some reason the app accesses the iPad s microphone when running on the device but not when running on the simulator . Does anyone know why that might be occurring Thanks Nick .. . Answer : In my experience the simulator doesn t have access to these sorts of hardware-level things . I ve never had success in capturing either audio from a mic or video from a camera . In the case of video the device claims not to have a camera . Edit : this very old link https : discussions.apple.com thread 2104726 start 0 tstart 0 suggests that it may be possible for audio so my answer may be wrong.. . Comment : This is not my experience . The development host s microphone is routed to the RemoteIO audiounit in the simulator .",
"Question : I am trying to associate a Gesture with UITouch object because I need to pass data through a target action Method . I have something implemented but it is inefficient it get 100 of the CPU processing it is probably because it is coded incorrectly . There is my instance method for the UITouch event which call the UIPangesture .. . .. . There is my instance method for the UIPAnGestureRecognizer .. . .. . And there there the methods which call the action method to obtain the variables from the color-picker .. . .. . I know the problem it is on the instance method for the UITouch event which call the UIPangesture any other way to do it more efficiently .. . Answer : I think that you are calling this section of code way too often : .. . .. . You are likely calling it when there is no change or little change . There are two things you could do to reduce the number of calls . You can test for a significant change in the angle like this : .. . .. . Or you can test for time since the last update like this : .. . .. . Also are you sure you need the self setNeedsDisplay Comment : Thank You very much HalR you are right I was calling setNeedsDisplay and I didn t need it and now it just works really well ."
]
} | [
"yes-answer-long",
"yes-answer-short"
] | audio | UNK_RELATION |
sendmailr@email@71 | sendmailr -- questions pertaining to using an smtp client for sending @placeholder with r . | {
"confidence": [
45.482643127441406,
40.049251556396484,
37.07722473144531,
34.741329193115234,
34.72822952270508,
33.69252014160156,
33.101654052734375,
32.700035095214844,
32.59627914428711,
31.76930046081543,
30.14836883544922,
29.87889862060547,
29.708782196044922,
29.708782196044922,
29.66330337524414,
29.587020874023438,
29.27849769592285,
28.495071411132812,
28.495071411132812,
28.368316650390625,
28.159486770629883,
28.114145278930664,
28.060028076171875,
28.060028076171875,
27.97925567626953,
27.677276611328125,
27.49639129638672,
27.484519958496094,
27.347686767578125,
27.019756317138672,
27.011608123779297,
26.958633422851562,
26.823627471923828,
26.823627471923828,
26.823179244995117,
26.761951446533203,
26.761951446533203,
26.761951446533203,
26.761951446533203,
26.73675537109375,
26.42636489868164,
25.858428955078125,
25.80666732788086,
25.543689727783203,
25.358428955078125,
25.27660369873047,
25.187458038330078,
25.187458038330078,
25.012685775756836,
25.012685775756836,
25.003631591796875,
25.003631591796875,
24.903457641601562,
24.88849449157715,
24.702478408813477,
24.63619613647461,
24.368309020996094,
24.368309020996094,
23.94074249267578,
23.853870391845703,
23.810565948486328,
23.45433807373047,
23.45433807373047,
23.45433807373047,
23.45433807373047,
23.45433807373047,
23.324729919433594,
23.08837127685547,
23.013689041137695,
23.013689041137695,
22.918771743774414,
22.81289291381836,
22.635189056396484,
22.635189056396484,
22.635189056396484,
22.635189056396484,
22.635189056396484,
22.635189056396484,
22.630027770996094,
22.475849151611328,
22.475849151611328,
22.475849151611328,
22.209644317626953,
22.19293785095215,
21.881980895996094,
21.476778030395508,
21.355249404907227,
21.355249404907227,
21.355249404907227,
21.355249404907227,
21.280567169189453,
21.20073699951172,
20.752784729003906,
20.416549682617188,
20.357576370239258,
20.357576370239258,
20.357576370239258,
20.14885902404785,
20.14885902404785,
20.14885902404785
],
"content": [
"I m trying to attach a file in R using sendmailR .",
"I m using sendmailR in my R script to send notifications .",
"Initialize the required R packages : .. . .. . library sendmailR .. . library xtable .. . .. . .. . 2 .",
"I am using sendmailR package to automate my email sending tasks .",
"The reference from the sendmailR documentation http : cran.r-project.org web packages sendmailR sendmailR.pdf is : .. . .. . SMTP AUTH is currently unsupported .",
"Referencing the example located here http : stackoverflow.com questions 3572607 sendmailr-part2-sending-files-as-mail-attachments .",
"I m trying to run sendmailR on Windows with the following code : .. . .. . And get the following error : .. . .. . The answer here http : stackoverflow.com questions 5864400 sending-an-email-from-r-using-the-sendmailr-package give a solution for Linux and I would be grateful for advice for Windows users .",
"Outlook is mail client so does sendmailR .",
"I am using sendMailR package - and i have seen an post in SO how to send email with attachment from R in windows - on how to send emqil from R Windows .",
"I have trouble sending email with the packages sendmailR via Outlook .",
"@RavinderKumar I have no experience with that but maybe this Q A http : stackoverflow.com questions 2885660 how-to-send-email-with-attachment-from-r-in-windows or this Q A http : stackoverflow.com questions 3572607 sendmailr-part2-sending-files-as-mail-attachments can help .",
"As far as I understand it sendmailR doesn t support any type of login to the SMTP server hence gmail is basically unusable .",
"I am using sendmailR to automatically send out emails .",
"I m trying to send email messages using the sendmailR package .",
"This question already has an answer here : .. . .. . Use sendmailR with Windows questions 15421130 use-sendmailr-with-windows 3 answers .. . .. . I am trying to use sendemailR package in R but I am getting an error I don t know how to fix .",
"I m trying to send emails from R using sendmailR package using the following code which unfortunately fails : .. . .. . The sendmailR manual http : cran.r-project.org web packages sendmailR sendmailR.pdf E2 80 8E doesn t mention how to configures STARTTLS although it does indicate that additional arguments can be passed which is why I have included the option smtpSTARTLS based on whats mentioned in some other threads here http : stackoverflow.com questions 7802360 email-an-attachment-in-r-with-gmail 7802766 and here http : stackoverflow.com questions 10509699 must-issue-a-starttls-command-first .",
"http : stackoverflow.com questions 17539497 is-it-possible-to-cc-recipients-using-sendmail-in-r but it seems everything should be correct .",
"I am trying to send a dataframe with SendMailR .",
"I would like to stick to sendmailR as well .",
"I am using Windows 10 and R 3.2.2 .",
"I ve referred to this post : Is it possible to cc recipients using sendmail in R",
"I was trying the solution from this post : send HTML email using R post http : stackoverflow.com questions 19844762 how-to-send-html-email-using-r But it seems that it works only with html text and not html file .",
"sendmailR works for me on Windows 7 .",
"The mime part sendmailR is used to construct attachments .",
"Answered here : stackoverflow.com questions 21929170 http : stackoverflow.com questions 21929170 email-dataframe-as-table-in-email-body-with-sendmailr",
"cc and bcc are arguments to sendmailR : : sendmail as of version 1.2-1 which is available on CRAN : http : cran.r-project.org web packages sendmailR index.html",
"The reason that I m trying to use a multi-line string is that I need to send query results via a SMTP server and the package sendmailR in the message body not as an attachment .",
"@Andreas Your statement appears true statistik.tu-dortmund.de olafm software sendmailR http : www.statistik.tu-dortmund.de olafm software sendmailR",
"In one of my R script I use the package sendmailR to send an email with the results of some computations as an attacched tab separated value file .",
"This is the version of R and Windows .. . .. . Thanks",
"Program script : C : Program Files R R-3.1.3 bin x64 Rscript.exe Add arguments : datavalv3.R Start in : C : BLP Projects Project 07 .. . .. . Here is the code part with the email with RDCOMClient .. . .. . Here is the code part with the email with sendmailR .. . .. . Any idea what might be the problem",
"Just create a html using the R file and create a batch to run the R file and attach the html file and send mail .",
"I am trying to specify a sender name while using sendmailR to send emails .",
"The magic number 9 comes from using print as.list body sendmailR : : : .write mail and eyeballing where to inject the code .",
"Does this http : stackoverflow.com questions 2885660 how-to-send-email-with-attachment-from-r-in-windows help",
"Have you looked into the sendmailR package yet",
"smtp.gmail.com requires authentication which is not supported by sendmailR",
"This server need authentication which is not supported by sendmailR .",
"Is there a way to send a base plot via sendmailR",
"I have a table that I am trying to get to clients via sendmailR .",
"How to send rmarkdown generated documents as a body in an email using R",
"However i havent used sendmailR package before so i am trying my best to create the mail function - within the error module using sendmailR package to send mail .",
"In the internal function sendmailR : : : .write mail the author has the following code : .. . .. . We are going to replace the function writeLines temporarily within a sendmailR internal function to change text plain non-HTML email to text html .",
"I am trying to render an email in HTML using R which contains an image .",
"Although sending HTML mails with sendmailR is not straighforward but possible based on a mail discussion with the package author last year thanks again to Olaf Mersmann for his kind help - with simply overriding the Content-Type header .",
"I used to send emails via R using these lines .",
"the ascii package or my pander pkg that can turn R objects to markdown .",
"It depends if you are better with sysadmin tasks or reading R docs :",
"I m not aware of R functions or libraries to send email .",
"knitr : : knit2html is for R Markdown v1 only as documented .",
"I m working with the sendmailR package and trying to attach a data.frame to the mail .",
"telnet 192.168.100.10.. . And your SendMailR should use this IP address not MYADDRESS.local",
"Please try providing a minimal reproducible example : stackoverflow.com questions 5963269 http : stackoverflow.com questions 5963269 how-to-make-a-great-r-reproducible-example .",
"But in addition I would like to save the data the user is inputting so that I can access it in my R script globally so it can be sent to me using sendmailR or so that it could be downloaded onto my computer as a text file .",
"Here s what I am getting : .. . .. . Error in wait for code : SMTP Error : 5.7.1 Client was not authenticated",
"The second thing is the smtp server you are using : smtp.gmail.com .",
"I refer to this post With sendmailR how can I specify a recipient sender name along with the address",
"I would suggest you to create a HTML table but I believe that you can t send HTML mail with sendmailR .",
"As an alternative to using sendmailR you might try this : .. . .. . Parse together a VB-Script see e.g .",
": p.s : I d still be interested in figuring out this sendmailR problem.. .",
"Using shell with some other scripts may be possbile but I was wondering if there is a better solution within R . thanks .",
"I have a scheduled R script running from a windows machine .",
"This is the only approach I have found to work in R on Windows .",
"I wanted to send Email from R - whenever an iteration is failed or haulted .",
"Do you know how to send any email from R",
"I am trying to use the mailR library in R to send mail .",
"However what I d like to do on a remote-server is generate the plot save it to a variable and then include it as a mime part when emailing it to myself using the sendmailR package .",
"I am trying to send mail from R on a windows-7 home machine .",
"That is an issue with the setup on your local SMTP server .",
"You need to have an SMTP server running locally .",
"I want to use sendmailR send email via smtp.exmail.qq.com server I looked at the sample to do it but failed how can I work it out",
"Try using mailR https : cran.r-project.org web packages mailR index.html that supports SMTP authentication .",
"I don t think sendmailR accepts authentication user password - I use mailR for this reason .",
"I am attempting to use the SendMailR function I have checked with our I.T .",
"You could have a look at how he does it if you do not get sendmailR to work .",
"I have successfully managed to implement the sendmailR function to send one message to one recipient .",
"My code is like : .. . .. . require sendmailR .. . .. . from - test1@sample.com .. . .. . to - test2@sample.com .. . .. . subject - Email Subject .. . .. . body - Email body .",
"I m working with the pander and sendmailr packages to send a small data frame in the body of an email rather than as an attachment .",
"On ubuntu this solved the one issue I ve had : .. . .. . in R .. . .. . if you have trouble with rJava - try sudo R CMD javareconf in terminal .. . .. . mailR is easy to work with and well documented on the github page .",
"Everything works fine but sendmailR adds the extension .txt to the attached file .",
"I have tried both RDCOMClient and sendmailR and the problem persists .",
"If RODBC and data.table are loading properly can sendmailR still may not",
"A walk-through using R is available here https : dreamtolearn.com ryan data analytics viz 78 .. . .. . An example code is attached just replace the credentials with the ones of your own .",
"http : stackoverflow.com questions 7558344 with-sendmailr-how-can-i-specify-a-recipient-sender-name-along-with-the-address rq 1 but it seems to me that the solution does not work properly I got this error message : .. . .. . Error in wait for code : SMTP Error : Syntax error parameters in command MAIL FROM : Sender name sender@domain.com unrecognized or missing .. . .. . Anyone can help",
"Error in wait for code : SMTP Error : Error : need EHLO and AUTH first",
"I assume you mean you send mail through your SMTP mail-server that your outlook mail client also connect to .",
"Might I ask what do you use to have a scheduled R script",
"I would like to assign a multi-line string to a variable in R so that I can call the variable later .",
"It is also documented in the help page of knit2html that you should use rmarkdown : : render to render R Markdown v2 documents .",
"I receive this message : Warning message : package mailR is not available for R version 3.2.2",
"The same SMTP mail-server as your outlook .",
"I used the following code to call it : SendMail from dag.hjermann@gmail.com to dhj@niva.no text Hallo subject Sag Hallo smtp smtp.gmail.com user dag.hjermann@gmail.com pw Insert your real password of course.. . Also the work directory of R must be somewhere on the hard disk C : .",
"The error is probably that you are sending through a blocked port .",
"department that I am using the correct server and I have the right permissions to connect and they have sent emails via this server but not through R and I have also checked that the port should be 25 .",
"If you have no SMTP server running inside of the container then you should provide the host etc .",
"Try enabling https : www.google.com settings security lesssecureapps SMTP access for your Google account .",
"If your gmail account is propertly setup as mOnhawk suggested then this form should work for the smtp list :",
"You can use an smtp server that does not require authentication e.g .",
"Second try telnet from VM ubuntu to your SMTP server e.g .",
"just example the address can be varied .. . .. . Then 192.168.100.10 is your SMTP server addresss ."
]
} | {
"confidence": [
51.158260345458984,
50.89736557006836,
50.29749298095703,
48.282012939453125,
48.05481719970703,
45.8643798828125,
45.70652770996094,
45.34962844848633,
45.25883865356445,
43.359405517578125,
42.9512825012207,
42.58772277832031,
42.32574462890625,
42.15885543823242,
41.6265869140625,
41.51886749267578,
41.439491271972656,
40.32732391357422,
40.187442779541016,
39.83099365234375
],
"content": [
"Question : I m trying to run sendmailR on Windows with the following code : .. . .. . And get the following error : .. . .. . The answer here http : stackoverflow.com questions 5864400 sending-an-email-from-r-using-the-sendmailr-package give a solution for Linux and I would be grateful for advice for Windows users . Thanks . Comment : This doesn t answer your question but as an alternative you can use my GitHub gmailR https : github.com trinker gmailR that I know works with windows and is for gmail . It s something I canned as a package for personal use but isn t my work . Comment : Nice Tyler - thank you . : p.s : I d still be interested in figuring out this sendmailR problem.. . .. . Answer : I used to send emails via R using these lines . Suppose your email is tal.galili@gmail.com using window OS my operation system Comment : Hi Hianni . In both cases I get : Error in wait for 250 : SMTP Error : 5.7.1 37.142.250.150 The IP you re using to send mail is not authorized to Comment : Hey @TalGalili is strange I tested and i didn t get any error message sorry . Comment : o.k . thanks Gianni . Comment : @TalGalili sorry if i cannot be more useful Comment : I appreciate your attempt :",
"Question : I m trying to send emails from R using sendmailR package using the following code which unfortunately fails : .. . .. . The sendmailR manual http : cran.r-project.org web packages sendmailR sendmailR.pdf E2 80 8E doesn t mention how to configures STARTTLS although it does indicate that additional arguments can be passed which is why I have included the option smtpSTARTLS based on whats mentioned in some other threads here http : stackoverflow.com questions 7802360 email-an-attachment-in-r-with-gmail 7802766 and here http : stackoverflow.com questions 10509699 must-issue-a-starttls-command-first . I ve tried playing with the argument for smtpSTARTTLS and setting it to TRUE but no joy . Any pointers to documentation or solutions would be most welcome . Thanks .. . Answer : You could give the new mailR package a shot that allows SMTP authorization : http : cran.r-project.org web packages mailR index.html .. . .. . The following call should then work : Comment : Thanks for this clear example . We need to pay close attention to the smtp arguments names which are not consistent across packages user.name not username and passwd not pw nor password .",
"Question : I m trying to send emails from R using sendmailR package using the following code which unfortunately fails : .. . .. . The sendmailR manual http : cran.r-project.org web packages sendmailR sendmailR.pdf E2 80 8E doesn t mention how to configures STARTTLS although it does indicate that additional arguments can be passed which is why I have included the option smtpSTARTLS based on whats mentioned in some other threads here http : stackoverflow.com questions 7802360 email-an-attachment-in-r-with-gmail 7802766 and here http : stackoverflow.com questions 10509699 must-issue-a-starttls-command-first . I ve tried playing with the argument for smtpSTARTTLS and setting it to TRUE but no joy . Any pointers to documentation or solutions would be most welcome . Thanks .. . Answer : As far as I understand it sendmailR doesn t support any type of login to the SMTP server hence gmail is basically unusable . You can only use the package if you are within the right network and set up a server that is only reachable within the network I guess i.e . one NOT using authentication . The alternative is the mail http : cran.r-project.org web packages mail index.html package in which you cannot use your own address . The reference from the sendmailR documentation http : cran.r-project.org web packages sendmailR sendmailR.pdf is : .. . .. . SMTP AUTH is currently unsupported . Comment : Ok thanks for that I hadn t realised TLS was related to authentication . I d seen the mail package mentioned whilst reading up on sendmailR will consider that but have sendmail http : www.sendmail.org installed on my system so may see if I can get them to work together . Comment : You might want to check this : github.com trinker gmailR https : github.com trinker gmailR Comment : That looks very handy too thanks Henrik .",
"Question : This question already has an answer here : .. . .. . Use sendmailR with Windows questions 15421130 use-sendmailr-with-windows 3 answers .. . .. . I am trying to use sendemailR package in R but I am getting an error I don t know how to fix . When trying the default-parameters : .. . .. . I get the error .. . .. . So I change the port to 465 and it seems to work .. . .. . but then I get the following error .. . .. . Any idea what s happening This is the version of R and Windows .. . .. . Thanks Comment : smtp.gmail.com requires authentication which is not supported by sendmailR Comment : I also think that to should contain a valid email-address .. . Answer : There are two things that need attention in your example : .. . .. . As @David Arenburg http : stackoverflow.com users 3001626 david-arenburg commented to should contain a valid email-address . The second thing is the smtp server you are using : smtp.gmail.com . This server need authentication which is not supported by sendmailR . You can use an smtp server that does not require authentication e.g . the restricted gmail smtp server : aspmx.l.google.com port 25 see here https : support.google.com a answer 176600 hl en for details .. . .. . The other option is to use the mailR package that allows authentication . Try something like of course you have to put valid email addresses and user.name and passwd to work : .. . .. . Hope it helps .. . .. . alex Comment : Thanks mailR works perfect for me . I actually wanted to send attachments on the mail and I can do it with this package .",
"Question : I m trying to run sendmailR on Windows with the following code : .. . .. . And get the following error : .. . .. . The answer here http : stackoverflow.com questions 5864400 sending-an-email-from-r-using-the-sendmailr-package give a solution for Linux and I would be grateful for advice for Windows users . Thanks . Comment : This doesn t answer your question but as an alternative you can use my GitHub gmailR https : github.com trinker gmailR that I know works with windows and is for gmail . It s something I canned as a package for personal use but isn t my work . Comment : Nice Tyler - thank you . : p.s : I d still be interested in figuring out this sendmailR problem.. . .. . Answer : You could give the new mailR package a shot : http : cran.r-project.org web packages mailR index.html .. . .. . The following call should then work : Comment : I still get an error . I was getting the same error as the OP and now when I tried this i get Check documentation to include all mandatory parameters to establisg SMTP connection . .. . Yes . It said establisg not establish.. .",
"Question : I m trying to run sendmailR on Windows with the following code : .. . .. . And get the following error : .. . .. . The answer here http : stackoverflow.com questions 5864400 sending-an-email-from-r-using-the-sendmailr-package give a solution for Linux and I would be grateful for advice for Windows users . Thanks . Comment : This doesn t answer your question but as an alternative you can use my GitHub gmailR https : github.com trinker gmailR that I know works with windows and is for gmail . It s something I canned as a package for personal use but isn t my work . Comment : Nice Tyler - thank you . : p.s : I d still be interested in figuring out this sendmailR problem.. . .. . Answer : As an alternative to using sendmailR you might try this : .. . .. . Parse together a VB-Script see e.g . http : www.paulsadowski.com wsh cdo.htm and then call it via shell . This might look like this : .. . .. . .. . and use it like this :",
"Question : I m trying to send email messages using the sendmailR package . Referencing the example located here http : stackoverflow.com questions 3572607 sendmailr-part2-sending-files-as-mail-attachments . I am able to send emails just fine but when they appear in my mail client Outlook 2013 the raw HTML code is displayed . Any ideas how to correct this Example email received . https : dl.dropboxusercontent.com u 3734701 Untitled Clipping 032614 022810 PM.jpg .. . Answer : You need to use the Content-Type header to specify the correct MIME type . However apparently the author decided to hardcode this and the headers parameter that the sendmail function provides will not work with Content-Type . You can really hack around it using the trace function which lets you dynamically insert content into other functions . For more on this see his Debugging tutorial http : adv-r.had.co.nz Exceptions-Debugging.html . In the internal function sendmailR : : : .write mail the author has the following code : .. . .. . We are going to replace the function writeLines temporarily within a sendmailR internal function to change text plain non-HTML email to text html . This will force the correct MIME type . The magic number 9 comes from using print as.list body sendmailR : : : .write mail and eyeballing where to inject the code . example email http : i.stack.imgur.com yCfQP.png Comment : Thank you for the prompt reply . I am having trouble reproducing your example though . I run the function you created send html and see some issues . I use my Gmail email-address in the script and get the following error : Error in socketConnection host server port port blocking TRUE : cannot open the connection In addition : Warning message : In socketConnection host server port port blocking TRUE : ASPMX.L.GOOGLE.COM : 25 cannot be opened Comment : Could you provide me some more info like what errors you see I tried it and it works for me . Comment : That is an issue with the setup on your local SMTP server . And just to make sure did you replace the first and second arguments with the correct to and from address Comment : I did update both addresses to my gmail user account email . I get the following error : Error in socketConnection host server port port blocking TRUE : cannot open the connection In addition : Warning message : In socketConnection host server port port blocking TRUE : localhost : 25 cannot be opened Comment : You need to have an SMTP server running locally . For example look at this guide http : www.developerfiles.com how-to-send-smtp-mails-with-postfix-mac-os-x-10-8 if you are on a Mac .",
"Question : I have a table that I am trying to get to clients via sendmailR . I would like to stick to sendmailR as well . Here is what I am trying to do . Sorry for all the censoring . Just know that this same exact code used to work about 4 months ago when I originally built the script it s in . Now to the error . Here s what I am getting : .. . .. . Error in wait for code : SMTP Error : 5.7.1 Client was not authenticated .. . Answer : Try using mailR https : cran.r-project.org web packages mailR index.html that supports SMTP authentication .",
"Question : I have a table that I am trying to get to clients via sendmailR . I would like to stick to sendmailR as well . Here is what I am trying to do . Sorry for all the censoring . Just know that this same exact code used to work about 4 months ago when I originally built the script it s in . Now to the error . Here s what I am getting : .. . .. . Error in wait for code : SMTP Error : 5.7.1 Client was not authenticated .. . Answer : The error is probably that you are sending through a blocked port . The default port for sendmail is 25 . If you are at a place where you don t control the servers try asking a tech guy what server you need to set it as . Here s the command to do so . Add it before the sendmail command .. . .. . sendmail options smtpPort 25 .. . .. . Change 25 to whatever port your tech guy tells you to .",
"Question : I am using sendmailR to automatically send out emails . I want to cc a copy to one address in order to keep as a record . The code I ve used is : .. . .. . The cc part never worked and I could not figure out why . I ve referred to this post : Is it possible to cc recipients using sendmail in R http : stackoverflow.com questions 17539497 is-it-possible-to-cc-recipients-using-sendmail-in-r but it seems everything should be correct . Anyone can help me with this Thanks Comment : you are not supplying any cc addresses in your header Comment : why can you show me an example Comment : you need to remove the brackets from the e-mail addresses . Comment : I change the header to header -list Cc c hij@sample.com.cn but it still doesn t work properly . Comment : downcase cc .. . .. . Answer : cc and bcc are arguments to sendmailR : : sendmail as of version 1.2-1 which is available on CRAN : http : cran.r-project.org web packages sendmailR index.html",
"Question : I am attempting to use the SendMailR function I have checked with our I.T . department that I am using the correct server and I have the right permissions to connect and they have sent emails via this server but not through R and I have also checked that the port should be 25 . The code : .. . .. . I receive the below error : .. . .. . So I figured its an error with or I needed to define a new socket connection is this where the problem lies Could anyone give me any pointers on where to go next with this to get it working Thanks in advance .. . Answer : You could give the new mailR package a shot that allows SMTP authorization : http : cran.r-project.org web packages mailR .. . .. . The following call should then work : .. . .. . Just replace the key-value pairs in the parameter smtp and you should be set to go .",
"Question : I m trying to send email messages using the sendmailR package . Referencing the example located here http : stackoverflow.com questions 3572607 sendmailr-part2-sending-files-as-mail-attachments . I am able to send emails just fine but when they appear in my mail client Outlook 2013 the raw HTML code is displayed . Any ideas how to correct this Example email received . https : dl.dropboxusercontent.com u 3734701 Untitled Clipping 032614 022810 PM.jpg .. . Answer : You could try the development version of the mailR package available on github https : github.com rpremraj mailR .. . .. . Using mailR you could send an email in HTML format as below :",
"Question : I have trouble sending email with the packages sendmailR via Outlook . It work fine on my main computer windows machine but when I try it on my virtual-machine running with Ubuntu I get the following error : .. . .. . I used the following code that once again work fine on the host machine . Do I have to set up the virtual-machine to access MYADRESSE.local The network between the two host and hosted is set up to bridge . My final goal would be to use shiny-server to creat an app able to send emails through the main Outlook of the host that for the moment emails put aside work perfectly . .. . Answer : Outlook is mail client so does sendmailR . I assume you mean you send mail through your SMTP mail-server that your outlook mail client also connect to . First check whether you can ping your SMTP mail-server from virtual-machine . The same SMTP mail-server as your outlook . Second try telnet from VM ubuntu to your SMTP server e.g . If neither works look for those question about connecting VM to your LAN . UPDATE For your Windows machine to talk to MYADRESSE.local there must be a setting in the host file . Go open c : windows system32 drivers etc hosts and see whether there is a entry for it . If the entry show .. . .. . This mean you have a SMTP server setting in your windows system . If any other address e.g . just example the address can be varied .. . .. . Then 192.168.100.10 is your SMTP server addresss . Then the ping telnet work show above should use this IP address . e.g . telnet 192.168.100.10.. . And your SendMailR should use this IP address not MYADDRESS.local Comment : Hi thanks for your answer I am pretty new in all this VM thing so I will try to explain it as I can . First the ping between the host and the VM work well as well as the internet connexion of the VM . If I run the command ping -c 1 MYSERVER.local I have ping : unknown host MYSERVER.local . Same with your command I have could not resolve MYSERVER.local 22 : Name or service not known . I may be doiing something very silly as I told you I am new at this kind of network thing . I also try tp check for connecting my VM to my LAN but all the try was vain changes in the network settings . Comment : This is network issue NOT VM issue . VM is just like another machine it doesn t matter it sit on the same machine . I will update my answer and tell you which mistake you made Comment : Thank you very much . Work perfectly fine this way",
"Question : I have a scheduled R script running from a windows machine . After it finishes I wish this script to automatically send an email with some log file attached . Using shell with some other scripts may be possbile but I was wondering if there is a better solution within R . thanks . Comment : I presume you meant system when you wrote shell . Comment : Hi Ahala I hope Stedy solution will help . Might I ask what do you use to have a scheduled R script Thanks . Comment : Tal use Scheduled tasks in Windows I reckon that entry goes something like R CMD BATCH script.R cron on NIX sistems . .. . Answer : Have you looked into the sendmailR package yet It allows SMTP to submit a message and you could probably edit the function to allow an attachment . Then again if its only one log file it might just be worth it to use shell as you mentioned .",
"Question : I am trying to specify a sender name while using sendmailR to send emails . I refer to this post With sendmailR how can I specify a recipient sender name along with the address http : stackoverflow.com questions 7558344 with-sendmailr-how-can-i-specify-a-recipient-sender-name-along-with-the-address rq 1 but it seems to me that the solution does not work properly I got this error message : .. . .. . Error in wait for code : SMTP Error : Syntax error parameters in command MAIL FROM : Sender name sender@domain.com unrecognized or missing .. . .. . Anyone can help thanks .. . Answer : Checkout the mail http : cran.r-project.org web packages mail index.html package which offers an alternative way to sent mail via an external mail-server and address .. . .. . Example :",
"Question : null .. . Answer : I m trying to attach a file in R using sendmailR . Is this possible excluding attach.files line sends email without issue . Comment : Have you tried Googling it Does this http : stackoverflow.com questions 2885660 how-to-send-email-with-attachment-from-r-in-windows help Comment : It also looks like you just have a syntax-error there . Where does this belongs-to Comment : When I save the file I get an error and i ve searched google with so results saveChart jpeg Error in assign .chob x env : cannot change value of locked binding for .chob dev.off null device 1",
"Question : I have a scheduled R script running from a windows machine . After it finishes I wish this script to automatically send an email with some log file attached . Using shell with some other scripts may be possbile but I was wondering if there is a better solution within R . thanks . Comment : I presume you meant system when you wrote shell . Comment : Hi Ahala I hope Stedy solution will help . Might I ask what do you use to have a scheduled R script Thanks . Comment : Tal use Scheduled tasks in Windows I reckon that entry goes something like R CMD BATCH script.R cron on NIX sistems . .. . Answer : sendmailR works for me on Windows 7 . I referenced http : cran.es.r-project.org web packages sendmailR sendmailR.pdf .. . .. . smtpServer info for Outlook 2010 is in File - Account Settings - Account Settings - double click your account - text in Server box .. . .. . In addition multiple-files can be sent by adding another mime part to the msg list as follows I also condensed it : Comment : Can you use html in Email body . Can you use utf-8 encoding for multilingual text Comment : I don t know . Try it and see . Comment : How do you configure the serverinfo part for gmail Comment : I don t think sendmailR accepts authentication user password - I use mailR for this reason . Comment : @Andreas Your statement appears true statistik.tu-dortmund.de olafm software sendmailR http : www.statistik.tu-dortmund.de olafm software sendmailR",
"Question : I Have a Rscript file Main Script.R which runs as a sheduled job in windows Task Scheduler every 30 Mins.Inside the Main Script.R - i have around 13 scripts that runs every 30 mins . I wanted to send Email from R - whenever an iteration is failed or haulted . I am using sendMailR package - and i have seen an post in SO how to send email with attachment from R in windows - on how to send emqil from R Windows . But i am not sure about - how to send an email automatically with the error message - when the scheduled task iteration is failed or haulted . My Main Script.R - has source of all 13 codes . My Sheduled task looks like below with log file .. . .. . Update : .. . .. . When the script encounters error - it should trigger email - with the erorr meassge and the script name or number -to denote which of the 13 scripts failed and send to a mail ID . Comment : Wrap your statements in tryCatch and after it s been evaluated catch any errors and send an email . Comment : I have around 13 scripts - trycatch them would be a lot to catch each and every error is there any other way to get the error and attach them in mail . options error .. . saw this suggestion in internet but not sure how to do it Comment : You only need ONE tryCatch that encloses all your source calls . Comment : So is this now two questions Do you know how to send any email from R Comment : My Question is - i dont know how to send email when script fails in batch job.For to send any email - there are example in SO - that i can refer and get to work is what i meant .. . Answer : Here s a solution that wraps your script of sources : .. . .. . My scripts are : .. . .. . and similar . Hence : .. . .. . So replace my cat with your email sending and job done . The error is passed as an argument to the handler so you can get the message from it . Here s how to do it with 13 scripts numbered as your example and identify which one went wrong : .. . .. . Now you just need to write the mailMe function which gets the number of the script and the error message . It might be something like this : .. . .. . Note you can test the mailMe function separately until it works . Comment : Ok i am trying your method - but i am facing issue in sending email as a error function.I have updated the question - that i also needed to know which of the 13 scripts failed Comment : @PrasannaNandakumar first learn how to catch 1001 bit from tryCatch . the rest should fall into their place seamlessly . I would ask another question on how to tell which script produces error using tryCatch . Produce a reproducible example show some effort and answer is guaranteed . Comment : @RomanLu trik I am following the above answer to try to use the error function for sending email . However i havent used sendmailR package before so i am trying my best to create the mail function - within the error module using sendmailR package to send mail .",
"Question : I m creating a plot using the forecast package- it includes the ability to generate a plot of a forecast generated with base plot . I tried using recordPlot to save the plot to a variable which allows me to recreate the plot in an interactive session . However what I d like to do on a remote-server is generate the plot save it to a variable and then include it as a mime part when emailing it to myself using the sendmailR package . The plot named plt in the example below does not show up in the email as it would if it were a ggplot2 object . Is there a way to send a base plot via sendmailR Comment : Please try providing a minimal reproducible example : stackoverflow.com questions 5963269 http : stackoverflow.com questions 5963269 how-to-make-a-great-r-reproducible-example . .. . Answer : The answer in case anyone stumbles across this post seems to be no . As of late 2015 you cannot email a base R plot without doing something like exporting it as a png or pdf and emailing that attachment . Comment : You might be able to encode it using base64 and then include it as an img tag in an html formatted email - but not as an attachement . Like what rmarkdown does on self-contained TRUE .",
"Question : I am trying to send a dataframe with SendMailR . I can send it as an attachment with reasonably good formatting . However I would like to send the dataframe in the body of the email . I tried capture.output print sprintf but am not even able to get the format close . e.g . I tried the following syntax .. . .. . In other words I am thinking that it might be necessary to convert my dataframe into a format with n and sprintf s-10 etc and store it in MSG . Can someone point me in the right direction Comment : I would suggest you to create a HTML table but I believe that you can t send HTML mail with sendmailR . Comment : Thanks Julien . Just as an edit I just need to send the results of a job via email daily . I am happy to use another mail sender change data frame to data table matrix etc as long as i can send the content in the email body . Happy to consider any alternatives .. . Answer : Although sending HTML mails with sendmailR is not straighforward but possible based on a mail discussion with the package author last year thanks again to Olaf Mersmann for his kind help - with simply overriding the Content-Type header . E.g . : .. . .. . .. . .. . On the other hand there is no real need for HTML to present tables or a data.frame in a human-readable format . There is e.g . the ascii package or my pander pkg that can turn R objects to markdown . Quick demo : .. . .. . If you want to concatenate this to the e-mail body use pander.return instead that returns character vector instead of writing to the console . And there are some other available table style s also some useful panderOptions e.g . to set decimal mark date-format etc : http : rapporter.github.io pander Comment : Thank you so much for your help . I didn t manage to get pandoc.return to work in email format looked good in Rstudio but not in my email .. . lines are misaligned but html works well . Comment : @hjw Maybe you could paste .. . collapse n the stuff from pander.return before adding to the e-mail or collapse br if sending HTML mail . Comment : the correct name of the function is pander return"
]
} | [
"yes-answer-long",
"yes-answer-short"
] | email | UNK_RELATION |
mnpp@percona@31 | mnpp -- mnpp is mac + nginx + @placeholder + php a high performance web server in a one-click installer for os x . | {
"confidence": [
69.991943359375,
55.58327865600586,
48.43073654174805,
45.225624084472656,
29.434932708740234,
25.419639587402344,
25.197162628173828,
24.976909637451172,
24.055248260498047,
22.572458267211914,
21.060409545898438,
20.413898468017578,
17.577335357666016,
17.380048751831055,
17.014575958251953,
16.939655303955078,
16.282743453979492,
14.430258750915527,
14.430258750915527,
14.430258750915527,
14.430258750915527,
14.430258750915527,
14.430258750915527,
14.430258750915527,
14.430258750915527,
14.430258750915527,
14.430258750915527,
14.430258750915527,
14.430258750915527,
12.972413063049316,
12.972413063049316,
12.972413063049316,
12.972413063049316,
12.972413063049316,
11.225146293640137,
11.225146293640137,
11.225146293640137
],
"content": [
"MNPP appears to install nginx in Applications MNPP Library nginx .",
"so if Nginx isn t running despite me running my app this could be an MNPP https : github.com jyr MNPP issue I guess",
"I have an nginx app https : github.com jyr MNPP that was running on localhost and now I can no longer access it .",
"I get the following error when I run MNPP which is a like XAMPP MAMP but with Nginx instead of Apache .",
"Is there one specific to nginx",
"Here s a page that might help you to do what @Tularis suggests : mac-dev-env.patrickbougie.com php http : mac-dev-env.patrickbougie.com php Alternatively you can install PHP with homebrew .",
"I m not sure if its the same in your case but some time localhost wont work on my mac os x .. . .. . Try to use 127.0.0.1 instead of localhost and if it worked check your private etc hosts-file",
"Are you sure nginx is running",
"ps aux grep nginx - if not look @ nginx logs to see if anything is messed up",
"You ll want to check the error-log for anything related to nginx .",
"mac 10.7.5 so linux right",
"After checking the docs it says Since PHP 4.0.4 libbcmath is bundled with PHP .",
"Some things I ve investigated : .. . .. . TimPeterson sudo lsof -i : 80 - shows tons of stuff but nothing that looks like my app .. . System Preferences - sharing - toggle web sharing - doesn t help .. . .. . I m not a total noob in that I ve had this server running for over a year but obviously I did something or some software update jacked some part of the configuration .",
"Judging from all the SO threads on this topic I m pretty sure this is a X11 XQuartz Mac OSX Mavericks issue as it this command works on my previous Mac with 10.7.5 .",
"I ve stopped and started this MAMP WAMP-like server for over a year now so no idea what would have locked it in the off position despite me starting it .",
"My version of PHP 5.3.8 doesn t contain BC-Math http : www.php.net manual en ref.bc.php which is needed for many cryptocurrency functions .",
"Google hasn t been particularly helpful for links on how to install this particularly library so I m at a total loss on how to add it to my already running PHP webserver .",
"I m truly at a loss for how to diagnose the problem .",
"perhaps you can check your document root location if it has changed also please tell us what do you get as result to get a better idea",
"why the close vote",
"netstat -na grep 80 and see if anything is listening on port TCP 80 .",
"@SB .",
"which error-log please",
"-@Abu I didn t change the etc hosts-file .",
"Also my etc hosts already is 127.0.0.1 .",
"did you give it a try with 127.0.0.1",
"if I remember well I problem long ago where I could only run my apps on 127.0.0.1 without having my hosts changed",
"yes http : 127.0.0.1 doesn t work nor does http : localhost .",
"Whereas before both of those worked .",
"Might someone point me in the direction of how to install this",
"windows or linux",
"Windows or linux if linux what distribution",
"Are you sure it doesn t contain BC-Math",
"You don t need any external libraries for this extension .",
"How do I upgrade my version of libfreetype.6.dylib",
"You likely have the DYLD LIBRARY PATH environment variable set .",
"Don t do that ."
]
} | {
"confidence": [
75.8649673461914,
75.48371124267578,
61.920536041259766,
25.355920791625977
],
"content": [
"Question : I have an nginx app https : github.com jyr MNPP that was running on localhost and now I can no longer access it . I m truly at a loss for how to diagnose the problem . Some things I ve investigated : .. . .. . TimPeterson sudo lsof -i : 80 - shows tons of stuff but nothing that looks like my app .. . System Preferences - sharing - toggle web sharing - doesn t help .. . .. . I m not a total noob in that I ve had this server running for over a year but obviously I did something or some software update jacked some part of the configuration . Comment : perhaps you can check your document root location if it has changed also please tell us what do you get as result to get a better idea Comment : why the close vote Comment : netstat -na grep 80 and see if anything is listening on port TCP 80 . Comment : Are you sure nginx is running ps aux grep nginx - if not look @ nginx logs to see if anything is messed up Comment : @SB . so if Nginx isn t running despite me running my app this could be an MNPP https : github.com jyr MNPP issue I guess I ve stopped and started this MAMP WAMP-like server for over a year now so no idea what would have locked it in the off position despite me starting it . .. . Answer : I m not sure if its the same in your case but some time localhost wont work on my mac os x .. . .. . Try to use 127.0.0.1 instead of localhost and if it worked check your private etc hosts-file Comment : -@Abu I didn t change the etc hosts-file . Also my etc hosts already is 127.0.0.1 . Comment : did you give it a try with 127.0.0.1 if I remember well I problem long ago where I could only run my apps on 127.0.0.1 without having my hosts changed Comment : yes http : 127.0.0.1 doesn t work nor does http : localhost . Whereas before both of those worked .",
"Question : I have an nginx app https : github.com jyr MNPP that was running on localhost and now I can no longer access it . I m truly at a loss for how to diagnose the problem . Some things I ve investigated : .. . .. . TimPeterson sudo lsof -i : 80 - shows tons of stuff but nothing that looks like my app .. . System Preferences - sharing - toggle web sharing - doesn t help .. . .. . I m not a total noob in that I ve had this server running for over a year but obviously I did something or some software update jacked some part of the configuration . Comment : perhaps you can check your document root location if it has changed also please tell us what do you get as result to get a better idea Comment : why the close vote Comment : netstat -na grep 80 and see if anything is listening on port TCP 80 . Comment : Are you sure nginx is running ps aux grep nginx - if not look @ nginx logs to see if anything is messed up Comment : @SB . so if Nginx isn t running despite me running my app this could be an MNPP https : github.com jyr MNPP issue I guess I ve stopped and started this MAMP WAMP-like server for over a year now so no idea what would have locked it in the off position despite me starting it . .. . Answer : You ll want to check the error-log for anything related to nginx . MNPP appears to install nginx in Applications MNPP Library nginx . Comment : which error-log please Is there one specific to nginx",
"Question : I get the following error when I run MNPP which is a like XAMPP MAMP but with Nginx instead of Apache . Judging from all the SO threads on this topic I m pretty sure this is a X11 XQuartz Mac OSX Mavericks issue as it this command works on my previous Mac with 10.7.5 . How do I upgrade my version of libfreetype.6.dylib .. . Answer : You likely have the DYLD LIBRARY PATH environment variable set . Don t do that .",
"Question : null .. . Answer : My version of PHP 5.3.8 doesn t contain BC-Math http : www.php.net manual en ref.bc.php which is needed for many cryptocurrency functions . Google hasn t been particularly helpful for links on how to install this particularly library so I m at a total loss on how to add it to my already running PHP webserver . Might someone point me in the direction of how to install this Comment : windows or linux Comment : mac 10.7.5 so linux right Comment : Windows or linux if linux what distribution Comment : Are you sure it doesn t contain BC-Math After checking the docs it says Since PHP 4.0.4 libbcmath is bundled with PHP . You don t need any external libraries for this extension . Comment : Here s a page that might help you to do what @Tularis suggests : mac-dev-env.patrickbougie.com php http : mac-dev-env.patrickbougie.com php Alternatively you can install PHP with homebrew ."
]
} | [
"yes-answer-long",
"yes-answer-short"
] | percona | UNK_RELATION |
reliable-multicast@networking@67 | reliable-multicast -- a reliable-multicast protocol is a computer @placeholder protocol that provides a reliable sequence of packets to multiple recipients simultaneously . | {
"confidence": [
75.17367553710938,
73.391357421875,
70.26160430908203,
62.89460372924805,
62.2471809387207,
60.3647575378418,
59.63590621948242,
58.158363342285156,
55.89269256591797,
55.344322204589844,
55.22538757324219,
55.22538757324219,
54.096656799316406,
53.60654830932617,
50.79521179199219,
50.37017822265625,
50.276336669921875,
49.951412200927734,
49.17218017578125,
48.93083190917969,
48.50392150878906,
48.0018196105957,
46.83700180053711,
46.62701416015625,
46.451473236083984,
46.29526901245117,
46.20220947265625,
46.011558532714844,
45.41318130493164,
44.20716857910156,
44.15803527832031,
44.12065124511719,
43.786460876464844,
43.6859130859375,
43.6859130859375,
43.481712341308594,
43.10661315917969,
42.74468231201172,
42.100738525390625,
42.100738525390625,
42.100738525390625,
41.95952606201172,
41.054466247558594,
41.054466247558594,
41.054466247558594,
41.054466247558594,
41.054466247558594,
40.638916015625,
39.79877471923828,
39.570892333984375,
39.570892333984375,
39.570892333984375,
38.974403381347656,
38.929039001464844,
38.929039001464844,
38.524620056152344,
38.5084342956543,
38.5084342956543,
38.5084342956543,
38.5084342956543,
38.5084342956543,
38.38909912109375,
38.23488998413086,
37.340457916259766,
37.16167449951172,
36.99231719970703,
36.90998077392578,
35.97858810424805,
35.078941345214844,
35.078941345214844,
35.078941345214844,
35.078941345214844,
35.078941345214844,
35.078941345214844,
35.078941345214844,
35.078941345214844,
33.93407440185547,
32.549095153808594,
32.549095153808594,
32.549095153808594,
32.549095153808594,
32.549095153808594,
32.549095153808594,
32.549095153808594,
32.549095153808594,
32.549095153808594,
31.338459014892578,
30.6291561126709,
30.44066619873047,
30.36420440673828,
30.36420440673828,
30.36420440673828,
30.078716278076172,
29.915023803710938,
28.71187973022461,
28.09930992126465,
27.91082000732422
],
"content": [
"Therefore the term R-multicast reliable-multicast was introduced .",
"Using reliable-multicast e.g .",
"Is it possible to have realtime reliable-multicast",
"The server then opens up a reliable-multicast socket for the client to listen on .",
"As far as reliable-multicast goes that s an application level construct built on top of multicast .",
"There is a large RFC division of reliable-multicast protocols and many implementations out there .",
"This question is similar to Using reliable-multicast Pragmatic General Multicast not returning from accept http : stackoverflow.com questions 11650328 using-reliable-multicast-pragmatic-general-multicast-not-returning-from-accept but my code is slightly different from its so it may result in a different answer .",
"Following on from TIBCO the PGM protocol is an open standard reliable-multicast with many optimisations to efficiently work at very large scales with network element acceleration .",
"@EJP I don t think this is off topic question since the question itself ask developers opinions on best reliable-multicast protocol which doesn t need change to routers transport layer protocol .",
".. . .. . There are a number of protocols which implement these features : .. . .. . UFTP - Encrypted UDP based FTP with multicast http : uftp-multicast.sourceforge.net disclosure : author .. . NORM - NACK-Oriented Reliable Multicast http : www.nrl.navy.mil itd ncs products norm .. . PGM - Pragmatic General Multicast http : openpgm.googlecode.com .. . UDPCast http : www.udpcast.linux.lu .. . .. . Relevant RFCs : .. . .. . RFC 4654 - TCP-Friendly Multicast Congestion Control TFMCC : Protocol Specification http : tools.ietf.org html rfc4654 .. . RFC 5401 - Multicast Negative-Acknowledgment NACK Building Blocks http : tools.ietf.org html rfc5401 .. . RFC 5470 - NACK-Oriented Reliable Multicast NORM Transport Protocol http : tools.ietf.org html rfc5470 .. . RFC 3208 - PGM Reliable Transport Protocol Specification http : tools.ietf.org html rfc3208",
"I am attempting to get a reliable-multicast server client proof of concept setup .",
"Since IP is inherently unreliable reliable-multicast built on top of IP needs to account for this unreliability .",
"Even though the multicast server and client processes are running on the same host the multicast server data is sent out out the host this is according to the multicast protocol .",
"As I understand Tibco uses PGM protocol and from OpenPGM website it s clear that it provides reliable multicasting .",
"B-multicast is basic multicast related to distributed multicast",
"This is not ideal nor is it reliable .",
"I am preparing for my university exam and one of the question last year was how to make UDP multicast reliable like tcp retransmission of lost packets .. . .. . I thought about something like this : .. . .. . 1 .",
"enter image description here http : i.stack.imgur.com NaBeP.png .. . .. . I am aware of this http : stackoverflow.com questions 11992567 reliable-multicast-over-local-network and this http : stackoverflow.com questions 31199565 methods-for-implementing-udp-multicast-reliable stackoverflow questions which answers known methods to achieve Reliable Multicast but off-late I have come across some websites which mentions even routers should also be programmed to handle custom protocols which are designed over UDP is that true",
"B-multicast is actually basic multicast",
"What is the difference between multicast and Basic multicast B-Multicast",
"It can be implemented over either B-multicast or IP multicast such as R-IP multicast vs R-B Multicast .",
"I am also open to the possibility of implementing reliable-multicast by myself in the application layer but I would prefer not to if there is a library that already implements this .",
"This flooded the whole building about 1000 PCs with multicast packets destined for their origin .",
"This agreement brings 100 integrity.In addition it can be implemented over either B-multicast or IP multicast such as R-IP multicast vs R-B Multicast .",
"It listens on the public multicast address and private multicast address when specified and forwards downstream packets to a specific address downstream .",
"Data is sent out via multicast with a sequence number .",
"Is there advanced-multicast",
"The difference between IP multicast https : en.wikipedia.org wiki IP multicast and basic multicast is related to where-in the network stack the multicast is occurring .",
"The server opens up the multicast socket then binds and connects to the multicast address properly .",
"what s your favorite multicast protocol if you can explain its pros and cons .",
"In R-B multicast the sender will be imploded by acks when the infra is scalable whereas in R multicast over IP multicast since the omissionn and failure of the message is low due to the IP multicast tech only NACK will be sent back .",
"Basically I want to use Multicast for my application and I want don t want to impose any restriction of changing router for configuring custom protocol to handle UDP in reliable way for example I was thinking for implementing using PGM protocol over UDP to handle multicast but someone said that router should also have support for PGM which restricts me in providing solution since customers should change infrastructure for my solution which is unwarranted .",
"TCP is much more reliable than UDP .",
"When a sender needs to multicast a relatively large volume of data say several megabytes per second in a reliable way over Ethernet to a modest number of receivers say less than a dozen on the same subnet what is the most efficient protocol",
"We have implemented our own reliable-multicast protocol over UDP called RSP http : www.equalizergraphics.com documents design multicast.html since we needed something cross-platform and at the time couldn t find a good solution between Linux and Windows .",
"Unless multicast routing is enabled on networking devices multicast routers multicast will be available only within one LAN .",
"If you can t or don t want to configure routers to forward multicast traffic or otherwise handle a third party protocol you ll need to tunnel multicast traffic over a unicast link .",
"There is an entire IETF Working Group on reliable-multicast and several protocols have already been existence for many years : TRAM for one that aren t router-intrusive I suggest you need to do further research .",
".. . .. . Listings .. . .. . Server creates and connects Multicast sender .. . .. . Client creates and accepts Multicast reader",
"There could be multicast receivers outside of your subnet building hence the reason for the multicast data to be sent out of the host .",
"After all I want to know the differences between IP multicast and B-multicast .",
"Then the server can multicast the missing packets so any clients missing them can receive them .",
"Server send multicast using UDP .. . .. . 2 .",
"What exactly do you mean by B-Multicast",
"There can be many multicast addresses present in a network .",
"In the case of IP multicast this occurs at the network layer i.e .",
"Basic multicast refers to multicasting at the link layer or below .",
"The only reliable way to go through Internet infrastructure is uni-cast .",
"Please let me know if there is any solution which I can implement to handle UDP packets in reliable way without any changes to network infrastructure .",
"Because of the risk of multicast storm as explained above we like to cut the network into segregated multicast zones .",
"If you use multicast you need to add multicast support requirement to the networking infrastructure .",
"Update : Multicast routing is performed on Network layer and multicast routers don t need to know anything about transport application layers .",
"Even though I was only sending receiving on the local host it seems like network packets were still being sent to the switch with the multicast flag on .",
"To make UDP reliable you have to handle few things i.e . implement it yourself .",
"Most reliable implementations usually send keep-Alive messages to maintain the connection between the two ends .",
"Multicast would still be useful for discovering nodes of course .",
"And when a switch receives the multicast traffic it will flood it or drop it depending on the configuration .",
"The R-multicast brings advance reliability by using the concepts of ATOMIC .",
"Where did you hear the term basic multicast and in what context",
"I m not aware of any such thing or at least nothing distinct from multicast .",
"For IPv4 addresses in the range 224.0.0.0 4 224.0.0.0 - 239.255.255.255 are multicast addresses .",
"If server realize that not everyone receive packets it resends multicast or unicast to particular client .. . .. . The problem are that there might be one client who usually lost packets and force server to resend .",
"A client that detects a missing sequence number sends out a messge on the multicast group hey I missed packet 12345 .",
"EDIT : .. . .. . I don t mean to say that I don t want to enable multicast in router I would definitely enable multicast routing in router .",
"As for IPv4 -- it s similar in IPv6 .. . .. . Multicast addresses Theses correspond to the class D . The class D : .. . .. . First octet : 224 - 239 .. . First octet pattern : 1110 .. . These IP addresses are multicast addresses .",
"If server realize that not everyone receive packets it resends multicast or unicast to particular client .. . .. . When the server receives a NACK it should not immediately resend the missing packets but wait for some period of time typically a multiple of the GRTT Group Round Trip Time -- the largest round trip time among the receiver set .",
"I think you should perhaps take a look at Stream Control Transmission Protocol http : en.wikipedia.org wiki Stream 5FControl 5FTransmission 5FProtocol as an alternative to UDP multicasting if you really want reliable simultaneous transmission to multiple clients .",
".. . A server proxy is typically local to a server and acts as the upstream end of a multicast tunnel .",
"I think the question has already been answered : pragmatic general multicast https : code.google.com p openpgm .",
"Other than TCP it uses NACK rather than ACK which is more favorable with multicast .",
"NACKs are sent only when packet-loss is detected in conditions where multicast is available this is usually 1 .",
"We have basic multicast which just deliver the message with basic guarantees and reliability .",
"Moreover there is an agreement which says each of the members of the group also multicast the message after being delivered .",
"Network nodes must perform a join multicast-address call in order to receive packet sent to the address multicast-address .",
"See here more detail on different types of multicast addresses https : en.wikipedia.org wiki Multicast address .",
"Most multicast technologies at lower levels are also unreliable and thus need application layer reliability as well .",
"When Ethernet frames carry IPv4 multicast data the destination addresses are in the range 01 : 00 : 5E : 00 : 00 : 00 - 01 : 00 : 5E : 7F : FF : FF while frames with IPv6 multicast data have addresses in the 33 : 33 : xx : xx : xx : xx range .",
"Tibco should also provide heuristics in the client and server as to whether to multicast or unicast the retransmission request and the retransmission itself .",
"You will have to make guesses as to where a packet was dropped and whether the retransmission is most efficiently sent unicast or multicast .",
"Perhaps you may have different requirements depending on the subscriber and some clients will prefer unicast TCP vs multicast .",
"After much thought I have determined that multicasting or a multicast-style technique will work best to solve my problem .",
"UFTP http : uftp-multicast.sourceforge.net is capable of multicast tunneling via the use of a UFTP proxy server .",
".. . A client proxy is typically local to one or more clients and forms the downstream end of a multicast tunnel .",
"It receives unicast data from one or more server proxies and forwards downstream traffic to the multicast address specified in the packet header .",
"By the way one of possible solution to pass multicast through the Internet is tunneling protocols GRE IP over IP and so on .",
"As I understand after short reading PGM build its own infrastructure to optimize multicast paths .",
"PGM was developed by TIBCO and CISCO and is an optional protocol underneath TIBCO Rendezvous the default protocol being TRDP which is very similar in design .",
"The broadcast address is used to send packet to all the nodes within the LAN not further not only the nodes that would had performed a join multicast-address call -- that make no sense .",
"there are used for specific routing protocol service-discovery NTP sometimes experimental use-cases .",
"Either a stream-oriented or a message-oriented protocol would be acceptable .",
"BitTorrent presents a lot of interesting ideas in network-protocols and protocol design .",
"He specifically asked for an efficient protocol for distributing data on a subnet .",
"Packets with destination addresses in this range are sent to multiple hosts as requested via IGMP messages .",
"Alan : Do you confirm that with this protocol the same information can be transmit from an endpoint toward several clients simultaneously I m currently study the possiblity to use it for dispatch financial market data .",
"UDP is useful for multicast but it doesn t provide the guarantees you re looking for - BitTorrent will require you to transmit more than one full copy from the original source but it s still fairly efficient and provides useful guarantees especially considering how much checksumming is done on each chunk of data passed along .",
"Below is a diagram of a typical configuration where a server sends multicast messages to the local network and one or more server proxies unicast the messages to a corresponding client proxy which in turn multicasts the messages to its local network .",
"By reliable I mean that if a packet is lost the protocol ensures that it gets resent such that there is no data loss in any receiver ."
]
} | {
"confidence": [
88.48127746582031,
86.33673858642578,
83.63756561279297,
81.2608871459961,
79.49591064453125,
79.14521789550781,
76.21916198730469,
75.90971374511719,
73.42350769042969,
72.2228775024414,
71.34901428222656,
70.2760009765625,
68.85736083984375,
68.85736083984375,
67.86312103271484,
62.34800720214844,
61.988250732421875,
53.44508361816406,
20.485427856445312
],
"content": [
"Question : I am preparing for my university exam and one of the question last year was how to make UDP multicast reliable like tcp retransmission of lost packets .. . .. . I thought about something like this : .. . .. . 1 . Server send multicast using UDP .. . .. . 2 . Every client send acknowledgement of receiving that packets using TCP .. . .. . 3 . If server realize that not everyone receive packets it resends multicast or unicast to particular client .. . .. . The problem are that there might be one client who usually lost packets and force server to resend . Is it good Comment : I assume that the acknowledgment in step 2 involves actually connecting to the server Also step 3 is potentially endless what if some client is on a really bad connection or have a local firewall that silently drops packets . Comment : I think that there isn t other option than connecting to the server in step 2 . Yes that s the problem with step 3 . Is there any workaround Comment : The solution for number 3 is to either continue retrying infinitely or simply give up with an error message after a certain number of retries . And if you want to use a TCP acknowledgment in step 2 then there s really no other way . Comment : it s my idea to use TCP in step 2 so maybe it s wrong . I think that using udp to acknowledgement exacerbate problems Comment : I think the question has already been answered : pragmatic general multicast https : code.google.com p openpgm . Other than TCP it uses NACK rather than ACK which is more favorable with multicast . How would you handle ACKs for possibly 10 000 clients receiving your datagrams NACKs are sent only when packet-loss is detected in conditions where multicast is available this is usually 1 . .. . Answer : Every client send acknowledgement of receiving that packets using TCP .. . .. . Sending an ACK for each packet and using TCP to do so is not scalable to a large number of receivers . Using a NACK based scheme is more efficient . Each packet sent from the server should have a sequence number associated with it . As clients receive them they keep track of which sequence numbers were missed . If packets are missed a NACK message can then be sent back to the server via UDP . This NACK can be formatted as either a list of sequence numbers or a bitmap of received not received sequence numbers . If server realize that not everyone receive packets it resends multicast or unicast to particular client .. . .. . When the server receives a NACK it should not immediately resend the missing packets but wait for some period of time typically a multiple of the GRTT Group Round Trip Time -- the largest round trip time among the receiver set . That gives it time to accumulate NACKs from other receivers . Then the server can multicast the missing packets so any clients missing them can receive them . If this scheme is being used for file-transfer as opposed to streaming data the server can alternately send the file data in passes . The complete file is sent on the first pass during which any NACKs that are received are accumulated and packets that need to be resent are marked . Then on subsequent passes only retransmissions are sent . This has the advantage that clients with lower loss rates will have the opportunity to finish receiving the file while high loss receivers can continue to receive retransmissions . The problem are that there might be one client who usually lost packets and force server to resend . For very high loss clients the server can set a threshold for the maximum percentage of packets missed . If a client sends back NACKs in excess of that threshold one or more times how many times is up to the server the server can drop that client and either not accept its NACKs or send a message to that client informing it that it was dropped . .. . .. . There are a number of protocols which implement these features : .. . .. . UFTP - Encrypted UDP based FTP with multicast http : uftp-multicast.sourceforge.net disclosure : author .. . NORM - NACK-Oriented Reliable Multicast http : www.nrl.navy.mil itd ncs products norm .. . PGM - Pragmatic General Multicast http : openpgm.googlecode.com .. . UDPCast http : www.udpcast.linux.lu .. . .. . Relevant RFCs : .. . .. . RFC 4654 - TCP-Friendly Multicast Congestion Control TFMCC : Protocol Specification http : tools.ietf.org html rfc4654 .. . RFC 5401 - Multicast Negative-Acknowledgment NACK Building Blocks http : tools.ietf.org html rfc5401 .. . RFC 5470 - NACK-Oriented Reliable Multicast NORM Transport Protocol http : tools.ietf.org html rfc5470 .. . RFC 3208 - PGM Reliable Transport Protocol Specification http : tools.ietf.org html rfc3208",
"Question : enter image description here http : i.stack.imgur.com NaBeP.png .. . .. . I am aware of this http : stackoverflow.com questions 11992567 reliable-multicast-over-local-network and this http : stackoverflow.com questions 31199565 methods-for-implementing-udp-multicast-reliable stackoverflow questions which answers known methods to achieve Reliable Multicast but off-late I have come across some websites which mentions even routers should also be programmed to handle custom protocols which are designed over UDP is that true Basically I want to use Multicast for my application and I want don t want to impose any restriction of changing router for configuring custom protocol to handle UDP in reliable way for example I was thinking for implementing using PGM protocol over UDP to handle multicast but someone said that router should also have support for PGM which restricts me in providing solution since customers should change infrastructure for my solution which is unwarranted . Please let me know if there is any solution which I can implement to handle UDP packets in reliable way without any changes to network infrastructure . Thanks in advance . EDIT : .. . .. . I don t mean to say that I don t want to enable multicast in router I would definitely enable multicast routing in router . When I read about PGM implementation some one said even router should be PGM capable which I thought is different router than commercially available routers in stores . Is my understanding wrong Comment : There is an entire IETF Working Group on reliable-multicast and several protocols have already been existence for many years : TRAM for one that aren t router-intrusive I suggest you need to do further research . As it stands this question is off topic . Comment : @EJP I don t think this is off topic question since the question itself ask developers opinions on best reliable-multicast protocol which doesn t need change to routers transport layer protocol . I can research but it would not help me until experts give their opinion . .. . Answer : If you use multicast you need to add multicast support requirement to the networking infrastructure . Unless multicast routing is enabled on networking devices multicast routers multicast will be available only within one LAN . The only reliable way to go through Internet infrastructure is uni-cast . Update : Multicast routing is performed on Network layer and multicast routers don t need to know anything about transport application layers . In some situation knowledge about application layer is required on network layer but almost all that situation is related to NAT ALG Application Level Gateway . By the way one of possible solution to pass multicast through the Internet is tunneling protocols GRE IP over IP and so on . Comment : Thanks please read my updated question . I think my words were not clear earlier . Comment : @RN55 Updated answer as well . Comment : Please see picture updated which shows PGM requires transport layer support in routers this screenshot was captured from one of the slides which explains how PGM works . Does this mean we should buy router which supports PGM Comment : As I understand after short reading PGM build its own infrastructure to optimize multicast paths . If you want to use it you need PGM Router Assist or its analogue . These elements are required in all networks where PGM is required . Comment : Of course it doesn t mean that you need support PGM by all routers between your networks you can use tunneling features to pass them through .",
"Question : enter image description here http : i.stack.imgur.com NaBeP.png .. . .. . I am aware of this http : stackoverflow.com questions 11992567 reliable-multicast-over-local-network and this http : stackoverflow.com questions 31199565 methods-for-implementing-udp-multicast-reliable stackoverflow questions which answers known methods to achieve Reliable Multicast but off-late I have come across some websites which mentions even routers should also be programmed to handle custom protocols which are designed over UDP is that true Basically I want to use Multicast for my application and I want don t want to impose any restriction of changing router for configuring custom protocol to handle UDP in reliable way for example I was thinking for implementing using PGM protocol over UDP to handle multicast but someone said that router should also have support for PGM which restricts me in providing solution since customers should change infrastructure for my solution which is unwarranted . Please let me know if there is any solution which I can implement to handle UDP packets in reliable way without any changes to network infrastructure . Thanks in advance . EDIT : .. . .. . I don t mean to say that I don t want to enable multicast in router I would definitely enable multicast routing in router . When I read about PGM implementation some one said even router should be PGM capable which I thought is different router than commercially available routers in stores . Is my understanding wrong Comment : There is an entire IETF Working Group on reliable-multicast and several protocols have already been existence for many years : TRAM for one that aren t router-intrusive I suggest you need to do further research . As it stands this question is off topic . Comment : @EJP I don t think this is off topic question since the question itself ask developers opinions on best reliable-multicast protocol which doesn t need change to routers transport layer protocol . I can research but it would not help me until experts give their opinion . .. . Answer : If you can t or don t want to configure routers to forward multicast traffic or otherwise handle a third party protocol you ll need to tunnel multicast traffic over a unicast link . UFTP http : uftp-multicast.sourceforge.net is capable of multicast tunneling via the use of a UFTP proxy server . From the man page : .. . .. . The proxy can run in one of three modes : a server proxy a client proxy or response proxy . .. . A server proxy is typically local to a server and acts as the upstream end of a multicast tunnel . It listens on the public multicast address and private multicast address when specified and forwards downstream packets to a specific address downstream . Upstream packets are forwarded back where the announcement originated from . .. . A client proxy is typically local to one or more clients and forms the downstream end of a multicast tunnel . It receives unicast data from one or more server proxies and forwards downstream traffic to the multicast address specified in the packet header . Upstream traffic from clients is gathered and forwarded back where the announcement came from as an aggregated response . Below is a diagram of a typical configuration where a server sends multicast messages to the local network and one or more server proxies unicast the messages to a corresponding client proxy which in turn multicasts the messages to its local network . These proxies are also capable of working in a NATed environment : .. . .. . If a client proxy is behind a firewall the proxy can send a heartbeat message to the upstream proxy to make a pinhole in the firewall that the upstream server proxy can connect to . If the client proxy is also NATed the upstream server proxy may not know the IP port of the client proxy so the server proxy can be configured to wait for a heartbeat message and use the IP port the heartbeat came from as its downstream address . If the server proxy is also behind a firewall or NAT a second server proxy on a machine with a publicly accessible IP can be inserted between the first server proxy and the client proxy . In this case the first server proxy is set up to use the second as its downstream address and the second server proxy is set up to use the first heartbeat it receives from a client proxy as its downstream address . I m the author of this software so if you need pointers regarding how to set this up send me an email via the link at the bottom of the UFTP page and we ll see what we can do . Update : .. . .. . In the case of PGM it can be configured to run at either the application layer i.e . on top of UDP or at the transport layer i.e . directly on top of IP . If PGM is run at the transport layer that s where you might need to worry about the router having special support for it . Conversely UFTP runs strictly at the application layer . Comment : Thanks please read my updated question . I think my words were not clear earlier .",
"Question : This question is similar to Using reliable-multicast Pragmatic General Multicast not returning from accept http : stackoverflow.com questions 11650328 using-reliable-multicast-pragmatic-general-multicast-not-returning-from-accept but my code is slightly different from its so it may result in a different answer . I am attempting to get a reliable-multicast server client proof of concept setup . The solution itself is a server client connection . The client connects to the server via TCP IP . The server then opens up a reliable-multicast socket for the client to listen on . The client sends messages via TCP and the server echoes it back via IPPROTO RM . The end goal is to have many clients connected to the server all receiving every echoed message . The example code is based off of this page http : www.winsocketdotnetworkprogramming.com winsock2programming winsock2advancedmulticast9d.html . I have set up my RM sockets similarly see listings below . The TCP sockets are working fine . The problem is in the RM sockets . The server opens up the multicast socket then binds and connects to the multicast address properly . The client however listens correctly but the call to accept blocks forever . Both client and server processes are running on the same host . I have checked and Multicasting support is installed on the host Server 2008 . .. . .. . Update : I ve noticed that sometimes the accept will return if I send some data down the socket from the sender s side first . This is not ideal nor is it reliable . Update : The signs are pointing to the switch . Seems like a little hub won t cut it . We had an hilarious incident which resulted in lost comms for the whole building . .. . .. . Listings .. . .. . Server creates and connects Multicast sender .. . .. . Client creates and accepts Multicast reader .. . Answer : Do you have MSMQ microsoft message queuing installed it is required for IPPROTO RM to work on Ms based computers . Plus it will only work for Windows version Xp 2003 .. . .. . Edit : I saw that you already checked it . Comment : That s right I did indeed check it . MSMQ is installed and so is Multicasting support . all servers are Windows 2008 . Comment : Yea the problem is that the receiver performs accept syncronous and does not return untill the first data was received. . I am currently searching for a workaround to this design perhaps AcceptEx or something . Comment : @RobertH I would seriously take a look at the specs for your switch . Even though I was only sending receiving on the local host it seems like network packets were still being sent to the switch with the multicast flag on . This flooded the whole building about 1000 PCs with multicast packets destined for their origin . Funny but not really what I was after . Comment : @anthony-arnold : There is nothing wrong with the behavior of the switch the expected is behavior . Even though the multicast server and client processes are running on the same host the multicast server data is sent out out the host this is according to the multicast protocol . There could be multicast receivers outside of your subnet building hence the reason for the multicast data to be sent out of the host . And when a switch receives the multicast traffic it will flood it or drop it depending on the configuration . Most of the switches flood . Comment : @MuraliPaluru Yes the point being that the switch needs to be configured in order to handle the PGM traffic without flooding and it wouldn t be unusual for a switch to not be configurable to that level .",
"Question : When a sender needs to multicast a relatively large volume of data say several megabytes per second in a reliable way over Ethernet to a modest number of receivers say less than a dozen on the same subnet what is the most efficient protocol By reliable I mean that if a packet is lost the protocol ensures that it gets resent such that there is no data loss in any receiver . The term efficient is a lot harder to define but let s say we want to maximize throughput and minimize network bandwidth with modest CPU usage on both ends . That s still not a clear-cut definition but it s the best I can come up with . Either a stream-oriented or a message-oriented protocol would be acceptable . I d appreciate real-world examples and I ll gladly accept subjective answers i.e . what s your favorite multicast protocol if you can explain its pros and cons . Comment : How many receivers If you have less than ten receivers then you can consider several node-to-node communications . .. . Answer : Real-world example : TIBCO Rendezvous . Data is sent out via multicast with a sequence number . A client that detects a missing sequence number sends out a messge on the multicast group hey I missed packet 12345 . The server re-multicasts out that data . The server has a configurable amount of data to buffer in case a client requests it . The problem : .. . .. . Imagine having a single client that drops half of his packets and 100 healthy clients . This client sends a retransmission request for every other packet . The server begins to cause enough load on one of the healthy clients such that it starts dropping packets and requesting retransmissions . The extra load from that causes another healthy client to begin requesting retransmissions . And so on . A congestion collapse results . Tibco provides a workaround of cutting off a subscriber that sends too many retransmission requests . This makes it harder for a single subscriber to cause a congestion collapse . The other workaround to limit the risk of congestion collapse is to limit the amount of data that a server is willing to retransmit . Tibco should also provide heuristics in the client and server as to whether to multicast or unicast the retransmission request and the retransmission itself . They don t . For the server you could unicast the retransmission if only one client requested it in a certain time window for the client you could unicast the retransmission request if the server has told you - in the retransmitted packet - that you are the only one requesting retransmissions and to please unicast the requests in the future .. . .. . Fundamentally you will have to decide between how strongly you want to guarantee that clients receive data vs the risk of congestion collapse . You will have to make guesses as to where a packet was dropped and whether the retransmission is most efficiently sent unicast or multicast . If the server understands the data and can decide to not send a retransmission if there is updated data to be sent anyway that makes the retransmission irrelevant you are in a much better position than a framework such as Tibco RV . Sometimes understanding the data can lead to wrong assumptions . For example market data - it may seem at first OK to not retransmit a quote when there is an updated quote . But later you may find that a subscriber was keeping a quote history not just trying to keep track of the current quote . Perhaps you may have different requirements depending on the subscriber and some clients will prefer unicast TCP vs multicast . At some point you will need to make arbitrary decisions on the server of how much data to buffer in case of retransmissions or slow clients . Comment : +1 very clear succinct explanation . As I understand Tibco uses PGM protocol and from OpenPGM website it s clear that it provides reliable multicasting . However I m not sure if it can guarantee low-latency as well . Is it possible to have realtime reliable-multicast If not with PGM is there any available technology out there Many thanks . Comment : Yes Tibco provides low-latency . A typical use-case is to broadcast financial values on many screens in a same room the same LAN . Because of the risk of multicast storm as explained above we like to cut the network into segregated multicast zones . It s not a young product now there are other solutions .",
"Question : When a sender needs to multicast a relatively large volume of data say several megabytes per second in a reliable way over Ethernet to a modest number of receivers say less than a dozen on the same subnet what is the most efficient protocol By reliable I mean that if a packet is lost the protocol ensures that it gets resent such that there is no data loss in any receiver . The term efficient is a lot harder to define but let s say we want to maximize throughput and minimize network bandwidth with modest CPU usage on both ends . That s still not a clear-cut definition but it s the best I can come up with . Either a stream-oriented or a message-oriented protocol would be acceptable . I d appreciate real-world examples and I ll gladly accept subjective answers i.e . what s your favorite multicast protocol if you can explain its pros and cons . Comment : How many receivers If you have less than ten receivers then you can consider several node-to-node communications . .. . Answer : I think you should perhaps take a look at Stream Control Transmission Protocol http : en.wikipedia.org wiki Stream 5FControl 5FTransmission 5FProtocol as an alternative to UDP multicasting if you really want reliable simultaneous transmission to multiple clients . Comment : Alan : Do you confirm that with this protocol the same information can be transmit from an endpoint toward several clients simultaneously I m currently study the possiblity to use it for dispatch financial market data . Comment : SCTP and unicast in general is not efficient for what the OP is trying to do : Transferring several megabytes per second to multiple receivers and to maximize throughput and minimize network bandwidth . Bandwidth consumption grows linearly with the number of receivers and a 1GbE link would be saturated at 10MB s with 12 receivers . Using reliable-multicast e.g . PGM the bandwidth under ideal circumstances no packet-loss is completely independent of the number of receivers i.e . a 1GbE link would be less than 10 saturated when doing 10MB s . Comment : Also is SCTP any better for multiple clients than say TCP TCP is heavily optimized even in hardware i.e . NICs . That often means much reduced CPU consumption something the OP is also interested in like Rx Coalescing Checksum offload and so forth . So in general any newcomer will have a hard time beating that . That said I hope SCTP and its concepts especially efficient multiplexing over IP will find the adoption they deserve .",
"Question : When a sender needs to multicast a relatively large volume of data say several megabytes per second in a reliable way over Ethernet to a modest number of receivers say less than a dozen on the same subnet what is the most efficient protocol By reliable I mean that if a packet is lost the protocol ensures that it gets resent such that there is no data loss in any receiver . The term efficient is a lot harder to define but let s say we want to maximize throughput and minimize network bandwidth with modest CPU usage on both ends . That s still not a clear-cut definition but it s the best I can come up with . Either a stream-oriented or a message-oriented protocol would be acceptable . I d appreciate real-world examples and I ll gladly accept subjective answers i.e . what s your favorite multicast protocol if you can explain its pros and cons . Comment : How many receivers If you have less than ten receivers then you can consider several node-to-node communications . .. . Answer : Following on from TIBCO the PGM protocol is an open standard reliable-multicast with many optimisations to efficiently work at very large scales with network element acceleration . PGM was developed by TIBCO and CISCO and is an optional protocol underneath TIBCO Rendezvous the default protocol being TRDP which is very similar in design . You can calculate theoretical efficiencies such as listed here for PGM .. . .. . http : code.google.com p openpgm wiki PgmPerformance .. . .. . Unfortunately real world network elements NICs and general computer architectures perform a lot less than the theoretical maximums .",
"Question : What is the difference between multicast and Basic multicast B-Multicast How each of them works exactly .. . .. . This is related to distributed systems . We have basic multicast which just deliver the message with basic guarantees and reliability . Since the process is alive and doesn t crash the message will be delivered . However if the process crashes there is no guarantee for reliability . Therefore the term R-multicast reliable-multicast was introduced . The R-multicast brings advance reliability by using the concepts of ATOMIC . It relies on some features such as integrity Validity . Moreover there is an agreement which says each of the members of the group also multicast the message after being delivered . This agreement brings 100 integrity.In addition it can be implemented over either B-multicast or IP multicast such as R-IP multicast vs R-B Multicast . In R-B multicast the sender will be imploded by acks when the infra is scalable whereas in R multicast over IP multicast since the omissionn and failure of the message is low due to the IP multicast tech only NACK will be sent back . After all I want to know the differences between IP multicast and B-multicast . How they exactly work I know the concepts as is written but need more detail . Comment : What exactly do you mean by B-Multicast Comment : I guessed it was just a typos a bad copy-paste maybe . He actually meant broadcast . Comment : B-multicast is actually basic multicast Comment : Where did you hear the term basic multicast and in what context I m not aware of any such thing or at least nothing distinct from multicast . Comment : This is related to distributed systems . We have basic multicast which just deliver the message with basic guarantees and reliability . Since the process is alive and doesn t crash the message will be delivered . However if the process crash there is no guarantee for reliability . Therefore the term R-multicast reliable-multicast was introduced . It can be implemented over either B-multicast or IP multicast such as R-IP multicast vs R-B Multicast . After all I want to know the differences between IP multicast and B-multicast . .. . Answer : The difference between IP multicast https : en.wikipedia.org wiki IP multicast and basic multicast is related to where-in the network stack the multicast is occurring . In the case of IP multicast this occurs at the network layer i.e . IP . For IPv4 addresses in the range 224.0.0.0 4 224.0.0.0 - 239.255.255.255 are multicast addresses . For IPv6 the addresses are in the FFxx : : 16 range . Packets with destination addresses in this range are sent to multiple hosts as requested via IGMP messages . Basic multicast refers to multicasting at the link layer or below . In the case of Ethernet any frame where the least significant bit of the first byte of the destination address are sent to all nodes in the network . When Ethernet frames carry IPv4 multicast data the destination addresses are in the range 01 : 00 : 5E : 00 : 00 : 00 - 01 : 00 : 5E : 7F : FF : FF while frames with IPv6 multicast data have addresses in the 33 : 33 : xx : xx : xx : xx range . There are other addresses used for other link-layer protocols such as spanning tree or Ethernet flow-control . Some physical layers such as terrestrial wireless or satellite are inherently broadcast . See here more detail on different types of multicast addresses https : en.wikipedia.org wiki Multicast address . As far as reliable-multicast goes that s an application level construct built on top of multicast . Since IP is inherently unreliable reliable-multicast built on top of IP needs to account for this unreliability . Most multicast technologies at lower levels are also unreliable and thus need application layer reliability as well .",
"Question : I am preparing for my university exam and one of the question last year was how to make UDP multicast reliable like tcp retransmission of lost packets .. . .. . I thought about something like this : .. . .. . 1 . Server send multicast using UDP .. . .. . 2 . Every client send acknowledgement of receiving that packets using TCP .. . .. . 3 . If server realize that not everyone receive packets it resends multicast or unicast to particular client .. . .. . The problem are that there might be one client who usually lost packets and force server to resend . Is it good Comment : I assume that the acknowledgment in step 2 involves actually connecting to the server Also step 3 is potentially endless what if some client is on a really bad connection or have a local firewall that silently drops packets . Comment : I think that there isn t other option than connecting to the server in step 2 . Yes that s the problem with step 3 . Is there any workaround Comment : The solution for number 3 is to either continue retrying infinitely or simply give up with an error message after a certain number of retries . And if you want to use a TCP acknowledgment in step 2 then there s really no other way . Comment : it s my idea to use TCP in step 2 so maybe it s wrong . I think that using udp to acknowledgement exacerbate problems Comment : I think the question has already been answered : pragmatic general multicast https : code.google.com p openpgm . Other than TCP it uses NACK rather than ACK which is more favorable with multicast . How would you handle ACKs for possibly 10 000 clients receiving your datagrams NACKs are sent only when packet-loss is detected in conditions where multicast is available this is usually 1 . .. . Answer : To make UDP reliable you have to handle few things i.e . implement it yourself . Connection handling : Connection between the sending and receiving process can drop . Most reliable implementations usually send keep-Alive messages to maintain the connection between the two ends . Sequencing : Messages need to split into chunks before sending . Acknowledgement : After each message is received an ACK message needs to be send to the sending process . These ACK messasges can also be sent through UDP doesn t have to be through UDP . The receiving process might realise that has lost a message . In this case it will stop delivering the messages from the holdback queue queue of messages that holds the received messages it is like a waiting room for messages and request of a retransmission of the missing message . Flow control : Throttle the sending of data based on the abilities of the receiving process to deliver the data . Usually there is a leader of a group of processes . Each of these groups normally have a leader and a view of the entire group . This is called a virtual synchrony .",
"Question : When a sender needs to multicast a relatively large volume of data say several megabytes per second in a reliable way over Ethernet to a modest number of receivers say less than a dozen on the same subnet what is the most efficient protocol By reliable I mean that if a packet is lost the protocol ensures that it gets resent such that there is no data loss in any receiver . The term efficient is a lot harder to define but let s say we want to maximize throughput and minimize network bandwidth with modest CPU usage on both ends . That s still not a clear-cut definition but it s the best I can come up with . Either a stream-oriented or a message-oriented protocol would be acceptable . I d appreciate real-world examples and I ll gladly accept subjective answers i.e . what s your favorite multicast protocol if you can explain its pros and cons . Comment : How many receivers If you have less than ten receivers then you can consider several node-to-node communications . .. . Answer : BitTorrent No seriously . You might want to read up on it http : wiki.theory.org BitTorrentSpecification . UDP is useful for multicast but it doesn t provide the guarantees you re looking for - BitTorrent will require you to transmit more than one full copy from the original source but it s still fairly efficient and provides useful guarantees especially considering how much checksumming is done on each chunk of data passed along . Comment : Thanks I had never considered BitTorrent . It s not going to be suitable for my application but it s an interesting idea anyway . Comment : BitTorrent presents a lot of interesting ideas in network-protocols and protocol design . Comment : He specifically asked for an efficient protocol for distributing data on a subnet . While BitTorrent is great for sharing large-files with multiple peers it s not efficient in a LAN setting at all . Comment : I m sorry where s your better alternative",
"Question : When a sender needs to multicast a relatively large volume of data say several megabytes per second in a reliable way over Ethernet to a modest number of receivers say less than a dozen on the same subnet what is the most efficient protocol By reliable I mean that if a packet is lost the protocol ensures that it gets resent such that there is no data loss in any receiver . The term efficient is a lot harder to define but let s say we want to maximize throughput and minimize network bandwidth with modest CPU usage on both ends . That s still not a clear-cut definition but it s the best I can come up with . Either a stream-oriented or a message-oriented protocol would be acceptable . I d appreciate real-world examples and I ll gladly accept subjective answers i.e . what s your favorite multicast protocol if you can explain its pros and cons . Comment : How many receivers If you have less than ten receivers then you can consider several node-to-node communications . .. . Answer : Might I suggest UFTP http : uftp-multicast.sourceforge.net . It uses a NAK based mechanism to determine which packets to retransmit and has an option for either a fixed transmission rate or congestion control using TFMCC http : tools.ietf.org html rfc4654 . Each file is sent in passes where the first pass transmits the entire file while subsequent passes only send retransmissions . Each client keeps track of which packets it received and which ones it missed . At particular checkpoints and at the end of a pass if the receiver missed any packets since the last checkpoint it will send a NAK listing the packets that were missed . This has the advantage that low-loss receivers will finish before high-loss receivers . UFTP can also be configured to drop receivers whose percentage of NAKs exceeds a certain threshold . By limiting NAKs to only receivers that have exhibited loss it reduces the risk of congestion collapse which is the sender getting overwhelmed by receiver feedback . Disclosure : author of UFTP .",
"Question : What is the difference between multicast and Basic multicast B-Multicast How each of them works exactly .. . .. . This is related to distributed systems . We have basic multicast which just deliver the message with basic guarantees and reliability . Since the process is alive and doesn t crash the message will be delivered . However if the process crashes there is no guarantee for reliability . Therefore the term R-multicast reliable-multicast was introduced . The R-multicast brings advance reliability by using the concepts of ATOMIC . It relies on some features such as integrity Validity . Moreover there is an agreement which says each of the members of the group also multicast the message after being delivered . This agreement brings 100 integrity.In addition it can be implemented over either B-multicast or IP multicast such as R-IP multicast vs R-B Multicast . In R-B multicast the sender will be imploded by acks when the infra is scalable whereas in R multicast over IP multicast since the omissionn and failure of the message is low due to the IP multicast tech only NACK will be sent back . After all I want to know the differences between IP multicast and B-multicast . How they exactly work I know the concepts as is written but need more detail . Comment : What exactly do you mean by B-Multicast Comment : I guessed it was just a typos a bad copy-paste maybe . He actually meant broadcast . Comment : B-multicast is actually basic multicast Comment : Where did you hear the term basic multicast and in what context I m not aware of any such thing or at least nothing distinct from multicast . Comment : This is related to distributed systems . We have basic multicast which just deliver the message with basic guarantees and reliability . Since the process is alive and doesn t crash the message will be delivered . However if the process crash there is no guarantee for reliability . Therefore the term R-multicast reliable-multicast was introduced . It can be implemented over either B-multicast or IP multicast such as R-IP multicast vs R-B Multicast . After all I want to know the differences between IP multicast and B-multicast . .. . Answer : As for IPv4 -- it s similar in IPv6 .. . .. . Multicast addresses Theses correspond to the class D . The class D : .. . .. . First octet : 224 - 239 .. . First octet pattern : 1110 .. . These IP addresses are multicast addresses . there are used for specific routing protocol service-discovery NTP sometimes experimental use-cases . Network nodes must perform a join multicast-address call in order to receive packet sent to the address multicast-address . There can be many multicast addresses present in a network . Broadcast address .. . .. . There is only one broadcast address in every network . This address is constructed with all its host-part IP address bits set to 1 . If the network is 192.168.0.0 24 the last octet is the host-part IP address and the first three ones are the network-part IP address . The broadcast address is then 192.168.0 . 255 . The broadcast address is used to send packet to all the nodes within the LAN not further not only the nodes that would had performed a join multicast-address call -- that make no sense . .. . .. . More details on this answer http : stackoverflow.com a 7781445 5321002 . Comment : There is also the Limited Broadcast address 255.255.255.255 which may be use on a LAN . Comment : I didn t mean broadcast . B-multicast is basic multicast related to distributed multicast Comment : Is there advanced-multicast I m not sure that my post answers your question .",
"Question : When a sender needs to multicast a relatively large volume of data say several megabytes per second in a reliable way over Ethernet to a modest number of receivers say less than a dozen on the same subnet what is the most efficient protocol By reliable I mean that if a packet is lost the protocol ensures that it gets resent such that there is no data loss in any receiver . The term efficient is a lot harder to define but let s say we want to maximize throughput and minimize network bandwidth with modest CPU usage on both ends . That s still not a clear-cut definition but it s the best I can come up with . Either a stream-oriented or a message-oriented protocol would be acceptable . I d appreciate real-world examples and I ll gladly accept subjective answers i.e . what s your favorite multicast protocol if you can explain its pros and cons . Comment : How many receivers If you have less than ten receivers then you can consider several node-to-node communications . .. . Answer : http : www.jgroups.org",
"Question : When a sender needs to multicast a relatively large volume of data say several megabytes per second in a reliable way over Ethernet to a modest number of receivers say less than a dozen on the same subnet what is the most efficient protocol By reliable I mean that if a packet is lost the protocol ensures that it gets resent such that there is no data loss in any receiver . The term efficient is a lot harder to define but let s say we want to maximize throughput and minimize network bandwidth with modest CPU usage on both ends . That s still not a clear-cut definition but it s the best I can come up with . Either a stream-oriented or a message-oriented protocol would be acceptable . I d appreciate real-world examples and I ll gladly accept subjective answers i.e . what s your favorite multicast protocol if you can explain its pros and cons . Comment : How many receivers If you have less than ten receivers then you can consider several node-to-node communications . .. . Answer : This is an open research question there are commercial solutions available but which are prohibitively expensive . Good luck .",
"Question : I am implementing a messaging system using C++ and Qt . After much thought I have determined that multicasting or a multicast-style technique will work best to solve my problem . However I have learned about UDP s unreliability and believe it to be unacceptable . My requirements are as follows : .. . .. . Messages are to be sent in a binary serialized form . From any given node on the network I must be able to send messages to the other nodes . Message delivery must be insured . I have heard of OpenPGM and NORM as alternatives for UDP . If anyone has experience with either of these could you please share I am also open to the possibility of implementing reliable-multicast by myself in the application layer but I would prefer not to if there is a library that already implements this . I am using C++ and Qt therefore .NET or Java-based solutions are not acceptable unless they are open-source and I may port them to C++ . Thank you very much . EDIT 20120816T1853 MDT : An additional question : would either PGM or NORM have to be implemented at the hardware IP level Or can they be overlayed on top of existing protocols .. . Answer : We have implemented our own reliable-multicast protocol over UDP called RSP http : www.equalizergraphics.com documents design multicast.html since we needed something cross-platform and at the time couldn t find a good solution between Linux and Windows . The Windows PGM implementation disconnects slow clients which leave the send window whereas our implementation throttles the sender similar to TCP . Afaik OpenPGM can be configured to do the same . Comment : I like what I see on your RSP page Is that library open-source I would like to implement a version of that protocol using that library as a reference that integrates into the Qt lifecycle . Comment : Nathan the library is LGPL hosted on github : github.com Eyescale https : github.com Eyescale . The easiest is to clone Buildyard and do a make Collage from there . Comment : Qt is also LGPL so there should be no licensing problems with me using them together Thanks I ll choose this answer",
"Question : I am implementing a messaging system using C++ and Qt . After much thought I have determined that multicasting or a multicast-style technique will work best to solve my problem . However I have learned about UDP s unreliability and believe it to be unacceptable . My requirements are as follows : .. . .. . Messages are to be sent in a binary serialized form . From any given node on the network I must be able to send messages to the other nodes . Message delivery must be insured . I have heard of OpenPGM and NORM as alternatives for UDP . If anyone has experience with either of these could you please share I am also open to the possibility of implementing reliable-multicast by myself in the application layer but I would prefer not to if there is a library that already implements this . I am using C++ and Qt therefore .NET or Java-based solutions are not acceptable unless they are open-source and I may port them to C++ . Thank you very much . EDIT 20120816T1853 MDT : An additional question : would either PGM or NORM have to be implemented at the hardware IP level Or can they be overlayed on top of existing protocols .. . Answer : TCP is much more reliable than UDP . Qt provides all the stuff you need for it . Comment : I need multicasting to push messages across the network to all nodes . Or do you have an alternative that would not require multicasting I would like to hear about it if so . Comment : There s always the option of setting up a separate TCP connection to each node and sending the data separately on each connection . Whether or not that would be sufficient depends on how many nodes there are likely to be and how much data you need to push . Multicast would still be useful for discovering nodes of course . Comment : @JeremyFriesner that was actually my original plan however that would require a dedicated connection between each node and the data would have to be sent multiple times . I believe that I will be using this on a student cluster with up to 8 nodes but I will need to push large amounts of data 1MiB Comment : Why is this voted down",
"Question : I am implementing a messaging system using C++ and Qt . After much thought I have determined that multicasting or a multicast-style technique will work best to solve my problem . However I have learned about UDP s unreliability and believe it to be unacceptable . My requirements are as follows : .. . .. . Messages are to be sent in a binary serialized form . From any given node on the network I must be able to send messages to the other nodes . Message delivery must be insured . I have heard of OpenPGM and NORM as alternatives for UDP . If anyone has experience with either of these could you please share I am also open to the possibility of implementing reliable-multicast by myself in the application layer but I would prefer not to if there is a library that already implements this . I am using C++ and Qt therefore .NET or Java-based solutions are not acceptable unless they are open-source and I may port them to C++ . Thank you very much . EDIT 20120816T1853 MDT : An additional question : would either PGM or NORM have to be implemented at the hardware IP level Or can they be overlayed on top of existing protocols .. . Answer : There is a large RFC division of reliable-multicast protocols and many implementations out there . It s a long time since I looked at this but there are TRAM LRMP .. .",
"Question : I am implementing a messaging system using C++ and Qt . After much thought I have determined that multicasting or a multicast-style technique will work best to solve my problem . However I have learned about UDP s unreliability and believe it to be unacceptable . My requirements are as follows : .. . .. . Messages are to be sent in a binary serialized form . From any given node on the network I must be able to send messages to the other nodes . Message delivery must be insured . I have heard of OpenPGM and NORM as alternatives for UDP . If anyone has experience with either of these could you please share I am also open to the possibility of implementing reliable-multicast by myself in the application layer but I would prefer not to if there is a library that already implements this . I am using C++ and Qt therefore .NET or Java-based solutions are not acceptable unless they are open-source and I may port them to C++ . Thank you very much . EDIT 20120816T1853 MDT : An additional question : would either PGM or NORM have to be implemented at the hardware IP level Or can they be overlayed on top of existing protocols .. . Answer : The open-source NORM at http : cs.itd.nrl.navy.mil work norm can be built as a library and has C++ API with Python and Java language bindings . If you ping the developer me via the mailing list I can help get you started .",
"Question : I want to write a Java Client Server application which should do the following : .. . .. . Client connects to to one of two servers .. . Server sends a text file or its content to the client .. . User edits the file .. . Client sends the file back to both servers simultaneously and reliably .. . Client closes the application .. . .. . Bonus : One of these servers might be down at the time of the transmission so it needs to receive the file on startup . What architecture or framework would be good and lightweight to enable this Is JGroups a good start edit : I have to assume the following minimal network : .. . .. . One or more clients start the application but must not be allowed to edit the file at the same time . There are one or more servers of which at least one is always active which one is sort of random .. . The client has a .xml file with all server addresses Comment : If this is meant as a clustered solution in other words : both servers are in the same network consider using a shared filesystem this is by far the easiest solution . Comment : This would certainly be the most comfortable but unfortunately this is not an option for me . Thanks anyway . .. . Answer : A JMS framework ActiveMQ can solve your problem using a queue and a topic : .. . .. . client posts a message on a queue where both server listen asking for the file .. . only one server receives this requests and sends the file to the client .. . client edits the file .. . client sends the edited file on a DURABLE topic where both servers are subscribed .. . .. . Using a durable topic is important so offline subscribers your servers get the file once they reconnect . Comment : Sounds interesting . I will look into this . Where is that durable topic saved Because it mght be a problem if that happens on the Client since I want him to be able to fire-and-forget or simply quit after he sent the file . Comment : Both topic and queue will be managed by the JMS broker e.g . ActiveMQ . This works as a separate application that manages all this communication . Comment : Ok . SO I guess since my client does not stay online the broker has to be on all servers since I can only assume that at least one of them stays active . SO I guess I would create a point-to-point connection from my Client to said server which will in turn act as a broker to notify all other servers of the new file . Does that make sense Comment : The JMS broker will be on one machine only can be one of your servers or a separate machine which is known to stay online . Comment : I think I got that but you see the problem is that at the bare minimum at which it also has to work there will only be the client and the 2 servers . And of these 2 servers I can t safely say which one is reachable . So I guess I have to implement it on both servers as a kind of a fail-safe ."
]
} | [
"yes-answer-long",
"yes-answer-short"
] | networking | UNK_RELATION |
zend-controller-router@php@161 | zend-controller-router -- standard router component in zend framework.zend framework is an open-source object-oriented web application framework implemented in @placeholder 5 and licensed under the new bsd license . | {
"confidence": [
65.48707580566406,
33.110172271728516,
30.617267608642578,
30.126781463623047,
29.466304779052734,
29.187660217285156,
28.12026596069336,
27.85986328125,
22.04818344116211,
20.670696258544922,
20.173370361328125,
20.049345016479492,
19.392719268798828,
18.313032150268555,
18.313032150268555,
18.313032150268555,
18.313032150268555,
18.313032150268555,
17.993350982666016,
17.777259826660156,
17.111305236816406,
16.96764373779297,
16.729578018188477,
16.354005813598633,
15.846431732177734,
15.846431732177734,
15.846431732177734,
15.846431732177734,
15.846431732177734,
15.846431732177734,
15.846431732177734,
15.846431732177734,
15.846431732177734,
15.846431732177734,
15.846431732177734,
15.846431732177734,
15.846431732177734,
15.846431732177734,
15.846431732177734,
15.846431732177734,
15.846431732177734,
15.846431732177734,
15.846431732177734,
15.846431732177734,
15.846431732177734,
15.846431732177734,
15.846431732177734,
15.846431732177734,
15.846431732177734,
15.846431732177734,
14.914493560791016,
14.892679214477539,
14.520736694335938,
14.098221778869629,
13.332578659057617,
13.332578659057617,
12.952995300292969,
12.952995300292969,
12.952995300292969,
12.952995300292969,
12.952995300292969,
12.952995300292969,
12.952995300292969,
12.952995300292969,
12.952995300292969,
12.952995300292969,
12.952995300292969,
12.952995300292969,
12.952995300292969,
12.952995300292969,
12.952995300292969,
12.952995300292969,
12.952995300292969,
12.952995300292969,
9.69437026977539,
9.69437026977539,
9.69437026977539,
9.69437026977539,
9.69437026977539,
9.69437026977539,
9.69437026977539,
9.69437026977539,
9.69437026977539,
9.69437026977539,
9.69437026977539,
9.69437026977539,
9.69437026977539,
9.69437026977539,
9.69437026977539
],
"content": [
"I m having issues with Zend Framework 2 Router object .",
"Giving that I need a router like album : action : id : page that doesn t work because the router assigns : page var to : id .",
"Maybe this article can help you : richard.parnaby-king.co.uk 2013 04 http : richard.parnaby-king.co.uk 2013 04 zend-framework-routing-solutions",
"I m trying to implement Zend Paginator into the quickstart routing mechanism example without success .",
"Second : write your own router .",
"So my question is : Is it possible to achieve this without creating a duplicate router only for the paginator to look like I like",
"I am trying to define routes as below with an INI file for the Zend Framework : http : api.example.com servicename version users : userid items : itemid .. . .. . The host-api route works fine but when I try to reach the other routes I get the error No route matched the request .. . .. . The chains.something.chains.somethingelse seems awkward so it probably isn t the correct way to do it .",
"In bootstrap .. . .. . My Controller Router Rewrite.php .. . .. . Routes Db Table model .. . .. . Route - Db Table row .. . .. . SQL schema for routes table",
"So - fetchAllActive probably needs change to - fetchAll and the getters on the row object may may-not work can t remember if they are custom - you ll figure it out - .. . .. . But Router basically check against DB if none of the other routes apply i.e .",
"This will allow you to change route defaults module controller action without modifying your code .",
".. . .. . Just a quick caveat to say I didn t write the code below it was taken from a example app put together by the guys at Zend however it might help to have it broken down like this . .. . .. . Their approach for the example app was using a csv file containing translations and using your config file the default one in a new project being application.ini to specify the path to all your language-translation resources .",
"That worked except I had to change the 1st param for addRoute from default to index otherwise my URL ended up as domain.com index controller login .",
"You can extend the router class and simply add yout own route resolving rules there : get data from the DB return true and set params if the alias is in the database .",
"Anyone",
"I think I have found how to do it .",
"Basically you define the parts of each routes with abstract set to true and link them all with routes whose type is set to Zend Controller Router Route Chain .",
"Something like :",
"hey i am getting no chain defined error .",
"Hope this helps re the new issue .",
"Ie : en user login becomes fr utilisateur connexion and both URLs go to the same controller action .",
"Your main application bootstrap could have something like this : .. . .. . As the translate object is held in the session you can use it in any of your views etc using something like : .. . .. . and : .. . .. . where you want something to be translated on selecting an alternative language .",
"Currently if I am in French all the urls get builded in french even if I set the @local key as a param in the URL view helper tried @locale en @locale new Zend Locale en .. . .. . instead of .. . .. . because the locale used while building the URL is the one that is defined application wide .",
"like this : .. . .. . And in each csv file if you are using something like Excel or Open Office to create it column A would be the original language and column B the translation .",
"My new issue is : how do I load multiple language-translation resources",
"Let me explain : .. . .. . After following the quickstart I ended with something like this : .. . .. . The problem arises when I tried to implement a paginator for my browse index page .",
"I removed the : id section ending with something like album : action : page and invoking in my add edit action .. . .. . working without problems but I like things keep mnemonic .",
"an I doing something incorrect",
"the problem is you are stating id and page are both optional and both will match integers .",
"this means the regular expression will not know which it has matched it s not unique enough",
"It s not unique enough as an example with a route : .. . .. . id and page are optional and both can be integers .. . .. . if we try to match this route : .. . .. . album index 99 .. . .. . the 99 could match id with page not being present or also page with id not being present .",
"there s no way to know which is which so this will not work .",
"You could add-in an identifier something like this : .. . .. . so then you would have a literal in there to make sure you know it s an id : .. . .. . or album index 99 : page 99",
"Excelent .",
"U rock",
"In my IndexController I currently have indexAction homepage loginAction and logoutAction .",
"I m trying to remove index from the URL to get domain.com login instead of domain.com index login .",
"What is the cleanest way to achieve this",
"Is there a RegEx we can use",
"I don t ever want index in the URL .",
"My current solution which I believe can be improved upon is below .",
"Also what does the first parameter in addRoute do",
"There is nothing to impove you have to create route for every action .",
"First parameter is the route name which you have to use with url helper in your views : .. . .. . Update .",
"You can use such route if you want only one route without index in url :",
"I can t use that because I m using Zend Navigation to manage the links .",
"I m looking for a way to use a RegEx so that I only have to use addRoute once .",
"I updated my answer .",
"BTW what s the problem with Zend Navigation",
"Thanks",
"There s no problem with Zend Navigation what I meant was I m not building the hyperlinks myself I m simply printing this- navigation - menu from my layout .",
"This is not much different from what you ve implemented already and all you d need to do would be to automate the alias scraping .",
"EDIT .. . .. . I digged a bit deeper in my issue an I found that only the current locale add its resources loaded which mean I can t get route in the proper language for the route to be built-in the right language .. . .. . My new issue is : how do I load multiple language-translation resources",
"If the routing is found you can get the alias from the DB and then forward the request from the target controller+action to what s defined in the DB like here https : bitbucket.org mingos ucms src 2f05c7123ac1d84bad8515361183811e69ddbffb application modules default controllers IndexController.php at default cl-75 .",
"I m building a simple CMS module for my ZendFramework application .",
"Here s the code https : bitbucket.org mingos ucms src 2f05c7123ac1d84bad8515361183811e69ddbffb application Bootstrap.php at default cl-97 for the routing itself .",
"Only other change needed was to tell application in bootstrap to use my custom My Controller Router Rewrite class : -",
"I have managed to make my URL i18n compliant using Zend Controller Router .",
"The problem I am facing is the following .. . .. . I have a language switcher that is displayed as follow : .. . .. . The currently active language doesn t have an anchor tag but all others do .",
"For the languages that have an anchor on them I am building the URL and I want them to be translated in their specific languages .",
"I am planning to implement cache in the far future near release so I might get better performances",
"This is strange .",
"I do the same thing and it works .",
"Do you specifies the route",
"@Aurelio De Rosa : yes I specify the route to be used .",
"Updated question to specify the issue I m getting now",
"As an example where English is the original language and a Spanish translation is required : .. . .. . You could do that for all the words phrases you want to translate .",
"If a translation isn t found then the default original word is used .",
"In the example above the word login would appear when English is selected and entrar when Spanish is selected .",
"There s loads more to Zend Translate than this and several ways to implement it so I m not saying this is the best way by any means .",
"If it helps or if I can give you more info let me know .",
"Cheers .. . .. . Dave",
"Hi Jeff hope you re well .",
"Did you get everything working and was this any help to you",
"All the best Dave : -D",
"Currently I have all my routes in a .ini file would it be possible to make it db-driven .",
"Or if it s possible to build a fallback method to a DB-check if the route doesn t exists in the .ini file .",
"UPDATE - SOLUTION .. . .. . Hope this will help somebody - Please note that I have custom My Db table and My Db Row which I haven t posted here .",
"from a .ini file .",
"I haven t checked if this works with all the route types but it works with the default route type .",
"I use DB routes to point urls down to a pageController with additional params like pageId stored as a JSON string in the route defaults cell .",
"But you can basically use this for all kind of routes .",
"There are three approaches that I can think of .",
"First is what I ve successfully used in ZF1 .",
"The idea is simple : set an alias routing which in my case simply used the .html suffix to differentiate it from other URLs .",
"My code isn t pretty but it works .",
"Third : scrape the aliases table and store everything in an .ini file or whatever cache you might be using .",
"I ended up extending Zend Controler Router Rewrite - And in the route function do a check against the DB if the request is not matched agains at dispatch-able route from the loaded routes.ini .",
"I believe this is the correct way too :",
"I have added my solution in the OP"
]
} | {
"confidence": [
55.7293586730957,
50.81277084350586,
41.96577453613281,
29.463699340820312,
19.930580139160156
],
"content": [
"Question : I m having issues with Zend Framework 2 Router object . I m trying to implement Zend Paginator into the quickstart routing mechanism example without success . Let me explain : .. . .. . After following the quickstart I ended with something like this : .. . .. . The problem arises when I tried to implement a paginator for my browse index page . Giving that I need a router like album : action : id : page that doesn t work because the router assigns : page var to : id . I removed the : id section ending with something like album : action : page and invoking in my add edit action .. . .. . working without problems but I like things keep mnemonic . So my question is : Is it possible to achieve this without creating a duplicate router only for the paginator to look like I like an I doing something incorrect Comment : the problem is you are stating id and page are both optional and both will match integers . this means the regular expression will not know which it has matched it s not unique enough .. . Answer : It s not unique enough as an example with a route : .. . .. . id and page are optional and both can be integers .. . .. . if we try to match this route : .. . .. . album index 99 .. . .. . the 99 could match id with page not being present or also page with id not being present . there s no way to know which is which so this will not work . You could add-in an identifier something like this : .. . .. . so then you would have a literal in there to make sure you know it s an id : .. . .. . or album index 99 : page 99 Comment : Excelent . U rock",
"Question : I m building a simple CMS module for my ZendFramework application . Currently I have all my routes in a .ini file would it be possible to make it db-driven . Or if it s possible to build a fallback method to a DB-check if the route doesn t exists in the .ini file . UPDATE - SOLUTION .. . .. . Hope this will help somebody - Please note that I have custom My Db table and My Db Row which I haven t posted here . So - fetchAllActive probably needs change to - fetchAll and the getters on the row object may may-not work can t remember if they are custom - you ll figure it out - .. . .. . But Router basically check against DB if none of the other routes apply i.e . from a .ini file . I haven t checked if this works with all the route types but it works with the default route type . I use DB routes to point urls down to a pageController with additional params like pageId stored as a JSON string in the route defaults cell . But you can basically use this for all kind of routes . In bootstrap .. . .. . My Controller Router Rewrite.php .. . .. . Routes Db Table model .. . .. . Route - Db Table row .. . .. . SQL schema for routes table Comment : Maybe this article can help you : richard.parnaby-king.co.uk 2013 04 http : richard.parnaby-king.co.uk 2013 04 zend-framework-routing-solutions .. . Answer : There are three approaches that I can think of . First is what I ve successfully used in ZF1 . Here s the code https : bitbucket.org mingos ucms src 2f05c7123ac1d84bad8515361183811e69ddbffb application Bootstrap.php at default cl-97 for the routing itself . The idea is simple : set an alias routing which in my case simply used the .html suffix to differentiate it from other URLs . If the routing is found you can get the alias from the DB and then forward the request from the target controller+action to what s defined in the DB like here https : bitbucket.org mingos ucms src 2f05c7123ac1d84bad8515361183811e69ddbffb application modules default controllers IndexController.php at default cl-75 . My code isn t pretty but it works . Second : write your own router . You can extend the router class and simply add yout own route resolving rules there : get data from the DB return true and set params if the alias is in the database . Third : scrape the aliases table and store everything in an .ini file or whatever cache you might be using . This is not much different from what you ve implemented already and all you d need to do would be to automate the alias scraping . Comment : I ended up extending Zend Controler Router Rewrite - And in the route function do a check against the DB if the request is not matched agains at dispatch-able route from the loaded routes.ini . Only other change needed was to tell application in bootstrap to use my custom My Controller Router Rewrite class : - Comment : I believe this is the correct way too : Comment : I have added my solution in the OP",
"Question : I am trying to define routes as below with an INI file for the Zend Framework : http : api.example.com servicename version users : userid items : itemid .. . .. . The host-api route works fine but when I try to reach the other routes I get the error No route matched the request .. . .. . The chains.something.chains.somethingelse seems awkward so it probably isn t the correct way to do it . Anyone .. . Answer : I think I have found how to do it . Basically you define the parts of each routes with abstract set to true and link them all with routes whose type is set to Zend Controller Router Route Chain . Something like : Comment : hey i am getting no chain defined error .",
"Question : I have managed to make my URL i18n compliant using Zend Controller Router . Ie : en user login becomes fr utilisateur connexion and both URLs go to the same controller action . The problem I am facing is the following .. . .. . I have a language switcher that is displayed as follow : .. . .. . The currently active language doesn t have an anchor tag but all others do . For the languages that have an anchor on them I am building the URL and I want them to be translated in their specific languages . Currently if I am in French all the urls get builded in french even if I set the @local key as a param in the URL view helper tried @locale en @locale new Zend Locale en .. . .. . instead of .. . .. . because the locale used while building the URL is the one that is defined application wide . EDIT .. . .. . I digged a bit deeper in my issue an I found that only the current locale add its resources loaded which mean I can t get route in the proper language for the route to be built-in the right language .. . .. . My new issue is : how do I load multiple language-translation resources I am planning to implement cache in the far future near release so I might get better performances Comment : This is strange . I do the same thing and it works . Do you specifies the route Comment : @Aurelio De Rosa : yes I specify the route to be used . Updated question to specify the issue I m getting now .. . Answer : Hope this helps re the new issue . My new issue is : how do I load multiple language-translation resources .. . .. . Just a quick caveat to say I didn t write the code below it was taken from a example app put together by the guys at Zend however it might help to have it broken down like this . .. . .. . Their approach for the example app was using a csv file containing translations and using your config file the default one in a new project being application.ini to specify the path to all your language-translation resources . like this : .. . .. . And in each csv file if you are using something like Excel or Open Office to create it column A would be the original language and column B the translation . As an example where English is the original language and a Spanish translation is required : .. . .. . You could do that for all the words phrases you want to translate . If a translation isn t found then the default original word is used . Your main application bootstrap could have something like this : .. . .. . As the translate object is held in the session you can use it in any of your views etc using something like : .. . .. . and : .. . .. . where you want something to be translated on selecting an alternative language . In the example above the word login would appear when English is selected and entrar when Spanish is selected . There s loads more to Zend Translate than this and several ways to implement it so I m not saying this is the best way by any means . If it helps or if I can give you more info let me know . Cheers .. . .. . Dave Comment : Hi Jeff hope you re well . Did you get everything working and was this any help to you All the best Dave : -D",
"Question : In my IndexController I currently have indexAction homepage loginAction and logoutAction . I m trying to remove index from the URL to get domain.com login instead of domain.com index login . What is the cleanest way to achieve this Is there a RegEx we can use I don t ever want index in the URL . My current solution which I believe can be improved upon is below . Also what does the first parameter in addRoute do .. . Answer : There is nothing to impove you have to create route for every action . This will allow you to change route defaults module controller action without modifying your code . First parameter is the route name which you have to use with url helper in your views : .. . .. . Update . You can use such route if you want only one route without index in url : Comment : I can t use that because I m using Zend Navigation to manage the links . I m looking for a way to use a RegEx so that I only have to use addRoute once . Comment : I updated my answer . BTW what s the problem with Zend Navigation Comment : Thanks That worked except I had to change the 1st param for addRoute from default to index otherwise my URL ended up as domain.com index controller login . There s no problem with Zend Navigation what I meant was I m not building the hyperlinks myself I m simply printing this- navigation - menu from my layout ."
]
} | [
"yes-answer-long",
"yes-answer-short"
] | php | UNK_RELATION |
gollum-wiki@github@79 | gollum-wiki -- gollum is a simple wiki system built on top of git that powers @placeholder wikis . | {
"confidence": [
79.7269515991211,
65.00218200683594,
64.46574401855469,
63.336219787597656,
62.769317626953125,
62.612876892089844,
60.928565979003906,
60.70869445800781,
60.45249938964844,
60.19532775878906,
59.90534973144531,
59.90534973144531,
59.45191192626953,
59.412315368652344,
58.911460876464844,
57.65912628173828,
57.43480682373047,
56.86482238769531,
56.86482238769531,
55.379234313964844,
55.379234313964844,
55.256561279296875,
54.87464141845703,
54.847721099853516,
54.790367126464844,
54.10749816894531,
53.33999252319336,
52.77326583862305,
52.54742431640625,
52.43016815185547,
52.43016815185547,
51.559967041015625,
51.22228240966797,
51.22228240966797,
50.70635223388672,
50.449676513671875,
50.449676513671875,
50.449676513671875,
50.449676513671875,
50.355712890625,
50.14764404296875,
49.860809326171875,
49.860809326171875,
49.860809326171875,
49.860809326171875,
48.51944351196289,
48.51944351196289,
48.51944351196289,
48.43257141113281,
48.43257141113281,
47.84370803833008,
47.84370803833008,
47.84370803833008,
47.84370803833008,
47.68553924560547,
47.36712646484375,
47.00130081176758,
47.00130081176758,
46.697547912597656,
46.52346420288086,
46.52346420288086,
46.502342224121094,
46.2984504699707,
46.073341369628906,
46.03106689453125,
46.01502227783203,
46.01502227783203,
45.97063446044922,
45.78813171386719,
45.68814468383789,
45.68814468383789,
45.25532531738281,
45.25532531738281,
45.25532531738281,
45.25532531738281,
45.25532531738281,
45.25532531738281,
45.25532531738281,
45.16649627685547,
44.98419952392578,
44.50636291503906,
44.08478927612305,
43.943359375,
43.671043395996094,
43.610313415527344,
43.528724670410156,
43.528724670410156,
43.23822021484375,
43.23822021484375,
43.23822021484375,
42.82513427734375,
42.566646575927734,
42.462318420410156,
42.12596893310547,
42.088809967041016,
41.69936752319336,
41.51162338256836,
41.25349044799805,
41.20819854736328,
40.85857391357422
],
"content": [
"https : github.com gollum gollum - Gollum is a simple wiki system built on top of Git . .. . .. . Gollum is great but it s written in Ruby I m not insinuating that there is anything wrong with that .",
"clone your repository locally and grab the wiki submodule see here https : github.com blog 699-making-github-more-open-git-backed-wikis .. . install the gollum and redcarpet gems .. . ruby : .. . .. . require gollum .. . wiki Gollum : : Wiki.new proj.wiki .. . wiki.pages.each p puts p.formatted data",
"Is there any existing way to generate a what-links-here report for a gollum https : github.com gollum gollum-wiki",
"Gollum is A simple Git-powered wiki with a sweet API and local frontend .",
"Or is there any other Wiki that is anywhere near as simple as Gollum",
"The Pages menu doesn t seem to be a feature of Gollum https : github.com gollum gollum-wiki the library that Github uses to create the Wiki...but if it is is there a way of modifying it",
"I have problems using Gollum wiki with github remote wiki pages .",
"Why is the personal wiki forced to be on gollum",
"Gollum will not sync with a git-remote .",
"I would like to synchronize bidirectional selected pages of a corporate wiki MediaWiki https : mediawiki.org with my personal wiki Gollum https : github.com gollum gollum .",
"Is there a way to in which the gollum-wiki can load json object",
"And even stranger running Gollum again shows the wiki in its new state .",
"Clone the repo using ssh : .. . .. . Install Gollum : .. . .. . Run gollum inside wiki repository : .. . .. . Edit home page and save with comments .",
"github wiki gollum-wiki https : github.com github gollum doesn t inherently provide anything explicit for organizing pages into sub-directories .",
"I installed gollum-wiki to serve as our labs wiki 14 members .",
"I m working on an open-source wiki using the GitHub s built-in gollum on the wiki tab of the project .",
"I like Gollum https : github.com github gollum for wiki but seems to be always one project topic specific .",
"The gollum event is especially raised any time a wiki page is updated .",
"What is the best way to add multiple role access to a Gollum wiki",
"I want to create a wiki with gollum and push it to my own git-repo is that possible",
"I set up a wiki directory seeded it with some files created a git-repo there then called gollum on the directory .",
"git init .. . .. . gollum --port 80 .. . .. . Good Luck .",
"In this thread .. . .. . https : github.com gollum gollum issues 107 .. . .. . one of the Gollum developers gives some hints .",
"It would also break when running the wiki locally via gollum .",
"Try with .. . .. . gollum --port 80 --gollum-path your repo directory .. . .. . Or run the command from inside your git-repo",
"Does Gollum https : github.com github gollum support any kind of redirect",
"When you are ready you can generate a static html site form your Gollum wiki using this https : github.com dreverri gollum-site project .",
"If you clone git : github.com mojombo gollum-demo.git and then run gollum you ll see them .",
"I just created two different wikis : .. . .. . Control-c to stop running gollum .. . .. . I created a home.mediawiki file as the homepage for each .",
"We have a wiki written in Markdown served up by Gollum .",
"How to properly mount github s gollum-wiki inside a Rails App",
"If you upgrade icu4c then Gollum can break .",
"I created a new git-repo install gollum and started it .",
"I was getting my git configs confused with my gollum configs .",
"Open an issue on gollum",
"Then I ran : .. . .. . So I can t do push to origin when I edit wiki pages using gollum .",
"I would like to use my Gollum Wiki using aws github for a book project .",
"In Gollum wiki how do I find orphan pages - that is pages that don t have a link-to them",
"Since I do not know Gollum-wiki at all : do the name of the pages match the MD filename",
"The git repository lacks examples .. . .. . https : github.com gollum gollum .. . .. . @edit .. . .. . taking this post as an example what is YourApplication in the accepted answer",
"Does somebody know a nice way to migrate a Confluence wiki to the Github wiki aka Gollum",
"When you are ready to start the gollum server run bundle exec gollum from the command-line .",
"Working with gollum https : github.com github gollum I am unable to get headers to render .",
"Gollum https : github.com github gollum readme seems to want to manage a local working directory .",
"For the record here s the unresolved issue https : github.com gollum gollum issues 809 you are having with this flag .",
"Can the Gollum HTTP server serve static files",
"I ve got gollum deployed on my server .",
"---- ...and I just tried running gollum with the --bare flag .",
"No what i want to achieve is to have the Gollum page which let me create delete new wiki .",
"I m starting a project where I will work with the base Gollum wiki gem and add some features to it .",
"github.com github gollum pull 257 https : github.com github gollum pull 257",
"Well there s big-gollum https : github.com oponder big-gollum but it doesn t look particularly active .",
"page1 I see page1.md created in the gollum directory under var gollum but when I create a page e.g .",
"You might want to consider giving Gollum https : github.com github gollum another look .",
"You must have gollum running on the remote-server or you must manually run git-push on machines where you make edits and git-pull on machines who also want to see the wiki .",
"Gollum seems simple to get up an running locally but is it a good choice for production where you may have multiples users groups that each have their own secure wikis",
"Since this seems like something that needs to be fixed in gollum itself I made a pull request to fix this problem https : github.com github gollum pull 271 .",
"I ve been trying stubbornly to install gollum behind a firewall downloading all dependency gems until gollum installed without error or --force .",
"The Github wikis are backed by a separate git repository then the main project repository .",
"See below for more information : .. . .. . http : www.nomachetejuggling.com 2012 05 15 personal-wiki-using-github-and-gollum-on-os-x toc-synchronization-with-github",
"I m trying to do that from the local copy of my project s wiki cloned from gitHub and of course I ve installed Gollum on my PC .",
"Can I do this using Gollum API",
"I use the Gollum gem https : github.com github gollum and like it alot however it is only built on top of github or use in local server to edit the files offline .",
"Here are the codes for my routes.rb .. . .. . I can access to the whole gollum using http : localhost : 3000 gollum . .. . .. . I have to create a wiki directory from root and do a git init . there to get gollum working .. . .. . The issue I m having right now is that this is a simple mounting of gollum without all the other features in my app like authentication and layout .",
"This post https : github.com blog 699-making-github-more-open-git-backed-wikis by the Github team makes it sound like you should be able to link-to images stored in the wiki repository inside the wiki-markup .",
"I need to add wiki pages to my application and I ve just read about the Gollum gem .",
"I was unable to install gollum-wiki after a fresh install of ruby v2.2.2 via rbenv .",
"I m trying to use Gollumn Wiki https : github.com github gollum so I could edit my GitHub Wiki but I can t seem to get it to work .",
"May be you are checking a wrong repository the default is for gollum to use or create a git repository at the root of page files .",
"Organizing Github wikis is crucial for documenting software development .",
"This is a powerful feature that makes wikis very flexible .",
"Related pull request https : github.com github gollum pull 242",
"user groups in linux to make commits push automaticaly through gollum",
"It is much easier to have the gollum process running on your web server .",
"I have used the following commands to build and install gollum .",
"Gollum comes with a Gemfile and I m using bundle install as mentioned above .",
"Are gollum updated files accessible from the command-line somewhere",
"Files are visible but just the ones I put there before running gollum .",
"I ve been trying to get Gollum-wiki up and going but I keep getting an error about library not load Here is what error Im getting for when I try to start it up :",
"I keep a Gollum server running on my development-machine and edit the Markdown files directly and then view the results in the local Gollum server .",
"Just installed Gollum wiki on Ubuntu server 11.10 and when I go to launch it I get this error : .. . .. . to install it I ran the following : .. . .. . Ideas",
"looks like gollum is the most popular solution .",
"Github allows you to embed images https : help.github.com articles adding-images-to-wikis in a wiki page .",
"I put both images and PDFs in my wikis .",
"I cloned my GitHub Wiki git repository https : github.com markmandel ColdDoc wiki access for my project fired up Gollum and this is the error I recieved : .. . .. . NoMethodError at .. . undefined method new for Redcarpet : Module .. . .. . The full stack-trace is : .. . .. . Any help would be appreciated .",
"The file is name Header.md following the specifications https : github.com github gollum header-files and contains the following content .. . .. . however it is not rendered when the site is accessed running gollum in the root of the repository and accessing the page at http : localhost : 3000 .",
"Then running gollum results in the following error : .. . .. . I have tried clean installing the ruby version and all gems installing the gems in vendor bundle building different release tags of Gollum and using Ruby 2.2.2 instead of 1.9.3p551 .",
"Is out there some project or out-of-box solution to maintain Gollum projects instances",
"Gollum version 2.5.0 and starting as Rack app under Pow",
"@VijayIvaturi Yes I wish Gollum had multi-user functionality .",
"I m trying to provide a gollum based wiki for my app by mounting it as a rack application inside my routes.rb file : .. . .. . The wiki is supposed to run at wiki but everytime a go to this url it redirects me to wiki create Home and after a create a page it redirects me to wiki wiki page name .",
"On the side note it seems a bit easier to integrate gollum to my app using gollum-lib but my have to reimplement the front end features .",
"Then I stopped gollum and found there was nothing new in my git-repo I even checked if stuff hadn t been pushed...nothing .",
"Nothing worked Gollum lists only wiki pages in All Files and there s no URL that can point at such files when I try things like http : localhost : 4567 test.png it shows the form to create a new page .",
"I checked this http : stackoverflow.com questions 21739913 how-can-i-add-disqus-commenting-to-my-gollum-wiki link here but no answers .",
"I don t understand : GitHub wikis are just ordinary git repositories as described in this answer http : stackoverflow.com a 3484073 165988 .",
"mywiki that I want to clone from bitbucket into the webserver and start using that as a starting point - do I need to use .. . .. . gollum --page-file-dir .. . .. . to specify gollum to use that folder for page creation",
"Any suggestions for how this could work will multiple wikis",
"Which opens it up as blank page in edit mode and I then add some dummy text save quit browser quit gollum .",
"I am trying to use Gollum as my documentation for new projects and this problem hit me recently also ."
]
} | {
"confidence": [
92.92692565917969,
89.71052551269531,
85.54655456542969,
85.0740966796875,
84.15179443359375,
83.15933227539062,
80.378662109375,
76.10537719726562,
75.57492065429688,
73.26181030273438,
73.18064880371094,
72.30506134033203,
72.085205078125,
71.30874633789062,
71.052978515625,
70.20384216308594,
68.54840087890625,
68.4957275390625,
66.42012023925781,
66.0317153930664
],
"content": [
"Question : I d like to generate a local static copy of the generated HTML of my github project wiki from the directory of markdown files . What s the best way of doing that .. . Answer : clone your repository locally and grab the wiki submodule see here https : github.com blog 699-making-github-more-open-git-backed-wikis .. . install the gollum and redcarpet gems .. . ruby : .. . .. . require gollum .. . wiki Gollum : : Wiki.new proj.wiki .. . wiki.pages.each p puts p.formatted data",
"Question : The Github wikis are backed by a separate git repository then the main project repository . This post https : github.com blog 699-making-github-more-open-git-backed-wikis by the Github team makes it sound like you should be able to link-to images stored in the wiki repository inside the wiki-markup . Images and Folders .. . .. . You can now reference images hosted inside the Git repository . I ve checked out my wiki s repository and pushed a resource folder and an image into it . My question is how do I go about using this image Is this even possible or have I misunderstood something Comment : There is a github-faq about adding-images-to-wikis https : help.github.com articles adding-images-to-wikis but it has no infos about short relative image urls discussed here .. . Answer : To use relative paths do : .. . .. . For more info see the demo wiki s page on images https : github.com mojombo gollum-demo blob master Mordor Eye-Of-Sauron.md . Comment : This is preferable to hardcoding the path . Only thing I couldn t figure out is how to create alt text using this method . Oh and the images in that demo don t load for me . Comment : If you clone git : github.com mojombo gollum-demo.git and then run gollum you ll see them . : Comment : The example doesn t seem to work anymore . Comment : Maybe I m missing something.. . but the wiki syntax works in this wiki that I help with : github.com newhavenrb conferences wiki WindyCityRails-2012 https : github.com newhavenrb conferences wiki WindyCityRails-2012 Perhaps you re trying this with a README Comment : The wiki syntax is determined by the file extension . .wiki uses mediawiki style . .md uses markdown style RyanQ s answer .",
"Question : I d like to organize my GitHub wiki pages in subdirectories . How do we refer to the pages in subdirectories Comment : Organizing Github wikis is crucial for documenting software development . Those who closed this question ought to ponder literate-programming carefully . .. . Answer : github wiki gollum-wiki https : github.com github gollum doesn t inherently provide anything explicit for organizing pages into sub-directories . Any page can be linked from any other page irrespective of where it logically belongs . This is a powerful feature that makes wikis very flexible . One way to implement a sub-directories structure would be to follow a naming convention . Example : Having all pages related to subject1 have names that start with subject1 and so on .",
"Question : https : github.com gollum gollum - Gollum is a simple wiki system built on top of Git . .. . .. . Gollum is great but it s written in Ruby I m not insinuating that there is anything wrong with that . I want to use it as part of an existing ASP.NET website Or as a standalone website on Azure . Has anybody already created an ASP.NET version Or is there any other Wiki that is anywhere near as simple as Gollum .. . Answer : You will need to run it as an azure VM . Since grit doesn t not work on windows . Azure has pre-built linux vm s that you can deploy then install your required software . Or make a windows friendly version of grit",
"Question : I ve been looking into wikis for use in production in an existing rails app not for personal use - have seen a few questions on wiki gems here but little outside of personal use . Gollum seems simple to get up an running locally but is it a good choice for production where you may have multiples users groups that each have their own secure wikis Besides Gollum I have also looked into Instiki http : www.instiki.org show HomePage zena http : zenadmin.org en documentation Wiki page735.html and Wagn http : wagn.org . Some of the production requirements to consider : .. . .. . 1 . Needs to play nice with existing models and storage - rails app is already using S3 to store media videos images - those same assets will be combined with the wiki . 2 . Need to be able to create separate wikis for groups within my company - seems like integration with devise cancan is not too difficult . Is it easy to add a separate repository for users groups 3 . This is a general purpose wiki for internal use - non-technical employees from HR finance marketing etc . will also be using it with different levels of access . As such would hope to swap out the text-editor to something more user friendly such as this wysihtml5 text-editor http : jhollingworth.github.com bootstrap-wysihtml5 . Is there anything I should be concerned about flexibility-wise with Gollum before investing too much time in it Any advice is much appreciated and hopefully this helps others Comment : Just incase anyone decides to respond I installed Gollum which was as easy as advertised . Problems for me are that you can t customize the html css and I don t think I have a way to embed wiki functionality into existing pages and other controllers . Will probably try Instiki next but it does not seem to be as updated as others . It does offer the benefit of controlling the database which is nice for this use-case . .. . Answer : Great Question . I suggest looking at https : www.ruby-toolbox.com categories wiki apps instead of asking the general populus of stackoverflow . looks like gollum is the most popular solution . with any rails engine you will have to customize it to your needs .",
"Question : The Github wikis are backed by a separate git repository then the main project repository . This post https : github.com blog 699-making-github-more-open-git-backed-wikis by the Github team makes it sound like you should be able to link-to images stored in the wiki repository inside the wiki-markup . Images and Folders .. . .. . You can now reference images hosted inside the Git repository . I ve checked out my wiki s repository and pushed a resource folder and an image into it . My question is how do I go about using this image Is this even possible or have I misunderstood something Comment : There is a github-faq about adding-images-to-wikis https : help.github.com articles adding-images-to-wikis but it has no infos about short relative image urls discussed here .. . Answer : Figured it out . The url is formatted as follows .. . .. . https : raw.github.com wiki username project pathtoimage imagename.extension .. . .. . pathtoimage is optional Comment : That works but is tightly coupled to how GitHub stores files . If they change their paths it would break . It would also break when running the wiki locally via gollum .",
"Question : I like Gollum https : github.com github gollum for wiki but seems to be always one project topic specific . Is out there some project or out-of-box solution to maintain Gollum projects instances By the maintain i mean creating it having list of them .. . .. . Answer : I just created two different wikis : .. . .. . Control-c to stop running gollum .. . .. . I created a home.mediawiki file as the homepage for each . So they are occupying two different namespaces . To edit these at the same time I suppose I d learn to use a different port for the second instance of gollum or just commit notes to one directory or the other wiki1 or wiki2 through my text-editor which is probably what I ll be doing anyway . Since wiki1 and wiki2 are directories on a computer with a GUI interface I d just use Finder Windows Explorer whatever to maintain the list of them . Does that meet your needs Comment : No what i want to achieve is to have the Gollum page which let me create delete new wiki . Similar what github let you do but it could be a much simpler",
"Question : I have problems using Gollum wiki with github remote wiki pages . I created a wiki for this project https : github.com ricardogarfe python-sample-test and Create Wiki pages in wiki git-repo https : github.com ricardogarfe python-sample-test wiki . Clone the repo using ssh : .. . .. . Install Gollum : .. . .. . Run gollum inside wiki repository : .. . .. . Edit home page and save with comments . Then I ran : .. . .. . So I can t do push to origin when I edit wiki pages using gollum . I forget any configuration user groups in linux to make commits push automaticaly through gollum Using : .. . .. . ruby-1.8.7 .. . gem 1.8.15 .. . .. . Thanks Ricardo . .. . Answer : I haven t worked with gollum so this may be a bit off base but your output indicates that there is a commit which hasn t been pushed yet : .. . .. . If you look at the output of git-log -p -1 does it appear to contain the changes you made If so just git-push and you should be set . Comment : thanks I didn t understand git message git-push worked . more eyes more solutions regards .",
"Question : I want to create a wiki with gollum and push it to my own git-repo is that possible I created a new git-repo install gollum and started it . I got the edit Home page . I added some content saved...all looked good . Even the revision history showed that revisions occurred . Then I stopped gollum and found there was nothing new in my git-repo I even checked if stuff hadn t been pushed...nothing . I m not sure how where it s storing the content that I add when I run it . Any ideas Thanks .. . Answer : Gollum will not sync with a git-remote . It will never perform git-pull or git-push . You must have gollum running on the remote-server or you must manually run git-push on machines where you make edits and git-pull on machines who also want to see the wiki . This could be part of a cron job if you re running locally . It is much easier to have the gollum process running on your web server . See below for more information : .. . .. . http : www.nomachetejuggling.com 2012 05 15 personal-wiki-using-github-and-gollum-on-os-x toc-synchronization-with-github",
"Question : null .. . Answer : I ve got gollum deployed on my server . I set up a wiki directory seeded it with some files created a git-repo there then called gollum on the directory . I can access my wiki via a browser and update and create files . However I can t find any of the new files or any of the updates in the filesystem . Are gollum updated files accessible from the command-line somewhere Comment : It uses a git repository to store the data . If that repo is bare there will be no directly visible files . In that case you could use a git tool to look at them . Comment : @Thilo - thank you . My git-config shows bare false . Files are visible but just the ones I put there before running gollum . Files I add via the browser don t show up . ---- ...and I just tried running gollum with the --bare flag . Now it s displaying updated files Thanks for your help . Comment : @Thilo thanks again . I was getting my git configs confused with my gollum configs . Anyway if you d like to put in the answer files are stored within the git-repo then I ll check it off . Otherwise I ll put in the answer in a few days to close out this question .",
"Question : I m trying to use Gollumn Wiki https : github.com github gollum so I could edit my GitHub Wiki but I can t seem to get it to work . I m on Ubuntu 11.10 64Bit . I ve tried this as well with Ruby 1.9 also the same error . I cloned my GitHub Wiki git repository https : github.com markmandel ColdDoc wiki access for my project fired up Gollum and this is the error I recieved : .. . .. . NoMethodError at .. . undefined method new for Redcarpet : Module .. . .. . The full stack-trace is : .. . .. . Any help would be appreciated . Comment : Since this seems like something that needs to be fixed in gollum itself I made a pull request to fix this problem https : github.com github gollum pull 271 . Comment : Related pull request https : github.com github gollum pull 242 .. . Answer : I got the same undefined method new for Redcarpet : Module error after running a bundle update . .. . .. . Similar to above this installed version 2 of the gem along side version 1 . I could have gone back to v1 as described above but since I m not actually using a system that required the first gen of the gem I removed version 1 and went with v2 . Easy .",
"Question : I m trying to provide a gollum based wiki for my app by mounting it as a rack application inside my routes.rb file : .. . .. . The wiki is supposed to run at wiki but everytime a go to this url it redirects me to wiki create Home and after a create a page it redirects me to wiki wiki page name . Am I missing some option is this even possible .. . Answer : I ll share with you what I did to get it working just now . I actually started with your code above and tweaked it until I got it sorted . If you re still hacking on it maybe it ll work for you . In Gemfile : .. . .. . In routes.rb : .. . .. . Then and this is the most important part create and initialize the wiki directory : .. . .. . Shut down the server bundle install restart the server and hit wiki . Good Luck . Edit 2014-11-06 : The latest release of gollum has a slightly different directory structure than at the time of the original writing . I ve updated the routes.rb sample to match the latest gollum and rails . Comment : Thank you works great Comment : Any suggestions for how this could work will multiple wikis e.g . wiki 1 wiki 2 Comment : I d suggest sticking the Precious : : App and require lines in config initializers gollum.rb . Comment : This doesn t seem to work anymore . Breaks with the error bin rails : 6 : warning : already initialized constant APP PATH Comment : @Anurag do not copy Ams : : Application.routes.draw put all Precious : : App inside your YourApp : : Application.routes.draw . Anyway in current version require path must be fixed require gollum app .",
"Question : I want to create a wiki with gollum and push it to my own git-repo is that possible I created a new git-repo install gollum and started it . I got the edit Home page . I added some content saved...all looked good . Even the revision history showed that revisions occurred . Then I stopped gollum and found there was nothing new in my git-repo I even checked if stuff hadn t been pushed...nothing . I m not sure how where it s storing the content that I add when I run it . Any ideas Thanks .. . Answer : May be you are checking a wrong repository the default is for gollum to use or create a git repository at the root of page files . It can be changed with the options --page-file-dir and --base-path cf gollum --help",
"Question : Is there any way to programmatically using libraries like PyGithub GitPython or dulwich load any file right into MyRepo.wiki.git repository Using Python of course . I can easily upload a file right into MyRepo.git repository with a help of PyGithub but unfortunately this library has no API or ways to work with MyRepo.wiki.git repository . Here is how I can upload a file to MyRepo.git repository : .. . .. . So how can I do the same but with MyRepo.wiki.git repository If you can provide an example using PyGithub library - it would be really great . P.S . Can I do this using Gollum API P.P.S . Has not anybody worked with .wiki.git using any kind of python library I do not believe : .. . .. . P.P.P.S . If I was not clear enough : I DO NOT want to create a local repository in any way . All I want to modify repo structure on-the-fly - just how my example does . But with .wiki.git repository . Thank you Comment : What exactly is the MyRepo.wiki.git Comment : Just an example . It is about any repository with wiki suffix . Comment : I don t understand : GitHub wikis are just ordinary git repositories as described in this answer http : stackoverflow.com a 3484073 165988 . If you can already clone the wiki as a separate repository and there you have a way to manipulate a general git repository then you have a solution . Comment : @NT3RP . I can manipulate with my own public and private repository . But I am a contributor to third party private repository . And I can t request those repository directly - only in performing a loop with comparing if the next repo is of my interest . Also I can do things like : ...getRepo myrepo.git but this doesn t work with the following : ...getRepo myrepo.wiki.git . Please note I indeed can use git tool but I want to do everything from Python library . Comment : @NT3RP . Please note I can find that mentioned third party repo using cycle and get repos function in case of PyGithub . But .wiki.git repository is not included in that list . The only way I can find out if the repo has a Wiki is request the found repo using has wiki property : repo.has wiki . And that s all : .. . Answer : You can t access a github wiki via the github web API which PyGithub uses exclusivly . But you can point your GitPython at the git URL of the wiki . After that you can access files in this git-repo as with any other repo . Edited .. . .. . As you pointed out that you restrict yourself not to create a local clone of the git repository I recommend following : .. . .. . Read the code in https : github.com github gollum blob master lib gollum frontend app.rb which defines maybe all of the external HTTP interface . A nicely wrapper around it for Python doesn t exist . But when you do make one partially than I recommend using a REST client library like mentioned here : Which is the best python library to make REST request like PUT GET DELETE POST and how http : stackoverflow.com questions 2176561 which-is-the-best-python-library-to-make-rest-request-like-put-get-delete-pos .. . .. . If you now think that your restriction could be changed : .. . .. . The documentation http : packages.python.org GitPython 0.3.2 tutorial.html provides a good tutorial covering everything one needs with a little git knowledge . It boils down to : Comment : Could you provide a simple example Comment : If you read clearly my question it was about how to change .wiki.git repository without creating any local repository please take a look at my example in the question s description . Comment : Thank you for trying to help me . I appreciate this . I will check your suggestion I hope that Gollum will give me a hint anyway .",
"Question : I m trying to use Gollumn Wiki https : github.com github gollum so I could edit my GitHub Wiki but I can t seem to get it to work . I m on Ubuntu 11.10 64Bit . I ve tried this as well with Ruby 1.9 also the same error . I cloned my GitHub Wiki git repository https : github.com markmandel ColdDoc wiki access for my project fired up Gollum and this is the error I recieved : .. . .. . NoMethodError at .. . undefined method new for Redcarpet : Module .. . .. . The full stack-trace is : .. . .. . Any help would be appreciated . Comment : Since this seems like something that needs to be fixed in gollum itself I made a pull request to fix this problem https : github.com github gollum pull 271 . Comment : Related pull request https : github.com github gollum pull 242 .. . Answer : I am trying to use Gollum as my documentation for new projects and this problem hit me recently also . To solve this I isolated the changes using Bundler . In my cloned Gollum directory on my local machine I did the following : .. . .. . Next just run bundle install to set everything up . When you are ready to start the gollum server run bundle exec gollum from the command-line . This will give you a nice isolated gollum server using the gems you specifically bundled and will solve this problem discussed in your question .",
"Question : I need to add wiki pages to my application and I ve just read about the Gollum gem . Since I m new to Rails I m not completely sure about how to integrate gems installed separately with a working project . What are the next steps after installing the gem How will it be accessible from a controller Do I have to create my own controller view and model Plus where can I find valid examples of how to manage simple wiki pages The git repository lacks examples .. . .. . https : github.com gollum gollum .. . .. . @edit .. . .. . taking this post as an example what is YourApplication in the accepted answer How to properly mount github s gollum-wiki inside a Rails App http : stackoverflow.com questions 13053704 how-to-properly-mount-githubs-gollum-wiki-inside-a-rails-app .. . .. . After following these steps am I able to use for example the markdown syntax in a view and it will be translated to formatted html Comment : Add the gem to your Gemfile : gem gollum and then run bundle install . And then I would look at their test page and see how to use the gem : wiki.write page Page Name : markdown Page contents commit .. . Answer : Recently I ve tried to mount Gollum onto my app . Here are the codes for my routes.rb .. . .. . I can access to the whole gollum using http : localhost : 3000 gollum . .. . .. . I have to create a wiki directory from root and do a git init . there to get gollum working .. . .. . The issue I m having right now is that this is a simple mounting of gollum without all the other features in my app like authentication and layout . Still working on how to reflect which user performs which commit . As of now it s all under the server git account . On the side note it seems a bit easier to integrate gollum to my app using gollum-lib but my have to reimplement the front end features . .. . .. . Edit : So I get authentication working by using Devise in my routes . But this comes with a small issue that it keeps getting redirect loop because Devise tries to route to the root of gollum which has not yet been authenticated . I m trying to fix it so that it will redirect to the sign in page . Until then it still serves my use-case as I do not want unauthenticated users to come to the wiki . I also add a way to get the correct author for each commit in gollum by using session gollum.author to pass in the info . I did this by create a session controller from Devise following Configuring Custom Controllers https : github.com plataformatec devise configuring-controllers .. . .. . But for some reasons the session gollum.author Hash changes the keys into string . So I have to do 1 final hack to get session gollum.author Hash with symbol keys . I follow this post http : blog.johnmckerrell.com 2013 01 07 adding-a-wiki-to-mapme-at-using-gollum and create an App class that inherits Previous : : App and just do the changing in my routes.rb",
"Question : i was wondering if there are any good alternatives to Sphinx when i want to provide static html documentation for software projects . Sphinx seems ok but is mostly used in the Python area . I am interested in a solution that could potentially be used in all kinds of projects not only Python related . My goal is to document stuff in markdown or something like that and afterwards generate a static html site that will be delivered to the users administrators .. . .. . I have also seen Gollum but this is tied to GitHub : .. . Answer : You might want to consider giving Gollum https : github.com github gollum another look . I will mention my thoughts about Gollum since my needs sound similar to your requirements . I have started using Gollum recently for Rails project documentation and my experience so far is very positive . It is developed by the people at Github but it is not tied to the Github service and can be used independently of Github . It is a very active open-source project with many committers . The framework is Sinatra and you can easily run it on your personal workstation . I keep a Gollum server running on my development-machine and edit the Markdown files directly and then view the results in the local Gollum server . This is especially nice if you setup your editor to automatically add your updates with a keystroke . When you are ready you can generate a static html site form your Gollum wiki using this https : github.com dreverri gollum-site project . Also since it uses git behind the scenes there is built-in versioning and all the power of git .",
"Question : null .. . Answer : I installed gollum-wiki to serve as our labs wiki 14 members . Since it is git based I imagine the most logical workflow would be that every user has a local copy of the repository and whenever they make changes would initiate a pull request Any other workflow suggestions are appreciated . Also two more specific questions : .. . .. . 1 . If I have a repository e.g . mywiki that I want to clone from bitbucket into the webserver and start using that as a starting point - do I need to use .. . .. . gollum --page-file-dir .. . .. . to specify gollum to use that folder for page creation 2 . Also from the web-based editor when I create a new page .e.g . page1 I see page1.md created in the gollum directory under var gollum but when I create a page e.g . pages page2 to create a page in pages folder I dont see the pages folder created anywhere in the webserver nor can I find the pages.md file . However I see the folder and the page in the web based wiki . There must be something that I am doing wrong . Any inputs Thanks Comment : Does this still occur Do you have some new observations Comment : It works as expected on my machine . Gollum version 2.5.0 and starting as Rack app under Pow Comment : Thanks I haven t checked again as I could not get it working . Started working on deploying gitlab which has all the components . Will let you know once I try Comment : @VijayIvaturi Yes I wish Gollum had multi-user functionality . GitLab is a bit overkill if all you want is multi-user Git-backed wiki functionality .",
"Question : I m trying to use Gollumn Wiki https : github.com github gollum so I could edit my GitHub Wiki but I can t seem to get it to work . I m on Ubuntu 11.10 64Bit . I ve tried this as well with Ruby 1.9 also the same error . I cloned my GitHub Wiki git repository https : github.com markmandel ColdDoc wiki access for my project fired up Gollum and this is the error I recieved : .. . .. . NoMethodError at .. . undefined method new for Redcarpet : Module .. . .. . The full stack-trace is : .. . .. . Any help would be appreciated . Comment : Since this seems like something that needs to be fixed in gollum itself I made a pull request to fix this problem https : github.com github gollum pull 271 . Comment : Related pull request https : github.com github gollum pull 242 .. . Answer : Try reinstalling redcarpet like this : .. . .. . If using bundler put in your Gemfile Comment : Thank you very much kind sir Comment : According to github.com tanoku redcarpet blob master README.markdown http : github.com tanoku redcarpet blob master README.markdown Redcarpet version 2 is not backwards-compatible with the 1.X versions . Lame This update broke the site generator I use Jekyll . Amusingly Redcarpet and Jekyll are both made by GitHub . It s discourteous that they broke other folk s software embarassing that they broke their own Comment : @MattHickford At least they followed semver semver.org http : semver.org Comment : I believe this is resolved in Jekyll in the 0.12.0 release",
"Question : I have several .md files in markdown format initially on github but I would like to put it up as a wiki with a custom link . I use the Gollum gem https : github.com github gollum and like it alot however it is only built on top of github or use in local server to edit the files offline . Are there any opensource wiki that reads markdown format that I can create and point the wiki to my hosted domain Appreciate any suggestions : .. . Answer : Here are some likely candidates : .. . .. . w2wiki http : code.google.com p w2wiki - PHP based A web-based wiki-like notepad that you host yourself .. . Markdoc http : markdoc.org - Python based .. . Gitit http : gitit.net - a wiki backed by a git darcs or mercurial filestore . Uses Pandoc for markup so supports several formats . ikiwiki http : ikiwiki.info - A WIKI compiler based around a revision control backend .. . nikiwiki https : github.com synack nikiwiki - Python based .. . Beautiful docs http : beautifuldocs.com - a documentation viewer based on markdown files uses Node.js .. . Commonplace http : helloform.com projects commonplace - Ruby-based but written for Mac desktop should work elsewhere thougH . Not sure this is really classed as a WIKI but it does display MD formatted files"
]
} | [
"yes-answer-long",
"yes-answer-short"
] | github | UNK_RELATION |
gnu-make@gnu@55 | gnu-make -- this tag is for questions about gmake the @placeholder version of the make utility to maintain and update programs . | {
"confidence": [
43.60543441772461,
43.378318786621094,
38.460472106933594,
38.430545806884766,
38.315330505371094,
38.17145919799805,
37.76242446899414,
37.542442321777344,
37.542442321777344,
37.361045837402344,
37.27113723754883,
36.87364196777344,
36.39110565185547,
36.39110565185547,
36.39110565185547,
36.39110565185547,
36.39110565185547,
36.1624755859375,
36.1624755859375,
35.87318420410156,
35.70556640625,
35.63872528076172,
35.59719467163086,
35.59719467163086,
35.37826919555664,
34.8448486328125,
34.8448486328125,
34.8448486328125,
34.8448486328125,
34.8448486328125,
34.818115234375,
34.72184371948242,
34.43661880493164,
34.41526794433594,
34.37957763671875,
34.163307189941406,
33.992340087890625,
33.92793655395508,
33.92793655395508,
33.92793655395508,
33.91444778442383,
33.87942886352539,
33.87253189086914,
33.87253189086914,
33.559478759765625,
33.484859466552734,
33.17559051513672,
33.17559051513672,
33.03530502319336,
32.961151123046875,
32.91124725341797,
32.85779571533203,
32.85779571533203,
32.82418441772461,
32.82418441772461,
32.82418441772461,
32.82418441772461,
32.82418441772461,
32.75035858154297,
32.75035858154297,
32.75035858154297,
32.75035858154297,
32.75035858154297,
32.75035858154297,
32.75035858154297,
32.75035858154297,
32.75035858154297,
32.75035858154297,
32.75035858154297,
32.75035858154297,
32.72127151489258,
32.445281982421875,
32.32307815551758,
32.201438903808594,
32.18647003173828,
32.0356559753418,
31.991493225097656,
31.642446517944336,
31.642446517944336,
31.642446517944336,
31.642446517944336,
31.571311950683594,
31.4780330657959,
31.291893005371094,
31.291217803955078,
31.291217803955078,
31.174938201904297,
31.154926300048828,
31.154926300048828,
31.154926300048828,
31.154926300048828,
31.154926300048828,
31.154926300048828,
31.13467788696289,
31.110740661621094,
31.081096649169922,
31.081096649169922,
31.081096649169922,
31.081096649169922,
31.081096649169922
],
"content": [
"This is make gmake 3.81 in bash .",
"Say on FreeBSD an application needs to be compiled with GNU make gmake not the standard system make .",
"its only examples of make gmake syntax .",
"I am using GNU Make and a GNU Make specific solution will be fine .",
"GNU MAKE : .. . .. . berkley make :",
"GNU make does allow you to combine both @ and - : .. . .. . Running this with gmake 3.81 produces this output : .. . .. . gmake : all Error 1 ignored .. . .. . As you can see the command is not echoed and the error is ignored as expected .",
"http : stackoverflow.com questions 9838384 can-gnu-make-handle-filenames-with-spaces .. . GNU Make double quotes and lists http : www.dctrwatson.com 2012 06 gnu-make-double-quotes-and-lists",
"-- .. . .. . Using GNU Make 3.81 .",
"I m using GNU make .",
"I want to use gnu-make to set this up .",
"http : stackoverflow.com questions 2483182 recursive-wildcards-in-gnu-make",
"Edit : I just asked : .. . .. . GNU make differences in multiline variable declarations http : stackoverflow.com questions 5033181 gnu-make-differences-in-multiline-variable-declarations .. . .. . To get some clarification on what s happening here.. .",
"I am using GNU Make .",
"OS X Gnu Make 3.81",
"Gnu make 4.0 on Fedora 23 .",
"GNU Make will find it but not other makes .",
"Does GNU make have an equivalent",
"With GNU make you can tell make about the latter information by using a pattern rule like .bar1 .bar2 : .foo .",
"You can read about it in GNU make manual http : www.gnu.org software make manual make.html Pattern-Rules .",
"It s a GNU make feature .",
"I ve checked on Kubuntu 14.04 GNU make 3.81 and OpenSUSE 13.1 GNU make 3.82 .",
"In my version of GNU Make 3.81 .SUFFIXES appears sufficient though .",
"Note that this post relates specifically to GNU make not other make implementations .",
"I m not sure if this is only a gnu-make thing but this works well : .. . .. . make help",
"BSD make and GNU make are both free replacements for the original AT T make .",
"GNU make will use makefile not Makefile if both exist .",
"This doen t work as expected at least on GNU Make 3.81 .",
"Possible duplicate of Recursive wildcards in GNU make",
"Maybe clarify that is a conditional assignment-operator in GNU Make .",
"What would be the translation of that snippet for GNU Make",
"XXX is replaced with the fixed string YYY .. . .. . However due to that its hard to do a multiple string replacement in gnu-make e.g . gnu-make only supports a single stem string replacement at a time I think I have to use a more advanced gnu-make syntax .",
"GNU ifeq is .if berkley make equivalent .",
"Not really working on GNU Make 3.81 probably a target in you makefiles : make : No rule to make target help .",
"I m working with GNU make 3.81 GNU automake 1.14.1 and GNU autoconf 2.69 on Ubuntu 14.04 .",
"The main drawback is it requires you to have a version of GNU make built with Guile support which wasn t present until GNU make 4.0 and is still optional so not all builds might have it .",
"make --version",
"Other make programs look for makefile and Makefile but not GNUmakefile .",
"How similar different are gnu-make microsoft nmake and posix standard make",
"In the past GNU make was more portable than BSD make .",
"Is there any type of if else statemant compatible with GNU make and Berkley make freeBSD",
"However many GNU Makefiles use features that are only available in GNU Make .",
"Here is how to put the output of a shell command in a variable in BSD make : .. . .. . And in GNU make : .. . .. . As soon as someone writes shell .. . in a Makefile it requries GNU make .",
"Is there a similar thing with GNU make",
"No GNU make does not support this .",
"You can find a list of these automatic variables in the GNU Make Manual http : www.gnu.org software make manual make.html Automatic-Variables-1",
"Is there a way using GNU Make of compiling all of the C files in a directory into separate programs with each program named as the source file without the .c extension",
"It requires GNU Make 3.81 but is really easy to use .",
"Is this behavior documented anywhere in the GNU make manual",
"stackoverflow.com questions 17625394 http : stackoverflow.com questions 17625394 secondary-for-a-pattern-rule-with-gnu-make inidicates .PRECIOUS works with patterns but oddly enough not .SECONDARY .",
"make --version 3.81 .",
"The GNU guys version won t .",
"GNU Make and POSIX Make share a common core so that GNU Make understands makefiles intended for POSIX Make and interprets them the same way - with very few exceptions .",
"@abrahab FreeBSD s make and GNU make are very different but bmake the make used on FreeBSD is available on Linuces as bmake and on Mac OS X as bsdmake so it is basically available on each platform running GNU Make .",
"Here s the related documentation : GNU Make Manual 5.2 Recipe Echoing https : www.gnu.org software make manual html node Echoing.html .",
"I happen to notice this in the GNU make manual http : www.gnu.org software make manual make.html Top .",
"This is clearly stated in the GNU Make documentation https : www.gnu.org software make manual make.html Pattern 002dspecific .",
"Also consider studying this article http : mad-scientist.net make autodep.html of Paul Smith he is a maintainer of GNU Make .",
"You should use this name if you have a makefile that is specific to GNU make and will not be understood by other versions of make .",
"Sadly GNU make offers no direct option to just print the database .",
"However GNU make doesn t support something like vpath for output directories .",
"I am using GNU Make 3.81 and it seems to work for me .",
"Everything went fine until the make step for gnu base .",
"Isn t the varname glob syntax a shell thing not a GNU make thing",
"How does GNU make decide which of the messages to emit",
"GNU Make ignores the exit status of the command passed to shell .",
"This feature is not unique to GNU make but it is not as portable as the plain suffix-changing substitution .",
"I have a C++ small project using GNU Make .",
"Is there a way to get GNU make to work correctly with filenames that contain colons",
"I am fine with shell my question was specific to GNU make anyway .",
"I am not aware of any way to define programatically targets in GNU Make .",
"GNU make calls this feature which exists in every make implementation substitution references http : www.gnu.org software make manual make.html Substitution-Refs .",
"GNU Makefile Conditionals https : www.gnu.org software make manual html node Conditionals.html Conditionals .. . .. . Thanks",
"Other make programs look for makefile and Makefile but not GNUmakefile .",
"Apart from the fact that bmake is an BSD equivalent of GNU make I could not clearly understand it s advantages over GNU make .",
"gmake version : .. . .. . And yes the HOSTNAME environment variable is set : .. . .. . This Makefile works in cygwin .",
"I m still using GNU make 3.81 but I didn t find anything in the documentation of the new GNU make 4.0 either",
"@static rtti I was hoping to learn a bit more about the actual execution of make in particular when it invokes itself with MAKE .",
"I just found an interesting work-around at cmcrossroads.com article atomic-rules-gnu-make page 0 2C0 http : www.cmcrossroads.com article atomic-rules-gnu-make page 0 2C0 which does work .",
"Interestingly GNU Make 3.81 that comes with Mac OS X still generates an infinite chain with your code whereas GNU Make 4.2.1 which I separately installed does not .",
"But GNU make has a foreach function which works like this : .. . .. . Also note that in your very specific case not related to GNU make but to Windows you can create all the dirs without a for foreach loop just like this :",
"I use Cmake with GNU Make and would like to see all commands exactly for example how the compiler is executed all the flags etc .. . .. . GNU make has --debug but it does not seem to be that helpful are there any other options",
".. . .. . After you have renamed your Makefile to GNUmakefile create Makefile with : .. . .. . This will call gmake for you every time you run make .",
"This makefile works here for me : .. . .. . Example : .. . .. . The GNU make manual http : www.gnu.org software make manual make.html seems to indicate that the should be just fine but like you I get different behaviour if I have it there .",
"This is a portable version of NetBSD make .",
"Google uses a custom version of GNU Make in ndk package .",
"Most likely you re using an older version of GNU make .",
"Exchange GNU make with Ninja https : ninja-build.org .",
"See this section of the GNU make manual http : www.gnu.org software make manual make.html Echoing .",
"GNU make homepage http : www.gnu.org software make manual make.html uses Makefile and I guess it is the good way to name it .",
"You should use this name if you have a makefile that is specific to GNU make and will not be understood by other versions of make .",
"Because of the different syntax some packages require GNU make for the build and some require BSD make .",
"I started to write Makefiles in 2000 with GNU Make and quickly switched to BSD Make .",
"Of course the manual page of BSD Make is not as detailed as the manual of GNU Make but it is much more dense and easier to use .",
"My improvement to the latter solution is to use the which executable rather than to rely on there being a --version option in each executable directly in the GNU Make ifeq directive rather than to define a new variable and to use the GNU Make error function to stop the build if a required executable is not in PATH .",
"@ bobbogo : Thanks .PRECIOUS did the business and as a bonus led me to the right part of the gnu-make docs to find out all about intermediate targets .",
".PHONY special target seems to be supported even outside Gnu Make world .",
"If you have a need for portable Makefiles by all means use GNU make .",
"Gnu Make 4.1 under Gentoo says Makefile : 14 : missing separator .",
"How should I implement include-guards in Gnu Make",
"I would like to check multiple conditions in an if loop of GNU make file ."
]
} | {
"confidence": [
52.32058334350586,
46.67359924316406,
43.9456787109375,
43.813209533691406,
41.94504165649414,
41.65855407714844,
40.66527557373047,
38.586971282958984,
38.14432144165039,
36.35248565673828,
36.143898010253906,
35.77994155883789,
35.03505325317383,
34.60855484008789,
34.27790451049805,
34.269752502441406,
33.476741790771484,
33.46935272216797,
33.1604118347168,
33.03815841674805
],
"content": [
"Question : Say on FreeBSD an application needs to be compiled with GNU make gmake not the standard system make . Is there any directive I could put to the Makefile to stop executing it and print an error if the Makefile is not compiled with gmake .. . Answer : Call your makefile GNUmakefile http : www.gnu.org software make manual make.html Makefile-Names . GNU Make will find it but not other makes . The first name checked GNUmakefile is not recommended for most makefiles . You should use this name if you have a makefile that is specific to GNU make and will not be understood by other versions of make . Other make programs look for makefile and Makefile but not GNUmakefile . Comment : Interesting approach . Say the user wants to compile an application on FreeBSD . They type in make and nothing happens make says there is no target to make as it can t find the makefile . User has no clue that it needs to be compiled with gmake until they check the folder and know what GNUmake means . Probably not a big problem but I was hoping for a more user friendly solution . Comment : @Amiramix : Then how about also having a makefile with a single rule : all : @echo use GNUMake Comment : That s a good one : Comment : @Beta : I will overtake you eventually . Your days at the top are numbered . Comment : I guess they must be numbered greater than one : .PHONY : MAKECMDGOALS",
"Question : Say on FreeBSD an application needs to be compiled with GNU make gmake not the standard system make . Is there any directive I could put to the Makefile to stop executing it and print an error if the Makefile is not compiled with gmake .. . Answer : This is an addon to Jack Kelly s answer . .. . .. . After you have renamed your Makefile to GNUmakefile create Makefile with : .. . .. . This will call gmake for you every time you run make . Comment : That s a nice solution .",
"Question : I know that the @ prefix suppresses output from a shell command in Makefiles and also that the - prefix will ignore errors from a shell command . Is there a way to combine the two i.e . a prefix that suppresses output and ignores errors I don t think @- or -@ works . Comment : Both @- and -@ works fine . The same applies to a + modifier as well . .. . Answer : GNU make does allow you to combine both @ and - : .. . .. . Running this with gmake 3.81 produces this output : .. . .. . gmake : all Error 1 ignored .. . .. . As you can see the command is not echoed and the error is ignored as expected .",
"Question : How does GNU make decide which of the messages to emit The Makefile I am using causes Nothing to be done for target messages to be emitted when the target is up do date . But I think target is up to-date would be more appropriate . Comment : Why is this an issue Do you want a suggestion on how to patch make Comment : Nothing to be done is probably more accurate from make s point of view . All it knows is dependencies . No dependency is newer than the target so there s nothing to be done . Comment : It isn t an issue . I am just curious . .. . Answer : The chief difference is in whether gmake has a rule to build the target or not . If there is no rule for the target but the target exists then gmake will say Nothing to be done as in I don t know how to update this thing but it already exists so I guess there s nothing to be done . If there is a rule but the target is already up-to-date then gmake will say is up to-date as in I do have instructions for updating this thing but it appears to already be up-to-date so I m not going to do anything . Here s a concrete example : .. . .. . Since gmake has no rule for nothingToDo but the file already exists you get the nothing to be done message . If nothingToDo did not exist you would instead get the familiar No rule to make message . In contrast because gmake has a rule for upToDate and the file appears to be up-to-date you get the is up to-date message . Comment : This clarifies it . Thanks .",
"Question : I happen to notice this in the GNU make manual http : www.gnu.org software make manual make.html Top . Just a slip or what Also how are copyright years in man make 1992 1993 1996 1999 determined When the man itself changed Comment : Maybe there was no new version in 2001 Comment : I doubt there was no activity on make in 2001 .. . well it depends on what is defined as a new version . Besides maybe is hardly an answer . Comment : I wouldn t close this question . It might have a well-defined verifiable answer . Comment : Why the downvotes Clearly I m not asking for a legal advice .. . just curious about what determines the years that get put into either the manual or man . And if there is no known definitive answer ie . not a maybe then so be it . Comment : GNU copyright year produces : gnu.org prep maintain html node Copyright-Notices.html http : www.gnu.org prep maintain html node Copyright-Notices.html To update the list of year numbers add each year in which you have made nontrivial changes to the package . .. . Answer : Should anybody be interested as me it was the mundane Occam answer after all there was no change in 2001 . This was the answer from a make developer : .. . .. . According to the ChangeLog available in every release so you can check it yourself there was a modification to the manual in July 2000 then the next change to the manual is in June 2002 . Comment : Also note that as of four days ago the GNU maintainers decided to simplify their copyright to a range of years . Perhaps you prompted this change commit comment : Simplify copyrights using ranges of years . The new GNU Maintainer s Manual allows the use of year ranges in certain situations take advantage of this simplification see e.g . Diff of make.h http : cvs.savannah.gnu.org viewvc make make.h root make r1 1.156 r2 1.157 Comment : @MattB . that s really interesting thank you for mentioning . A small step for GNU a giant downvote for me .",
"Question : 1 We have a need for Makefiles to build C++ on both z OS USS and a Linux platform . Is it advisable to use gnu-make on z OS USS in order to keep our makefiles common 2 If the Makefiles are common then some steps in the Makefiles would still be conditional to the platform . Can we do that by steps that are similar to conditional-compilation If yes can we please get help with the syntax 3 Our z OS USS Makefiles have shell scripts or groups of commands as in example below with the square brackets presenting the commands to the shell as a group rather than one line at a time . It seems that using the GNU make we had to modify these commands to become one line which is messy and the nested loop was a problem . Is there an easier way to group commands using gmake .. . Answer : If you have a need for portable Makefiles by all means use GNU make . I ve been running it under USS for years now without any problems . If you don t feel comfortable building it yourself you can get a a copy from here http : www-03.ibm.com servers eserver zseries zos unix bpxa1ty1.html gmake",
"Question : Is there any type of if else statemant compatible with GNU make and Berkley make freeBSD GNU MAKE : .. . .. . berkley make : Comment : Note that these two lines does NOT test the same thing Comment : its only examples of make gmake syntax . the questions is above . GNU ifeq is .if berkley make equivalent . i know this . Comment : Why not use automake and have it handle the conditions for you portably Comment : @abrahab FreeBSD s make and GNU make are very different but bmake the make used on FreeBSD is available on Linuces as bmake and on Mac OS X as bsdmake so it is basically available on each platform running GNU Make . If you like BSD Make you could find my macros bsdowl useful . Check them out bitbucket.org michipili bsdowl https : bitbucket.org michipili bsdowl Comment : @MichaelGr newald thanks . seems the time to migrate to clang.. . .. . Answer : No . The best you can do is use include files with constructed names like : .. . .. . where BUILD TYPE will be debug or whatever . This is certainly not as powerful as-if else but it can do a limited set of things well in a portable manner . In general it s almost impossible to write a portable makefile that uses any feature more sophisticated than the basics provided by POSIX . The makefile syntax is so loose and free-form and yet the features provided by traditional make and the POSIX standard are so anemic that most make vendors have created a large number of non-compatible extensions . Generally when people wonder about this I recommend that they either use automake which takes care of the tedious work of writing portable makefiles for you or else they commit to one make or the other and simply require people to build it if they don t have it . GNU make for sure will run across a huge variety of platforms.. . even non-POSIX platforms .",
"Question : Environment stuff : .. . .. . Solaris NFS file servers running NFS 3 .. . Errors occur in Linux or Solaris environments .. . Using GNU Make 3.82 .. . Using Sun Studio compilers if that matters .. . .. . This is a vastly simplified example of the build I m looking at : .. . .. . The short sweet : realpath x y z x y z get returned if they exist returns an absolute path including no symlinks is removing files from the list under some circumstances and I think it has to do with NFS . It isn t predictable which target will fail . Sometimes a target will fail when it s succeeded the last 10 times . If I take @false out of the macro the build continues without error -- that is the linker does not complain about the supposedly missing file s . I ll spare you the drawn-out explanation suffice it to say the macro is helpful for debugging . .. . Answer : Turns out there s a bug in gmake . From the GNU Make 3.82 source function.c on or about line 2026 : .. . .. . Ocasionally various calls to realpath would get interrupted EINTR nothing in this code checks errno so it just silently fails . So it wasn t that the file didn t exist it was that realpath .. . was being interrupted by a signal presumably a child instance of gmake signaling its completion or something similar and this function wasn t designed to recover from that sort of event . To fix the problem : .. . .. . .. . becomes : .. . .. . The will shortcut prevent it from marching on to the next token .",
"Question : I have a several Makefiles in app specific directories like this : .. . .. . Each Makefile includes a .inc file in this path one level up : .. . .. . Inside app rules.inc I m setting the destination of where I want the binaries to be placed when built . I want all binaries to be in their respective app type path : .. . .. . I tried using CURDIR like this : .. . .. . but instead I got the binaries buried in the entire path name like this : notice the redundancy .. . .. . What can I do to get the current directory of execution so that I can know just the app typeX in order to put the binaries in their respective types folder Comment : stackoverflow.com questions 8074372 http : stackoverflow.com questions 8074372 make-include-in-makefiles-be-relative-to-the-files-location .. . Answer : If you are using GNU make CURDIR is actually a built-in variable . It is the strike location where the Makefile resides strike the current working directory which is probably where the Makefile is but not always . See Appendix A Quick Reference in http : www.gnu.org software make manual make.html Comment : From the GNU Make manual page 51 : when GNU make starts after it has processed any -C options it sets the variable CURDIR to the pathname of the current working directory . Not the location of where the Makefile is located - although they might be the same . Comment : Downvoted because the answer is not technically correct as noted by Simon Peverett in the previous comment . Comment : @SimonPeverett : The expression in brackets means the the current working directory AFTER -C opts applied . Namely CURDIR gives the exactly the same results for make -C xxx and cd xxx make . Also it removes the trailing . I tried tied with gmake v3.81 . But You are right if make is called as make -f xxx Makefile .",
"Question : Apart from the fact that bmake is an BSD equivalent of GNU make I could not clearly understand it s advantages over GNU make . Can anyone help me I was able to find only one resource http : www.crufty.net help sjg bmake.html that was bit helpful . More help or pointers are appreciated . Thanks Prabhu .. . Answer : BSD make and GNU make are both free replacements for the original AT T make . The major difference is having different syntax for the advanced features . Here is how to put the output of a shell command in a variable in BSD make : .. . .. . And in GNU make : .. . .. . As soon as someone writes shell .. . in a Makefile it requries GNU make . Because of the different syntax some packages require GNU make for the build and some require BSD make . BSD make began its life as PMake short for parallel make . Its author Adam de Boor described PMake in PMake -- A Tutorial http : www.freebsd.org doc en books pmake index.html . Its merit was the new ability to run jobs in parallel as in make -j 3 . This parallel mode broke compatibility by running all commands for each target in a single shell not in one shell per line . GNU make has a parallel mode also -j that keeps one shell per line . NetBSD make 1 http : netbsd.gw.com cgi-bin man-cgi make+1+NetBSD-current now has make -B -j 3 to do parallel mode with one shell per line . OpenBSD make 1 http : www.openbsd.org cgi-bin man.cgi OpenBSD-current man1 make.1 query make sec 1 now always does parallel mode with one shell per line . 4.3BSD-Reno included PMake as make and the bsd . .mk include files . These include files are the best feature of BSD make . src bin sed Makefile in 4.3BSD-Tahoe http : minnie.tuhs.org cgi-bin utree.pl file 4.3BSD-Tahoe usr src bin sed Makefile the release before 4.3BSD-Reno defines several targets like clean depend install and so on . src usr.bin sed Makefile in 4.3BSD-Reno http : minnie.tuhs.org cgi-bin utree.pl file 4.3BSD-Reno src usr.bin sed Makefile has only four non-empty lines : .. . .. . Here bsd.prog.mk automatically sets OBJS to sed0.o sed1.o defines a sed target to link sed from those objects defines other targets like clean depend install and causes make install to install both sed and its manual page sed.1 . There is also bsd.lib.mk for building libraries . When using bsd . .mk each Makefile can build only one program or library . To build another one there must be a second Makefile in another directory . So src usr.sbin smtpd in OpenBSD http : openbsd.cs.toronto.edu cgi-bin cvsweb src usr.sbin smtpd has six subdirectories where each subdirectory only contains a Makefile because smtpd builds six programs . It is also rare to use bsd . .mk to build anything except BSD itself . Many portable packages from BSD developers like OpenSSH from OpenBSD or mksh from MirBSD do not require BSD make and do not use bsd . .mk files . The file bsd.port.mk is at the center of FreeBSD Ports http : www.freebsd.org ports index.html the system that builds software packages for FreeBSD . NetBSD pkgsrc http : www.pkgsrc.org calls this file bsd.pkg.mk . This system has rivals in other scripting languages . Homebrew uses Ruby . MacPorts use Tcl . In the past GNU make was more portable than BSD make . Because BSD make was part of BSD it is rare to find BSD make on other systems . Now there is portable bmake http : crufty.net help sjg bmake.html for other systems . This is a portable version of NetBSD make . The most common use for portable bmake is to run pkgsrc on non-NetBSD systems . I run pkgsrc on OS X with bmake bootstrapped by pkgsrc . Comment : gmake 4.x added support for the syntax .",
"Question : Is there a way using GNU Make of compiling all of the C files in a directory into separate programs with each program named as the source file without the .c extension .. . Answer : I don t think you even need a makefile - the default implicit make rules should do it : .. . .. . Edited to make the command-line a little simpler .",
"Question : Is there a way using GNU Make of compiling all of the C files in a directory into separate programs with each program named as the source file without the .c extension .. . Answer : Improving Martin Broadhurst s answer by adding clean target . make clean will clean all executable .",
"Question : How similar different are gnu-make microsoft nmake and posix standard make Obviously there s things like which OS which compiler and which linker but I m referring specifically to the syntax semantics and command-line options of the makefiles themselves . If I write makefiles based on manuals for gnu-make what are the most important portability issues that I need to be aware of Comment : Related : Restricting GNU Make to POSIX Make behaviour @ Unix.SE http : unix.stackexchange.com q 144424 50602 Sadly there seems to be no way of achieving that you can just use .POSIX special target which still leaves many extensions enabled . .. . Answer : GNU Make and POSIX Make share a common core so that GNU Make understands makefiles intended for POSIX Make and interprets them the same way - with very few exceptions . However many GNU Makefiles use features that are only available in GNU Make . Sometimes this is deliberate and conscious sometimes it isn t and sometimes isn t is a problem . I m less familiar with Microsoft nmake I believe it is likely to hew close to the POSIX Make semantics at its core but it will have its own divergent set of extensions . Generally speaking what the programs like autoconf produce are close to portable Makefiles . The main things to be beware of using GNU Make are all the extended function notations for mapping file names macros into useful values . While they are undoubtedly useful they are also a trap for portability . The .x notations for suffix rules are not defined by POSIX http : www.opengroup.org onlinepubs 9699919799 utilities make.html - they are recognized as a common extension : .. . .. . The interpretation of targets containing the characters and is implementation-defined . Comment : I have run into aix make program couple times . Yuck . It is strictly POSIX or is it something else standard-wise Comment : @unknown : it is fairly close to POSIX Make - somewhere between that and one of the System V make programs . POSIX Make is pretty much a common subset of the various make variants . Comment : Also command-line options relevant to MAKEFLAGS variable special targets uppercase starting with dot and built-in rules vary wildly . But e.g . .PHONY special target seems to be supported even outside Gnu Make world . I think the only safe way is to test your makefiles . If you want to play it safe adhere to POSIX even though it defines a very limited make .",
"Question : I m expecting to see files foo1 and foo3 created by the makefile below . However only a file foo3 is created . To me it seems that the canned recipe make-foo is simply ignored by make . The debug outcome of targets foo1 and foo2 empty recipe is identical . Running make : .. . .. . Missing foo1 : .. . Answer : I think you don t want the at the end of the define line . This makefile works here for me : .. . .. . Example : .. . .. . The GNU make manual http : www.gnu.org software make manual make.html seems to indicate that the should be just fine but like you I get different behaviour if I have it there . Edit : I just asked : .. . .. . GNU make differences in multiline variable declarations http : stackoverflow.com questions 5033181 gnu-make-differences-in-multiline-variable-declarations .. . .. . To get some clarification on what s happening here.. . Comment : I can confirm that dropping fixed the problem also for me . That s an issue I d probably never had found out by myself . Thanks I m also following the continuation question with a great interest . Comment : @user272735 good to hear that it solved your problem . The follow up question I asked doesn t seem to be getting much love.. .",
"Question : I am writing a Makefile and need to access the HOSTNAME environment variable . None of the environment-variables are available . Here s the Makefile : .. . .. . The output is : .. . .. . I am running on ubuntu 14.04 in a VM . gmake version : .. . .. . And yes the HOSTNAME environment variable is set : .. . .. . This Makefile works in cygwin . Do you know why this is not working .. . Answer : The reason is that HOSTNAME is not an environmental variable . If you try the next command : .. . .. . the output will be empty . But if you try : .. . .. . you will see the line containing information about HOSTNAME . It s because HOSTNAME is a shell variable not an environmental variable . So Make doesn t know about HOSTNAME when performing your Makefile . In fact you have a number of ways to improve the situation : .. . .. . 1 Include HOSTNAME to the child-process environment with export : .. . .. . But it is rather awkward solution . 2 Use hostname http : www.tldp.org LDP abs html system.html HNAMEREF command in your recipe or uname -n which is an equivalent . I think that this solution is better .",
"Question : 1 We have a need for Makefiles to build C++ on both z OS USS and a Linux platform . Is it advisable to use gnu-make on z OS USS in order to keep our makefiles common 2 If the Makefiles are common then some steps in the Makefiles would still be conditional to the platform . Can we do that by steps that are similar to conditional-compilation If yes can we please get help with the syntax 3 Our z OS USS Makefiles have shell scripts or groups of commands as in example below with the square brackets presenting the commands to the shell as a group rather than one line at a time . It seems that using the GNU make we had to modify these commands to become one line which is messy and the nested loop was a problem . Is there an easier way to group commands using gmake .. . Answer : Disclaimers : .. . .. . 1 . I know nothing about z OS USS .. . 2 . I know a lot about Make and when you re holding a hammer .. . . Advice : .. . .. . Yes I d recommend using GNUMake on both platforms and keeping your Makefiles as common as possible . There are a couple of ways to put conditionality in a Makefile . Usually one defines a variable first . SYSTEM shell uname .. . .. . Then one can define other variables conditionally .. . .. . SOMEFILE SYSTEM file .. . .. . ifeq SYSTEM Linux .. . Do some Linux things define variables whatever . else .. . Do some z OS USS things . endif .. . .. . In a block of commands if the conditional DOESN T start with a tab .. . it s a Make statement and follows Make syntax . thing : .. . ifeq SYSTEM Linux .. . shell-command-do-something .. . endif .. . .. . If the conditional DOES follow a tab Make expands the variables and passes .. . the whole thing to the shell so the syntax is whatever the shell requires . otherthing : .. . if SYSTEM ZOS do x otherwise do y finish .. . .. . .. . And there are other more advanced tricks to try when you re bored with these . I m not sure what you mean when you say that you want the commands to be processed in groups but I suspect you can get what you want by appending to each command in the group so that they will be executed one by one in the same subshell otherwise each command gets its own subshell .",
"Question : Although both names will do the job what is the correct name for makefiles GNU make homepage http : www.gnu.org software make manual make.html uses Makefile and I guess it is the good way to name it . Any reasons for typing the front M in upper case .. . Answer : What Name to Give Your Makefile http : www.gnu.org software make manual make.html Makefile-Names chapter of GNU Make manual clarifies it : .. . .. . By default when make looks for the makefile it tries the following names in order : GNUmakefile makefile and Makefile . Normally you should call your makefile either makefile or Makefile . We recommend Makefile because it appears prominently near the beginning of a directory listing right near other important files such as README . The first name checked GNUmakefile is not recommended for most makefiles . You should use this name if you have a makefile that is specific to GNU make and will not be understood by other versions of make . Other make programs look for makefile and Makefile but not GNUmakefile . Comment : Thank you for the reference . Comment : @Benoit you re welcome .",
"Question : BSD make has a : Q variable expansion modifier documented in the FreeBSD make man page https : www.freebsd.org cgi man.cgi query make 281 29 as follows : .. . .. . If variable var has value a b c d e f then var : Q expands to a b c d e f or something equivalent . This is useful to pass strings to the shell without worrying that the shell will interpret any special-characters . Does GNU make have an equivalent Or do I have to escape special-characters my own Comment : I can t see any such feature in the gnu-make manual but it s not surprising given the number of platforms and shells make must support . .. . Answer : GNU make provides functions subst https : www.gnu.org software make manual html node Text-Functions.html and patsubst which can help solve the problem . Those are more general but require more work by the developer since they do not solve the specific problem . Also the documentation does not show they use regular expressions adding to the work . For instance you could in principle build up an expression like this : .. . .. . For more discussion .. . .. . Escaping comma and space in GNU Make http : blog.jgc.org 2007 06 escaping-comma-and-space-in-gnu-make.html .. . Can GNU make handle filenames with spaces http : stackoverflow.com questions 9838384 can-gnu-make-handle-filenames-with-spaces .. . GNU Make double quotes and lists http : www.dctrwatson.com 2012 06 gnu-make-double-quotes-and-lists Comment : So I do have to roll my own . Bummer .",
"Question : I am writing a Makefile and need to access the HOSTNAME environment variable . None of the environment-variables are available . Here s the Makefile : .. . .. . The output is : .. . .. . I am running on ubuntu 14.04 in a VM . gmake version : .. . .. . And yes the HOSTNAME environment variable is set : .. . .. . This Makefile works in cygwin . Do you know why this is not working .. . Answer : HOSTNAME is set by Bash but when Make runs a shell it calls sh even if this is a symlink to Bash on your system it runs in POSIX mode which disables many Bash-specific behaviors . Workaround 0 always call make with Bash with HOSTNAME exported . Workaround 1 use Bash instead of sh explicitly . Workaround 2 call Bash explicitly . Workaround 3 run an external command . Out of these the last one is probably the least obscure as well as the most efficient .",
"Question : How can I compact the folllowing Makefile targets -- .. . .. . Using GNU Make 3.81 . .. . Answer : The concept is called pattern rules . You can read about it in GNU make manual http : www.gnu.org software make manual make.html Pattern-Rules . or just .. . .. . .. . .. . Advanced stuff : it is funny to notice that there s a repetition up there.. . Comment : How about .png : .dot Comment : @ Beta well dunno . I usually deal with situations where processing is directory-specific so I just got used to it . :"
]
} | [
"yes-answer-long",
"yes-answer-short"
] | gnu | UNK_RELATION |
nuclide-editor@web@64 | nuclide-editor -- nuclide - a unified developer experience for @placeholder and mobile development . | {
"confidence": [
59.70033645629883,
58.85822677612305,
57.925575256347656,
56.14051055908203,
55.788333892822266,
53.539798736572266,
53.48670959472656,
53.30172348022461,
53.012474060058594,
53.012474060058594,
52.08464050292969,
51.66432189941406,
50.547611236572266,
50.547611236572266,
50.154029846191406,
49.99937438964844,
49.714508056640625,
49.14554214477539,
49.14554214477539,
49.14554214477539,
48.94499969482422,
48.59779357910156,
48.017337799072266,
47.37759780883789,
47.19572448730469,
46.99518585205078,
46.260887145996094,
46.260887145996094,
45.73371124267578,
45.73371124267578,
45.73371124267578,
45.73371124267578,
45.73371124267578,
45.73371124267578,
45.73371124267578,
45.73371124267578,
43.92898178100586,
43.783897399902344,
43.783897399902344,
43.783897399902344,
43.783897399902344,
43.783897399902344,
43.271976470947266,
42.605224609375,
41.979164123535156,
41.446990966796875,
41.446990966796875,
41.446990966796875,
41.446990966796875,
41.13800048828125,
41.13800048828125,
41.13800048828125,
41.13800048828125,
41.13800048828125,
41.13800048828125,
41.13800048828125,
41.13800048828125,
41.13800048828125,
41.13800048828125,
41.13800048828125,
41.13800048828125,
41.13800048828125,
39.64225769042969,
39.18818283081055,
39.18818283081055,
39.18818283081055,
39.18818283081055,
38.32532501220703,
38.32532501220703,
38.32532501220703,
38.32532501220703,
38.32532501220703,
37.543785095214844,
36.85127639770508,
36.85127639770508,
36.85127639770508,
36.375511169433594,
36.375511169433594,
35.175025939941406,
34.03860092163086,
34.03860092163086,
34.03860092163086,
33.22521209716797,
32.693634033203125,
30.888301849365234,
30.35672378540039,
27.468032836914062,
26.2679386138916,
25.67008399963379,
24.923967361450195,
22.239049911499023,
22.239049911499023,
22.239049911499023,
21.175785064697266,
19.299949645996094,
19.299949645996094,
19.299949645996094,
19.299949645996094,
19.299949645996094,
19.299949645996094
],
"content": [
"Nuclide is a single Atom package named nuclide https : atom.io packages nuclide .",
"There is more info in the Nuclide v0.111.0 blog post : http : nuclide.io blog 2016 01 13 Nuclide-v0.111.0-The-Unified-Package",
"I did installed nuclide on server-side with npm i -g nuclide .",
"Some features of Nuclide may work on Windows but the full Nuclide experience is not yet supported .",
"As of 2016 01 13 Nuclide is a single Atom package named nuclide https : atom.io packages nuclide .",
"Install it with apm install nuclide .",
"I am launching nuclide server with Remote Server Command nuclide-start-server .",
"Prior to Nuclide s Unified Package https : nuclide.io blog 2016 01 13 Nuclide-v0.111.0-The-Unified-Package released on 2016-01-13 Nuclide consisted of 44 separate Atom packages .",
"I thought I d give Nuclide a try and after running apm install nuclide-installer I went to the packages tab and searched for nuclide .",
"I installed Atom and Nuclide...I installed nuclide-server but I keep getting timeout errors when nuclide-server is trying to connect to port 9090 .",
"But I am not sure how to fix this with nuclide server .",
"Uninstalling and reinstalling Nuclide did the trick",
"This might be the same issue : github.com facebook nuclide issues 118 https : github.com facebook nuclide issues 118",
"I found this issue : github.com facebook nuclide issues 423 https : github.com facebook nuclide issues 423",
"Facebook recently announced Nuclide http : nuclide.io that supports Remote Development and Hack .",
"I recommend trying to build Nuclide from source by : .. . .. . git-clone git@github.com : facebook nuclide.git nuclide cd nuclide . scripts dev setup .. . .. . Then use home USER pkg nuclide server nuclide-start-server as the remote-server command .",
"How is it possible to execute the code in Nuclide",
"The nuclide-installer package is no longer needed or supported .",
"This was not a problem in Nuclide itself but rather in the downloading of its dependencies .",
"I tried Nuclide- React Native- Start Debugging .",
"Original answer : .. . .. . The list of nuclide- packages is at 12 at the moment : .. . .. . https : github.com facebooknuclideapm nuclide-installer blob master lib config.json .. . .. . Since you install nuclide-installer itself that makes a total of 13 nuclide- packages you should see after installation .",
"nuclide-installer did not install anything at all and installing by hand nuclide- packages did not work either .",
"The Nuclide site has a page for uninstalling past versions of Nuclide : http : nuclide.io docs editor uninstall .. . .. . You can uninstall all packages via apm by passing it the full list :",
"I have nuclide installed v0.126.0 .",
"I imported a NODE.js project inside Nuclide Atom .",
"I have followed all the installation instructions but autocomplete inline error report click-to-definition features do not work whereas nuclide-language-hack nuclide-file-tree nuclide-remote-projects work as expected and nuclide-server from the server part .hhconfig file is included on project root .",
"github.com facebook nuclide https : github.com facebook nuclide The team more closely monitors GitHub Issues than StackOverflow at the moment .",
"@ssorallen Yeah I added it here : github.com facebook nuclide issues 130 https : github.com facebook nuclide issues 130",
"At the time of my original answer which is still below Nuclide was 12 packages .",
"You should be able to watch that file in the near future for a list of Nuclide packages .",
"Once apm install nuclide completes you are good to go .",
"Then lldb should just load normally without more intervention from nuclide .",
"I often get this exception trying to start a debugging session on Nuclide .",
"And the error message always shows up when I restart the packager in Nuclide .",
"per their instructions https : github.com sprintr nuclide blob master README.md installation .",
"What steps does one need to take to have linting in Nuclide",
"Was able to update to 0.126.0 which got released 3 hrs ago but did receive github.com facebook nuclide issues 313 https : github.com facebook nuclide issues 313 error .",
"I have installed them all except flow by filtering the results of nuclide- .",
"However Nuclide reports : .. . .. . Watcher failed to start - watcher features disabled",
"This is a fresh new install of Atom and Nuclide with the latest version of everything .",
"So I know that Atom-Nuclide is able to interact with the Mercurial repository .",
"then hit -R in iOS simulator to reload the app the Nuclide debugger starts work",
"Could you try building Nuclide from source and see it that fixes the issue for you : https : github.com facebook nuclide building-from-source",
"I have installed facebook s nuclide https : github.com facebook nuclide to try it out for hvvm hack development for atom via : .. . .. . After running and installing it my atom became incredibly slow and hangs on startup which is why I want to get it uninstalled .",
"It seems that Nuclide s WatchmanClient https : github.com facebook nuclide blob master pkg nuclide watchman-helpers lib WatchmanClient.js can t connect to your installed watchman for some reason .",
"I m not able to connect remotely using atom s new nuclide package .",
"Trying to use nuclide with atom but I cannot get the debugger to work .",
"is your chrome pointed to debugging url when you run debugger in nuclide",
"You can manually restart it using the Nuclide Adb Logcat : Start command .",
"Unfortunately the docs says : .. . .. . From there filter your installed packages by nuclide- and you should see quite a few results",
"I see 1 nuclide-language-hack which i m guessing doesn t equal quite a few .",
"After Atom s restart I can see just the nuclide-language-hack package .",
"When i try to attach hhvm process to nuclide debug interface nothing happened .",
"I don t know what the nuclide package s find lldb function does so I can t tell why it is failing .",
"Info .. . .. . Error : .. . .. . .. . Please let me know if i am doing something wrong or if there is a workaround on how to upgrade this nuclide package .",
"As of 10 minutes ago I am unable to install nuclide with apm and I am getting this exact same error .",
"See here : pastebin.com aYtiA1sw http : pastebin.com aYtiA1sw This is clearly a new problem with Nuclide installer updater as of yesterday .",
"For now I built nuclide manually according to this guide : http : nuclide.io docs advanced-topics building-from-source .",
"I tried running nuclide-start-server with the -k flag insecure and it still won t work .",
"Is there any good document video that talks about how to debug a react-native application using Nuclide .",
"I could not find any clear instructions on how to debug run react-native applications with nuclide .",
"I am pretty much giving up on Nuclide as I think there is no real value .",
"I ran npm-install -g nuclide-server and followed the the trouble shooting instructions from the nuclide docs http : nuclide.io docs remote but I keep getting errors .",
"Tip : When you install nuclide you have to wait some minutes and atom will become unresponsive .",
"How to execute a certain command like build command remotely within Atom s Nuclide package",
"I m using Nuclide debugger iOS project it shows Starting Debugger and progress-bar opens on a right panel .",
"Nuclide-flow Atom settings http : i.stack.imgur.com ZDcIM.png .. . .. . Here is what I get when running flow on the command-line :",
"I installed Atom and then from it s package manager I installed the nuclide-installer package which is expected to install all the nuliclide packages .",
"@DilithiumMatrix You are correct sometimes I treat stackoverflow as a hammer .. . The issue has been opened https : github.com facebook nuclide issues 266",
"On Chrome debugging works although with extremely shaky support for debugger stops stopping at the right line which why I m trying Nuclide .",
"Can Nuclide s HHVM features be used locally or do you have to do it remotely because I can t get nuclide-server to work remotely on Vagrant .",
"Installed Nuclide for Atom disabled the linter per their instructions https : nuclide.io docs advanced-topics linter-package-compatibility and also I ve installed the linter",
"Here is what I ve done : .. . .. . Installed flow with brew .. . Installed Nuclide from the Atom packages settings shown in image below .. . initialized an empty .flowconfig file in the project .. . Initialize each file to flow-check with @flow .. . run flow check from the project directory .. . .. . I have the following OS versions : .. . .. . OSX 10.11 .. . Atom 1.8.0 .. . Nuclide 0.141.0 .. . Flow 0.14.0 .. . .. . Here are my settings for Nuclide flow :",
"Nuclide supposedly supports error checking http : nuclide.io docs hack but I can t figure out how to set it up .",
"Failed to require the main module of nuclide-debugger-node because it requires an incompatible native module .",
"Pretty much giving up on Nuclide another person on my team couldn t get it to run either",
"Finally the contents of log files : nuclide.nohup.out and tmp nuclide-logs nuclide.log on your client and server could help you understand what s going on .",
"These features in Atom-Nuclide are the reason why I am interested in trying out Mercurial instead of Git and are big reasons for trying this IDE in general .",
"You may also need to have lldb in your PATH it s possible nuclide is using lldb -P to find the module which won t work if it can t find lldb .",
"I run the RN packager within Nuclide start the debugger and then run react-native run-ios from terminal and lastly enable chrome debugging .",
"enter image description here http : i.stack.imgur.com Z4rNT.png .. . .. . If I close the debugger within nuclide it runs fine within normal Chrome debugging .",
"I have resolved my problem it seems that nuclide has a setting to add the path to the flow binary just edit it to match where which flow outputs .",
"When I open a Diff View into a file Nuclide picks up the previous Mercurial version of that file just fine as I make edits and it shows the comparison between the two .",
"Note that the tests for WatchmanClient is currently disabled but maybe it will show some useful error when you remove the x from line 20 of WatchmanClient-spec.js https : github.com facebook nuclide blob master pkg nuclide watchman-helpers spec WatchmanClient-spec.js L20 and run : npm test in the watchman-helpers directory or add some logging or stack-trace in the command function .",
"I m beginning my studies with react-native however when I opened a project with atom and the nuclide package it gives me a message saying that wasn t possible to locate the flow binary in the PATH .",
"I have a fresh install of Atom .. . I installed Nuclide via apm install nuclide-installer .. . I ve verified Hack is installed correctly by running hh client from my project dir on the commandline and it does report errors .. . I have an .hhconfig in my project root but it s empty no idea what to put inside it .. . Watchman is installed .. . .. . No errors are displayed in the IDE see screenshot .",
"When I run nuclide-start-server on my server I end up this error : .. . .. . In atom when I try to connect I get this error which is pretty much summarized above : .. . .. . Any help is greatly appreciated .",
"I have actually just made it work by doing the following : .. . .. . update flow to 0.26.0 with brew upgrade flow or sudo brew upgrade flow if you need to .. . disable all linter packages on Atom .. . restart atom shutting the app completely first .. . Restart Flow Server Atom top bar -- Nuclide -- flow -- Restart Flow Server",
"Its my first time app development and first time with React .",
"From docs https : nuclide.io docs editor setup windows : Atom can be installed on Windows .",
"I am trying to connect a remote workspace on aws with nuclude .",
"And got these output in log file : .. . .. . This indicates babel es2015 or stage-0 plugin for babel not kicked in .",
"What did I miss",
"No business can safely rely on a development-environment where the level of community interest outside of FB cannot support an attempt to claim a Stack Overflow bounty on a question like this .",
"Has something gone wrong",
"How many packages should there be",
"@ssorallen Thanks for adding the extra tag I don t have enough rep for that",
"Since the questions I ve tried several things but on a Windows 2012 R2 server VM I only have 3 .",
"An Ubuntu VM has all 13 though .",
"Any suggestion on how to get all the needed packages"
]
} | {
"confidence": [
79.64798736572266,
72.7047119140625,
69.7447280883789,
65.51638793945312,
62.63993835449219,
61.99321746826172,
61.99321746826172,
60.74983215332031,
59.260826110839844,
58.22075271606445,
57.299110412597656,
57.26079559326172,
57.000999450683594,
56.067710876464844,
55.69506072998047,
55.1863899230957,
54.465965270996094,
54.320701599121094,
53.565513610839844,
53.162750244140625
],
"content": [
"Question : I thought I d give Nuclide a try and after running apm install nuclide-installer I went to the packages tab and searched for nuclide . Unfortunately the docs says : .. . .. . From there filter your installed packages by nuclide- and you should see quite a few results I see 1 nuclide-language-hack which i m guessing doesn t equal quite a few . Has something gone wrong How many packages should there be Comment : @ssorallen Thanks for adding the extra tag I don t have enough rep for that .. . Answer : Nuclide is a single Atom package named nuclide https : atom.io packages nuclide . Install it with apm install nuclide . Prior to Nuclide s Unified Package https : nuclide.io blog 2016 01 13 Nuclide-v0.111.0-The-Unified-Package released on 2016-01-13 Nuclide consisted of 44 separate Atom packages . At the time of my original answer which is still below Nuclide was 12 packages . Original answer : .. . .. . The list of nuclide- packages is at 12 at the moment : .. . .. . https : github.com facebooknuclideapm nuclide-installer blob master lib config.json .. . .. . Since you install nuclide-installer itself that makes a total of 13 nuclide- packages you should see after installation . You should be able to watch that file in the near future for a list of Nuclide packages . Comment : Since the questions I ve tried several things but on a Windows 2012 R2 server VM I only have 3 . An Ubuntu VM has all 13 though . Comment : From docs https : nuclide.io docs editor setup windows : Atom can be installed on Windows . Some features of Nuclide may work on Windows but the full Nuclide experience is not yet supported .",
"Question : I installed Atom and then from it s package manager I installed the nuclide-installer package which is expected to install all the nuliclide packages . After Atom s restart I can see just the nuclide-language-hack package . Any suggestion on how to get all the needed packages Comment : This might be the same issue : github.com facebook nuclide issues 118 https : github.com facebook nuclide issues 118 .. . Answer : As of 2016 01 13 Nuclide is a single Atom package named nuclide https : atom.io packages nuclide . The nuclide-installer package is no longer needed or supported . Once apm install nuclide completes you are good to go . There is more info in the Nuclide v0.111.0 blog post : http : nuclide.io blog 2016 01 13 Nuclide-v0.111.0-The-Unified-Package",
"Question : I have installed facebook s nuclide https : github.com facebook nuclide to try it out for hvvm hack development for atom via : .. . .. . After running and installing it my atom became incredibly slow and hangs on startup which is why I want to get it uninstalled . Yet .. . .. . does not get rid of it . It still makes atom incredibly sluggish and starts up with the default page . Comment : This is probably an issue you should open on the github page Comment : @DilithiumMatrix You are correct sometimes I treat stackoverflow as a hammer .. . The issue has been opened https : github.com facebook nuclide issues 266 Comment : I ve found the atom-community to be somewhat lacking via github so this is probably a good place to start in general .. . Answer : The Nuclide site has a page for uninstalling past versions of Nuclide : http : nuclide.io docs editor uninstall .. . .. . You can uninstall all packages via apm by passing it the full list :",
"Question : null .. . Answer : I am trying to connect a remote workspace on aws with nuclude . I am launching nuclide server with Remote Server Command nuclide-start-server . And got these output in log file : .. . .. . This indicates babel es2015 or stage-0 plugin for babel not kicked in . But I am not sure how to fix this with nuclide server . I did installed nuclide on server-side with npm i -g nuclide . What did I miss",
"Question : Facebook recently announced Nuclide http : nuclide.io that supports Remote Development and Hack . I have followed all the installation instructions but autocomplete inline error report click-to-definition features do not work whereas nuclide-language-hack nuclide-file-tree nuclide-remote-projects work as expected and nuclide-server from the server part .hhconfig file is included on project root . I have installed them all except flow by filtering the results of nuclide- . Are these features unsupported in remote-access or i have made something wrong in installation which is pretty straightforward i think Moreover i do not understand how watchman https : facebook.github.io watchman is configured to work properly . I have installed it using the following commands server runs Linux i have also installed inotify-tools .. . .. . and i used the following to watch my project .. . .. . and watcher seems to be established fine . However Nuclide reports : .. . .. . Watcher failed to start - watcher features disabled .. . Details : socket hang up .. . .. . I am sorry that i ask installation advices here but i do not think the above should be asked on Github either . Thanks .. . .. . Solution : As MostafaEweda suggested i tried to compile from source . apm or package installation through atom settings did not work for me . nuclide-installer did not install anything at all and installing by hand nuclide- packages did not work either . For Windows Users : Python3.4 throws some runtime errors although documentation says Python 2.6 or later is supported . I used Python2.7 and these errors seem to go away . Tip : When you install nuclide you have to wait some minutes and atom will become unresponsive . Be patient Comment : If you suspect an issue with watchman it s worth running through facebook.github.io watchman docs troubleshooting.html http : facebook.github.io watchman docs troubleshooting.html . In particular looking at and sharing information from your logs will be helpful to diagnose and suggest a resolution . .. . Answer : It seems that Nuclide s WatchmanClient https : github.com facebook nuclide blob master pkg nuclide watchman-helpers lib WatchmanClient.js can t connect to your installed watchman for some reason . Note that the tests for WatchmanClient is currently disabled but maybe it will show some useful error when you remove the x from line 20 of WatchmanClient-spec.js https : github.com facebook nuclide blob master pkg nuclide watchman-helpers spec WatchmanClient-spec.js L20 and run : npm test in the watchman-helpers directory or add some logging or stack-trace in the command function . However all of these are unrelated to the Hack features not working for you . I recommend trying to build Nuclide from source by : .. . .. . git-clone git@github.com : facebook nuclide.git nuclide cd nuclide . scripts dev setup .. . .. . Then use home USER pkg nuclide server nuclide-start-server as the remote-server command . Finally the contents of log files : nuclide.nohup.out and tmp nuclide-logs nuclide.log on your client and server could help you understand what s going on . Comment : You saved my day : I have updated my question and i will update it later if i find out why watchman does not monitor files . Thanks",
"Question : Info .. . .. . Error : .. . .. . .. . Please let me know if i am doing something wrong or if there is a workaround on how to upgrade this nuclide package . Comment : This must be a completely new problem . As of 10 minutes ago I am unable to install nuclide with apm and I am getting this exact same error . Yesterday I was able to install on a VM just fine . Comment : My Google search with this error message brought up 2 results : 1 . This page and 2 . a paste bin from yesterday time unknown . See here : pastebin.com aYtiA1sw http : pastebin.com aYtiA1sw This is clearly a new problem with Nuclide installer updater as of yesterday . Comment : I found this issue : github.com facebook nuclide issues 423 https : github.com facebook nuclide issues 423 Comment : Was able to update to 0.126.0 which got released 3 hrs ago but did receive github.com facebook nuclide issues 313 https : github.com facebook nuclide issues 313 error . .. . Answer : This is resolved . This error occurred during the infamous left-pad unpublishing http : www.theregister.co.uk 2016 03 23 npm left pad chaos of March 2016 . left-pad received the most mentions but relative-date was among the packages that were unpublished as well . This was not a problem in Nuclide itself but rather in the downloading of its dependencies . Comment : Yes i was able to upgrade it now . Thanks for the info .",
"Question : Info .. . .. . Error : .. . .. . .. . Please let me know if i am doing something wrong or if there is a workaround on how to upgrade this nuclide package . Comment : This must be a completely new problem . As of 10 minutes ago I am unable to install nuclide with apm and I am getting this exact same error . Yesterday I was able to install on a VM just fine . Comment : My Google search with this error message brought up 2 results : 1 . This page and 2 . a paste bin from yesterday time unknown . See here : pastebin.com aYtiA1sw http : pastebin.com aYtiA1sw This is clearly a new problem with Nuclide installer updater as of yesterday . Comment : I found this issue : github.com facebook nuclide issues 423 https : github.com facebook nuclide issues 423 Comment : Was able to update to 0.126.0 which got released 3 hrs ago but did receive github.com facebook nuclide issues 313 https : github.com facebook nuclide issues 313 error . .. . Answer : For now I built nuclide manually according to this guide : http : nuclide.io docs advanced-topics building-from-source . It has solved the problem for me .",
"Question : null .. . Answer : I have installed HHVM locally on my Mac OS 10.10 Yosimite MacBook with NginX installed locally . HHVM works fine and I have NginX configured to work with HHVM . The Hack typechecker hh client works fine as well in my Hack project root . I installed Atom and Nuclide...I installed nuclide-server but I keep getting timeout errors when nuclide-server is trying to connect to port 9090 . I tried running nuclide-start-server with the -k flag insecure and it still won t work . I tried it on my Ubunti 14.04 Vagrant box and it didn t work either . Can Nuclide s HHVM features be used locally or do you have to do it remotely because I can t get nuclide-server to work remotely on Vagrant . Thanks",
"Question : I often get this exception trying to start a debugging session on Nuclide . Where .. . will represent the correct path to the packager .. . .. . The server will indicate it s running but it isn t . Running react-native run-ios from the command-line will start its own packager session successfully . I also sometimes don t get this error message but in either case-when I run react-native run-ios a new packager will be started and the Simulator will indicate Runtime is not ready for debugging etc . And the error message always shows up when I restart the packager in Nuclide . On Chrome debugging works although with extremely shaky support for debugger stops stopping at the right line which why I m trying Nuclide . I did get it to work a few times . But it seems unreliable . Any suggestions .. . Answer : Uninstalling and reinstalling Nuclide did the trick",
"Question : null .. . Answer : I imported a NODE.js project inside Nuclide Atom . How is it possible to execute the code in Nuclide",
"Question : When i try to attach hhvm process to nuclide debug interface nothing happened . In the dev console . Please find the below screenshot for more information . enter image description here http : i.stack.imgur.com pzNAm.png .. . .. . lldb is already installed . How can I fix this error .. . Answer : I don t know what the nuclide package s find lldb function does so I can t tell why it is failing . If you have the source to that package you might take a look at what it is looking for . You could try adding the directory that holds the lldb Python module to your PYTHONPATH directly . Then lldb should just load normally without more intervention from nuclide . The lldb driver when invoked with the -P argument will print out the directory containing that module . You might also make sure that : .. . .. . works correctly . It should not give the No module named lldb error . If it does then somehow your lldb isn t installed properly . Comment : You may also need to have lldb in your PATH it s possible nuclide is using lldb -P to find the module which won t work if it can t find lldb .",
"Question : null .. . Answer : Is there any good document video that talks about how to debug a react-native application using Nuclide . Am a newbie . Its my first time app development and first time with React . I did create the project using react-native init . I don t think i found a BUCK file for me to run and debug my app . I also don t see to get how to view the errors in my JS file . I have to run the simulator to see . I run it using react-native run-ios . I tried Nuclide- React Native- Start Debugging . Not sure what this is supposed to do . Sorry if these questions sound silly .",
"Question : null .. . Answer : Installed Nuclide for Atom disabled the linter per their instructions https : nuclide.io docs advanced-topics linter-package-compatibility and also I ve installed the linter per their instructions https : github.com sprintr nuclide blob master README.md installation . Also I ve generated an .eslintrc.js. . .. . .. . ..in my package.json I have the following linters .. . .. . Using Flow .. . @flow var foo : number 123424 Using Flow sometimes works . Half the time Flow works when I start Atom and restart Flow server other times not at all . What can one do to make this feature less flaky and work all the time Using Lint Doesn t ever work . Apparently Lint will work via Diagnostic feature but it doesn t . What steps does one need to take to have linting in Nuclide Thanks I have eslint install globally . v3.2.2",
"Question : null .. . Answer : Trying to use nuclide with atom but I cannot get the debugger to work . I have nuclide installed v0.126.0 . Running on Mac and followed the setup instructions in the docs . I run the RN packager within Nuclide start the debugger and then run react-native run-ios from terminal and lastly enable chrome debugging . I get this error as-if the packager or chrome are not running . Simulator Error http : i.stack.imgur.com 7dgH4.png enter image description here http : i.stack.imgur.com 4Bfao.png If I click on the cog on the debugger I get this output which I can t make sense out of enter image description here http : i.stack.imgur.com Z4rNT.png .. . .. . If I close the debugger within nuclide it runs fine within normal Chrome debugging . Any help would be appreciated lost at this point Comment : is your chrome pointed to debugging url when you run debugger in nuclide Comment : @BilalBudhani Thanks for the reply No I have tried with Chrome not running and with Chrome open on a blank tab only Comment : Pretty much giving up on Nuclide another person on my team couldn t get it to run either",
"Question : I m not able to connect remotely using atom s new nuclide package . I ran npm-install -g nuclide-server and followed the the trouble shooting instructions from the nuclide docs http : nuclide.io docs remote but I keep getting errors . When I run nuclide-start-server on my server I end up this error : .. . .. . In atom when I try to connect I get this error which is pretty much summarized above : .. . .. . Any help is greatly appreciated . Thanks . Comment : Can you open a GitHub Issue for this github.com facebook nuclide https : github.com facebook nuclide The team more closely monitors GitHub Issues than StackOverflow at the moment . Comment : @ssorallen Yeah I added it here : github.com facebook nuclide issues 130 https : github.com facebook nuclide issues 130 .. . Answer : Found the answer to this problem from this post -- No module named pkg resources http : stackoverflow.com questions 7446187 no-module-named-pkg-resources : .. . .. . I encountered the same ImportError today while trying to use pip . Somehow the setuptools package had been deleted in my Python environment . To fix the issue run the setup script for setuptools : .. . .. . wget https : bitbucket.org pypa setuptools raw bootstrap ez setup.py -O - python .. . .. . If you have any version of distribute or any setuptools below 0.6 you will have to uninstall it first . .. . .. . See Installation https : pypi.python.org pypi setuptools 0.9.8 installation-instructions Instructions for further details . FYI : You might need to put a sudo after the pipe . I did . Or put the entire command in quotes with sudo in the beginning .",
"Question : I have installed the latest version of watchman which can be found here : .. . .. . I performed the Install Recommended Packages on Startup and I watched them install after restarting . This is a fresh new install of Atom and Nuclide with the latest version of everything . I have a test project with files added to the Mercurial repository . The repository .hg directory sits at the root of the project . When I open a Diff View into a file Nuclide picks up the previous Mercurial version of that file just fine as I make edits and it shows the comparison between the two . Previous version on the left is shown . So I know that Atom-Nuclide is able to interact with the Mercurial repository . However nothing else seems to be working for Mercurial support . 1 . When I select Toggle Blame on the same file where Diff View is working I get this message : Failed to fetch blame to display . The file is empty or untracked or the repository cannot be reached . 2 . The File Tree Highlighting does not work . No colors on any of the files in any of their mercurial states . 3 . The colored Line Modification Notifications do not show inside of the Atom gutter . 4 . The Added and Removed Lines feature is not showing in the status bar . These features in Atom-Nuclide are the reason why I am interested in trying out Mercurial instead of Git and are big reasons for trying this IDE in general . .. . Answer : The same problem was reproduced on a different distro . I can t be the only one who bumps into this . No business can safely rely on a development-environment where the level of community interest outside of FB cannot support an attempt to claim a Stack Overflow bounty on a question like this . The solution is to wait for better type support and type checking to come to PHP . Numerous RFCs exist to do exactly that and other IDEs will take advantage of this in future versions of PHP .",
"Question : I selected Debugger Launch Attach and Type as React Native and check Start Packager . A Starting debugger progress-bar opens on a right panel but it hangs after a while and nothing happens . enter image description here http : i.stack.imgur.com xuGOJ.png .. . .. . enter image description here http : i.stack.imgur.com VVciu.png .. . Answer : I m using Nuclide debugger iOS project it shows Starting Debugger and progress-bar opens on a right panel . then hit -R in iOS simulator to reload the app the Nuclide debugger starts work",
"Question : I have a small project to test out facebook flow https : flowtype.org . I have purposefully placed some type errors that flow picks up and they are successfully detected when running flow check from the command-line . I would like to display them directly on Atom when viewing the file s but currently it shows 0 errors about 20 in the project when running from command-line . Here is what I ve done : .. . .. . Installed flow with brew .. . Installed Nuclide from the Atom packages settings shown in image below .. . initialized an empty .flowconfig file in the project .. . Initialize each file to flow-check with @flow .. . run flow check from the project directory .. . .. . I have the following OS versions : .. . .. . OSX 10.11 .. . Atom 1.8.0 .. . Nuclide 0.141.0 .. . Flow 0.14.0 .. . .. . Here are my settings for Nuclide flow : Nuclide-flow Atom settings http : i.stack.imgur.com ZDcIM.png .. . .. . Here is what I get when running flow on the command-line : command-line output http : i.stack.imgur.com TNjII.png Here is what I get when viewing file on Atom : enter image description here http : i.stack.imgur.com S9gPH.png .. . Answer : I have actually just made it work by doing the following : .. . .. . update flow to 0.26.0 with brew upgrade flow or sudo brew upgrade flow if you need to .. . disable all linter packages on Atom .. . restart atom shutting the app completely first .. . Restart Flow Server Atom top bar -- Nuclide -- flow -- Restart Flow Server",
"Question : Nuclide supposedly supports error checking http : nuclide.io docs hack but I can t figure out how to set it up . I have a fresh install of Atom .. . I installed Nuclide via apm install nuclide-installer .. . I ve verified Hack is installed correctly by running hh client from my project dir on the commandline and it does report errors .. . I have an .hhconfig in my project root but it s empty no idea what to put inside it .. . Watchman is installed .. . .. . No errors are displayed in the IDE see screenshot . Is there something else I have to do hack screenshot http : i.stack.imgur.com efLBM.png .. . Answer : I suspect that s an installer issue we had experienced a similar incident so the hack package isn t properly installed activated . Could you try building Nuclide from source and see it that fixes the issue for you : https : github.com facebook nuclide building-from-source Comment : I deleted all my packages and then installed from source like you suggested . It installed 36 packages . There s still no error checking . Comment : You are on the right track we just happen to currently have an issue that will be fixed with the next push - verify from Atom dev tool console error cmd+shift+i . Comment : Failed to require the main module of nuclide-debugger-node because it requires an incompatible native module . Run apm rebuild in the package directory to resolve . . Rebuild says Unsupported target version : 0.22.0 . Comment : this has also been fixed by excluding it from the release and will be pushed with the next push .",
"Question : null .. . Answer : I could not find any clear instructions on how to debug run react-native applications with nuclide . What I did try was .. . .. . 1 . Started a react-native packager using npm start .. . 2 . Found the node processes running using ps aux grep node . 3 . Note that here that there is too many node processes here . I just attached it to node node-modules react-native local-cli cli.js start . Obviously this is wrong as my breakpoints are still unresolved . So my question is which node process should I attach my debugger to . I am pretty much giving up on Nuclide as I think there is no real value ."
]
} | [
"yes-answer-long",
"yes-answer-short"
] | web | UNK_RELATION |
ssi@web@208 | ssi -- server-side-includes ssi is a simple interpreted server-side scripting-language used almost exclusively for the web.the most frequent use of ssi is to include the contents of one or more files into a @placeholder page on a web server . | {
"confidence": [
74.33707427978516,
74.33707427978516,
73.92588806152344,
68.37429809570312,
66.76587677001953,
65.18299865722656,
64.5484619140625,
64.5484619140625,
64.1142578125,
64.1142578125,
62.093048095703125,
61.6846923828125,
61.60507583618164,
61.341400146484375,
61.086753845214844,
60.53922653198242,
60.03581619262695,
59.97908401489258,
57.868167877197266,
57.77998733520508,
57.7568244934082,
56.77614974975586,
56.775672912597656,
56.643760681152344,
56.10283660888672,
55.82918930053711,
55.8228874206543,
55.778717041015625,
55.778717041015625,
55.19366455078125,
55.15349578857422,
55.062896728515625,
54.714054107666016,
54.714054107666016,
54.714054107666016,
54.534278869628906,
53.983253479003906,
53.603858947753906,
52.852073669433594,
52.73625183105469,
52.275390625,
52.23603057861328,
51.941192626953125,
51.82521057128906,
51.82521057128906,
51.57752990722656,
51.57752990722656,
51.036231994628906,
50.96000671386719,
50.82139587402344,
50.4608039855957,
50.35914993286133,
50.05760955810547,
50.05760955810547,
49.972686767578125,
49.972686767578125,
49.972686767578125,
49.90776062011719,
48.98860549926758,
48.90802764892578,
48.90802764892578,
48.90802764892578,
48.90802764892578,
48.351722717285156,
48.30291748046875,
48.30291748046875,
48.25091552734375,
48.07261657714844,
47.947509765625,
47.821571350097656,
47.786163330078125,
47.716922760009766,
47.712581634521484,
47.63200378417969,
47.63200378417969,
47.63200378417969,
47.63200378417969,
47.63200378417969,
47.63200378417969,
47.44070816040039,
47.28144073486328,
47.06955337524414,
47.06955337524414,
47.010414123535156,
47.010414123535156,
46.42156219482422,
46.34013366699219,
46.34013366699219,
46.34013366699219,
46.24382781982422,
45.96223449707031,
45.872013092041016,
45.683990478515625,
45.46471405029297,
45.46471405029297,
45.46471405029297,
45.46471405029297,
45.46471405029297,
45.46471405029297,
45.46471405029297
],
"content": [
"I want to configure Server Side Includes SSI in IIS 7.5 .",
"Our CMS uses server-side includes SSI to simplify the publishing of pages .",
"SHTML is a file extension that lets the web server know the file should be processed as using Server Side Includes SSI .",
"Your SSI tag includes ssi navbar.html .",
"Is SSI even supported in dev server",
"In order to improve the maintainability I refactored the pages to use server-side includes SSI so that the common parts are not duplicated .",
"This results in SSI directives being expanded in the second server .",
": .. . .. . Note that ssi on is in the first server along with proxy cache my cache .",
"I would like to activate the Server Side Includes SSI for pages generated from Sling .",
"In that case using frames is your easiest option or take a look at SSI Server Side Includes .",
"For failing 4xx 5xx SSI includes I simply want the SSI include to add the empty string to my page .",
"It looks like SHTML Server Side include HTML SSI which is just a fancy way of saying the server can dynamically inject code at the reference point .",
"The ServerSide Include SSI has been enabled on my server .",
"Related : Configuring IIS 7.5 to enable server-side-includes SSI for the .html extension http : stackoverflow.com q 14135582 1497596",
"If you want SSI includes you should be able to proxy Sling via Apache using mod-proxy or something similar and then interpret the server-side include directives .",
"I m using VS2015 with the built-in IIS Express server.. . .. . .. . Is it possible to enable Server Side Includes SSI eg this sort of thing : .. . .. . I know I can use SSI on full IIS but I can t find any info about using SSI on IIS Express .",
"I want to use an SSI set of pages that I have written but the SSI code is not interpreted by apache .",
"Your server host is supporting SSI in pages that have the .shtml extension .",
"Two folders below root are pages with an SSI include .",
"You can write simple JavaScript code to include parts of your page on load you can enable SSI http : en.wikipedia.org wiki Server Side Includes on your web-server and finally you can use any server-side language to dynamically include chunks of any page for output .",
"If not it will ignore SSI directives in those files .",
"From the MSDN blog post IIS : Notes on Server-Side Includes SSI Syntax KB 203064 Revisited http : blogs.msdn.com b robert mcmurray archive 2010 12 28 iis-notes-on-server-side-includes-ssi-syntax-kb-203064-revisited.aspx dated 2010-12-28 applies to IIS versions 4.0 through 7.5 : .. . .. . .. . .. . More Information on File and Virtual Syntax .. . .. . SSI directives that use file paths can reference files by using a file or virtual path .",
"Or should I use Apache : : SSI",
"Whenever SDI finds an include it will replace it with a SSI tag so the include will be done by the http server and not by the sling engine .",
"I follow the suggestions of -how to document ssi tomcat- however there is not a server directory at my computer and couldn t enable ssi on my tomcat .",
"I have started slinger with : .. . .. . slinger -e -s .. . .. . to enabled the SSI exec command and also SSI in general .",
"This : .. . .. . .. . AddOutputFilter INCLUDES .shtml .. . .. . .. . tells Apache to look in .shtml files for SSI directives .",
"this will work even for SSI",
"What s the reasoning for using SSI",
"The idea is to get and cache an SSI template from the upstream server first and then fill the dynamic parts of the page with SSI sub-requests which are often handled by memcached or another fast in-memory storage .",
"I currently have an html page that uses SSI .",
"Ok so the question is Can I use in Apache SSI files located on another local server",
"But the SSI is still not working .",
"Have a menu as an SSI .",
"My current test SSI :",
"What I am trying to do is get Server Side Includes SSI to work on WAMP Server 2.5 downloaded from here http : www.wampserver.com en for Windows 7 .",
"Separate the file into two parts and create a third SSI which includes both .",
"I m new to Apache SSI but based on some general research it seems that one cannot concatenation strings in SSI .",
"This way nginx will cache backend responses with SSI directives in them and will redo SSI processing on every request caching includes separately if needed .",
"SHTML is server-side scripting .",
"Is it possible to use a server-side include to access files that are outside of the server",
"Why doesn t my SSI work",
"Then the SSI syntax works .",
"I have to get URL and parameters with SSI only with SSI but I can t find any solution .",
"I am looking at the NGINX SSI module and I am wondering if there is a way to block the file option on SSI .",
"Can you post your ssi configuration in nginx",
"The file extension of the file containing SSI code is .shtml .",
"I am trying to include a file using SSI to the output of CGI script .",
"SSI is not ASP -- they re different technologies .",
"I assume you are trying to include this : .. . .. . http : christianstest.info TestingServers ComeRestTest ssi navbar.html .. . .. . You probably just need to remove the leading in the SSI tag .",
"I m using Xampp with Apache 2.2 I want to run .html files and use includes or SSI or PHP to include menus on lots of html files .",
"Server-side includes are platform dependent .",
"The response as cached in the first server doesn t have any SSI directives in it there are already expanded and hence it stays the same all the time .",
"If you want included fragment to be fresh on every request you have to enable SSI only in the first server e.g .",
"There is incredibly little documentation on how SSI directives work",
"SSI is 20 years older thant jQuery .",
"Now I ve checked with the company and SSI is enabled by default .",
"Every further request will use the already cached SSI template .",
"I wish to change color of displayed SSI links on page .",
"Here is my browserSync task : .. . .. . and the SSI task :",
"And it appears my SSI directive does have .shtml .",
"How can I enable SSI at tomcat",
"I have a problem with a query-string in SSI .",
"I want to you Apache 2.2 httpd to SSI include URLs using .. . .. . My problem is if the SSI included page doesnt exist on my App server it responds with a 404 response and a default error page HTML which is then stitched into my page via the include .",
"My website is set up to use SSI and it s been working great .",
"I m trying to use SSI to detect if a client is using IPv6 .",
"What i know that the web Server for Sling is Jetty and the page could not be generated from two servers at the same time : I mean Jetty for normal content und Http Server for SSI .",
"In order to do so I am using Server Side Includes SSI for the layout of the header and footer which currently looks like this : .. . .. . However say I just want to include one HTML file for the header and footer instead of including two HTML files for both the header and footer of my pages .",
"The current one thankfully I can but the SSI includes don t seem to let me",
"In most implementations it s faster than using the SSI because PHP is designed to do all of the processing and parsing of PHP code whereas an SSI has to read your SHTML page after it s written and sift between comments and includes then include all of the components .",
"The header.html goes a little something like this : .. . .. . I am using the SSI include in my html page like below .",
"I got to work on the local environment but when I tried to put it on the testing Apache server I get an SSI error .",
"However the SSI directives don t get processed before serving the error page .",
"Is there any native functionality within Apache SSI to accomplish this",
"I am having troubles with the if-statement of SSI .",
"The SSI itself is working but the if-statement causes trouble .",
"How do I enable SSI though on Apache",
"SSI for Common stuff like header menu etc .",
"I agree we shouldn t be using SSI .",
"I am using ssi and every piece of ssi content I add to the page is just taking down the performance because its making another hdd lookup .",
"I have learned that shtml is html with ssi but I wonder I can set ssi even with html files in httpd.conf of apache : .. . .. . if do so the html files and shtmls are the same",
"I just want to genral info about how ssi work",
"Neither of the above gives an SSI processing error but then again neither condition is met .",
"I can get the server to parse the shtml as PHP using htaccess OR use SSI however I cannot get it to parse it as both .",
"I don t know php yet and the server doesn t run java jsp servlets etc so I ve been told to use SSI i.e .",
"An alternative link on MSDN http : blogs.msdn.com b robert mcmurray archive 2010 12 28 iis-notes-on-server-side-includes-ssi-syntax-kb-203064-revisited.aspx to the same article .",
"However when I try to include a file via SSI it won t work for I use a relative-path .",
"I also have a footer that should be duplicated on each page.I had the idea to use SSI to include the header and footer .",
"Short answer : SSI is going to be a massive pain in the ass ditch it and just use PHP include .",
"But for a web designer working on HTML and CSS wouldn t it make sense if the SSI is enabled in the lightweight pre-instaled ASP.NET development server by default",
"In my site I want to use SSI and am .shtml to do so .",
"Using only server-side-includes I d like to display the full URL at the bottom of each web page .",
"basically for server-side-scripting since I am using a simple web host .",
"Along with browsersync I m working on browsersync-ssi in gulp configuration .",
"what problems using SSI in WebStorm have you faced",
"By using SSI to combine CSS JS will help to speed up website",
"A good example of SSI usage is Adamant Analytics http : datamart.github.io Adamant .",
"I had given up on this but moving the ssi on directive did the trick .",
"wow I did not hear about SSI since a looooong time.. .",
"However on my current site I m using SSI and the following : .. . .. . does not work ."
]
} | {
"confidence": [
113.73826599121094,
94.15937805175781,
91.5052490234375,
91.29594421386719,
88.84052276611328,
87.9478530883789,
87.58773803710938,
87.04261016845703,
86.86605834960938,
86.20764923095703,
84.60836791992188,
84.56524658203125,
84.44690704345703,
84.18304443359375,
83.56632995605469,
83.10304260253906,
82.41127014160156,
80.24020385742188,
79.43934631347656,
79.29517364501953
],
"content": [
"Question : I have learned that shtml is html with ssi but I wonder I can set ssi even with html files in httpd.conf of apache : .. . .. . if do so the html files and shtmls are the same Thanks for your answering Comment : Yes if you activate SSI for the HTML extension it will be the same in fact the extension doesn t matter what matters is how you activated it and to what extension its assigned . https : httpd.apache.org docs 2.4 mod mod include.html .. . Answer : SHTML is a file extension that lets the web server know the file should be processed as using Server Side Includes SSI . It looks like SHTML Server Side include HTML SSI which is just a fancy way of saying the server can dynamically inject code at the reference point . SHTML is server-side scripting . HTML is the language used to define a Web page . It looks like text with instructions on how the web browser should display the page .. . .. . Use static HTML when you want to have static content . Use SHTML if you want to do simple things such as includes . Comment : That does explain what it is but does not answer the question I can set ssi even with html files in httpd.conf of apache if do so the html files and shtmls are the same .",
"Question : I want to configure Server Side Includes SSI in IIS 7.5 . By default the file extension that indicates that a file should be processed as an SSI file is .shtml . However I want to configure IIS so that files with the .html extension are processed as SSI files . This is to enable me to change the footer for multiple .html pages by changing a single file named footer.html . Is this possible and if so are there are any caveats I would also be receptive to suggestions for alternative approaches to changing the footer on multiple HTML pages by changing just a single file . Comment : Related : Use web.config to allow server-side includes in HTML files IIS http : stackoverflow.com q 17688185 1497596 .. . Answer : You can try something likes below . CONFIGURATION SAMPLE .. . .. . The following configuration sample disables the exec command for SSI files in the Default Web Site . C file looks like below .. . .. . You can get more information Server Side Include http : www.iis.net configreference system.webserver serversideinclude .. . .. . For your 2nd Question : .. . .. . You can use Master page .Then all inherited pages will have both headers and Footers . I hope this will help to you . Comment : Thanks Sampath bhai i also found one solution . Comment : @ArvindMehra OK Great .",
"Question : I am working with apache Sling . I would like to activate the Server Side Includes SSI for pages generated from Sling . I have created one example in my localhost throw the apache configuration . It works properly . I should add some properties : .. . .. . How can I apply the configuration Sling What i know that the web Server for Sling is Jetty and the page could not be generated from two servers at the same time : I mean Jetty for normal content und Http Server for SSI . Can I use for example proxy redirection or something like that .. . Answer : If you want SSI includes you should be able to proxy Sling via Apache using mod-proxy or something similar and then interpret the server-side include directives . I d encourage you to also look into Sling Dynamic Includes https : github.com apache sling tree trunk contrib extensions sling-dynamic-include which is a Sling module that makes working with SSI and ESI much easier .",
"Question : How can I import an HTML file within my HTML file I will prepare header.html and footer.html files separately and every file that I want to include them I want to import them into my HTML file . .. . .. . EDIT : I see that solution based on SSI technique . I use Ubuntu and Tomcat 7.0.11 . How can I enable SSI at tomcat .. . Answer : You can include html files using frames or iframes . If you re using a server-side language such as PHP or ASP you can do this without frames using includes . Comment : I want to use just HTML . Comment : In that case using frames is your easiest option or take a look at SSI Server Side Includes . See httpd.apache.org docs 2.1 howto ssi.html http : httpd.apache.org docs 2.1 howto ssi.html Comment : Is there a good tutorial about Tomcat 7 . I follow the suggestions of -how to document ssi tomcat- however there is not a server directory at my computer and couldn t enable ssi on my tomcat .",
"Question : I am using Ganglia-web-frontend http : ganglia.sourceforge.net which is written in PHP . It uses template files to add personal headers footers . I want to use an SSI set of pages that I have written but the SSI code is not interpreted by apache . more clearly ganglia uses tpl new TemplatePower template header.tpl to include my header template file . In my header.tpl file I put : -- include virtual include header.shtml -- which is my included file and which works perfectly with my personal pages scripts . If look to the HTML code that I get in firefox ctrl+U I see that apache has included the SSI zone -- include virtual include header.shtml -- as a commentary and has not interpreded it . I suppose there is something to do with the order in which things are interpreded executed but I cannot find the way to doing it work . Does anyone have an idea I have root access to apache configuration too if needed . Thanks in advance .. . .. . EDIT : .. . .. . Following Sasha s suggestions I have tried to add .. . .. . to etc apache2 httpd.conf but this does not help . I don t get it.. . .. . .. . EDIT 2 : .. . .. . I guess it is maybe a problem with PHP TemplatePower http : templatepower.codocad.com module . But I cannot get it work . I have tried adding also tpl- assignInclude header . header.tpl in ganglia sources but this does not help . .. . Answer : Is Apache configured to preprocess .tpl files as Server-Side Includes If not it will ignore SSI directives in those files . The section on Enabling Server-Side Includes in the mod include documentation http : httpd.apache.org docs current mod mod include.html enabling has details on how to configure this . You ll need to ensure that .tpl is present in the AddType and AddOutputFilter directives . Comment : Thanks for your anser I have tried to add AddType text html .tpl AddHandler server-parsed .tpl AddOutputFilter INCLUDES .tpl to httpd.conf but this does not change . I get the same result.. . Comment : @Danduk82 : You should really push forward AddOutputFilter because that s most easy to integrate . Ensure your PHP s scripts outputs is going through the apache output filter . I didin t see it here when I answered and also I wasn t aware SSI works therein but I know how these work so you should really look for that . Comment : In fact I had to add AddOutputFilter INCLUDES .php so that it gets correctly piped by Apache . Thanks a lot .",
"Question : I have two headers : one to display for a logged in user and one to display when logged out not a member . I also have a footer that should be duplicated on each page.I had the idea to use SSI to include the header and footer . As of now we haven t started much server-side processing and thus don t keep track of logged in logged out users . As such for now I just want to use the page that is including the header to determine which to display . I had the idea to use a PHP file as the header instead of an SHTML file so I could do some processing to determine which header to show . So is it possible to determine which page is calling the include with PHP Am I going about this all wrong If so what solution is more appropriate For example each html page fits this general layout : .. . .. . And in header.php I want something like : Comment : if SESSION logged in include logged in header.php else include visitor header.php Comment : this will work even for SSI I was a little worried that being server-side it would obscure the session . Also my main concern right now is to detect which page is calling the include . Comment : without some code its difficult to say but have you looked at : en.wikipedia.org wiki Server Side Includes http : en.wikipedia.org wiki Server Side Includes Comment : What s the reasoning for using SSI Comment : @Absolute ER it seemed like the right way to include a piece of html code in multiple places . It works excellently for the footer and has really sped up updates . But like I said I m not 100 sure it IS the solution I want . In the end when I m just using the session to determine which header it seems pretty simple but for testing I d like to use the page to determine which header without manually editing each page as I change which pages show what . .. . Answer : So is it possible to determine which page is calling the include with PHP No idea . But if it is possible it will be via SERVER . Put this in your header.php for testing : .. . .. . However if the page is being requested as .html with Server-Side Includes I can t even begin to predict what kind of havoc this is going to play with PHP Sessions . I have doubts that session start will ever be able to set proper headers in this context or if the PHP session cookie will ever be sent to the client or be passed through SSI back to PHP . As far as I am aware concerned SSI should only ever be used to include static content or dynamic-content that does not rely on any sort of interaction with the user including something as basic as-if they re logged in or not . SSI is a kludge between static and dynamic pages and should be referred to as kinda-sorta-dynamic-but-not-really . Short answer : SSI is going to be a massive pain in the ass ditch it and just use PHP include . Edit : Your page would look something like this at the most basic level and is not really any more complex than using SSI . If you took a more MVC-oriented http : www.onextrapixel.com 2012 03 14 a-detailed-overview-of-the-model-view-controller-mvc-coding-structure approach namely the C and V parts it would become more manageable :",
"Question : I want to configure Server Side Includes SSI in IIS 7.5 . By default the file extension that indicates that a file should be processed as an SSI file is .shtml . However I want to configure IIS so that files with the .html extension are processed as SSI files . This is to enable me to change the footer for multiple .html pages by changing a single file named footer.html . Is this possible and if so are there are any caveats I would also be receptive to suggestions for alternative approaches to changing the footer on multiple HTML pages by changing just a single file . Comment : Related : Use web.config to allow server-side includes in HTML files IIS http : stackoverflow.com q 17688185 1497596 .. . Answer : Hey got the answer just needed to surf some more Here is the link where you can configure IIS server to use Server side include for .html pages as its default provided for .shtml but I didnt wanted that . this link is very helpful .. . .. . http : tech.mikeal.com blog1.php server-side-includes-for-html-in-iis7 Comment : Unfortunately the provided link is no longer available . This is why link-only answers can be problematic . Comment : The link is working again .",
"Question : How can I import an HTML file within my HTML file I will prepare header.html and footer.html files separately and every file that I want to include them I want to import them into my HTML file . .. . .. . EDIT : I see that solution based on SSI technique . I use Ubuntu and Tomcat 7.0.11 . How can I enable SSI at tomcat .. . Answer : There are many solutions to this problem . You can write simple JavaScript code to include parts of your page on load you can enable SSI http : en.wikipedia.org wiki Server Side Includes on your web-server and finally you can use any server-side language to dynamically include chunks of any page for output . Your choice depends on how dynamic your web-site is . Comment : I have an HTML file that has a navigation bar . I will cut that navigation code and put it into another file . I just want to import that HTML file from my original HTML file",
"Question : My website is set up to use SSI and it s been working great . However when I try to include a file via SSI it won t work for I use a relative-path . For example the following works .. . .. . But this does not assume that the files exist .. . .. . Is there something I m missing or is there a way I can get more information regarding this error . .. . Answer : Server Side Includes are only processed when a file is loaded from a web server i.e . when you view the web pages in your browser calling them from a URL like http : ... . . When viewing your web pages on your desktop you won t see the includes . Font : http : www.easywebtutorials.com tutorials ssi.html",
"Question : I m using VS2015 with the built-in IIS Express server.. . .. . .. . Is it possible to enable Server Side Includes SSI eg this sort of thing : .. . .. . I know I can use SSI on full IIS but I can t find any info about using SSI on IIS Express . I can t use alternative methods of including snippets eg asp as this code also has to run on non-IIS servers . Comment : IIS Express ships with Server Side Includes module so you might try it out . .. . Answer : It seems that the only way to get SSI to work is to rename my .htm and .html files to .asp . Then the SSI syntax works . Which is a bit of a pain because I need to run the same code on non-IIS servers.. .",
"Question : So I m working with SSI to implement global items like headers and footers etc . basically for server-side-scripting since I am using a simple web host . Now I ve checked with the company and SSI is enabled by default . I even ran a few SSI tests which all came back positive to prove my point . I built a header.html file to be imported into my different pages . The header.html goes a little something like this : .. . .. . I am using the SSI include in my html page like below . For example in home.html and yes I have a handler that also parses .html and .htm -- I tested these files as well for SSI and they passed : .. . .. . I have this at the very top of my body tag . Am I just missing something Or are there any ideas where I could have messed something up Comment : Do you get your header if you browse to yourdomain web includes header.html virtual takes an URL path not a filesystem path . Comment : Yeah I get my navigation links if I go to the link via the url . .. . Answer : Yeah . I think the issue is that you have to get rid of the space just before the so that it becomes : Comment : I lied it worked just fine when I changed it forgot to re-upload the file Thanks a bunch kinda silly I didn t think of that .",
"Question : In IIS 7.5 is it possible to use web.config alone to enable SSI processing for files that have the .html extension Specifically I don t want to use the default SSI extension .shtml . Reason : I don t want to change the extensions . Doing so would lead to broken-links in search-engine results . Also my motivation for doing this in web.config is because this is a shared server . Comment : Related : Configuring IIS 7.5 to enable server-side-includes SSI for the .html extension http : stackoverflow.com q 14135582 1497596 .. . Answer : Presuming that your hoster has enabled SSI s and delegated Read Write permissions for handler mappings then this should work : .. . .. . Whilst we re on the topic Robert McMurray MSFT IIS staffer has a fairly recent refresher blog post all about SSI s here : .. . .. . http : blogs.iis.net robert mcmurray archive 2010 12 28 iis-notes-on-server-side-includes-ssi-syntax-kb-203064-revisited.aspx Comment : Great link I d been looking for something like that blog post . Comment : An alternative link on MSDN http : blogs.msdn.com b robert mcmurray archive 2010 12 28 iis-notes-on-server-side-includes-ssi-syntax-kb-203064-revisited.aspx to the same article . Comment : Thanks a lot",
"Question : null .. . Answer : Our CMS uses server-side includes SSI to simplify the publishing of pages . I ve configured our IIS 8.5 server with a custom 404 error page . However the SSI directives don t get processed before serving the error page . What can I do to fix or work around this",
"Question : Can anyone tell me the difference between Server side include and sling dynamic include and their respective use cases .. . Answer : Sling Dynamic Include is actually a way of using Server Side Includes in Apache Sling or CQ5 . Whenever SDI finds an include it will replace it with a SSI tag so the include will be done by the http server and not by the sling engine . There are some nice slides http : www.pro-vision.de content medialib pro-vision production adaptto 2012 adaptto2012-sling-dynamic-include-tomasz-rekaweki-pdf jcr content renditions rendition.file adaptto2012-sling-dynamic-include-tomasz-rekaweki.pdf about that explains how it works . They provide a very nice use-case for SDI when you need to cache almost all a page but you still need to render a particular resource using sling an account menu in a otherwise static page for example . There s also a blog post available http : www.cognifide.com blogs cq sling-dynamic-include with some more commentary than you can find in the slides . One nice thing about them is that it is configured through the OSGi console so you can turn if off developers might not have Apache installed or specify which resourceTypes includes to be turned into SSI",
"Question : Cant find any info about it. . so I have few question .. . .. . I need to use it to help solve the big problem of cache invalidation .. . .. . 1 if I understand right it need to search in every file it served to find if it need to include other files sound like very unperfomance 2 does it fetch them one after another or all in the same time 3 does it mean that if I have 3 esi in 1 file than my nginx will recive 3 more request for every request to this file 4 is it in use in 2015 cant find any info about it except the minimal nginx docs which dosent give any technical info thanks Comment : Can you post your ssi configuration in nginx Comment : @Marki555 I dont have yet but is it matter I just want to genral info about how ssi work .. . Answer : Based on the documentation of ngx http ssi module http : nginx.org en docs http ngx http ssi module.html it causes all responses going through to be scanned for SSI commands . So it has nothing to do with files or anything . It doesn t matter from where the content is generated plain file reverse proxy fastcgi php this module will analyze the generated content . 1 . I don t think SSI will bring you major performance penalty unless you are serving and analyzing big binary files . You can limit which content is scanned for SSI by MIME type by default only text html . If you need exact figures you need to do performance tests with and without SSI . 2 . If we are talking about including other files from your SSI commands then by default all of them are fetched in parallel so from time perspective it doesn t matter if you include 1 or 3 files . Of course with 3 files your server has more work to do . 3 . Yes having included more files urls means more requests for nginx unless those urls point to some other server . 4 . The SSI module is still present in latest nginx release but I don t know if any big company actually uses it . It all depends on what you want to achieve . I have still not understood how you want to do cache invalidation with SSI . Comment : Just to add-on point 4 presently SSI is widely used on high-traffic websites . The idea is to get and cache an SSI template from the upstream server first and then fill the dynamic parts of the page with SSI sub-requests which are often handled by memcached or another fast in-memory storage . Every further request will use the already cached SSI template . This approach allows to considerably boost the performance of the website by avoiding requesting the back-end the slowest link in the chain most of the time . Comment : thanks about 4 if i have pages with 10 items on it that I cant know which page have which items . so if 1 item get change I can just purge the ssi which been used in all pages so insted of purging 100 diffrents urls I can just purge 1 file",
"Question : What I am trying to do is get Server Side Includes SSI to work on WAMP Server 2.5 downloaded from here http : www.wampserver.com en for Windows 7 . However even after editing the config file to include SSI by these instructions https : httpd.apache.org docs 2.4 howto ssi.html I still could not get them to work . httpd.conf .. . .. . test.shtml located in C : wamp www .. . .. . Thanks in advance for any help : .. . Answer : How to activate SSI - Server Side Includes on WAMPServer .. . .. . This is a simple process as documented in the http : httpd.apache.org docs 2.4 howto ssi.html Apache http : httpd.apache.org docs 2.4 howto ssi.html 5DApache Manual .. . .. . First start WAMPServer .. . .. . Using the wampmanager menus edit the httpd.conf file . wampmanager - Apache - httpd.conf .. . .. . Find this section .. . .. . And change this line .. . .. . to .. . .. . Not just any file is parsed for SSI directives . You have to tell Apache which files should be parsed . You can tell Apache to parse any file with a particular file extension such as .shtml with the following directives : .. . .. . Now find this section of httpd.conf .. . .. . And remove the comments on these 2 lines .. . .. . If you have coded SSI instructions in a file with a .html extension then you would use .. . .. . instead of .shtml .. . .. . Now restart the Apache service so it can pick up these config changes . wampmanager - Apache - Service - Restart Service .. . .. . the icon should go from Green to Orange and then back to Green . If it does not return to Green you have made a mistake edit the httpd.conf file again and find your mistake .",
"Question : So I am learning to properly use SSI and have done so successfully on one site . On a new site I am building on the same server I am getting the error an error occurred when processing this directive when trying to use the tag I have verified that SSI is enabled by using SSI to display the time and date with no problem . I have also verified spelling and that the directory and file are there on the server . Not sure what is wrong can SSI be partly enabled allowing me to display the time with but not allowing include virtual Am I missing something obvious Thanks guys Link to live test . http : christianstest.info TestingServers ComeRestTest index.html .. . .. . Code : .. . Answer : Your SSI tag includes ssi navbar.html . Since that begins with it is parsed as a full path based at the server s document root . http : christianstest.info ssi navbar.html .. . .. . However that s a 404 Not Found . I assume you are trying to include this : .. . .. . http : christianstest.info TestingServers ComeRestTest ssi navbar.html .. . .. . You probably just need to remove the leading in the SSI tag . virtual specifies a URL path relative to the current page but you are pointing it to the root directory of the server . Comment : Yup for some reason removing the leading slash did not fix it but putting in the full file path TestingServers ComeRestTest ssi navbar.html did . Not sure why removing the slash did not work I tried that before as well . I used SSI on another site that was in it s root folder so I got into the habit of putting the leading slash in as this site is on my testing server and in another directory that is what screwed me up . Thanks",
"Question : I m trying to set up a basic working Nginx+SSI example : .. . .. . Nginx config just the relevant parts for brevity : .. . .. . ssi.php : .. . .. . time.php : .. . .. . The include works nicely : .. . .. . Time : 1466710388 Fragment time : 1466710388 .. . .. . Now a second later I would expect the page ssi.php to be still cached but the time.php fragment to be fresh : .. . .. . Time : 1466710388 Fragment time : 1466710389 .. . .. . However it stays completely the same for 5 seconds after which the ssi page is updated along with the fragment : .. . .. . Time : 1466710393 Fragment time : 1466710393 .. . .. . I ve done this before with ESI and Varnish and expect this to work the same with SSI . Am I wrong in assuming this I can t find an answer online for this and have experimented with different cache-control headers but I m fairly sure this is the right way to do this . What am I missing here .. . Answer : There is a problem in your config : you have SSI enabled in both servers due to .. . .. . defined at http level . This results in SSI directives being expanded in the second server . The response as cached in the first server doesn t have any SSI directives in it there are already expanded and hence it stays the same all the time . If you want included fragment to be fresh on every request you have to enable SSI only in the first server e.g . : .. . .. . Note that ssi on is in the first server along with proxy cache my cache . This way nginx will cache backend responses with SSI directives in them and will redo SSI processing on every request caching includes separately if needed . Comment : You sir are awesome I had given up on this but moving the ssi on directive did the trick . Thank you so much .",
"Question : I ve installed ServerSideIncludes module on my computer and it works great with one exception . The line above is causing the problem . I know I must change virtual with file but I have a huge website and it means I must change at least 1000 line of code like this and I am looking for a way to run virtual properly in IIS 7 . I ve been looking for this solution but all I ve been able to find the solution I ve mentioned above . Do you know how to solve this problem without changing the virtual to file .. . .. . Thanks . .. . Answer : This is not really an answer but instead is more a confirmation of your problem . But see one possible way that virtual might work for you at the end of my answer . From the MSDN blog post IIS : Notes on Server-Side Includes SSI Syntax KB 203064 Revisited http : blogs.msdn.com b robert mcmurray archive 2010 12 28 iis-notes-on-server-side-includes-ssi-syntax-kb-203064-revisited.aspx dated 2010-12-28 applies to IIS versions 4.0 through 7.5 : .. . .. . .. . .. . More Information on File and Virtual Syntax .. . .. . SSI directives that use file paths can reference files by using a file or virtual path . The file element is used with files that are relative to the folder of the current document . The following example includes a file in the current folder : .. . The virtual element represents paths that are relative to the base folder of the Web server . The following example includes a file in the scripts virtual folder : .. . .. . .. . .. . Conclusion : The file attribute is used to designate a file location that is relative to the current document . So if that is what is needed in your situation you ll indeed need to change the virtual attribute to the file attribute . There is one possible exception though . The article Server Side Includes http : en.wikipedia.org wiki Server Side Includes Most common directives on Wikipedia shows the following example : .. . .. . This suggests to me that a virtual file path does not necessarily need to begin with a . In the absence of a leading the location of a virtual file is relative to the base folder of the web server . So it appears to me that the file and virtual attributes might behave identically if the files being referenced happen to be located in the base folder or subfolders of the base folder of the web server .",
"Question : null .. . Answer : I am constructing a website using the same HTML layout across every page . In order to do so I am using Server Side Includes SSI for the layout of the header and footer which currently looks like this : .. . .. . However say I just want to include one HTML file for the header and footer instead of including two HTML files for both the header and footer of my pages . Afterwards I would need to add content to the included HTML file . For example say the HTML document below is called layout.html and I want to add it to another HTML file and edit the div tag with the class attribute that has a value of article . Then in another HTML file : .. . .. . Is there any way to add content to the included HTML file without having to include the first HTML file then the content and then include another HTML file afterwards Would client sided scripting with JavaScript for each page be a better solution"
]
} | [
"yes-answer-long",
"yes-answer-short"
] | web | UNK_RELATION |
activemerchant@shopify@79 | activemerchant -- active merchant is an extraction from the e-commerce system @placeholder . | {
"confidence": [
31.891429901123047,
30.140380859375,
29.825044631958008,
29.579952239990234,
29.196365356445312,
28.531349182128906,
28.2879581451416,
28.09270477294922,
27.93195343017578,
27.93195343017578,
27.93195343017578,
27.736753463745117,
27.43805694580078,
26.838665008544922,
26.838665008544922,
26.75305938720703,
26.605215072631836,
26.605215072631836,
26.401527404785156,
26.288415908813477,
26.288415908813477,
25.782623291015625,
25.782623291015625,
25.472415924072266,
25.45745086669922,
25.36962890625,
25.195125579833984,
25.084712982177734,
25.084712982177734,
24.957218170166016,
24.957218170166016,
24.957218170166016,
24.66145896911621,
24.66145896911621,
24.041078567504883,
23.99380111694336,
23.991422653198242,
23.991422653198242,
23.991422653198242,
23.991422653198242,
23.991422653198242,
23.991422653198242,
23.895586013793945,
23.884788513183594,
23.884788513183594,
23.86392593383789,
23.86392593383789,
23.45423126220703,
23.45423126220703,
23.45423126220703,
23.45423126220703,
23.45423126220703,
23.45423126220703,
23.45423126220703,
23.45423126220703,
23.45423126220703,
23.351119995117188,
23.351119995117188,
23.351119995117188,
23.320627212524414,
23.243974685668945,
23.23308563232422,
23.136611938476562,
23.136611938476562,
22.95175552368164,
22.905975341796875,
22.905975341796875,
22.838783264160156,
22.68108367919922,
22.68108367919922,
22.68108367919922,
22.68108367919922,
22.64530372619629,
22.5535888671875,
22.5535888671875,
22.5535888671875,
22.43199348449707,
22.360939025878906,
22.360939025878906,
22.360939025878906,
22.360939025878906,
22.360939025878906,
22.360939025878906,
22.360939025878906,
22.360939025878906,
22.360939025878906,
22.348003387451172,
22.348003387451172,
21.922746658325195,
21.922746658325195,
21.922746658325195,
21.560527801513672,
21.285852432250977,
21.285852432250977,
21.285852432250977,
21.257978439331055,
21.257978439331055,
21.257978439331055
],
"content": [
"Is there a way using active merchant or",
"I use active merchant to receive money .",
"I m trying to integrate Paypal Adaptive checkout using Active Merchant https : github.com activemerchant active merchant and active paypal adaptive payment https : github.com jpablobr active paypal adaptive payment gem .",
"I can make one off payments using Active merchant .",
"i need to add new gateway to activemerchant .",
"I use code from tutorial : Active Merchant Tutorial https : richonrails.com articles credit-card-processing-with-active-merchant .. . .. . payment.rb .. . .. . initializers activemerchant.rb .. . .. . GATEWAY ID and GATEWAY PASSWORD data I store in .env file .",
"so it looks like a simple workaround as suggested by @bkunzi01 .. . .. . i thought that active merchant already used stripe in its ActiveMerchant : : Billing : : StripeGateway file but it doesn t .",
"ActiveMerchant has a pretty dumb documentation for a Check object s attributes http : activemerchant.rubyforge.org classes ActiveMerchant Billing Check.html and I m not from the US .",
"Here for payments they are using Active Merchant gem for Paypal integration .",
"Does Active Merchant have any mechanism to encrypt this card number",
"I just need to know how to do it through Active Merchant .",
"Can i change default currency of active merchant",
"Active-Merchant doesn t have any API for retrieving details of any existing transaction from authorized.net.I have seen authorized.net provides an API getTransactionDetailsRequest for that but active-merchant doesn t .",
"I am using Active Merchant gem to handle payments through the site .",
"At first I don t feed in the brand and leave it to active merchant to find it .",
"Since our system is already designed around active merchant there will be quite a bit of refactoring needed to switch over to the Braintree gem .",
"Also I would like to be able to create a Paymill subscription using Active merchant .",
"Please do NOT use Active Merchant if you don t have the proper PCI certifications .",
"I upgraded activemerchant gem to 1.47.0 and changed the code in load billing method in the below controller from .. . .. . to .. . .. . and in the same way @address too .",
"Activemerchant works fine with authorize.net and paypal .",
"The symbol that indicates the AuthorizeNetGateway changed in activemerchant .",
"I planned to use ActiveMerchant but I found some blogs that says ActiveMerchant doesn t support recurring-billing from Paypal .",
"I planned to use ActiveMerchant but I found some blogs that says ActiveMerchant doesn t support recurring-billing from Paypal .",
"Install the activemerchant http : activemerchant.org gem : .. . .. . gem install activemerchant .. . .. . .. . 4 .",
"What error I always get is Error 87 - Transactions of this market type cannot be processed on this system mentioned in ActiveMerchant documentations .",
"so i am following steps given in https : github.com activemerchant active merchant wiki contributing .",
"ActiveMerchant currently isn t compatible with v.zero .",
"I can t get cybersource to work with activemerchant .",
"When the ActiveMerchant gem posts an ssl request e.g .",
"I have problem with validate credit-card details using Active Merchant gem .",
"My site is written in Ruby on Rails and I m using the active merchant gem to interface with PayPal .",
"I need to know how to pass a tax amount to PayPal Express Checkout using Active Merchant and rails .",
"I m using ActiveMerchant gem https : github.com activemerchant active merchant for Paypal express-checkout in my rails app .",
"I am using ActiveMerchant : : Billing : : AuthorizeNetGateway http : www.rubydoc.info github Shopify active merchant ActiveMerchant Billing AuthorizeNetGateway for authorize.net payment .",
"Question : I planned to use ActiveMerchant but I found some blogs that says ActiveMerchant doesn t support recurring-billing from Paypal .",
"I m in the process of switching from a gateway implemented in ActiveMerchant to the Braintree gateway .",
"In fact most of the ActiveMerchant gateways integrations are with Shopify in mind .",
"Are there any good tutorials on how to connect paypal to activemerchant",
"But in the activemerchant documentation they initiate it in right before the payment .",
"Read the PayPal documentation as well not just ActiveMerchant",
"Im running through a weird issue with ActiveMerchant .",
"I have activemerchant 1.16.0 and rails 3.0.5 .",
"You can use ActiveMerchant for recurring-billing with this http : rayvinly.com articles 2009 02 20 paypal-recurring-billing-with-activemerchant-in-ruby-on-rails plugin though keep in mind that it is not officially a part of ActiveMerchant and therefore is subject to break if ActiveMerchant changes how it handles certain things .",
"we are using rails4 activemerchant 1.47.0 .",
"I ve setup all the credentials for activemerchant .",
"This is my payment.rb .. . .. . This is my activemerchant.rb .. . .. . Check here https : richonrails.com articles credit-card-processing-with-active-merchant",
"I am trying to build a basic code to communicate with PayPal s gateway using active merchant .",
"I m using Activemerchant to integrate express-checkout in my eCommerce site .",
"Hi I m Integrating Paypal express-checkout using Activemerchant .",
"I have a Rails application which uses the ActiveMerchant gem .",
"I want to merge my files in the activemerchant local repository .",
"Allowed payment types are regular mailing and ActiveMerchant checks ACH via Authorize.Net .",
"I was integrated authorize.net with ActiveMerchant : : Billing : : AuthorizeNetGateway and It s working successfully .",
"I don t know how to change URL in activeMerchant for authorize.net gateway .",
"Make sure you have activemerchant version not less than 1.12.0 .",
"I can t seem to get activemerchant to load using Bundler .",
"I m using ActiveMerchant https : github.com activemerchant active merchant I m trying to Integrate PayPal using express-checkout and Adaptive Payment .",
"rubydoc.info github Shopify active merchant ActiveMerchant http : www.rubydoc.info github Shopify active merchant ActiveMerchant Billing StripeGateway",
"According to this https : github.com activemerchant active merchant issues 1584 they will drop support for recurring payment in ActiveMerchant v2",
"Also when they have their merchant-account be sure to get all of the payment-gateway details you will need to to ensure that Activemerchant will play nicely with it .",
"ActiveMerchant is the way to go .",
"You can also find here rubydoc.info github Shopify active merchant ActiveMerchant http : www.rubydoc.info github Shopify active merchant ActiveMerchant Billing CreditCard",
"As per the code-review I did mostly the code is written based on this railscast http : railscasts.com episodes 145-integrating-active-merchant .",
"My current thinking is that my best compromise right now is to maybe leverage Ruby s Active Merchant to do just the payment-processing .",
"Call Merchant Service Provider .",
"I have put logging in to confirm that I am passing the correct login password to activemerchant .",
"Julian is right you should not use ActiveMerchant except if you have the proper PCI certifications .",
"However ActiveMerchant does not support all features Braintree offers such as recurring-billing github.com activemerchant active merchant wiki https : github.com activemerchant active merchant wiki gatewayfeaturematrix features-by-gateway .",
"https : github.com activemerchant active merchant issues 1912",
"Using ruby 2.1.2 rails 4.1.6 activemerchant 1.56.0",
"Maybe this helps if you can t get it to work with ActiveMerchant .",
"Sorry please replace Paypal with ActiveMerchant in the previous comment .",
"I think ActiveMerchant used to have something like this : .. . .. . See this answer Does ActiveMerchant support Subscription Based transaction http : stackoverflow.com questions 4154302 does-activemerchant-support-subscription-based-transaction .. . .. . Also see this : https : github.com activemerchant active merchant blob master lib active merchant billing gateways paypal express.rb .. . .. . https : github.com activemerchant active merchant blob master lib active merchant billing gateways paypal paypal recurring api.rb",
"I am trying to integrate paypal-express-checkout with my rails 4 app using active merchant gem .",
"For subscription use Active Merchant with stripe where now user pay 50 right now and payment done successfully .",
"Active merchant supports recurring payments for some of its gateways https : github.com Shopify active merchant wiki GatewayFeatureMatrix .",
"So usually as a normal application made using active-merchant using any payment-gateway we provide a basic form to fill out the attributes : .. . .. . as specified in the documentation here http : www.rubydoc.info github Shopify active merchant ActiveMerchant Billing CreditCard .",
"Has anyone used the ActiveMerchant Stripe gateway to process recurring subscription payments",
"Stripe implementation at ActiveMerchant doesn t support recurring subscription payments .",
"I have foolowing problem with some gem : activemerchant 1.34.1 .",
"So to fix the issue on your rails app update the activemerchant gem version .",
"Modify Gemfile and set the active merchant gem version with gem activemerchant 1.50.0 .. . 2 .",
"Run bundle update to force it to use the latest version of activemerchant gem .",
"The uninitialized constant ActiveMerchant : : Billing : : CreditCard : : Validateable issue is with the version of active utils gem .",
"Does this sound like something that could be accomplished using Activemerchant",
"The two I know of are using ActiveMerchant or the paypal recurring gem but will they satisfy these requirements",
"Remeber : login is NOT the username but the Cyberspace merchant id .",
"Yes I know about the cyberspace merchant ID .",
"However after running bundle update activemerchant and restarting my Rails server I m getting and uninitialized constant ActiveMerchant : : Billing : : PaypalExpressGateway error .",
"Please kindly add github.com activemerchant active merchant issues 1912 https : github.com activemerchant active merchant issues 1912 link In your answer .",
"I am seeing ActiveMerchant with PaypalRecurringApi and PaypalDigitalGoodsGateway -- do these now make ActiveMerchant usable for getting a recurring subscription for a freemium model web site",
"I red this post very very carefully .. . .. . setting tax amount in Active Merchant PayPal Express Checkout http : stackoverflow.com questions 1550072 setting-tax-amount-in-active-merchant-paypal-express-checkout rq 1 and I understood my mistakes .",
"You can inherit from ActiveMerchant : : Shipping : : Location and include ActiveModel : : Model and or other ActiveRecord modules you desire .",
"I found that this module is from activemerchant so I installed that in my gemfile instead of this and now my app starts .",
"And there is many old tutorials from 2008 to 2011 trying to achieve the recurring communication today deprecated at activemerchant .",
"Probably Braintree s implementation in activemerchant is outdated because Braintree ruby gem doesn t require it .",
": : EXPRESS GATEWAY ActiveMerchant : : Billing : : PaypalExpressGateway.new login : ENV PAYPAL USERNAME password : ENV PAYPAL PASSWORD signature : ENV PAYPAL SIGNATURE",
"I have created a test account with Authorize.net and am using ActiveMerchant to process credit-card payments for a website ."
]
} | {
"confidence": [
44.66953659057617,
43.68113708496094,
41.67462921142578,
41.665992736816406,
40.000240325927734,
38.73845291137695,
38.32399368286133,
37.45050048828125,
35.948055267333984,
35.0762825012207,
34.59767150878906,
34.407554626464844,
34.16041564941406,
33.87720489501953,
33.29369354248047,
32.87504959106445,
32.270599365234375,
32.17103576660156,
31.449392318725586,
31.128158569335938
],
"content": [
"Question : I am using Active Merchant gem to handle payments through the site . But now i want to make these payments recurring on a monthly basis . Is there a way using active merchant or subscription controller.rb .. . .. . subscription.rb model .. . .. . production.rb environment .. . Answer : I think ActiveMerchant used to have something like this : .. . .. . See this answer Does ActiveMerchant support Subscription Based transaction http : stackoverflow.com questions 4154302 does-activemerchant-support-subscription-based-transaction .. . .. . Also see this : https : github.com activemerchant active merchant blob master lib active merchant billing gateways paypal express.rb .. . .. . https : github.com activemerchant active merchant blob master lib active merchant billing gateways paypal paypal recurring api.rb Comment : but how do i use it where do i implement it in my case Comment : Seems you can create an action in one of your controllers require ActiveMerchant then build the request with your product information . Comment : after research i think paypal recurring is deprecated . Thus i have now implemented the paypal recurring gem which does the job nicely .",
"Question : I can t get cybersource to work with activemerchant . Activemerchant works fine with authorize.net and paypal . I am attempting to test it from the console since it failed in the site . This is the error that I am getting back : .. . .. . Any advise here would be appreciated Thanks .. . .. . Rob . ------- here is the fake cc info ------ .. . .. . Also here is the generated XML : edited out the private info .. . .. . NEW INFO : .. . .. . Interestingly enough if I take the XML above with the correct merchant ID etc . And use curl to process it through the production gateway I get this : .. . .. . Roberts-MacBook-Air : documents rlittle curl --header content-type : application soap+xml --data @testxml2.xml https : ics2ws.ic3.com commerce 1.x transactionProcessor .. . .. . So it must be an xml-parsing issue in the gem Comment : I am also facing a similar issue . I don t understand why the CYbersource is sending a 500 instead of something more meaningful . Can you post the code you are using for generating the credit-card . It might help in some debugging . Comment : Also in password field u need to use the transaction key . Comment : Yes I am using the transaction key as well as the Cyberspace merchant id thanks . .. . Answer : Thanks for the help . I contacted cybersource they were very helpful . Tonight it just started to work so I guess they fixed something on their end .",
"Question : I am new to the rails world and am in the process of setting up a small rails app for a client . One of the requirements is that the user enters their credit-card which gets charged for a specified amount . I haven t had much experience with payment systems . I believe active merchant gem can be used for this purpose but how does actually charging the card work out and for testing purpose will I be able to charge a dummy account From your experience is it safe to go with a provider like paypal Comment : I think this question is more about payment system in general rather than in rails . Comment : I don t know why people down vote ok questions . Comment : @Codeglot agreed . I think unfortunately some people just like to troll or be over-pedantic . .. . Answer : You should checkout ActiveMerchant http : www.activemerchant.org . FYI Peepcode has a post on this : .. . .. . http : peepcode.com products activemerchant-pdf Comment : Don t forget that you would need to comply with PCI-DSS requirements Comment : getting that peepcode . seems helpful . thanks . Comment : ActiveMerchant is the way to go . Be aware though that the biggest hurdle to online payments is actually getting a merchant-account with a bank . If your client doesn t already have a merchant-account with their bank this allows them to accept credit bard payments then have them start that right away as it takes time to get everything approved assuming that they can it is not always easy . Also when they have their merchant-account be sure to get all of the payment-gateway details you will need to to ensure that Activemerchant will play nicely with it . Comment : I am recommending braintree to the client as I ve heard good things about it . I m also assuming that braintree plays well with activemerchant Comment : The peepcode link doesn t work anymore .",
"Question : I can t get cybersource to work with activemerchant . Activemerchant works fine with authorize.net and paypal . I am attempting to test it from the console since it failed in the site . This is the error that I am getting back : .. . .. . Any advise here would be appreciated Thanks .. . .. . Rob . ------- here is the fake cc info ------ .. . .. . Also here is the generated XML : edited out the private info .. . .. . NEW INFO : .. . .. . Interestingly enough if I take the XML above with the correct merchant ID etc . And use curl to process it through the production gateway I get this : .. . .. . Roberts-MacBook-Air : documents rlittle curl --header content-type : application soap+xml --data @testxml2.xml https : ics2ws.ic3.com commerce 1.x transactionProcessor .. . .. . So it must be an xml-parsing issue in the gem Comment : I am also facing a similar issue . I don t understand why the CYbersource is sending a 500 instead of something more meaningful . Can you post the code you are using for generating the credit-card . It might help in some debugging . Comment : Also in password field u need to use the transaction key . Comment : Yes I am using the transaction key as well as the Cyberspace merchant id thanks . .. . Answer : I don t know the problem exactly but I will tell you how I got it to work finally . Remeber : login is NOT the username but the Cyberspace merchant id . Comment : Yes I know about the cyberspace merchant ID . My problem seems to be parsing . Still not working for me .",
"Question : I m in the process of switching from a gateway implemented in ActiveMerchant to the Braintree gateway . I noticed that there was a braintree gateway in ActiveMerchant and there is also a braintree ruby gem by braintree . Since our system is already designed around active merchant there will be quite a bit of refactoring needed to switch over to the Braintree gem . Is there anything you can t do with the ActiveMerchant Braintree gem that you can in the Braintree gem What advantages does using the Braintree gem have over the ActiveMerchant Braintree gem Thanks in advance .. . Answer : I work at Braintree . You can always get in touch with our support team https : support.braintreepayments.com if you have more questions . The ActiveMerchant gem uses an outdated integration method to integrate with Braintree . It may have different PCI compliance implications than a v.zero integration https : www.braintreepayments.com v.zero as well as lacking new features of the Braintree API . Until ActiveMerchant is upgraded I d suggest using the Braintree gem directly . Comment : Is this still the case Comment : I work at Braintree . The ActiveMerchant gem now supports nonces with Braintree so as long as you pass a payment method nonce instead of a credit-card number when creating a transaction or payment method the PCI compliance implications are the same as a direct Braintree integration using nonces . However ActiveMerchant does not support all features Braintree offers such as recurring-billing github.com activemerchant active merchant wiki https : github.com activemerchant active merchant wiki gatewayfeaturematrix features-by-gateway . Comment : @JordanBrough see Jessica s comment .",
"Question : When i charge credit-card using form it throws validation error The credit-card information you provided is not valid . Please double check the information you provided and then try again . Any solution This is my payment.rb .. . .. . This is my activemerchant.rb .. . .. . Check here https : richonrails.com articles credit-card-processing-with-active-merchant Comment : just as suggestion for refactoring your process method pastebin.com 7qEkNUau http : pastebin.com 7qEkNUau .. . Answer : You also need to provide credit-card brand name as Comment : You can also find here rubydoc.info github Shopify active merchant ActiveMerchant http : www.rubydoc.info github Shopify active merchant ActiveMerchant Billing CreditCard Comment : its not working @bipashant Comment : are you still getting same error Comment : yes same error : Comment : Can you try type instead of brand",
"Question : I am developing Rails 4 application where user can subscribe one time pay with application . For subscription use Active Merchant with stripe where now user pay 50 right now and payment done successfully . Below code : .. . .. . Now my issue I want to deduct payment as per user country wise . As per below country and payment . So how can i set currency and payment country wise . Any one have a idea in it Thanks .. . Answer : I am not entirely clear as to what you re seeking but from what I understand you re trying to charge a specified price per sub based on country . From what I have read you shouldn t need to have it determine the country of origin as the gem charges in U.S . currency and the card company should in theory automatically convert it to that price . --Edit-- .. . .. . Okay after I did some digging around it looks as though I was slightly incorrect . If you managed to do what you re trying to do you will get this error response.message : The transaction currency specified must be the same as previously specified . .. . .. . The default currency of the Active Merchant currency is USD . When the transaction goes through it will go through as a USD charge and you can t actually change it when you add the purchase . Therefore you have to change it before it is set to the purchase method . Since you are basing it on a subscription which requires a sign up then you can set the user to have a default country since you have to collect their private information anyway to have a billing address . This way the option is predefined and you just use your currency converter before applying an item to the cart . Comment : Ok Thannks @tommy for response . Can i change default currency of active merchant means for US user USD for India user INR . means Runtime . Comment : Depends on the Gateway you choose to use . Here is the documentation of Stripe along with the supported currencies . rubydoc.info github Shopify active merchant ActiveMerchant http : www.rubydoc.info github Shopify active merchant ActiveMerchant Billing StripeGateway",
"Question : I am creating a Rails 3.2 application where I use Paymill to handle payments . I can make one off payments using Active merchant . The problem with this is I cannot find a way to send the name of the buyer and the email-address so the Paymill Client is incomplete . Also I would like to be able to create a Paymill subscription using Active merchant . Is this possible I know there is a Javascript version of the payment system and it works . Problem is I do not want to use Javascript only ruby . I have used this guide : How to make a payment via Paymill using Ruby http : stackoverflow.com questions 15089973 how-to-make-a-payment-via-paymill-using-ruby .. . .. . Thankful for all help .. . Answer : Julian is right you should not use ActiveMerchant except if you have the proper PCI certifications . It seems you want to do something like this : .. . .. . 1 Create a client object passing the name description and email as parameters . See this : https : www.paymill.com de-de dokumentation referenz api-referenz create-new-client .. . .. . 2 Create a payment method object passing the client as parameter and the token retrieved by the JavaScript bridge : https : www.paymill.com de-de dokumentation referenz api-referenz create-new-credit-card-payment-with .. . .. . 3 Make a new transaction passing the payment method object : https : www.paymill.com de-de dokumentation referenz api-referenz create-new-transaction-with .. . .. . And to create a subscription you need to have an offer object and a client with a valid payment method : https : www.paymill.com de-de dokumentation referenz api-referenz create-new-subscription",
"Question : I was working to make payments through Stripe Gateway through Active Merchant gem on a Rails 4 application . I came along this script http : stackoverflow.com questions 36498984 can-i-pass-different-currency-in-active-merchant-with-stripe-in-rails-4-applicat and made a similar script by also watching some other resources as follows : .. . .. . but this script generates an error with the following error-log : .. . .. . Can you suggest a workaround for this error Comment : Do you have the stripe gem installed Post your gem file when you get a chance . Comment : hey thanks.. . i had the gem but didn t require it . thanks for the help : Comment : Thank me with an upvote lol anytime Comment : haha.. . did that : P .. . Answer : so it looks like a simple workaround as suggested by @bkunzi01 .. . .. . i thought that active merchant already used stripe in its ActiveMerchant : : Billing : : StripeGateway file but it doesn t . just included require stripe at the top of the script and transaction was successful :",
"Question : I m trying to research how to add a subscription based pay model on an existing site of mine but am running into a lot of conflicting information and caused me to be a bit lost . All I need is a very simple way to set up recurring-billing per month by credit-card . I just need a simple solution but am having a hard time finding the best practices of setting it up . So far I understand that this is supported by Paypal s Website Payment Standards option . I just have a few questions regarding how I should implement it : .. . .. . First does Paypal require a user to register for recurring-billing with Website Payment Standard I planned to use ActiveMerchant but I found some blogs that says ActiveMerchant doesn t support recurring-billing from Paypal . is this true I found the SASS Rails Kit by railskits.com which says it supports recurring-billing with Paypal s Website Payments Standard . If I purchased this would the code be clear enough to understand and implement in my own site or is it kind of packaged deal for starter sites and not existing sites I found a lot of blog with help with recurring-billing with ActiveMerchant but using Paypal s Express Checkout . I read about Express Checkout on the Paypal site but I still can t quite understand what it is and how it s different from Website Payment Standard . Can anyone explain this in a simple way If anyone could answer even just one of these questions I d be very grateful By the way before it gets suggested I have watched all of Ryan Bates Paypal screencasts about Paypal which are great for basics or buying items in a shopping cart but I don t understand how it should work with recurring-billing . Also it seemed like he skipped some important steps in the video e.g . the Paypal docs says after your app receives an IPN you need to send back a confirmation of reception to Paypal but Ryan does not do this in his screencast . I m just trying to make sense of all this .. . Answer : First does Paypal require a user to register for recurring-billing with Website Payment Standard .. . .. . With Website Payment Standard you direct your customers to fill out their information on paypal s site . to me that s kind of cheesy but your mileage may vary . If you are going to be making some money it s well worth integrating it into your site and upgrading to Website payments Pro imo . I planned to use ActiveMerchant but I found some blogs that says ActiveMerchant doesn t support recurring-billing from Paypal . is this true .. . .. . It doesn t out of the box but you have to create a new Module class that gets added into Active Merchant plus the views and really it s a lot of work . No should say to you that it s easy to do because they are either liars or really good at programming . I found the SASS Rails Kit by railskits.com which says it supports recurring-billing with Paypal s Website Payments Standard . If I purchased this would the code be clear enough to understand and implement in my own site or is it kind of packaged deal for starter sites and not existing sites .. . .. . Sure it may be clearer but if i recall they use a referential transaction to fake recurring-billing as of this august when i wrote my solution . As for existing sites you may have to gerry rig it into your existing app or create it around it . TBH the 2XX price tag scared me off . I found a lot of blog with help with recurring-billing with ActiveMerchant but using Paypal s Express Checkout . I read about Express Checkout on the Paypal site but I still can t quite understand what it is and how it s different from Website Payment Standard . Can anyone explain this in a simple way .. . .. . Paypal Express requires you to have your own merchant-account . A merchant-account is where your money will end up and is the only for your customer s bank account to speak to your bank account easily . Website Payments Standard uses Paypal s own merchant Account through your Paypal Account in order to pay you . Again imo pay the 30 bucks and go with Website Payments Pro . Comment : Is there any update on this for 2014 I am seeing ActiveMerchant with PaypalRecurringApi and PaypalDigitalGoodsGateway -- do these now make ActiveMerchant usable for getting a recurring subscription for a freemium model web site",
"Question : I have activemerchant 1.16.0 and rails 3.0.5 . I am trying to build a basic code to communicate with PayPal s gateway using active merchant . I get the following error : .. . .. . This error propagates from the gateway.authorize call . Any idea what s wrong with my setup Thanks . Comment : A workaround hack may be to put require stringio at the top of your code but you shouldn t need to do this . Comment : Hey thank you so much for the answer . This worked for me but why is this happening and is there any other good fix Is this some problem with the version of the gem i am using Is anyone else facing this problem Comment : I don t know . I ll add the ruby-on-rails tag to this question and see if anyone else works it out . Comment : Still no response Let s see if there s more interest now there s a bounty on it . .. . Answer : According to the question it doesn t work when the code is by itself but works when require stringio is added . My suspicion is that ActiveMerchant is unit-tested but for some reason the dependency on StringIO isn t detected by those unit tests possibly because other parts of the unit-testing code indirectly require s stringio . One thing I recently found out was that require yaml gives you the stringio library as a side effect : .. . .. . and it wouldn t be hard to imagine unit tests for ActiveMerchant or other parts of Rails requiring yaml . However this is only speculation . I haven t checked as I don t use Rails .",
"Question : I am creating a Rails 3.2 application where I use Paymill to handle payments . I can make one off payments using Active merchant . The problem with this is I cannot find a way to send the name of the buyer and the email-address so the Paymill Client is incomplete . Also I would like to be able to create a Paymill subscription using Active merchant . Is this possible I know there is a Javascript version of the payment system and it works . Problem is I do not want to use Javascript only ruby . I have used this guide : How to make a payment via Paymill using Ruby http : stackoverflow.com questions 15089973 how-to-make-a-payment-via-paymill-using-ruby .. . .. . Thankful for all help .. . Answer : Please do NOT use Active Merchant if you don t have the proper PCI certifications . The Javascript version is the only way to use our service and profiting from our PCI compliance . That being said please take a look at the following paymill-ruby-wrapper which has been provided by a third party developer - maybe it serves your purpose : https : github.com dkd paymill-ruby .. . .. . Best regards Julian .. . .. . disclaimer : I work at PAYMILL",
"Question : null .. . Answer : I am trying to integrate payumoney payment-gateway to my rails application . I added the gem active merchant payu in but after this am unable to start the app..and getting this console error warning : already initialized constant APP PATH . . I found that this module is from activemerchant so I installed that in my gemfile instead of this and now my app starts . As per docs this is how we setup activemerchant https : github.com activemerchant active merchant tree f46ea7f4109d8fa3936b9e278193624a518e69c5 .. . .. . So for payu I changed the gateway as below but what should i pass instead of : login and : password in below code For payumoney what we all have is .. . .. . Merchant ID Merchant Key Merchant Salt .. . .. . I can t find enough documentation on it anywhere..Could someone shed some light into this topic Comment : Did you get any solution to this or proper documentation to integrate payumoney with ror Comment : @dips nope.... . Comment : @RSB no mate..Contacted them but they told me they dont have docs for ruby..I think we need to figure out our own solution . Didnt got time to figure that out so still postponed and going to try ccavenue..If you found the solution please do post here. . Comment : I am also struggling with it they have ruby docs but its incomplete . Comment : HI guys i contacted the team and they told me to try gem payuindia : git git : github.com payu-india payuindia.git and refer this link : github.com payu-india payuindia https : github.com payu-india payuindia Also make sure that you are posting one more mandatory parameter service provider with value payu paisa . If problem still persist you can contact them via techsupport@payumoney.com .",
"Question : I m trying to integrate Paypal Adaptive checkout using Active Merchant https : github.com activemerchant active merchant and active paypal adaptive payment https : github.com jpablobr active paypal adaptive payment gem . I ve exact same problem which is posted here https : stackoverflow.com questions 16239138 the-receiver-does-not-accept-payments-in-this-currency .I ve done the process mentioned in the accepted answer but still getting the same issue . I m setting the currency code as GBP but during checkout I m getting following error in my nginx error-log . the receiver ....... . does not accept payments in this Currency . I ve enabled my GBP in my paypal account but still getting the same error.I ve no idea what I need to do to have the successful transaction . Thank you Any suggestion will be appreciated . .. . Answer : You need to ensure the receiver is also accept GBP as their primary currency on their PayPal account .",
"Question : I am trying to integrate ActiveMerchant in my rails app . I have certain plans that if subscribed limit the user access . As you all guyz might be knowing what a subscription based app is I am not going into explaining my app . Please suggest me some examples for making this happen . I have already viewed the railscasts episodes 141 through 146 but Ryan has only demonstrated Paypal Web Payments Standard and Paypal Web Payments Pro . I have also read a bunch of blogs but it didn t help . Please help . Thanks in Advance . Comment : This related post might also be helpful for you . stackoverflow.com questions 1683929 http : stackoverflow.com questions 1683929 paypal-recurring-billing-and-activemerchant .. . Answer : Active merchant supports recurring payments for some of its gateways https : github.com Shopify active merchant wiki GatewayFeatureMatrix . Each has slightly different syntax https : github.com Shopify active merchant blob master lib active merchant billing gateways authorize net cim.rb but can accomplish what you want . I would recommend however you pick your payment-gateway and use a specific APi for it . AM lags behind somewhat from my experience and recurring payments are not its primary goal . There are also services out there that will handle all the gateway interaction for you and you just deal with there API . It makes it easier to accept payment and handle Pci DSS requirements in the case of 3rd party hosted payment pages . Comment : I want to use Paypal as a Gateway also I want Paypal to handle the transaction i.e . If user clicks on the subscribe button he is taken to paypal s site and all the transaction is carried out there and if successful an IPN is sent to my site and after the transaction is completed the user comes back to my site I think this is somewhat like Paypal Web Payments Standard . Is this possible Comment : This can be handled outside of AM its on paypals website . Comment : But i want to do it using Paypal . Is it possible please recommend something . Comment : Sorry please replace Paypal with ActiveMerchant in the previous comment .",
"Question : Im running through a weird issue with ActiveMerchant . I m using activemerchant to validate a credit-card number and its been working fine . However I found that it somehow doesn t seem to validate this card number 3088023605344101 also most of the validation issues arise when I input a card number of the type JCB . Here is what my code looks like .. . .. . Here is an example from my console which correctly validates the card . while this seems to be working fine here is an example which that throws brand error . At first I don t feed in the brand and leave it to active merchant to find it . So I feed brand .. . .. . I have validated the card numbers from different site and they seem to be just fine . The sites I validated the card from are freeformatter http : www.freeformatter.com credit-card-number-generator-validator.html and igo http : names.igopaygo.com credit-card validate .. . .. . Im not sure what the problem is but if anyone knows why this is happening then do let me know . .. . Answer : The issue I raised on active merchant github suggested that they use this regex 35 28 29 3-8 d d 12 to validate if the card is of type JCB . So I just changed the regex accordingly but the question is why are those sites I mentioned have 30 series cards while the IIN is 35 . So I need to clarification on this a question for which Im going to raise on SO now . Here is the changed regex",
"Question : I m probably asking for the wrong thing . What I d like is a model which extends the class ActiveMerchant : : Shipping : : Location https : github.com Shopify active shipping blob master lib active shipping location.rb but is also saved in the database and has other neat active record associations like multiple employees working day schedules etc . I know I can t inherit from multiple classes- what s the best way to create a Location class with both ActiveMerchant : : Shipping : : Location properties methods and additional ActiveRecord properties associations .. . Answer : You can inherit from ActiveMerchant : : Shipping : : Location and include ActiveModel : : Model and or other ActiveRecord modules you desire . Comment : So it would be : class WarehouseLocation extend ActiveMerchant : : Shipping : : Location include ActiveRecord : : Base",
"Question : I m getting this error when creating new Paypal notification with active merchant .. . .. . A OpenSSL : : SSL : : SSLError occurred in payment notifications create : SSL connect returned 1 errno 0 state SSLv3 read server certificate B : certificate verify failed home user .rbenv versions 2.0.0-p353 lib ruby 2.0.0 net http.rb : 918 : in connect .. . .. . Activemerchant version : 1.47.0 .. . Ruby version : ruby 2.0.0p598 2014-11-13 revision 48408 x86 64-linux .. . Rails version : 3.2.16 .. . Ubuntu version : Ubuntu 14.04.2 LTS .. . Openssl version : OpenSSL 1.0.1f 6 Jan 2014 .. . .. . Any suggestions Comment : Here is a solution to this problem : gist.github.com luislavena f064211759ee0f806c88 https : gist.github.com luislavena f064211759ee0f806c88 Comment : Please post the exact URL you are using to connect to the server and post the output of openssl s client -connect hostname : port -tls1 -servername hostname openssl x509 -text -noout . Do so by adding it to your question by clicking Edit and don t post it as a comment . Otherwise there s not enough information to troubleshoot it . .. . Answer : Couple things : .. . .. . 1 . make sure your certificates are up to-date on your machine . 2 . this has gotten me around this error before : https : github.com stevegraham certified .. . .. . Good luck . Hope this helps .",
"Question : I have problem with validate credit-card details using Active Merchant gem . When I try insert new payment always have error : The credit-card you provided was declined . 2 Please double check your information and try again . . This mean that response isn t success . I don t have idea why . I use code from tutorial : Active Merchant Tutorial https : richonrails.com articles credit-card-processing-with-active-merchant .. . .. . payment.rb .. . .. . initializers activemerchant.rb .. . .. . GATEWAY ID and GATEWAY PASSWORD data I store in .env file . Update : If I use response.inspect displays this : .. . Answer : This suggests that maybe your login or password variables are not being set correctly Have you made sure that the environment-variables GATEWAY ID and GATEWAY PASSWORD are set correctly in both development and production environments",
"Question : Active-Merchant doesn t have any API for retrieving details of any existing transaction from authorized.net.I have seen authorized.net provides an API getTransactionDetailsRequest for that but active-merchant doesn t . .. . Answer : you can use this forked version for that"
]
} | [
"yes-answer-long",
"yes-answer-short"
] | shopify | UNK_RELATION |
google-inbox@android@38 | google-inbox -- google email app for @placeholder ios and google s chrome browser . | {
"confidence": [
45.47949981689453,
42.70064163208008,
41.82093048095703,
41.82093048095703,
41.576385498046875,
39.56707763671875,
39.47097396850586,
38.51361083984375,
37.76409149169922,
37.08960723876953,
36.85403060913086,
36.73503494262695,
36.02825927734375,
35.702415466308594,
35.49687957763672,
34.30598831176758,
34.11003494262695,
33.733863830566406,
33.59782791137695,
33.21232223510742,
33.21232223510742,
32.25633239746094,
32.23295211791992,
31.75667953491211,
31.647037506103516,
30.883258819580078,
30.85057258605957,
30.453346252441406,
30.426544189453125,
29.810564041137695,
29.55951690673828,
29.53069305419922,
29.141525268554688,
29.109355926513672,
28.45937728881836,
28.161540985107422,
28.007579803466797,
26.886219024658203,
26.71173667907715,
26.592395782470703,
26.023767471313477,
26.023767471313477,
26.023767471313477,
25.99576759338379,
25.32052230834961,
25.300745010375977,
25.21828269958496,
25.152057647705078,
25.088062286376953,
24.220783233642578,
23.11638641357422,
23.11638641357422,
23.037071228027344,
22.950687408447266,
22.950687408447266,
22.68158721923828,
22.598896026611328,
22.459304809570312,
22.459304809570312,
21.777896881103516,
21.33961296081543,
21.33961296081543,
21.33961296081543,
21.33961296081543,
21.307340621948242,
21.170089721679688,
20.749797821044922,
20.749797821044922,
20.408214569091797,
20.139400482177734,
19.89498519897461,
19.78777313232422,
19.643367767333984,
19.643367767333984,
19.643367767333984,
19.643367767333984,
19.643367767333984,
19.48740005493164,
19.43970489501953,
19.219974517822266,
19.168617248535156,
18.828258514404297,
18.65732192993164,
18.654380798339844,
18.6052303314209,
18.6052303314209,
18.00002098083496,
18.00002098083496,
18.00002098083496,
18.00002098083496,
18.00002098083496,
17.99512481689453,
17.794174194335938,
17.531946182250977,
17.52838134765625,
17.52838134765625,
17.239835739135742,
17.219783782958984
],
"content": [
"But if i open it the google Inbox app the html parts are ignored .",
"It is possible to access or get all inbox by google reminders via a google-app-script",
"I recently made a purchase and my Google Inbox made this view above the actual email content .",
"Some Google services like Gmail and Inbox support Google s Email Markup https : developers.google.com gmail markup .",
"This questions is related : Email Sender Image from Google+ Account http : stackoverflow.com questions 30106816 email-sender-image-from-google-account 33174864 33174864",
"The issue here is that Gmail and Google Inbox use a feature called Auto Resize .",
"In the new Google Inbox i haven t seen an option when i receive document as attachments that allows me to edit with google-docs .. . .. . In GMAIL there s this : .. . .. .",
"Currently I m trying to implement Google Inbox like RecyclerView behaivior and I m very curious about email opening animation .",
"I cant find any ref for accessing google-inbox stuff .",
"Is there a way to achieve this with Google App API",
"If you have seen Google inbox app you must have noticed the navigation view with multiple accounts .",
"I know YouTube is owned by Google but I have seen many other examples .. . .. . Is it possible for me to make my own address to have its own image when someone received an email in Inbox",
"In Short this is because you likely don t have a Google+ page with a linked domain matching your email-address .",
"As a takeaway : .. . .. . Ensure your site is verified on Google+ .",
"I am attaching a TEXT file to Email with code : .. . .. . This code works perfectly with Gmail Email and other apps .. . .. . But this is not attaching file with INBOX https : play.google.com store apps details id com.google.android.apps.inbox hl en application by Google .. . .. . Only Body and subject are coming without any attachment .. . .. . I have reported this problem to Google Groups at Inbox Problem https : productforums.google.com forum topic inbox 0K1ky2uWxEY context-place forum inbox .. . .. . Can anybody help what I am missing in code",
"https : developers.google.com structured-data .. . .. . The Stack Overflow tag for questions about this is google-schemas questions tagged google-schemas .",
"When I read that Google Inbox application reuse 70 of code for all three main clients web ios android I have been encouraged to learn GWT as inbox was written mainly using gwt .",
"When you say that html parts are ignored do you mean that Inbox does an html unwrapping or simply that doesn t show the text This is a google link",
"When sending from a domain not matching Google+ you ll need to include a snippet of code in your email and have Gmail approve the link .",
"mail@example.com to arrive in recipients inboxes with a custom sender image used in Apple Mail and Google Inbox .",
"Mails data is covered with gmail-api but not infommations about the new inbox by google features like the reminders .",
"Trying to create an Email newsletter that displays correctly in mobile apps but Google Inbox s auto-resizing feature breaks the layout .",
"Today I saw the Inbox App .",
"I receive e-mails from various senders and when I view them in Google Inbox either on inbox.google.com or on the Android App some have an icon in a circle next to them.. . others just have a letter .",
"This is working for Gmail Email applications but it is not working with Inbox application. .",
"In case of inbox mail app it is subject and attachements at the bottom .",
"For example : .. . .. . This worked for me on the Gmail app and the Inbox app .",
"If your Google + account is linked to example.com you may need to authenticate your email with example.com SPF DKIM signature .",
"Per Google Thread API https : developers.google.com apps-script reference gmail gmail-thread .. . .. . there are methods to move a thread to Archive Inbox Spam Trash .",
"I have reported the issue to Google groups also. . hopefully that will be resolved. .",
"I have already mentioned that my code is working with Gmail and Email but not with Inbox. .",
"As Inbox by Gmail is quiet new this is the only worth noticing links I have found on the web concerning Inbox by Gmail : .. . .. . https : litmus.com blog a-first-look-at-inbox-by-gmail-what-email-marketers-need-to-know .. . .. . https : litmus.com community code 787-email-rendering-in-new-gmail-inbox-app .. . .. . Grateful for answers .",
"I m hoping someone knows how to work around this and have Google+ treat any emails coming from my domain as the new Google+ account s own .",
"BitBucket icon http : i.stack.imgur.com 44EoV.png .. . .. . The question : .. . .. . Does Google Inbox fetch this picture with some kind of G+ magic or are certain e-mail headers involved here",
"It makes use of the vocabulary Schema.org http : schema.org which is also supported by Google Search for their Rich Snippets etc .",
"I am trying a view similar to conversation view in Inbox app for gmail android app .",
"I actually google d What is a label in google-apps-script",
"I have created a new Google+ account linked and verified my website by uploading the .html file you know but still the emails don t contain my Google + profile image as their sender image .",
"When i say that the html tags are ignored i mean that it displays just the This is a google link without any html tags not even plain text",
"Can anyone suggest me an example for the opening and closing transition that is used in Inbox by Gmail s Android App .",
"This is not working with Inbox application attachment. .",
"This is also not working with Inbox application. .",
"Its not working for Inbox application. .",
"I have found a way to get all of my inbox threads like so from the Google Apps Script Reference page https : developers.google.com apps-script reference gmail gmail-app getInboxThreads : .. . .. . Is it possible to do something like getInboxThreads for folder Approval needed",
"enter image description here http : i.stack.imgur.com GfYBS.png .. . .. . Does anyone know if this feature is there on INBOX is it setting i have to enable or its not yet on INBOX",
"I started researching schema.org after @AaronP stackoverflow.com questions 32304322 http : stackoverflow.com questions 32304322 defining-a-bill-or-invoice-using-google-email-markup about the markup as well .",
"When receiving emails in Google s Inbox usually you get as image a coloured circle with the first letter of the contact s mail .",
"I assume it s something to do with me not sending emails from the new gmail address I ve created with Google+ .",
"I tried using min-width inline each element a trick that works with the gmail app but sadly it had no effect in Inbox .",
"It looks like this in Google s Inbox : .. . .. .",
"When opening a mailto : link from Android using Inbox Inbox will cut out anything after a in the body parameter .",
"I am new to Inbox and would like know if there is a way to use Inbox with googlescript javascript .",
"ListView is very limited Google is abandoning it and we developers should abandon ASAP too .",
"enter image description here http : i.stack.imgur.com TL66N.png .. . .. . In INBOX I don t see any of these options .. . .. .",
"Regardless of this library I m trying to figure out what Inbox does in terms of how it shows the search results .",
"trying to create an email intent which contains a few links with text .. . .. . If i open the intent with the GMAIL app it will display the html contents correctly .",
"The reason is that I am using Inbox on OSX with fluid .",
"Ensure you have adequate email traffic seems around 1k a week should do it .",
"Ensure that your email is authenticated against your domain and not your ESPs or use the Featured Image markup .",
"As I understand Inbox by Gmail is fairly new and when searching the webb I find little or none articles that describes some approach to this new client app .",
"It also generated a View Bill button which only shows in Inbox and not Gmail .",
"Fluid allows me use the Inbox web version as a standalone program .",
"Now I have discovered that I have the same problems with Inbox by Gmail .",
"Try this : after adding the label perform a second operation to remove the Inbox label .",
"Any ideas how to display html in all email clients",
"I m using the Javascript client API with my app and I m trying to get unread mails from the primary inbox .",
"I tried using newly released Inbox api to sort out and tag my mails but I am stuck at categorising mails after I had successfully logged in using api .",
"I m not expecting code answers--I really just need to know what needs to be done as I can t find good sources on how to do something like Inbox is doing .",
"While you can get around this issue in gmail by adding min-width to each table div img this workaround does not work in Inbox.. .",
"For now I will focus on web client but in future I would like to expand the app to Android and IOS .",
"@SolidI Is your email authenticated",
"But the code showed in this question and its answer makes the action hides after the list have scrolled some pixels and I want to make this scroll like the Inbox App by Google that is the action bar is pulled by the Layout according to the user scroll the screen up or down in other words I want to show-hide the action bar at the same time the user scroll down up .",
"I ve tested the json microdata examples provided on the schema.org documentation however it didn t trigger anything in Inbox .",
"https : github.com InterNations antwort .. . .. . Can anyone help me fixing it for gmail and inbox .. . .. . Thanks in advance",
"Instead I would like to open the compose mail dialog in Inbox which then should include the address of the recipient given by inURLString .",
"What I am looking for is a way if possible to force Inbox by Gmail to render the desktop version .",
"However I would like to move a thread from Inbox to a custom label created by me .",
"http : cnet2.cbsistatic.com hub i r 2014 10 22 c03e978b-d6b2-4d8f-a76e-bd7e61d83960 resize 770x578 ec19fe2ee656cebf9e537b0aac1c12ba inbox-by-gmail-inbox.jpg .. . .. . I d like to know how can I make THAT switch button on the toolbar left of searchButton .",
"I have a responsive email template .",
"I used NonLockingScrollView from here https : zi.is p browser k-9 src com fsck k9 view NonLockingScrollView.java rev e4d26b8c752f03dc8a40bcb59a0e601835205083 https : zi.is p browser k-9 src com fsck k9 view NonLockingScrollView.java rev e4d26b8c752f03dc8a40bcb59a0e601835205083 5D .",
"css-tricks.com override-gmail-mobile-optimized-email https : css-tricks.com override-gmail-mobile-optimized-email",
"Css support https : www.campaignmonitor.com css in html-email .",
"I am sending the emails via CodeIgniter 3 s Email Class using default settings except for mailtype set to html codeigniter.com user guide libraries email.html http : www.codeigniter.com user guide libraries email.html",
"You can verify very easily by going to the network tab that it is indeed making XMLHttpRequest s and can get chrome to break on XHR in the sources tab here s the relevant line : A.send t",
"by placing this small snippet in chrome s console can hook to any ajax call in a page : .. . .. . placing this in Gmail works but not in Google s new Inbox site .",
"I think as of now it is not possible but you can move a GmailThread to a customLabel using addLabel but still that thread is still exist in your inbox .",
"mailto : subject argh body whereitcutsoff anythingafterisremoved becomes whereitcutsoff in the body of the email .",
"I was wondering how to achieve same email structure as PayPal has .",
"for reference i used many email templates available on github .",
"Viewing an email that s designed for desktops on a mobile device is a horrendous experience .",
"Source : .. . http : css-tricks.com override-gmail-mobile-optimized-email",
"You can check in Chrome dev-tools under network .",
"Also unlike in the Gmail App there is no option to disable auto-resizing in the message .",
"Another think is how to connect Android and IOS client to GWT backend",
"If I use the INBOX and UNREAD names when requesting the labels I get all unread mails from all labels .",
"I have 4 UNREAD mails or Threads in my inbox and response is : .. . .. . 200 OK",
"What has been working for me on some email templates is to remove min-width and add an inline style of margin : 0 auto to each table this will at least align content down the center .",
"it is rendering well on mobile apps but on browser its responsive behaviour not working ."
]
} | {
"confidence": [
49.00038146972656,
47.698509216308594,
46.89054489135742,
46.75290298461914,
46.02051544189453,
45.92567825317383,
45.1245002746582,
45.1245002746582,
45.1245002746582,
43.558204650878906,
42.96136474609375,
42.304771423339844,
40.77915954589844,
39.57821273803711,
38.271968841552734,
37.26062774658203,
37.11713790893555,
34.42328643798828,
33.588462829589844,
32.12455749511719
],
"content": [
"Question : Does rich data for emails exists I recently made a purchase and my Google Inbox made this view above the actual email content . Image provided below .. . .. . Is this some rich data everyone can add to their emails enter image description here http : i.stack.imgur.com 4B4CM.jpg .. . Answer : Some Google services like Gmail and Inbox support Google s Email Markup https : developers.google.com gmail markup . It makes use of the vocabulary Schema.org http : schema.org which is also supported by Google Search for their Rich Snippets etc . https : developers.google.com structured-data .. . .. . The Stack Overflow tag for questions about this is google-schemas questions tagged google-schemas .",
"Question : When receiving emails in Google s Inbox usually you get as image a coloured circle with the first letter of the contact s mail . But in rare occasions there will be an image placeholder like for instance the example I paste for YouTube . I know YouTube is owned by Google but I have seen many other examples .. . .. . Is it possible for me to make my own address to have its own image when someone received an email in Inbox If so how enter image description here http : i.stack.imgur.com SWOKf.png .. . Answer : In Short this is because you likely don t have a Google+ page with a linked domain matching your email-address . The longer version : Link is here.. . http : freshinbox.com blog how-to-get-your-logo-to-display-in-gmail-grid-view .. . .. . EDIT : Seems like this is not a popular answer.. . Here s a fuller version : This Article seems to provide a good overall answer . I ll do a quick summary here . As a takeaway : .. . .. . Ensure your site is verified on Google+ . This is done in Webmaster tools link and your webmaster must approve . Ensure you have adequate email traffic seems around 1k a week should do it . When sending from a domain not matching Google+ you ll need to include a snippet of code in your email and have Gmail approve the link . Ensure that your email is authenticated against your domain and not your ESPs or use the Featured Image markup . This questions is related : Email Sender Image from Google+ Account http : stackoverflow.com questions 30106816 email-sender-image-from-google-account 33174864 33174864",
"Question : null .. . Answer : trying to create an email intent which contains a few links with text .. . .. . If i open the intent with the GMAIL app it will display the html contents correctly . But if i open it the google Inbox app the html parts are ignored . Any ideas how to display html in all email clients Comment : Maybe it could be an character-encoding problem.. . Comment : You could try with emailText StringEscapeUtils.escapeHtml4 emailText using this library http : mvnrepository.com artifact org.apache.commons commons-lang3 3.3.2 : add compile org.apache.commons : commons-lang3 : 3.2 in your build.gradle and let me know Comment : When you say that html parts are ignored do you mean that Inbox does an html unwrapping or simply that doesn t show the text This is a google link Comment : @madx I tried this method but it displayed the html tags as plain text . When i say that the html tags are ignored i mean that it displays just the This is a google link without any html tags not even plain text Comment : Found any solution",
"Question : I am attaching a TEXT file to Email with code : .. . .. . This code works perfectly with Gmail Email and other apps .. . .. . But this is not attaching file with INBOX https : play.google.com store apps details id com.google.android.apps.inbox hl en application by Google .. . .. . Only Body and subject are coming without any attachment .. . .. . I have reported this problem to Google Groups at Inbox Problem https : productforums.google.com forum topic inbox 0K1ky2uWxEY context-place forum inbox .. . .. . Can anybody help what I am missing in code Comment : hey did you fixed your issue or you still searching . please try my provided solution hope this will work for you Comment : I am still searching for solution. . I have reported the issue to Google groups also. . hopefully that will be resolved. . Comment : Same issue for me have not been able to find a solution anywhere . Comment : Having the same issue : .. . Answer : Comment : This is working for Gmail Email applications but it is not working with Inbox application. . Comment : ok you edit the question let me check Comment : I have already mentioned that my code is working with Gmail and Email but not with Inbox. .",
"Question : It is possible to access or get all inbox by google reminders via a google-app-script I cant find any ref for accessing google-inbox stuff . Mails data is covered with gmail-api but not infommations about the new inbox by google features like the reminders . I would like to make a printable sheet from all undone reminders tasks . .. . Answer : I know this is an older question but I figured I d go ahead and answer it . From what I can tell a reminder is basically a stripped down email with the label reminder applied to it . So you can see all your reminders by searching label : reminder or is : reminder . You can also view all of your done reminders with label : reminder label : done . Likewise all of your snoozed reminders can be viewed with label : reminder label : snooze .",
"Question : Trying to create an Email newsletter that displays correctly in mobile apps but Google Inbox s auto-resizing feature breaks the layout . I tried using min-width inline each element a trick that works with the gmail app but sadly it had no effect in Inbox . Also unlike in the Gmail App there is no option to disable auto-resizing in the message . Any suggestions .. . Answer : I ran into the same thing . It turns out if you use the important declaration it works . For example : .. . .. . This worked for me on the Gmail app and the Inbox app .",
"Question : I am attaching a TEXT file to Email with code : .. . .. . This code works perfectly with Gmail Email and other apps .. . .. . But this is not attaching file with INBOX https : play.google.com store apps details id com.google.android.apps.inbox hl en application by Google .. . .. . Only Body and subject are coming without any attachment .. . .. . I have reported this problem to Google Groups at Inbox Problem https : productforums.google.com forum topic inbox 0K1ky2uWxEY context-place forum inbox .. . .. . Can anybody help what I am missing in code Comment : hey did you fixed your issue or you still searching . please try my provided solution hope this will work for you Comment : I am still searching for solution. . I have reported the issue to Google groups also. . hopefully that will be resolved. . Comment : Same issue for me have not been able to find a solution anywhere . Comment : Having the same issue : .. . Answer : Try this Comment : This is not working with Inbox application attachment. .",
"Question : I am attaching a TEXT file to Email with code : .. . .. . This code works perfectly with Gmail Email and other apps .. . .. . But this is not attaching file with INBOX https : play.google.com store apps details id com.google.android.apps.inbox hl en application by Google .. . .. . Only Body and subject are coming without any attachment .. . .. . I have reported this problem to Google Groups at Inbox Problem https : productforums.google.com forum topic inbox 0K1ky2uWxEY context-place forum inbox .. . .. . Can anybody help what I am missing in code Comment : hey did you fixed your issue or you still searching . please try my provided solution hope this will work for you Comment : I am still searching for solution. . I have reported the issue to Google groups also. . hopefully that will be resolved. . Comment : Same issue for me have not been able to find a solution anywhere . Comment : Having the same issue : .. . Answer : Comment : This is also not working with Inbox application. . I think we should give Uri type-parameter wirh Intent.EXTRA STREAM kay in intent. . This is problem in your code",
"Question : I am attaching a TEXT file to Email with code : .. . .. . This code works perfectly with Gmail Email and other apps .. . .. . But this is not attaching file with INBOX https : play.google.com store apps details id com.google.android.apps.inbox hl en application by Google .. . .. . Only Body and subject are coming without any attachment .. . .. . I have reported this problem to Google Groups at Inbox Problem https : productforums.google.com forum topic inbox 0K1ky2uWxEY context-place forum inbox .. . .. . Can anybody help what I am missing in code Comment : hey did you fixed your issue or you still searching . please try my provided solution hope this will work for you Comment : I am still searching for solution. . I have reported the issue to Google groups also. . hopefully that will be resolved. . Comment : Same issue for me have not been able to find a solution anywhere . Comment : Having the same issue : .. . Answer : Call method Comment : Its not working for Inbox application. .",
"Question : Trying to create an Email newsletter that displays correctly in mobile apps but Google Inbox s auto-resizing feature breaks the layout . I tried using min-width inline each element a trick that works with the gmail app but sadly it had no effect in Inbox . Also unlike in the Gmail App there is no option to disable auto-resizing in the message . Any suggestions .. . Answer : It looks like you re going for responsive web design . I d start with the main container width : 100 and your viewport set in the header : .. . .. . Then align the rest of your divs or containers as block or inline blocks with widths Unless you specifically want a pixel width for a div . Comment : Sadly that doesnt help . While the newsletter is responsive in web the dimensions for each item div table etc are hard-coded in so as to display correctly in Gmail which disregards media-queries . The issue here is that Gmail and Google Inbox use a feature called Auto Resize . While you can get around this issue in gmail by adding min-width to each table div img this workaround does not work in Inbox.. .",
"Question : Trying to create an Email newsletter that displays correctly in mobile apps but Google Inbox s auto-resizing feature breaks the layout . I tried using min-width inline each element a trick that works with the gmail app but sadly it had no effect in Inbox . Also unlike in the Gmail App there is no option to disable auto-resizing in the message . Any suggestions .. . Answer : Have noticed the same thing . What has been working for me on some email templates is to remove min-width and add an inline style of margin : 0 auto to each table this will at least align content down the center . Please see an example below :",
"Question : null .. . Answer : In the new Google Inbox i haven t seen an option when i receive document as attachments that allows me to edit with google-docs .. . .. . In GMAIL there s this : .. . .. . enter image description here http : i.stack.imgur.com TL66N.png .. . .. . In INBOX I don t see any of these options .. . .. . enter image description here http : i.stack.imgur.com GfYBS.png .. . .. . Does anyone know if this feature is there on INBOX is it setting i have to enable or its not yet on INBOX",
"Question : I d like for all emails send from my server e.g . mail@example.com to arrive in recipients inboxes with a custom sender image used in Apple Mail and Google Inbox . I have created a new Google+ account linked and verified my website by uploading the .html file you know but still the emails don t contain my Google + profile image as their sender image . I assume it s something to do with me not sending emails from the new gmail address I ve created with Google+ . I m hoping someone knows how to work around this and have Google+ treat any emails coming from my domain as the new Google+ account s own . Comment : You are going to have to be more specific about how you are sending the emails and what headers you are including in them . Comment : I am sending the emails via CodeIgniter 3 s Email Class using default settings except for mailtype set to html codeigniter.com user guide libraries email.html http : www.codeigniter.com user guide libraries email.html Comment : @SolidI Is your email authenticated If your Google + account is linked to example.com you may need to authenticate your email with example.com SPF DKIM signature . .. . Answer : This Article http : freshinbox.com blog how-to-get-your-logo-to-display-in-gmail-grid-view seems to provide a good overall answer . I ll do a quick summary here . As a takeaway : .. . .. . Ensure your site is verified on Google+ . This is done in Webmaster tools link https : support.google.com business answer 4569085 rd 1 and your webmaster must approve . Ensure you have adequate email traffic seems around 1k a week should do it . When sending from a domain not matching Google+ you ll need to include a snippet of code in your email and have Gmail approve the link . Ensure that your email is authenticated against your domain and not your ESPs or use the Featured Image markup . Comment : While this link may answer the question it is better to include the essential parts of the answer here and provide the link for reference . Link-only answers can become invalid if the linked page changes . Comment : Good point I ll do a write-up .",
"Question : Per Google Thread API https : developers.google.com apps-script reference gmail gmail-thread .. . .. . there are methods to move a thread to Archive Inbox Spam Trash . However I would like to move a thread from Inbox to a custom label created by me . Is there a way to achieve this with Google App API Thanks Comment : I think as of now it is not possible but you can move a GmailThread to a customLabel using addLabel but still that thread is still exist in your inbox . The only way that I think to achieve this is only by dragging that message to your created custom label . .. . Answer : Have you tried the addLabel https : developers.google.com apps-script reference gmail gmail-thread addLabel GmailLabel method Comment : if you use that addLabel it will only add label to the message not move . Comment : Try this : after adding the label perform a second operation to remove the Inbox label .",
"Question : null .. . Answer : When I read that Google Inbox application reuse 70 of code for all three main clients web ios android I have been encouraged to learn GWT as inbox was written mainly using gwt . Additionaly incoming Gwt Singularity framework convince me to this platform . For now I will focus on web client but in future I would like to expand the app to Android and IOS . So I ve started new project have wrote some basic ui entities and dao . Now I need Your help . Please give me some information about what transport mechanizm choose to support all of these three platforms . I consider to user RequestFactory less code more job done- for me . I now that RequestFactory supports Android but couldn t found information about supporting IOS . Second choose is JSON marchaling and gwtResty library . I supose that will work . Another think is how to connect Android and IOS client to GWT backend Please give me some help links or Your experience on that subject . Thanks . Comment : github.com futureplatforms kirin https : github.com futureplatforms kirin",
"Question : null .. . Answer : I receive e-mails from various senders and when I view them in Google Inbox either on inbox.google.com or on the Android App some have an icon in a circle next to them.. . others just have a letter . BitBucket for example has a nice icon when they send me an e-mail : BitBucket icon http : i.stack.imgur.com 44EoV.png .. . .. . The question : .. . .. . Does Google Inbox fetch this picture with some kind of G+ magic or are certain e-mail headers involved here How do I implement this in my own solutions when sending out e-mails Comment : There is likely some G+ magic at work here . My guess is that 1 image is fetched from a G+ profile if one exists 2 fetching an image from a generic social media profile if one can be found e.g . a Gravatar 3 fetch a generic favicon for the message domain as in this case and finally 4 a default fallback icon which may be dynamically constructed from sender s initials and a hashcode of the sender s address .",
"Question : I am trying to retrieve email threads from only a specific folder which I named Approval needed . I have found a way to get all of my inbox threads like so from the Google Apps Script Reference page https : developers.google.com apps-script reference gmail gmail-app getInboxThreads : .. . .. . Is it possible to do something like getInboxThreads for folder Approval needed I have searched around and have not found an answer for this . I have found other methods such as getPriorityInboxThreads and getStarredInboxThreads but nothing like getInboxThreads string . .. . Answer : What you are calling folder is actually a label in gmail you can use the getThreads https : developers.google.com apps-script reference gmail gmail-label getThreads method on the Label https : developers.google.com apps-script reference gmail gmail-label class . Example from the documentation : Comment : Thank you for the clarification . I actually google d What is a label in google-apps-script and the answer I found was A user-created label in a user s Gmail account . followed by some label methods . So I wasn t exactly sure what that was for .",
"Question : Currently I m trying to implement Google Inbox like RecyclerView behaivior and I m very curious about email opening animation . My question is : how to do that I mean which method they used Did they use ItemAnimator.dispatchChangeStarting and change it s height to fill-parent Or something another And if they do how they make it close with pull gesture while underlying RecyclerView elements are slightly visible . Can anyone help me with pointing to some library or code-snippets examples .. . Answer : You mean : the recyclerview as a load items or once an item and pressing load the next screen . I leave an example of how I charge items in recyclerview and I give an animation .. . .. . In your RecyclerViewAdapter : .. . .. . And if not in the recyclerview you can pass a layout and use this animation or create one from this .",
"Question : I was wondering how to achieve same email structure as PayPal has . It looks like this in Google s Inbox : .. . .. . Email showing PayPal logo and reading Receipt for Coursera Inc . listing amount issuer date and confirmation number http : i.stack.imgur.com Djotf.png .. . .. . But I can t find right type for it here : https : developers.google.com gmail markup reference .. . .. . Any idea how to achieve the PayPal-like markup Comment : I couldn t find the markup to achieve this on Google s online documentation as well . I started researching schema.org after @AaronP stackoverflow.com questions 32304322 http : stackoverflow.com questions 32304322 defining-a-bill-or-invoice-using-google-email-markup about the markup as well . It looks like they re using the Invoice schema.org Invoice https : schema.org Invoice markup . I ve tested the json microdata examples provided on the schema.org documentation however it didn t trigger anything in Inbox . You could also try looking at the raw source of your PayPal email and look for the markup in it . Check the documentation for updates . Comment : Check out my answer below and let me know if this is what you re trying to achieve . Comment : check out Google s updated documentation for invoices developers.google.com gmail markup reference invoice https : developers.google.com gmail markup reference invoice . .. . Answer : Using schema.org Invoice and schema.org PayAction I was able to get the email structure that you ve posted from PayPal . It also generated a View Bill button which only shows in Inbox and not Gmail . Check out my example script below . The email markup tester https : www.google.com webmasters markup-tester seemed to like it there were no errors found . Try sending it using this Gmail Schema Tester http : gmail-actions.appspot.com or through Apps Script https : developers.google.com gmail markup apps-script-tutorial with your Gmail account . script type application ld+json .. . .. . .. . @context : http : schema.org .. . @type : Invoice .. . description : January 2015 Acme Bill .. . url : https : www.americanexpress.com .. . accountId : xxxx-xxxx-xxxx-1234 .. . potentialaction : .. . url : https : example.com .. . @type : PayAction .. . .. . paymentDue : 2020-01-30 .. . minimumPaymentDue : .. . @type : PriceSpecification .. . price : 15.00 .. . .. . totalPaymentDue : .. . @type : PriceSpecification .. . price : 200.00 .. . .. . paymentStatus : payment due .. . provider : .. . @type : Organization .. . name : Acme Bank .. . .. . .. . .. . script .. . .. . You should get this : .. . .. . enter image description here http : i.stack.imgur.com yKsHO.png",
"Question : null .. . Answer : If you have seen Google inbox app you must have noticed the navigation view with multiple accounts . On swipe the accounts get changed . Or else when one clicks the arrow down button the navigation view items replaced . What i would like to know here is how to do both . If we can set the menu item for navigation view programatically we can actually make the items changed . That is one thought that came to my mind . I came across this and it might work . link : stack-overflow question http : stackoverflow.com questions 30695038 how-to-programmatically-add-a-submenu-item-to-the-new-material-design-android-su .. . .. . But I still couldn t figure out how to make the multi account swipable navigation view . If anyone has worked on this or has any idea on how to achieve the same please let me know ."
]
} | [
"yes-answer-long",
"yes-answer-short"
] | android | UNK_RELATION |
xfdf@fdf@58 | xfdf -- xfdf is the xml version of the forms data format @placeholder specification . | {
"confidence": [
49.47311782836914,
49.47311782836914,
48.616058349609375,
46.11522674560547,
44.954742431640625,
44.94327926635742,
44.71144485473633,
43.797088623046875,
42.89158248901367,
42.77975845336914,
42.283714294433594,
42.19677734375,
42.16008377075195,
41.73109436035156,
41.73109436035156,
40.94923400878906,
40.94923400878906,
40.75729751586914,
40.647499084472656,
40.586849212646484,
40.48883819580078,
40.44749069213867,
40.44749069213867,
40.44749069213867,
39.78874969482422,
39.78874969482422,
39.28700256347656,
39.28700256347656,
39.28700256347656,
39.28700256347656,
39.28700256347656,
39.28700256347656,
39.256622314453125,
38.90769958496094,
38.90769958496094,
38.597747802734375,
37.13683319091797,
37.13683319091797,
37.13683319091797,
37.13683319091797,
37.13683319091797,
35.97634506225586,
35.97634506225586,
35.97634506225586,
35.97634506225586,
35.97634506225586,
35.97634506225586,
35.97634506225586,
35.97634506225586,
35.97634506225586,
35.97634506225586,
35.97634506225586,
35.82698059082031,
35.82698059082031,
35.82698059082031,
35.645111083984375,
35.38561248779297,
34.6664924621582,
34.6664924621582,
34.585472106933594,
34.585472106933594,
34.225128173828125,
34.225128173828125,
33.945465087890625,
33.568233489990234,
33.27561950683594,
33.228416442871094,
32.692047119140625,
32.677391052246094,
32.677391052246094,
32.677391052246094,
32.677391052246094,
32.677391052246094,
32.677391052246094,
32.677391052246094,
32.677391052246094,
32.677391052246094,
32.15156555175781,
31.97266387939453,
31.53156280517578,
31.53156280517578,
31.516904830932617,
31.516904830932617,
31.516904830932617,
31.516904830932617,
31.516904830932617,
31.081754684448242,
30.833459854125977,
30.253856658935547,
30.140689849853516,
30.140689849853516,
30.12602996826172,
30.12602996826172,
30.12602996826172,
30.12602996826172,
30.12602996826172,
30.12602996826172,
30.12602996826172,
30.0282039642334,
29.948118209838867
],
"content": [
"XFDF is the XML flavor of FDF .",
"XFDF uses XML .",
"XFDF format is described here : http : partners.adobe.com public developer en xml xfdf 2.0.pdf .. . The body of the POST request contains the XFDF data .",
"I have 2 files : the PDF is TestForm1.pdf and the XFDF is TestForm1.xfdf .",
"You are directly asking the xfdf element for p but xfdf is not its parent .",
"XFDF files are XML files see Adobe XFDF Spec 3.0 http : partners.adobe.com public developer en xml XFDF Spec 3.0.pdf .",
"the XFDF looks like this",
"The XFDF file points to a password-protected PDF which is the generic PDF form that uses the XFDF data to fill in the fields .",
"The XFDF is produced by my Java webapp .",
"I am submiting a PDF form xfdf format to a php script .",
"I need to show a PDF file with data this data is a XFDF file .",
"The xfdf value entry needs to match the checkbox value :",
"It all works but it exports it as a .xfdf .",
"XFDF files database-connection and tables .",
"number -1700 from xfdf to integer",
"It should be noted that fill form also works with XFDF data as well .",
"From here you will be able to save the ouput file s data as an XFDF or FDF .",
"I try to create Applescript to extract value from .xfdf .. . .. . XFDF .. . .. . Applescript .. . .. . When I run the script I get this error : System Events got an error : Can t get XML element p of XML element xfdf of contents of XML file .",
"The link points to script which generates an XFDF file on the fly and outputs the XFDF file after setting the appropriate headers etc .",
"XFDF files are data files for PDF forms they cannot be viewed in Illustrator as there is nothing to see in them .",
"And the annotation data will be exported to XFDF format and store in my web system implemented by Java and Spring .",
"I m populating a PDF form using XFDF .",
"What does xfdf have to do with Highlights and Id",
"I ve an Xfdf with annotations exported from another system .",
"Submit button sends XFDF data through POST to my PHP script .",
"Submit button is sending XFDF form-data through POST .",
"XFDF is generated on the fly no file written to server .",
"You would still need a XFDF file however .",
"How to open or view xfdf files in Illustrator .",
"As stated FDF instead of XFDF would make it possible .",
"I am however not sure whether XFDF does it .",
"I saved and did an export to both XFDF and FDF .",
"I m not familiar with the process you re using but I note that your file name ends-with .xfdf therefore it will create an .xfdf file .",
"I would like to be able to extract two fields from xfdf file sender name email to use as from : on the email that contains the xfdf attachment .",
"Hi I have to save this file in xfdf file in C using XmlWriter Class .. . .. . But I am not able save in xfdf file .",
"However I want to get the IDs programmatically in order to build correct xfdf documents for arbitrary PDF forms .",
"Then php saves the file xfdf emails as an attachment to some email .",
"It seems I have to parse the XFDF and draw the annotations one by one programmatically .",
"Currently merging annotations from XFDF into PDF isn t supported in iText .",
"I have successfully created the xfdf output and correctly filled out the pdf .",
"Do you need the xfdf step or would a direct pass be possible",
"PDF and XFDF are merged server-side using generic PDF .",
"Contents of final PDF are output to user same as XFDF was originally .",
"Neither the XFDF nor the final PDF are ever saved to server .",
"I m creating XFDF document based on POST and then process it further .",
"When you populate XFDF file back into PDF characters are OK .",
"im getting error Can t make xfdf into type integer .",
"xfdf source .. . .. . Ideally I wanted to use a base64 string but this isn t a necessity .",
"EDIT : I couldn t find a solution for doing this in pure XFDF .",
"I m trying to add a freetext xfdf annotation into a pdf document using iTextSharp .",
"Anyone knows how to import an XFDF into an PDF file now",
"I never seen an example of XFDF or FDF inserting an image into the PDF .",
"I am looking for a ruby code snippet that shows use of Nokogiri to parse Acrobat XFDF data .",
"I have some xfdf data as shown here and i need to fill an editable pdf in PHP .",
"So the process works in my machine I open the XFDF and automatically the PDF appears with a data .",
"Since you have gotten the XFDF upload and the email sending working already all you need to do is this : .. . .. . open the uploaded file .. . read its contents .. . parse the xml .. . extract the data you need .. . .. . The exact steps are going to depend on the contents of your XFDF files and on the library of your choice .",
"I can embed an empty PDF and it works : .. . .. . But following with the XFDF does not work : .. . .. . The code of my XFDF file is : .. . .. . Please I need help or guide about this issue .",
"When I generate in PHP XFDF file from POST data polish characters encoded in UTF8 are messed up .",
"It was very easy to import the data from an XFDF File into the PDF fields with the importFDF-Method .",
"I have a system that prepopulates PDF fields via XFDF .",
"pdftk file.pdf fill form file.fdf output new.pdf flatten .. . .. . ---FDF--- .. . .. . ---XFDF--- .. . .. . ---PDF---",
"Here is the function I use to parse the XFDF file : .. . .. . And the resulting XFDF file looks like this : .. . .. . The fields with english letters print perfectly but letters with acutes graves or scandinavian additions wont transfer to the PDF file .",
"The xfdf annotation is something like : .. . .. . I have tried to use something like : .. . .. . But I don t know how to get my contents variable from the html in the xfdf .",
"I m using XFDF files to fill out PDF-forms serverside with PHP and pdftk but my problem is that no non-english characters etc .",
"For customised forms instead of creating html forms and using that to get input from user how can we use PDF to get input from user and when posting how to store all input in xfdf .",
"I m working on a project that collects data from the project then displays it using xfdf to populate a .pdf file .",
"Now I want to merge XFDF to an existing PDF file and generate an annotated PDF version when my users view the PDF in the web system .",
"Instead of creating a HTML form you create a PDF form and submit the data as XFDF which can then easily imported into a database for example .",
"I ve manually created a PDF fillable form file and filled it out using an existing xfdf file .",
"I want to reference the PDF form from XFDF using a URL because I want form templates to be stored on the server .",
"dpastov.blogspot.com 2010 01 http : dpastov.blogspot.com 2010 01 open-xfdf-file-in-browser-using-abobe.html",
"Solve the problem by changing the href path in your XFDF file to the full server path that the pdf is located in .",
"So my question is how to merge the XFDF to PDF and create a new PDF file for users to view in my web system .",
"thanks Charles I am not able to add this attribute in xfdf element xml : space preserve .",
"Thanks for the quick response Marc the first approach simply saves the xfdf string to file .",
"When the pdf-form was exported as xfdf file the combo box description is stored instead of export value .",
"You should download the xfdf and the pdf separately and then use another software tool for merging them .",
"I have to create the xfdf file Like please chek this link : - partners.adobe.com public developer en xml xfdf 2.0.pdf http : partners.adobe.com public developer en xml xfdf 2.0.pdf : Page No-8",
"xml version 1.0 encoding UTF-8 xfdf xmlns http : ns.adobe.com xfdf xml : space preserve .. . .. . fields .. . .. . field name user name value Some Name field .. . .. . field name course name value Some Course field .. . .. . fields .. . .. . f href http : the URL to the PDF that needs to be populated with the XFDF info .. . .. . xfdf .. . .. . I am trying to open the above with the header command below. . .. . .. . header Content-type : application vnd.adobe.xfdf",
"Using the code at http : koivi.com fill-pdf-form-fields I am creating creating a XFDF file then simply running it and the data appears in the correct places .",
"I have a process in-place where I populate a PDF templates with data using a XFDF file that I build-server side .",
"Now results value value in the XFDF file and the value is printed just simply .",
"A XFDF file combined with the corresponding empty PDF form will give you a filled in PDF form .",
"I looked over at the xfdf spec and there is a snapshot element which takes base64 strings for images but this is just for 3dviews. .",
"I m creating the PDF form with a XFDF file then merging it using PDFTK with another generated PDF which contains the image .",
"Staying in the same workflow I d like to either use XFDF or FDF files to add a barcode to the PDF .",
"What I need to do is be able to cycle every record in the recordset populate the pdf save it with a unique name and move to next record in the recordset .. . .. . I am not using any pdf addons just printing the xfdf to header Content-Type : application vnd.adobe.xfdf .. . .. . I am open to suggestion like batch creating the xfdf files then using another scripting-language to merge the xfdf with the pdf and saving the pdf output with a unique name .",
"In case you need to know how to create fdf file through PHP .. . .. . fdf xml version 1.0 encoding UTF-8 xfdf xmlns http : ns.adobe.com xfdf xml : space preserve fields field name first name value tismon value field field name last name value varghese value field fields ids original dbd3aadc6b6b85761ca83030e0558363 modified 1362548354 f href unlocked.pdf xfdf file-put-contents file name.fdf fdf .. . .. . 3.Fill FDF to PDF .. . .. . or you do this .. . .. . Note : to make the file output fillable you just ignore flatten in both cases : exec root resources PDFtk bin pdftk fillablePDF.pdf fill form file name.fdf output output.pdf 2 1",
"The library can export forms data in FDF format .",
"My scenario : .. . .. . A PDF template with formfields : template.pdf .. . An XFDF file that contains the data to be filled in : fieldData.xfdf .. . .. . Now I need to have these to files combined flattened .",
"enter image description here http : i.stack.imgur.com FO9Qf.png .. . .. . Obviously this will only work if the form in this case Requisition Fillable.pdf corresponds with the data in the XFDF stream .",
"THe XFDF code seems fine but when I try to open it with the header in PHP PDF fires an error .",
"Below is the XFDF code as well as the header I am using.. . .. . .. . Any idea why PDF doesnt display it right away",
"See page 16 in http : 146.145.110.1 docs userguide FDFMergeUserGuide.pdf for how it handles xFDF with UTF-8 .",
"Maybe pdftk will do what you want when you encode the weird characters as character references in your xFDF input .",
"Using the pdftk 1.44 on a Win7 machine I encounter the same problems with xfdf-files whereas fdf works fine .",
"I made a xfdf-file without any special-characters only ANSI but pdftk crashed again .",
"You can t convert an FDF or XFDF file to PDF because there is too much information missing .",
"I was looking at pdftk http : www.accesspdf.com pdftk which has a few options for dealing with FDF XFDF files but all of which assume that a the original XFDF file-exists as a file on the server and b that the resulting PDF should be output as a file on the server .",
"I found a way to download the xfdf and the empty document without the annotations in it but then I need to use third party libraries for merging this two files ."
]
} | {
"confidence": [
62.698734283447266,
62.56755065917969,
60.81675338745117,
59.917537689208984,
59.14762496948242,
57.26041030883789,
56.74912643432617,
56.3404655456543,
55.36724853515625,
55.2099723815918,
54.89686965942383,
54.720706939697266,
54.362396240234375,
54.12889099121094,
54.06529235839844,
53.72755432128906,
52.53939437866211,
52.539363861083984,
52.07521057128906,
50.597808837890625
],
"content": [
"Question : I am submiting a PDF form xfdf format to a php script . Then php saves the file xfdf emails as an attachment to some email . I would like to be able to extract two fields from xfdf file sender name email to use as from : on the email that contains the xfdf attachment . I do not need all the field and I know the fields names . I would like to use simple php without installing any other library if possible . Thank you in advance Comment : What have you tried http : mattgemmell.com 2008 12 08 what-have-you-tried .. . Answer : XFDF files are XML files see Adobe XFDF Spec 3.0 http : partners.adobe.com public developer en xml XFDF Spec 3.0.pdf . PHP has a number of libraries http : www.php.net manual en refs.xml.php that will allow you to extract data from XML files . Check your server setup which of these libraries are available in your installation . Since you have gotten the XFDF upload and the email sending working already all you need to do is this : .. . .. . open the uploaded file .. . read its contents .. . parse the xml .. . extract the data you need .. . .. . The exact steps are going to depend on the contents of your XFDF files and on the library of your choice .",
"Question : How can I add PDF417 2-D barcode as an image to a Acroform PDF I have a process in-place where I populate a PDF templates with data using a XFDF file that I build-server side . Staying in the same workflow I d like to either use XFDF or FDF files to add a barcode to the PDF . I m using full-stack JavaScript environment where the Nodejs environment runs server-side . I m using PDFTK Server JavaScript on the server calling out to a PDFTK.exe . I can use any tool technique within my technology stack Nodejs Javascript . Also this solution must work server-side only . The PDF template currently uses a Adobe Lifecycle Paper Forms Barcode control for the barcode . When we fill this PDF form out with data manually the XFA script embedded within the PDF automatically populates the Paper Forms Barcode control with the PDF417 barcode . When I run PDFTK Server s form fill command to populate the PDF with the XFDF data I build-server side I believe the XFA and hence any intelligence behind the Paper Forms Barcode control is automatically removed from the resulting output PDF . I can optionally remove the Paper Forms Barcode control and use any other control available . pdf417-js https : github.com bkuzmic pdf417-js seems to get my close to building a PDF417 barcode but it s client-side . And also I can t see a way to build an image output . From my research it seems I might need to remove the existing Paper Forms Barcode control and add an image somehow to the PDF . Then possibly use PDFTK to somehow merge a PDF that I have filled with data from my existing process with another PDF that simply has the barcode . I never seen an example of XFDF or FDF inserting an image into the PDF . I ve read where one can dynamically add an image icon to a button control via FDF I ve found no hard example of this but haven t been able to get anything working . .. . Answer : FDF does support inserting images as icons into Button fields . I am however not sure whether XFDF does it . You may have to convert the image into PDF format . For an industrial-strength use you might consider dedicated tools such as FDFMerge by Appligent which would also allow to selectively flatten the barcode field and others too . Comment : I tested this with a Acroform PDF . I placed a button on one of the forms we use and set the attribute layout icon only and chose an icon test.jpg from my filesystem . I saved and did an export to both XFDF and FDF . The button was not in the output of either file . Comment : will you kindly remove your answer because I d like to delete my question as I have received multiple negative reviews of it . Comment : The image is not exported you d have to look at the FDF specification which is part of the PDF specification for the complete set of commands . Comment : Don t bother about some downvotes . There are a bunch of ignorant idiots hanging around here downvoting any question concerning PDF Acrobat and JavaScript . I can t name them but I find many such questions downvoted . Otherwise it would be a moderator who could delete the whole question at your request . Comment : @Aaron : this is correct . PDF forms do not know about an image control . There is a possibility to insert images using libraries but in this case the image has to be completely rendered before it can be inserted .",
"Question : How to open or view xfdf files in Illustrator . I know it can viewed in PDF but how to view it in Illustrator . Any advice or references is highly appreciated . .. . Answer : XFDF files are data files for PDF forms they cannot be viewed in Illustrator as there is nothing to see in them . They are XML files that contain field names and field values . A XFDF file combined with the corresponding empty PDF form will give you a filled in PDF form .",
"Question : I have a system that prepopulates PDF fields via XFDF . THe XFDF code seems fine but when I try to open it with the header in PHP PDF fires an error . If I ignore it and refresh the page it works fine and poplulates the form correctly . Below is the XFDF code as well as the header I am using.. . .. . .. . Any idea why PDF doesnt display it right away xml version 1.0 encoding UTF-8 xfdf xmlns http : ns.adobe.com xfdf xml : space preserve .. . .. . fields .. . .. . field name user name value Some Name field .. . .. . field name course name value Some Course field .. . .. . fields .. . .. . f href http : the URL to the PDF that needs to be populated with the XFDF info .. . .. . xfdf .. . .. . I am trying to open the above with the header command below. . .. . .. . header Content-type : application vnd.adobe.xfdf .. . Answer : Use the format recommended by Adobe .. . .. . More information in Adobe s reference document : http : partners.adobe.com public developer en xml xfdf 2.0.pdf",
"Question : This is what I have currently : .. . .. . User submits form-data and gets a download PDF link . The link points to script which generates an XFDF file on the fly and outputs the XFDF file after setting the appropriate headers etc . The XFDF file points to a password-protected PDF which is the generic PDF form that uses the XFDF data to fill in the fields . What I would like : .. . .. . User clicks the download PDF link . XFDF is generated on the fly no file written to server . PDF and XFDF are merged server-side using generic PDF . Contents of final PDF are output to user same as XFDF was originally . Neither the XFDF nor the final PDF are ever saved to server . I was looking at pdftk http : www.accesspdf.com pdftk which has a few options for dealing with FDF XFDF files but all of which assume that a the original XFDF file-exists as a file on the server and b that the resulting PDF should be output as a file on the server . Also pdftk is 4 years old . I was wondering if : .. . .. . a there was a newer equivalent to pdftk out there b if there was a way using a newer pdftk-like tool or using pdftk to use dynamic paths so that the data never has to exist in file form on the server I recently learned about the built-in input output streams using php : but I m still really fuzzy on how to use it but maybe this would be a good place for this .. . Answer : you can access your data from your Java - easy to say hard to do : .. . .. . I wrote a command-line utility in Java and a php example how to fill pdf forms dynamically on-the-fly no files written to disk on the sever side and serve filled in pdf documents to the browser : https : sourceforge.net projects pdfformfiller2 .. . .. . Its input format is much simpler than XFDF . Escaping encoding function are provided in the php example . It fixes a bug in Adobe Reader UTF-8 support .",
"Question : I have some xfdf data as shown here and i need to fill an editable pdf in PHP . Can anyone give me a solution .. . Answer : 1 . Download pdftk https : www.pdflabs.com tools pdftk-the-pdf-toolkit .. . 2 . In case you need to know how to create fdf file through PHP .. . .. . fdf xml version 1.0 encoding UTF-8 xfdf xmlns http : ns.adobe.com xfdf xml : space preserve fields field name first name value tismon value field field name last name value varghese value field fields ids original dbd3aadc6b6b85761ca83030e0558363 modified 1362548354 f href unlocked.pdf xfdf file-put-contents file name.fdf fdf .. . .. . 3.Fill FDF to PDF .. . .. . or you do this .. . .. . Note : to make the file output fillable you just ignore flatten in both cases : exec root resources PDFtk bin pdftk fillablePDF.pdf fill form file name.fdf output output.pdf 2 1",
"Question : I am currently using Excel to populate a PDF file with form fields . It all works but it exports it as a .xfdf . Does anyone know how I can save it as a pdf instead Comment : I m not familiar with the process you re using but I note that your file name ends-with .xfdf therefore it will create an .xfdf file . I don t believe that simply changing that extension to .pdf will create a PDF file though . Comment : I tried doing that but when opening the file generated it says it s corrupt and can t be opened . : Comment : Have you ever thought about recreating the pdf with Excel filling it up with your data and then save the whole thing as pdf Do you must use your pdf template Comment : Worth a shot.. . a Google search https : www.google.com search q excel+vba+xfdf ie utf-8 oe utf-8 for excel-vba xfdf reveals that A your question is already the 3rd result and B the first result http : www.myengineeringworld.net 2013 10 read-and-write-pdf-forms-from-excel-vba.html looks to be a fully implemented solution to do what you re after . Comment : @JLILIAmen I did but it s not something that I would be allowed to do . I have to use the current template . .. . Answer : XFDF is the XML flavor of FDF . FDF stands for Forms Data Format . It is a file-format to store data without the actual content of a PDF . FDF uses PDF syntax to store this data . XFDF uses XML . You can t convert an FDF or XFDF file to PDF because there is too much information missing . You can import an X FDF file into a PDF that has corresponding AcroForm fields . Please take a look at the ImportXFDF http : itextpdf.com sandbox acroforms ImportXFDF example . For that example I wrote a simple XFDF file : data.xfdf http : itextpdf.com sites default files data.xfdf : .. . .. . This information is not sufficient to create a PDF but as you can see there is a reference to a template PDF file : Requisition Fillable.pdf http : itextpdf.com sites default files Requisition Fillable.pdf . If you put data.xfdf and Requisition Fillable.pdf in the same directory and you open data.xfdf you will see the following message : .. . .. . enter image description here http : i.stack.imgur.com z8XJO.png .. . .. . Adobe Reader opened the XFDF file found the reference to the PDF template opened the template and now asks you if you want to import the data . If you click on the Options button and you allow the import you will get this result : .. . .. . enter image description here http : i.stack.imgur.com E3G6d.png .. . .. . The problem you are experiencing is simple : you don t have the file Requisition Fillable.pdf anywhere . You may also want to avoid that people are able to change the data that is filled in . You can solve this by merging the XFDF file and its template programmatically : .. . .. . Mind the following line : .. . .. . This will flatten the form : the fields will no longer be fields they will just be like any other content . You end up with a regular PDF : xfdf merged.pdf http : itextpdf.com sites default files xfdf merged.pdf .. . .. . enter image description here http : i.stack.imgur.com FO9Qf.png .. . .. . Obviously this will only work if the form in this case Requisition Fillable.pdf corresponds with the data in the XFDF stream . For instance : my template will work with your data for the fields Submitted by and Shipping address . It won t work for the fields Job Name and Special Instructions because those fields don t exist in my template . In my template those fields are named Job name and Special instructions do you see the lower cases instead of the upper case If you want to use my template you ll have to change those two field names either in your XFDF file or in the PDF template . Also : my example is written in Java . As you are working in VB you ll have to use the .NET version of iText which is called iTextSharp . An experienced VBA developer shouldn t have any problem porting my example from Java to VB . Just think of the Java as-if it were pseudo-code . DISCLAIMER : the above example requires iText . I am the CEO of the iText Group and the example was taken from my book iText in Action - Second Edition . Comment : wow this is an amazing answer . It does what i m looking for . Thanks",
"Question : I have a system that prepopulates PDF fields via XFDF . THe XFDF code seems fine but when I try to open it with the header in PHP PDF fires an error . If I ignore it and refresh the page it works fine and poplulates the form correctly . Below is the XFDF code as well as the header I am using.. . .. . .. . Any idea why PDF doesnt display it right away xml version 1.0 encoding UTF-8 xfdf xmlns http : ns.adobe.com xfdf xml : space preserve .. . .. . fields .. . .. . field name user name value Some Name field .. . .. . field name course name value Some Course field .. . .. . fields .. . .. . f href http : the URL to the PDF that needs to be populated with the XFDF info .. . .. . xfdf .. . .. . I am trying to open the above with the header command below. . .. . .. . header Content-type : application vnd.adobe.xfdf .. . Answer : Try : Comment : Nope.. . didnt work...getting XML starting with an invalid character but thank you for trying to help me : .",
"Question : This is what I have currently : .. . .. . User submits form-data and gets a download PDF link . The link points to script which generates an XFDF file on the fly and outputs the XFDF file after setting the appropriate headers etc . The XFDF file points to a password-protected PDF which is the generic PDF form that uses the XFDF data to fill in the fields . What I would like : .. . .. . User clicks the download PDF link . XFDF is generated on the fly no file written to server . PDF and XFDF are merged server-side using generic PDF . Contents of final PDF are output to user same as XFDF was originally . Neither the XFDF nor the final PDF are ever saved to server . I was looking at pdftk http : www.accesspdf.com pdftk which has a few options for dealing with FDF XFDF files but all of which assume that a the original XFDF file-exists as a file on the server and b that the resulting PDF should be output as a file on the server . Also pdftk is 4 years old . I was wondering if : .. . .. . a there was a newer equivalent to pdftk out there b if there was a way using a newer pdftk-like tool or using pdftk to use dynamic paths so that the data never has to exist in file form on the server I recently learned about the built-in input output streams using php : but I m still really fuzzy on how to use it but maybe this would be a good place for this .. . Answer : There are commercial applications that do that you can find some at pdfstore.com but with some programming you can create your own using the same library that pdftk is using to process PDF files : iText http : itextpdf.com There is also a .NET version - iTextSharp . By doing that you can access your data from your Java or .NET program and it never needs to exist in file form you could get it out of the database directly . You can also recompile pdftk with a newer version of iText - that way you can the latest PDF processing capabilities and the ease of use that you have with pdftk . You would still need a XFDF file however .",
"Question : I m using XFDF files to fill out PDF-forms serverside with PHP and pdftk but my problem is that no non-english characters etc . are printed to the form fields . Here is the function I use to parse the XFDF file : .. . .. . And the resulting XFDF file looks like this : .. . .. . The fields with english letters print perfectly but letters with acutes graves or scandinavian additions wont transfer to the PDF file . EXCEPT for some reason .. . .. . works perfectly and prints The command I run is .. . .. . This does not result any errors . I m using Debian 6.0 PHP 5.3.3-7+squeeze13 and the pdftk version is 1.44-5 .. . .. . UPDATE I noticed that if I don t flatten the generated file and open it the characters are printed correctly when the field is activated but hidden again when the field is unfocused . If I manually type anything to the file the special-characters will show up also . Saved and reopened file however doesn t show the text unless again some text is added . UPDATE 2 Got the damn thing fixed . Originally the forms were made with Adobe Acrobat Pro on OSX Snow Leopard . Now I remade the forms with LibreOffice + Oracle PDF Import plugin and everything seems to be working .. . Answer : It s because you use htmlentities in your PHP script . That converts the accented symbols to xxxx .. . .. . Set your XML encoding to iso-8859-1 or WINDOWS-1252 and leave out the htmlentities in your PHP script .. . .. . Another thing to try is to use utf8 encode instead of htmlentities and not modify the XML-encoding Comment : So I changed the encoding to ISO-8859-1 and removed the htmlentities . Now results value value in the XFDF file and the value is printed just simply . What am I not understanding Comment : I used utf8 decode to change value value to value value but now again the character won t print to the field .",
"Question : For customised forms instead of creating html forms and using that to get input from user how can we use PDF to get input from user and when posting how to store all input in xfdf . Can any one please help me to solve this issue and v r using php .. . Answer : Instead of creating a HTML form you create a PDF form and submit the data as XFDF which can then easily imported into a database for example . For creating PDF forms there are quite a few tutorials around .",
"Question : null .. . Answer : I have a recordset with client data I have created a PDF with form fields populated an HTML form with inputs named the same as pdf fields submitted the form to xfdf and opens the pdf with the fields correctly completed . What I need to do is be able to cycle every record in the recordset populate the pdf save it with a unique name and move to next record in the recordset .. . .. . I am not using any pdf addons just printing the xfdf to header Content-Type : application vnd.adobe.xfdf .. . .. . I am open to suggestion like batch creating the xfdf files then using another scripting-language to merge the xfdf with the pdf and saving the pdf output with a unique name . Any help will be greatly appreciated . Comment : Do you need the xfdf step or would a direct pass be possible Additionally : Do you search a free solution or would a paid version work too",
"Question : This is what I have currently : .. . .. . User submits form-data and gets a download PDF link . The link points to script which generates an XFDF file on the fly and outputs the XFDF file after setting the appropriate headers etc . The XFDF file points to a password-protected PDF which is the generic PDF form that uses the XFDF data to fill in the fields . What I would like : .. . .. . User clicks the download PDF link . XFDF is generated on the fly no file written to server . PDF and XFDF are merged server-side using generic PDF . Contents of final PDF are output to user same as XFDF was originally . Neither the XFDF nor the final PDF are ever saved to server . I was looking at pdftk http : www.accesspdf.com pdftk which has a few options for dealing with FDF XFDF files but all of which assume that a the original XFDF file-exists as a file on the server and b that the resulting PDF should be output as a file on the server . Also pdftk is 4 years old . I was wondering if : .. . .. . a there was a newer equivalent to pdftk out there b if there was a way using a newer pdftk-like tool or using pdftk to use dynamic paths so that the data never has to exist in file form on the server I recently learned about the built-in input output streams using php : but I m still really fuzzy on how to use it but maybe this would be a good place for this .. . Answer : I took khkremer s advice myself and built a small .net exe in C to create a PDF from an xfdf file based on the itextsharp library . It will still need to be called using passthru but it s nice and tiny . My version also has the option to insert a hidden-field into a pdf since I needed that functionality for my project . You will need to download and add the reference to the iTextSharp.text.pdf assembly . Hope it helps .. . .. .",
"Question : I need to show a PDF file with data this data is a XFDF file . So the process works in my machine I open the XFDF and automatically the PDF appears with a data . The problem is when I make this process in a web environment the HTML page does not show anything . I have 2 files : the PDF is TestForm1.pdf and the XFDF is TestForm1.xfdf . I can embed an empty PDF and it works : .. . .. . But following with the XFDF does not work : .. . .. . The code of my XFDF file is : .. . .. . Please I need help or guide about this issue . Regards . Comment : dpastov.blogspot.com 2010 01 http : dpastov.blogspot.com 2010 01 open-xfdf-file-in-browser-using-abobe.html Comment : I tried this solution but It doesn t work . Thanks . .. . Answer : Been a while since you posted . Sorry to revive . Been working on this same issue . Solve the problem by changing the href path in your XFDF file to the full server path that the pdf is located in . i.e . http : google.com my.pdf",
"Question : I try to create Applescript to extract value from .xfdf .. . .. . XFDF .. . .. . Applescript .. . .. . When I run the script I get this error : System Events got an error : Can t get XML element p of XML element xfdf of contents of XML file . Is there anywhere I can extract these value from the XML . Value to extract out popup p . Edit .. . Answer : You are directly asking the xfdf element for p but xfdf is not its parent . You need to dig down into the hierarchy to reach it . Another option is to use the XML Tools Scripting Addition http : www.latenightsw.com freeware xml-tools from Late Night Software . Comment : im getting error Can t make xfdf into type integer . number -1700 from xfdf to integer Comment : Make sure theXMLFile is an XML file element . I ve updated the code in my answer to that effect . Comment : its only extract p . How i get from popup values like popup open yes page 0 rect 431.99999999898483 637.7400000011133 551.9999999989849 750.2400000011135 Comment : Using the System Events dictionary https : developer.apple.com library mac documentation applescript conceptual applescriptx concepts work with as.html apple ref doc uid TP40001568-1153006 shows that you need to access the XML attributes of the popup element . Code has been edited to reflect this . Comment : One last question . I ve edited my question to get square value but it throws Can t get XML element square of XML element 1 of XML element 1 of XML element 1 of contents of XML file .Please help .",
"Question : I m using XFDF files to fill out PDF-forms serverside with PHP and pdftk but my problem is that no non-english characters etc . are printed to the form fields . Here is the function I use to parse the XFDF file : .. . .. . And the resulting XFDF file looks like this : .. . .. . The fields with english letters print perfectly but letters with acutes graves or scandinavian additions wont transfer to the PDF file . EXCEPT for some reason .. . .. . works perfectly and prints The command I run is .. . .. . This does not result any errors . I m using Debian 6.0 PHP 5.3.3-7+squeeze13 and the pdftk version is 1.44-5 .. . .. . UPDATE I noticed that if I don t flatten the generated file and open it the characters are printed correctly when the field is activated but hidden again when the field is unfocused . If I manually type anything to the file the special-characters will show up also . Saved and reopened file however doesn t show the text unless again some text is added . UPDATE 2 Got the damn thing fixed . Originally the forms were made with Adobe Acrobat Pro on OSX Snow Leopard . Now I remade the forms with LibreOffice + Oracle PDF Import plugin and everything seems to be working .. . Answer : I think you will have more luck if you use the following list : .. . .. . 196 for instead of Auml .. . 197 for instead of Aring .. . 214 for instead of Ouml .. . 220 for instead of Uuml .. . 223 for instead of szlig .. . 228 for instead of auml .. . 229 for instead of aring .. . 246 for instead of ouml .. . 252 for instead of uuml .. . .. . I ll let you yourself find out how to extend that list until it reaches completeness : - Comment : Funnily enough there recently was a discussion on the Unicode mailing list coming to the conclusion that character references are largely unnecessary nowadays - . But indeed HTML entities are definitely wrong for an XML format . Comment : While 223 for works 196 for does not . :",
"Question : null .. . Answer : I have created an iPad apps that can draw PDF annotations . And the annotation data will be exported to XFDF format and store in my web system implemented by Java and Spring . Now I want to merge XFDF to an existing PDF file and generate an annotated PDF version when my users view the PDF in the web system . So that they can see the annotations they have drawn in the iPad apps . So my question is how to merge the XFDF to PDF and create a new PDF file for users to view in my web system . I have studied some libraries like iText . It seems I have to parse the XFDF and draw the annotations one by one programmatically . Any other suggestions Thanks in advance . Comment : Currently merging annotations from XFDF into PDF isn t supported in iText . I ve put it on our road map a couple of times but somehow it always fell off the list because there was no customer demand for it only user demand . Maybe I ll implement this as a hobby project . If you want to put it higher on the priority list please create a ticket on the ticketing system for paying customers . Comment : Thanks Bruno . Besides I found that the current XFDFParser does not parse the annotation information . If I have implemented the parser I should have enough data to create PdfAnnotation class from the iText Library and create a new PDF right",
"Question : Hi I have to save this file in xfdf file in C using XmlWriter Class .. . .. . But I am not able save in xfdf file . getting problem to adding Comment : What s the problem Comment : Hi just look up my post http : stackoverflow.com questions 443250 creating-a-specific-xml-document-using-namespaces-in-c-sharp 443306 443306 Comment : What does xfdf have to do with Highlights and Id You need to explain how your code relates to your XML and what the problem is . As an aside I wouldn t write XML like this unless you have a very good reason like this XML is huge . Look at LINQ to XML . Comment : I have to create the xfdf file Like please chek this link : - partners.adobe.com public developer en xml xfdf 2.0.pdf http : partners.adobe.com public developer en xml xfdf 2.0.pdf : Page No-8 .. . Answer : Your link doesn t really explain what your problem is but I ll take a sample bit of XML from there and walk you through creating it . The principles can be applied to whichever elements you re actually trying to create . So while you can do this with XmlWriter directly this is generally not a good idea - it s very low-level and as a result not very nice to read or write . For example this is the code it would take to just create the outer element and the first child . Notice how you have to be very careful to match writing the start and end of elements : .. . .. . Alternatively you can use the much higher level cleaner LINQ to XML API to declaratively create your XML : .. . .. . You can use the API to add elements from a sequence in a variety of different ways such as : .. . .. . Or : .. . .. . As ever Google is your friend . There are lots of examples on how to use LINQ to XML . Comment : thanks Charles I am not able to add this attribute in xfdf element xml : space preserve . getting error like this : -Invalid name character in xml : space . The : character hexadecimal value 0x3A cannot be included in a name . Comment : Sorry missed that - added now . Comment : thanks It s working now",
"Question : I try to create Applescript to extract value from .xfdf .. . .. . XFDF .. . .. . Applescript .. . .. . When I run the script I get this error : System Events got an error : Can t get XML element p of XML element xfdf of contents of XML file . Is there anywhere I can extract these value from the XML . Value to extract out popup p . Edit .. . Answer : I have written a recursive helper function that can solve this . It searches the xml looking for a particular name and returns a list of XML Elements you can then iterate over to get your values . The benefit of this is you don t need to know the absolute paths to an Element up front . Example : Comment : im not getting any output Comment : @chinna 82 Make sure you ve got the event log open in AppleScript Editor with the Result toggle un-checked or alternatively change the log calls to display dialog",
"Question : The solution looks like this : .. . .. . 1 . There is a submit button below the form in PDF file . 2 . Submit button is sending XFDF form-data through POST . 3 . When I generate in PHP XFDF file from POST data polish characters encoded in UTF8 are messed up . 4 . When you populate XFDF file back into PDF characters are OK . The question : What Adobe Reader is doing to correctly display this messed up UTF8 characters How to do it in PHP on server-side to have proper UTF8 data Thanks in advance . Comment : What do you mean by messed up Maybe you simply aren t aware of the encoding used for sending that request.. . .. . Answer : Everything was in UTF8 . XFDF files database-connection and tables . The problem was with PHP settings . setlocale LC ALL pl PL pl Polish Poland.28592 .. . .. . And problem solved ."
]
} | [
"yes-answer-long",
"yes-answer-short"
] | fdf | UNK_RELATION |
sc@calculator@40 | sc -- sc is a curses-based spreadsheet @placeholder . | {
"confidence": [
41.27470397949219,
38.171630859375,
37.23698425292969,
34.133399963378906,
32.188941955566406,
30.030330657958984,
30.030330657958984,
27.85494613647461,
24.610546112060547,
22.98043441772461,
18.379131317138672,
17.25042724609375,
14.616999626159668,
14.616999626159668,
14.616999626159668,
14.616999626159668,
14.616999626159668,
14.616999626159668,
13.140288352966309,
13.140288352966309,
13.140288352966309,
13.140288352966309,
13.140288352966309,
13.140288352966309,
13.140288352966309,
13.140288352966309,
13.140288352966309,
13.140288352966309,
13.140288352966309,
13.140288352966309
],
"content": [
"I m looking for a command-line spreadsheet and so far sc https : github.com msharov sc is my best find I explain why at the end of this message .",
"Another missing feature of sc is the community .",
"But the lack of Undo feature http : unix.stackexchange.com questions 55056 how-to-undo-in-spreadsheet-calculator-sc is killing me .",
"PPS : I didn t have enough reputation to post this message with the tag sc so I tagged it Vim instead as Vim users might be interested by this spreadsheet .",
"In fact it has got excellent features that sc lacks but personally I would use sc for the Vim key-bindings the colors and the fact that I can program functions in any language .",
"I did replace the vim tag with sc because vim really has nothing to do with it besides having vim keybindings",
"The SCIM project is an update of SC which includes the Undo feature : github.com andmarti1424 scim https : github.com andmarti1424 scim",
"If there s people around using sc I might be up for setting up a mailing list so we can exchange questions and ideas .",
".. . .. . Appendix : Why sc is the best command-line spreadsheet for me so far : .. . .. . It s still passively maintained .. . has Vim key-bindings .. . functions can be programmed in any language .. . cells can run external commands and return their output in the cell .. . can apply colors to cells and text I use spreadsheets to tell a story or to help me understand something so I need it to be visually obvious what values I can manipulate and where the interesting results are .. . can encrypt decrypt spreadsheets .. . .. . Here is a bit more info about sc : .. . .. . simple tutorial http : www.linuxjournal.com article 10699 .. . manual http : www.chemie.fu-berlin.de chemnet use xspread.html lists most key-bindings .. . step by step manual http : www.economics.utoronto.ca jfloyd stats minmansc.pdf .. . man page http : manpages.ubuntu.com manpages jaunty man1 sc.1.html That s where you will find most info really .. . .. . And here is the Github issue for the Undo feature https : github.com msharov sc issues 5 .",
"Right now when I make a mistake I either have to correct it manually or I have to close the file without saving re-open it and re-do all the recent changes - which is a pain in fact it makes me just want to not use sc at all which is a shame as it s the only spreadsheet that seems to do everything else I want .",
"PS : Another command-line spreadsheet you might want to have look at is teapot http : www.syntax-k.de projekte teapot which also seems excellent and also lacks the Undo feature .",
"I ve come up with a wonky solution haven t tried it yet : as the F-keys are programmable I could make one of them commit my spreadsheet in Git and another one undo my recent changes by reversing to the previous commit .",
"Iam using rsync to copy files from remoter server to local server.The command is as follows : .. . .. . rsync -avrs source-path destination-path .. . .. . Iam able to copy files with space in their names but not the directories.directories with spaces are not getting copied .",
"error : : no such file or directory Kindly suggest",
"These may prove to be good references tecmint.com rsync-local-remote-file-synchronization-commands http : www.tecmint.com rsync-local-remote-file-synchronization-commands and cyberciti.biz faq http : www.cyberciti.biz faq rsync-transfer-filename-that-contains-whitespace",
"You may use the escape character as rsync -avrs src-path directory with space dst-path .",
"This http : www.cyberciti.biz faq rsync-transfer-filename-that-contains-whitespace shows it how .",
"For more information on rsync you may refer this http : www.tecmint.com rsync-local-remote-file-synchronization-commands .",
"How do you deal with the lack of this vital missing feature",
"And maybe also one to redo .",
"That s not ideal really.. .",
"So I would appreciate any better idea .",
"Oh also",
"There is not mailing list nor IRC channel .",
"Any takers",
"It is tagged will take patch and there is a discussion of different ways the feature could be implemented .",
"+1 for putting that much effort into a question .",
"I would like to create a script which find stop pending service on remote-server kill it and start it again .",
"I can use pstool .",
"I am right now doing by individual commands .. . .. . it would be really very helpfull if someone can help"
]
} | {
"confidence": [
50.12429428100586,
14.235888481140137,
12.773844718933105
],
"content": [
"Question : null .. . Answer : I m looking for a command-line spreadsheet and so far sc https : github.com msharov sc is my best find I explain why at the end of this message . But the lack of Undo feature http : unix.stackexchange.com questions 55056 how-to-undo-in-spreadsheet-calculator-sc is killing me . How do you deal with the lack of this vital missing feature Right now when I make a mistake I either have to correct it manually or I have to close the file without saving re-open it and re-do all the recent changes - which is a pain in fact it makes me just want to not use sc at all which is a shame as it s the only spreadsheet that seems to do everything else I want . I ve come up with a wonky solution haven t tried it yet : as the F-keys are programmable I could make one of them commit my spreadsheet in Git and another one undo my recent changes by reversing to the previous commit . And maybe also one to redo . That s not ideal really.. . So I would appreciate any better idea . Oh also Another missing feature of sc is the community . There is not mailing list nor IRC channel . If there s people around using sc I might be up for setting up a mailing list so we can exchange questions and ideas . Any takers .. . .. . Appendix : Why sc is the best command-line spreadsheet for me so far : .. . .. . It s still passively maintained .. . has Vim key-bindings .. . functions can be programmed in any language .. . cells can run external commands and return their output in the cell .. . can apply colors to cells and text I use spreadsheets to tell a story or to help me understand something so I need it to be visually obvious what values I can manipulate and where the interesting results are .. . can encrypt decrypt spreadsheets .. . .. . Here is a bit more info about sc : .. . .. . simple tutorial http : www.linuxjournal.com article 10699 .. . manual http : www.chemie.fu-berlin.de chemnet use xspread.html lists most key-bindings .. . step by step manual http : www.economics.utoronto.ca jfloyd stats minmansc.pdf .. . man page http : manpages.ubuntu.com manpages jaunty man1 sc.1.html That s where you will find most info really .. . .. . And here is the Github issue for the Undo feature https : github.com msharov sc issues 5 . It is tagged will take patch and there is a discussion of different ways the feature could be implemented . PS : Another command-line spreadsheet you might want to have look at is teapot http : www.syntax-k.de projekte teapot which also seems excellent and also lacks the Undo feature . In fact it has got excellent features that sc lacks but personally I would use sc for the Vim key-bindings the colors and the fact that I can program functions in any language . PPS : I didn t have enough reputation to post this message with the tag sc so I tagged it Vim instead as Vim users might be interested by this spreadsheet . Comment : +1 for putting that much effort into a question . I did replace the vim tag with sc because vim really has nothing to do with it besides having vim keybindings Comment : The SCIM project is an update of SC which includes the Undo feature : github.com andmarti1424 scim https : github.com andmarti1424 scim",
"Question : Iam using rsync to copy files from remoter server to local server.The command is as follows : .. . .. . rsync -avrs source-path destination-path .. . .. . Iam able to copy files with space in their names but not the directories.directories with spaces are not getting copied . error : : no such file or directory Kindly suggest Comment : These may prove to be good references tecmint.com rsync-local-remote-file-synchronization-commands http : www.tecmint.com rsync-local-remote-file-synchronization-commands and cyberciti.biz faq http : www.cyberciti.biz faq rsync-transfer-filename-that-contains-whitespace .. . Answer : You may use the escape character as rsync -avrs src-path directory with space dst-path . This http : www.cyberciti.biz faq rsync-transfer-filename-that-contains-whitespace shows it how . For more information on rsync you may refer this http : www.tecmint.com rsync-local-remote-file-synchronization-commands .",
"Question : null .. . Answer : I would like to create a script which find stop pending service on remote-server kill it and start it again . I can use pstool . I am right now doing by individual commands .. . .. . it would be really very helpfull if someone can help"
]
} | [
"yes-answer-long",
"yes-answer-short"
] | calculator | UNK_RELATION |
firefox-addon-sdk@html@137 | firefox-addon-sdk -- the add-on sdk is a set of tools and apis that allow you to create firefox add-ons using standard web technologies @placeholder css and javascript . | {
"confidence": [
63.455989837646484,
62.274593353271484,
61.76305389404297,
60.0770149230957,
59.39591979980469,
59.01765823364258,
57.925933837890625,
57.89335632324219,
57.24966812133789,
56.52129364013672,
56.287906646728516,
56.1793212890625,
55.99525451660156,
55.616966247558594,
54.745521545410156,
54.745521545410156,
54.42327880859375,
54.3376579284668,
54.15984344482422,
53.84201431274414,
53.38419723510742,
53.37852478027344,
53.289371490478516,
53.16566467285156,
52.695289611816406,
52.391319274902344,
52.28256607055664,
51.97105026245117,
51.810768127441406,
51.74767303466797,
51.58627700805664,
51.558799743652344,
51.5080680847168,
51.36562728881836,
50.77462387084961,
50.72134017944336,
50.55460739135742,
50.41217041015625,
50.3432502746582,
50.26586151123047,
50.129085540771484,
49.92118835449219,
49.83456039428711,
49.75010681152344,
49.74482345581055,
49.528629302978516,
48.99283981323242,
48.90543746948242,
48.78526306152344,
48.325477600097656,
48.14733123779297,
48.136940002441406,
48.0533447265625,
48.0533447265625,
47.99186706542969,
47.96473693847656,
47.91610336303711,
47.887935638427734,
47.58486557006836,
47.58486557006836,
47.58486557006836,
47.58258056640625,
47.58258056640625,
47.58258056640625,
47.52580642700195,
47.5136604309082,
47.50675582885742,
47.27604675292969,
47.026405334472656,
46.88331604003906,
46.86796188354492,
46.61916732788086,
46.61745834350586,
46.59298324584961,
46.59161376953125,
46.396949768066406,
46.273372650146484,
46.04276657104492,
46.02359390258789,
45.90024948120117,
45.90024948120117,
45.90024948120117,
45.89525604248047,
45.87244415283203,
45.55256271362305,
45.49338912963867,
45.2022590637207,
44.855960845947266,
44.79853820800781,
44.765159606933594,
44.75527572631836,
44.64615249633789,
44.61423110961914,
44.61423110961914,
44.61423110961914,
44.52887725830078,
44.38286209106445,
44.34185791015625,
44.34185791015625,
44.34185791015625
],
"content": [
"I m developing a Firefox add-on using Add-on SDK .",
"I m creating a Firefox add-on with the Firefox Add-on SDK .",
"I am creating a firefox-addon using the SDK .",
"2- Add-on SDK older method : https : developer.mozilla.org en-US Add-ons SDK .. . .. . The Add-on SDK provides APIs for developing Firefox add-ons and a tool for developing testing and packaging them .",
"The gist of that page is that if you stay with the Add-on SDK APIs your extension should just work in multiprocess Firefox and that if it doesn t then it is a bug in the Add-on SDK https : developer.mozilla.org en-US Add-ons SDK Guides Multiprocess Firefox and the SDK SDK internal incompatibilities .",
"I am creating a firefox add-on with Add-on SDK https : developer.mozilla.org en-US Add-ons SDK .",
"Are you running this code from firefox-addon-sdk",
"It is a Firefox add-on SDK .",
"A more appropriate tutorial in that hierarchy is : Multiprocess Firefox and the SDK https : developer.mozilla.org en-US Add-ons SDK Guides Multiprocess Firefox and the SDK .",
"Is there any way to achieve this using the Firefox Addon SDK",
"I m working on developing a Firefox add-on using the Add-on SDK .",
"I ve create a Firefox addon using the addon sdk https : addons.mozilla.org en-US developers docs sdk latest .",
"firefox version 38.0.1 and addon-sdk version 1.17",
"To modify the add-ons manager in firefox .. . .. . It is truly disappointing but I don t believe either of these is possible with the Add-on SDK .",
"I made an addon to Dektop Firefox using addon-sdk .",
"im trying to install my addon to mobile firefox using addon-sdk .",
"I m trying to create a Firefox addon using addon SDK that will modify how the page is displayed mostly as a training learning exercise .",
"I m develop some extension for Mozilla FireFox using Addon SDK .",
"What is the concurrency process model of Firefox add-ons",
"I moved the link into the firefox-addon-sdk tag wiki https : stackoverflow.com tags firefox-addon-sdk info which is where it belongs IMHO .",
"What are the advantages and disadvantages of using the Add-on SDK to develop my Firefox extension",
"The events module https : developer.mozilla.org en-US Add-ons SDK Low-Level APIs system events offers an emit type event method to create Firefox events .",
"With the coming of multi-process Firefox I have decided to re-write my addon using the Addon-SDK .",
"Firefox-Addon-SDK conforms commonjs but not uses node.js .",
"I made a tutorial on developing extensions using the Firefox addon SDK : .. . .. . How to develop a Firefox extension with the addon SDK http : www.ejectamenta.com news 53 97 How-to-develop-a-Firefox-extension-with-the-addon-SDK.html",
"There is a new much better way of developing Firefox extensions -- Firefox Add-on SDK .",
"According to Addon SDK docs https : developer.mozilla.org en-US Add-ons SDK Tools package json icon : .. . .. . The relative-path from the root of the add-on to a PNG file containing the icon for the add-on .",
"This an .xpi file generated for an Add-on SDK extension using jpm xpi https : developer.mozilla.org en-US Add-ons SDK Tools jpm jpm xpi .",
"I am writing a Firefox add-on and I am using the high-level Firefox Add-on SDK API .",
"@TiagoSilva There are a few ways of making add-ons for Firefox .",
"The name and ID of your Add-on SDK are usually the value of the name https : developer.mozilla.org en-US Add-ons SDK Tools package json Key reference and id https : developer.mozilla.org en-US Add-ons SDK Tools package json Key reference properties you included in your package.json https : developer.mozilla.org en-US Add-ons SDK Tools package json file but may be somewhat different https : developer.mozilla.org en-US Add-ons SDK Guides Program ID .",
"tl dr : We created a firefox-addon using the Addon SDK .",
"I need to show notification on firefox-addon using sdk .",
"I picked the addon sdk for porting my chrome extension to firefox .",
"I followed the tutorial on creating a popup for an add-on https : developer.mozilla.org en-US Add-ons SDK Tutorials Display a Popup in Firefox and it worked great .",
"Add-on SDK is perfect for simple add-ons .",
"I m using Webstorm 7 for firefox add-on sdk development .",
"I m capturing the HTTP requests in a Firefox Add-on SDK extension .",
"I am using the Firefox Add-on SDK to create an extension and am performing a PageMod .",
"You should probably look at the Add-on SDK tutorials https : developer.mozilla.org en-US Add-ons SDK Tutorials .",
"If you are using the latest sdk maybe this helps : https : developer.mozilla.org en-US Add-ons SDK High-Level API tabs Converting to XUL tabs and https : developer.mozilla.org en-US Add-ons SDK High-Level APIs windows Converting to DOM windows .",
"There are also the Low-Level APIs https : developer.mozilla.org en-US Add-ons SDK Low-Level APIs of remote parent https : developer.mozilla.org en-US Add-ons SDK Low-Level APIs remote parent and remote child https : developer.mozilla.org en-US Add-ons SDK Low-Level APIs remote child which deal with processes https : developer.mozilla.org en-US Add-ons SDK Low-Level APIs remote parent Process and frames https : developer.mozilla.org en-US Add-ons SDK Low-Level APIs remote parent Frame .",
"If you only want answers pertaining to the Addon-SDK then don t use the firefox-addon tag in the future .",
"I have already coded most of a Firefox add-on using the Add-on SDK API .",
"The Add-on SDK https : developer.mozilla.org en-US Add-ons SDK produces a restartless https : developer.mozilla.org en-US Add-ons Bootstrapped Extensions extension that uses the standard restartless startup methods .",
"As for modifying the add-ons manager in firefox I have tried Nickolay Ponomarev s XUL with the Add-on SDK http : asqueella.blogspot.com 2010 03 jetpack-sdk-and-xul-extensions.html without any success whatsoever .",
"Are you using the Add-on SDK",
"developer.mozilla.org en-US Add-ons SDK Low-Level APIs https : developer.mozilla.org en-US Add-ons SDK Low-Level APIs window utils",
"As stated there you create a listener like so : .. . .. . All the docs you look at should be a subset of developer.mozilla.org en-US Add-ons SDK https : developer.mozilla.org en-US Add-ons SDK .",
"Are you using the new addon SDK",
"Currently you need the cfx tool to build add-ons if you want to use the Addon SDK .",
"main.js .. . .. . I have developed my add-ons using the Add-on SDK with the help of the below link 1 https : developer.mozilla.org en-US Add-ons SDK Tutorials Installation 2 https : developer.mozilla.org en-US Add-ons SDK Tutorials Getting started and my add-ons is installed successfully .",
"You can get Environment information - developer.mozilla.org en-US Add-ons SDK Low-Level APIs https : developer.mozilla.org en-US Add-ons SDK Low-Level APIs system environment",
"developer.mozilla.org en-US Add-ons SDK Low-Level APIs io file https : developer.mozilla.org en-US Add-ons SDK Low-Level APIs io file - shows you how to list files in a directory .",
"But the Add-on SDK does not have a way for you to do so through any of the Add-on SDK APIs .",
"I m not familiar with Firefox SDK but I m sure it is possible .",
"see this addon here : https : addons.mozilla.org en-US firefox-addon ghforkable src search .. . .. . in the chrome.manifest file we set the contentaccessible parameter to yes .. . .. . you dont need sdk for this addon .",
"I have the following code to create a file from a Firefox Add-on SDK extension .",
"I m trying to get my extension using Firefox Addon SDK 1.17 to work on SeaMonkey 2.30 .",
"I would like to sync the settings of my Firefox addon using require sdk preferences service .",
"I am looking for a way to prevent the closing of a tab using the firefox-addon-sdk .",
"Related near duplicate : How to debug a Firefox Add-on SDK extension",
"I am working on code for a Firefox Add-on SDK extension .",
"I m build an SDK Firefox Add-on that is supposed to read a tab s URL and parse it .",
"Add a context menu item using sdk context-menu https : developer.mozilla.org en-US Add-ons SDK High-Level APIs context-menu .",
"I m using the Firefox Add-on SDK to create a Panel when the user selects text in a page .",
"Using the Add-on SDK sdk context-menu https : developer.mozilla.org en-US Add-ons SDK High-Level APIs context-menu API there is no way to directly add an item to anywhere but the bottom of the context menu .",
"In general Add-on SDK extensions will use one of the High Level APIs https : developer.mozilla.org en-US Add-ons SDK High-Level APIs to load content scripts https : developer.mozilla.org en-US Add-ons SDK Guides Content Scripts .",
"For more details about that see developer.mozilla.org en-US Add-ons SDK Guides Content Scripts https : developer.mozilla.org en-US Add-ons SDK Guides Content Scripts Interacting with page scripts",
"Add-on SDK : Using the data directory : .. . .. . For an Add-on SDK extension instead of using a chrome : URL it is more appropriate to use the add-on base directory data directory and obtain the URL reference to your file using the sdk self API https : developer.mozilla.org en-US Add-ons SDK High-Level APIs self .",
"It is non-restartless because Firefox does not allow changing window icons from restartless add-ons .",
"Add-ons should add their icon to the add-on bar that s the official recommendation for all extensions starting with Firefox 4 .",
"Starting with the Add-on SDK 1.4 you have the simple-prefs module https : developer.mozilla.org en-US Add-ons SDK High-Level APIs simple-prefs .",
"But the target page I want add-on to work on has CSP to block frame-src schema data : I am using Firefox AddOn sdk .",
"However I cannot find any way to create menus like this and add them to an Addon-SDK toolbar .",
"The Add-on SDK that you are using indirectly via the Add-on Builder provides a request package https : developer.mozilla.org en-US Add-ons SDK High-Level APIs request that is essentially a wrapper around XMLHttpRequest you should use it .",
"You can create and require local modules https : developer.mozilla.org en-US Add-ons SDK Tutorials Creating reusable modules Creating separate modules .",
"See Using profiles https : developer.mozilla.org en-US Add-ons SDK Tools jpm Using profiles on MDN .",
"Add-on SDK-based extensions https : developer.mozilla.org en-US Add-ons SDK .. . 2 .",
"SDK : window utils https : developer.mozilla.org en-US Add-ons SDK Low-Level APIs window utils .. . 2 .",
"SDK : windows https : developer.mozilla.org en-US Add-ons SDK High-Level APIs windows .. . 3 .",
"Also read up on the Module structure of the SDK https : developer.mozilla.org Add-ons SDK Guides Module structure of the SDK .",
"So effectively anytime you create an Add-on SDK add-on you have really created a restartless add-on that is wrapped by the Add-on SDK .",
"You are probably using jpm run https : developer.mozilla.org en-US Add-ons SDK Tools jpm jpm run to test your add-on .",
"But I need to use part of native firefox sdk .",
"The Add-on SDK currently marks your add-on as compatible with anything between Firefox 4 Beta 7 and Firefox 8 Alpha 1 .",
"As of July 2016 : .. . .. . You can use the Firefox Add-on Debugger https : developer.mozilla.org en-US Add-ons Add-on Debugger .",
"However I cannot manage to find whether the data stored by a Firefox add-on using simple-storage https : developer.mozilla.org en-US Add-ons SDK High-Level APIs simple-storage will be automatically synced whenever a user of the add-on is signed into Firefox Sync https : support.mozilla.org en-US kb how-do-i-set-up-firefox-sync .",
"After I ve read a few tutorials about how to build firefox add-ons using XUL I realize there s another way : using add-ons sdk which from what I understand is only for firefox 4+ versions only .",
"@Noitidart is the require chrome specific to Add-ons SDK",
"I m trying to convert a Google Chrome extension to Firefox using Addon SDK Jetpack .",
"following the Tutorials https : developer.mozilla.org en-US Add-ons SDK i made an addon which is working with jpm run but not after installing the xpi file .",
"Like alert only better : notifications : developer.mozilla.org en-US Add-ons SDK High-Level APIs https : developer.mozilla.org en-US Add-ons SDK High-Level APIs notifications",
"context-menu https : developer.mozilla.org en-US Add-ons SDK High-Level APIs context-menu and page-worker https : developer.mozilla.org en-US Add-ons SDK High-Level APIs page-worker .",
"@miked unload : developer.mozilla.org en-US Add-ons SDK Tutorials https : developer.mozilla.org en-US Add-ons SDK Tutorials Listening for load and unload exports.onUnload 28 29",
"Does the Firefox SDK API offer some way to alter this filename",
"Getting Started guide to using the Firefox Add-on SDK first code example here : https : developer.mozilla.org en-US Add-ons SDK Tutorials Getting started produces an error : .. . .. . .. . it goes on .. . .. . This has apparently been a problem for a while : .. . .. . e.g .",
"Some change have been made to RightJS to make it work with Firefox Add-on SDK JetPack .",
"Unfortunately Add-on SDK doesn t seem to support asynchronous file reading so the read will block the Firefox UI .",
"So how do I change the size of a Firefox Add-on SDK popup to show all content"
]
} | {
"confidence": [
76.11261749267578,
74.95481872558594,
74.63774108886719,
70.81060028076172,
70.50064849853516,
70.27335357666016,
69.73402404785156,
69.6161880493164,
69.60633087158203,
69.2764892578125,
68.02981567382812,
67.91191864013672,
67.75386810302734,
67.74345397949219,
67.28349304199219,
67.11064910888672,
66.842041015625,
66.50212097167969,
65.9864730834961,
65.87785339355469
],
"content": [
"Question : I m planning to develop a simple Firefox extension that will shorten URL of a currently active tab display a popup with the shortened URL and place it into the clipboard . In Google Chrome this would be pretty easy according to http : developer.chrome.com extensions getstarted.html -- pure JavaScript plus a few calls to JavaScript API-s of interacting with the browser s UI . However after searching around for a good Firefox extensions tutorial the most officially-looking links I found are : .. . .. . https : developer.mozilla.org en-US docs Extensions .. . https : developer.mozilla.org en-US docs Building an Extension .. . How do I write a Firefox Addon http : stackoverflow.com questions 24772 how-do-i-write-a-firefox-addon .. . .. . According to them it looks like I will have to learn the XUL language for even the simplest interactions with the browser s UI . On top of that I will have to set up custom Firefox profile so as not to hose my default profile during development create complicated directory structure write manifest in obscure XML figure out how to package and test whatever I implement etc . It s 2013 isn t there an easier way of building Firefox extensions .. . Answer : There are two official ways https : developer.mozilla.org en-US Add-ons for developing add-ons each of them has pros and cons : .. . .. . 1- WebExtensions newer method : https : developer.mozilla.org en-US Add-ons WebExtensions .. . .. . WebExtensions are the future of Firefox add-ons . If you can use the WebExtensions API it s the best choice . You can develop and publish WebExtensions right now but they re still in an early state . 2- Add-on SDK older method : https : developer.mozilla.org en-US Add-ons SDK .. . .. . The Add-on SDK provides APIs for developing Firefox add-ons and a tool for developing testing and packaging them .",
"Question : With the coming of multi-process Firefox I have decided to re-write my addon using the Addon-SDK . My addon is mainly a toolbar with an extensive set of menus . The addonsdk does not provide any way to build menus . So I found this method http : stackoverflow.com a 31403465 1038866 by which I can add them to an existing toolbar . However I cannot find any way to create menus like this and add them to an Addon-SDK toolbar . So I thought I would just create the toolbar the same way I am creating the menus . So I am basically trying to create an XUL toolbar via javascript I think : .. . .. . What do I have to do to make this toolbar actually get built and display in the browser update .. . .. . The reason I don t use an SDK toolbar is because the toolbar is created async and does not exist in time to get a handle on it s html id . Even if I fish the html id using the browser toolbox it doesn t get added to the window . Comment : About the async problem why can t you defer the execution until it loads Comment : Can I do that you ask why I can t defer the execution - I can t because I didn t know I could : Comment : Normally asynchronous functions have callbacks that allow you to execute a function when the loading is done . I m not familiar with Firefox SDK but I m sure it is possible . Comment : Thanks for the ideas Friend . I ll have to get some things together and fight the learning curve... . Comment : This link https : developer.mozilla.org en-US Add-ons Overlay Extensions XUL School Adding Events and Commands and this other link https : developer.mozilla.org en-US Add-ons Code snippets On page load might help you out.. . .. . Answer : You need to add MyBar to the toolbox : Comment : This is it Thanks Gijs",
"Question : I m planning to develop a simple Firefox extension that will shorten URL of a currently active tab display a popup with the shortened URL and place it into the clipboard . In Google Chrome this would be pretty easy according to http : developer.chrome.com extensions getstarted.html -- pure JavaScript plus a few calls to JavaScript API-s of interacting with the browser s UI . However after searching around for a good Firefox extensions tutorial the most officially-looking links I found are : .. . .. . https : developer.mozilla.org en-US docs Extensions .. . https : developer.mozilla.org en-US docs Building an Extension .. . How do I write a Firefox Addon http : stackoverflow.com questions 24772 how-do-i-write-a-firefox-addon .. . .. . According to them it looks like I will have to learn the XUL language for even the simplest interactions with the browser s UI . On top of that I will have to set up custom Firefox profile so as not to hose my default profile during development create complicated directory structure write manifest in obscure XML figure out how to package and test whatever I implement etc . It s 2013 isn t there an easier way of building Firefox extensions .. . Answer : Yes there are three different techniques you can use to build extensions : .. . .. . 1 . Add-on SDK-based extensions https : developer.mozilla.org en-US Add-ons SDK .. . 2 . manually bootstrapped restartless extensions https : developer.mozilla.org en-US Add-ons Bootstrapped extensions .. . 3 . overlay extensions https : developer.mozilla.org en-US Add-ons Overlay Extensions .. . .. . You can read comparison between here https : developer.mozilla.org en-US Add-ons Comparing Extension Toolchains .. . .. . If you can it s advisable to use the Add-on SDK which uses the restartless extension mechanism but simplifies certain tasks and cleans up after itself . If the Add-on SDK isn t sufficient for your needs implement a manual restartless extension instead . Steps to get started with Add-on SDK-based extensions .. . .. . 1 . Installation https : developer.mozilla.org en-US Add-ons SDK Tutorials Installation .. . Installation on OS X FreeBSD Linux https : developer.mozilla.org en-US Add-ons SDK Tutorials Installation Installation on OS X.2C FreeBSD.2C Linux .. . Installation on OS X using Homebrew https : developer.mozilla.org en-US Add-ons SDK Tutorials Installation Installation on OS X using Homebrew .. . Installation on Windows https : developer.mozilla.org en-US Add-ons SDK Tutorials Installation Installation on Windows .. . 2 . Create user interfaces https : developer.mozilla.org en-US Add-ons SDK Tutorials Create user interfaces .. . 3 . Interact with the browser https : developer.mozilla.org en-US Add-ons SDK Tutorials Interact with the browser Comment : The bin activate part in Windows is broken when Python is installed in Program Files x86 .",
"Question : Can somebody tell me what is required to turn on a debugger when testing a Firefox Add-on SDK extension on Windows 7 64 bit . I m launching the add-on via the command-line with the command jpm run . I ve tried bring up the debugger via F12 . But I can t see my JavaScript file s there . A step-by-step guide would be useful . Comment : Related near duplicate : How to debug a Firefox Add-on SDK extension http : stackoverflow.com questions 27286845 how-to-debug-a-firefox-addon 38363577 38363577 . .. . Answer : Use the command jpm run --debug https : developer.mozilla.org en-US Add-ons SDK Tools jpm jpm run . Then click on OK when asked to accept the incoming connection : .. . .. . Accept Incoming Connection http : i.stack.imgur.com s3kMa.png You will then have a debugger window from which you can select your JavaScript files : .. . .. . Debugger window http : i.stack.imgur.com wu6Jh.png",
"Question : I m quite new to addon development with firefox . I picked the addon sdk for porting my chrome extension to firefox . What would you suggest to display a options page options panel options window to a user Loading a options.html file from my addon directory works quite fine addTab data.url options.html but i can t attach page-mods to it as far as a i know . Therefore i can t communicate with the main.js to save my options right Also how should the user access it In chrome this is quite easy . Rightclick your icon - options and it opens up for you . Are there ways to create a simliar behaviour for firefox Any suggestions on that .. . Answer : Starting with the Add-on SDK 1.4 you have the simple-prefs module https : developer.mozilla.org en-US Add-ons SDK High-Level APIs simple-prefs . It will automatically generate inline options for your add-on - these are displayed directly on your extension s page in the Add-ons Manager . That should be the preferred way to display options . The downside : opening the options programmatically is non-trivial even for classic add-ons . And the SDK doesn t seem to support complicated controls documentation of what s possible with inline options https : developer.mozilla.org en Extensions Inline Options only the most basic ones . If you want to roll your own you probably want to integrate an Options button into a drop-down panel https : developer.mozilla.org en-US Add-ons SDK High-Level APIs panel Attaching panels to buttons . You should also be able to attach a content-script to it via page-mod package https : developer.mozilla.org en-US Add-ons SDK High-Level APIs page-mod something like this should work : .. . .. . Downside here : using the standardized way to display add-on options via Add-ons Manager won t be possible the SDK doesn t support anything but inline options . Comment : All right used the simple-prefs module . Works fine thanks for that Comment : thanks @Wladimir. . nice post. . Comment : finally i completed a nice implementation of what you said . I ll surely post the working sample of what i did. . thanks for the hints. . Comment : To hide address and search bars you can use addon-page module . Downside is it demands file to be called index.html so until they make it right there is a user made module addon-tab https : github.com lduros addon-tab .",
"Question : I am working on code for a Firefox Add-on SDK extension . I want to debug it . Can we debug it like we do in Firebug Firebug is not working for my add-on . Comment : Enable developer preferences and then open browser console . Ctrl + Shift + J . Comment : tHANKS . WHAT I AM NOT ABLE TO dEBUG HTML HERE. . .. . Answer : First result https : developer.mozilla.org en-US Add-ons Add-on Debugger on Google .. . .. . To enable the Add-on Debugger you need to check the Enable chrome and addon debugging and Enable remote debugging settings in Firefox . .. . To do this select Toggle Tools from the Web Developer menu in Firefox open the Developer Tools Settings and check Enable chrome and addon debugging and Enable remote debugging . .. . Now open the Add-on Manager . Next to the entry for your add-on you will see a button labeled Debug . Click this button to launch the debugger . .. . Next you ll see a dialog asking you to accept an incoming connection . Click OK and the debugger will start in a separate window . Comment : What to do when the debug button appears for other add-ons but not for mine . Something needs to be done to enable debugging in my code Comment : To enable debugging for your addon open up about : config and add this : extensions.myAddonID.sdk.console.logLevel - where myAddonID is the same as your id in package.json . Set the value to all .",
"Question : I m working on developing a Firefox add-on using the Add-on SDK . My extension is working fine when using SDK but when I create the .xpi file to add it manually to the browser it does not show the extension icon . I tried to change the icon path in the package.json file but still it didn t shows the icon . package.json file : .. . .. . Widget panel used to display icon : .. . .. . Can anyone help me resolve the issue Thank You . Comment : Not sure what you mean - is the icon missing for the widget in the addon manager both For the widget icon does the file actually exist in your add-on project at data images Phone-icon19.png Comment : Yes the icon is missing for the widget but it is missing only when the extension is added using the .xpi file . when I run extension using the cfx run the icon is showing . The phone icon image is exist in the data directory . Comment : I have the same problem . And the icon do shows in the add-ons manager . .. . Answer : According to Addon SDK docs https : developer.mozilla.org en-US Add-ons SDK Tools package json icon : .. . .. . The relative-path from the root of the add-on to a PNG file containing the icon for the add-on . Defaults to icon.png . So your package.json should look like this :",
"Question : I am developing yet another password manager add-on for Firefox . My add-on needs to : .. . .. . Add two context menu items to each password field . Open a dialog box or floating panel when the menu item is selected . Access a specific method of a specific XPCOM component . Fill the password field . Include a preferences window . Be compatible with Firefox 4.0 . Preferably also : .. . .. . Run on Firefox 3.5 and 3.6 . Some users don t update to the latest version . Firefox 4.0 won t run on a PowerPC Mac . Install without a restart on Firefox 4.0 . Allow for localization . I have tried the Add-on SDK formerly known as Jetpack and it makes it very easy to start developing . However I find that HTML cannot easily create native looking dialog boxes and that the SDK is rather heavyweight . It takes many kilobytes to build a simple extension that includes an XPCOM component What are the advantages and disadvantages of using the Add-on SDK to develop my Firefox extension Is it ready for serious extension development .. . Answer : Advantages : .. . .. . 1 . Jetpack API exposes high level APIs https : addons.mozilla.org en-US developers docs sdk latest modules high-level-modules.html for most of the things you mentioned : .. . .. . Add two context menu items .. . floating panel .. . API for password manager .. . 2 . Jetpack based add-ons are restart-less . 3 . Jetpack based add-ons are future proof in a sense that high level APIs will remain unchanged for the coming versions of FF . 4 . You may be able to use some community developed modules https : github.com mozilla addon-sdk wiki Community-developed-modules for APIs that are not exposed by SDK . 5 . If this is not the last extension you re planning to build there is a potential for code-reuse by building third party modules as ones mentioned in 4 see docs for details .. . .. . 6 . Support for mobile FF is coming in post 1.0 version of Addon-SDK which may mean that your extension can be made compatible with mobile version of FF with minimal to zero effort . 7 . Jetpack comes with build-in unit-testing framework . 8 . Has a better security model which will ease add-on review process . 9 . Jetpack support commonjs modules packages that which means that some of the code can be borrowed from other projects like nodejs for example . Disadvantages : .. . .. . 1 . Jetpack no longer supports FF 4 . 2 . Does not yet have support for localization . 3 . Has no API for building preference panels but can be developed as third party module and shared with rest of the community . 4 . Add-on will contain code with layers of abstractions that will increase size of add-on there is ongoing work that will reduce xpi size by excluding files that are not used by add-on . Comment : +1 gozala . This answer is already almost 2yrs old so there might be more advantages disadvantages now . Comment : The Jetpack libraries are now included in Firefox itself as of version 21 so that will likely result in smaller add-on sizes in the future as support moves to using the built-in libraries . Comment : I think support for localization has been added . That s what the dictionaries thing is about right",
"Question : I am creating a firefox add-on with Add-on SDK https : developer.mozilla.org en-US Add-ons SDK . My add-on uses a sidebar created with the ui sidebar https : developer.mozilla.org en-US Add-ons SDK Low-Level APIs ui sidebar API . Is there any way for me to control the initial width of this sidebar The user can drag to change its size but I would like it to start with a greater width than it seems to open at by default . Is this possible Thanks . .. . Answer : Yes use width in the style attribute . Or use min-width . Like style : min-width : 14em width : 18em max-width : 36em .. . .. . Here is an addon that creates a sidebar . You can install it its a ready to go demo . ff-addon-BootstrapSidebar https : gist.github.com Noitidart 8728393 Comment : Which style attribute are you referencing I m new to firefox add-ons but it looks like the example you provided was for a bootstraped extension . My project uses the add-on sdk . Can I set this attribute from within the SDK Thanks Comment : Oh I missed that . In SDK I m not sure . Comment : I see no one has replied to this still . See this addon it is bootstrap but a simple template to show you about sidebar : ff-addon-template-BootstrapSidebar https : gist.github.com Noitidart 8728393 the width is controlled in this one",
"Question : I am looking for a way to prevent the closing of a tab using the firefox-addon-sdk . Is there a way to achieve that Comment : Please provide more info things you ve tried etc . Comment : I looked into the javascript onebeforeunload event which gave me not enough freedom e.g . customizing the message . I also looked for examples on doing this on SO and via google . Of course i looked into the tabs api on mdn but couldn t find an according event since the close event can t intercept the closing . Comment : It might help if you stated the use-case : why you want to prevent the user from closing the tab . Hint : the user is the ne using the browser and should be able to do what they want typically . You should have a pretty good reason . As well the SDK apis tend to focus on user control of their experience - the feature you re looking for potentially works against user control . .. . Answer : Ok man here is what you want . The previous version was to see if i could get onbeforeunload to trigger only when tab closed but i couldnt figure that out . Here s how to do it : We override the removeTab function . Following the guidlines here : MDN : : Overriding Extending Amending existing functions - Alternative : Replace + Function.apply https : developer.mozilla.org en-US Add-ons Overlay Extensions XUL School Appendix C : Avoid using eval in Add-ons redirectlocale en-US redirectslug XUL School 2FAppendix C 3A Avoid using eval in Add-ons Alternative.3A Replace .2B Function.apply 28 29 .. . .. . on uninstall of your addon make sure to set the global property of window.myAddonIsInstalled to false . As that is the recommended way to disable your functionality per that article . Comment : Looks great thank you very much I will look into it when i find some time . Comment : this works only for XUL-based Addons . Any idea how to make this work for SDK addons Comment : @MichaelGro e same way you can tap into XUL with some of the functions there Im not sure which but people in the firefox-addon-sdk tag would know",
"Question : I have already coded most of a Firefox add-on using the Add-on SDK API . I am now discovering that Add-on SDK might not be powerful enough for my purposes . I need two things : .. . .. . 1 . A drop down button in the toolbar next to the location bar . 2 . To modify the add-ons manager in firefox .. . .. . It is truly disappointing but I don t believe either of these is possible with the Add-on SDK . First of all I understand there is a widget module in the Add-on SDK API . But this only allows me to add a simple icon or label to the awkward add-on bar . What if I need to add a nicer button like the one next to the location bar for Firebug or Greasemonkey As for modifying the add-ons manager in firefox I have tried Nickolay Ponomarev s XUL with the Add-on SDK http : asqueella.blogspot.com 2010 03 jetpack-sdk-and-xul-extensions.html without any success whatsoever . If anyone knows how to get this working and can point me in the right direction that would be extremely helpful cfx init --template xul doesn t do anything the regular SDK does when I try it Comment : Add-ons should add their icon to the add-on bar that s the official recommendation for all extensions starting with Firefox 4 . If the user wants to clutter his other toolbars he can customize them and drag icons around - that should work for SDK add-ons as well . Comment : As to modifying the add-on manager : you provide absolutely no information as to what you are trying to achieve and asking two questions at once is not a good idea anyway . I suggest that you edit your question to ask about toolbar buttons only and move add-on manager modification into a separate question . Comment : @WladimirPalant thanks for the suggestions . I think many firefox users are still uncomfortable moving icons around . I m afraid people will not like the default position of my add-on menu on the add-on bar and will simply close the bar as a whole rather than going through the trouble of relocating . Comment : It is worth noting that the SDK project recognizes that the current situation is awkward we have some thought on how to improve this in the future specifically around location bar ui . Some of the emerging ideas I ve seen arounf Firefox UX contain additional UI affordances for add-ons . .. . Answer : Have you looked at Erik Vold s toolbarbutton module https : github.com erikvold toolbarbutton-jplib .. . .. . It is possible to access all of Firefox s internal apis in SDK modules by requiring chrome privileges it just won t be as easy as the addon-kit high level apis . Comment : I haven t seen this but it looks very useful . Perhaps I can use this as a model for changing the add-on manager as well . Thank you Comment : You can certainly modify the EM with SDK modules I was going to do that myself so if you have started something then please let me know Comment : The supplied link is dead",
"Question : I have firefox jetpack addon-sdk extension that is built not in best way - after reinstall some old XPCOM components are hanging in memory and it is unable to register new one . So I need to force browser restart on extension update install . I know older version does this by defaultm but these one is restartless So question is : how to force browres restart on extension upgrade I have looked into package.json and found nothing . Comment : Are you looking for a way to mark your extension as non-restartless or programmatically cause a restart from within your code If you are going to do it programmatically without having marked your extension as non-restartless then you should warn the user and ask for confirmation that it is acceptable to the user to restart at this time . Comment : If you are wanting to mark your code as non-restartless you are probably SOL . I would expect any restartless add-on to become non-functional if marked in install.rdf as em : bootstrap false em : bootstrap . A restartless add-on uses a significantly different start-up sequence which I would expect not to be followed if marked as non-bootstrap . In other words I would expect bootstrap.js to not be loaded and nothing in it to be called . Thus I would expect you to need to force the restart yourself . Comment : Have you considered doing proper cleanup instead In my experience it can be a bit tedious to hunt down all the dangling bits but it s generally possible .. . Answer : My expectation is that you are basically SOL if your desire is to try to mark your Add-on SDK extension as non-restartless . The Add-on SDK https : developer.mozilla.org en-US Add-ons SDK produces a restartless https : developer.mozilla.org en-US Add-ons Bootstrapped Extensions extension that uses the standard restartless startup methods . So effectively anytime you create an Add-on SDK add-on you have really created a restartless add-on that is wrapped by the Add-on SDK . You could change in the install.rdf file created when you jpm xpi the following line : .. . em : bootstrap true em : bootstrap .. . to .. . em : bootstrap false em : bootstrap .. . which would cause your extension to be seen as a non-restartless add-on . It would be treated by Firefox and Mozilla Add-ons as an extension which requires a restart to be enabled disabled . However doing so would cause your add-on to not function . The entry points to your add-on would never be called . Thus you must force the restart on your own . You will need to store a preference that indicates that you have or have not restarted i.e . so that you do not end up restarting continuously . See : .. . .. . Mozilla Add-On Execute code on first run http : stackoverflow.com questions 32504129 mozilla-add-on-execute-code-on-first-run 32507616 32507616 .. . Firefox extension opening a page on install http : stackoverflow.com questions 958893 firefox-extension-opening-a-page-on-install 958940 958940 .. . Appendix B : Install and Uninstall Scripts https : developer.mozilla.org en-US Add-ons Overlay Extensions XUL School Appendix B : Install and Uninstall Scripts .. . .. . You should open a dialog http : stackoverflow.com search q dialog 20 5Bfirefox-addon-sdk 5D panel http : stackoverflow.com search q panel 20 5Bfirefox-addon-sdk 5D MDN add-on SDK panel API https : developer.mozilla.org en-US Add-ons SDK High-Level APIs panel with the user to inform them that a restart is required in order for your add-on to function and provide them with the option to restart at that time or to wait . See : Addon SDK way to make a dialog http : stackoverflow.com questions 22002010 addon-sdk-way-to-make-a-dialog .. . .. . In one of my add-ons Change Profile s Window Icons https : addons.mozilla.org en-US firefox-addon change-window-icons there is the need to restart in order to have changes take full effect not restarting only results in partial effect . I inform the user of that need and provide the option for them to do so from the options dialog . The dialog looks like : .. . Change Profile s Icon Options Dialog http : i.stack.imgur.com Ydgfz.png .. . .. . In this dialog the button Accept changes and Restart Firefox will do what it says and restart Firefox . The code I use to restart Firefox is : .. . .. . This uses the restart capability that is built into Firefox to perform the restart . Thus there is no need to keep that code updated if there are changes in the exact methodology of how a restart must be performed or any housekeeping associated with doing so . How exactly you would call that function depends on the context you are in when you want to do so . In part this will depend on how you implement informing the user that a restart is required and provide them the option to do so now or later . Given that you have not specified this in the question it is not possible to tell you exactly the code that you need to use in order to cause the restart . However in general you will need a reference to one of the base Firefox windows . You can obtain that reference by any of a variety of methods depending on how you are implementing the interaction with the user . One way would be : .. . .. . Portions of the above code were copied from other answers of mine including this one http : stackoverflow.com questions 29222292 firefox-add-on-window-navigator-useragent-error-window-not-defined 29228418 29228418 or from an extension https : addons.mozilla.org en-US firefox-addon change-window-icons I wrote . Comment : Thank . You exactly point the situation I have here . Can you provide a link-to your extension so I can look how it works Comment : @msangel The add-on is Change Profile s Window Icons https : addons.mozilla.org en-US firefox-addon change-window-icons . It is an XUL based add-on that changes the window icon for that profile . It is non-restartless because Firefox does not allow changing window icons from restartless add-ons . If the icon chosen is changed in the options dialog the icon for any already existent windows will not change . To have those change it is necessary to restart Firefox . The button exists so the user has an easy way to do so . See chrome content options.js and chrome content options.xul . Comment : @msangel I added links to other questions searches and MDN re panels dialogs using Add-on SDK . In addition linked a question on using a preference to perform action only once upon install and the XUL based info on the concept of using a preference to determine if a do once on install action has been performed .",
"Question : I know how to show a panel https : developer.mozilla.org en-US Add-ons SDK High-Level APIs panel with position : button . But when I try to show an additional panel the previous panel disappears . I don t want to disable auto hide . But I want to show 2 panels at the same time . So how do I show both at the same time Code : Comment : Possible duplicate of Avoid panel to autoHide in Firefox extension http : stackoverflow.com questions 21509460 avoid-panel-to-autohide-in-firefox-extension Comment : no i mean that with this code what i type it only shows the panel 2 but not panel 1 and when i switch it it will switch but i want to show them at the same time Comment : @the8472 This is not a duplicate of Avoid panel to autoHide in Firefox extension http : stackoverflow.com questions 21509460 avoid-panel-to-autohide-in-firefox-extension . If noautohide true is set on both panels then both of the following will be the case : A Only one panel popup will display at a time . This is true even if you bypass the SDK i.e . not use panel.show and use panelXULElement.openPopup to open either or both panels . B Neither individually shown panel will hide if the mouse is clicked outside of the displayed panel . Comment : Do I need to use panelXULElement.openPopup And if yrs how to implement it to the code Comment : BTW : If you want a specific person to be notified of your comment you need to include their ID in your comment with an @ in front of it . For instance for me it would be @Makyen . If you do this as the first thing in your comment the system will provide auto-complete suggestions from those who have already posted comments on that answer question . The original poster of the answer question on which you are commenting will always be notified . This meta post http : meta.stackexchange.com a 43020 271271 has more information . .. . Answer : The Add-on SDK prevents more than one sdk panel https : developer.mozilla.org en-US Add-ons SDK High-Level APIs panel from being open at a time : .. . You can not do exactly what you are wanting to do . The sdk panel API specifically prevents more than one sdk panel from showing at a time . That is one sdk panel open at a time across all Add-on SDK based extensions loaded in that profile . In other words if some other Add-on SDK based extension opens a panel yours will close . There is no way to disable this using stock Add-on SDK code . This is explicitly stated in the sdk panel documentation https : developer.mozilla.org en-US Add-ons SDK High-Level APIs panel Usage part of the last paragraph in the Usage section : .. . .. . Opening a panel will close an already opened panel . To make it more clear that this restriction is across all Add-on SDK extensions I have updated the text to be : .. . .. . Opening a panel will close any panel created by the Panel constructor that is already open even if that panel was opened by a different Add-on SDK based extension . When you create a panel using the Panel https : dxr.mozilla.org mozilla-central source addon-sdk source lib sdk panel.js 141 constructor a listener is attached to the panel using a call to a private function setupAutoHide this https : dxr.mozilla.org mozilla-central source addon-sdk source lib sdk panel.js 181 . In part the setupAutoHide https : dxr.mozilla.org mozilla-central source addon-sdk source lib sdk panel.js 114 is permanent links for those in this paragraph to the code as it was when this answer was written : Panel https : dxr.mozilla.org mozilla-central rev 23dc78b7b57e9f91798ea44c242a04e112c37db0 addon-sdk source lib sdk panel.js 141 setupAutoHide this https : dxr.mozilla.org mozilla-central rev 23dc78b7b57e9f91798ea44c242a04e112c37db0 addon-sdk source lib sdk panel.js 181 setupAutoHide https : dxr.mozilla.org mozilla-central rev 23dc78b7b57e9f91798ea44c242a04e112c37db0 addon-sdk source lib sdk panel.js 114 . : .. . .. . As you should be able to tell from the comments in this code it is specifically designed to prevent what you desire to do showing more than one sdk panel at a time . Alternate methods to show content : .. . To provide detailed suggestions as to how to accomplish what you desire for your user-interface we are going to need more information as to what you are wanting to do with the two sdk panels https : developer.mozilla.org en-US Add-ons SDK High-Level APIs panel . Given that you have not described the reason you desire to have more than one sdk panel open at one time I have to guess . One reason that you might want to leave an sdk panel open while using another as a drop-down panel to a sdk ui button toggle https : developer.mozilla.org en-US Add-ons SDK Low-Level APIs ui button toggle is that you are using the first one as a semi-permanent display of information or a dialog . In such case you should be using a different UI methodology to display that information . There are multiple possibilities of how to do that depending on what you want your UI to look like . One possibility is to implement a ui frame https : developer.mozilla.org en-US Add-ons SDK Low-Level APIs ui frame . Another possibility is to use openDialog https : developer.mozilla.org en-US Add-ons SDK Low-Level APIs window utils openDialog 28options 29 or open https : developer.mozilla.org en-US Add-ons SDK Low-Level APIs window utils open 28uri options 29 from window utils https : developer.mozilla.org en-US Add-ons SDK Low-Level APIs window utils to open a dialog window . These dialog windows are completely separate windows which can exist as long as you desire . If desired it could be styled to be nearly identical in appearance to an sdk panel . How tightly coupled it is with the current page or window depends on the programming that you do . The Add-on SDK implements sdk panels as XUL popups https : developer.mozilla.org en-US docs Mozilla Tech XUL PopupGuide . There is no restriction within Firefox on displaying more than one XUL popup at a time . You could create these yourself within the primary Firefox DOM rather than using the Panel constructor . Yet other possibilities include : implementing your first sdk panel as a different portion of either the main window UI or as part of the content page alternately the drop-down sdk panel could be implemented as a an actual drop-down menu a menupopup https : developer.mozilla.org en-US docs Mozilla Tech XUL menupopup which can either be an actual menu or have arbitrary content using a panel https : developer.mozilla.org en-US docs Mozilla Tech XUL panel . If you really desired you could code it to display exactly as-if you had used the Panel constructor . However those latter possibilities go around the Add-on SDK and will potentially result in your add-on requiring more on-going maintenance if the underlying structure of Firefox is changed . There are way too many possibilities as to how to implement what you might desire for your UI to cover here . This is particularly the case because we do not know what the goals are of what you are attempting to implement with your UI . Comment : @Haxk20 I have updated this answer to show what Add-on SDK API code specifically prevents what you desire to do . Comment : ok thanks but another question how to show button in panel Comment : @Haxk20 I m not sure what the difficulty is that you are having showing a button https : developer.mozilla.org en-US docs Web HTML Element button in a panel . The button should display just like any other HTML . I m going to need more information as to what the issue is . This would be best handled as separate question . Comment : @Haxk20 I have updated this answer and the documentation on MDN to make it clear that the restriction to one panel is a total of one panel created with the Panel constructor for all Add-on SDK based extensions installed in the profile . If another extension opens a Panel your panel will close .",
"Question : I am trying to load a frame script following this tutorial https : developer.mozilla.org en-US Firefox Multiprocess Firefox Message Manager Frame script loading and lifetime : .. . .. . My extension is an Add-on SDK type . The tutorial says I need to specify content in chrome.manifest first . I did not even have that file only package.json and index.js . So I ve created myextension chrome.manifest with a single line : .. . .. . And created a file myextension content content.js : .. . .. . The problem is when mm.loadFrameScript chrome : myextension content content.js true is executed in index.js I get error : .. . .. . I guess it is because the manifest file is wrong or not being registered all together But I couldn t find any clues to my problem on the chrome registration https : developer.mozilla.org en docs Chrome Registration page . .. . Answer : That tutorial is generally targeted towards XUL https : developer.mozilla.org en-US Add-ons Overlay Extensions or restartless bootstrap https : developer.mozilla.org en-US Add-ons Bootstrapped Extensions add-ons . A more appropriate tutorial in that hierarchy is : Multiprocess Firefox and the SDK https : developer.mozilla.org en-US Add-ons SDK Guides Multiprocess Firefox and the SDK . The gist of that page is that if you stay with the Add-on SDK APIs your extension should just work in multiprocess Firefox and that if it doesn t then it is a bug in the Add-on SDK https : developer.mozilla.org en-US Add-ons SDK Guides Multiprocess Firefox and the SDK SDK internal incompatibilities . In general Add-on SDK extensions will use one of the High Level APIs https : developer.mozilla.org en-US Add-ons SDK High-Level APIs to load content scripts https : developer.mozilla.org en-US Add-ons SDK Guides Content Scripts . The primary APIs which would be used are tabs https : developer.mozilla.org en-US Add-ons SDK High-Level APIs tabs and page-mod https : developer.mozilla.org en-US Add-ons SDK High-Level APIs page-mod but there are others e.g . context-menu https : developer.mozilla.org en-US Add-ons SDK High-Level APIs context-menu and page-worker https : developer.mozilla.org en-US Add-ons SDK High-Level APIs page-worker . There are also the Low-Level APIs https : developer.mozilla.org en-US Add-ons SDK Low-Level APIs of remote parent https : developer.mozilla.org en-US Add-ons SDK Low-Level APIs remote parent and remote child https : developer.mozilla.org en-US Add-ons SDK Low-Level APIs remote child which deal with processes https : developer.mozilla.org en-US Add-ons SDK Low-Level APIs remote parent Process and frames https : developer.mozilla.org en-US Add-ons SDK Low-Level APIs remote parent Frame . However you can use frame scripts https : developer.mozilla.org en-US Firefox Multiprocess Firefox Message Manager Frame script loading and lifetime if you desire to do so . Add-on SDK extensions are actually restartless bootstrapped extensions which are wrapped by the add-on SDK . Thus you can do most things which can be done in a bootstrapped extension within an Add-on SDK extension if you really want to do so . However it is better to stay within the APIs provided by the Add-on SDK . If you go around those APIs then you loose some of the advantages which the Add-on SDK exists to provide to you e.g . hiding the actual implementation behind APIs which are intended not to change . Frame scripts and content scripts exist to perform the same function : access the content e.g . HTML pages which has been loaded into an area that is potentially under the control of a different process e10s . Largely the things that are referred to by the two different names are very similar . However you will almost exclusively see the term frame scripts used only for XUL and bootstrap extensions while content scripts will almost always be referring to Add-on SDK scripts . Again you are probably better off using the Add-on SDK APIs to load the scripts you are using to access content that is potentially in another process . Add-on SDK : Using the data directory : .. . .. . For an Add-on SDK extension instead of using a chrome : URL it is more appropriate to use the add-on base directory data directory and obtain the URL reference to your file using the sdk self API https : developer.mozilla.org en-US Add-ons SDK High-Level APIs self . You would do this with : .. . .. . Then your loadFrameScript https : developer.mozilla.org en-US docs Mozilla Tech XPCOM Reference Interface nsIFrameScriptLoader loadFrameScript 28 29 line would be : .. . .. . Using chrome.manifest : .. . .. . content https : developer.mozilla.org en docs Chrome Registration content-instruction lines : .. . The content line of the chrome.manifest file is : .. . .. . This is a minimum of 3 fields separated by whitespace with one or more optional additional fields for flags https : developer.mozilla.org en docs Chrome Registration Manifest Flags . The first field is content which indicates that this is a line that defines how a chrome : packagename content URL will be resolved . The second field is a packagename . This is a name that you make up which must not conflict with other package names already in use by Firefox or those added by other extensions . Usually this will be the name you are using for your add-on or some permutation of the name or id if using multiple content lines . The name and ID of your Add-on SDK are usually the value of the name https : developer.mozilla.org en-US Add-ons SDK Tools package json Key reference and id https : developer.mozilla.org en-US Add-ons SDK Tools package json Key reference properties you included in your package.json https : developer.mozilla.org en-US Add-ons SDK Tools package json file but may be somewhat different https : developer.mozilla.org en-US Add-ons SDK Guides Program ID . The packagename does not need to be your name or ID it just needs to be unique to everything that was loaded into Firefox . The third field is the URL to the directory which contains the files you are going to be referencing . This URL can either be absolute or relative to the location of the chrome.manifest file . This URL must end with a . Firefox looks for the chrome.manifest file in the base directory of your add-on the same one in which package.json is located . While it is possible to have additional chrome.manifest files using the manifest https : developer.mozilla.org en docs Chrome Registration manifest keyword that would be unusual . The prototypical add-on chrome.manifest would contain a line such as : .. . .. . When using the chrome URLs made valid by that content line in your chrome.manifest you would use something like chrome : packagename content myScriptFile.js . This would reference a file called myScriptFile.js that is in the add-on base directory chrome content directory . Another example : .. . chrome.manifest : .. . .. . In this case chrome : myAddOnName content myScriptFile.js would reference the file add-on base directory my special directory myScriptFile.js . Your specific issue : .. . While you stated you were following the tutorial https : developer.mozilla.org en-US Firefox Multiprocess Firefox Message Manager Frame script loading and lifetime you did not actually do so for the contents of your chrome.manifest https : developer.mozilla.org en docs Chrome Registration file . Nor when you changed what that file contained did you follow the description https : developer.mozilla.org en docs Chrome Registration content-instruction of what the content line should contain . However even if you had followed the tutorial exactly you would not have ended up with a functioning add-on because the tutorial was incorrect as to what should be in that file . The line in the tutorial was actually invalid . I have corrected that line in the MDN documentation https : developer.mozilla.org en-US Firefox Multiprocess Firefox Message Manager Frame script loading and lifetime chrome URLs . What you need to use as the line in your chrome.manifest will depend on the directory structure you desire to use for your extension . If you wanted your content.js to exist in a directory add-on base directory chrome content and be referenced by chrome : myAddOnName content content.js then the content line of your chrome.manifest would be : .. . .. . Note : Even though you used myextension in your question in your chrome : URL only for your packagename I have not used it here to try to more clearly indicate that the packagename should be a name you choose which is unique to your add-on . It is not clear to me that you are using myextension in your question as a placeholder for what you are really using within your extension . If that is the actual text you are using rather than a placeholder for your question then I would caution you that the packagename myextension is not very unique and has a reasonable chance to exist in some other random extension . If it does it may or may not cause either or both of your extensions to malfunction . Comment : I appreciate such a detailed answer . You talk about content scripts and frame scripts . You suggest to use content scripts in Addons SDK because it is covered by SDK . Can you tell me if content-script is possibly in my use-case : I need to use nsITextInputProcessor Low level API in that tab . Here is a stackoverflow answer which suggested me to use frame scripts : stackoverflow.com a 37526708 1132711 http : stackoverflow.com a 37526708 1132711 Comment : @alandarev In the comments on that answer I suspect that frame scripts were understood to mean any scripts including content scripts which run in the process controlling the web page content . I suggest that you start a new question . Make that question about your overall goal implemented in the Add-on SDK not specific to how you are currently attempting to implement it . Do include the code you are currently trying to use but as something like I have attempted to accomplish this with A code reasons why it did not work for you and B code reasons why it did not work for you etc .",
"Question : I have an extension functional on Chrome that monitors the active Tab for URL changes . Specifically I need to detect when the URL changes but there is no new page load or navigation . Some sites do this e.g . when you click to view another video on YouTube . On Chrome I accomplished this with : .. . .. . How do I detect such changes in a Firefox add-on I ve been told to use : Listening to events on all tabs https : developer.mozilla.org en-US docs Listening to events on all tabs but I couldn t put it together . One of the problems was that gBrowser was not defined in the extension . What am I doing wrong Is there a simpler way Comment : nsIWebProgressListener - developer.mozilla.org en-US docs Mozilla Tech XPCOM Reference https : developer.mozilla.org en-US docs Mozilla Tech XPCOM Reference Interface nsIWebProgressListener redirectlocale en-US redirectslug nsIWebProgressListener onStatusChange 28 29 - i used it here : github.com Noitidart Listen-on-Repeat-Youtube-Video-Repeater https : github.com Noitidart Listen-on-Repeat-Youtube-Video-Repeater Comment : thx @Noitidart This seems so overly complex for such a simple task but ok i ve defined the listener how do i attached it using the firefox-addon sdk i can t just do : gBrowser.addProgressListener progListener because i don t have access to gBrowser i ve tried to use the tab utils and do this : tabs.on ready function tab var browser gBrowser.getBrowserForTab tab browser.addProgressListener progListener but browser is undefined Comment : I m not too familiar with sdk . The reason its complex is it provides lots of important information on what caused the change and why . If you want to just listen for change you can probably use a MutationObserver developer.mozilla.org en-US docs Web API https : developer.mozilla.org en-US docs Web API MutationObserver redirectlocale en-US redirectslug DOM 2FMutationObserver MutationObserverInit use characterData and watch on the anonymous element otherwise it wont trigger . i think the observer will disconnect on tab change though im not sure . ask.mozilla.org question 542 https : ask.mozilla.org question 542 mutation-observer-disconnects-from-anonymous-element Comment : @TiagoSilva There are a few ways of making add-ons for Firefox . If you only want answers pertaining to the Addon-SDK then don t use the firefox-addon tag in the future . If you want to know the difference between bootstrapped and Addon-SDK extensions see my answer here http : stackoverflow.com a 21923179 1720014 . Comment : possible duplicate of How can i check if url of current browser tab is changed http : stackoverflow.com questions 2060779 how-can-i-check-if-url-of-current-browser-tab-is-changed .. . Answer : If you re using the add-on SDK you re looking at the wrong docs . Here are the tab docs https : developer.mozilla.org en-US Add-ons SDK High-Level APIs tabs Track tabs . As stated there you create a listener like so : .. . .. . All the docs you look at should be a subset of developer.mozilla.org en-US Add-ons SDK https : developer.mozilla.org en-US Add-ons SDK . Comment : tabs.on ready .. . doesn t fire when getting new content via ajax",
"Question : As I was writing a Firefox add-on using the Add-on SDK https : addons.mozilla.org en-US developers docs sdk 1.0 dev-guide welcome.html I noticed that the add-on code and the content-script code block the execution of each other . Furthermore the add-on code seems even to block the interaction with other Firefox windows not just tabs . What is the concurrency process model of Firefox add-ons .. . .. . Is it possible to run add-on code and content-script code concurrently without cooperative multithreading a la timers .. . .. . How many times is the add-on code loaded Once per window Once per tab Once .. . .. . The documentation https : addons.mozilla.org en-US developers docs sdk 1.0 dev-guide addon-development web-content.html states : .. . .. . The Mozilla platform is moving towards a model in which it uses separate processes to display the UI handle web content and execute add-ons . The main add-on code will run in the add-on process and will not have direct access to any web content . So I hope that in the future that they are indeed separate processes that will not interfere with each other but that doesn t seem to be the case now . .. . .. . Update : .. . .. . I have tried using a page-worker from the add-on code but unfortunately that still blocks the content-script as well as all other javascript . I also tried using a web-worker in the page-worker but I get the following error when calling the web-worker s postMessage function . TypeError : worker.postMessage is not a function .. . .. . I also tried creating an iframe in the page-worker and then creating a web-worker in the iframe but unfortunately I cannot use window.addEventListener from the page-worker . I get the following error : .. . .. . TypeError : window.addEventMessage is not a function .. . .. . Finally I tried to inject script via script-element into the page-worker page to create a web-worker which does seem to work . Unfortunately I cannot communicate with this web-worker because I can only send messages to it via document.defaultView.postMessage . Oh the tangled webs I am weaving.. . .. . .. . content-script - add-on - page-worker - iframe - web-worker - my code .. . .. . .. . .. . I have included a simple example : .. . .. . package.json .. . .. . lib main.js .. . .. . data content.js .. . Answer : I found a hack to get WebWorkers in the extension s background page : .. . .. . By accessing the main window s window object you can pull the Worker class into the current scope . This gets around all the obnoxious Page.Worker workaround junk and seems to work fairly well .",
"Question : null .. . Answer : Context : I m trying to make a Firefox SDK Addon in order to display toast notification when a new message arrives in a TFS Room chat . I m porting existing code http : edward.delaporte.us tfsNotify.html that works in Google Chrome . Code extract : .. . .. . index.js .. . .. . data notifications.js .. . .. . Issue : The .connection.chatHub.on .. . raises the error Permission denied to access property Symbol.toPrimitive in the file tfs static 3rdParty scripts jquery.signalR-2.2.0.min.js . The same line of code without unsafeWindow executed with the javascript console actually works so I m guessing it might be due to the addon code being executed separatedly from the page code but have no idea as to how to fix this or if it is the actual origin of the problem . Comment : I think you would have to export your listener function to the unsafeWindow in order for the unsafeWindow to add that listener . But I m not sure that s the problem here . For more details about that see developer.mozilla.org en-US Add-ons SDK Guides Content Scripts https : developer.mozilla.org en-US Add-ons SDK Guides Content Scripts Interacting with page scripts Comment : @humanoid thank you that did the trick If you would turn your comment into an answer I d be glad to accept it .",
"Question : Is it possible to test a http-on-modify-request https : developer.mozilla.org de docs Observer Notifications HTTP requests -Observer The events module https : developer.mozilla.org en-US Add-ons SDK Low-Level APIs system events offers an emit type event method to create Firefox events . To test a module listening to a http-on-modify-request you can set the type to http-on-modify-request . The question is how to set the event parameters to mimic a web request The documentation states .. . .. . event : object .. . An optional object with data and subject attributes . data refers to a string that you would like to pass-through this event . subject should refer to the actual actor subject of this event ie : the object emitting the event . Setting event.data gets passed on as the data parameter of the observer same for f.ex . a string as an event.subject but when I tried to pass an object with a QueryInterface -function it did not work : .. . .. . Code to be tested is very similar to https : developer.mozilla.org en-US Add-ons SDK Low-Level APIs system events . .. . .. . @humanoid s answer to use .. . .. . failed with .. . .. . JavaScript Error : NS NOINTERFACE : Component returned failure code : 0x80004002 NS NOINTERFACE nsISupports.QueryInterface file : resource : gre modules commonjs toolkit loader.js - resource : addon-id caller.js line : xy .. . Answer : The emit method from sdk system events is not useful to create observer notifications that look like notifications from Firefox because it adds wrappers to ensure weak-references . Instead I would suggest to use the vanilla observer service https : developer.mozilla.org en-US docs Mozilla Tech XPCOM Reference Interface nsIObserverService for example from Services.jsm : Comment : Thank you very much for preventing me from going down that route . Do you happen to have some example code lying around or not Comment : @user Using nsIObserverService for this specific case Not really . But the notifyObservers method should be pretty straight forward to use . Comment : Just using this I got a JavaScript Error : NS NOINTERFACE : Component returned failure code : 0x80004002 NS NOINTERFACE nsISupports.QueryInterface file : resource : gre modules commonjs toolkit loader.js - resource : addon-id caller.js line : xy Comment : @user problem here is that you re not properly creating an nsIURI with your object . It s probably better to use const NetUtil require resource : gre modules NetUtil.jsm const url NetUtil.newURI mock : URI.spec to create the nsIURI . See developer.mozilla.org en-US docs Mozilla https : developer.mozilla.org en-US docs Mozilla JavaScript code modules NetUtil.jsm newURI 28 29 for the method s documentation . Comment : using NetUtil produced the same error see above",
"Question : I have already coded most of a Firefox add-on using the Add-on SDK API . I am now discovering that Add-on SDK might not be powerful enough for my purposes . I need two things : .. . .. . 1 . A drop down button in the toolbar next to the location bar . 2 . To modify the add-ons manager in firefox .. . .. . It is truly disappointing but I don t believe either of these is possible with the Add-on SDK . First of all I understand there is a widget module in the Add-on SDK API . But this only allows me to add a simple icon or label to the awkward add-on bar . What if I need to add a nicer button like the one next to the location bar for Firebug or Greasemonkey As for modifying the add-ons manager in firefox I have tried Nickolay Ponomarev s XUL with the Add-on SDK http : asqueella.blogspot.com 2010 03 jetpack-sdk-and-xul-extensions.html without any success whatsoever . If anyone knows how to get this working and can point me in the right direction that would be extremely helpful cfx init --template xul doesn t do anything the regular SDK does when I try it Comment : Add-ons should add their icon to the add-on bar that s the official recommendation for all extensions starting with Firefox 4 . If the user wants to clutter his other toolbars he can customize them and drag icons around - that should work for SDK add-ons as well . Comment : As to modifying the add-on manager : you provide absolutely no information as to what you are trying to achieve and asking two questions at once is not a good idea anyway . I suggest that you edit your question to ask about toolbar buttons only and move add-on manager modification into a separate question . Comment : @WladimirPalant thanks for the suggestions . I think many firefox users are still uncomfortable moving icons around . I m afraid people will not like the default position of my add-on menu on the add-on bar and will simply close the bar as a whole rather than going through the trouble of relocating . Comment : It is worth noting that the SDK project recognizes that the current situation is awkward we have some thought on how to improve this in the future specifically around location bar ui . Some of the emerging ideas I ve seen arounf Firefox UX contain additional UI affordances for add-ons . .. . Answer : tried Nickolay Ponomarev s XUL with Jetpack without any success whatsover . If anyone knows how to get this working and can point me in the right direction that would be extremely helpful cfx init --template xul doesn t do anything the regular sdk does when I try it .. . .. . I would very much like to hear the detailed description of what you tried and how exactly it failed . I can t answer the question in its current form . I don t believe either of these is possible with JetPack . You mean using only the built-in high-level SDK modules . It s possible to write a low-level SDK module that uses XPCOM and interacts with chrome code directly to implement the features you need -- after all that s how the rest of SDK modules are implemented . If you go this route you lose the future compatibility promise of the SDK though -- you ll have to either get it included in the upstream SDK or to update it for the newer Firefox versions yourself . Comment : Thanks for your reply . I downloaded 1.0b1rc4 from your github fork of the add-on sdk and ran source bin activate . Then when I run cfx init --template xul in a new folder I don t get the extension folder mentioned alongside lib tests etc I don t get any of the files mentioned in the section Pre-generated files in a XUL-based add-on not even the changes to the package.json file . The instructions seem clear but I m not getting the expected results . Comment : @Salami : OK I m suspecting the download step . Did you use the ZIP button on the github page to download You may have downloaded the base version of the code not the fork . Try github.com nickolay addon-sdk zipball https : github.com nickolay addon-sdk zipball bug641215-xul-extensions-v2 or better yet clone with git . Comment : Thank you . This 0.9 version you linked seems to be working great Comment : @Nickolay : Has the -t xul or --template xul flag been superseded by --templatedir xul Comment : @SmileAndNod : no --template xul is a parameter to cfx init in my outdated fork templatedir can be used with cfx run xpi in baseline addon sdk addons.mozilla.org en-US developers docs sdk 1.0 dev-guide https : addons.mozilla.org en-US developers docs sdk 1.0 dev-guide addon-development cfx-tool.html and my fork adds a templatedir property to package.json when generating a xul extension .",
"Question : Is there any method to update the main HTML content of any site while loading on Firefox Can Firefox extensions .xpi do that Alternately is there any method by which desktop software can inject or remove HTML code from sites which users open while the page is loading .. . Answer : Yes modifying the HTMl code of one or many sites can be done by a Firefox extension . However this question is too broad to answer appropriately here . You should probably look at the Add-on SDK tutorials https : developer.mozilla.org en-US Add-ons SDK Tutorials . For instance the Modify web pages based on URL https : developer.mozilla.org en-US Add-ons SDK Tutorials Modifying Web Pages Based on URL tutorial should be appropriate . Alternately you could use the Greasemonkey https : en.wikipedia.org wiki Greasemonkey Extension https : addons.mozilla.org en-us firefox-addon greasemonkey . For Greasemonkey you can see the Greasemonkey Manual http : wiki.greasespot.net Greasemonkey Manual for more information . Which of those you choose would depend significantly on what you are attempting to accomplish and the audience for which you are attempting to make this work among other factors . It would be difficult to write a separate desktop application to modify the HTML code of a site within the Firefox browser and only within Firefox . While this might be possible it would probably be significantly more effort than doing so with a Firefox add-on or using Greasemonkey . Comment : Thats what i really looked for . Btw i meant i want to create a new extension my self to do that job not using grease monkey . Thanks bro"
]
} | [
"yes-answer-long",
"yes-answer-short"
] | html | UNK_RELATION |
ejb-jar.xml@ejb-3.0@216 | ejb-jar.xml -- how ejb-jar.xml look like is described here.according to version of the ejb need to have use dtd path.ejb 1http : java.sun.com j2ee dtds ejb-jar 1 1 .dtdejb 2.0 http : java.sun.com dtd ejb-jar 2 0 .dtd @placeholder need xsd as updated configuraionshttp : java.sun.com xml ns javaee ejb-jar 3 0 .xsd . | {
"confidence": [
119.75177764892578,
109.88908386230469,
78.63887786865234,
78.34400177001953,
75.12471008300781,
74.92314910888672,
74.52239990234375,
74.26495361328125,
67.3536148071289,
65.58534240722656,
60.64066696166992,
60.03313446044922,
58.04408645629883,
58.04408645629883,
58.04408645629883,
54.40758514404297,
29.119308471679688,
24.225826263427734,
24.127161026000977,
20.58880043029785,
20.570688247680664,
17.994342803955078,
17.601383209228516,
17.483142852783203,
17.45692253112793,
17.039653778076172,
17.011329650878906,
16.52518653869629,
16.40337371826172,
15.539660453796387,
15.252725601196289,
13.806794166564941,
13.806794166564941,
13.806794166564941,
13.806794166564941,
13.806794166564941,
13.806794166564941,
13.806794166564941,
13.806794166564941,
13.806794166564941,
13.806794166564941,
13.806794166564941,
13.806794166564941,
13.806794166564941,
13.806794166564941,
13.806794166564941,
13.806794166564941,
13.806794166564941,
13.806794166564941,
13.806794166564941,
13.806794166564941,
13.806794166564941,
13.806794166564941,
13.806794166564941,
13.806794166564941,
13.806794166564941,
13.806794166564941,
13.806794166564941,
13.806794166564941
],
"content": [
"I removed ejb-jar.xml completely and left the sun-ejb-jar.xml untouched .",
"The ejb-jar.xml descriptor is : .. . .. . Class pl.Test : .. . .. .",
"Plainly using reflection to check annotations presence on interfaces or bean is not enough what about views defined in ejb-jar.xml",
"I know how do declare a bean in the ejb-jar but how do i control dependency-injection",
"Currently I have an ejb-jar.xml that looks something like this : .. . .. . You ll notice that both EJBs have the same resource-ref defined for both of them .",
"On GlassFish Server 2.1 I have created a GenericJMSRA for connection with ActiveMQ as described in this guideline : http : activemq.apache.org sjsas-with-genericjmsra.html .. . .. . I have successfully been able to deploy an MDB using the the classical way of injecting the context with ejb-jar.xml : .. . .. . and sun-ejb-jar.xml .. . .. . How would I go ahead injecting the above configuration in annotation driven EJB 3.0 style",
"i created a setMessageType method and want to inject the identifier string into the mdb by configuration in the ejb-jar deployment-descriptor .",
"All EJB interceptors accept the InvocationContext parameter .",
"I try to inject dependency in EJB 3.0 using only deployment-descriptor .",
"Both interfaces share the same method signatures so it s like : .. . .. . Is there a way to figure out what EJB view was called from within the EJB itself or its interceptor",
"It s just like Arjan said - it is impossible to do just by following EJB spec .",
"Assume I have an EJB defining two views : .. . .. . Local business .. . Remote business .",
"I can invoke SessionContext getInvokedBusinessInterface but this gives me information only about the class object - not about EJB semantics of it .",
"I doubt it is possible using straight EJB specification but perhaps there s something I missed .",
"I guess such EJB view recognition might be only possible using server internals.. .",
"If you feel strongly about EJB needing this ability then why not add a feature request for it at java.net jira browse EJB SPEC http : java.net jira browse EJB SPEC",
"No it is not possible to factor resource-refs like this in J2EE 1.4 .",
"Is there a way to factor this duplication out within a J2EE 1.4 application",
"you need to replace below tags in the XML : .. . .. . remote business-remote local business-local",
"as follows : .. . .. . To access this EjbInvocation internal Glassfish class you need to add following maven-dependency : .. . .. . And you might need to add following specific repository to get access to this artifact : .. . .. . I did a quick research based on Richard s suggestion regarding Invocation object how to achieve the same in JBoss but couldn t find answer.. .",
"JavaEE 6 provides resource-ref-name java : module jdbc myDatasource resource-ref-name and java : app and java : global to share resource references at higher levels .",
".. . and how does one access this",
"let s consider only JBoss AS 7.x Glassfish 3.x and TomEE 1.5.1 .",
"You can use it e.g .",
"They are related somehow but I don t know how .",
"More specifically it is the following property I can t find out how to inject :",
"A trick might be to use the convention of naming interfaces .",
"But in an interceptor you have access to an InvocationContext not an Invocation .",
".. . .. . Let s say I would like to perform different authorization procedures depending on used view .",
"When I deploy my app to Glassfish v3.1 I get this exception : .. . .. . I have no idea what I do wrong .",
"Ideally I should be able to define the jdbc myDatasource resource once within the application and have anything running inside that container be able to access it by doing a JNDI lookup for java : comp env jdbc myDatasource .",
"Remote should be more constrained and local shouldn t .",
"If not is it possible to get this information from the inners of an application server",
"My gut feeling says this is just not possible in a portable way .",
"If it is I missed something too .",
"You are already doing that MyBusinessLocal ends-with Local etc .",
"A bit brittle but conventions do work for e.g .",
"JavaBeans .",
"Thanks Arjan .",
"I agree - some convention might be a solution here .",
"If it s possible at all",
"You re welcome .",
"In JBoss there s an Invocation object which has a promising isLocal public-method .",
"It would be useful to try to do an isLocal on the InvocationContext and see if the underlying object was JBoss Invocation object .",
"However in Glassfish it s quite simple to do .",
"InvocationContext implementation in Glassfish is in fact com.sun.ejb.EjbInvocation class .",
"It has the isLocal field that tolds you if it s intercepting local business call or isRemote for remote business calls .",
"Is it possible to define resource references that are applicable to all EJBs in an application",
"Is there any way to accomplish this",
"That s what I suspected .",
"Thanks for confirming .",
"Got it to work finally .",
"Then I annotated the class foo.QueueListenerMDB as follows :",
"I want to configure the behaviour of one of my mdbs with string .",
"Greetings .. . .. . Laures",
"funny i never go an answer to this questions .",
"Apparently with JNDI on java : comp env MessageType .. .",
"Can anybody help me please",
"The solution is :"
]
} | {
"confidence": [
133.63255310058594,
114.49769592285156,
112.35234069824219,
108.2283935546875,
104.10896301269531,
103.91055297851562
],
"content": [
"Question : On GlassFish Server 2.1 I have created a GenericJMSRA for connection with ActiveMQ as described in this guideline : http : activemq.apache.org sjsas-with-genericjmsra.html .. . .. . I have successfully been able to deploy an MDB using the the classical way of injecting the context with ejb-jar.xml : .. . .. . and sun-ejb-jar.xml .. . .. . How would I go ahead injecting the above configuration in annotation driven EJB 3.0 style More specifically it is the following property I can t find out how to inject : .. . Answer : Got it to work finally . I removed ejb-jar.xml completely and left the sun-ejb-jar.xml untouched . Then I annotated the class foo.QueueListenerMDB as follows :",
"Question : I try to inject dependency in EJB 3.0 using only deployment-descriptor . When I deploy my app to Glassfish v3.1 I get this exception : .. . .. . I have no idea what I do wrong . Can anybody help me please The ejb-jar.xml descriptor is : .. . .. . Class pl.Test : .. . .. . .. . Answer : you need to replace below tags in the XML : .. . .. . remote business-remote local business-local",
"Question : I try to inject dependency in EJB 3.0 using only deployment-descriptor . When I deploy my app to Glassfish v3.1 I get this exception : .. . .. . I have no idea what I do wrong . Can anybody help me please The ejb-jar.xml descriptor is : .. . .. . Class pl.Test : .. . .. . .. . Answer : The solution is :",
"Question : Assume I have an EJB defining two views : .. . .. . Local business .. . Remote business . Both interfaces share the same method signatures so it s like : .. . .. . Is there a way to figure out what EJB view was called from within the EJB itself or its interceptor .. . .. . Let s say I would like to perform different authorization procedures depending on used view . Remote should be more constrained and local shouldn t . I can invoke SessionContext getInvokedBusinessInterface but this gives me information only about the class object - not about EJB semantics of it . Plainly using reflection to check annotations presence on interfaces or bean is not enough what about views defined in ejb-jar.xml I doubt it is possible using straight EJB specification but perhaps there s something I missed . If not is it possible to get this information from the inners of an application server let s consider only JBoss AS 7.x Glassfish 3.x and TomEE 1.5.1 . Comment : My gut feeling says this is just not possible in a portable way . If it is I missed something too . A trick might be to use the convention of naming interfaces . You are already doing that MyBusinessLocal ends-with Local etc . A bit brittle but conventions do work for e.g . JavaBeans . Comment : Thanks Arjan . I agree - some convention might be a solution here . I guess such EJB view recognition might be only possible using server internals.. . If it s possible at all Comment : You re welcome . If you feel strongly about EJB needing this ability then why not add a feature request for it at java.net jira browse EJB SPEC http : java.net jira browse EJB SPEC Comment : In JBoss there s an Invocation object which has a promising isLocal public-method . But in an interceptor you have access to an InvocationContext not an Invocation . They are related somehow but I don t know how . It would be useful to try to do an isLocal on the InvocationContext and see if the underlying object was JBoss Invocation object . .. . Answer : It s just like Arjan said - it is impossible to do just by following EJB spec . However in Glassfish it s quite simple to do . All EJB interceptors accept the InvocationContext parameter . InvocationContext implementation in Glassfish is in fact com.sun.ejb.EjbInvocation class . It has the isLocal field that tolds you if it s intercepting local business call or isRemote for remote business calls . You can use it e.g . as follows : .. . .. . To access this EjbInvocation internal Glassfish class you need to add following maven-dependency : .. . .. . And you might need to add following specific repository to get access to this artifact : .. . .. . I did a quick research based on Richard s suggestion regarding Invocation object how to achieve the same in JBoss but couldn t find answer.. .",
"Question : Is it possible to define resource references that are applicable to all EJBs in an application Currently I have an ejb-jar.xml that looks something like this : .. . .. . You ll notice that both EJBs have the same resource-ref defined for both of them . Is there a way to factor this duplication out within a J2EE 1.4 application Ideally I should be able to define the jdbc myDatasource resource once within the application and have anything running inside that container be able to access it by doing a JNDI lookup for java : comp env jdbc myDatasource . Is there any way to accomplish this .. . Answer : No it is not possible to factor resource-refs like this in J2EE 1.4 . JavaEE 6 provides resource-ref-name java : module jdbc myDatasource resource-ref-name and java : app and java : global to share resource references at higher levels . Comment : That s what I suspected . Thanks for confirming .",
"Question : I want to configure the behaviour of one of my mdbs with string . i created a setMessageType method and want to inject the identifier string into the mdb by configuration in the ejb-jar deployment-descriptor . I know how do declare a bean in the ejb-jar but how do i control dependency-injection Greetings .. . .. . Laures .. . Answer : funny i never go an answer to this questions . Comment : .. . and how does one access this Apparently with JNDI on java : comp env MessageType .. ."
]
} | [
"yes-answer-long",
"yes-answer-short"
] | ejb-3.0 | UNK_RELATION |
glomosim@glomosim@56 | glomosim -- global mobile information system simulator @placeholder is a network protocol simulation software that simulates wireless and wired network systems . | {
"confidence": [
39.866233825683594,
37.4783935546875,
37.3546142578125,
33.62312316894531,
29.769182205200195,
27.943706512451172,
26.65326690673828,
25.651329040527344,
24.301727294921875,
24.248714447021484,
17.888647079467773,
17.888647079467773,
17.888647079467773
],
"content": [
"I am using glomosim to configure my protocol authenticated routing protocol for ad hoc networks .",
"I am planning to implement a concept in MANET Mobile Ad hoc network and I am trying to simulate the same please suggest a good simulator .",
"Because from the research paper when i get to know about the protocol it was implemented in Glomosim itself .",
"My aim is to compare the QoS factors of various MANET protocols like AODV DSR DSDV for which I have decided to use Glomosim simulator.I have installed Glomosim in my windows-8 laptop but I am unable to see any visual representation of nodes and links.Please Help me to figure out how to use this simulator for analyzing QoS .",
"Please suggest a good one form the list below .. . .. . NS2 or or Opnet or GloMoSim .. . .. . if you have any more suggestions please do let me know .",
"There is one more simulator .",
"The name is ONE simulator for such ad hoc networks .",
"i can provide you the help if you need in configuring the simulator",
"The moral of the story is that the selection simulator is depends upon what exactly you want to do in MANETs .",
"I am not sure which one would be ease of use and which one is good in simulation as I am doing this for the first time .",
"Many thanks Balaji",
"So i wanna improve the performance of it .",
"it depends upon your particular problem area space ."
]
} | {
"confidence": [
73.96550750732422,
50.31572723388672
],
"content": [
"Question : I am planning to implement a concept in MANET Mobile Ad hoc network and I am trying to simulate the same please suggest a good simulator . I am not sure which one would be ease of use and which one is good in simulation as I am doing this for the first time . Please suggest a good one form the list below .. . .. . NS2 or or Opnet or GloMoSim .. . .. . if you have any more suggestions please do let me know . Many thanks Balaji .. . Answer : I am using glomosim to configure my protocol authenticated routing protocol for ad hoc networks . Because from the research paper when i get to know about the protocol it was implemented in Glomosim itself . So i wanna improve the performance of it . The moral of the story is that the selection simulator is depends upon what exactly you want to do in MANETs . it depends upon your particular problem area space . There is one more simulator . The name is ONE simulator for such ad hoc networks . i can provide you the help if you need in configuring the simulator",
"Question : null .. . Answer : My aim is to compare the QoS factors of various MANET protocols like AODV DSR DSDV for which I have decided to use Glomosim simulator.I have installed Glomosim in my windows-8 laptop but I am unable to see any visual representation of nodes and links.Please Help me to figure out how to use this simulator for analyzing QoS ."
]
} | [
"yes-answer-long",
"yes-answer-short"
] | glomosim | UNK_RELATION |
jcr-sql2@java@57 | jcr-sql2 -- jcr-sql2 is a query language defined by the @placeholder content repository 2.0 jsr-283 specification . | {
"confidence": [
96.94551849365234,
83.90020751953125,
83.73210144042969,
75.362060546875,
73.70906829833984,
73.70906829833984,
69.5841293334961,
68.05921936035156,
67.98295593261719,
67.2710952758789,
67.0677719116211,
66.59965515136719,
65.42958068847656,
65.42958068847656,
65.42958068847656,
65.13886260986328,
61.758766174316406,
61.15574645996094,
61.15574645996094,
60.274078369140625,
60.014198303222656,
59.72077178955078,
59.72077178955078,
59.02351379394531,
59.02351379394531,
58.67821502685547,
57.842689514160156,
57.842689514160156,
57.74406051635742,
56.209861755371094,
56.16731262207031,
56.16731262207031,
55.57112121582031,
53.970008850097656,
53.71184539794922,
53.440250396728516,
53.20759582519531,
52.499855041503906,
52.15918731689453,
51.19447326660156,
50.32635498046875,
50.32635498046875,
50.31652069091797,
49.94086456298828,
49.054054260253906,
48.773773193359375,
48.601783752441406,
48.24488067626953,
48.047481536865234,
47.92078399658203,
46.76026916503906,
46.62046813964844,
46.62046813964844,
46.384681701660156,
45.63859558105469,
45.468055725097656,
44.853721618652344,
44.6280403137207,
44.6280403137207,
44.048667907714844,
43.914024353027344,
43.91046142578125,
43.703704833984375,
43.703704833984375,
43.456016540527344,
43.23857116699219,
43.031105041503906,
42.48643493652344,
42.298187255859375,
42.072509765625,
41.571475982666016,
41.53968048095703,
41.46833038330078,
41.323787689208984,
40.354209899902344,
39.774837493896484,
39.774837493896484,
39.774837493896484,
39.774837493896484,
39.774837493896484,
39.75513458251953,
39.75513458251953,
39.01594543457031,
39.01594543457031,
38.96143341064453,
38.96080780029297,
38.93495178222656,
38.64729309082031,
38.4632568359375,
38.391456604003906,
37.78394317626953,
37.642608642578125,
37.642608642578125,
37.39130401611328,
37.37028503417969
],
"content": [
"The standard JCR-SQL2 query language defined in the JCR 2.0 JSR-283 specification https : jcp.org en jsr detail id 283 is read only and has no delete or update or create functionality .",
"Is this possible in JCR-SQL2",
"JCR-SQL2 in ModeShape .. . .. . One JCR implementation ModeShape extends the standard JCR-SQL2 grammar with a number of additional features https : docs.jboss.org author display MODE JCR-SQL2 JCR-SQL2-ExtensionstoJCRSQL2 .",
"Unfortunately there is no aggregation functions in JCR SQL XPath JCR-SQL2 AQM .",
"Yes JCR-SQL2 is not nearly as flexible as normal SQL .",
"You can do this in both JCR-SQL2 and XPath .",
"I would like to be able to do the same using the JCR SQL2 queries .",
"I recently posted on answering a similar question : Using JCR-SQL2 for querying ACLs in a Jackrabbit repository http : dev-answers.blogspot.com.au 2014 06 using-jcr-sql2-for-querying-acls-in.html .",
"You can use this directly in the ordering but unfortunately obtaining the node s name in the query results is not defined in standard JCR-SQL2 .",
"I believe the JCR-SQL2 query would be : .. . .. . My problem is I can t find a UI in which to run this query .",
"I am trying to compare JCR node s string properties with a double value in JCR-SQL2 .",
"For instance if I have a JCR tree such as : .. . .. . When querying using the JCR SQL2 it would return them in an order different from : childNode1 childNode2 childNode3 childNode4 .. . .. . I look in those docs among others : http : docs.jboss.org jbossdna 0.7 manuals reference html jcr-query-and-search.html jcr-sql2-query-language http : www.day.com specs jcr 2.0 6 Query.html .. . .. . Thanks in advance",
"I would like to execute an JCR SQL2 query which selects me the year of a date-property .",
"There are two places the ISCHILDNODE function can be used in a JCR-SQL2 query : in the WHERE clause and in the join criteria .",
"Remember that you can get the Node object s for each row in a JCR-SQL2 query result .",
"Therefore the last JCR-SQL2 query and last XPath query would be processed identically in ModeShape .",
"I am trying to use an IN clause with Magnolia with JCR-SQL2 : .. . .. . However I m receiving this error : .. . .. . Is this caused by the fact my implementation of the JCR does not support the IN clause",
"But I know of no way in JCR-SQL2 to specify the natural order my term of child nodes under a parent .",
"Strictly speaking the selector is implicitly known so JCR-SQL2 allows you to pass in just the path .",
"Per Section 14.16 of the JSR-283 JCR 2.0 specification http : www.day.com specs jcr 2.0 14 Shareable Nodes.html 14.16 20Query implementations are free to include shareable nodes in query results at just one or at multiple all of those locations .",
"Standard JCR 1.0 XPath .. . .. . If you re using a JCR implementation that still supports XPath which technically was specified as part of JSR-170 or JCR 1.0 and was deprecated in JSR-283 or JCR 2.0 you can also use XPath : .. . .. . Since JCR 1.0 does define the jcr : name pseudo-column you can actually pretty easily use the node s name : .. . .. . One more thing : ModeShape 3.x or later parses queries written in JCR-SQL2 XPath and JCR-SQL into the same abstract-syntax-tree and then executes them .",
"I was trying to execute following jcr-sql2 query : .. . .. . But I got .. . .. . Is it any other way to search for nodes that names are like example",
"Below are some of the mappings between xpath and sql2 queries respectively.Taken from http : docs.jboss.org jbossdna 0.7 manuals reference html jcr-query-and-search.html .",
"Standard JCR-SQL2 has a CAST value AS DOUBLE expression but unfortunately it can only be used on the right-hand side of an expression .",
"That s because in JCR-SQL2 you have to access the node s name using a special function named NODENAME or NODELOCALNAME .",
"There was asked the same question and the answer was .. . .. . There is no count or group-by selector in JCR SQL 1 http : jackrabbit.510166.n4.nabble.com count-function-in-query-td2294092.html XPath 2 or JCR-SQL2 AQM 3 .",
"Is there a way to check for Type in SQL2 .",
"Can we do this in SQL2",
"The JCR SQL2 query as below .. . .. . Help me to solve this problem I googled but can t find the relevant issue .",
"But the community is currently working on ModeShape 4.0 currently in Alpha and one more extension has been added : you can specify whether nulls should come first or last https : docs.jboss.org author display MODE40 JCR-SQL2 JCR-SQL2-ExtensionstoJCRSQL2 in an ordering .",
"Is it possible to select node ancestors by SQL2 query",
"So I need to convert this query to SQL2",
"I have a JCR content repository implemented in ModeShape 4.0.0.Final .",
"I want identical XPATH query to trhis SQL2 Query .",
"1 https : www.day.com maven jsr170 javadocs jcr-2.0 javax jcr Property.html getLength 28 29",
"I am using JCR SQL2 queries for fetching data from JCR Repository .",
"Using the JCR API I can access the nodes in my repository and return a set of nodes in the same order as they are in the JCR .",
"Standard JCR-SQL2 .. . .. . Assuming you have a node type called Person with name and nickname fields then one way to achieve something close to your desired results in JCR-SQL2 is : .. . .. . But we can write this query a little more plainly because there is just a single selector i.e . a single table and we can leave off the optional ASC .. . .. . Now strictly speaking the results you get from this query will be dependent upon the implementation and that s because you described in your question how the nickname field might be null and the JCR 2.0 specification does not specify how the ordering deals with NULL values .",
"I am trying to convert this XPath query to SQL2 but to no avail .",
"So the following query using standard JCR-SQL2 would work : .. . .. . but you d have to get the node s name from the javax.jcr.Node obtained from the results rather than one of the values in the result set .",
"PATH and NAME are not supported in all implementations of SQL2 .",
"According serveral documantations the LIKE operator is supported by SQL2 .",
"As you can see the version history representations as prescribed by the JCR specification are quite difficult to query .",
"Internaly they are translated to SQL2 though .",
".. . http : www.day.com specs jcr 1.0 section 8.5 .. . .. . http : www.day.com specs jcr 1.0 section 6.6 .. . .. . http : www.day.com specs jcr 2.0 6 Query.html .. . .. . I think you can connect this answer to MAX and MIN .",
"Are you using JCR Queries app",
"The CRX : DE Query tool CRX : DE Tools Query accepts XPath or SQL2 but only shows me the path to the matching nodes .",
"It s not limited to JCR storage .",
"When a content item is tagged the tag node is first created under Tags if it s not already there and the content node is shared cloned to the tag node using Workspace.clone .. . as described in the JCR 2.0 spec section 14.1 Creation of Shared Nodes http : www.day.com specs jcr 2.0 14 Shareable Nodes.html .",
"Approach 2 I found this amazing page with CQ5 that helps you construct JCR-SQL2 queries http : localhost : 4502 crx explorer ui search.jsp .. . .. . So with the help of this I generated the query .. . .. . This works fine when I fire this query on the search.jsp page of CQ5 .",
"Is there any tool or link available through which i can convert sql2 query into xpath .",
"Yes except that JCR doesn t use that attribute name .",
"Iterating is usually very efficient with JCR repositories .",
"So my question is.. . .. . .. . Is there another query UI buried somewhere in CQ that lets me put in one-off JCR-SQL SQL2 XPath queries with columns specified and get a tabular output the way you would with a SQL prompt or tool",
"Is it possible to do a case insensitive sort in SQL2",
"There is nothing in the JSR-283 specification outlining a way to obtain just the year or month or day or time of a DATE field .",
"Any ideas on how SQL2 deals with property values with backslashes",
"Given a comparator : .. . .. . I d like to achieve the same result with order by using a xpath query or SQL2 if it s beyond xpath s capabilities .",
"There was used some long-runned XPATH queries I just have substituted them with SQL2 query .",
"I ve also used this cheat sheet https : wiki.magnolia-cms.com display WIKI JCR+Query+Cheat+Sheet for the Magnolia implementation .",
"Is there an SQL2 query that is identical to the following XPath query : .. . .. . It should return the following nodes for example : .. . .. . But not the following nodes :",
"I made a quick research about it and turned out that the in JCR specification WHERE IN clause is not listed and its possible with some extensions .",
"Ended up sorting in code as it wasn t supported by my implementation of JCR .",
"How do I correctly search for shared nodes in JCR using ModeShape",
"I want to make sql2 query to get all nodes having Folder1.Name media and Folder2.property1 in 1 2 3 .. . .. . Any idea .",
"I believe in your other post someone already pointed you towards guide on how to create no-jcr app and how to access content outside of JCR from within Magnolia .",
"Say I have nodes stored in Jackrabbit JCR repository where they have multiple tag properties attached .",
"I am new to SQL2 and I cannot find any similar examples on the web just descriptions of syntax in general terms .",
"XPath queries are sometimes much shorter and more readable compared to SQL2 queries .",
"you can easily convert xpath to sql2 and vice-verse using query tool in crxde",
"I don t think JCR is right tool for this kind of queries .",
"Test for the property absence looks like that http : www.day.com maven jcr 2.0 6 Query.html 6.7.18 20PropertyExistence : .. . .. . Your query could be rewritten to :",
"I would think that the following sql2 query would work and get the properties of them but for whatever reason I m getting an error : .. . .. . QUERY .. . .. . ERROR : .. . .. . Any help is appreciated as I ve been at this for the past few days .",
"When I used the keywords sql2 count with Google I found this http : jackrabbit.510166.n4.nabble.com count-function-in-query-td2294092.html page .",
"I guess this is same as this suggestion here : http : stackoverflow.com a 3289152 303106 .. . .. . But AFAIK we don t have CASE constructs in SQL2 .",
"I suggest writing a small servlet that iterates over all pages and does the comparision on JCR property level .",
"Components are placed under par node of page and Replication property is part of page JCR node .",
"For keeping track of size I am trying to get size of any JCR Node including its child nodes .",
"In the JCR I ve noticed that dates are stored in the format Feb 19 2015 12 : 00 : 00 AM .",
"This is more issue of JCR than Magnolia however one may do the following for working this around .",
"Type of query is SQL2 error is -- SELECT FROM nt : base AS s WHERE ISDESCENDANTNODE s etc commerce products flipkart and CONTAINS NAME MainReference and s.id FK123456 OR s.id 123456 expected : . LIKE IS NO",
"Type of query is SQL2 error is -- SELECT FROM nt : base AS s WHERE ISDESCENDANTNODE s etc commerce products flipkart and CONTAINS NAME MainReference and s.id FK123456 OR s.id 123456 expected : . LIKE IS NO",
"do you know why XPATH was deprecated in JCR 2",
"You can easily do this as suggested above at JCR level .",
"Let s pretend I have a JCR 2 query-string that is made like this : .. . .. . Are there helper methods using which I can escape aValue",
"I am using Jackrabbit 2.8.0 and JCR 2.0 I am developing a project for a organization so that it s users can store their documents and directories in digital format using their user account .",
"The hierarchical nature and all the JCR features make this impossible .",
"He should be able to study the code of jackrabbit.apache.org jcr object-content-mapping.html http : jackrabbit.apache.org jcr object-content-mapping.html then can get the content although probably not in one but multiple queries per document eventually with user-defined functions which are supported in Oracle and might make things easier .",
"I referred to this page 9 JCR Queries every AEM developer should know http : labs.6dglobal.com blog 2014-10-07 9-jcr-sql-2-queries-every-aem-dev-should-know .. . .. . Please refer to point number 7 .",
"But as per CQ practices https : cqdump.wordpress.com 2013 07 23 cq-development-patterns-sling-resourceresolver-and-jcr-sessions and this blog http : tech.ethomasjoseph.com 2015 09 sling-who-is-closing-my-jcr-session.html .. . .. . It is better practice to operate at Sling level and NOT JCR level just to avoid overhead of managing the resources .",
"You may do something like .. . .. . For more examples please have a look at https : wiki.magnolia-cms.com display WIKI JCR+Query+Cheat+Sheet http : Magnolia 20Jcr 20Query 20Cheat 20Sheet .. . .. . Cheers",
"I have some records stored as Nodes in JCR and the name of the node is the primary-key .",
"thanks for your answer i fully agree that JCR has got these limitations when it comes to my requirements .",
"Escape the backslash JCR SQL2 - FAILURE .. . .. . When I try to escape the backslash like I found in some dark jcr-sql2 documentation I also get no results : .. . .. . Escape the backslash Java-style - FAILURE .. . .. . When I try to escape the backslash java style I also get no results : .. . .. . URL Encode the backslash - FAILURE .. . .. . Apply URL encoding to the string no results : .. . .. . Use square brackets to escape any characters - FAILURE .. . .. . Wrap the value in square brackets like with the where clause left operand no results both with and without quotes : .. . .. . CAST the value to String - FAILURE .. . .. . Cast the value explicitly to String no results : .. . .. . Use the CONTAINS operator - WORKAROUND .. . .. . When I use CONTAINS I do get results but I would like to avoid this if possible .",
"I use an application where we can manipulate JCR nodes typically you would rename remove delete or else move them ."
]
} | {
"confidence": [
129.30445861816406,
109.67652130126953,
107.37873840332031,
97.68028259277344,
90.64633178710938,
84.82443237304688,
83.00957489013672,
82.22769927978516,
81.61505126953125,
81.32991027832031,
79.43453216552734,
78.56233978271484,
78.21723175048828,
76.4681625366211,
76.09911346435547,
75.7657470703125,
74.68377685546875,
74.03424835205078
],
"content": [
"Question : I followed the statement DELETE address : Address where Address is one of the entities . Please help in this regard with possible examples on how to implement DeleteAll method . .. . Answer : The standard JCR-SQL2 query language defined in the JCR 2.0 JSR-283 specification https : jcp.org en jsr detail id 283 is read only and has no delete or update or create functionality .",
"Question : Given a comparator : .. . .. . I d like to achieve the same result with order by using a xpath query or SQL2 if it s beyond xpath s capabilities . Is it possible Given data : .. . .. . Sorted data : Comment : It would help if you put some data set and the exact output you are expecting Comment : @RobertoSanchez : data provided .. . Answer : You can do this in both JCR-SQL2 and XPath . Standard JCR-SQL2 .. . .. . Assuming you have a node type called Person with name and nickname fields then one way to achieve something close to your desired results in JCR-SQL2 is : .. . .. . But we can write this query a little more plainly because there is just a single selector i.e . a single table and we can leave off the optional ASC .. . .. . Now strictly speaking the results you get from this query will be dependent upon the implementation and that s because you described in your question how the nickname field might be null and the JCR 2.0 specification does not specify how the ordering deals with NULL values . For example should they appear before or after non-null values The implementation gets to pick . There s another sticky issue . Notice that I ve assumed that the Person node type has a name field rather than assume that you re storing the name of the person in the node s name . That s because in JCR-SQL2 you have to access the node s name using a special function named NODENAME or NODELOCALNAME . You can use this directly in the ordering but unfortunately obtaining the node s name in the query results is not defined in standard JCR-SQL2 . So the following query using standard JCR-SQL2 would work : .. . .. . but you d have to get the node s name from the javax.jcr.Node obtained from the results rather than one of the values in the result set . Strictly speaking this is neither expensive nor difficult it just changes how your application uses the query results . JCR-SQL2 in ModeShape .. . .. . One JCR implementation ModeShape extends the standard JCR-SQL2 grammar with a number of additional features https : docs.jboss.org author display MODE JCR-SQL2 JCR-SQL2-ExtensionstoJCRSQL2 . One of those extensions is to introduce several pseudo-columns including : .. . .. . jcr : name is a stand-in for the node s name .. . jcr : path is a stand-in for the node s path .. . mode : localName is a stand-in for the local part of the node s name .. . mode : depth evaluates to the depth of the node .. . jcr : uuid evaluates to the result-of javax.jcr.Node.getUUID .. . .. . So you can use the jcr : name pseudo-column both in the ordering and in the SELECT clause : .. . .. . Those options are available in ModeShape 3.x . But the community is currently working on ModeShape 4.0 currently in Alpha and one more extension has been added : you can specify whether nulls should come first or last https : docs.jboss.org author display MODE40 JCR-SQL2 JCR-SQL2-ExtensionstoJCRSQL2 in an ordering . Here s a variation of the earlier query that shows how to use it : .. . .. . If you re Person node type definition ensured that the name property were mandatory never null you wouldn t need to specify the NULLS FIRST or NULLS LAST on the name column ordering . Here s the same query except with jcr : name rather than name : .. . .. . Notice that we didn t need to specify NULLS FIRST or NULLS LAST on the jcr : name column since every node has a name and thus jcr : name will never be null . Standard JCR 1.0 XPath .. . .. . If you re using a JCR implementation that still supports XPath which technically was specified as part of JSR-170 or JCR 1.0 and was deprecated in JSR-283 or JCR 2.0 you can also use XPath : .. . .. . Since JCR 1.0 does define the jcr : name pseudo-column you can actually pretty easily use the node s name : .. . .. . One more thing : ModeShape 3.x or later parses queries written in JCR-SQL2 XPath and JCR-SQL into the same abstract-syntax-tree and then executes them . Therefore the last JCR-SQL2 query and last XPath query would be processed identically in ModeShape . Comment : My case is not select from person order by name nickname . It is select from person order by use nickname or if it s null use name . If name is a restricted keyword use workphone and mobilephone as field names . It s irrelevant .",
"Question : I use an application where we can manipulate JCR nodes typically you would rename remove delete or else move them . Using the JCR API I can access the nodes in my repository and return a set of nodes in the same order as they are in the JCR . I would like to be able to do the same using the JCR SQL2 queries . I have not found anything about this now start to believe this is not possible . For instance if I have a JCR tree such as : .. . .. . When querying using the JCR SQL2 it would return them in an order different from : childNode1 childNode2 childNode3 childNode4 .. . .. . I look in those docs among others : http : docs.jboss.org jbossdna 0.7 manuals reference html jcr-query-and-search.html jcr-sql2-query-language http : www.day.com specs jcr 2.0 6 Query.html .. . .. . Thanks in advance .. . Answer : The only way to specify the order of the query results is to use an ORDER BY clause in your query . If you don t the implementation is free to return the nodes in whatever order it wants . But I know of no way in JCR-SQL2 to specify the natural order my term of child nodes under a parent . Comment : I think you re correct : there is no way to specify the natural order as you call it . I will mark your answer as correct for now unless proven wrong .",
"Question : I use an application where we can manipulate JCR nodes typically you would rename remove delete or else move them . Using the JCR API I can access the nodes in my repository and return a set of nodes in the same order as they are in the JCR . I would like to be able to do the same using the JCR SQL2 queries . I have not found anything about this now start to believe this is not possible . For instance if I have a JCR tree such as : .. . .. . When querying using the JCR SQL2 it would return them in an order different from : childNode1 childNode2 childNode3 childNode4 .. . .. . I look in those docs among others : http : docs.jboss.org jbossdna 0.7 manuals reference html jcr-query-and-search.html jcr-sql2-query-language http : www.day.com specs jcr 2.0 6 Query.html .. . .. . Thanks in advance .. . Answer : Did you try setting the property respectDocumentOrder to true in your Jackrabbit Search Configuration http : wiki.apache.org jackrabbit Search Search Configuration If true and the query does not contain an order by clause result nodes will be in document order . For better performance when queries return a lot of nodes set to false In 1.5 false is now the default . You should set it to true really only if you need it because query results will be iterated fully in Java in order to sort them . Comment : Thanks a lot @jfranktzius . Do you know if there is any way to do this programmatically for a specific query Comment : I created an issue on Magnolia s JIRA hoping they will make it default . jira.magnolia-cms.com browse MAGNOLIA-5301 http : jira.magnolia-cms.com browse MAGNOLIA-5301",
"Question : I am trying to use an IN clause with Magnolia with JCR-SQL2 : .. . .. . However I m receiving this error : .. . .. . Is this caused by the fact my implementation of the JCR does not support the IN clause .. . Answer : I made a quick research about it and turned out that the in JCR specification WHERE IN clause is not listed and its possible with some extensions . http : download.oracle.com otndocs jcp content repository-2.0-fr-oth-JSpec .. . .. . So you already answered yourself that its not supported in the version you are currently using . Cheers",
"Question : I want identical XPATH query to trhis SQL2 Query . Is there any tool or link available through which i can convert sql2 query into xpath . or any tutorial if yes then please share the link Comment : The only way I know is with code . If you use the com.day.cq.search.Query class you see the used xpath query in the debugger of the IDE after the method getResult is called.. . .. . Answer : Below is the equilvalent XPath query . Below are some of the mappings between xpath and sql2 queries respectively.Taken from http : docs.jboss.org jbossdna 0.7 manuals reference html jcr-query-and-search.html . Thanks Balaji",
"Question : I have a JCR content repository implemented in ModeShape 4.0.0.Final . The structure of the repository is quite simple and looks like this : .. . .. . The content is initially created and stored under Content as nt : unstructured nodes with mix : shareable mixin . When a content item is tagged the tag node is first created under Tags if it s not already there and the content node is shared cloned to the tag node using Workspace.clone .. . as described in the JCR 2.0 spec section 14.1 Creation of Shared Nodes http : www.day.com specs jcr 2.0 14 Shareable Nodes.html . I don t find this particularly elegant and I did just read this answer about creating a tag based search system in JCR http : stackoverflow.com questions 14315031 best-way-to-implements-a-tag-based-search-system-by-jcr-like-modeshape 14327083 14327083 so I realize this might not be the best fastest most scaleable solution . But I inherited this solution from developers before me so I hope I don t have to rewrite it all.. . .. . .. . Anyway the sharing itself seems to work I can verify that the nodes are there using the ModeShape Content Explorer web app or programatically by session.getRootNode .getNode Tags Foo .getNodes . But I am not able to find any shared nodes using a query .. . .. . My initial try using JCR SQL2 syntax was : .. . .. . The result set was to my surprise empty . I also tried searching in mix : shareable like this : .. . .. . This also returned an empty result set . I can see from the query : .. . .. . ...that the query otherwise works and returns the expected result all content . It just doesn t work when searching for the shared nodes . How do I correctly search for shared nodes in JCR using ModeShape .. . .. . Update : I upgraded to 4.1.0.Final to see if that helped but it had no effect on the described behaviour . Comment : I have posted the same question on the JBoss ModeShape forums https : developer.jboss.org message 918745 918745 due to lack of answers here . .. . Answer : Cross-posted from the ModeShape forum https : developer.jboss.org message 918745 918745 : .. . .. . Shared nodes are really just a single node that appears in multiple places within a workspace so it s not exactly clear what it semantically means to get multiple query results for that one shareable node . Per Section 14.16 of the JSR-283 JCR 2.0 specification http : www.day.com specs jcr 2.0 14 Shareable Nodes.html 14.16 20Query implementations are free to include shareable nodes in query results at just one or at multiple all of those locations . ModeShape 2.x and 3.x always returned in query results only a single location of the shared nodes as this was the behavior of the reference implementation and this was the feedback we got from users . When we were working on Modeshape 4.0 we tried to make it possible to return multiple results but we ran into problems with the TCK and uncertainty about what this new expected behavior would be . Therefore we backed off our goals and implemented query to return only one of the shared locations as we did with 2.x and 3.x . I may be wrong but I m not exactly sure if any JCR implementation returns multiple rows for a single shared node but I may be wrong .",
"Question : Is it possible to select node ancestors by SQL2 query For example .. . I have : content categories sport football node .. . Want to select : content content categories content categories sport nodes .. . Answer : You can but assuming you have other siblings at those levels it s not very easy or dynamic . Honestly it ll probably be far easier and far more performant to just use the Node methods to walk up the ancestors . Remember that you can get the Node object s for each row in a JCR-SQL2 query result . Alternatively if you just want the paths to the ancestors then you can implicitly get these from the path of a result node e.g . content categories sport nodes .",
"Question : I have some records stored as Nodes in JCR and the name of the node is the primary-key . eg 1 2 3 . But the problem starts here .. . .. . the records are as follows 1 2 6 53 54 .. . .. . Where the numbers above are nodes under EMP unstructured node . If I do .. . .. . int count empNode.getNodeIterator .getSize I will get 5 As there are 5 nodes .. . .. . So I do count++ which gives me 6 but 6 already exists so I can t create a node with name 6 under EMP nt : unstructred thats why I want to apply MAX nodeNames something in the query . What should I do Update : : I use CQ5.5 . EMP is an unstructered node under content like content EMP . Under this EMP I have unstructered nodes that hold my data . And these node have names as 1 2 etc Comment : Which version of CQ5 do you use And what is EMP Comment : @reporter : : Please see the update Comment : See my answer below . .. . Answer : I tried with my CQ5.4 instance to find a soloution . Unfortunatly my tries were not successful . When I used the keywords sql2 count with Google I found this http : jackrabbit.510166.n4.nabble.com count-function-in-query-td2294092.html page . There was asked the same question and the answer was .. . .. . There is no count or group-by selector in JCR SQL 1 http : jackrabbit.510166.n4.nabble.com count-function-in-query-td2294092.html XPath 2 or JCR-SQL2 AQM 3 . .. . To implement such a tag-cloud you can run one query that fetches all your content containing the relevant tag property : .. . .. . element my : Article @tag .. . .. . and then iterate over the result and count your tags on the application side by looking at the tag property values and using some hashmap tagid - count . .. . http : www.day.com specs jcr 1.0 section 8.5 .. . .. . http : www.day.com specs jcr 1.0 section 6.6 .. . .. . http : www.day.com specs jcr 2.0 6 Query.html .. . .. . I think you can connect this answer to MAX and MIN . Comment : : : does that mean that . We fetch all the records we want and then re iterate over it in JCR SQL2 Or do I have to really do that manually in Java Or are you talking about writing a procedure in CQ5 The last question is bizzare but just curious Comment : Yes you have to it manually . Fortunatly the java.util.List contains the method size . Comment : : : I understand . but if you see my question properly you ll understand that list.size doesn t help me . I however managed to solve it by maintaining a CounterTable node that keeps a track of the latest used integer instead of doing list.size +1 to get the latest int and use it as primary-key .",
"Question : I am trying to compare JCR node s string properties with a double value in JCR-SQL2 . But it is comparing the values as string s . For example : .. . .. . Here propertyY is the string in the definition . I tried this with CASE but it still does not work . Can I compare it as double without changing the property definition .. . Answer : Standard JCR-SQL2 has a CAST value AS DOUBLE expression but unfortunately it can only be used on the right-hand side of an expression . Yes JCR-SQL2 is not nearly as flexible as normal SQL . To my knowledge there is not really a valid standard way to convert the property value to a double before running the comparison . If you cast the double value to a string you ll get a lexicographical comparison -- which of course won t really be very useful . I m not sure about other implementations but ModeShape would convert the property value to a double when the property is a residual property since a residual property has no definition and therefore not type . It s quite likely that other implementations would not behave like this . Comment : Using a string value doesn t work either even when it s an comparison .",
"Question : null .. . Answer : Issue .. . .. . I have an oak property index on the property somePath .. . .. . When I execute SQL2 queries on this property like below I get results : .. . .. . However when I put values with a backslash in this query it cannot find any results while there are matches in the metadata . All content is correctly indexed and the index is being used visible in Explain Query .. . .. . Tryouts .. . .. . ESCAPE operator - FAILURE .. . .. . I already tried to use the ESCAPE operator from the LIKE command but this does not work with a simple equality operator . Escape the backslash JCR SQL2 - FAILURE .. . .. . When I try to escape the backslash like I found in some dark jcr-sql2 documentation I also get no results : .. . .. . Escape the backslash Java-style - FAILURE .. . .. . When I try to escape the backslash java style I also get no results : .. . .. . URL Encode the backslash - FAILURE .. . .. . Apply URL encoding to the string no results : .. . .. . Use square brackets to escape any characters - FAILURE .. . .. . Wrap the value in square brackets like with the where clause left operand no results both with and without quotes : .. . .. . CAST the value to String - FAILURE .. . .. . Cast the value explicitly to String no results : .. . .. . Use the CONTAINS operator - WORKAROUND .. . .. . When I use CONTAINS I do get results but I would like to avoid this if possible . Any ideas on how SQL2 deals with property values with backslashes Comment : Where are you using the query Java JS .. . I tried with crxde query tool and with acs tools explain query . Both worked without escaping .",
"Question : I was trying to execute following jcr-sql2 query : .. . .. . But I got .. . .. . Is it any other way to search for nodes that names are like example I was also trying to search for nodes with specified path .. . .. . But I got .. . .. . How can I search nodes that paths are like example I am using JCR SQL2 .. . Answer : Edit .. . .. . A couple of points : .. . .. . If you don t include a wildcard like in your pattern there s not much difference between LIKE and the ordinary operator . PATH and NAME are not supported in all implementations of SQL2 . They appear to be OK under JBoss . To search for nodes within a subtree use the ISDESCENDANTNODE function . There is a jcr : title attribute that you can test it s not the same as the node name but it might serve your purposes . So for your first query try something like .. . .. . The JBoss documentation on querying http : docs.jboss.org jbossdna 0.7 manuals reference html jcr-query-and-search.html is fairly good but be aware that it may not line up exactly with vanilla Jackrabbit . I ve also used this cheat sheet https : wiki.magnolia-cms.com display WIKI JCR+Query+Cheat+Sheet for the Magnolia implementation . Comment : Actually wouldn t the query use .. . WHERE jcr : name LIKE .. . Comment : Yes except that JCR doesn t use that attribute name . My answer is sort of scrambled . I will try to clean it up . Comment : Well if I didn t need in my pattern I wouldn t ask for like I thought it was obvious . NAME works with so I guess it must be implemented . Comment : Unfortunately your query doesn t find files which names are like opony .",
"Question : Is there an SQL2 query that is identical to the following XPath query : .. . .. . It should return the following nodes for example : .. . .. . But not the following nodes : .. . Answer : Following should work : .. . .. . If the type of s is cq : PageContent and type of parent is cq : Page you may use this information to make the query faster : Comment : do you know why XPATH was deprecated in JCR 2 XPath queries are sometimes much shorter and more readable compared to SQL2 queries . Comment : Even though it was deprecated I m still using XPATH because of this . Internaly they are translated to SQL2 though . It is so much easier to map the node structure to XPATH . So I d also like to know why we should use the way more complex and hard to read SQL2 over XPATH .",
"Question : I am doing a little usage research in our AEM installation . I would like to find all instances of a component and see what value they have for a certain configuration option . So basically I want to select the title and myOption properties from all nodes with sling : resourceType myComponent . I believe the JCR-SQL2 query would be : .. . .. . My problem is I can t find a UI in which to run this query . The CRX : DE Query tool CRX : DE Tools Query accepts XPath or SQL2 but only shows me the path to the matching nodes . Sure I can click on each one to zoom to that node but that s tedious . I want a tabular output with title and property value . The Query Builder Debugger libs cq search content querydebug.html uses its own URL-based query syntax and only outputs JSON . I recreated the query in terms of URL parameters.. . .. . .. . property sling : resourceType .. . property.value path to my component .. . p.hits selective .. . p.properties title myProperty .. . p.limit -1 .. . .. . .. . .. . But I still don t want to write code to parse the JSON and display a table . I understand that I could write a class component to display this but again this is a one-off query and I am just digging around . I d prefer not to have to write Java JS or JSP just to send and display this query . So my question is.. . .. . .. . Is there another query UI buried somewhere in CQ that lets me put in one-off JCR-SQL SQL2 XPath queries with columns specified and get a tabular output the way you would with a SQL prompt or tool .. . .. . I would settle for a query-builder incantation to produce pretty-printed JSON so I could at least eyeball the JSON results . .. . Answer : You can use the bulk editor etc importers bulkeditor.html . It is a great match for your requirement .. . .. . Just set root path as content uncheck content mode and for query parameters use sling : resourceType : path to my component . Set custom properties to title myOption . It display s the result in a table . For more : http : docs.adobe.com docs en cq 5-6 administering bulk editor.html .. . .. . Bulk editor only works for simple queries for complex queries you can try this : http : adobe-consulting-services.github.io acs-aem-tools features query-editor.html .",
"Question : null .. . Answer : I have jcr structure as below : .. . .. . so Inside krishna are several algorithms folders and each algorithm folders have 2 more folders Folder1 and Folder2 having property as stated . I want to make sql2 query to get all nodes having Folder1.Name media and Folder2.property1 in 1 2 3 .. . .. . Any idea . Thanks Comment : What are the node s primary and resource types jcr : primaryType and sling : resoureType",
"Question : I would like to execute an JCR SQL2 query which selects me the year of a date-property . Something like this : .. . .. . Is something similar even possible I have searched and did not find anything but I could just suck at searching so sorry if something like this has been answered before . Thanks Cheers Evan Comment : In my eyes your query is not a valid SQL statement . The computer does need at least the FROM clausel where the computer should finde the nodes . Comment : @reporter You are right it s not a valid SQL statement it was just an example . I changed that to prevent confusion though the problem will remain the same . Comment : I understand you re point and I answered your question below . But your query may be misleading to others : the x in the FROM clause identifies a node type and it s unrelated to the x in the property name s that represents a namespace prefix . Using a different namespace prefix would eliminate this ambiguity : SELECT DATE FORMAT jcr : created Y FROM x Comment : @RandallHauch Thanks for clarifying that . I edited the post .. . Answer : There is nothing in the JSR-283 specification outlining a way to obtain just the year or month or day or time of a DATE field . The only way to accomplish what you want is to get the DATE value using either the rows or the nodes in the javax.jcr.query.QueryResult object as a java.util.Calendar object and .. . .. . If you re query is something like : .. . .. . then the following example shows how to do this by using the rows : .. . .. . It is important to understand that value.getDate will attempt to convert the actual value to a DATE if it is not already one . This may cause an exception if the actual value can t be converted . If the query has a single selector e.g a single table in the FROM clause then each row in the results contains a single node and rather than using the rows as we did above we can get a NodeIterator : .. . .. . Note that we had to use the property name rather than the alias . Comment : I was hoping that there was another way to get the date in the right format directly from the server . I did not wanted to parse the date in Java for various reasons . But thanks for your answer",
"Question : I am doing a little usage research in our AEM installation . I would like to find all instances of a component and see what value they have for a certain configuration option . So basically I want to select the title and myOption properties from all nodes with sling : resourceType myComponent . I believe the JCR-SQL2 query would be : .. . .. . My problem is I can t find a UI in which to run this query . The CRX : DE Query tool CRX : DE Tools Query accepts XPath or SQL2 but only shows me the path to the matching nodes . Sure I can click on each one to zoom to that node but that s tedious . I want a tabular output with title and property value . The Query Builder Debugger libs cq search content querydebug.html uses its own URL-based query syntax and only outputs JSON . I recreated the query in terms of URL parameters.. . .. . .. . property sling : resourceType .. . property.value path to my component .. . p.hits selective .. . p.properties title myProperty .. . p.limit -1 .. . .. . .. . .. . But I still don t want to write code to parse the JSON and display a table . I understand that I could write a class component to display this but again this is a one-off query and I am just digging around . I d prefer not to have to write Java JS or JSP just to send and display this query . So my question is.. . .. . .. . Is there another query UI buried somewhere in CQ that lets me put in one-off JCR-SQL SQL2 XPath queries with columns specified and get a tabular output the way you would with a SQL prompt or tool .. . .. . I would settle for a query-builder incantation to produce pretty-printed JSON so I could at least eyeball the JSON results . .. . Answer : Consider using the Groovy Console https : github.com Citytechinc cq-groovy-console . You may easily write a short script producing desired output : .. . .. . Script can be simply pasted into the text area no need to compile or upload anything to the server . Comment : AEM Fiddle is essentially the same idea as Groovy Console but lets you execute your code via JSPs or any other script languages AEM supports .. . adobe-consulting-services.github.io acs-aem-tools features http : adobe-consulting-services.github.io acs-aem-tools features aem-fiddle.html",
"Question : I have many nt : folder Node s created and upon each folder creation permissions has been granted to different set of users . Now I need to get list of nodes based on user with read and write persmissions . Using jackrabbit 2.6.0 .. . .. . Partial snippet of user creation and privieges assignement : .. . .. . User creation .. . Add entry .. . Temporary folder access .. . Adding Node .. . .. . public Node addNode String parent String name ETNodeTypes type throws JCRServiceException .. . checkSession .. . try .. . name Text.escapeIllegalJcrChars name .. . logger.debug Adding Node : + parent + type : + type + name escaped : + name .. . Node node session.getNode parent .addNode name type.getName .. . node.addMixin rep : AccessControllable .. . logger.debug Node added : + node.getPath .. . return node .. . catch RepositoryException e .. . e.printStackTrace .. . throw new JCRServiceException e e.getMessage Unable to create .. . .. . .. . .. . .. . Thanks . .. . Answer : I recently posted on answering a similar question : Using JCR-SQL2 for querying ACLs in a Jackrabbit repository http : dev-answers.blogspot.com.au 2014 06 using-jcr-sql2-for-querying-acls-in.html . This was my example query : Comment : try to execute your query getting error . Error ---- javax.jcr.RepositoryException : This query result contains more than one selector Code Snippet : String sqlStatement1 select resource . ace . from nt : hierarchyNode as resource inner-join rep : ACL as acl ON ISCHILDNODE acl resource + inner-join rep : ACE as ace ON ISCHILDNODE ace acl where ace . rep : principalName testPrincipal Query query queryManager.createQuery sqlStatement1 Query.JCR SQL2 QueryResult result query.execute NodeIterator nodeIterator1 result.getNodes Comment : The issue is your NodeIterator nodeIterator1 result.getNodes call - there are two selectors in my example query - to give you values from both nt : hierarchyNode and rep : ACE . Change the query to be just resource . to avoid the error . If you wanted both resource and principal details in the results keep the query as-is and use result.getRows . For each row you could get at the node via getNode selectorName ."
]
} | [
"yes-answer-long",
"yes-answer-short"
] | java | UNK_RELATION |
appc-hyperloop@api@126 | appc-hyperloop -- use for programming or development questions related to appcelerator s hyperloop solution to access any 3p @placeholder for developing native mobile apps using javascript . | {
"confidence": [
59.8146858215332,
58.90016555786133,
57.1646728515625,
56.56879425048828,
48.37989044189453,
48.37989044189453,
48.37989044189453,
46.48834991455078,
46.48665237426758,
45.903560638427734,
43.558799743652344,
43.558799743652344,
41.94936752319336,
41.911773681640625,
40.608184814453125,
37.30339813232422,
37.30339813232422,
36.79922103881836,
34.03288269042969,
32.87188720703125,
31.47470474243164,
30.754711151123047,
26.23215675354004,
26.078275680541992,
25.438858032226562,
20.649791717529297,
20.649791717529297,
20.649791717529297,
20.649791717529297,
20.649791717529297,
20.649791717529297,
20.649791717529297,
20.649791717529297,
20.649791717529297,
20.649791717529297,
20.649791717529297,
20.649791717529297,
20.649791717529297,
20.649791717529297,
20.649791717529297,
20.649791717529297,
20.649791717529297,
20.649791717529297,
20.649791717529297,
20.649791717529297,
20.649791717529297,
20.649791717529297,
20.649791717529297,
20.649791717529297,
20.649791717529297,
20.649791717529297,
20.649791717529297,
20.649791717529297,
20.649791717529297,
20.649791717529297,
20.649791717529297,
20.649791717529297,
20.649791717529297,
20.649791717529297,
20.649791717529297
],
"content": [
"After downloading the hyperloop-examples files and running appc ti build -p ios I get errors when Hyperloop finds the CocoaPods dependencies .",
"I m trying to use OpenWebRTC in appcelerator with hyperloop and even it compiles and launches the app I can t access to the module .",
"I ve written before about a problem running Hyperloop https : stackoverflow.com questions 34817022 cant-run-hyperloop-project project .",
"I m trying out Hyperloop .",
"it is stuck on : .. . .. . I have also tried downloading the Hyperloop examples project .",
"It could also be a Hyperloop problems with parsing the C-based files included in the framework .",
"Version 1.0.1 of cocoapods does not work with hyperloop right now .",
"If run a newly created project to witch I added Hyperloop from Appcelerator Studio it seems like compilation is stuck on : .. . .. . So what I did now is to run it from command-line using : .. . .. . And right after Skipping Hyperloop compile no usage found .. . I get the following error messages : .. . .. . How can I make Hyperloop run",
"I ve downloaded the latest SDK from master as explained here : http : builds.appcelerator.com master .. . .. . I ve also downloaded the latest Hyperloop from here http : labs.appcelerator.com project 55f74a9f421c44837717716b Hyperloop-Module and followed the instructions in the PDF file .",
"Please make sure to use the latest Hyperloop 1.1.0 Beta version from the labs .",
"on a new project not the examples it s still stuck on Skipping Hyperloop compile no usage found .. .",
"Following the guide from here : labs.appcelerator.com project 55f74a9f421c44837717716b http : labs.appcelerator.com project 55f74a9f421c44837717716b Hyperloop-Module",
"since I had the following line : .. . .. . I decided to add a minimal Hyperloop code inside the project : .. . .. . Then when I ran again I got a different error message starting with : .. . .. . This is something I already know to be permission issues - and it makes sense since the Hyperloop module was downloaded from the internet .",
"Here s my swift code : .. . .. . when compiling I get the following error message : .. . .. . UIAlertController is part of UIKit https : developer.apple.com library ios documentation UIKit Reference UIAlertController class and from my understanding native-code ran with Hyperloop won t need to wait for Appcelerator to implement it .",
"The following example code works for me tested in the hyperloop-examples repository : .. . .. . Also make sure to run the app with iOS 8 and later .",
"Here s the output : .. . .. . The instruction PDF mentioned that I need to download SDK 5.2.0 - but it doesn t exists in builds - so I downloaded 6.0.0.xxxxxxx .. . .. . How can I make Hyperloop run",
"Ok so it seems like there s a bug where if the hyperloop compiler doesn t find anything to do it says it skips but in fact it hangs probably doesn t call a callback .",
"This bug has already been reported at the Appcelerator JIRA and can be tracked via : .. . .. . https : jira.appcelerator.org browse AC-563 .. . .. . To download a 5 2 x nightly you could use appc ti sdk install -b 5 2 x .",
"I tried using 6.0.0.v20160218102417 and 5.2.0.v20160216202526 appc -v 5.2.0-265 ti -v 5.0.6",
"To report a bug with Appcelerator go to jira.appcelerator.org https : jira.appcelerator.org",
"@developer82 I ve found an Appcelerator JIRA ticket for the original issue you had .",
"The exact error text is : .. . .. . ERROR An error occurred during build after 3s 372ms ERROR pod install returned a non-zero exit code .. . .. . The only change I had to make was to set sdk-version in tiapp.xml to 5.4.0.v20160608165242 instead of 5.4.0 pulled this version of the SDK by running appc ti sdk install -b 5 4 X .. . .. . appc -v returns 5.2.2 appc ti -v returns 5.0.6 .. . .. . Also if I remove the Podfile file the app builds and runs on the simulator .",
"I found the solution .",
"You could easily find out by adding a require for some kind of native API .",
"Any clue",
"I created a new Alloy project in tiapp.xml I ve created the plugin and module and ran my empty project .",
"it didn t seem to complete compilation .",
"Output was a little different there - but still did not complete compilation .",
"Judging by. . .. . .. . it looks like you compile for iOS while HL still tries to parse the Android specific controllers - which it shouldn t .",
"After downloading 5 2 x compilation completed and app launched on device - but now I get the red screen saying undefined is not an object evaluating Ti.Stream.pump at app.js line 231",
"As for Ti.Stream.pump that s something LiveView uses .",
"Do you have that enabled perhaps",
"I ran into it myself with the latest 5 2 X as well : jira.appcelerator.org browse AC-563 https : jira.appcelerator.org browse AC-563",
"apparently it seems to be a permission problem - even if the message isn t so .",
"fixup was easy just run .. . .. . everything compiles .",
"Thanks for finding these bugs .",
"I didn t run into the EACCES error but I did reproduce report and fix the no usage found one : jira.appcelerator.org browse TIMOB-20274 https : jira.appcelerator.org browse TIMOB-20274",
"I m still getting this issue .",
"@Kosso did you try running from CLI and not from Studio",
"if so what error are you getting",
"I tried both CLI and Studio .",
"Same error as above .",
"@Kosso you are getting EACCES error",
"And I m trying to run a custom swift script I have in my project like shown in the exmaple .",
"So I m wondering why this code doesn t run .",
"Since its a non-proxy API you need to validate it on your own .",
"To set the minimum target to iOS8 add the following key in the ios section of your tiapp.xml : .. . .. . min-ios-ver 8.0 min-ios-ver",
"This is my PodFile : .. . .. . platform : ios 7.0 target Hyperloop Sample do pod OpenWebRTC-SDK : git https : github.com EricssonResearch openwebrtc-ios-sdk.git pod JBChartView pod GLCalendarView 1.2 end and when I try to do require OpenWebRTC-SDK OpenWebRTC the app fails with .. . .. . Couldn t find module OpenWebRTC-SDK OpenWebRTC .. . .. . If I try with other frameworks i.e .",
"Fabric and Crashlytics it works properly .",
"link-to JIRA issue : jira.appcelerator.org browse TIMOB-20297 https : jira.appcelerator.org browse TIMOB-20297",
"Did you verify that OpenWebRTC-SDK OpenWebRTC is the right way to require the main class",
"You can validate that by checking the framework inside the Pods directory .",
"If you still experience problems feel free to file a JIRA-ticket https : jira.appcelerator.org including your Podfile and a full stack-trace .",
"Thank you",
"Most of the samples work obviously not the Third-Party Libraries one .",
"I see in some of the other issues where people were able to get the cocoapod dependencies working so this may just be a cocoapod issue with my machine .",
"pod --version returns 1.0.1 .. . .. . pod install provides the error : .. . .. . Could not automatically select an Xcode project .",
"Specify one in your Podfile like so :",
"Uninstalled that version and installed 0.39.0 instead resolved the issue .",
"sudo gem install cocoapods -v 0.39.0"
]
} | {
"confidence": [
85.59858703613281,
82.85047912597656,
75.79985809326172,
73.81784057617188,
65.88357543945312
],
"content": [
"Question : I ve downloaded the latest SDK from master as explained here : http : builds.appcelerator.com master .. . .. . I ve also downloaded the latest Hyperloop from here http : labs.appcelerator.com project 55f74a9f421c44837717716b Hyperloop-Module and followed the instructions in the PDF file . I created a new Alloy project in tiapp.xml I ve created the plugin and module and ran my empty project . it didn t seem to complete compilation . it is stuck on : .. . .. . I have also tried downloading the Hyperloop examples project . Output was a little different there - but still did not complete compilation . Here s the output : .. . .. . The instruction PDF mentioned that I need to download SDK 5.2.0 - but it doesn t exists in builds - so I downloaded 6.0.0.xxxxxxx .. . .. . How can I make Hyperloop run .. . Answer : Judging by. . .. . .. . it looks like you compile for iOS while HL still tries to parse the Android specific controllers - which it shouldn t . This bug has already been reported at the Appcelerator JIRA and can be tracked via : .. . .. . https : jira.appcelerator.org browse AC-563 .. . .. . To download a 5 2 x nightly you could use appc ti sdk install -b 5 2 x . Comment : After downloading 5 2 x compilation completed and app launched on device - but now I get the red screen saying undefined is not an object evaluating Ti.Stream.pump at app.js line 231 Comment : on a new project not the examples it s still stuck on Skipping Hyperloop compile no usage found .. . Comment : Ok so it seems like there s a bug where if the hyperloop compiler doesn t find anything to do it says it skips but in fact it hangs probably doesn t call a callback . You could easily find out by adding a require for some kind of native API . To report a bug with Appcelerator go to jira.appcelerator.org https : jira.appcelerator.org Comment : As for Ti.Stream.pump that s something LiveView uses . Do you have that enabled perhaps Comment : @developer82 I ve found an Appcelerator JIRA ticket for the original issue you had . I ran into it myself with the latest 5 2 X as well : jira.appcelerator.org browse AC-563 https : jira.appcelerator.org browse AC-563",
"Question : I ve written before about a problem running Hyperloop https : stackoverflow.com questions 34817022 cant-run-hyperloop-project project . If run a newly created project to witch I added Hyperloop from Appcelerator Studio it seems like compilation is stuck on : .. . .. . So what I did now is to run it from command-line using : .. . .. . And right after Skipping Hyperloop compile no usage found .. . I get the following error messages : .. . .. . How can I make Hyperloop run .. . Answer : I found the solution . apparently it seems to be a permission problem - even if the message isn t so . since I had the following line : .. . .. . I decided to add a minimal Hyperloop code inside the project : .. . .. . Then when I ran again I got a different error message starting with : .. . .. . This is something I already know to be permission issues - and it makes sense since the Hyperloop module was downloaded from the internet . fixup was easy just run .. . .. . everything compiles . Comment : Thanks for finding these bugs . I didn t run into the EACCES error but I did reproduce report and fix the no usage found one : jira.appcelerator.org browse TIMOB-20274 https : jira.appcelerator.org browse TIMOB-20274 Comment : I m still getting this issue . I tried using 6.0.0.v20160218102417 and 5.2.0.v20160216202526 appc -v 5.2.0-265 ti -v 5.0.6 Comment : @Kosso did you try running from CLI and not from Studio if so what error are you getting Comment : I tried both CLI and Studio . Same error as above . Following the guide from here : labs.appcelerator.com project 55f74a9f421c44837717716b http : labs.appcelerator.com project 55f74a9f421c44837717716b Hyperloop-Module Comment : @Kosso you are getting EACCES error",
"Question : After downloading the hyperloop-examples files and running appc ti build -p ios I get errors when Hyperloop finds the CocoaPods dependencies . The exact error text is : .. . .. . ERROR An error occurred during build after 3s 372ms ERROR pod install returned a non-zero exit code .. . .. . The only change I had to make was to set sdk-version in tiapp.xml to 5.4.0.v20160608165242 instead of 5.4.0 pulled this version of the SDK by running appc ti sdk install -b 5 4 X .. . .. . appc -v returns 5.2.2 appc ti -v returns 5.0.6 .. . .. . Also if I remove the Podfile file the app builds and runs on the simulator . Most of the samples work obviously not the Third-Party Libraries one . I see in some of the other issues where people were able to get the cocoapod dependencies working so this may just be a cocoapod issue with my machine . pod --version returns 1.0.1 .. . .. . pod install provides the error : .. . .. . Could not automatically select an Xcode project . Specify one in your Podfile like so : .. . Answer : Version 1.0.1 of cocoapods does not work with hyperloop right now . Uninstalled that version and installed 0.39.0 instead resolved the issue . sudo gem install cocoapods -v 0.39.0",
"Question : I m trying out Hyperloop . And I m trying to run a custom swift script I have in my project like shown in the exmaple . Here s my swift code : .. . .. . when compiling I get the following error message : .. . .. . UIAlertController is part of UIKit https : developer.apple.com library ios documentation UIKit Reference UIAlertController class and from my understanding native-code ran with Hyperloop won t need to wait for Appcelerator to implement it . So I m wondering why this code doesn t run . .. . Answer : Please make sure to use the latest Hyperloop 1.1.0 Beta version from the labs . The following example code works for me tested in the hyperloop-examples repository : .. . .. . Also make sure to run the app with iOS 8 and later . Since its a non-proxy API you need to validate it on your own . To set the minimum target to iOS8 add the following key in the ios section of your tiapp.xml : .. . .. . min-ios-ver 8.0 min-ios-ver",
"Question : I m trying to use OpenWebRTC in appcelerator with hyperloop and even it compiles and launches the app I can t access to the module . This is my PodFile : .. . .. . platform : ios 7.0 target Hyperloop Sample do pod OpenWebRTC-SDK : git https : github.com EricssonResearch openwebrtc-ios-sdk.git pod JBChartView pod GLCalendarView 1.2 end and when I try to do require OpenWebRTC-SDK OpenWebRTC the app fails with .. . .. . Couldn t find module OpenWebRTC-SDK OpenWebRTC .. . .. . If I try with other frameworks i.e . Fabric and Crashlytics it works properly . Any clue Comment : link-to JIRA issue : jira.appcelerator.org browse TIMOB-20297 https : jira.appcelerator.org browse TIMOB-20297 .. . Answer : Did you verify that OpenWebRTC-SDK OpenWebRTC is the right way to require the main class You can validate that by checking the framework inside the Pods directory . It could also be a Hyperloop problems with parsing the C-based files included in the framework . If you still experience problems feel free to file a JIRA-ticket https : jira.appcelerator.org including your Podfile and a full stack-trace . Thank you"
]
} | [
"yes-answer-long",
"yes-answer-short"
] | api | UNK_RELATION |
archive@sorting@110 | archive -- a location or file that stores other files or data normally accompanied by compression encryption @placeholder or organizing . | {
"confidence": [
27.814849853515625,
27.77239227294922,
26.828773498535156,
25.52313232421875,
25.34736442565918,
25.04157257080078,
25.039222717285156,
23.944774627685547,
22.89052391052246,
22.869590759277344,
22.73324966430664,
22.683612823486328,
22.543075561523438,
22.040477752685547,
22.039133071899414,
22.01403045654297,
21.995973587036133,
21.895729064941406,
21.895729064941406,
21.895729064941406,
21.895729064941406,
21.895729064941406,
21.80957794189453,
21.782257080078125,
21.742229461669922,
21.53791618347168,
21.296859741210938,
21.29060935974121,
21.0028076171875,
21.001178741455078,
20.978260040283203,
20.978260040283203,
20.818721771240234,
20.801345825195312,
20.801345825195312,
20.753555297851562,
20.70571517944336,
20.674713134765625,
20.674713134765625,
20.64336585998535,
20.58270263671875,
20.433624267578125,
20.42667579650879,
20.404916763305664,
20.404916763305664,
20.404916763305664,
20.404916763305664,
20.404916763305664,
20.404916763305664,
20.404916763305664,
20.404916763305664,
20.404916763305664,
20.40074920654297,
20.38240623474121,
20.38240623474121,
20.226655960083008,
20.2083740234375,
20.1489200592041,
20.102493286132812,
20.102493286132812,
20.001914978027344,
19.928516387939453,
19.851076126098633,
19.842884063720703,
19.815086364746094,
19.775535583496094,
19.725889205932617,
19.715557098388672,
19.70818519592285,
19.70818519592285,
19.652790069580078,
19.627300262451172,
19.627300262451172,
19.58698272705078,
19.57410430908203,
19.57122230529785,
19.510366439819336,
19.510366439819336,
19.510366439819336,
19.510366439819336,
19.46562957763672,
19.435638427734375,
19.435638427734375,
19.435638427734375,
19.435638427734375,
19.435638427734375,
19.435638427734375,
19.435638427734375,
19.435638427734375,
19.3958797454834,
19.36531639099121,
19.35453224182129,
19.346431732177734,
19.346431732177734,
19.335756301879883,
19.21805763244629,
19.155315399169922,
19.142375946044922,
19.123767852783203
],
"content": [
"Is there a module for apache nginx to serve static files from archive zip tgz tbz so that if there is no file in specified location then stated archive is asked for that file",
"Are there other ways to add archive files",
"Being able to load a single file out of the archive insert new files into the archive and delete files from the archive is mandatory .",
"Specifically : .. . .. . Is putting the JPEG files in to an archive file or files the way to do this",
"A compressed file archive with metadata associated with each file",
"You need to un-archive and re-archive or pool files for some days and create archive files moving forward .",
"These binary files are very similar and would significantly benefit from compression .",
"I have a file that contain list of files I want to archive with tar .",
"It builds normally for running on a device but Xcode can t archive it because of bitcode .",
"What is the structure of the files and folders to add to archive into which folder in archive .",
"If not you can work around it by copying all files to a new archive adding the new file then moving the new archive to the old archive name .",
"What I am attempting to determine is how to also archive elements files inside those data streams .",
"Not that cruel no : It was a course on Data Compression offered by a visiting professor .",
"I am planning to use hadoop archive HAR but how can I archive these small files that comes into hdfs everyday .",
"search.cpan.org bingos Archive-Extract-0.60 lib Archive http : search.cpan.org bingos Archive-Extract-0.60 lib Archive Extract.pm 24ae- files",
"After compression of the tared files I would get an end result like MyResult.lz4 file as output but I was not able to decompress it using the archive manager I m using ubuntu as it doesn t support this format .",
"I normally ssh into the the archive box and just run commmands .",
"I need to unzip a set of files that are a zip archive .",
"I have a large number of files in a .tar.gz archive .",
"This year we are including the Excel files in our archive .",
"We archive approximately 300 000 files each year .",
"Is there a way to add files to the archive within the app",
"An LZH archive is embedded within a file .",
"What I m trying to achieve is : dump json data into a temporary file so I can then use subprocess to create an archive of that file with json data .",
"cpio takes the files to archive on stdin so if you ve already figured out the find command you want to use to select the files the archive pipe it into cpio to create the tar file :",
"I have not compared their performance but I expect they ll be quite similar in CPU memory and archive size after compression .",
"It stores a web page to one html file with images inlined using already mentioned data URIs .",
"I solved using archive only over the last modified files .. . .. . this way is only modified the commit date and the file over the last modified files .",
"If you ask for the last file in the archive then whether a CGI script or a webserver something will still have to spend the time reading uncompressing and discarding all the archive data just to get to your file .",
"Is there a valid java.net.URI scheme for nested archive files",
"You can use InnoDB data compression - transparent and modern way .",
"No compression is used both for data and all indexes PK secondary compound .",
"What are the practical size file limits on a tar zip or any other form of archive",
"What is the structure inside existing archive file",
"Locate the JAR file and open as a ZIP archive reader .",
"Eg : I might get 5 files today I need to archive them and tomorrow if I get 5 more files I need to append this into the previous days archive .",
"GZipStream isn t a ZIP file it s straight-up stream compression .",
"I want to create an archive with this file name of file have to stay .",
"Can this archive contain only one file or more than one file",
"I m also not clear about the archive and compression format that I have to use here .",
"I m beginning to think the only solution is to create a file with a list of files folders to be excluded then use rsync with --exclude-from file to copy all the files to a tmp directory and then use tar to archive that directory .",
"The example code on MSDN uses DotNetZip a free zip library that supports compression levels and encryption including AES encryption though the specific sample you cited does not show that .",
"I believe UnRAR.dll checking that the file is actually RAR-archive SFX even and not trying to uncompress just random 2GiB-files .",
"Is there a good java API for manipulating RAR archive files someone could recommend",
"The next step should be to add all the files to the archive with zip file add .",
"However there are several files that are un-commited that were not moved by the git-archive step .",
"You don t mind not including files in the tar archive if they haven t changed",
"I am using below Perl code to list the files in tar archive .",
"You can get list of files directly from tar-archive .",
"This is an array ref with the paths of all the files in the archive relative to the to argument you specified .",
"Creating a library is just putting object-files together in an archive with a symbol-table .",
"I m using Araxis Merge to try and compare two Java archive files .",
"You might want to archive the members of the one archive in the other - but that is a wholly different operation .",
"WARNING git-archive does not create an archive of yor git repository it creates an archive file that contains a snapshot of the contents of the given commit .",
"I want to just update archive without copying existing archive by reading it with its input stream and writing it to another file using archive output stream .",
"To be explicitly clear : by archive I mean the equivalent of a zip file or GZip file that contains many different files internally and are archived and then compressed for transfer or usage as a single entity .",
"hint : to get an idea of the offending files that s causing your archive to create an archive file rather than an ipa do this : .. . .. . 1 .",
"This is one of the ways it achieves somewhat better compression over ZIP pkzip which compress each file individually before adding them to a container archive resulting in the ability to seek to a specific file and uncompress just that file .",
"Since git-archive just produces a tar archive you can work on that file with tar directly .",
"Is it possible to update an existing archive file without re-archiving the existing archive using Commons Compress",
"I ve tried XY Archive files .xy but this displays all files and I can t seem to figure out the parsing .",
"Given a simple test repository with a single commit with two files a and b I can get a list of specific files : .. . .. . Or a list of all files excluding specific files : .. . .. . I can create an archive of specific files : .. . .. . But I cannot create an archive of all files excluding specific files : .. . .. . The option of using an archive of specific files is not an option for me in my real repository as it exceeds the maximum command-line argument length .",
"Well at a minimum you have to download the portion of the archive up to and including the compressed data of the file you want to extract .",
"Is there a way to append a file in a tar archive",
"Also for each file and directory to be included in the archive the permissions must be retained also the modification time and the access time .",
"is mentioned in accepted answer comments : use .gitattributes file see feeding.cloud.geek.nz posts excluding-files-from-git-archive https : feeding.cloud.geek.nz posts excluding-files-from-git-archive",
"Tried that in Xcode 6.1 and end up with an empty folder at -archivePath and the real archive in the default location .",
"Directories are added correctly and don t result in an invalid file as soon as addDirectoryContent is added to the mix Archive Utility fails to extract the files outputting the errors above .",
"I m looking for a solution to archive data that exists in my database .",
"I want to create an archive then I later want to pull data out of it .",
"Be aware that the archive will not contain the .git directory but will contain other hidden git-specific files like .gitignore .gitattributes etc .",
"I am trying to use git-archive to archive only the files I specify and I am getting fatal : Not a valid object name error .",
"It occurs to me to run a cron job say daily which either adds new files to an archive or creates a new archive for that day .",
"http : stackoverflow.com questions 9770492 how-do-i-append-files-to-a-tar-archive-in-java append files to an archive without reading rewriting the whole archive http : stackoverflow.com questions 2993847 append-files-to-an-archive-without-reading-rewriting-the-whole-archive rq 1 and Add an entry to a tar file without overwriting its existing contents http : stackoverflow.com questions 10006781 add-an-entry-to-a-tar-file-without-overwriting-its-existing-contents but no good answer was given .",
"Go here http : sourceforge.net projects p7zip files J7Zip 4.43 20Alpha 202 : .. . .. . LZMA SDK just provides the encoder and decoder for encoding decoding the raw data but 7z archive is a complex format for storing multiple-files .",
"I m trying to git-archive a branch using gzip with the highest level compression 9 but it seems to not compress at that level .",
"When run no errors or exceptions are shown but no files are added to the archive either .",
"I try to extract files from an archive and I have exception System.ArgumentOutOfRangeException .",
"How can i archive every 2 files in a folder with 7zip .",
"I am trying to build an archive from a collection of object-files .",
"Let the OS deal with compression create and mount a compressed file system SquashFS clicfs cloop cramfs e2compr or whatever containing all your text-files and don t do anything about compression in your application program .",
"But your question was about a .tar.gz file which is an archive with one big member .",
"What are the advantages in using an image strip over using an image archive file",
"The build script that can then read that file after it calls xcodebuild archive .",
"If he s not on the commit his client s trying to update to this will archive the wrong file versions .",
"So if possible stick your list to that file and then do git-archive .",
"Actually you do not want to archive one whole .a file inside another .",
"Inside the archive is the .app file and inside is the app not the source code .",
"Create a ZIP archive writer to write a new version of JAR file .",
"My problem is : the archive function try to archive the pdf file although the file is not rdy... .",
"I want to be able to put this library in a central place so that other people can link-to it and it would be obviously much easier to provide a normal archive file instead of providing a gaggle of object-files as well .",
"I like to write a plugin for Eclipse which allows to work with archive files as with normal file directories .",
"I tried to get historical data from GitHub Archive by entering http : data.githubarchive.org 2012-04-15.json.gz but I got no data .",
"My Problem : .. . .. . If I do a HttpRequest I get the data as a String but I need the data as a List of Bytes to encode it via archive .",
"When I add all of the external .jar files that I know for a fact are the right ones I am getting this error on two of them : .. . .. . Archive for required library : location of file cannot be read or is not a valid ZIP file .. . .. . Two of the other full time guys on my team have gotten the program to run with those exact same .jar files one running Eclipse Indigo and the other running the same Kepler version as myself .",
"So I do not see how this is a duplicate of that - none of those responses seem to be explaining how to ARCHIVE the files simply how to compress already created data streams .",
"Go to Product Archive to build your archive .",
"User clicks and Archive Data button .. . 2 .",
"The ar program is perfectly capable of storing source files gzipped tar files HTML files XML files and pretty much any other type of file in the .a and the .a suffix is only conventional not mandatory -- try it some time ."
]
} | {
"confidence": [
34.79220962524414,
32.43638610839844,
31.100278854370117,
30.73996353149414,
30.576078414916992,
30.4923095703125,
29.90824317932129,
29.8786678314209,
29.707609176635742,
29.346115112304688,
29.14757537841797,
29.004308700561523,
28.590890884399414,
28.47707748413086,
26.971263885498047,
26.966859817504883,
26.94601058959961,
26.70978355407715,
26.59797477722168,
26.581043243408203
],
"content": [
"Question : Is there a module for apache nginx to serve static files from archive zip tgz tbz so that if there is no file in specified location then stated archive is asked for that file .. . Answer : You should have a look at SquashFS http : squashfs.sourceforge.net it s a compressed filesystem . You can think of it as a tar.gz archive used mainly in LiveCD DVD USB ISOs but perfectly applicable to your situation . Here http : tldp.org HOWTO SquashFS-HOWTO creatingandusing.html is a HowTo . PS : Contrary to other answers you don t need a particular OS to use SquashFS but if you happen to run Solaris or FreeBSD go for ZFS http : wiki.freebsd.org ZFS compression it s just great",
"Question : null .. . Answer : I m looking to create a file-format for an application that requires storage of many 100+ binary files and the metadata associated with them . These binary files are very similar and would significantly benefit from compression . I was thinking of a zip archive + sqlite database for the metadata with the format below : .. . .. . Preferably I d figure out how to modify the zip to keep the sqlite database uncompressed so that I could modify it on the fly as needed . Is there any standardized file-format that already achieves a similar concept A compressed file archive with metadata associated with each file",
"Question : This is similar to a previous question http : stackoverflow.com questions 236414 but the answers there don t satisfy my needs and my question is slightly different : .. . .. . I currently use gzip compression for some very large-files which contain sorted data . When the files are not compressed binary-search is a handy and efficient way to support seeking to a location in the sorted data . But when the files are compressed things get tricky . I recently found out about zlib http : www.zlib.net s Z FULL FLUSH option which can be used during compression to insert sync points in the compressed output inflateSync can then begin reading from various points in the file . This is OK though files I already have would have to be recompressed to add this feature and strangely gzip doesn t have an option for this but I m willing to write my own compression program if I must . It seems from one source http : newsgroups.derkeiler.com Archive Comp comp.compression 2006-02 msg00327.html that even Z FULL FLUSH is not a perfect solution...not only is it not supported by all gzip archives but the very idea of detecting sync points in archives may produce false positives either by coincidence with the magic number for sync points or due to the fact that Z SYNC FLUSH also produces sync points but they are not usable for random-access . Is there a better solution I d like to avoid having auxiliary files for indexing if possible and explicit default support for quasi-random access would be helpful even if it s large-grained--like being able to start reading at each 10 MB interval . Is there another compression format with better support for random reads than gzip Edit : As I mentioned I wish to do binary-search in the compressed data . I don t need to seek to a specific uncompressed position--only to seek with some coarse granularity within the compressed file . I just want support for something like Decompress the data starting roughly 50 25 12.5 etc . of the way into this compressed file . .. . Answer : I don t know of any compressed file-format which would support random-access to a specific location in the uncompressed data well except for multimedia formats but you can brew your own . For example bzip2 compressed files are composed of independent compressed blocks of size 1MB uncompressed which are delimited by sequences of magic bytes so you could parse the bzip2 file get the block boundaries and then just uncompress the right block . This would need some indexing to remember where do the blocks start . Still I think the best solution would be to split your file into chunks of your choice and then compressing it with some archiver like zip or rar which support random-access to individual files in the archive . Comment : I don t need to seek to a specific uncompressed position--only to seek somewhat randomly with some coarse granularity within the compressed file . I don t mind at all if all I can do is say uncompess the data starting here about 700MB into this file . Comment : @John Zwinck : Add your comment to your question as an update . Note that given the variable compression of data some stuff I compress shrinks by 94 or so - usually except when it only shrinks by about 50 or so your estimate of where to start decompressing might be very hit and miss . Comment : Just a note that is complicated by bzip2 block boundaries being within a byte so it is doable but there is more bookkeeping required .",
"Question : This is similar to a previous question http : stackoverflow.com questions 236414 but the answers there don t satisfy my needs and my question is slightly different : .. . .. . I currently use gzip compression for some very large-files which contain sorted data . When the files are not compressed binary-search is a handy and efficient way to support seeking to a location in the sorted data . But when the files are compressed things get tricky . I recently found out about zlib http : www.zlib.net s Z FULL FLUSH option which can be used during compression to insert sync points in the compressed output inflateSync can then begin reading from various points in the file . This is OK though files I already have would have to be recompressed to add this feature and strangely gzip doesn t have an option for this but I m willing to write my own compression program if I must . It seems from one source http : newsgroups.derkeiler.com Archive Comp comp.compression 2006-02 msg00327.html that even Z FULL FLUSH is not a perfect solution...not only is it not supported by all gzip archives but the very idea of detecting sync points in archives may produce false positives either by coincidence with the magic number for sync points or due to the fact that Z SYNC FLUSH also produces sync points but they are not usable for random-access . Is there a better solution I d like to avoid having auxiliary files for indexing if possible and explicit default support for quasi-random access would be helpful even if it s large-grained--like being able to start reading at each 10 MB interval . Is there another compression format with better support for random reads than gzip Edit : As I mentioned I wish to do binary-search in the compressed data . I don t need to seek to a specific uncompressed position--only to seek with some coarse granularity within the compressed file . I just want support for something like Decompress the data starting roughly 50 25 12.5 etc . of the way into this compressed file . .. . Answer : This is a very old question but it looks like zindex https : github.com mattgodbolt zindex could provide a good solution although I don t have much experience with it",
"Question : This is similar to a previous question http : stackoverflow.com questions 236414 but the answers there don t satisfy my needs and my question is slightly different : .. . .. . I currently use gzip compression for some very large-files which contain sorted data . When the files are not compressed binary-search is a handy and efficient way to support seeking to a location in the sorted data . But when the files are compressed things get tricky . I recently found out about zlib http : www.zlib.net s Z FULL FLUSH option which can be used during compression to insert sync points in the compressed output inflateSync can then begin reading from various points in the file . This is OK though files I already have would have to be recompressed to add this feature and strangely gzip doesn t have an option for this but I m willing to write my own compression program if I must . It seems from one source http : newsgroups.derkeiler.com Archive Comp comp.compression 2006-02 msg00327.html that even Z FULL FLUSH is not a perfect solution...not only is it not supported by all gzip archives but the very idea of detecting sync points in archives may produce false positives either by coincidence with the magic number for sync points or due to the fact that Z SYNC FLUSH also produces sync points but they are not usable for random-access . Is there a better solution I d like to avoid having auxiliary files for indexing if possible and explicit default support for quasi-random access would be helpful even if it s large-grained--like being able to start reading at each 10 MB interval . Is there another compression format with better support for random reads than gzip Edit : As I mentioned I wish to do binary-search in the compressed data . I don t need to seek to a specific uncompressed position--only to seek with some coarse granularity within the compressed file . I just want support for something like Decompress the data starting roughly 50 25 12.5 etc . of the way into this compressed file . .. . Answer : I am the author of an open-source tool for compressing a particular type of biological data . This tool called starch splits the data by chromosome and uses those divisions as indices for fast access to compressed data units within the larger archive . Per-chromosome data are transformed to remove redundancy in genomic coordinates and the transformed data are compressed with either bzip2 or gzip algorithms . The offsets metadata and compressed genomic data are concatenated into one file . Source code is available from our GitHub https : github.com bedops bedops site . We have compiled it under Linux and Mac OS X . For your case you could store 10 MB or whatever offsets in a header to a custom archive format . You parse the header retrieve the offsets and incrementally fseek through the file by current offset sum + header size . Comment : Link is broken . Comment : Updated link-to Github site . Comment : BEDOPS also introduces a novel and lossless-compression format called Starch that reduces whole-genome BED datasets to 5 of their original size and BAM datasets to roughly 35 of their original size -- This is amazing . You should advertise your tool . Comment : We wrote a paper : bioinformatics.oxfordjournals.org content 28 14 1919.abstract http : bioinformatics.oxfordjournals.org content 28 14 1919.abstract Comment : Samtools faidx doesn t compress near as well as Starch and it requires keeping a second file with the genomic data but it offers finer indexing and so is more popular . Starch works really well if you need to squeeze out space or you re doing whole-genome work and want to parallelize tasks by chromosome . I m working on Starch 2 which will offer base-level interval queries but that may be a few months out .",
"Question : This is similar to a previous question http : stackoverflow.com questions 236414 but the answers there don t satisfy my needs and my question is slightly different : .. . .. . I currently use gzip compression for some very large-files which contain sorted data . When the files are not compressed binary-search is a handy and efficient way to support seeking to a location in the sorted data . But when the files are compressed things get tricky . I recently found out about zlib http : www.zlib.net s Z FULL FLUSH option which can be used during compression to insert sync points in the compressed output inflateSync can then begin reading from various points in the file . This is OK though files I already have would have to be recompressed to add this feature and strangely gzip doesn t have an option for this but I m willing to write my own compression program if I must . It seems from one source http : newsgroups.derkeiler.com Archive Comp comp.compression 2006-02 msg00327.html that even Z FULL FLUSH is not a perfect solution...not only is it not supported by all gzip archives but the very idea of detecting sync points in archives may produce false positives either by coincidence with the magic number for sync points or due to the fact that Z SYNC FLUSH also produces sync points but they are not usable for random-access . Is there a better solution I d like to avoid having auxiliary files for indexing if possible and explicit default support for quasi-random access would be helpful even if it s large-grained--like being able to start reading at each 10 MB interval . Is there another compression format with better support for random reads than gzip Edit : As I mentioned I wish to do binary-search in the compressed data . I don t need to seek to a specific uncompressed position--only to seek with some coarse granularity within the compressed file . I just want support for something like Decompress the data starting roughly 50 25 12.5 etc . of the way into this compressed file . .. . Answer : The .xz file-format http : tukaani.org xz format.html which uses LZMA compression seems to support this : .. . .. . Random-access reading : The data can be split into independently compressed blocks . Every .xz file contains an index of the blocks which makes limited random-access reading possible when the block size is small enough . This should be sufficient for your purpose . A drawback is that the API of liblzma for interacting with these containers does not seem that well-documented so it may take some effort figuring out how to randomly access blocks . Comment : Yes that s used for instance by pixz for random-access of members of tar archives or nbdkit for accessing xz compressed files as nbd devices to be able to mount compressed disk images for instance . qcow2 native format for qemu disk images is another format that allows compression and random-access .",
"Question : I have a file in a current directory which name is firstName . I want to create an archive with this file name of file have to stay . The archive name have to be an archiveName . But when I use my code I get an archive with the rigth name but the name of file in it was changed . How can I fix it .. . Answer : GZipStream isn t a ZIP file it s straight-up stream compression . It has no notion of files or names it just compresses bytes . You re looking for the ZipArchive class .",
"Question : This is similar to a previous question http : stackoverflow.com questions 236414 but the answers there don t satisfy my needs and my question is slightly different : .. . .. . I currently use gzip compression for some very large-files which contain sorted data . When the files are not compressed binary-search is a handy and efficient way to support seeking to a location in the sorted data . But when the files are compressed things get tricky . I recently found out about zlib http : www.zlib.net s Z FULL FLUSH option which can be used during compression to insert sync points in the compressed output inflateSync can then begin reading from various points in the file . This is OK though files I already have would have to be recompressed to add this feature and strangely gzip doesn t have an option for this but I m willing to write my own compression program if I must . It seems from one source http : newsgroups.derkeiler.com Archive Comp comp.compression 2006-02 msg00327.html that even Z FULL FLUSH is not a perfect solution...not only is it not supported by all gzip archives but the very idea of detecting sync points in archives may produce false positives either by coincidence with the magic number for sync points or due to the fact that Z SYNC FLUSH also produces sync points but they are not usable for random-access . Is there a better solution I d like to avoid having auxiliary files for indexing if possible and explicit default support for quasi-random access would be helpful even if it s large-grained--like being able to start reading at each 10 MB interval . Is there another compression format with better support for random reads than gzip Edit : As I mentioned I wish to do binary-search in the compressed data . I don t need to seek to a specific uncompressed position--only to seek with some coarse granularity within the compressed file . I just want support for something like Decompress the data starting roughly 50 25 12.5 etc . of the way into this compressed file . .. . Answer : bgzip can compress files in a gzip variant which is indexable . This is used in some bioinformatics applications together with the tabix indexer . See explanations here : http : blastedbio.blogspot.fr 2011 11 bgzf-blocked-bigger-better-gzip.html and here : http : www.htslib.org doc tabix.html . I don t know to what extent it is adaptable to other applications .",
"Question : This is similar to a previous question http : stackoverflow.com questions 236414 but the answers there don t satisfy my needs and my question is slightly different : .. . .. . I currently use gzip compression for some very large-files which contain sorted data . When the files are not compressed binary-search is a handy and efficient way to support seeking to a location in the sorted data . But when the files are compressed things get tricky . I recently found out about zlib http : www.zlib.net s Z FULL FLUSH option which can be used during compression to insert sync points in the compressed output inflateSync can then begin reading from various points in the file . This is OK though files I already have would have to be recompressed to add this feature and strangely gzip doesn t have an option for this but I m willing to write my own compression program if I must . It seems from one source http : newsgroups.derkeiler.com Archive Comp comp.compression 2006-02 msg00327.html that even Z FULL FLUSH is not a perfect solution...not only is it not supported by all gzip archives but the very idea of detecting sync points in archives may produce false positives either by coincidence with the magic number for sync points or due to the fact that Z SYNC FLUSH also produces sync points but they are not usable for random-access . Is there a better solution I d like to avoid having auxiliary files for indexing if possible and explicit default support for quasi-random access would be helpful even if it s large-grained--like being able to start reading at each 10 MB interval . Is there another compression format with better support for random reads than gzip Edit : As I mentioned I wish to do binary-search in the compressed data . I don t need to seek to a specific uncompressed position--only to seek with some coarse granularity within the compressed file . I just want support for something like Decompress the data starting roughly 50 25 12.5 etc . of the way into this compressed file . .. . Answer : I dont know if its been mentioned yet but the Kiwix project had done great work in this regard . Through their program Kiwix they offer random-access to ZIM file archives . Good compression too . The project originated when there was a demand for offline copies of the Wikipedia which has reached above 100 GB in uncompressed form with all media included . They have successfully taken a 25 GB file a single-file embodiment of the wikipedia without most of the media and compressed it to a measly 8 GB zim file archive . And through the Kiwix program you can call up any page of the Wikipedia with all associated data faster than you can surfing the net . Even though Kiwix program is a technology based around the wikipedia database structure it proves that you can have excellent compression ratios and random-access simultaneously .",
"Question : This is similar to a previous question http : stackoverflow.com questions 236414 but the answers there don t satisfy my needs and my question is slightly different : .. . .. . I currently use gzip compression for some very large-files which contain sorted data . When the files are not compressed binary-search is a handy and efficient way to support seeking to a location in the sorted data . But when the files are compressed things get tricky . I recently found out about zlib http : www.zlib.net s Z FULL FLUSH option which can be used during compression to insert sync points in the compressed output inflateSync can then begin reading from various points in the file . This is OK though files I already have would have to be recompressed to add this feature and strangely gzip doesn t have an option for this but I m willing to write my own compression program if I must . It seems from one source http : newsgroups.derkeiler.com Archive Comp comp.compression 2006-02 msg00327.html that even Z FULL FLUSH is not a perfect solution...not only is it not supported by all gzip archives but the very idea of detecting sync points in archives may produce false positives either by coincidence with the magic number for sync points or due to the fact that Z SYNC FLUSH also produces sync points but they are not usable for random-access . Is there a better solution I d like to avoid having auxiliary files for indexing if possible and explicit default support for quasi-random access would be helpful even if it s large-grained--like being able to start reading at each 10 MB interval . Is there another compression format with better support for random reads than gzip Edit : As I mentioned I wish to do binary-search in the compressed data . I don t need to seek to a specific uncompressed position--only to seek with some coarse granularity within the compressed file . I just want support for something like Decompress the data starting roughly 50 25 12.5 etc . of the way into this compressed file . .. . Answer : razip supports random-access with better performance than gzip bzip2 which have to be tweaked for this support - reducing compression at the expense of ok random-access : .. . .. . http : sourceforge.net projects razip Comment : Have you used it It looks like dead project from what I can see . Comment : I use it for bioinformatics stuff . Works fine so far .",
"Question : null .. . Answer : I need an archive format so that I can store assets for a game . For my purposes I wanted a compression algorithm that could give me the best possible transfer + decompression speed with compression speed being a distant concern . From what I ve managed to gather the best possible algorithm for what I need is LZ4 . However LZ4 does not have an archive format . It has a frame format which would be lovely if I didn t mind decompressing the entire archive at once but that s hardly practical for what I need . Being able to load a single file out of the archive insert new files into the archive and delete files from the archive is mandatory . I had an idea to dig through an implementation for handling .zip archives and replace the DEFLATE algorithm with LZ4 . Would this be practical At the end of the day I don t really know where to start with this . Any help that anyone could give to point me in the right direction would be greatly appreciated .",
"Question : This is similar to a previous question http : stackoverflow.com questions 236414 but the answers there don t satisfy my needs and my question is slightly different : .. . .. . I currently use gzip compression for some very large-files which contain sorted data . When the files are not compressed binary-search is a handy and efficient way to support seeking to a location in the sorted data . But when the files are compressed things get tricky . I recently found out about zlib http : www.zlib.net s Z FULL FLUSH option which can be used during compression to insert sync points in the compressed output inflateSync can then begin reading from various points in the file . This is OK though files I already have would have to be recompressed to add this feature and strangely gzip doesn t have an option for this but I m willing to write my own compression program if I must . It seems from one source http : newsgroups.derkeiler.com Archive Comp comp.compression 2006-02 msg00327.html that even Z FULL FLUSH is not a perfect solution...not only is it not supported by all gzip archives but the very idea of detecting sync points in archives may produce false positives either by coincidence with the magic number for sync points or due to the fact that Z SYNC FLUSH also produces sync points but they are not usable for random-access . Is there a better solution I d like to avoid having auxiliary files for indexing if possible and explicit default support for quasi-random access would be helpful even if it s large-grained--like being able to start reading at each 10 MB interval . Is there another compression format with better support for random reads than gzip Edit : As I mentioned I wish to do binary-search in the compressed data . I don t need to seek to a specific uncompressed position--only to seek with some coarse granularity within the compressed file . I just want support for something like Decompress the data starting roughly 50 25 12.5 etc . of the way into this compressed file . .. . Answer : I m not sure if this would be practical in your exact situation but couldn t you just gzip each large file into smaller files say 10 MB each You would end up with a bunch of files : file0.gz file1.gz file2.gz etc . Based on a given offset within the original large you could search in the file named file + offset 10485760 + .gz . The offset within the uncompressed archive would be offset 10485760 . Comment : Or you could TAR them all and end up with a .GZ.TAR . : Comment : That would definitely make things cleaner . I was just trying to go for simplicity here but your suggestion is well taken : - Comment : .gz.tar is not really random-access since you must jump through all the headers to get to one file Comment : Well yes and no . With fixed size chunks 10 MB in this case you would not have to walk through a list of headers . This relies on the assumption that the tar will order the files alphabetically which happens to be the case in GNU-land . Comment : Yes but the files would not be compressed then 10 MB uncompressed for your indexing expression to work 10 MB compressed for direct access in tar to work . It s hard to compress anything to a fixed size although you could make that size sufficiently large and handle excess space with sparse files",
"Question : This is similar to a previous question http : stackoverflow.com questions 236414 but the answers there don t satisfy my needs and my question is slightly different : .. . .. . I currently use gzip compression for some very large-files which contain sorted data . When the files are not compressed binary-search is a handy and efficient way to support seeking to a location in the sorted data . But when the files are compressed things get tricky . I recently found out about zlib http : www.zlib.net s Z FULL FLUSH option which can be used during compression to insert sync points in the compressed output inflateSync can then begin reading from various points in the file . This is OK though files I already have would have to be recompressed to add this feature and strangely gzip doesn t have an option for this but I m willing to write my own compression program if I must . It seems from one source http : newsgroups.derkeiler.com Archive Comp comp.compression 2006-02 msg00327.html that even Z FULL FLUSH is not a perfect solution...not only is it not supported by all gzip archives but the very idea of detecting sync points in archives may produce false positives either by coincidence with the magic number for sync points or due to the fact that Z SYNC FLUSH also produces sync points but they are not usable for random-access . Is there a better solution I d like to avoid having auxiliary files for indexing if possible and explicit default support for quasi-random access would be helpful even if it s large-grained--like being able to start reading at each 10 MB interval . Is there another compression format with better support for random reads than gzip Edit : As I mentioned I wish to do binary-search in the compressed data . I don t need to seek to a specific uncompressed position--only to seek with some coarse granularity within the compressed file . I just want support for something like Decompress the data starting roughly 50 25 12.5 etc . of the way into this compressed file . .. . Answer : Two possible solutions : .. . .. . 1 . Let the OS deal with compression create and mount a compressed file system SquashFS clicfs cloop cramfs e2compr or whatever containing all your text-files and don t do anything about compression in your application program . 2 . Use clicfs directly on each text file one clicfs per text file instead of compressing a filesystem image . Think of mkclicfs mytextfile mycompressedfile being gzip mytextfile mycompressedfile and clicfs mycompressedfile directory as a way of getting random-access to the data via the file directory mytextfile . Comment : Wow interesting thoughts on an old question of mine . Your first suggestion squashfs is not entirely what I would want because it has implications for remote storage : using a compressed filesystem and compressed SSH connections you would manage to decompress the data and recompress it to send it over the network . What would be amazing would be something like a compressed filesystem that you could share via NFS . Which I guess is what your clicfs suggestion might yield . Documentation on clicfs seems quite hard to come by at least by my quick search but it s promising . Thank you .",
"Question : This is similar to a previous question http : stackoverflow.com questions 236414 but the answers there don t satisfy my needs and my question is slightly different : .. . .. . I currently use gzip compression for some very large-files which contain sorted data . When the files are not compressed binary-search is a handy and efficient way to support seeking to a location in the sorted data . But when the files are compressed things get tricky . I recently found out about zlib http : www.zlib.net s Z FULL FLUSH option which can be used during compression to insert sync points in the compressed output inflateSync can then begin reading from various points in the file . This is OK though files I already have would have to be recompressed to add this feature and strangely gzip doesn t have an option for this but I m willing to write my own compression program if I must . It seems from one source http : newsgroups.derkeiler.com Archive Comp comp.compression 2006-02 msg00327.html that even Z FULL FLUSH is not a perfect solution...not only is it not supported by all gzip archives but the very idea of detecting sync points in archives may produce false positives either by coincidence with the magic number for sync points or due to the fact that Z SYNC FLUSH also produces sync points but they are not usable for random-access . Is there a better solution I d like to avoid having auxiliary files for indexing if possible and explicit default support for quasi-random access would be helpful even if it s large-grained--like being able to start reading at each 10 MB interval . Is there another compression format with better support for random reads than gzip Edit : As I mentioned I wish to do binary-search in the compressed data . I don t need to seek to a specific uncompressed position--only to seek with some coarse granularity within the compressed file . I just want support for something like Decompress the data starting roughly 50 25 12.5 etc . of the way into this compressed file . .. . Answer : Solutions exist for providing random-access to gzip and bzip2 archives : .. . .. . gzip zran.c from the ghostscript source code http : svn.ghostscript.com ghostscript tags zlib-1.2.3 examples zran.c .. . bzip2 seek-bzip by James Taylor https : bitbucket.org james taylor seek-bzip2 .. . .. . I m looking for something for 7zip http : svn.ghostscript.com ghostscript tags zlib-1.2.3 examples zran.c Comment : I read the zran code with interest especially considering it was written by Mark Adler . But it appears to be a convenience mechanism only : the comments say it first reads the entire file and builds an index which is later used to perform random-access . This is probably great for GhostScript where I imagine the input files are on the order of megabytes . But my input files are on the order of gigabytes so reading them entirely before doing random-access is not so great . Worse my most common use-case happens to be a single random-access per opened file . Comment : Yes there s definitely associated costs . It s most effective when you want to use the same archive many times over a long period of time .",
"Question : is there an library or a simple way how to open a password protected ZIP archive in Android I know there are different types of ZIP encryption . I would like to open the most simple one create in Unix with the zip -e command . The same file can be opened in Windows which will ask for password . That should be the standard ZIP 2.0 encryption How can I open it I search for all alternatives but I didn t find any final solution . .. . Answer : Search for ArchiDroid in the market and it will do your job.. . It extracts password-protected RAR ZIP TAR GZIP BZIP2 and 7zip files.. . amazingly it is free.. . Other apps didn t work for me but this one works like a charm :",
"Question : This is similar to a previous question http : stackoverflow.com questions 236414 but the answers there don t satisfy my needs and my question is slightly different : .. . .. . I currently use gzip compression for some very large-files which contain sorted data . When the files are not compressed binary-search is a handy and efficient way to support seeking to a location in the sorted data . But when the files are compressed things get tricky . I recently found out about zlib http : www.zlib.net s Z FULL FLUSH option which can be used during compression to insert sync points in the compressed output inflateSync can then begin reading from various points in the file . This is OK though files I already have would have to be recompressed to add this feature and strangely gzip doesn t have an option for this but I m willing to write my own compression program if I must . It seems from one source http : newsgroups.derkeiler.com Archive Comp comp.compression 2006-02 msg00327.html that even Z FULL FLUSH is not a perfect solution...not only is it not supported by all gzip archives but the very idea of detecting sync points in archives may produce false positives either by coincidence with the magic number for sync points or due to the fact that Z SYNC FLUSH also produces sync points but they are not usable for random-access . Is there a better solution I d like to avoid having auxiliary files for indexing if possible and explicit default support for quasi-random access would be helpful even if it s large-grained--like being able to start reading at each 10 MB interval . Is there another compression format with better support for random reads than gzip Edit : As I mentioned I wish to do binary-search in the compressed data . I don t need to seek to a specific uncompressed position--only to seek with some coarse granularity within the compressed file . I just want support for something like Decompress the data starting roughly 50 25 12.5 etc . of the way into this compressed file . .. . Answer : Because lossless-compression works better on some areas than others if you store compressed data into blocks of convenient length BLOCKSIZE even though each block has exactly the same number of compressed bytes some compressed blocks will expand to a much longer piece of plaintext than others . You might look at Compression : A Key for Next-Generation Text Retrieval Systems by Nivio Ziviani Edleno Silva de Moura Gonzalo Navarro and Ricardo Baeza-Yates in Computer magazine November 2000 http : doi.ieeecomputersociety.org 10.1109 2.881693 .. . .. . Their decompressor takes 1 2 or 3 whole bytes of compressed data and decompresses using a vocabulary list into a whole word . One can directly search the compressed text for words or phrases which turns out to be even faster than searching uncompressed text . Their decompressor lets you point to any word in the text with a normal byte pointer and start decompressing immediately from that point . You can give every word a unique 2 byte code since you probably have less than 65 000 unique words in your text . There are almost 13 000 unique words in the KJV Bible . Even if there are more than 65 000 words it s pretty simple to assign the first 256 two-byte code words to all possible bytes so you can spell out words that aren t in the lexicon of the 65 000 or so most frequent words and phrases . The compression gained by packing frequent words and phrases into two bytes is usually worth the expansion of occasionally spelling out a word using two bytes per letter . There are a variety of ways to pick a lexicon of frequent words and phrases that will give adequate compression . For example you could tweak a LZW compressor to dump phrases it uses more than once to a lexicon file one line per phrase and run it over all your data . Or you could arbitrarily chop up your uncompressed data into 5 byte phrases in a lexicon file one line per phrase . Or you could chop up your uncompressed data into actual English words and put each word -- including the space at the beginning of the word -- into the lexicon file . Then use sort --unique to eliminate duplicate words in that lexicon file . Is picking the perfect optimum lexicon wordlist still considered NP-hard Store the lexicon at the beginning of your huge compressed file pad it out to some convenient BLOCKSIZE and then store the compressed text -- a series of two byte words -- from there to the end of the file . Presumably the searcher will read this lexicon once and keep it in some quick-to-decode format in RAM during decompression to speed up decompressing two byte code to variable-length phrase . My first draft would start with a simple one line per phrase list but you might later switch to storing the lexicon in a more compressed form using some sort of incremental coding or zlib . You can pick any random even byte offset into the compressed text and start decompressing from there . I don t think it s possible to make a finer-grained random-access compressed file-format .",
"Question : is there an library or a simple way how to open a password protected ZIP archive in Android I know there are different types of ZIP encryption . I would like to open the most simple one create in Unix with the zip -e command . The same file can be opened in Windows which will ask for password . That should be the standard ZIP 2.0 encryption How can I open it I search for all alternatives but I didn t find any final solution . .. . Answer : I found a .jar library that works on Android and can decompress and decrypt ZIP 2.0 files . http : www.lingala.net zip4j download.php .. . .. . It worked for me encrypted ZIP created in Ubuntu and decrypted in Android . There might be a way to get it done without any library as described here : Implementation of ZipCrypto Zip 2.0 encryption in java http : stackoverflow.com questions 1651442 implementation-of-zipcrypto-zip-2-0-encryption-in-java but I was not able to get this code to work .",
"Question : Is there a module for apache nginx to serve static files from archive zip tgz tbz so that if there is no file in specified location then stated archive is asked for that file .. . Answer : For the case of .tgz and .tbz most of the performance loss esp for large archives should come from the fact you have to read from disk and uncompressing all data up to and including the file you asked for . If you ask for the last file in the archive then whether a CGI script or a webserver something will still have to spend the time reading uncompressing and discarding all the archive data just to get to your file . Zip format does allow for random-access . If your CGI script is very simple can be a sh script and essentially just calls unzip with the right argument then the amount of speedup you could get from having a server module do it would be rather small . That said it s kind of crazy if a module for doing this doesn t exist but no I haven t been able to find one . Comment : With script I use zip as I know random-access slowness of compressed tar archives .",
"Question : I m working on a project which stores single images and text-files in one place like a time capsule . Now most every project can be saved as one file like DOC PPT and ODF . But complete web pages can t -- they re saved as a separate HTML file and data folder . I want to save a web page in a single archive and while there are several solutions there s no standard . Which is the best format for HTML archives .. . .. . Microsoft has MHTML http : en.wikipedia.org wiki MHTML -- basically a file encoded exactly as a MIME HTML email message . It s already based on an existing standard and MHTML as its own was proposed as rfc2557 http : tools.ietf.org html rfc2557 . This is a great idea and it s been around forever except it s been a proposed standard since 1999 . Plus implementations other than IE s are just cumbersome . IE and Opera support it Firefox and Safari with a cumbersome extension . Mozilla has Mozilla Archive Format https : addons.mozilla.org en-US firefox-addon 212 -- basically a ZIP file with the markup and images with metadata saved as RDF . It s an awesome idea -- Winamp does this for skins and ODF and OOXML for their embedded images . I love this except 1 . Nobody else except Mozilla uses it 2 . The only extension supporting it wasn t updated since Firefox 1.5 . Data URIs http : en.wikipedia.org wiki Data URI scheme are becoming more popular . Instead of referencing an external location a la MHTML or MAF you encode the file straight into the HTML markup as base64 . Depending on your view it s streamlined since the files are right where the markup is . However support is still somewhat weak . Firefox Opera and Safari support it without gaffes IE the market leader only started supporting it at IE8 and even then with limits . Then of course there s Save complete webpage where the HTML markup is saved as savedpage.html and the files in a separate savedpage files folder . Afaik everyone does this . It s well supported . But having to handle two separate elements is not simple and streamlined at all . My project needs to have them in a single archive . Keeping in mind browser support and ease of editing the page what do you think s the best way to save web pages in a single archive What would be best as a standard Or should I just buckle down and deal with the HTML file and separate folder For the sake of my project I could support that but I d best avoid it . Comment : Thanks for the responses It really stinks that there s no standard and one should really be developed . PDF comes closest as it s a widely supported format -- but ZIP s a good choice for its superior editability . Browsers really should support ZIPs imo but until then I may use both solutions Comment : MAFF is based on the ordinary ZIP format with index.html as entry-point for browsers to recognize the start page . Check this out : maf.mozdev.org maff-file-format.html http : maf.mozdev.org maff-file-format.html .. . Answer : i see no excuse to use anything other than a zipfile Comment : I agree and I like the way you put it -",
"Question : I may NOT bother with this but if its very simple i may consider it . The site i am working on by design is to hold hundreds of thousands of files . I dont know if we ll have only one download or multiple . Right now the choices are A Just the file B An archive that has the file + license and conditions . I am trying to figure out it can be efficient to offer both and use something like file.open read prefixing an archive header before it and after it which contains the license and other zip contents . My biggest worries are doing file open read will not be as efficient as letting the server transmit the file and if its hard to generate and change the contents of the zip dynamically if a user wishes to change the license or if we want to add other data such as author description author URL and a permalink on the site .. . .. . Is it efficient and how would i create the file dynamically only the original file and data pulled from the database PS : I am using debian apache asp.net using xsp.net and mono . .. . Answer : SharpZipLib http : www.icsharpcode.net opensource sharpziplib is a very nice stream based library that you can use to create archive files . Comment : I gave it a quick try and it seems to take 10x longer then reading the file and sticking it into a memorystream . I set the compression level to 0 . It doesnt look like its compressing it but i wonder why its taking that much longer . Surely crc32ing it doesnt take that long"
]
} | [] | sorting | UNK_RELATION |
graphql@dependencies@84 | graphql -- graphql is a data querying language to describe the complex nested data @placeholder of modern web-applications . | {
"confidence": [
48.325653076171875,
47.28339385986328,
44.875675201416016,
44.47988510131836,
44.17629623413086,
43.81689453125,
43.77910614013672,
43.74314880371094,
43.466461181640625,
43.31749725341797,
41.94170379638672,
41.827392578125,
41.67962646484375,
41.524864196777344,
41.524864196777344,
41.25598907470703,
40.79438018798828,
40.26493835449219,
39.998870849609375,
39.99167251586914,
39.91450500488281,
39.899776458740234,
39.777252197265625,
39.777252197265625,
39.758033752441406,
39.62611770629883,
39.530818939208984,
39.23524856567383,
38.962833404541016,
38.90985107421875,
38.90985107421875,
38.90985107421875,
38.90985107421875,
38.67444610595703,
38.67444610595703,
38.5897331237793,
38.5897331237793,
38.35260772705078,
38.35260772705078,
38.35260772705078,
38.23929977416992,
38.166542053222656,
38.06159973144531,
37.975460052490234,
37.949623107910156,
37.68452072143555,
37.475181579589844,
37.44438171386719,
37.37665939331055,
37.37665939331055,
37.37665939331055,
37.335479736328125,
37.287628173828125,
37.287628173828125,
37.26911926269531,
36.98553466796875,
36.98553466796875,
36.98553466796875,
36.64435958862305,
36.64435958862305,
36.64435958862305,
36.64435958862305,
36.460384368896484,
36.439720153808594,
36.439720153808594,
36.439720153808594,
36.35953140258789,
36.35953140258789,
36.35639190673828,
36.21272277832031,
36.151329040527344,
36.151329040527344,
36.151329040527344,
36.151329040527344,
36.151329040527344,
36.151329040527344,
36.151329040527344,
36.116424560546875,
36.005958557128906,
36.005958557128906,
36.005958557128906,
35.860321044921875,
35.82785415649414,
35.69268798828125,
35.69268798828125,
35.69268798828125,
35.69268798828125,
35.69268798828125,
35.69268798828125,
35.45234298706055,
35.15436553955078,
35.14047622680664,
35.14047622680664,
35.13420104980469,
35.13420104980469,
35.13420104980469,
35.13420104980469,
35.06711959838867,
34.98895263671875
],
"content": [
"After reading a little bit on the GraphQL website conceptually I understand GraphQL itself is like a query language or specification to get customized data-structures but what confuses me is how the GraphQL server is implemented .",
"GraphQL will call resolve functions to fetch the data .",
"I am using express-graphql https : github.com graphql express-graphql to create a GraphQL-based API with Express .",
"I m using graphql-sequelize https : github.com mickhansen graphql-sequelize to glue between sequelize and GraphQL .",
"This is the summary paraphrasing : .. . .. . FalcorJS and GraphQL are tackling the same problem querying data managing data .",
"All : .. . .. . First day on graphQL .",
"Is graphql-relay-js a common design guide for design a graphql server in facebook",
"A GraphQL query just expresses which data are wanted .",
"const schema new GraphQL",
"Then I pass this authentication data down to the GraphQL schema in the root value .",
"Try avoiding JSON as column type difficult to describe in graphql .. . 5 .",
"I don t think this is a problem with GraphQL .",
"The important distinction is that GraphQL is a query language and FalcorJS is not .",
"I am studying graphql .",
"Below is my GraphQL mutation .",
"As I know ArangoDB-Foxx uses graphql-sync instead of graphql .",
"The types in your GraphQL API are the data you want to display in the UI .",
"According to the JavaScript reference implementation for GraphQL https : github.com graphql graphql-js blob 3cf66f33e30d467b068b4054e120562b01d885b7 src execution execute.js L286-L322 the same mutation changeTheNumber of the selection set will be executed in the given order .",
"For my C back end I use a GraphQL implementation named GraphQL for .NET https : github.com graphql-dotnet graphql-dotnet graphql-for-net 22GraphQL 20for 20.NET 22 .",
"Here is my graphQL code :",
"GraphQL-JS comes with a selection of default rules https : github.com graphql graphql-js tree master src validation rules that follow a format pretty similar to ESLint .",
"graphql-relay-js is just a collection of modules that provide some helpers for building Relay-compatible GraphQL schemas in JavaScript .",
"I fetch data from MySQL using Sequelize and GraphQL .",
"GraphQL query is not one big block of request and data-extraction .",
"The best way will be to have the GraphQL client specify how deeply nested data it wants i.e . having the client pass a parameter when it asks for friends of a user .",
"This turned out to be an issue handling Promises not a GraphQL issue .",
"just starting my experiments with graphql-sequelize https : github.com mickhansen graphql-sequelize I ve defined a GraphQL query that accepts args .",
"Now Relay abstracts the complexity of all communication with the GraphQL server meaning Relay will take the GraphQL query and do whatever it needs to do to fetch the needed data .",
"note that you can pass edgeFields into the connectionDefinitions function in the graphql-relay module https : github.com graphql graphql-relay-js blob f1dfe502cfeccf80deadce3ce2cfde618a8acb36 src connection connection.js L105 .",
"I m talking about this one https : github.com graphql-java graphql-java recursive-type-references",
"Relayjs Graphql user authentication http : stackoverflow.com questions 33053617 relayjs-graphql-user-authentication .. . 2 .",
"javascript - Authentication and privileges on Relay GraphQL http : stackoverflow.com questions 34796788 authentication-and-privileges-on-relay-graphql .. . 3 .",
"A guide to authentication in GraphQL Building Apollo Medium https : medium.com apollo-stack a-guide-to-authentication-in-graphql-e002a4039d1 .bcx3wexzw .. . 9 .",
"Is connections in your query a GraphQL object or connection",
"Otherwise connections confuses with GraphQL connection type .",
"Plug it into tools like eslint-plugin-graphql https : github.com apollostack eslint-plugin-graphql to validate your queries at development time .. . 2 .",
"If error occurs in the second mutation its result will be an Error object https : github.com graphql graphql-js blob 3cf66f33e30d467b068b4054e120562b01d885b7 src execution execute.js L584 .",
"and UNMET PEER DEPENDENCY graphql@0.6.2 .",
"Or did you mean GraphQL model",
"It uses apolloServer in-place of express-graphql .",
"Here s the line in question : github.com apollostack graphql-tools blob https : github.com apollostack graphql-tools blob 607cfcc893c511fe3d7ccbca8da35ce469cc7eb5 src schemaGenerator.js L125",
"You should create a middle layer GraphQL which resolve data from Loopback and provide data to front-end Relay",
"What are the advantage of GraphQL compared OData",
"I made a small example repository on how to handle authentication and private data with relay and graphql .",
"In this sense GraphQL query language is more powerful than FalcorJS .",
"What is the purpose of root query field viewer in GraphQL",
"What would the best approach to fetch deep nested object with graphql only when asked for .",
"I am trying out Relay and GraphQL .",
"So github.com nodkz graphql-compose-connection https : github.com nodkz graphql-compose-connection are ready for production .",
"See an example of using cursor in Relay documention on GraphQL connection https : facebook.github.io relay docs graphql-connections.html .",
"From this repo https : github.com arangodb-foxx demo-graphql I could see that Foxx is using graphql-sync instead .",
"The learning curve for GraphQL+Relay is HUGE :",
"Are there some guide for design a graphql-relay server should i follow all the way in graphql-relay-js which Database Facebook used with relay-server",
"There s an example in the test suite https : github.com graphql graphql-relay-js blob f1dfe502cfeccf80deadce3ce2cfde618a8acb36 src connection tests connection.js L64-L80 :",
"Reading github.com graphql graphql-relay-js blob master src node https : github.com graphql graphql-relay-js blob master src node node.js and other files in that repo helped me a lot but distilling that stuff into words would have saved me lots of time .",
"In short having this viewer as a root query field of the GraphQL schema enables us to provide data based on the current user .",
"At graph.cool we support both a relay compatible and a simple graphql endpoint using lists for your data model .",
"As of now GraphQL does not have any specific operation type for update without fetching data afterwards .",
".. . .. . GraphQL itself does not have a standard way of handling user registration .",
"What is your scenario that needs string to GraphQL type-conversion",
"I m having trouble resolving my graphQL fields with rethinkdb queries .",
"I m writing client-side code for an app that will query a GraphQL server .",
"Possible duplicate of Using Graphql to query Stardog server having rdf data http : stackoverflow.com questions 37814916 using-graphql-to-query-stardog-server-having-rdf-data",
"I almost finished package for NodeJS https : github.com nodkz graphql-compose-connection which allows to construct connection types for graphql types builded with graphql-compose .",
"graphql-relay provides a connectionFromPromisedArray https : github.com graphql graphql-relay-js blob master src connection arrayconnection.js L50 function which waits until the promise resolves .",
"You will get ideas of how to do that in the implementation of array-connection https : github.com graphql graphql-relay-js blob f1dfe502cfeccf80deadce3ce2cfde618a8acb36 src connection arrayconnection.js L115 in graphql-relay-js .",
"I have working tinySQL GraphQL server https : github.com javascriptiscoolpl graphQL-tinySQL running at 127.0.0.1 : 3000 .",
"I created some connectionDefinitions https : github.com graphql graphql-relay-js and it worked perfectly .",
"If you want all of the information available you can use the built-in introspection query from GraphQL-JS listed here : https : github.com graphql graphql-js blob master src utilities introspectionQuery.js .. . .. . You can use this information for many different purposes : .. . .. . 1 .",
"globalIdField https : github.com graphql graphql-relay-js blob 784b2278903a9c8617be6af81050ea72d9ce1c8b src node node.js L110 is usually used to define the id field for the graphql entity and internally it uses toGlobalId https : github.com graphql graphql-relay-js blob 784b2278903a9c8617be6af81050ea72d9ce1c8b src node node.js L87 function which accepts the id as the 2nd argument .",
"Any working solutions of using Relay GraphQL with Loopback",
"I am learning Relay framework and GraphQL .",
"GraphQL is the external interface layer in your app .",
"Posting your GraphQL schema may also help .",
"Above is the graphql-relay lib that has this function .",
"Think of fragments as the building blocks of GraphQL queries .",
"Hi I am working with GraphQl with the combination of es6 .",
"Relay mutation : .. . .. . Usage : .. . .. . GraphQL schema :",
"On looking into some of the utilities that graphql-js provides it looks like the isValidJSValue checker is exactly what I m looking for and its comments even mention https : github.com graphql graphql-js blob master src utilities isValidJSValue.js L24 that it s intended to be used to do just that .",
"You can use the JSON schema you have imported to construct an actual GraphQL schema instance using buildClientSchema here : https : github.com graphql graphql-js blob master src utilities buildClientSchema.js .. . .. . Then it should be a simple matter of looking in the types field of the resulting schema to find your input type and then calling isValidJSValue on it .",
"Now depending on the incoming query the result may be a single project object or a list of proejct objects : .. . .. . How do I return a list of projects as response from my Flask-graphql https : github.com graphql-python flask-graphql application",
"What is possible in GraphQL which is not possible or difficult in OData",
"Im not sure ask this here is appropriate or not but the topic for graphql-relay-js is rarely on the web .",
".. . What is the relationship between graph-api and graphql-relay-js",
"I have a graphql environment of a voting application there are users polls and votes .",
"I have a page that uses GraphQL Relay connection which fetches drafts .",
"If you had any experience working with GraphQl and Sequelize - this is a very generic situation.. .",
"How do I make a schema for an object property that is an array of strings in GraphQL",
"Using graphql npm package the implementation looks like below :",
"A lot of organizations adopting GraphQL today have some existing backends and data models that they are used to working with .",
"Probably the biggest practical difference is that most of the examples and presumably work done up to this point on GraphQL has been concentrated on integrating GraphQL with Relay - Facebook s system for integrating ReactJS widgets with their data requirements .",
"I know that you can pass value to each graphql request through the context which is available in GraphQL resolves functions .",
"express-graphql or some other server that uses graphql-js any Node hosting service will do .",
"I also have Relay GraphQL for the app .",
"We are facing a problem with Relay GraphQL React in production .",
"I m very confused regarding the the relations in GraphQL-Relay .",
"On a practical basis GraphQL and Relay seems to be more developed .",
"As of the time of writing there isn t a built-in feature in GraphQL-JS or Apollo Server to handle this concern but it s something that should definitely have a simple solution as GraphQL becomes more popular .",
"With GraphQL you have a powerful query language but you have to interpret that query language on the server ."
]
} | {
"confidence": [
61.55198669433594,
59.52997970581055,
54.54299545288086,
54.30213928222656,
53.80060958862305,
53.589935302734375,
53.38655471801758,
53.35630416870117,
53.32265090942383,
53.24492645263672,
52.624481201171875,
51.59779357910156,
51.24327087402344,
51.23805618286133,
50.95698165893555,
50.311195373535156,
50.010433197021484,
49.90550231933594,
49.54137420654297,
49.410457611083984
],
"content": [
"Question : GraphQL consists of a type system query language and execution semantics static validation and type introspection each outlined below . To guide you through each of these components we ve written an example designed to illustrate the various pieces of GraphQL . - https : github.com facebook graphql .. . .. . Falcor lets you represent all your remote data sources as a single domain-model via a virtual JSON graph . You code the same way no matter where the data is whether in memory on the client or over the network on the server . - http : netflix.github.io falcor .. . .. . What is the difference between Falcor and GraphQL in the context of Relay Comment : check out this podcast where Jafar talks about the difference between Relay GraphQL and Falcor JSON Graph youtu.be WL54eYbTJUw t 53m55s https : youtu.be WL54eYbTJUw t 53m55s .. . Answer : I have viewed the Angular Air Episode 26 : FalcorJS and Angular 2 https : www.youtube.com watch v WL54eYbTJUw feature youtu.be t 53m55s where Jafar Husain http : stackoverflow.com users 5236211 jafar-husain answers how GraphQL https : github.com facebook graphql compares to FalcorJS https : github.com Netflix Falcor . This is the summary paraphrasing : .. . .. . FalcorJS and GraphQL are tackling the same problem querying data managing data . The important distinction is that GraphQL is a query language and FalcorJS is not . When you are asking FalcorJS for resources you are very explicitly asking for finite series of values . FalcorJS does support things like ranges e.g . genres 0..10 . But it does not support open-ended queries e.g . genres 0. . . GraphQL is set based : give me all records where true order by this etc . In this sense GraphQL query language is more powerful than FalcorJS . With GraphQL you have a powerful query language but you have to interpret that query language on the server . Jafar argues that in most applications the types of the queries that go from client to server share the same shape . Therefore having a specific and predictable operations like get and set exposes more opportunities to leverage cache . Furthermore a lot of the developers are familiar with mapping the requests using a simple router in REST architecture . The end discussion resolves around whether the power that comes with GraphQL outweighs the complexity .",
"Question : null .. . Answer : All : .. . .. . First day on graphQL . After reading a little bit on the GraphQL website conceptually I understand GraphQL itself is like a query language or specification to get customized data-structures but what confuses me is how the GraphQL server is implemented . There seems to be a lot of schema type defined in order to make the server work . This is a little complicated to me but what this reminds me of is Apache Solr . I am wondering if I can understand how the GraphQL server works as being similar to Solr : we define a schema in Solr there is a schema.xml file then we index the data and parse the QL query and build desired json structure and return it Thanks",
"Question : I ve been working on an isomorphic app built with react and I ve read about using Relay.js and GraphQL for client-server interactions . I ve been wondering is there any special set up or things to keep in mind when using Relay.js when using react s server-side rendering isomorphic app development in particular .. . Answer : 1 . You need to use babel to transform relay to graphql queries . 2 . Dataloader from facebook or similar is needed for caching . 3 . Your data model need to be fully normalised to work with above . 4 . Try avoiding JSON as column type difficult to describe in graphql .. . 5 . Use graphiql https : github.com graphql graphiql as browser-plugin https : chrome.google.com webstore detail chromeiql fkkiamalmpiidkljmicmjfbieiclmeij or standalone",
"Question : In connection arrayconnection.js It seems all the function is tend to work with array . For example : offsetToCursor is the only way to generate Cursor . Does this mean its a design pattern i must follow or imply that i should generate Cursor by myself when using something other than array .If im planning to use Mongodb should i make the database interface like an static array BTW : .. . As a newbie to web develop im a bit confused how to implement a qualified relay server . Are there some guide for design a graphql-relay server should i follow all the way in graphql-relay-js which Database Facebook used with relay-server mysql or Im not sure ask this here is appropriate or not but the topic for graphql-relay-js is rarely on the web . Thanks a lot forgive my impolite . .. . .. . Additional question : .. . Maybe i get some idea from developers.facebook.com docs graph-api . Seems should do an array style cache for pagination lookup not sure about this . But graph-api looks a bit different from graphql-relay-js is graph-api still some part of old restful style .. . What is the relationship between graph-api and graphql-relay-js Is graphql-relay-js a common design guide for design a graphql server in facebook Thanks a lot please give me some hints .. . Answer : Connection is a design pattern that your schema may implement if you want Relay to perform efficient pagination . How it gets implemented on the backend is an implementation detail . It may be backed by something array-like or it may not think about something like the infinite scrolling news feed on Facebook which is ranked by a terribly sophisticated backend service : this is clearly not backed by an array . We provide the arrayconnection.js module as a way of demonstrating how this can be done if your data source has that array-like nature . If it does not or cannot be efficiently converted to it you are better off implementing something from scratch . Cursors are opaque identifiers . You could use an array index or some kind of primary-key if you are using an array source or a typical database backend like MySQL but again the details are implementation-specific and should be chosen to suit your back end . The only requirement is that the cursor should encode whatever information you need on the server to be able to return the next page of results after or before that point . graphql-relay-js is just a collection of modules that provide some helpers for building Relay-compatible GraphQL schemas in JavaScript . The schema provides a uniform interface to your data but the actual underlying storage can be anything you want to plug into it a MySQL database an object in memory some REST service . For simple examples look in the examples directory https : github.com facebook-relay tree master examples in the Relay repo . As an illustration of how you can put a schema in front of something that is not a traditional database this https : github.com wincent masochist blob master app src server schema.js is an example of a schema that reads its data out of a Git repo with the help of indices in Redis and cached data in memcached . Stay away from developers.facebook.com docs graph-api https : developers.facebook.com docs graph-api despite the graph in the name this is an entirely different thing and has nothing to do with the GraphQL http : graphql.org hierarchical query language that Relay uses .",
"Question : A Relay mutation is defined as an operations that consist of writes to the data store followed by a fetch of any changed fields . . What about something such as logging I have not found a formal definition of mutations vs query as one would find in the REST POST vs GET vs PUT protocols . Am I correct that one would use a mutation when there is a desire to have data be modified and returned but if I just need to update something then a standard query is fine There are also cases where I may fetch data but update something which does not need returning . .. . Answer : A Relay mutation is defined as an operations that consist of writes to the data store followed by a fetch of any changed fields . . What about something such as logging If I understand your confusion about logging correctly you want to log something in your server but you don t have anything to update on your client-side . You should model this logging operation as a mutation if you want to use GraphQL and Relay for logging . Query is actually a read-only operation . If logging was a typo and you actually meant login there are quite a few previous answers regarding authentication in Relay and GraphQL land . Check the following SO and blog posts : .. . .. . 1 . Relayjs Graphql user authentication http : stackoverflow.com questions 33053617 relayjs-graphql-user-authentication .. . 2 . javascript - Authentication and privileges on Relay GraphQL http : stackoverflow.com questions 34796788 authentication-and-privileges-on-relay-graphql .. . 3 . api - How do I structure authenticated queries with GraphQL http : stackoverflow.com questions 34952792 how-do-i-structure-authenticated-queries-with-graphql .. . 4 . node.js - What is a good pattern for implementing access-control in a GraphQL server http : stackoverflow.com questions 34820629 what-is-a-good-pattern-for-implementing-access-control-in-a-graphql-server .. . 5 . graphql - Authentication and Access Control with Relay http : stackoverflow.com questions 33550843 authentication-and-access-control-with-relay .. . 6 . node.js - How to check permissions and other conditions in GraphQL query http : stackoverflow.com questions 37356362 how-to-check-permissions-and-other-conditions-in-graphql-query 37356630 37356630 .. . 7 . relayjs - How to tell the user to log in with relay http : stackoverflow.com questions 34725621 how-to-tell-the-user-to-log-in-with-relay .. . 8 . A guide to authentication in GraphQL Building Apollo Medium https : medium.com apollo-stack a-guide-to-authentication-in-graphql-e002a4039d1 .bcx3wexzw .. . 9 . Auth in GraphQL Part 2 Building Apollo Medium https : medium.com apollo-stack auth-in-graphql-part-2-c6441bcc4302 .qslxqskvt .. . .. . I have not found a formal definition of mutations vs query as one would find in the REST POST vs GET vs PUT protocols . From GraphQL draft specification https : facebook.github.io graphql sec-Language.Operations : .. . .. . Am I correct that one would use a mutation when there is a desire to have data be modified and returned but if I just need to update something then a standard query is fine No that is incorrect . Mutation is the operation that you should use for any kind of modification to your data . If you don t need to fetch any data after the update you just don t include anything in the fat query https : facebook.github.io relay docs guides-mutations.html the-fat-query . As of now GraphQL does not have any specific operation type for update without fetching data afterwards . Comment : I see . yes it is logging as in a log .",
"Question : I m planning to use mobgodb as my backend storage and graphql + relay for the client-server communication . How can I reconcile Relay s globalId and Mongo id Should they even be the same if not how can I connect one to another .. . Answer : globalIdField https : github.com graphql graphql-relay-js blob 784b2278903a9c8617be6af81050ea72d9ce1c8b src node node.js L110 is usually used to define the id field for the graphql entity and internally it uses toGlobalId https : github.com graphql graphql-relay-js blob 784b2278903a9c8617be6af81050ea72d9ce1c8b src node node.js L87 function which accepts the id as the 2nd argument . fromGlobalId https : github.com graphql graphql-relay-js blob 784b2278903a9c8617be6af81050ea72d9ce1c8b src node node.js L95 function could then be used in the node interface definition to extract both id and the defined type . Here is a mongodb example of how to define https : github.com igorsvee react-relay-example blob master data userschema.js L117 the id field and then use https : github.com igorsvee react-relay-example blob master data userschema.js L48 it .",
"Question : I m new to Relay and am having an issue with nested data on a fragment . The following query returns the correct data when I test in it graphiql so I am confident my schema is correct . However when I use the above query with Relay the customer.name will be correct but customer.billing address.city is the same for every customer . It s confusing to me why some of the data would be correct while the nested data would just be copied . I would appreciate any help with the issue and if anymore information is needed I would be glad to add it . Below is the only Relay code currently in my project and where I believe the issue may be . Comment : One possible problem could by how you resolve billing address in your GraphQL schema . Did you include an field : id types.ID or globalIdField in your billing address GraphQL type Posting your GraphQL schema may also help . Comment : @nethsix Thank you so much for your help . That s essentially what the problem was . I am using Mongo for my backend and was using an embedded document that mongo wasn t providing an ObjectID for even though I was trying to access that in my schema . I just switched from embedded to a ref in mongo and it worked perfectly . Thanks again . Comment : I am glad that the suggestion helped . Do you mind if I move the comments as the answer to the question Comment : Not at all . I m new to stack-overflow . I can accept it if you move it to an answer right Comment : Thank you You can upvote comments too . Try it next time . .. . Answer : One possible problem could by how you resolve billing address in your GraphQL schema . Did you include an field : id types.ID or globalIdField in your billing address GraphQL type Posting your GraphQL schema may also help .",
"Question : What is the purpose of root query field viewer in GraphQL Based on this article https : medium.com the-graphqlhub graphql-and-authentication-b73aed34bbeb .cpmrcqcyt viewer could be used to accept a token parameter so we can see who is currently logged in . How should I implement it .. . Answer : Purpose of viewer root query field .. . .. . viewer is not something GraphQL or Relay-specific . Most web-applications serve some purposes of its users or viewers . The top level entity to model the various data served to the user can be named as viewer . You can also name it user . For example the Relay todo example https : github.com facebook-relay blob 5729cc69266d6c18cd8baecd103fdcbda092887d examples todo data schema.js L126 has a viewer root query field : .. . .. . We may also do without viewer . For instance Relay starwars example https : github.com facebook-relay blob 5729cc69266d6c18cd8baecd103fdcbda092887d examples star-wars data schema.js L230-L244 does not have any viewer root query field . In short having this viewer as a root query field of the GraphQL schema enables us to provide data based on the current user . Implementation : How to use authentication token together with viewer .. . .. . My answer follows what is already described in your mentioned article . The steps are : .. . .. . 1 . On the server-side create a mutation to obtain an authentication token . Let s name it LoginMutation . Input to this mutation are the user credentials and the output is an authentication token . 2 . On the client-side if you use relay framework https : github.com facebook-relay implement a client-side mutation . After the mutation is successful store the authentication token . 3 . On the client-side Relay code add authToken parameter for your viewer queries . The value of authToken is the authentication token received after successful login mutation . An alternative .. . .. . As already mentioned in the article an alternative way of authenticating user is to do it outside of GraphQL . You may want to see two excellent answers this http : stackoverflow.com a 35004335 2821632 and this http : stackoverflow.com a 37356630 2821632 for details . Jonas Helfer wrote a two-part article on this which you ll find very useful : Part 1 https : medium.com apollo-stack a-guide-to-authentication-in-graphql-e002a4039d1 .ha9zd7yod Part 2 https : medium.com apollo-stack auth-in-graphql-part-2-c6441bcc4302 .288hyxkc7",
"Question : Does GraphQL have the possibility for the client to tell the server that it wants a field only if that field is not null Given the query .. . .. . the response should then look like .. . .. . instead of .. . .. . Is this possible without violating the GraphQL specification Comment : Just curious to know : what is the use-case of this behaviour Comment : @AhmadFerdousBinAlam I have a Kotlin data class with default non-null values that I don t want to be overwritten when deserializing . .. . Answer : As far as I know this is not possible there are directives http : facebook.github.io graphql sec-Language.Directives like @skip and @include . Directives but they need a variable I think you can make your case with the graphql team to extend the directives to only include the field if it s not null .",
"Question : Here is a simple scenario .. . I want to query GraphQL and fetch all the students that have attended school more then 200 days this year . I have a Student sequelize model a matching GraphQL Object a students Query which accepts the days int as an argument students days : 200 .. . What I m obviously trying to do is to implement the logic get all students where school visits counter is greater than 200 just as an example.. . I m using graphql-sequelize https : github.com mickhansen graphql-sequelize to glue between sequelize and GraphQL . a simple example query definition looks like this : .. . .. . as you can notice this structure doesn t allow me to insert some logic to the query.. . If you had any experience working with GraphQl and Sequelize - this is a very generic situation.. . I d appreciate any help resolving it . Cheers .. . Ajar .. . Answer : Looking at the Sequelize docs http : docs.sequelizejs.com en latest docs querying basics you can try doing something like this in the students resolve function :",
"Question : I am working on a GraphQL server setup where it can parse Types passed into it from strings and I am looking for a solution to convert a string to an appropriate object . For example if the string here is passed in : .. . .. . My function would return the equivelant of running this code : .. . .. . The key here is to be agnostic so I could also pass in say interfaces and other shorthand and have it return the appropriate object . I have gotten as far as achieving the Abstract Syntax Tree from the graphql language module bu using graphql language.parse str function but I m unsure where to go from here . Comment : I m curious . What is your scenario that needs string to GraphQL type-conversion Comment : I m interested in building a system that allows for CRUD of types themselves without modification of the code on the server . .. . Answer : The reference GraphQL-JS implementation on GitHub already has a function buildASTSchema that takes a parsed type schema and creates a set of JavaScript objects . So the best way to see how to do it would be to consult that source code on GitHub : https : github.com graphql graphql-js blob master src utilities buildASTSchema.js .. . .. . Alternatively perhaps your tool can be built using that function . Since that repository is maintained by the core GraphQL team you can be pretty confident that it will be up to-date with new additions to the spec . Edit from comment : If what you re trying to do is generate an executable GraphQL schema server from the type language string then you can use the generateSchema function from the graphql-tools package as documented here : http : docs.apollostack.com apollo-server generate-schema.html Comment : That looks like it would be very useful to me If there are no better answers in the next few days this will be the one I accept . Thanks Comment : To add to Stubailo s answer : graphql-tools does exactly that and more to build not just an object but an executable . Here s the line in question : github.com apollostack graphql-tools blob https : github.com apollostack graphql-tools blob 607cfcc893c511fe3d7ccbca8da35ce469cc7eb5 src schemaGenerator.js L125 Comment : Wow @helfer that s even more useful to me Maybe you should put it in a separate answer for yourself or Stubailo could edit it into his . Comment : Added via edit",
"Question : How do you prevent a nested attack against an Apollo server with a query such as : .. . .. . In other words how can you limit the number of recursions being submitted in a query This could be a potential server vulnerability . .. . Answer : As of the time of writing there isn t a built-in feature in GraphQL-JS or Apollo Server to handle this concern but it s something that should definitely have a simple solution as GraphQL becomes more popular . This concern can be addressed with several approaches at several levels of the stack and should also always be combined with rate-limiting so that people can t send too many queries to your server this is a potential issue with REST as well . I ll just list all of the different methods I can think of and I ll try to keep this answer up to-date as these solutions are implemented in various GraphQL servers . Some of them are quite simple and some are more complex . 1 . Query validation : In every GraphQL server the first step to running a query is validation - this is where the server tries to determine if there are any serious errors in the query so that we can avoid using actual server resources if we can find that there is some syntax-error or invalid argument up front . GraphQL-JS comes with a selection of default rules https : github.com graphql graphql-js tree master src validation rules that follow a format pretty similar to ESLint . Just like there is a rule to detect infinite cycles in fragments https : github.com graphql graphql-js blob master src validation rules NoFragmentCycles.js one could write a validation rule to detect queries with too much nesting and reject them at the validation stage . 2 . Query timeout : If it s not possible to detect that a query will be too resource-intensive statically perhaps even shallow queries can be very expensive then we can simply add a timeout to the query execution . This has a few benefits : 1 it s a hard limit that s not too hard to reason about and 2 this will also help with situations where one of the backends takes unreasonably long to respond . In many cases a user of your app would prefer a missing field over waiting 10+ seconds to get a response . 3 . Query whitelisting : This is probably the most involved method but you could compile a list of allowed queries ahead of time and check any incoming queries against that list . If your queries are totally static you don t do any dynamic query generation on the client with something like Relay this is the most reliable approach . You could use an automated tool to pull query strings out of your apps when they are deployed so that in development you write whatever queries you want but in production only the ones you want are let through . Another benefit of this approach is that you can skip query validation entirely since you know that all possible queries are valid already . 1 and 2 in particular are probably something every GraphQL server should have by default especially since many new developers might not be aware of these concerns . 3 will only work for certain kinds of apps but might be a good choice when there are very strict performance or security requirements .",
"Question : I have an application with users which have many attributes some of which are public and some are private by default and can become public if the user chooses to do so . How can I handle the fetching of private attributes I mean I want that for instance if I ll try to fetch all the user s attributes I ll get all his public attributes and some null-ish value for his private attributes and not unauthorized error message . I also want to somehow override this so the user will have no trouble to fetch all of his data . .. . Answer : As DARK DUCK already stated : You would decide what to return for a certain user in the resolve method of the attributes in your GraphQL server-side schema . I save necessary data for user authentication in a cookie . Then I pass this authentication data down to the GraphQL schema in the root value . In the resolve method of private user data I check the access rights and return the appropriate data null or the actual data . I made a small example repository on how to handle authentication and private data with relay and graphql . See this file https : github.com jkettmann relay-authentication blob master graphql type UserType.js and the posts attribute for a detailed example .",
"Question : I m writing client-side code for an app that will query a GraphQL server . In a couple of places in my code I m passing around data that will eventually get turned into a query variable so it needs to validate against a specific GraphQLInputType in my schema . On looking into some of the utilities that graphql-js provides it looks like the isValidJSValue checker is exactly what I m looking for and its comments even mention https : github.com graphql graphql-js blob master src utilities isValidJSValue.js L24 that it s intended to be used to do just that . The issue is that I don t have access to the GraphQL type I want to validate against as a JS object which is what I m pretty sure that function is looking for . I m importing my schema as an npm depdendency as JSON or I also have it in the schema notation . Is there some other utility I can use to get the JS type I need from one of those sources and then use that to check my data with isValidJSValue Or is there some other way I could go about this that I just haven t thought of .. . Answer : You can use the JSON schema you have imported to construct an actual GraphQL schema instance using buildClientSchema here : https : github.com graphql graphql-js blob master src utilities buildClientSchema.js .. . .. . Then it should be a simple matter of looking in the types field of the resulting schema to find your input type and then calling isValidJSValue on it . I m curious though - why validate the value on the client before sending it rather than just relying on the validation the server will do Comment : Thanks that worked I m building something where I need to count on the shape of an object being consistent in a few different places in order to implement undo behavior in my app . One of the places happens to be where I send the mutation to the server and so rather than building some other type checking in I d like to just use what GraphQL gives me out of the box . I think I m going to make it a build-time check or maybe even part of a unit test rather than anything that gets executed at run time - basically just a sanity check for developers .",
"Question : Let s say we have the following query taken from the spec : .. . .. . Assuming the error occured during execution of second mutation how GraphQL server implementation should act in such case : should the third mutation be evaluated or something else .. . Answer : According to the JavaScript reference implementation for GraphQL https : github.com graphql graphql-js blob 3cf66f33e30d467b068b4054e120562b01d885b7 src execution execute.js L286-L322 the same mutation changeTheNumber of the selection set will be executed in the given order . If error occurs in the second mutation its result will be an Error object https : github.com graphql graphql-js blob 3cf66f33e30d467b068b4054e120562b01d885b7 src execution execute.js L584 . The following mutations in that selection set will not be aborted .",
"Question : In the LearnGraphQL.com sandbox https : sandbox.learngraphql.com if you click the DOCS button in the upper right hand corner it reveals a Documentation Explorer which lists the following : .. . .. . What is the raw query that can be sent to a graphql server that will return this information .. . Answer : Every GraphQL server according to the spec must support a set of queries for introspection : http : graphql.org docs introspection .. . .. . This means you can use GraphQL queries to get information about that server s available types fields queries mutations directives etc . So if you want some specific information you can use that documentation to construct a query that will get it . If you want all of the information available you can use the built-in introspection query from GraphQL-JS listed here : https : github.com graphql graphql-js blob master src utilities introspectionQuery.js .. . .. . You can use this information for many different purposes : .. . .. . 1 . Plug it into tools like eslint-plugin-graphql https : github.com apollostack eslint-plugin-graphql to validate your queries at development time .. . 2 . Build custom documentation browsers .. . 3 . Generate typed code stubs to integrate query results into your Java Swift apps Comment : Nice one . Thanks a lot .",
"Question : I like the Universal Relay Boilerplate - in general I can tell they were very thoughtful about how they put this whole thing together unlike most boilerplates for which folder organization and so on seems to be an intended afterthought I guess because you won t do anything important at first or something .. . but not URB . Or at least we are picky about the same things . Why do the same annoying thing.. . https : github.com codefoundries UniversalRelayBoilerplate blob master configuration graphql model User.js .. . .. . ...except for one thing : I don t get why they do this . .. . two times in close proximity with no explanation https : github.com codefoundries UniversalRelayBoilerplate blob master graphql type ViewerType.js .. . .. . Here is the Type which is actually a bit different than the original by virtue of an alias . They intend it obviously .. . .. . This is the most dramatic example of difference between model and type I could find in the boilerplate the others are identical . I was actually a bit annoyed to find that no other guide recommends or even mentions doing a model.js but rather starts from a type.js . I could understand if .. . .. . Some types need to differ from models for security performance aesthetic design etc .. . Some types span models deliberately .. . Some types encapsulate models for design reasons .. . .. . But they do it everywhere which leads me to think I am missing something important here . .. . Answer : It could simply be that the boilerplate doesn t demonstrate the benefits of this approach . I think you already have some ideas where it could be beneficial for example when your backend data model isn t exactly mapped to your GraphQL API . A lot of organizations adopting GraphQL today have some existing backends and data models that they are used to working with . In this case you can think of GraphQL as just another API layer that sits next to your REST API or anything else . GraphQL is not your actual backend - you shouldn t be handling your business logic directly in the resolvers because then your whole app will become coupled to GraphQL . This isn t as clear when you are building a new app from scratch with GraphQL but it s a good pattern to follow because you will probably want to be flexible with your API in the future . GraphQL is the external interface layer in your app . http : i.stack.imgur.com yDfUP.png .. . .. . In the diagram above GraphQL would be the external interface . Note that it sits on top of the business logic model layer but doesn t replace it . The types in your GraphQL API are the data you want to display in the UI . This could contain computed fields that aren t in the database some fields could be pulling from multiple backends etc . Read about these concepts as presented by Dan Schafer in my summary of his React Europe talk here : https : medium.com apollo-stack graphql-at-facebook-by-dan-schafer-38d65ef075af .awusd3ibv",
"Question : null .. . Answer : Any working solutions of using Relay GraphQL with Loopback I guess a few things I m considering are how to access the database since I m assuming going through the ORM wouldn t be possible and how to leverage the api generators when using Relay GraphQL.. . Comment : You should create a middle layer GraphQL which resolve data from Loopback and provide data to front-end Relay Comment : Any examples for this by chance Thank you",
"Question : GraphQL consists of a type system query language and execution semantics static validation and type introspection each outlined below . To guide you through each of these components we ve written an example designed to illustrate the various pieces of GraphQL . - https : github.com facebook graphql .. . .. . Falcor lets you represent all your remote data sources as a single domain-model via a virtual JSON graph . You code the same way no matter where the data is whether in memory on the client or over the network on the server . - http : netflix.github.io falcor .. . .. . What is the difference between Falcor and GraphQL in the context of Relay Comment : check out this podcast where Jafar talks about the difference between Relay GraphQL and Falcor JSON Graph youtu.be WL54eYbTJUw t 53m55s https : youtu.be WL54eYbTJUw t 53m55s .. . Answer : I have now written apps with both libraries and I can agree with everything in Gajus post but found some different things most important in my own use of the frameworks . Probably the biggest practical difference is that most of the examples and presumably work done up to this point on GraphQL has been concentrated on integrating GraphQL with Relay - Facebook s system for integrating ReactJS widgets with their data requirements . FalcorJS on the other hand tends to act separately from the widget system which means both that it may be easier to integrate into a non-React Relay client and that it will do less for you automatically in terms of matching widget data dependencies with widgets . The flip side of FalcorJS being flexible in client-side integrations is that it can be very opinionated about how the server needs to act . FalcorJS actually does have a straight up Call this Query over HTTP capability - although Jafar Husain doesn t seem to talk about it very much - and once you include those the way the client libraries react to server information is quite similar except that GraphQL Relay adds a layer of configuration . In FalcorJS if you are returning a value for movie your return-value better say movie whereas in GraphQL you can describe that even though the query returns film you should put that in the client-side datastore as movie . - this is part of the power vs complexity tradeoff that Gajus mentioned . On a practical basis GraphQL and Relay seems to be more developed . Jafar Husain has mentioned that the next version of the Netflix frontend will be running at least in part on FalcorJS whereas the Facebook team has mentioned that they ve been using some version of the GraphQL Relay stack in production for over 3 years . The open-source developer community around GraphQL and Relay seems to be thriving . There are a large number of well-attended supporting projects around GraphQL and Relay whereas I have personally found very few around FalcorJS . Also the base github repository for Relay https : github.com facebook-relay pulse is significantly more active than the github repository for FalcorJS https : github.com netflix falcor pulse . When I first pulled the Facebook repo the examples were broken . I opened a github issue and it was fixed within hours . On the other hand the github issue I opened on FalcorJS has had no official response in two weeks . Comment : GraphQL 2012 has been around long before React and Relay so your first point might not be entirely accurate . Comment : You may be right . I m not a facebooker so I can t really speak to the history . My comment comes more from the current state of facebook s documentation and talks . They were introduced to the world as companions facebook.github.io react blog 2015 02 20 https : facebook.github.io react blog 2015 02 20 introducing-relay-and-graphql.html and both go back quite a ways . I ve seen some vague handwaving about Relay going back 3 years in comments dated early 2015 so it is possible that both were developed internally for several years before presenting to the outside world . But I certainly have no special knowledge .",
"Question : I am learning React + Graphql + Relay .. . and i am fighting for a few hours with this situation : - my component looks like this .. . .. . as u can see there is a select in there that is correctly triggering the setLimit handler .. . inside setLimit i have this.props.relay.setVariables .. . although i do not get any error the query is not being re-rendered .. . .. . i am surely doing a noob mistake .. . just do not know what that is : .. . cause i am noob : .. . .. . thanks Comment : Your component seems fine . Did you check your server-side by making query on graphiql You can usually access it on localhost : 8080 .. . Answer : so i guess i will answer myself : .. . .. . the main reason this happened was that because graphql is returning pageIngo.hasNextPage false .. . obviously that i had to fix it and i found out two things : .. . .. . .. . resolve : args connectionFromPromisedArray .. . db.collection links .find .limit args.first .toArray .. . args .. . .. . .. . .. . 1 . i was querying the using the code above .. . 2 . as u can see i am limiting the items i fetch from the db .. . 3 . further more the connectionFromPromisedArray function is expecting to be fed the entire array of data .. . not a partial response .. . 4 . so this will actually cause graphql to make hasNextPage to false .. . .. . hope this is helpful to anyone : .. . i lost more than a day on this :"
]
} | [
"yes-answer-long",
"yes-answer-short"
] | dependencies | UNK_RELATION |
pydot@graphviz@68 | pydot -- pydot is a python-module to serve as an easy interface to @placeholder s dot language . | {
"confidence": [
49.79623031616211,
47.09672164916992,
45.23080825805664,
44.95672607421875,
44.95672607421875,
44.79237747192383,
44.746585845947266,
44.530696868896484,
44.52983856201172,
43.84900665283203,
43.84900665283203,
43.84900665283203,
43.5273551940918,
43.421051025390625,
43.3129997253418,
43.13043975830078,
42.950897216796875,
42.803524017333984,
42.313331604003906,
41.91328430175781,
41.64325714111328,
41.559043884277344,
41.38397979736328,
41.31362533569336,
41.31362533569336,
41.31362533569336,
40.82650375366211,
40.69691848754883,
40.58470916748047,
40.53553771972656,
40.53553771972656,
40.53553771972656,
40.53553771972656,
40.53553771972656,
40.205909729003906,
39.47698974609375,
39.25566482543945,
39.25566482543945,
39.25566482543945,
39.125038146972656,
39.125038146972656,
39.11566925048828,
38.87828063964844,
38.304962158203125,
38.14936065673828,
38.14794921875,
38.14794921875,
38.14794921875,
38.14794921875,
38.14794921875,
38.14794921875,
38.11259460449219,
37.92102813720703,
37.6912841796875,
37.59096908569336,
36.82032012939453,
36.71486282348633,
36.64375686645508,
36.64375686645508,
36.64375686645508,
36.037208557128906,
36.037208557128906,
36.037208557128906,
36.021541595458984,
36.021541595458984,
36.021541595458984,
36.021541595458984,
36.021541595458984,
36.021541595458984,
36.021541595458984,
36.021541595458984,
36.021541595458984,
36.021541595458984,
36.021541595458984,
35.86961364746094,
34.92948913574219,
34.92948913574219,
34.913822174072266,
34.913822174072266,
34.913822174072266,
34.913822174072266,
34.65646743774414,
34.31080627441406,
34.31080627441406,
34.01776885986328,
33.5861930847168,
33.334938049316406,
33.20309066772461,
33.20309066772461,
33.20309066772461,
32.807926177978516,
32.044490814208984,
31.959396362304688,
31.665191650390625,
31.665191650390625,
31.665191650390625,
31.665191650390625,
31.665191650390625,
31.665191650390625,
31.598651885986328
],
"content": [
"python-pydot is the package for Python 2 .",
"I am using python-module for pydot to make flowcharts .",
"I m using pydot in order to draw graphs in python .",
"In python import pydot2 fails and import pydot shows version 1.0.29 of pydot not 1.0.33 .",
"Off the bat - Ubuntu 12.04 python-2.7 using pydot 1.0.2 .. . .. . I m trying to get pydot to print a tree to a .png .",
"Try this : .. . .. . pip install --allow-unverified pydot pydot 1.0.28",
"Answer for pydot 1.1 : .. . .. . The incompatibility of upstream pydot has been fixed by 6dff94b3f1 https : github.com erocarrera pydot commit 6dff94b3f1dbcf68e5a83ce17a36b098c06d7c6b and thus pydot 1.1 will be compatible with pyparsing 1.5.7 https : github.com erocarrera pydot commit e26af21426fcf15955f7b11b348b14dc6bd5178c .",
"I found Graphviz and was able to output a static graph as a .png image on my application using Pydot Python interface to Graphviz s dot language .",
"in my case answer from Sadik pydot and graphviz error : Couldn t import dot parser loading of dot files will not be possible http : stackoverflow.com questions 15951748 pydot-and-graphviz-error-couldnt-import-dot-parser-loading-of-dot-files-will worked for me on Ubuntu 12.04.5 LTS .. . .. . sudo apt-get install python-pydot",
"The solution was not to install pydot from somewhere but python-pydot from official ubuntu repositories .",
"As of 25-Aug-2013 pip install python-pydot does not work for me distribution not found pip install pydot does .",
"When I installed pydot and graphviz in system s python using usr bin pip install pydot it worked fine .",
"EDIT : .. . .. . I solved the question about pydot it was quiet easy.. .",
"import pydot - not working out .",
"Try to update your pydot package",
"It looks like the pydot package on PyPI is not Python 3 compatible https : github.com erocarrera pydot issues 76 but several people have made Python 3 compatible versions : github.com nlhepler pydot issues 12 https : github.com nlhepler pydot issues 12",
"If it fails I d construct a .dot file manually and pass it through pydot .",
"See here https : github.com erocarrera pydot issues 81 and here http : stackoverflow.com questions 15951748 pydot-and-graphviz-error-couldnt-import-dot-parser-loading-of-dot-files-will .. . .. . Obvious to the initiated but not to the newbie : The workaround is to install pyparsing 2.0.0 prior to installing pydot or a package that depends on pydot .",
"Pydot is a wrapper for Graphviz .",
"Though yolk and PyPi https : pypi.python.org pypi pydot both report this version as the available current one .. . .. . pip -U pydot .. . .. . gives me .. . .. . forcing the current version with .. . .. . pip -U pydot 1.0.28 .. . .. . gives me .. . .. . and even .. . .. . pip -U --allow-external pydot pydot 1.0.28 .. . .. . gives me",
"I created a graph in pydot e.g .",
"I wrote a simple example program using pydot : .. . .. . import pydot .. . .. . I installed pydot via apt-get : sudo apt-get install python-pydot .. . .. . but when I try to run my code I get this error : .. . .. . What am I doing wrong",
"yes the error still comes out from 1.0.28 s pydot .",
"In case of using Python 3 just use pydotplus instead of pydot .",
"Any other suggestion how to import pydot package in Python .",
"Do you not know how to install pydot in python spyder",
"i have python in my computer that is the language i am using for importing pydot .",
"pydot used a private module variable noncomma from pyparsing .",
"This is a bug - github.com erocarrera pydot issues 103 https : github.com erocarrera pydot issues 103",
"Hence pydot wasn t able to find it .",
"Now can you do it with pydot",
"I am trying to install pydot .",
"But without the packages Graphviz and Pydot installed .",
"You must use older pydot .",
"Not with pip sudo apt-get install python-pydot did it for me .",
"Now I am trying to plot it using pydot http : code.google.com p pydot .",
"Hi If i comment the import pydot then how will it work .",
"The pydot . version is still 1.0.29 after the upgrade",
"My drawing from pydot was working alright .",
"From the reference to file it looks like the pydot package https : pypi.python.org pypi pydothttps : pypi.python.org pypi pydot is not compatible with Python 3 .",
"So I was using pydot in python-2.7 from Anaconda and noticed I keep getting errors when I attempt to use certain strings in Pydot .",
"I don t know pydot but I have written a few programs that create graphs in the DOT language so I don t know the exact syntax you need to use and I m having trouble locating docs for pydot but it appears that you can just pass the attribute as a keyword in the Dot constructor eg",
"The reason is that pydot pydot2 uses functionalities that is removed in Python 3 already .",
"As to why one string works and the other doesn t : the pydot library is dumb it s just reformatting commands for an external dot service .",
".. . pip install pyparsing 1.5.7 .. . .. . The solution seems to be to first remove pydot and pyparsing and then to install pyparsing first then pydot .",
"Still pydot is unable to find its executables .",
"You must install pydot for pydotprint to work .",
"@PM2Ring As mentioned question isn t limited to pydot itself .",
"I m using pydot to generate SVG graph images .",
"Initially I installed pydot and graphviz using conda .",
"By the way I have install pydot on conda before .",
"Get a path to your module : add print pydot . file right before pydot.graph from dot data and check that the path is correct",
"as i am new to python i am just giving import pydot command in python nothing else .",
"I installed pydot and also have graphviz with the path correctly specified .",
"Relevant : stackoverflow.com questions 15951748 http : stackoverflow.com questions 15951748 pydot-and-graphviz-error-couldnt-import-dot-parser-loading-of-dot-files-will",
"As per : .. . .. . Pydot not playing well with line-breaks",
".. . prologic pydot https : bitbucket.org prologic pydot by James Mills linked to from the official pydot Google code page as .. . .. . .. . a branch for Python 3 compatibility .. . .. . and here is a working link-to David Villa s pydot2 which works fine : https : pypi.python.org pypi pydot2 1.0.32",
"I ve filed a ticket to fix the Ubuntu package : bugs.launchpad.net ubuntu +source pydot +bug 1321135 https : bugs.launchpad.net ubuntu +source pydot +bug 1321135",
"However you will need to change its folder name from site-packages pydotplus to site-packages pydot for it to work with existing programs that import pydot .",
"I have been using the pydot https : code.google.com p pydot project to generate graphs showing relations between different data .",
"I tried installing official pydot packages but I have Python 3 and they simply did not work .",
"Note : I have a dual Ananconda python env 2.7 3.5 In 2.7 there is no pydot installed .",
"All starts because with python when i run pydot it cannot find the GraphViz s executable .",
"Any particular reason you re not using the newest version of pydot",
"My question is in Pydot how can I set the node order in a cluster",
"To get the names of the nodes I use the pydot objects get nodes function .",
"@SanchitAluna It looks like you have not properly installed pydot .",
".. . .. . Question : Do I need to uninstall pydot before installing pydot2 .",
"I can t make out where pydot 1.0.29 is on my system .",
"Which is why we re unable to import pydot2 and pydot ver .",
"n .. . .. . .. . .. . This section shows all the pydot files in my 3 5 installation .",
"Is there something else needed to promote pydot2 to be the correct version of pydot .",
"I can t get pip to install the current version of pydot 1.0.28 .",
"It might look like pydot is hosted externally - as pip says .",
"If you can t get pydot to work you ll need to run the dot command from the terminal or in you script using subprocess :",
"When I run a very simple code with pydot .. . .. . It prints me the error message : .. . .. . I m using python 2.7.3",
"I forked the pydot repository 1 applied the Gabi Davar patch and some changes to support python-3 .",
"So I don t think it s that pydot is necessarily unofficial .",
"I need something like : .. . .. . My question is not limited to pydot only .",
"Please advise if possible on how to use pip3 to install pydot .",
"I get the error : .. . .. . I have uninstalled and reinstalled Keras Graphviz and pydot .",
"You have to look for a python3-pydot package in your Linux distribution or make sure you install packages with pip for Python 3 and not the one for Python 2 .",
"After finding a note in a thread from one of the many websites I scoured through I ended up installing this forked repository of pydot https : github.com nlhepler pydot .",
"I tried to install the pydot package with following command .. . .. . sudo pip install pydot .. . .. . After that I tried to test whether it s successfully installed but encountered following error .",
"i am using python-2.7 and i have installed graphviz and pydot but when i run my code this is the error am getting Could not run dot ie graphviz to produce visualization what could be the problem",
"http : stackoverflow.com questions 24442094 pydot-not-playing-well-with-line-breaks",
"I parsing a directory with c code with pycparcer and for each file i want to create a subgraph with pydot .",
"Just for completeness here s the issue report http : code.google.com p pydot issues detail id 81 c9 for pydot which reports this issue and the fix mentioned by @Gabi Davar .",
"I ve never used pydot but I do know Graphviz but a quick look at the pydot docs suggests that you can use a file-like object instead of a file .",
"enter image description here http : i.stack.imgur.com NsTdg.png .. . .. . Question .. . .. . Is there any way pydot can be configured to work in real-time or are there any similar projects like pydot which allow to make graphs in real-time",
"I am unable to import the pydot package in python spyder Could you please help me out is there any other way to import it .",
"I am plotting a graph using Pydot library in Python with images as my nodes .",
"The software is dependent on the following python packages : .. . .. . 1-networkX .. . .. . 2-pyparsing .. . .. . 3-numpy .. . .. . 4-pydot .. . .. . 5-matplotlib .. . .. . 6-graphviz .. . .. . The error I get is this : .. . .. . I have already tried the solution suggested for a similar question http : stackoverflow.com questions 15951748 pydot-and-graphviz-error-couldnt-import-dot-parser-loading-of-dot-files-will on stack-overflow .",
"So in the end I exported the pydot as a pdf imported the pdf via PyPDF2 and then merged it with the ReportLab document .",
"The task is to check a pydot object if it beholds a requested node and if so to return the node and the graph object back .",
"i just i have to write import pydot apart from this i do not know any other procedure .",
"Did you read the readme https : github.com erocarrera pydot and follow its instructions",
"I want to create a directed-graph using pydot and I have a ready-made edge set as well .",
"However for this to happen something very weird must be going on while you create the pydot graph which is rather unlikely .",
"The problem is that the path to GraphViz was not found by the pydot module as shown in the traceback : .. . .. . GraphViz s executables not found .. . .. . I solved this problem on my windows-7 machine by adding the GraphViz bin directory to my computer s PATH ."
]
} | {
"confidence": [
64.42843627929688,
62.209232330322266,
60.644683837890625,
59.95670700073242,
59.723358154296875,
59.59492111206055,
59.092933654785156,
55.48138427734375,
54.874568939208984,
54.86860656738281,
54.1085319519043,
53.548065185546875,
53.1715202331543,
53.16013717651367,
53.1242561340332,
53.08735275268555,
52.90689468383789,
52.069305419921875,
52.03594970703125,
51.89645004272461
],
"content": [
"Question : I am using python-module for pydot to make flowcharts . But the flowcharts are being generated in a vertical fashion . I want them to be generated in a horizontal way . Is there any way that this can be achieved .. . Answer : You need to give your graph the rankdir LR attribute as shown in this Graphviz forum post http : graphviz.org content horizontal-graph . I don t know pydot but I have written a few programs that create graphs in the DOT language so I don t know the exact syntax you need to use and I m having trouble locating docs for pydot but it appears that you can just pass the attribute as a keyword in the Dot constructor eg Comment : This worked fine . Thanks a ton .",
"Question : I am trying to run a huge evolution simulating python software from the command-line . The software is dependent on the following python packages : .. . .. . 1-networkX .. . .. . 2-pyparsing .. . .. . 3-numpy .. . .. . 4-pydot .. . .. . 5-matplotlib .. . .. . 6-graphviz .. . .. . The error I get is this : .. . .. . I have already tried the solution suggested for a similar question http : stackoverflow.com questions 15951748 pydot-and-graphviz-error-couldnt-import-dot-parser-loading-of-dot-files-will on stack-overflow . I still get the same error . Here are the package versions I am using and my python version . I m using python 2.7.6 .. . typing the command which -a python yields the result : usr bin python . 1-pyparsing 1.5.7 .. . .. . 2-pydot 1.0.2 .. . .. . 3-matplotlib 1.3.1 .. . .. . 4-graphviz 0.4.2 .. . .. . 5-networkx 0.37 .. . .. . 6-numpy 1.8.0rc1 .. . .. . Any ideas Seeing that the solution to similar questions is not working for me I think the problem might be more fundamental in my case . Something wrong with the way I installed my python perhaps . .. . Answer : Any particular reason you re not using the newest version of pydot This revision of 1.0.2 looks like it fixes exactly that problem : .. . .. . https : code.google.com p pydot source diff spec svn10 r 10 format side path trunk pydot.py https : code.google.com p pydot source diff spec svn10 r 10 format side path trunk pydot.py .. . .. . See line 722 . Comment : Version 1.0.28 fixes the problem . Thanks I still get the message Couldn t import dot parser loading of dot files will not be possible when I run my program though . Comment : yes the error still comes out from 1.0.28 s pydot . And I modified the pydot.py by deleting the lines that does the import dot parser and everything is good .",
"Question : I am unable to import the pydot package in python spyder Could you please help me out is there any other way to import it . i need it for decision-tree visualization . import pydot - not working out . .. . Answer : Try to commant line with : .. . .. . If u will get ImportError just reinstall this module . Maybe you have multiple installations of Python e.g . 2.7 and 3.5 . When installing you put the module in one Python and try to import in another . Also this problem can to occur due to the fact that instead install you just copied the file to your local directory . If yes use pip or setuptools for install or add your local directory to sys.path Comment : Hi If i comment the import pydot then how will it work . i have python in my computer that is the language i am using for importing pydot . it is not working . could you please elaborate what were you trying to say Comment : I have just 2.7 and how can i put in one and import in another . as i am new to python i am just giving import pydot command in python nothing else . Comment : Thanks for the suggestion but your suggestion could not help me out . Any other suggestion how to import pydot package in Python . i just i have to write import pydot apart from this i do not know any other procedure . Please suggest Comment : @SanchitAluna It looks like you have not properly installed pydot . JRazor is suggesting that you reinstall . Comment : Hi @zondo can you suggest me how do i reinstall as i am again typing only import pydot is there any other words i have to type to reinstall",
"Question : I have GraphViz 2.32 installed in Windows 8 and have added C : Program Files x86 Graphviz2.32 bin to the System PATH variable . Still pydot is unable to find its executables . I found this https : code.google.com p pydot issues detail id 65 but am unable to get the problem solved . .. . Answer : in my case answer from Sadik pydot and graphviz error : Couldn t import dot parser loading of dot files will not be possible http : stackoverflow.com questions 15951748 pydot-and-graphviz-error-couldnt-import-dot-parser-loading-of-dot-files-will worked for me on Ubuntu 12.04.5 LTS .. . .. . sudo apt-get install python-pydot Comment : you d better use virtualenv Comment : This worked . Thanks :",
"Question : I am trying to run a huge evolution simulating python software from the command-line . The software is dependent on the following python packages : .. . .. . 1-networkX .. . .. . 2-pyparsing .. . .. . 3-numpy .. . .. . 4-pydot .. . .. . 5-matplotlib .. . .. . 6-graphviz .. . .. . The error I get is this : .. . .. . I have already tried the solution suggested for a similar question http : stackoverflow.com questions 15951748 pydot-and-graphviz-error-couldnt-import-dot-parser-loading-of-dot-files-will on stack-overflow . I still get the same error . Here are the package versions I am using and my python version . I m using python 2.7.6 .. . typing the command which -a python yields the result : usr bin python . 1-pyparsing 1.5.7 .. . .. . 2-pydot 1.0.2 .. . .. . 3-matplotlib 1.3.1 .. . .. . 4-graphviz 0.4.2 .. . .. . 5-networkx 0.37 .. . .. . 6-numpy 1.8.0rc1 .. . .. . Any ideas Seeing that the solution to similar questions is not working for me I think the problem might be more fundamental in my case . Something wrong with the way I installed my python perhaps . .. . Answer : Upgrading my pyparsing module fixed this issue . Try :",
"Question : I can t get pip to install the current version of pydot 1.0.28 . Though yolk and PyPi https : pypi.python.org pypi pydot both report this version as the available current one .. . .. . pip -U pydot .. . .. . gives me .. . .. . forcing the current version with .. . .. . pip -U pydot 1.0.28 .. . .. . gives me .. . .. . and even .. . .. . pip -U --allow-external pydot pydot 1.0.28 .. . .. . gives me Comment : What about --allow-external option Comment : It might look like pydot is hosted externally - as pip says . Comment : Relevant : stackoverflow.com questions 15951748 http : stackoverflow.com questions 15951748 pydot-and-graphviz-error-couldnt-import-dot-parser-loading-of-dot-files-will .. . Answer : Try this : .. . .. . pip install --allow-unverified pydot pydot 1.0.28 Comment : Not a good idea . http : stackoverflow.com a 21069581 656912 Comment : Doesn t work either I have the same problem",
"Question : null .. . Answer : I wrote a simple example program using pydot : .. . .. . import pydot .. . .. . I installed pydot via apt-get : sudo apt-get install python-pydot .. . .. . but when I try to run my code I get this error : .. . .. . What am I doing wrong Comment : Did you read the readme https : github.com erocarrera pydot and follow its instructions FWIW you re probably better off using the more modern pydotplus https : pypi.python.org pypi pydotplus which you can install with pip . Note that both of these packages need pyparsing and GraphViz . Comment : Are you using python3 or python2 Comment : I m working with python3 . And I added both packages . What I noticed : if I work only with the graphviz module and different code than in my question it compiles with python2 but python3 gives me the error it can t find the graphviz module.. . Is there a possibility to work with it using python3 Comment : python-pydot is the package for Python 2 . You have to look for a python3-pydot package in your Linux distribution or make sure you install packages with pip for Python 3 and not the one for Python 2 .",
"Question : I am trying to run the following code : .. . .. . and i get the following error : AttributeError : module pydot has no attribute graph from dot data .. . .. . I have tried hard to find the solution but could not be able to do so . Please someone help me in this regard . Comment : Try to update your pydot package Comment : Arseniy i have tried to installe updated packages such as pydotplus and pydot2 but to no avail . Could you please enlighten me on this Comment : Get a path to your module : add print pydot . file right before pydot.graph from dot data and check that the path is correct .. . Answer : 1 Use pydotplus if you are using python 3+ .. . .. . 2 Change the last line to pydotplus.graph from dot data dotfile.getvalue .write png dtree2.png as your variable name is dotfile and not dot data .. . .. . P.S - reinstall graphviz after you install pydotplus .. . .. . Hope this helps Comment : Dear Jinesh i will give it a try Thank You very much .",
"Question : I am unable to import the pydot package in python spyder Could you please help me out is there any other way to import it . i need it for decision-tree visualization . import pydot - not working out . .. . Answer : Do you not know how to install pydot in python spyder If you use Spyder on Windows you could try to input code following in CMD I have no idea whether it is effective on Linux : .. . .. . If it says InvocationException : GraphViz s executables not found after you install pydot you need install GraphViz as well : Comment : if you not sure then don t put it as a answer Comment : Sorry I am NOT not sure . I am just not fully understand what is @Sanchit Aluna s problem and the context the error happened . I think my answer will be helpful :",
"Question : When I run a very simple code with pydot .. . .. . It prints me the error message : .. . .. . I m using python 2.7.3 Comment : pip install pydot2 should fix this issue . Much nicer than using pip uninstall because if you share code you can just add pydot2 to your requirements.txt and not have users run unfamiliar commands . .. . Answer : The solution was not to install pydot from somewhere but python-pydot from official ubuntu repositories . Comment : As of 25-Aug-2013 pip install python-pydot does not work for me distribution not found pip install pydot does . So I don t think it s that pydot is necessarily unofficial . Perhaps you were installing via an OS distribution instead Comment : Not with pip sudo apt-get install python-pydot did it for me . Comment : That would probably work because Ubuntu currently has python-pyparsing at 1.5.2 which avoids the version incompatibility listed above . I went with the fix above and haven t had problems since . Thanks Comment : Unfortunately in Ubuntu as of Saucy pyparsing has been upgraded but pydot has not been patched appropriately . Comment : I ve filed a ticket to fix the Ubuntu package : bugs.launchpad.net ubuntu +source pydot +bug 1321135 https : bugs.launchpad.net ubuntu +source pydot +bug 1321135",
"Question : I have a very simple graph that I want to plot as svg . For example : .. . .. . I am currently using pydot to read the file and then generate the svg file as follows : .. . .. . However I need to do this without the need of intermediate files graph.dot and graph.svg . I have the code content of graph.dot in a string corresponding to which I need the svg output in string . I need something like : .. . .. . My question is not limited to pydot only . If anyone knows a web-api using which I can do this then also it will do . Thanks a Lot in advance . Comment : I ve never used pydot but I do know Graphviz but a quick look at the pydot docs suggests that you can use a file-like object instead of a file . So you should try StringIO or BytesIO from the standard io https : docs.python.org 3 library io.html module . Comment : @PM2Ring you are right that I can use io to take input . But how to replace the write svg function Comment : @PM2Ring As mentioned question isn t limited to pydot itself . Can you tell me a way to get the svg string corresponding to dot string in Graphviz . Any way is fine . Comment : If .write svg accepts an open file handle instead of a file name then it will just work if you supply it a StringIO or BytesIO object . If you ve never used the io module before I suggest you study the docs do a few experiments it s a very useful module . Comment : Ok cool .. . Thanks : .. . Answer : After spending some more time looking at the available methods on pydot object and graph object it could be figured out : .. . .. . The following code works :",
"Question : When I run a very simple code with pydot .. . .. . It prints me the error message : .. . .. . I m using python 2.7.3 Comment : pip install pydot2 should fix this issue . Much nicer than using pip uninstall because if you share code you can just add pydot2 to your requirements.txt and not have users run unfamiliar commands . .. . Answer : pydot used a private module variable noncomma from pyparsing . The below diff fixes it to use for pyparsing 2.0.1 : Comment : Just for completeness here s the issue report http : code.google.com p pydot issues detail id 81 c9 for pydot which reports this issue and the fix mentioned by @Gabi Davar . Comment : Thanks thanks I was breaking my head over this",
"Question : I installed pydot2 successfully using the Ipython notebook . .. . .. . At the terminal I see pydot2 is present . In python import pydot2 fails and import pydot shows version 1.0.29 of pydot not 1.0.33 . .. . .. . Question : Do I need to uninstall pydot before installing pydot2 . How do I do that Note : I have a dual Ananconda python env 2.7 3.5 In 2.7 there is no pydot installed . I am on latest MacOS 10.11 . I can t make out where pydot 1.0.29 is on my system . Comment : @DavidW welcome your change and thank you for informing and correcting it . Sorry about adding wrong tag . .. . Answer : I think I found the problem . When I looked into the actual package https : pypi.python.org pypi pydot2 1.0.32 the pydot file being installed is pydot.py not pydot2.py . Which is why we re unable to import pydot2 and pydot ver . 1.0.29 is installed . I ll update if I find a solution to this . Update : After much digging I found there isn t a great solution to pydot2 . Instead you should use pydotplus which can be installed with pip .",
"Question : I tried to install the pydot package with following command .. . .. . sudo pip install pydot .. . .. . After that I tried to test whether it s successfully installed but encountered following error . How could I fix this issue BTW I have successfully installed graphviz package as a prerequisite . And my python version is 2.7.6 . Comment : This is a bug - github.com erocarrera pydot issues 103 https : github.com erocarrera pydot issues 103 .. . Answer : Have you tried pip install pydot2 it work on me .",
"Question : I created a graph in pydot e.g . the python graphviz interface . Now I would like to enter this graph into my reportlab report . Is there any direct way of doing this .. . Answer : After an endless search I figured there is no way . So in the end I exported the pydot as a pdf imported the pdf via PyPDF2 and then merged it with the ReportLab document . Far from ideal but it does the job .",
"Question : I installed pydot2 successfully using the Ipython notebook . .. . .. . At the terminal I see pydot2 is present . In python import pydot2 fails and import pydot shows version 1.0.29 of pydot not 1.0.33 . .. . .. . Question : Do I need to uninstall pydot before installing pydot2 . How do I do that Note : I have a dual Ananconda python env 2.7 3.5 In 2.7 there is no pydot installed . I am on latest MacOS 10.11 . I can t make out where pydot 1.0.29 is on my system . Comment : @DavidW welcome your change and thank you for informing and correcting it . Sorry about adding wrong tag . .. . Answer : This should show you where pydot 1.0.29 is on your system : .. . .. . Your install attempt has an interesting message : use --upgrade to upgrade . Did you try adding the --upgrade option Comment : I did not try adding the --upgrade option . How do I do that Thanks Ram Comment : pip install --upgrade pydot2 Comment : pip install --upgrade pydot2 Requirement already up-to-date : pydot2 in . lib python3.5 site-packages Collecting pyparsing from pydot2 Downloading pyparsing-2.0.7-py2.py3-none-any.whl Collecting setuptools from pydot2 Downloading setuptools-19.7-py2.py3-none-any.whl 472kB Installing collected packages : pyparsing setuptools Found existing installation : pyparsing 2.0.3 DEPRECATION : Uninstalling a distutils installed project pyparsing has been deprecated and will be removed in a future version . Comment : This is due to the fact that uninstalling a distutils project will only partially uninstall the project . Uninstalling pyparsing-2.0.3 : Successfully uninstalled pyparsing-2.0.3 Found existing installation : setuptools 19.1.1 Cannot remove entries from nonexistent file Users ram anaconda lib python3.5 site-packages easy-install.pth Comment : The pydot . version is still 1.0.29 after the upgrade",
"Question : I have trained a decision-tree Python dictionary as below . Now I am trying to plot it using pydot http : code.google.com p pydot . In defining each node of the tree pydot graph I appoint it a unique and verbose name and a brief label . My problem is that in the resulting figure that I get by writing to a .png I see the verbose node names and not the node labels . I have followed the answer by @Martijn Pieters here http : stackoverflow.com questions 13012621 pydot-is-it-possible-to-plot-two-different-nodes-with-the-same-string-in-them . I do not know what I am missing any ideas This is the undesired output I get with the code above : .. . .. . enter image description here http : i.stack.imgur.com Fsefx.png .. . Answer : You need to explicitly add the nodes you create to the graph : .. . .. . and .. . .. . otherwise the renderer won t see the names . graph.add node includes the node metadata in the generated .dot file . With those graph.add node lines added the result is : .. . .. . name.png http : i.stack.imgur.com 4hWys.png Comment : Thank you since you have alerady had a look at the code did you think the implementation of the recursive function was correct Comment : @Zhubarb : I didn t take more than a cursory look but it looks fine from here . You don t need to call .keys for k in dictionary : suffices .",
"Question : When I run a very simple code with pydot .. . .. . It prints me the error message : .. . .. . I m using python 2.7.3 Comment : pip install pydot2 should fix this issue . Much nicer than using pip uninstall because if you share code you can just add pydot2 to your requirements.txt and not have users run unfamiliar commands . .. . Answer : Answer for pydot 1.1 : .. . .. . The incompatibility of upstream pydot has been fixed by 6dff94b3f1 https : github.com erocarrera pydot commit 6dff94b3f1dbcf68e5a83ce17a36b098c06d7c6b and thus pydot 1.1 will be compatible with pyparsing 1.5.7 https : github.com erocarrera pydot commit e26af21426fcf15955f7b11b348b14dc6bd5178c . .. . .. . Answer applicable to pydot 1.0.28 : .. . .. . For anyone else who comes across this it is due to the changes in pyparsing from 1.x to the 2.x release . To install pydot using pip first install the older version of pyparsing : .. . .. . If you did not install pyparsing using pip but instead used setup.py then have a look at this solution http : stackoverflow.com questions 1550226 python-setup-py-uninstall to uninstall the package . Thanks @qtips . Comment : Thanks for the timely answer . I needed it 3 hours after you posted it . Comment : I installed NetworkX GraphViz and pydot but could not get Graphviz functionality to work with NetworkX e.g . this http : networkx.github.io documentation latest examples drawing circular tree.html NetworkX example failed . I kept getting : global name dot parser is not defined . Your solution solved this problem . Comment : also sudo pip uninstall does not work if you have installed your package using python setup.py install in that case follow this http : stackoverflow.com questions 1550226 python-setup-py-uninstall solution . This was at least the case on my Mountain Lion OSX Mac Comment : sudo is obviously not always necessary like if you re using a virtualenv . Other than that this worked for me Comment : Why not just pip install pyparsing 1.5.7",
"Question : I m using Anaconda Python 2.7 on windows-10 .. . .. . I was planning on doing Keras visualization so whilst spyder was open I opened the Anaconda command-prompt and pip installed graphviz and pydot . Now when I try run the following : .. . .. . or any sort of from keras . I get the error : .. . .. . I have uninstalled and reinstalled Keras Graphviz and pydot . i am using the development version of theano . I cannot find a fix . P.S .. . .. . If I uninstall graphviz and pydot keras works again .. . .. . EDIT .. . .. . After uninstalling anaconda and reinstalling it including theano keras graphviz and pydot I now get the following error : .. . .. . I used pip install graphviz and pip install git+https : github.com nlhepler pydot.git Comment : Can you paste the complete error message from python Comment : Keras is now running again . But without the packages Graphviz and Pydot installed . When I tried uninstalling them earlier on my python crashed every time I opened it which is why I m too afraid to attempt re-installation of either of the packages . Could it be that one of them gets in the way of Keras Comment : With your edit the question has now changed significantly you should edit the title to reflect the new question . .. . Answer : I had the same problem . I am using Anaconda python on Ubuntu . but it seams that Keras uses system s python not the Anaconda python . Initially I installed pydot and graphviz using conda . When I installed pydot and graphviz in system s python using usr bin pip install pydot it worked fine .",
"Question : I m attempting to implement a Decision Tree with scikit-learn and then visualise the tree with Graphviz which I understand is the standard choice for visualising DT . I m using PyCharm anaconda Python 2.7 and OS X El Capitan . I ve installed pydot and Graphviz with PIP install as far as I can tell and have also installed them directly in Pycharm but whatever I do I continuously get a No module named graphviz . At the moment running this code produces the graph.dot but I cannot view the file . 1 . How do I get the graphviz repository to work 2 . How do I write the graph to PDF PNG I saw some examples but non-worked 3 . I found this command : dot -Tps filename.dot -o outfile.ps Where do I used it And how can I verify a dot utility exists on my OS X Thanks in advance .. . Answer : I m pretty sure I installed graphviz using homebrew but it looks like you can also download a binary from http : www.graphviz.org Download macos.php . If you can t get pydot to work you ll need to run the dot command from the terminal or in you script using subprocess : Comment : Thanks you that works perfectly"
]
} | [
"yes-answer-long",
"yes-answer-short"
] | graphviz | UNK_RELATION |
kendo-progressbar@widget@58 | kendo-progressbar -- represents the kendo-ui progressbar @placeholder . | {
"confidence": [
45.786277770996094,
42.46538543701172,
41.79126739501953,
40.46839141845703,
39.24603271484375,
38.14931106567383,
35.762672424316406,
30.4154052734375,
29.125566482543945,
29.125566482543945,
17.640060424804688,
17.640060424804688,
17.640060424804688,
17.640060424804688,
17.640060424804688,
17.640060424804688,
17.640060424804688,
17.640060424804688,
17.640060424804688,
17.640060424804688,
17.640060424804688,
17.640060424804688,
17.640060424804688,
17.640060424804688,
17.640060424804688,
17.640060424804688,
17.640060424804688,
13.722017288208008,
13.722017288208008,
13.722017288208008,
13.722017288208008,
13.722017288208008,
13.722017288208008,
13.722017288208008,
13.722017288208008,
13.722017288208008,
13.722017288208008,
13.722017288208008,
13.722017288208008,
13.722017288208008,
13.722017288208008,
13.722017288208008,
13.722017288208008,
13.722017288208008,
13.722017288208008,
13.722017288208008,
13.722017288208008,
13.722017288208008,
13.722017288208008,
13.722017288208008,
13.722017288208008,
13.722017288208008,
13.722017288208008,
13.722017288208008,
13.722017288208008,
13.722017288208008,
13.722017288208008,
13.722017288208008,
13.722017288208008,
13.722017288208008,
13.722017288208008,
11.216482162475586,
11.216482162475586,
11.216482162475586,
11.216482162475586,
11.216482162475586,
11.216482162475586,
11.216482162475586,
11.216482162475586,
11.216482162475586
],
"content": [
"You can check the reverse option of the widget : .. . .. . reverse option http : docs.telerik.com KENDO-UI api javascript ui progressbar configuration-reverse",
"http : docs.telerik.com kendo-ui api framework datasource events-sync",
"kendo version v2012.1.229 @Chaitanya",
"What version of kendo are you using",
"I am working with the Kendo UI Progress Bar .",
"There is event requestEnd but it never gets called -- probably it is not supported in older version of kendo-ui .",
"Always place Kendo code inside the JQuery handler and be sure to include the reference to JQuery library before your Kendo scripts .",
"In your example you have kendo.ui.progress progressBar false in the Complete handler for the second call but not the first .",
"I want to implement the Kendo progress-bar for my server-side ajax call .",
"Kendo relies on JQuery but you re trying to initialize the progress widget before the JQuery handler initializes .",
"Trying to add spinner kendo.ui.progress to show crud operations in process for create start spinner in save event and end in databound but for delete destroy start in remove event but there is no way to tell when destroy is completed .",
"There is one more way which is define ajax function inside destroy operation like destroy : function options .ajax.. . and in success or failure callbacks of ajax stop spinner but I do not want to do this .",
"Is there a way I can know when the destroy operation completed other than the above two mentioned solutions",
"Using requestStart sync requestEnd to show and hide a spinner is not wise .",
"This way you have to write code for showing and hiding spinner in every datasource .",
"what happens if the code of showing hiding changed",
"Better idea is defining a global handler to show spinner after first request and hide spinner after last response .",
"Global Ajax Event Handlers http : api.jquery.com category ajax global-ajax-event-handlers is best in this scenarios .",
".ajaxStart : Register a handler to be called when the first Ajax request begins . .. . .. . .ajaxStop : Register a handler to be called when all Ajax requests have completed . .. . .. . .. . .. . example :",
"WOW best solution and it worked thank you so much for answering clearly that too with example .",
"@user2539301 : you re welcome and I m happy solved your problem .",
"One advice to you is changing your question title and make it more specific .",
"And if you want to know why requestEnd never gets called open another new question .",
"You can use the sync event .",
"It is fired after the data source saves data item changes .",
"sync not getting called after any request completion create edit destroy",
"sync event will not get fired unless i set autoSync option to true but I do not want autosync to be true",
"I tried but it s not initiating before the ajax call and if I use the setTimeOut function below for closing the ajax call the progress-bar only displays for a short duration .",
"For example : .. . .. . In the above code the progress-bar only shows for 5000 milliseconds after which it closes .",
"Here is my actual requirement .",
"I need to have two ajax calls one inside another .",
"I want to implement the progress-bar before the first ajax call initiates and want to close after the 2nd ajax call completes .",
"Another option would be to implement the progress-bar before the first ajax call initiates and close it once the 1st call is complete then initiate the progress-bar for the 2nd ajax call and close when the 2nd ajax call is complete .",
"I hope my requirement is clear .",
"If you need more details please let me know .",
"Here is my code : .. . .. . Thanks in advance.. .",
"A few things here .",
"1 .",
"2 .",
"Make sure your put code to turn off the progress-bar in every possible code path or it will run indefinitely and your users won t be able to proceed .",
"If the user were to get an error on the first call the progress-bar would never be turned off .",
"3 .",
"You re disabling async mode here in code but your comment makes me think you don t mean to .",
"async : false isn t necessary here since you are making the 2nd AJAX call in the success of the first .",
"In doing it this way you control the execution order of the calls yourself .",
"4 .",
"I think you know this already but setting a pre-defined timeout value on any kind of progress indicator isn t a good idea because you have no way of knowing just how long that process will take .",
"Thank you very much .",
"Now I m clear what I did wrong .",
"I tried then also it s not working .",
"Actually jQuery i m intializing the jQuery .",
"Please have a look complete code above .",
"I edited the previous code .",
"Please make any changes on above code as you want or please suggest any other way .",
"Here i would like to add ..as per you 3rd point here async : false required .",
"Otherwise we are not able to get the data through the service call .",
"If there any other please suggest me .",
"So what exactly is happening",
"Is the progress-bar even starting",
"Progress bar not starting .",
"If it s debug mode then it s showing .",
"I need to use a vertical progress-bar to illustrate a users progress as they complete the form .",
"My progress-bar is as follows : .. . .. . I m having one issue at this point .",
"The progress-bar increments chunks from bottom to top .",
"I need it to increment chunk from top to bottom .",
"Does anyone know if there is a way to flip the vertical orientation",
"Thanks",
"create a js fiddle",
"Thanks",
"I did not see that ."
]
} | {
"confidence": [
58.843807220458984,
47.496578216552734,
41.19721221923828,
40.52363586425781
],
"content": [
"Question : I am working with the Kendo UI Progress Bar . I need to use a vertical progress-bar to illustrate a users progress as they complete the form . My progress-bar is as follows : .. . .. . I m having one issue at this point . The progress-bar increments chunks from bottom to top . I need it to increment chunk from top to bottom . Does anyone know if there is a way to flip the vertical orientation Thanks Comment : create a js fiddle .. . Answer : You can check the reverse option of the widget : .. . .. . reverse option http : docs.telerik.com KENDO-UI api javascript ui progressbar configuration-reverse Comment : Thanks I did not see that .",
"Question : Trying to add spinner kendo.ui.progress to show crud operations in process for create start spinner in save event and end in databound but for delete destroy start in remove event but there is no way to tell when destroy is completed . There is event requestEnd but it never gets called -- probably it is not supported in older version of kendo-ui . There is one more way which is define ajax function inside destroy operation like destroy : function options .ajax.. . and in success or failure callbacks of ajax stop spinner but I do not want to do this . Is there a way I can know when the destroy operation completed other than the above two mentioned solutions Comment : What version of kendo are you using Comment : kendo version v2012.1.229 @Chaitanya .. . Answer : You can use the sync event . It is fired after the data source saves data item changes . http : docs.telerik.com kendo-ui api framework datasource events-sync Comment : kendo version v2012.1.229 @Chaitanya Comment : sync not getting called after any request completion create edit destroy Comment : sync event will not get fired unless i set autoSync option to true but I do not want autosync to be true",
"Question : I want to implement the Kendo progress-bar for my server-side ajax call . I tried but it s not initiating before the ajax call and if I use the setTimeOut function below for closing the ajax call the progress-bar only displays for a short duration . For example : .. . .. . In the above code the progress-bar only shows for 5000 milliseconds after which it closes . Here is my actual requirement . I need to have two ajax calls one inside another . I want to implement the progress-bar before the first ajax call initiates and want to close after the 2nd ajax call completes . Another option would be to implement the progress-bar before the first ajax call initiates and close it once the 1st call is complete then initiate the progress-bar for the 2nd ajax call and close when the 2nd ajax call is complete . I hope my requirement is clear . If you need more details please let me know . Here is my code : .. . .. . Thanks in advance.. . .. . Answer : A few things here . 1 . Kendo relies on JQuery but you re trying to initialize the progress widget before the JQuery handler initializes . Always place Kendo code inside the JQuery handler and be sure to include the reference to JQuery library before your Kendo scripts . 2 . Make sure your put code to turn off the progress-bar in every possible code path or it will run indefinitely and your users won t be able to proceed . In your example you have kendo.ui.progress progressBar false in the Complete handler for the second call but not the first . If the user were to get an error on the first call the progress-bar would never be turned off . 3 . You re disabling async mode here in code but your comment makes me think you don t mean to . async : false isn t necessary here since you are making the 2nd AJAX call in the success of the first . In doing it this way you control the execution order of the calls yourself . 4 . I think you know this already but setting a pre-defined timeout value on any kind of progress indicator isn t a good idea because you have no way of knowing just how long that process will take . Comment : Thank you very much . Now I m clear what I did wrong . Comment : I tried then also it s not working . Actually jQuery i m intializing the jQuery . Please have a look complete code above . I edited the previous code . Please make any changes on above code as you want or please suggest any other way . Comment : Here i would like to add ..as per you 3rd point here async : false required . Otherwise we are not able to get the data through the service call . If there any other please suggest me . Comment : So what exactly is happening Is the progress-bar even starting Comment : Progress bar not starting . If it s debug mode then it s showing .",
"Question : Trying to add spinner kendo.ui.progress to show crud operations in process for create start spinner in save event and end in databound but for delete destroy start in remove event but there is no way to tell when destroy is completed . There is event requestEnd but it never gets called -- probably it is not supported in older version of kendo-ui . There is one more way which is define ajax function inside destroy operation like destroy : function options .ajax.. . and in success or failure callbacks of ajax stop spinner but I do not want to do this . Is there a way I can know when the destroy operation completed other than the above two mentioned solutions Comment : What version of kendo are you using Comment : kendo version v2012.1.229 @Chaitanya .. . Answer : Using requestStart sync requestEnd to show and hide a spinner is not wise . This way you have to write code for showing and hiding spinner in every datasource . what happens if the code of showing hiding changed Better idea is defining a global handler to show spinner after first request and hide spinner after last response . Global Ajax Event Handlers http : api.jquery.com category ajax global-ajax-event-handlers is best in this scenarios . .ajaxStart : Register a handler to be called when the first Ajax request begins . .. . .. . .ajaxStop : Register a handler to be called when all Ajax requests have completed . .. . .. . .. . .. . example : Comment : WOW best solution and it worked thank you so much for answering clearly that too with example . Comment : @user2539301 : you re welcome and I m happy solved your problem . One advice to you is changing your question title and make it more specific . And if you want to know why requestEnd never gets called open another new question ."
]
} | [
"yes-answer-long",
"yes-answer-short"
] | widget | UNK_RELATION |
subquery@data-manipulation@142 | subquery -- subquery is vague sql terminology used to describe when there s either more than one select statement in a query or when used in @placeholder language dml statements ie : delete update insert merge . | {
"confidence": [
50.63691711425781,
49.38716506958008,
47.63911819458008,
47.56438064575195,
42.715576171875,
42.50453186035156,
42.222801208496094,
42.174346923828125,
42.13581848144531,
42.01807403564453,
41.934539794921875,
41.356895446777344,
41.34625244140625,
41.23303985595703,
41.07114791870117,
40.83372116088867,
40.80840301513672,
40.25142288208008,
40.13966751098633,
39.93783950805664,
39.63330078125,
39.625877380371094,
39.59431838989258,
39.547386169433594,
39.478233337402344,
38.86982727050781,
38.478214263916016,
38.34828567504883,
38.145225524902344,
38.11603927612305,
38.00979995727539,
37.85224914550781,
37.616703033447266,
37.5993537902832,
37.56974792480469,
37.559364318847656,
37.535579681396484,
37.51979064941406,
37.416812896728516,
37.37944793701172,
37.31613540649414,
37.310882568359375,
37.132179260253906,
37.08773422241211,
36.83756637573242,
36.79217529296875,
36.67926788330078,
36.662776947021484,
36.636600494384766,
36.61631393432617,
36.58293533325195,
36.51982116699219,
36.50535583496094,
36.265708923339844,
36.22536087036133,
36.0981330871582,
35.95944595336914,
35.86376953125,
35.81605911254883,
35.70104217529297,
35.57172775268555,
35.552738189697266,
35.50529861450195,
35.393898010253906,
35.3681640625,
35.35699462890625,
35.34450149536133,
35.33594512939453,
35.26556396484375,
35.25642013549805,
35.20798110961914,
35.20768737792969,
35.12143325805664,
35.0147819519043,
35.008426666259766,
34.94568634033203,
34.937164306640625,
34.930599212646484,
34.86048126220703,
34.744773864746094,
34.7421989440918,
34.72470474243164,
34.723785400390625,
34.69342041015625,
34.69226837158203,
34.682926177978516,
34.64857482910156,
34.635276794433594,
34.591522216796875,
34.3741455078125,
34.19770812988281,
34.19770812988281,
34.18458557128906
],
"content": [
"This is not permitted when the subquery follows or when the subquery is used as an expression .",
"This is not permitted when the subquery follows or when the subquery is used as an expression",
"A subquery is a select statement whereas a union is a conjunction of select statements .",
"This is not permitted when the subquery follows or when the subquery is used as an expression .",
"A subquery is a select statement that is embedded in a clause of another select statement .",
"If there are more than one such entry the SELECT subquery will return a table of IDs .",
"Is there a way to nest CASE-WHEN statements in an IN statement such that one of the WHEN or ELSE returns a subquery .",
".. . A typical case for poor IN subquery performance is when the subquery returns a small number of rows but the outer query returns a large number of rows to be compared to the subquery result .",
"If it says DEPENDENT SUBQUERY or UNCACHEABLE SUBQUERY then it will be reevaluated each time it s used .",
"When my 1st subquery returns 2 or more values MySQL returns me Subquery returns more than 1 row .",
"But when i try to use this select statement in order to insert the value of SUBSCRIPTION ID into inside my insert-query then i am getting the error where i have used cast function for the SUBSCRIPTION ID inside my subquery as",
"First you have two FROM s in the query one before the subquery and one after the subquery .",
"So is my query a correlated-subquery or a normal subquery",
".. . The problem is that for a statement that uses an IN subquery the optimizer rewrites it as a correlated-subquery .",
"There is a huge it depends in this answer.. . .. . .. . PostgreSQL can rewrite a subquery to a join or a join to a subquery when it thinks one is faster than the other .",
"SUBQUERY : Runs first executed once returns values to be used by the MAIN Query .",
"Is it possible to bring in more than one column in a subquery",
"Revise the SELECT statement of the subquery to request only one field .",
"Correlated Subquery : - If the outcome of a subquery is depends on the value of a column of its parent query table then the Sub query is called Correlated Subquery .",
"Even when you use a subquery .",
"Is the following piece of SQL Query a normal query or a Correlated Subquery",
"possible duplicate of SQL query based on subquery .",
"That is is there a set of typographic operations that can be applied to a syntactically correct SQL query statement containing a subquery that results in a functionally equivalent statement without a subquery",
"this is the error that the query generate : Subquery returned more than 1 value .",
"Is its possible to select multiple-columns in the subquery rather than just one",
"My question is Why there in correlated-subquery cann t be more than one expressions",
"Pay attention to Subquery returned more than 1 value as this is the error you are returning any number of rows from your subquery : .. . .. . The correct SQL is below :",
"I have tried to write a query statement with a subquery and an IN expression for many times .",
"Your query is not corelated subquery .",
"When you write a subquery in SELECT or WHERE clauses you can access the tables that are in the FROM clause of the main query .",
".. . .. . Update : I updated the above sql to aggregate again by using a subquery so that only unique customerID s come through since we can t aggregate on a correlated-subquery within the query that utilizes the correlated-subquery .",
"CTE is TSQL SQL Server terminology - in Oracle it s called Subquery Factoring .",
"There is no change in query plan when I add OFFSET 0 to the end of the subquery .",
"That is not a correlated-subquery it would involve a subquery referencing an outer query if it were .",
"output : .. . .. . Any help getting that subquery SQL into the case statement would be appreciated",
"plain subquery is not dependent on the outer query",
"For exemple if you have 4 students the query will select ALL 4 students then for each one it will check the subquery user id 4 .",
"When your broken query is used as a subquery it can still refer to the outer query s table columns that s necessary for correlation to work .",
"it s better to do subquery Account.where .. . .select : id .to sql query User.where users.account id IN subquery",
"when it comes to subquery and co-related query both have inner query and outer query the only difference is in subquery the inner query doesn t depend on outer query whereas in co-related inner query depends on outer .",
"This query SUBQUERY : .. . .. . is not using filesort .",
"The EXPLAIN of your query looks much better than the one with the subquery .",
"From the MySql manual : .. . .. . So.. . do this not work when the subquery is in a SELECT section",
".. . .. . An implication is that an IN subquery can be much slower than a query written using an IN value list operator that lists the same values that the subquery would return .",
"The outer query in this case is effectively a SELECT DISTINCT .. . FROM subquery q ORDER BY.. .",
"Ie I don t have an entity for a root subquery",
"The equivalent SQL subquery would be -",
"When looking at the explain plan of query 1 it looked like when the subquery was executed because the condition A2 is something was not applicable to the subquery it was deferred for use as a filter on the main query results .",
"I am looking to do a subquery within an insert statement values clause .",
"I think I have to select from values and join the subquery but as the value should be used in the subquery I m lost on how to accomplish this .",
"EX : .. . .. . A Correlated subquery is a subquery that is evaluated once for each row processed by the outer query or main query .",
"I m trying to write a query that is creating a scalar subquery column that references a sibling column that is a column from a subquery table .",
"Can this Query also be written with a subquery",
"wrong and not working SQL .. . .. . SQL Error - subquery has more than 1 value .. . .. . thanks for help",
"However what if I used @Rank1 and @Rank2 one for each subquery",
"You can use a SELECT subquery .",
"Not sure why you would not just inner or right-join back against the original table from the subquery on the ID to delete rather than us the in subquery .",
"i have a little problem with a subquery in sql .",
"You cannot use Subquery Factoring CTE with anything but the SELECT statement .",
"This happens if the subquery uses session variables or is a correlated-subquery .",
"And when I replace the subquery with : AND s.id IN 14 15 ...it works .",
"Consider : .. . .. . Here the subquery is not correlated to the outer query .",
"of executes are NXM for correlated-subquery and N+M for subquery .",
"Update : It appears that DEPENDENT SUBQUERY is executed once for each row in the outer query .",
"Hi My query is as follows and contains a subquery within it : .. . .. . The error i get is : .. . .. . Only one expression can be specified in the select list when the subquery is not introduced with EXISTS .",
"The results are not strange the subquery CAN referernce the PARENT query .",
"In your example you used the IN operator but usually to OPTIMIZE a query with the IN operation is to replace IN with the EXISTS operator using a Correlated SubQuery .",
"How can I make my query works when the first subquery returns several values",
"If i give two or more answers for One question the i got an error subquery returns more than one row .",
"Subquery also returns a list of id s to its IN statement list of ids will also be feed to the IN statement if used sepearate queries",
"More like a correlated-subquery .. . .. . A LATERAL join Postgres 9.3+ is more like a correlated-subquery https : en.wikipedia.org wiki Correlated subquery not a plain subquery .",
"I m trying to use a subquery in a IN statement in Doctrine2 .",
"Update : As answered below MySQL does not allow the table you re deleting from be used in a subquery for the condition .",
"I am working on a long query that includes a SELECT DISTINCT and subquery .",
"That s a subquery but not a correlated-subquery .",
"Here is the SQL query : .. . .. . I m stuck because of the IN subquery in the above example .",
"But if the query is : .. . .. . here the subquery is correlated - there is no way to compute the subquery unless t1.type is known .",
"When using an IN operator in a SELECT statement what is the proper syntax to use for db column names in a subquery when they contain comma separated lists in either or both columns",
"a subquery will return one value in example when you use a correlated sub query or a filtered sub query that will filter all results except one",
"Currently you cannot update a table and select from the same table in a subquery .",
"For example : .. . .. . NOTE : ename was added just to prevent Oracle to optimize next queries by adding filter null is not null to subquery 1 and 3 .. . .. . In subquery I select all rows with attribute sal and then filtrate it in the main query : .. . .. . This query fall cause optimizer merge subquery with outer query .",
"You can t refer to your c column more than one level of subquery below where it is defined .",
"In that case it may still use the approach used for the uncorrelated subquery if it can guess that the cost of executing the subquery once will be cheaper that doing it for each row .",
"Consider the following statement that uses an uncorrelated subquery : .. . .. . SELECT .. . FROM t1 WHERE t1.a IN SELECT b FROM t2 .. . .. . The optimizer rewrites the statement to a correlated-subquery : .. . .. . SELECT .. . FROM t1 WHERE EXISTS SELECT 1 FROM t2 WHERE t2.b t1.a .. . .. . If the inner and outer queries return M and N rows respectively the execution-time becomes on the order of O M N rather than O M+N as it would be for an uncorrelated subquery .",
"@thekosmix : Because the query SELECT parses every entries and the subquery is executed for every results .",
"I have a query : .. . .. . I m trying to rewrite the query using subquery correlation : .. . .. . I have the following error and I don t understand what I need to fix : .. . .. . Subquery returned more than 1 value .",
"I have the idea that it can be solved with a subquery of nested SELECT statement but have no idea how to formulate the statement .",
"My point is how can I do when I m getting more then one result in the CASE statement : .. . .. . The error is as follows : .. . .. . Subquery returned more than 1 value .",
"The query above is currently the only query that will be run on the table .. . .. . Subquery .. . .. . .. . .. . Based on this post stackoverflow : Cache Re-Use a Subquery in MySQL 1 and the improvement in query time I believe my subquery can be indexed .",
"For example : .. . .. . This outward looking means that the subquery has to be evaluated more than once .",
"There is no correlated-subquery there",
"It is a correlated-subquery .",
"Correlated Subquery is a sub-query that uses values from the outer query ."
]
} | {
"confidence": [
56.592464447021484,
56.229331970214844,
56.0216178894043,
55.888763427734375,
54.88711166381836,
54.6429557800293,
54.0941047668457,
54.04935073852539,
54.04359436035156,
53.87070083618164,
53.86262893676758,
53.52962875366211,
53.37577819824219,
52.8938102722168,
52.58078384399414,
52.09592819213867,
51.94046401977539,
51.923065185546875,
51.82884216308594,
51.525875091552734
],
"content": [
"Question : it s just an example . My point is how can I do when I m getting more then one result in the CASE statement : .. . .. . The error is as follows : .. . .. . Subquery returned more than 1 value . This is not permitted when the subquery follows or when the subquery is used as an expression Comment : There is no subquery in your example Comment : You only have 1 query in your question where what is the subquery . You need to provide more context if you want anyone to try and help you . Comment : If you give an example and or explain words what you want then we might know what you want your query to be . Comment : Please read this https : stackoverflow.com help mcve . .. . Answer : Currently wouldn t work if date was 10 as it would have matched all three of your conditions you need to remove the on your and . Comment : It would work just that it would always evaluate to X for the value 10 See SQLFiddle http : sqlfiddle.com 3 d41d8 42851 . Comment : SQL Server short-circuits case statements so the first matching expression will be selected Comment : That means the query essentially wouldn t work as it wouldn t return the required value for 10 which is Y Comment : this is the error that the query generate : Subquery returned more than 1 value . This is not permitted when the subquery follows or when the subquery is used as an expression . Comment : @BIProgrammer you need to include all of your code in your question",
"Question : i have got the below query which references couple of views goldedRunQueries and currentGoldMarkings . My issue seems to be from the view that is referred in the subquery - currentGoldMarkings . While execution MySQL first materializes this subquery and then implements the where clauses of queryCode and runId which therefore results in execution-time of more than hour as the view refers tables that has got millions of rows of data . My question is how do I enforce those two where conditions on the subquery before it materializes . Here are the two views . Both of these also get used in a standalone mode and so integrating any clauses into them is not possible . Note : The above query reflects only a part of my actual query . There are 3 other left outer joins which are similar in nature to the above subquery which makes the problem far more worse . EDIT : As suggested here is the structure and some sample-data for the tables Comment : If you like consider providing proper CREATE and INSERT statements AND a desired result Comment : @Strawberry I m sorry but I didn t quite understand your comment . CREATE and INSERT statements for which objects Comment : Well the tables that are used to construct goldedRunQueries and currentGoldMarkings seem like the obvious candidates to me - so results gold runs and runQueries .. . Answer : First let s try to improve the performance via indexes : .. . .. . results : INDEX runId queryCode -- in either order gold : INDEX documentId query code isCurrent -- in that order .. . .. . After that update the CREATE TABLEs in the question and add the output of : .. . .. . What version are you running You effectively have FROM SELECT .. . JOIN SELECT .. . . Before 5.6 neither subquery had an index with 5.6 an index is generated on the fly . It is a shame that the query is built that way since you know which one to use : and goldedRunQueries.runid 5000 . Bottom Line : add the indexes upgrade to 5.6 or 5.7 if that is not enough then rethink the use of VIEWs . Comment : well i converted the views into stored-procedures and am now able to pass the conditions using parameters . @RickJames A quick question about the index order that you gave for gold table - why not have isCurrent as the first column since it is being used in where for one of the views Comment : The final subquery does not have iscurrent the first 2 columns are beneficial .",
"Question : I have query like this : .. . .. . Why does the SQL Server throw this error Msg 116 Level 16 State 1 Line 8 .. . Only one expression can be specified in the select list when the subquery is not introduced with EXISTS . I know that this means that I need to remove one of subquery s selected columns . But why when I have single row as subquery result and not several Comment : Just move your inner select into from part and make it cross apply it will do the same thing and you can have more than one column Comment : @JamesZ I already did that . My question is Why there in correlated-subquery cann t be more than one expressions Comment : Your expression is in SELECT area where only scalars have to be . Comment : @DimaSUN I thought column + row of two columns three columns but it seems it isn t : Comment : c my answer down here .. . Answer : The syntax of a select clause https : msdn.microsoft.com en-us library ms176104.aspx in Transact-SQL allows a select-list made up of various entities . A correlated-subquery https : technet.microsoft.com en-us library ms189575 28v sql.105 29.aspx used in a select clause is an expression and supplies the value for a single result column .",
"Question : I get this error : .. . .. . Msg 512 Level 16 State 1 Line 1 Subquery returned more than 1 value . This is not permitted when the subquery follows or when the subquery is used as an expression . BD.ESNs is NVARCHAR 50 and IMEI is NVARCHAR 30 I have duplicate ESNs and I want to delete all ESNs that match the SELECT .. . IMEI Comment : In order to format your code you can highlight the block and use the from the editing toolbar . Comment : See also How Do I Format My Code Blocks http : meta.stackexchange.com questions 22186 how-do-i-format-my-code-blocks .. . Answer : If you read the error .. . .. . Msg 512 Level 16 State 1 Line 1 Subquery returned more than 1 value . This is not permitted when the subquery follows or when the subquery is used as an expression . Pay attention to Subquery returned more than 1 value as this is the error you are returning any number of rows from your subquery : .. . .. . The correct SQL is below :",
"Question : I have tripped up on a curious SQL error . The last query doesn t work . Of course I can just split that DELETE into three queries but I really wonder why MySQL doesn t let me do it this way . A little example : .. . .. . works works too Whereas .. . .. . raises the error .. . .. . 1064 - You have an error in your SQL syntax check the manual that corresponds to your MySQL server version for the right syntax to use near UNION SELECT id FROM lift WHERE building 123 UNION SELECT id FROM qrc at line 3 .. . .. . Anyone a clue .. . Answer : Try this version instead : .. . .. . I think the issue is an arcane issue with the definition of a subquery . A subquery is a select statement whereas a union is a conjunction of select statements . EDIT : .. . .. . Actually if you want efficiency you wouldn t use this approach at all . I was just trying to show how to fix the error . A better solution would be : .. . .. . Indexes are recommended on stairs id building lift id building and qrcodeid id building . Comment : This works once SQL errors are fixed - see my edit . It is not as efficient as rkpasia s solution but it works for cases where parentheses on the union members are required such as-if LIMIT is used on the child queries .",
"Question : This has always bugged me why does this query .. . .. . run orders of magnitude slower than sequentially running both this query .. . .. . and this query : .. . Answer : From the docs : emphasis added by me .. . .. . Subquery optimization for IN is not as effective as for the operator or for the IN value list operator . .. . A typical case for poor IN subquery performance is when the subquery returns a small number of rows but the outer query returns a large number of rows to be compared to the subquery result . .. . The problem is that for a statement that uses an IN subquery the optimizer rewrites it as a correlated-subquery . Consider the following statement that uses an uncorrelated subquery : .. . .. . SELECT .. . FROM t1 WHERE t1.a IN SELECT b FROM t2 .. . .. . The optimizer rewrites the statement to a correlated-subquery : .. . .. . SELECT .. . FROM t1 WHERE EXISTS SELECT 1 FROM t2 WHERE t2.b t1.a .. . .. . If the inner and outer queries return M and N rows respectively the execution-time becomes on the order of O M N rather than O M+N as it would be for an uncorrelated subquery . .. . .. . An implication is that an IN subquery can be much slower than a query written using an IN value list operator that lists the same values that the subquery would return . http : dev.mysql.com doc refman 5.7 en subquery-restrictions.html .. . .. . Hopes this helps anyone else who might have been curious Comment : Is this true of all versions Comment : @Strawberry good question I found that answer while looking for something else on google and the 5.0 doc happened to show up . I have verified that that portion of the article is identical to the 5.7 doc and I have updated the link accordingly Comment : @Strawberry : that s been true for a long time I can t say it s for all versions . Back in MySQL 3.23 we couldn t even use a subquery . This well documented behavior and well tested performance differences is why some of us continually and strongly advocate alternatives to the ubiquitous IN NOT IN subquery form . It s never a problem for small sets where we never notice the performance difference . It s when we scale up to a real volume of data that the performance difference is significant .",
"Question : I don t understand the behaviour in this case . In my understanding a query with an invalid sub-query should result in an error . But in this example it returns some rows . Test-Data : .. . .. . Works as expected : .. . .. . But the following query is also retrieving lines obviously by taking the test id2 -column from the test values -table and not from the test lookup -table as stated in the sub-query and though NOT using aliases for inner and outer parts . Comment : @vmachan the OP posted a complete testcase including create-table and insert statements . I m not sure what extra information you re expecting the OP to add to their question Comment : I asked a similar question here stackoverflow.com questions 34774242 http : stackoverflow.com questions 34774242 force-outer-select-to-fail-if-the-inner-select-contains-an-invalid-identifier . If you are asking how to change this behavior .. . it seems that you can t . Comment : Yep . It this use proper but longer code and everything s fine thing .. . Answer : The reason is because when an unaliased column doesn t exist in the subquery but does exist in the outer query Oracle assumes you are referring to the column from the outer query . With aliases the query you re confused about would look like : .. . .. . Hopefully that makes things clearer The issue you re seeing is a very good example of why you should always label your columns with which table they came from - it makes it much easier to maintain the query for a start Comment : Thank you . Indeed I m still astonished that it works like this . Thinking not of a select but a somehow stored delete statement you might get to inadvertently delete lines from table A by altering the columns of table B and not even touching the statement itself urghs . Ok going to use aliases now whenever using more than one table Comment : @evilive it works like that because of correlated subqueries - e.g . select from table1 t1 where exists select null from table2 t2 where t1.col1 t2.col1 . I.e . the scope of the outer query extends to the top level of any subquery within it . So if the query is explicit about which columns it s using Oracle has to guess which table the column comes from . And props for spotting another case to support the use of aliases Comment : @evilive : this is actually not specific to Oracle . This is how name resolution is defined to work in the SQL standard",
"Question : Using postgres 8.4 My goal is to update existing table : .. . .. . Initially i tested my query using insert statement : .. . .. . being Newbie I m failing converting to update statement ie . updating existing rows with values returned by select statement . Any help is highly appreciated . Comment : do you have any kind of id in address table that can be used to determine that row is existing Comment : yes i do but its sys generated . .. . Answer : Postgres allows : .. . .. . This syntax is not standard SQL but it is much more convenient for this type of query than standard SQL . I believe Oracle at least accepts something similar . Comment : I ll try this Thanks Andrew . Comment : it seems that i m trying for a bit different thing for eg . if there are 3 bool columns c1 c2 c3 all set to false initially . but based on subquery are set to true . update set c1 TRUE where id in subquery1 set c2 TRUE where id in subquery2 set c3 True where id in subquery3 . I was successful when i do split this as 3 updates but i m not sure how to attain the result with a single update . hope this make sense . Comment : Nice solution thank you . Comment : FWIW Oracle does accept that basic construct however the performance of the update tends to degrade severely as the tables get larger . That s o.k . though as Oracle also supports the MERGE statement .",
"Question : i am trying to insert multiple rows using a subquery but it gives and error SubQuery Returns more than 1 rows .. . .. . scenario is that i want to add comment against every test of a subdepartment i am getting all test id s via subquery but i not being able to iterate over id s and insert comment against each test . Here is my SQL Query .. . Answer : Use select insted of values if you want to insert multiple rows.. . .. . .. . Syntax would be like : Comment : returns same error SubQuery Returns more than 1 rows",
"Question : I m trying to write a query that is creating a scalar subquery column that references a sibling column that is a column from a subquery table . I put together a simplified example of what I m attempting though how I m actually using this is a bit more elaborate . which generates SQL that looks like : .. . .. . My question is how can I setup my query so that the res subquery is NOT repeated in the scalar column query so that the query instead looks like : .. . Answer : until 0.8 you have to tell Query explicitly about how you d like it to correlate to SELECT statements outside of it : Comment : thanks for the help...that fixed it . And kudos on the SQLAlchemy talk at PyCon .",
"Question : it s just an example . My point is how can I do when I m getting more then one result in the CASE statement : .. . .. . The error is as follows : .. . .. . Subquery returned more than 1 value . This is not permitted when the subquery follows or when the subquery is used as an expression Comment : There is no subquery in your example Comment : You only have 1 query in your question where what is the subquery . You need to provide more context if you want anyone to try and help you . Comment : If you give an example and or explain words what you want then we might know what you want your query to be . Comment : Please read this https : stackoverflow.com help mcve . .. . Answer : You probably don t want a subselect subquery you proabably just want a case : .. . .. . Your error was because Date SELECT .. . does a query per row of P and must have exactly one column and row returned to be set to Date .",
"Question : I have the following query : .. . .. . This query works well when my first subquery returns only 1 value because that s how works IN looking for 1 unique value in a set of values . When my 1st subquery returns 2 or more values MySQL returns me Subquery returns more than 1 row . How can I make my query works when the first subquery returns several values Something like WHERE any of these values i found in ny of these values .. . Answer : Should work Comment : works like a charm . I prefered this one to the other answer cause I heard every query restriction should be placed in WHERE instead of JOIN . Comment : @user2083586 - Dunno where you heard that nonsense . Please delete it from your mind - it is old school Comment : Then I don t understand why you put LA2.annonce id 25 AND LA2.annonce type 4 in a WHERE statement instead of putting it in the JOIN statement . Could you clarify this choice Comment : @VaN - Because it is a clause that is not linking the two tables together . Just a predicate on one table .",
"Question : Is there a generalized procedure or algorithm for transforming a SQL subquery into a join or vice versa That is is there a set of typographic operations that can be applied to a syntactically correct SQL query statement containing a subquery that results in a functionally equivalent statement without a subquery If so what are they i.e . what s the algorithm and in what cases do they not apply Comment : Can you expand what you mean please Comment : Instead of typographic operations I would say semantically equivalent syntactic rewriting . .. . Answer : Converting a subquery into a JOIN can be pretty straightforward : .. . .. . IN clause .. . .. . ...can be converted to : .. . .. . Your JOIN criteria is where you have direct comparison . EXISTS clause .. . .. . But there are complications when you look at the EXISTS clause . EXISTS are typically correllated where the subquery is filtered by criteria from the table s outside the subquery . But the EXISTS is only for returning a boolean based on the criteria . ...converted : .. . .. . Because of the boolean there s a risk of more rows turning up in the resultset . SELECT s in the SELECT clause .. . .. . These should always be changed with prejudice : .. . .. . You re probably noticing a patter now but I made this a little different for an inline view example : .. . .. . The key is making sure the inline view resultset includes the column s needed to join to along with the columns . LEFT JOIN s .. . .. . You might ve noticed I didn t have any LEFT JOIN examples - this would only be necessary if columns from the subquery use NULL testing COALESCE on almost any db these days Oracle s NVL or NVL2 MySQLs IFNULL SQL Server s ISNULL etc.. . : .. . .. . Converted : .. . .. . Conclusion .. . .. . I m not sure if that will satisfy your typographic needs but hope I ve demonstrated that the key is determining what the JOIN criteria is . Once you know the column s involved you know the table s involved . Comment : One difficulty with your first example the IN clause .. . The version using a subquery might return fewer rows than the join version if there are duplicate values in y.col .. . Using the IN syntax ignores the duplication using the JOIN syntax duplicates the relevant rows . Comment : Can t you just use Distinct to remove dups Comment : @Mike : DISTINCT or GROUP BY - either would work . Comment : I would also add that dependent subqueries that reference fields int eh outer query transform into OUTER CROSS APPLY",
"Question : I have theses three tables I just created in Postgres : .. . .. . And then I have the next query : .. . .. . Show the id s of the clientes who bought the 10 most expensive items using a subquery : .. . .. . But I keep getting the message subquery used as an expression returned more than one register I don t know what am I doing wrong . Comment : The innermost subquery can return up to 10 records limit 10 clause but product is a scalar single value . You can t compare one value with many values using operator you need a scalar subquery here - the scalar subquery can return at most 1 value not more . Use IN operator instead of see this tutorial : w3schools.com sql sql in.asp http : www.w3schools.com sql sql in.asp . Comment : Actually both subqueries could return more than 1 rows . And @kordirko please don t link-to that site of junk . .. . Answer : What @kordirko commented http : stackoverflow.com questions 22896215 subquery-used-as-an-expression-doesnt-work comment34942056 22896215 . Plus JOINs are much faster and better in every respect than nested IN expressions . Aslo typo id cliente - id client .. . More in the manual on SELECT http : www.postgresql.org docs current interactive sql-select.html .",
"Question : it s just an example . My point is how can I do when I m getting more then one result in the CASE statement : .. . .. . The error is as follows : .. . .. . Subquery returned more than 1 value . This is not permitted when the subquery follows or when the subquery is used as an expression Comment : There is no subquery in your example Comment : You only have 1 query in your question where what is the subquery . You need to provide more context if you want anyone to try and help you . Comment : If you give an example and or explain words what you want then we might know what you want your query to be . Comment : Please read this https : stackoverflow.com help mcve . .. . Answer : Your subquery is returning several rows . You need to modity it to returning a single row with a single column either by filtering or by adding a TOP 1 to it . For example : .. . .. . or .. . .. . The case-when is only defining what value to retunr in each row not replacing a number of rows with a single value .",
"Question : Is the following piece of SQL Query a normal query or a Correlated Subquery Also can someone state the difference between the both Comment : This is actually a derived table http : www.4guysfromrolla.com webtech 112098-1.shtml . Btw you failed to copy-paste closing parenthesis and an alias for derived table . .. . Answer : A subquery is a select statement that is embedded in a clause of another select statement . EX : .. . .. . A Correlated subquery is a subquery that is evaluated once for each row processed by the outer query or main query . Execute the Inner query based on the value fetched by the Outer query all the values returned by the main query are matched . The INNER Query is driven by the OUTER Query . Ex : .. . .. . DIFFERENCE .. . .. . The inner query executes first and finds a value the outer query executes once using the value from the inner query subquery .. . .. . Fetch by the outer query execute the inner query using the value of the outer query use the values resulting from the inner query to qualify or disqualify the outer query correlated .. . .. . For more information : http : www.oracleinformation.com 2014 04 difference-between-subquery-and-correlated-subquery.html",
"Question : I really would appreciate your help . Probably it s a quite simple problem to solve - but I m not the one . . - .. . .. . I have two tables in SQL Server : .. . .. . 1 . article .. . 2 . prices .. . .. . Now I want to select a certain set of ids and insert some entries into the prices-table with those ID . e.g . wrong and not working SQL .. . .. . SQL Error - subquery has more than 1 value .. . .. . thanks for help .. . Answer : If you are inserting one record into your table you can do .. . .. . But since you want to insert more than one record you can use a SELECT FROM in your SQL statement . so you will want to do this :",
"Question : Problem .. . .. . I need to better understand the rules about when I can reference an outer table in a subquery and when and why that is an inappropriate request . I ve discovered a duplication in an Oracle SQL query I m trying to refactor but I m running into issues when I try and turn my referenced table into a grouped subQuery . The following statement works appropriately : .. . .. . Unfortunately table2 sometimes has duplicate records so I need to aggregate t2 first before I join it to t1 . However when I try and wrap it in a subquery to accomplish this operation suddenly the SQL engine can t recognize the outer table any longer . I know these are fundamentally different queries I m asking the compiler to put together but I m not seeing why the one would work but not the other . I know I can duplicate the table references in my subquery and effectively detach my subquery from the outer table but that seems like a really ugly way of accomplishing this task what with all the duplication of code and processing . Helpful References .. . .. . I found this fantastic description of the order in which clauses are executed in SQL Server : INNER JOIN ON vs WHERE clause http : stackoverflow.com questions 1018822 inner-join-on-vs-where-clause 1944492 1944492 . I m using Oracle but I would think that this would be standard across the board . There is a clear order to clause evaluation with FROM being first so I would think that any clause occuring further down the list would have access to all information previously processed . I can only assume my 2nd query somehow changes that ordering so that my subquery is being evaluated too early In addition I found a similar question asked Referencing outer query s tables in a subquery http : stackoverflow.com questions 2645485 referencing-outer-querys-tables-in-a-subquery but while the input was good they never really explained why he couldn t do what he is doing and just gave alternative solutions to his problem . I ve tried their alternate solutions but it s causing me other issues . Namely that subquery with the date reference is fundamental to the entire operation so I can t get rid of it . Questions .. . .. . I want to understand what I ve done here.. . Why can my initial subquery see the outer table but not after I wrap the entire statement in a subquery That said if what I m trying to do can t be done what is the best way of refactoring the first query to eliminate the duplication Should I reference table1 twice with all the duplication that requires Or is there probably a better way of tackling this problem Thanks in advance ------EDIT------ .. . .. . As some have surmised these queries above are not the actually query I m refactoring but an example of the problem I m running into . The query I m working with is a lot more complicated so I m hesitant to post it here as I m afraid it will get people off track . ------UPDATE------ .. . .. . So I ran this by a fellow developer and he had one possible explanation for why my subquery is losing access to t1 . Because I m wrapping this subquery in a parenthesis he thinks that this subquery is being evaluated before my table t1 is being evaluated . This would definitely explain the ORA-00904 : t1 . id : invalid identifier error I ve been receiving . It would also suggest that like arithmetic order-of-operations that adding parens to a statement gives it priority within certain clause evaluations . I would still love for an expert to weigh in if they agree disagree that is a logical explanation for what I m seeing here . Comment : A derived table can t be correlated . It must stand alone . Though you can join onto it . you can use APPLY where you need a sort of correlated derived table . Comment : Martin... . sincerely thank you Based on your comment I was able to do a little additional research and found that my query isn t actually pulling data how I originally thought . Also your advice to use Apply seems very applicable though for me syntax is a little different as I m using Oracle . Very much appreciate the advice - in fact if you submit it as an answer I ll mark it as the correct one . .. . Answer : So I figured this out based on the comment that Martin Smith made above THANKS MARTIN and I wanted to make sure I shared my discovery for anyone else who trips across this issue . Technical Considerations .. . .. . Firstly it would certainly help if I used the proper terminology to describe my problem : My first statement above uses a correlated-subquery : .. . .. . http : en.wikipedia.org wiki Correlated subquery .. . http : www.programmerinterview.com index.php database-sql correlated-vs-uncorrelated-subquery .. . .. . This is actually a fairly inefficient way of pulling back data as it reruns the subquery for every line in the outer table . For this reason I m going to look for ways of eliminating these type of subqueries in my code : .. . .. . https : blogs.oracle.com optimizer entry optimizer transformations subquery unesting part 1 .. . .. . My second statement on the other hand was using what is called an inline view in Oracle also known as a derived table in SQL Server : .. . .. . http : docs.oracle.com cd B19306 01 server.102 b14200 queries007.htm .. . http : www.programmerinterview.com index.php database-sql derived-table-vs-subquery .. . .. . An inline view derived table creates a temporary unnamed view at the beginning of your query and then treats it like another table until the operation is complete . Because the compiler needs to create a temporary view when it sees on of these subqueries on the FROM line those subqueries must be entirely self-contained with no references outside the subquery . Why what I was doing was stupid .. . .. . What I was trying to do in that second table was essentially create a view based on an ambiguous reference to another table that was outside the knowledge of my statement . It would be like trying to reference a field in a table that you hadn t explicitly stated in your query . Workaround .. . .. . Lastly it s worth noting that Martin suggested a fairly clever but ultimately inefficient way to accomplish what I was trying to do . The Apply statement is a proprietary SQL Server function but it allows you to talk to objects outside of your derived table : .. . .. . http : technet.microsoft.com en-us library ms175156 v SQL.105 .aspx .. . .. . Likewise this functionality is available in Oracle through different syntax : .. . .. . What is the equivalent of SQL Server APPLY in Oracle http : stackoverflow.com questions 1476191 what-is-the-equivalent-of-sql-server-apply-in-oracle .. . .. . Ultimately I m going to re-evaluate my entire approach to this query which means I ll have to rebuild it from scratch believe it or not I didn t create this monstrocity originally - I swear . A big thanks to everyone who commented - this was definitely stumping me but all of the input helped put me on the right track Comment : +1 Thinking of them as inline views explains the problem well . More recent versions of Oracle do support APPLY though http : technology.amis.nl 2013 06 26 oracle-database-12c-joining-and-outer-joining-with-collections Comment : Thanks for the info.. . I m still using 11G so that functionality is news to me Comment : nice answer but still unable to get the sharp edge between inline view and correlated query when to consider a query as this and when as that Comment : @osamayaccoub I see your confusion now.. . yes my subquery above had been on the JOIN and while that clause is an entity to itself for this case think of it as a subset of the FROM clause . Focus on how the parser will dissect my code and create a plan for execution . Evaluating the FROM and JOIN clauses will be it s very first steps as it will need to know what resources to manage . But as it is trying to pull in it s initial resources and create a temp table view behind the scenes to house my subquery data I am trying to refer to values that it has not yet evaluated . Comment : @osamayaccoub Martin described it best above.. . A derived table can t be correlated . I am trying to have the parser create a temp table for me as part of my FROM JOIN clauses.. . so correlation is not allowable .",
"Question : I was trying to run a query like this on hive version 1.2.1 : .. . .. . DELETE FROM employee as e WHERE e.id e.name IN SELECT emp.id emp.name FROM employee final emp AND e.sno 120 .. . .. . But since hive doesn t support this construct so I tried this : .. . .. . DELETE FROM employee WHERE id IN SELECT emp.id FROM employee final AS emp AND name IN SELECT emp.name FROM employee final AS emp .. . AND e.sno 120 .. . .. . But it seems there is a limitation in hive and it supports just 1 subquery and I am getting an exception like this .. . .. . Error Message : Grammatically incorrect SQL Query : nested exception is org.apache.hive.service.cli.HiveSQLException : Error while compiling statement : FAILED : SemanticException Error 10249 : Line 1 : 185 Unsupported SubQuery Expression name : Only 1 SubQuery expression is supported . .. . .. . What is the most efficient way to handle this problem . .. . Answer : You can try following .. . .. . 1 . through EXISTS I am not sure about this form-for subquery is supported in HIVE . DELETE FROM employee as e WHERE EXISTS SELECT 1 FROM employee final emp where e.id emp.id and e.name emp.name AND e.sno 120 .. . .. . .. . 2 . through CONCAT function .. . .. . DELETE FROM employee as e WHERE concat e.id e.name IN SELECT concat emp.id emp.name FROM employee final emp AND e.sno 120 Comment : CONCAT function is useful only in case-when 1 of the columns is the primary-key of the table . As this will assure uniqueness . Comment : You don t need primary-key for the same",
"Question : I have read the other questions and all of the posted comments answers to questions that are similar to this one . None of them seem to answer this question directly . .. . .. . I am wanting to know if there is a way to either concatenate or place an INSERT DELETE or UPDATE statement into a SELECT statement . If so how Could this be done by using a derived table function or a subSelect statement And example would be : .. . .. . .. . .. . but place this into a SELECT statement .. . .. . Example pseudo code : .. . .. . .. . .. . The big thing here is getting the INSERT statement into the SELECT statement in an unconventional way . Thank you and hopefully this will strike up some good conversation ideas results Reason for wanting to know this : .. . .. . 1 . Our current DBMS Fishbowl does not allow us to use an UPDATE DELETE or INSERT statement with is SQL compiler and we are wanting to mass alter our fields clean up our tables . 2 . To know if it is possible Comment : Do you have a specific problem you re trying to solve or is this an exercise Comment : This syntax is not allowed in any database so I guess the answer is no . Postgres does do something quite similar where DML statements are allowed in CTEs . MySQL does not have any similar capability within a single statement . Comment : are you trying to generate a script maybe something like this select INSERT INTO customer.name VALUES Test Name from customer Comment : I guess his goal is to do an insert into a DB where his user has only SELECT rights Comment : @Ashton If you don t have access to insert or delete then you wouldn t be able to run the script after its generated . You could come up with a proc that would generate and execute the script and hand it off or schedule it via a user that does have the privileges . This has been the approach I ve used in the past when I needed to do mass updates inserts based on data and or criteria from DB tables . .. . Answer : You may have a select within an insert but not the other way around . A select within an insert statement could be used to copy values from a table to another . You are just writing into a table after a read from another .. . .. . But an insert within a select doesn t make sense What are you going to insert when you are running a select from a table or just reading data how is it possible to write when you are only allowed to read .. . .. . Your situation if you don t have access to run an insert then it doesn t matter where you put the statement you just can t because you aren t allowed to .. . .. . But if you are talking about your query-engine database wrapper not allowing a direct insert then its probably because it requires an application program to insert data into to rather than just a query as your engine doesn t already have the capability to perform that operation . Comment : You are right it does not make sense That is why I wanted to entertain the idea to see what else would come out of it . My curerent DBMS does not allow me to use anything but SELECT statements in it s compiler and I wanted a way around this . Thank you for your input answer"
]
} | [] | data-manipulation | UNK_RELATION |
comparisonchain@comparator@102 | comparisonchain -- the guava libraries define a comparisonchain class that can be used when multiple @placeholder objects need to be compared . | {
"confidence": [
52.71860122680664,
51.811065673828125,
51.59682083129883,
48.37704086303711,
42.0405387878418,
40.52520751953125,
39.990081787109375,
39.4514045715332,
37.93324661254883,
36.60335922241211,
27.51871109008789,
27.51871109008789,
24.566572189331055,
23.323780059814453,
22.7972412109375,
22.025821685791016,
20.625205993652344,
17.674198150634766,
17.357227325439453,
17.118255615234375,
16.74329948425293,
16.29611587524414,
16.18471908569336,
16.158292770385742,
15.751867294311523,
15.751867294311523,
15.486953735351562,
15.303196907043457,
13.69503116607666,
13.69503116607666,
13.69503116607666,
13.69503116607666,
13.69503116607666,
13.69503116607666,
13.69503116607666,
13.69503116607666,
13.69503116607666,
13.69503116607666,
13.69503116607666,
13.69503116607666,
13.69503116607666,
13.69503116607666,
13.69503116607666,
13.69503116607666,
13.69503116607666,
13.69503116607666,
13.69503116607666,
13.69503116607666,
13.69503116607666,
13.69503116607666,
13.69503116607666,
13.69503116607666,
13.69503116607666,
13.69503116607666,
13.69503116607666,
13.69503116607666,
13.69503116607666,
13.69503116607666,
13.69503116607666,
13.69503116607666,
13.69503116607666,
13.69503116607666,
12.311463356018066,
12.311463356018066,
12.311463356018066,
12.311463356018066,
12.311463356018066,
12.311463356018066,
12.311463356018066,
12.311463356018066,
12.311463356018066,
12.311463356018066,
12.311463356018066
],
"content": [
"ComparisonChain is meant to be used in helping objects implement the Comparable or Comparator interfaces .",
"During debug in Eclipse I can t see what s inside ComparisonChain object even while being in ComparisonChain class .",
"So basically ComparisonChain can t be used as Immutable .Buider",
"Each compare method of the ComparisonChain returns a ComparisonChain which is not necessarily the chain on which compare is invoked .",
"Is there a way I can use Guava s ComparisonChain or Ordering class to achieve what I want",
"ComparisonChain allow you to check whether an object is less-than or greater-than another object by comparing multiple properties like sorting a grid by multiple-columns .",
"So question is : Can I use ComparisonChain like shown if second case or is this behavior a bug",
"I have just started using google s Guava collection ComparisonChain http : guava-libraries.googlecode.com svn-trunk javadoc com google common collect ComparisonChain.html and Objects http : guava-libraries.googlecode.com svn-trunk javadoc com google common base Objects.html .",
"But if you re trying to implement Comparable or Comparator -- correctly -- that is much easier with ComparisonChain than otherwise .",
"I can use comparisonChain object like above by making variable and adding .compare s in some ifs like with builders can t I",
"Object.equals is handled using Objects.equals in roughly the manner you mentioned .. . Object.hashCode is handled with Objects.hashCode like return Objects.hashCode id name .. . Comparable.compareTo is handled with ComparisonChain as below : .. . .. . public int compareTo Chimpsky chimpsky .. . return ComparisonChain.start .. . .compare this.getId chimpsky.getId .. . .compare this.getName chimpsky.getName .. . .result .. .",
"From the docs http : docs.guava-libraries.googlecode.com git-history release javadoc com google common collect ComparisonChain.html : the ComparisonChain implementation stops calling its inputs compareTo and compare methods as soon as one of them returns a nonzero result .. . .. . note : the above was just an example .",
"Is the comparison chain in guava not supposed to evaluate the compares lazily",
"Well that s how Guava decided to implement the comparison chain .",
"I have class implementing Comparator String which should sort strings in such manner that strings with first word being roman number should be before string that don t begin with roman number and if both strings begin with roman literal there should be two cases : .. . .. . 1 . sort by roman number and then if equal by rest of string .. . 2 . sort by rest of string and if equal than roman number .. . .. . I wanted to use Guava s ComparisonChain http : docs.guava-libraries.googlecode.com git-history v10.0.1 javadoc com google common collect ComparisonChain.html but encountered two problems : .. . .. . 1 .",
"It should be used when implementing Comparable or Comparator .",
"I ll deal with it maybe I ll ask on guava-discuss nonetheless you answered my question comparisionChain comparisionChain.compare .. . .compare .. . did help thanks",
"if one is null and the other is not put nulls last .. . .. . I m not sure how to do this because as far as I can tell .. . .. . will .. . .. . 1 . consider the objects to be equal if they both exist and are equal .. . 2 . consider the objects to be equal if they re both null .",
"In my pojo I am overiding the equals method so I did this first : .. . .. . However I then realized that I could also use this : .. . .. . And I fail to see when comparison chain would be better as you can easily add further conditions like so : .. . .. . The only benefit I can see if you specifically need an int returned .",
"If you re just implementing Object.equals then you re correct Objects.equal is all you need .",
"Objects.equal can only check for equality .",
"Can t edit above comment Why result isn t computed later when comparisonChain.result is invoked",
"I mean the concept I can see the code explaining my mistake :",
"I have a ComplexObject with multiple fields and I want to say this : .. . .. . if field x exists on both move on to the next compare in the comparison chain .",
"I have seen more ways to mess up compareTo than you can imagine .",
"Nothing can stop Java from evaluating the arguments to compare even if the method does nothing .",
"Not really an answer JB is totally right but can I suggest having two separate orderings--a roman one for the words and another one for the tails",
"And given your revised reply if your class has a method .. . .. . then consider making XType implement Comparable XType or providing a Comparator XType .",
"It has two extra method calls start and result and is more complex to a noob .",
"Are there obvious benefits of ComparisonChain I missing",
"Yes I am also overriding hashcode with appropriate Objects.hashcode",
"There is never a reason to write",
"true : false in Java .",
"oh yeah edited",
"Consider : .. . .. . as opposed to implementing compareTo as .. . .. . ...let alone the trickiness of doing that correctly which is higher than you d guess .",
"What if other is null",
"You can t have a Comparable accepting null but if you re using a Comparator then writing it as an Ordering lets you do Ordering.nullsFirst or Ordering.nullsLast to specify how it should order null values .",
"In the context of overriding methods in your POJOs I think of a few of Guava s tools matching with a few standard methods .",
"2 .",
"comparisonChain.result in second example above always returns 0 I can t inspect flow because of problem 1 for values like XI Something III Something etc .",
"conversion to long is OK - I checked values .",
"What is the problem here",
"This code : .. . .. . and this : .. . .. . give different results - first case is OK second always 0 .",
"The first snippet doesn t ignore the result and is thus correct but the second one ignores the result and is thus incorrect .",
"It would be correct if it did : .. . .. . See http : docs.guava-libraries.googlecode.com git-history v10.0.1 javadoc src-html com google common collect ComparisonChain.html line.89 for the source code .",
"I mean final Builder String builder ImmutableSet.builder and then if condition builder.add element",
"Why is that",
"It makes things a bit simpler to just ignore any subsequent compare once a previous one has already found the result .",
"In the below code the NullComparator apache would return a non-zero value should the chain not terminate",
"maybe this would be the better example",
"How do you know it doesn t terminate",
"throws a npe on the second compare",
"x.getBytes will throw an NPE because x is null .",
"Perhaps this would work",
"Keep in mind though that input.getBytes .toString is likely to not make very much sense to sort by it will look like B@35c41b .",
"yes i am using UnsignedBytes.lexicographicalComparator ..this was just a quick example .",
"i will clarify in the question",
"That s because what is lazy is the call to compare not the call to x.getBytes hence the NPE",
"ie : .. . .. . You should try with a Comparator which like this : .. . .. . Or with Java 8 : .. . .. . Note that comparing getBytes .toString in real situations might not be a good idea.. .",
"yes thanks for the note .",
"this was just an example",
"thanks accepted the other answer because the Ordering.on was what I was looking for .",
"if both are null move on to the next compare in the comparison chain .",
"Or is there a better way to think about solving this problem",
"Do you mean that you only care about the null-ness or not of each field",
"@EricJablow yes .",
"But to be more specific I care about that first then I will care about other things .",
"EG : for the next .compare I might compare based off of x s name field .",
"Given your answer to my comment just do a boolean comparison .",
"The simple compare method for booleans is deprecated in favor of more explicitly named methods now because it s ambiguous and could lead to confusion .",
"If you want nulls last as stated in the question you d want to use compareFalseFirst c1.getX null c2.getX null or compareTrueFirst c1.getX null c2.getX null",
"What a beautiful solution",
"Thank you"
]
} | {
"confidence": [
69.19548797607422,
67.40672302246094,
65.04397583007812,
63.446529388427734,
45.707908630371094,
45.29917907714844,
41.013702392578125
],
"content": [
"Question : I have just started using google s Guava collection ComparisonChain http : guava-libraries.googlecode.com svn-trunk javadoc com google common collect ComparisonChain.html and Objects http : guava-libraries.googlecode.com svn-trunk javadoc com google common base Objects.html . In my pojo I am overiding the equals method so I did this first : .. . .. . However I then realized that I could also use this : .. . .. . And I fail to see when comparison chain would be better as you can easily add further conditions like so : .. . .. . The only benefit I can see if you specifically need an int returned . It has two extra method calls start and result and is more complex to a noob . Are there obvious benefits of ComparisonChain I missing Yes I am also overriding hashcode with appropriate Objects.hashcode Comment : There is never a reason to write true : false in Java . Comment : oh yeah edited .. . Answer : ComparisonChain allow you to check whether an object is less-than or greater-than another object by comparing multiple properties like sorting a grid by multiple-columns . It should be used when implementing Comparable or Comparator . Objects.equal can only check for equality .",
"Question : I have class implementing Comparator String which should sort strings in such manner that strings with first word being roman number should be before string that don t begin with roman number and if both strings begin with roman literal there should be two cases : .. . .. . 1 . sort by roman number and then if equal by rest of string .. . 2 . sort by rest of string and if equal than roman number .. . .. . I wanted to use Guava s ComparisonChain http : docs.guava-libraries.googlecode.com git-history v10.0.1 javadoc com google common collect ComparisonChain.html but encountered two problems : .. . .. . 1 . During debug in Eclipse I can t see what s inside ComparisonChain object even while being in ComparisonChain class . 2 . comparisonChain.result in second example above always returns 0 I can t inspect flow because of problem 1 for values like XI Something III Something etc . conversion to long is OK - I checked values . What is the problem here I can use comparisonChain object like above by making variable and adding .compare s in some ifs like with builders can t I This code : .. . .. . and this : .. . .. . give different results - first case is OK second always 0 . So question is : Can I use ComparisonChain like shown if second case or is this behavior a bug Comment : Not really an answer JB is totally right but can I suggest having two separate orderings--a roman one for the words and another one for the tails .. . Answer : Each compare method of the ComparisonChain returns a ComparisonChain which is not necessarily the chain on which compare is invoked . The first snippet doesn t ignore the result and is thus correct but the second one ignores the result and is thus incorrect . It would be correct if it did : .. . .. . See http : docs.guava-libraries.googlecode.com git-history v10.0.1 javadoc src-html com google common collect ComparisonChain.html line.89 for the source code . Comment : So basically ComparisonChain can t be used as Immutable .Buider I mean final Builder String builder ImmutableSet.builder and then if condition builder.add element Why is that Comment : Can t edit above comment Why result isn t computed later when comparisonChain.result is invoked I mean the concept I can see the code explaining my mistake : Comment : Well that s how Guava decided to implement the comparison chain . It makes things a bit simpler to just ignore any subsequent compare once a previous one has already found the result . Comment : I ll deal with it maybe I ll ask on guava-discuss nonetheless you answered my question comparisionChain comparisionChain.compare .. . .compare .. . did help thanks",
"Question : I have just started using google s Guava collection ComparisonChain http : guava-libraries.googlecode.com svn-trunk javadoc com google common collect ComparisonChain.html and Objects http : guava-libraries.googlecode.com svn-trunk javadoc com google common base Objects.html . In my pojo I am overiding the equals method so I did this first : .. . .. . However I then realized that I could also use this : .. . .. . And I fail to see when comparison chain would be better as you can easily add further conditions like so : .. . .. . The only benefit I can see if you specifically need an int returned . It has two extra method calls start and result and is more complex to a noob . Are there obvious benefits of ComparisonChain I missing Yes I am also overriding hashcode with appropriate Objects.hashcode Comment : There is never a reason to write true : false in Java . Comment : oh yeah edited .. . Answer : ComparisonChain is meant to be used in helping objects implement the Comparable or Comparator interfaces . If you re just implementing Object.equals then you re correct Objects.equal is all you need . But if you re trying to implement Comparable or Comparator -- correctly -- that is much easier with ComparisonChain than otherwise . Consider : .. . .. . as opposed to implementing compareTo as .. . .. . ...let alone the trickiness of doing that correctly which is higher than you d guess . I have seen more ways to mess up compareTo than you can imagine . Comment : What if other is null Comment : You can t have a Comparable accepting null but if you re using a Comparator then writing it as an Ordering lets you do Ordering.nullsFirst or Ordering.nullsLast to specify how it should order null values .",
"Question : I have just started using google s Guava collection ComparisonChain http : guava-libraries.googlecode.com svn-trunk javadoc com google common collect ComparisonChain.html and Objects http : guava-libraries.googlecode.com svn-trunk javadoc com google common base Objects.html . In my pojo I am overiding the equals method so I did this first : .. . .. . However I then realized that I could also use this : .. . .. . And I fail to see when comparison chain would be better as you can easily add further conditions like so : .. . .. . The only benefit I can see if you specifically need an int returned . It has two extra method calls start and result and is more complex to a noob . Are there obvious benefits of ComparisonChain I missing Yes I am also overriding hashcode with appropriate Objects.hashcode Comment : There is never a reason to write true : false in Java . Comment : oh yeah edited .. . Answer : In the context of overriding methods in your POJOs I think of a few of Guava s tools matching with a few standard methods . Object.equals is handled using Objects.equals in roughly the manner you mentioned .. . Object.hashCode is handled with Objects.hashCode like return Objects.hashCode id name .. . Comparable.compareTo is handled with ComparisonChain as below : .. . .. . public int compareTo Chimpsky chimpsky .. . return ComparisonChain.start .. . .compare this.getId chimpsky.getId .. . .compare this.getName chimpsky.getName .. . .result .. .",
"Question : Is the comparison chain in guava not supposed to evaluate the compares lazily In the below code the NullComparator apache would return a non-zero value should the chain not terminate From the docs http : docs.guava-libraries.googlecode.com git-history release javadoc com google common collect ComparisonChain.html : the ComparisonChain implementation stops calling its inputs compareTo and compare methods as soon as one of them returns a nonzero result .. . .. . note : the above was just an example . maybe this would be the better example Comment : How do you know it doesn t terminate Comment : throws a npe on the second compare .. . Answer : Nothing can stop Java from evaluating the arguments to compare even if the method does nothing . x.getBytes will throw an NPE because x is null . Perhaps this would work Keep in mind though that input.getBytes .toString is likely to not make very much sense to sort by it will look like B@35c41b . Comment : yes i am using UnsignedBytes.lexicographicalComparator ..this was just a quick example . i will clarify in the question",
"Question : Is the comparison chain in guava not supposed to evaluate the compares lazily In the below code the NullComparator apache would return a non-zero value should the chain not terminate From the docs http : docs.guava-libraries.googlecode.com git-history release javadoc com google common collect ComparisonChain.html : the ComparisonChain implementation stops calling its inputs compareTo and compare methods as soon as one of them returns a nonzero result .. . .. . note : the above was just an example . maybe this would be the better example Comment : How do you know it doesn t terminate Comment : throws a npe on the second compare .. . Answer : That s because what is lazy is the call to compare not the call to x.getBytes hence the NPE ie : .. . .. . You should try with a Comparator which like this : .. . .. . Or with Java 8 : .. . .. . Note that comparing getBytes .toString in real situations might not be a good idea.. . Comment : yes thanks for the note . this was just an example Comment : thanks accepted the other answer because the Ordering.on was what I was looking for .",
"Question : I have a ComplexObject with multiple fields and I want to say this : .. . .. . if field x exists on both move on to the next compare in the comparison chain . if both are null move on to the next compare in the comparison chain . if one is null and the other is not put nulls last .. . .. . I m not sure how to do this because as far as I can tell .. . .. . will .. . .. . 1 . consider the objects to be equal if they both exist and are equal .. . 2 . consider the objects to be equal if they re both null . Is there a way I can use Guava s ComparisonChain or Ordering class to achieve what I want Or is there a better way to think about solving this problem Comment : Do you mean that you only care about the null-ness or not of each field Comment : @EricJablow yes . But to be more specific I care about that first then I will care about other things . EG : for the next .compare I might compare based off of x s name field . .. . Answer : Given your answer to my comment just do a boolean comparison . And given your revised reply if your class has a method .. . .. . then consider making XType implement Comparable XType or providing a Comparator XType . Comment : The simple compare method for booleans is deprecated in favor of more explicitly named methods now because it s ambiguous and could lead to confusion . If you want nulls last as stated in the question you d want to use compareFalseFirst c1.getX null c2.getX null or compareTrueFirst c1.getX null c2.getX null Comment : What a beautiful solution Thank you"
]
} | [
"yes-answer-long",
"yes-answer-short"
] | comparator | UNK_RELATION |
korundum@api@67 | korundum -- korundum are a ruby complete bindings to both the kde @placeholder and the qt apis . | {
"confidence": [
52.84309005737305,
51.77688980102539,
48.593936920166016,
33.83644104003906,
29.116622924804688,
23.967681884765625,
21.273147583007812,
20.12044906616211,
19.28499984741211,
18.45897102355957,
15.309566497802734,
15.309566497802734,
15.309566497802734,
13.762887001037598,
13.762887001037598,
13.762887001037598
],
"content": [
"I have installed korundum ruby-1.8 through the repositories .",
"The korundum package https : launchpad.net ubuntu +source korundum of which I know nothing appears to depend on 1.8 .",
"I am trying to install korundum on fedora 17 .",
"That gets rid of the error but then it seg faults : .. . .. . I wanted to tag this with korundum but the tag does not exist and I may not create it since I am not high level enough .",
"Ruby 1.9 and Ruby 1.8.7 both appear in your messages .",
"There seems to be a problem with Ruby versioning .",
"I can t get it to run a basic app made using Qt Designer and rbuic4 .",
"Whenever I run the program I get this darned error : .. . .. . I tried creating a symbolic link-to usr lib ruby-1.9.1.so.1.9.1 .",
"The error message suggests that you need the ruby dev files installed but do not have them .",
"I know Javascript fairly well and I know that QML is the preferred dev tool but I like Ruby so much because of it s well developed eco system particularly for TDD If it s not worth testing then it s not worth writing .",
"Long time Ubuntu Lubuntu Bodhi Xubuntu Kubuntu user here trying my hand at a manga reader for plasma active .",
"Running Kubuntu Precise .",
"added tag for you .",
"And during the make phase I got the following error : .. . .. . How can solve this problem",
"I m loosing my mind .",
"why not installing with yum"
]
} | {
"confidence": [
73.4044418334961,
56.32351303100586
],
"content": [
"Question : null .. . Answer : Long time Ubuntu Lubuntu Bodhi Xubuntu Kubuntu user here trying my hand at a manga reader for plasma active . I know Javascript fairly well and I know that QML is the preferred dev tool but I like Ruby so much because of it s well developed eco system particularly for TDD If it s not worth testing then it s not worth writing . Running Kubuntu Precise . I have installed korundum ruby-1.8 through the repositories . I can t get it to run a basic app made using Qt Designer and rbuic4 . Whenever I run the program I get this darned error : .. . .. . I tried creating a symbolic link-to usr lib ruby-1.9.1.so.1.9.1 . That gets rid of the error but then it seg faults : .. . .. . I wanted to tag this with korundum but the tag does not exist and I may not create it since I am not high level enough . Comment : added tag for you . Comment : There seems to be a problem with Ruby versioning . Ruby 1.9 and Ruby 1.8.7 both appear in your messages . The korundum package https : launchpad.net ubuntu +source korundum of which I know nothing appears to depend on 1.8 .",
"Question : I am trying to install korundum on fedora 17 . And during the make phase I got the following error : .. . .. . How can solve this problem I m loosing my mind . Comment : why not installing with yum .. . Answer : The error message suggests that you need the ruby dev files installed but do not have them ."
]
} | [
"yes-answer-long",
"yes-answer-short"
] | api | UNK_RELATION |
sageframe@content-management-system@38 | sageframe -- sageframe is a powerful @placeholder cms built on top of asp.net . | {
"confidence": [
54.189781188964844,
37.98496627807617,
21.425121307373047,
20.365121841430664,
20.365121841430664,
18.544279098510742,
18.391958236694336,
13.769440650939941,
13.769440650939941,
13.769440650939941,
13.769440650939941,
13.769440650939941,
13.769440650939941,
13.769440650939941,
13.769440650939941,
12.378355026245117,
12.378355026245117,
12.378355026245117,
12.378355026245117,
12.378355026245117,
12.378355026245117,
12.378355026245117,
12.378355026245117,
12.378355026245117,
12.378355026245117,
12.378355026245117,
12.378355026245117,
12.378355026245117,
12.378355026245117,
12.378355026245117,
12.378355026245117,
12.378355026245117,
12.378355026245117,
12.378355026245117,
12.378355026245117,
12.378355026245117,
12.378355026245117,
12.378355026245117,
12.378355026245117,
12.378355026245117,
12.378355026245117,
12.378355026245117,
12.378355026245117,
12.378355026245117,
12.378355026245117,
12.378355026245117,
12.378355026245117,
12.378355026245117,
10.711102485656738,
10.711102485656738,
10.711102485656738,
10.711102485656738,
10.711102485656738,
10.711102485656738,
10.711102485656738,
10.711102485656738,
10.711102485656738,
10.711102485656738,
10.711102485656738,
10.711102485656738,
10.711102485656738,
10.711102485656738,
10.711102485656738,
10.711102485656738,
10.711102485656738
],
"content": [
"EDITED : the split function is from SageFrame",
"you need to build SageFrame in .net-4.0 With the help of VisualStudio 10 or higher verson .",
"SageFrameV2.1 in Codeplex is built on asp.net framework 3.5 so you can use pool 2.0 to get rid of that error .",
"Then you built it and get that error .",
"Because SageFrame.Common is built-in 4.5.1 .",
"Is SageFrame.Common.dll the output of a project in your solution or is it a pre-built dll that you re referencing",
"Is there any way to host it in AppPool ASP.NET v4.0 .",
"The above procedure is returning three rows with the middle being null .. . .. . And .. . .. . The above code is returning two rows exactly what I wanted .",
"I d like to know why the split function affects my result .",
"I have concatenated string with first then split the result is different from the string concatenated with .",
"What does split look like",
"Why in one and in the other",
"Ignoring the which I assume should be .. .",
"I guess we don t know what the split function looks like that the delimiter parameter is char 1 or varchar 1 .",
"This means that is truncated to so you get 3 rows .",
"I have been up all night trying to figure it out and when I try and install AspxCommerce onto my GoDaddy server .",
"I have ran across multiple issues when trying to install this all of the answers have been found after long research although for This last issue I am getting Configuration Error saying that I do not have any connection to SageFrameConnectionString .",
"Does anybody have any thoughts on how I should go about doing this including the necessary steps to get there",
"PS : Everything works great when installed locally. .",
"enter image description here http : i.stack.imgur.com EIAdW.png .. . .. . web.config : .. . .. . connectionstring.config :",
"Post the exact error show the related code and configuration .",
"Also we don t need to know the history of your app or how long you ve worked on it .",
"Keep your question concise but still communicate the things we need to know .",
"This is the only error I usually work with could you please elaborate more on which error-log you may be talking about please .",
"I have uploaded the web.config file .",
"You missed the concise part if my last comment .",
"We dont need the whole configuration file just the bits related to the connection-string .",
"Okay well is there anything you have in mind to fix this",
"You need to post the contents of connectionstring.config .",
"Remove any passwords .",
"Also remove all the extraneous information from the web.config you posted we only need to see the stuff related to connection strings .",
"Actually it is not a AspxCommerce problem .",
"It s a GoDaddy server problem .",
"GoDaddy doesnt allow roles unless you use LocalSqlServer as your membership provider connection string.For GoDaddy you have couple of change in AspxCommerce .",
"In connectionstring.config file : .. . .. . And In library go to SageFrame.Common Setting SystemSetting.cs on Declaration section : .. . .. . replace .. . .. . with .. . .. . Note : Don t forget to rebuild library .",
"I have windows-8.1 with Visual Studio 2013 .",
"While I build projects it generates error indicating .. . .. . This is a higher version than the currently targeted framework .NETFramework Version v4.5 .",
"It seems that you have added a project library and then in that library you have taken the refrence of SageFrame.common in Viusual studio 2013 .",
"If this is the condition then please be sure that the project library you have added has the application target framework 4.5.1 not 4.5 .",
"In your condition to change the target framework : .. . .. . Right click on your project library .",
"Select properties a form will open .",
"Select the application tab .",
"Select the target framework to 4.5.1 .",
"it worked",
"thanks",
"I assume that the version is specified in your web.config like : .. . .. . The other place where it can go wrong is IIS Application Pool for example if your default Application Pool runs on 4.0 or earlier .",
"So what you have to do is run Internet Information Services Manager create an Application Pool with 4.5 and then set this application-pool to the site you re working on .",
"i am using it directly through the visual-studio not the IIS",
"I have downloaded SageFrameV2.1 http : sageframe.codeplex.com and try to host the site in my local IIS Server .",
"Soon I came up with a problem while browsing the site .",
"enter image description here http : i.stack.imgur.com FqRcN.png .. . .. . And also suggests : .. . .. . But Initially at the installation period I commented all the code starting and ending with sectionGroup and finally installed .",
"But now while I am using the framework for extra development I have uncommented previously commented portions of code .",
"But still my browser is suggesting the same problem .",
"I have seen thoroughly but cannot find the duplicate as suggested by browser .",
"Please help me to get rid of it .",
"I need it for the development task .",
"Thankful to your response .",
"I think your default pool in IIS is v4.0 .",
"you need to change your pool from .net-4.0 to .net-2.0 .",
"In my scenario I was implementing the sage framework 3.6 and I am trying to add a new web service .asmx in modules folder but when I am trying to add a new web service .asmx is not available in visual-studio-2013 .",
"How to fix this issue",
"Thanks in advance .",
"I fixed this issue .",
"The main problem is if you use sage framework 3.6 it is by default takes framework 4.5.1 which means if you trying to add .asmx file in modules folder then this .asmx web service option is not available.If we want to add new webservice .asmx in modules folder then we must change the framework 4.5.1 to 4.5 please follow the steps to solve such kind of issue .",
"select to the webpage design library and right-click - Go to the property pages-- Select the Build tab-- Change into the Framework 4.5 then you will able to add a new web service .asmx file in your customize module folder ."
]
} | {
"confidence": [
47.9198112487793,
47.444419860839844,
17.631757736206055,
15.907310485839844,
12.049238204956055,
10.403093338012695,
10.403093338012695
],
"content": [
"Question : The above procedure is returning three rows with the middle being null .. . .. . And .. . .. . The above code is returning two rows exactly what I wanted . I d like to know why the split function affects my result . I have concatenated string with first then split the result is different from the string concatenated with . EDITED : the split function is from SageFrame Comment : What does split look like Why in one and in the other .. . Answer : Ignoring the which I assume should be .. . I guess we don t know what the split function looks like that the delimiter parameter is char 1 or varchar 1 . This means that is truncated to so you get 3 rows .",
"Question : I have downloaded SageFrameV2.1 http : sageframe.codeplex.com and try to host the site in my local IIS Server . Soon I came up with a problem while browsing the site . enter image description here http : i.stack.imgur.com FqRcN.png .. . .. . And also suggests : .. . .. . But Initially at the installation period I commented all the code starting and ending with sectionGroup and finally installed . But now while I am using the framework for extra development I have uncommented previously commented portions of code . But still my browser is suggesting the same problem . I have seen thoroughly but cannot find the duplicate as suggested by browser . Please help me to get rid of it . I need it for the development task . Thankful to your response . .. . Answer : I think your default pool in IIS is v4.0 . SageFrameV2.1 in Codeplex is built on asp.net framework 3.5 so you can use pool 2.0 to get rid of that error . Comment : Is there any way to host it in AppPool ASP.NET v4.0 . Comment : you need to build SageFrame in .net-4.0 With the help of VisualStudio 10 or higher verson .",
"Question : I have windows-8.1 with Visual Studio 2013 . While I build projects it generates error indicating .. . .. . This is a higher version than the currently targeted framework .NETFramework Version v4.5 . Comment : Is SageFrame.Common.dll the output of a project in your solution or is it a pre-built dll that you re referencing .. . Answer : It seems that you have added a project library and then in that library you have taken the refrence of SageFrame.common in Viusual studio 2013 . Then you built it and get that error . If this is the condition then please be sure that the project library you have added has the application target framework 4.5.1 not 4.5 . Because SageFrame.Common is built-in 4.5.1 . In your condition to change the target framework : .. . .. . Right click on your project library . Select properties a form will open . Select the application tab . Select the target framework to 4.5.1 . Comment : it worked thanks",
"Question : I have windows-8.1 with Visual Studio 2013 . While I build projects it generates error indicating .. . .. . This is a higher version than the currently targeted framework .NETFramework Version v4.5 . Comment : Is SageFrame.Common.dll the output of a project in your solution or is it a pre-built dll that you re referencing .. . Answer : I assume that the version is specified in your web.config like : .. . .. . The other place where it can go wrong is IIS Application Pool for example if your default Application Pool runs on 4.0 or earlier . So what you have to do is run Internet Information Services Manager create an Application Pool with 4.5 and then set this application-pool to the site you re working on . Comment : i am using it directly through the visual-studio not the IIS",
"Question : I have been up all night trying to figure it out and when I try and install AspxCommerce onto my GoDaddy server . I have ran across multiple issues when trying to install this all of the answers have been found after long research although for This last issue I am getting Configuration Error saying that I do not have any connection to SageFrameConnectionString . Does anybody have any thoughts on how I should go about doing this including the necessary steps to get there PS : Everything works great when installed locally. . enter image description here http : i.stack.imgur.com EIAdW.png .. . .. . web.config : .. . .. . connectionstring.config : Comment : Post the exact error show the related code and configuration . Also we don t need to know the history of your app or how long you ve worked on it . Keep your question concise but still communicate the things we need to know . Comment : This is the only error I usually work with could you please elaborate more on which error-log you may be talking about please . I have uploaded the web.config file . Comment : You missed the concise part if my last comment . We dont need the whole configuration file just the bits related to the connection-string . Comment : Okay well is there anything you have in mind to fix this Comment : You need to post the contents of connectionstring.config . Remove any passwords . Also remove all the extraneous information from the web.config you posted we only need to see the stuff related to connection strings . .. . Answer : Actually it is not a AspxCommerce problem . It s a GoDaddy server problem . GoDaddy doesnt allow roles unless you use LocalSqlServer as your membership provider connection string.For GoDaddy you have couple of change in AspxCommerce . In connectionstring.config file : .. . .. . And In library go to SageFrame.Common Setting SystemSetting.cs on Declaration section : .. . .. . replace .. . .. . with .. . .. . Note : Don t forget to rebuild library .",
"Question : I have downloaded SageFrameV2.1 http : sageframe.codeplex.com and try to host the site in my local IIS Server . Soon I came up with a problem while browsing the site . enter image description here http : i.stack.imgur.com FqRcN.png .. . .. . And also suggests : .. . .. . But Initially at the installation period I commented all the code starting and ending with sectionGroup and finally installed . But now while I am using the framework for extra development I have uncommented previously commented portions of code . But still my browser is suggesting the same problem . I have seen thoroughly but cannot find the duplicate as suggested by browser . Please help me to get rid of it . I need it for the development task . Thankful to your response . .. . Answer : you need to change your pool from .net-4.0 to .net-2.0 .",
"Question : In my scenario I was implementing the sage framework 3.6 and I am trying to add a new web service .asmx in modules folder but when I am trying to add a new web service .asmx is not available in visual-studio-2013 . How to fix this issue Thanks in advance . .. . Answer : I fixed this issue . The main problem is if you use sage framework 3.6 it is by default takes framework 4.5.1 which means if you trying to add .asmx file in modules folder then this .asmx web service option is not available.If we want to add new webservice .asmx in modules folder then we must change the framework 4.5.1 to 4.5 please follow the steps to solve such kind of issue . select to the webpage design library and right-click - Go to the property pages-- Select the Build tab-- Change into the Framework 4.5 then you will able to add a new web service .asmx file in your customize module folder ."
]
} | [
"yes-answer-long",
"yes-answer-short"
] | content-management-system | UNK_RELATION |
js2-mode@emacs@49 | js2-mode -- an improved javascript mode for gnu @placeholder that emulates many desirable features of ides . | {
"confidence": [
55.55256652832031,
55.39894104003906,
51.34373474121094,
51.34373474121094,
50.58852767944336,
49.64551544189453,
49.579505920410156,
49.458370208740234,
48.52903747558594,
48.454505920410156,
48.17450714111328,
47.52521896362305,
47.21014404296875,
47.21014404296875,
45.717430114746094,
44.230716705322266,
44.18641662597656,
44.000701904296875,
44.000701904296875,
44.000701904296875,
43.91689682006836,
43.64753341674805,
43.05139923095703,
42.960060119628906,
42.857666015625,
42.356597900390625,
42.29756546020508,
42.06755065917969,
42.06755065917969,
42.06755065917969,
41.98374557495117,
40.703758239746094,
40.55181884765625,
40.242191314697266,
39.75061798095703,
39.67760467529297,
39.67760467529297,
39.67760467529297,
39.67760467529297,
39.666812896728516,
38.94780731201172,
37.814979553222656,
37.74445343017578,
37.74445343017578,
37.74445343017578,
37.031776428222656,
37.031776428222656,
35.52727508544922,
35.427520751953125,
35.427520751953125,
35.427520751953125,
35.427520751953125,
35.21276092529297,
34.998451232910156,
34.06835174560547,
34.06835174560547,
34.06835174560547,
34.06835174560547,
33.76387023925781,
32.9860725402832,
32.78169250488281,
31.206958770751953,
31.04413414001465,
30.158401489257812,
29.838953018188477,
29.838953018188477,
29.838953018188477,
29.61980438232422,
28.973636627197266,
28.973636627197266,
28.973636627197266,
27.90580177307129,
27.90580177307129,
27.483142852783203,
27.10040283203125,
27.040485382080078,
27.040485382080078,
27.040485382080078,
27.040485382080078,
26.529861450195312,
26.287151336669922,
26.204341888427734,
25.588871002197266,
25.588871002197266,
25.588871002197266,
25.123600006103516,
24.58948516845703,
23.88597869873047,
23.643795013427734,
23.363927841186523,
23.063074111938477,
22.871002197265625,
22.659502029418945,
21.710643768310547,
19.134984970092773,
19.134984970092773,
19.134984970092773,
19.134984970092773,
19.134984970092773,
19.134984970092773
],
"content": [
"Not a direct answer to your question but here is a fork https : github.com mooz js2-mode of js2-mode that has improved indenting .",
"You must be using the js2-mode http : code.google.com p js2-mode Javascript mode for your Emacs editor .",
"Version of js2-mode",
"But in js2-mode it adds 4 .",
"I don t think it s worth throwing away all the nice features of js2-mode when you can use the link @AntonJ provided mihai.bazon.net projects editing-javascript-with-emacs-js2-mode http : mihai.bazon.net projects editing-javascript-with-emacs-js2-mode to get the best of both worlds .",
"I m using this superb js2-mode fork https : github.com mooz js2-mode along with autopairs to make Javascript editing awesome in Emacs .",
"That used to be a problem for old js2-mode .",
"I am using emacs js2-mode for coding javaScript .",
"Are you using code.google.com p js2-mode http : code.google.com p js2-mode",
"github.com emacsmirror js2-mode https : github.com emacsmirror js2-mode",
"So you can add it to your js2-mode-hook as in : add-hook js2-mode-hook lambda electric-indent-local-mode -1",
"I m trying out js2-mode which is a kind of javascript IDE in emacs .",
"Have you tried new versions of js2-mode",
"Has anyone worked with js2-mode so far",
"I already installed ac-js2-mode but when I work in js2-mode I don t see any completion at all .",
"I can t replicate the issue on Emacs 24.3 using the latest js2-mode from elpa.gnu.org packages js2-mode.html http : elpa.gnu.org packages js2-mode.html",
"I m using js2-mode for working with javascript in emacs and for the most part it s very useful .",
"I configured eslint not to check for semicolons but js2-mode still checks it .",
"i think im more focused on js2-mode than flycheck",
"I upgraaded to Emacs 24.2 and the latest js2-mode still happening .",
"In that case it s probably electric-indent-mode not js2-mode that is automatically indenting on newline .",
"I am using js2-mode http : code.google.com p js2-mode to edit Javascript in Emacs but I can t seem to get it to stop using tabs instead of spaces for indentation .",
"Check out this solution maps indentation function in js2-mode to partially use indentation from esresso-mode now known as js-mode included in emacs 23.2 and newer : .. . .. . http : mihai.bazon.net projects editing-javascript-with-emacs-js2-mode .. . .. . Works exactly as I expect indentation in emacs to work and you still get the parsing awesomeness from js2-mode .",
"Why don t you want to use js2-mode",
"The problem is now gone with the latest GNU ELPA version of js2-mode which can be installed from M-x list-packages .",
"Have a look at this file https : code.google.com p js2-mode source browse trunk js2-externs.el r 57",
"I just started to use js2-mode in Emacs and I found some variables like js2-global-externs and js2-additional-externs .",
"Add this to your .emacs file somewhere after you load js2-mode :",
"It s some configuration on which js2-mode relies on to define the language .",
"Am I doing it wrong or is js2-mode too uptight",
"js2-mode uses the standard emacs function indent-to which respects indent-tabs-mode to do its indenting .",
"Now many improvements of the fork have been imported back to the original js2-mode and the ELPA version also has all those improvements .",
"Of course I know that swank-js depends on js2-mode Can I just require js2-mode means not as major mode and add some extra settings to enable swank-js",
"I have js2-mode version 20090727.. .",
"Sometimes paredit-kill not work very well in js2 but in js-mode .",
"if js2-mode syntax checking cant be disabled globally is there a way to only turn off semicolon check",
"It looks like there s a fix out : http : code.google.com p js2-mode issues detail id 94",
"I m not sure how to investigate how js2-mode is intercepting preventing the before-save-hooks from being triggered .",
"I installed js2-mode on emacs and works like a charm but now I would like to have autocompletion when working in there .",
"I don t want to use js2-mode as major mode when editing js files .",
"My setup : I followed the instructions on emacswiki http : www.emacswiki.org emacs FlymakeJavaScript toc3 to set up Flymake to work with the most recent js2-mode http : code.google.com p js2-mode downloads detail name js2-20090723b.el can 2 q with a little modification : .. . .. . instead of",
"I guess I will make this a full answer instead of a comment espresso-mode is included with Emacs and is designed to be a Javascript mode for Emacs instead of a Javascript mode that happens to run inside of Emacs .",
"When opening .js files js2-mode and subsequently flymake-js is automatically loaded .",
"Is that better written as .. . .. . The latter style is the only way to get js2-mode to leave me alone .",
"The consensus at work and following from jfriend00 is that it should be written like this : .. . .. . js2-mode was right .",
"However it occurs to me that since js2-mode is a full parser it should be possible to automatically insert semi-colons whenever I m in a function calling context .",
"Here is my code that solves this : .. . .. . le-js2-mode-setup-partial.el .. . .. . You can also get this code from this GitHub Gist https : gist.github.com 908bc9cb7677d5936936 .",
"On my copy of GNU Emacs 24.2.1 setting : .. . .. . in .emacs is not sufficient for javascript mode presumably because the setting is somehow being over-ridden in a per-buffer context .",
"@Magnar After setq js2-mode-show-parse-errors nil it seems nothing change .",
"You can of course without the feature that requires js2-mode like smart evaluation of statement and function definition .",
"This has been a common problem with byte-compile-file and some older versions of js2-mode .",
"See if you have an older version of js2-mode installed somewhere and if it might be loaded during byte compilation .",
"One other alternative is js3-mode https : github.com thomblake js3-mode .",
"Enter js2-basic-offset .. . 3 .",
"js2-mode supports bounce indenting you can press tab multiple times to choose different likely indenting levels so you might be able to get the effect you want that way :",
"A lot of JS code I work with contains files that are defined with the following indentation : .. . .. . Is there a way to force Emacs js2-mode to ignore the outer function for the purposes of indentation such that it indents the same as-if it was not wrapped in a giant function",
"I ve got these lines in my .emacs : .. . .. . I ve also used M-x customize-group enter js2-mode to set : .. . .. . But it still doesn t trim whitespace on saves",
"Edit : I installed and enabled auto-complete-mode but when I m typing a variable it says in the minibuffer the following error : .. . .. . auto-complete error : void variable ac-source-js2",
"You can set js2-basic-offset to 2 .",
"I opened an issue here : github.com ScottyB ac-js2 issues 21 https : github.com ScottyB ac-js2 issues 21",
"You can turn it off with setq js2-mode-show-parse-errors nil - I don t know a fix for paredit-kill tho .",
"by following the issue link above I found the solution that worked for me as well : just replace line 285 ac-js2.el with this eval ac-define-source js2",
"Try turning that off with M-x or electric-indent-mode -1 .",
"My other modes work fine just having issues w js2 .",
"putting setq js2-strict-missing-semi-warning nil in .spacemacs solves my issue .",
"I think you d better add a complete guide as setq js2-strict-missing-semi-warning nil",
"Is there a way to automatically set this for all js2 buffers but leave all other buffers alone",
"from GNU ELPA",
"Since im using eslint syntax checking from js-mode is redundant to me .",
"I m using emacs 22 but recently added espresso-mode and have found it much better than the default .",
"M-x electric-indent-local-mode should do it if you re using Emacs-24.4 .",
"For instance I believe that you could add your own global-variables js2-global-externs so that they get recognized .",
"Or maybe it should be written as .. . .. . That also gives me a js2 pass but I have always found the former style to read better .",
"As I can see from js2 source code there is js2-next-error function that should move to next error .",
"js2-mode for emacs is supposed to highlight possible syntax errors but it would still be incredibly time-consuming to look through all 10 000 lines and try to find the one little bracket that is highlighted .",
"But flymake unloads right ahead with the message .. . .. . Toggling flymake-mode off better pass an explicit argument .",
"However when enabling it manually using M-x flymake-mode it keeps activated .",
"Probably somewhere in your hook there is a statement like : .. . .. . you need to change it to : .. . .. . .. . .. . I read the documentation on flymake-mode .",
"But the page on http : www.emacswiki.org emacs FlymakeJavaScript which suggests a definition for flymake-js-load shows flymake-mode t .",
"@Magnar It seems that I just don t use many of its features .",
"You can simply bind TAB to insert itself : .. . .. . But the better solution would of course be to find out why the mode thinks it needs so much indentation for anonymous functions and fix it .",
"This is not a standard javascript error .",
"Syntax check is good but I just feel that js2-mode s syntax check is a bit .. .",
"I just feel uncomfortable when I am typing in js2 with its syntax check .",
"I am getting an error when I compile js2-mode.el using byte-compile-file command in emacs .",
"will it work if you ll run M-x js2-next-error",
"One of the features is syntax-error highlighting and style warnings .",
"I ve installed js-comint and js-mode from MELPA http : melpa.milkbox.net executed run-js and now in REPL instead of sign i have this gibberish : .. . .. . The REPL itself in Inferior Javascript mode works just fine just the sign is changed .",
"I am getting a javascript error .. . .. . missing in destructuring declaration .. . .. . What could be the problem",
"The extern keyword has nothing to do with JavaScript .",
"I think the problem arises from the script tags you have in the code as there shouldn t be any HTML in a JavaScript file hence the syntax errors .",
"And if all else fails there s M-x js2-next-error and ability to rebind the key .",
"Does global-variables mean JavaScript variables or Emacs Lisp variables",
"I searched JavaScript extern Ecma-262 extern web browser extern but didn t get anything that looked promising .",
"so how to turn it off globally instead of toggling on and off",
"thanks .",
"edited .",
"I found a way to toggle manually SPC t s .",
"There s documentation https : github.com syl20bnr spacemacs tree master layers syntax-checking disabling-by-default as to how to disable it in your .spacemacs file but I haven t been able to get it to work .",
"where do you put the setting in your .spacemacs"
]
} | {
"confidence": [
62.285118103027344,
62.241607666015625,
60.669090270996094,
60.14904022216797,
58.108116149902344,
56.76316833496094,
56.27192687988281,
56.10357666015625,
55.56481170654297,
53.425437927246094,
53.23326873779297,
52.86598205566406,
52.40760803222656,
52.28151321411133,
51.9854736328125,
51.253814697265625,
50.778419494628906,
50.549705505371094,
50.40766906738281,
50.12110900878906
],
"content": [
"Question : I m using js2-mode for working with javascript in emacs and for the most part it s very useful . However the indenting methods are terribly frustrating when working with jQuery closures and JSON.. . for instance code that I wish to be indented like this : .. . .. . Turns out as : .. . .. . Is there a way I can just switch off all the indenting helpers and just have emacs insert N spaces when I hit the tab key I know manual-indentation is a step backwards but having readable code is IMHO more useful than a tool that doesn t work as expected . Comment : That used to be a problem for old js2-mode . The problem is now gone with the latest GNU ELPA version of js2-mode which can be installed from M-x list-packages . With that version C-M- or TAB on a region should indent the lines in a conventional way you expect and not in the Lisp-like way . .. . Answer : I guess I will make this a full answer instead of a comment espresso-mode is included with Emacs and is designed to be a Javascript mode for Emacs instead of a Javascript mode that happens to run inside of Emacs . It works like regular programming modes and also happens to indent things the way you like . Comment : I m using emacs 22 but recently added espresso-mode and have found it much better than the default . Thanks Comment : I don t think it s worth throwing away all the nice features of js2-mode when you can use the link @AntonJ provided mihai.bazon.net projects editing-javascript-with-emacs-js2-mode http : mihai.bazon.net projects editing-javascript-with-emacs-js2-mode to get the best of both worlds . I ve been using that and have no regrets whatsoever .",
"Question : I m using js2-mode for working with javascript in emacs and for the most part it s very useful . However the indenting methods are terribly frustrating when working with jQuery closures and JSON.. . for instance code that I wish to be indented like this : .. . .. . Turns out as : .. . .. . Is there a way I can just switch off all the indenting helpers and just have emacs insert N spaces when I hit the tab key I know manual-indentation is a step backwards but having readable code is IMHO more useful than a tool that doesn t work as expected . Comment : That used to be a problem for old js2-mode . The problem is now gone with the latest GNU ELPA version of js2-mode which can be installed from M-x list-packages . With that version C-M- or TAB on a region should indent the lines in a conventional way you expect and not in the Lisp-like way . .. . Answer : Not a direct answer to your question but here is a fork https : github.com mooz js2-mode of js2-mode that has improved indenting . One of the improvements is that your example code is indented the way you ask here . Comment : Now many improvements of the fork have been imported back to the original js2-mode and the ELPA version also has all those improvements . Comment : To be more accurate the fork and ELPA have the same version and the official page is lagging behind .",
"Question : I m using js2-mode for working with javascript in emacs and for the most part it s very useful . However the indenting methods are terribly frustrating when working with jQuery closures and JSON.. . for instance code that I wish to be indented like this : .. . .. . Turns out as : .. . .. . Is there a way I can just switch off all the indenting helpers and just have emacs insert N spaces when I hit the tab key I know manual-indentation is a step backwards but having readable code is IMHO more useful than a tool that doesn t work as expected . Comment : That used to be a problem for old js2-mode . The problem is now gone with the latest GNU ELPA version of js2-mode which can be installed from M-x list-packages . With that version C-M- or TAB on a region should indent the lines in a conventional way you expect and not in the Lisp-like way . .. . Answer : Check out this solution maps indentation function in js2-mode to partially use indentation from esresso-mode now known as js-mode included in emacs 23.2 and newer : .. . .. . http : mihai.bazon.net projects editing-javascript-with-emacs-js2-mode .. . .. . Works exactly as I expect indentation in emacs to work and you still get the parsing awesomeness from js2-mode .",
"Question : I am using js2-mode http : code.google.com p js2-mode to edit Javascript in Emacs but I can t seem to get it to stop using tabs instead of spaces for indentation . My other modes work fine just having issues w js2 . .. . Answer : On my copy of GNU Emacs 24.2.1 setting : .. . .. . in .emacs is not sufficient for javascript mode presumably because the setting is somehow being over-ridden in a per-buffer context . The following change is sufficient :",
"Question : I m using js2-mode for working with javascript in emacs and for the most part it s very useful . However the indenting methods are terribly frustrating when working with jQuery closures and JSON.. . for instance code that I wish to be indented like this : .. . .. . Turns out as : .. . .. . Is there a way I can just switch off all the indenting helpers and just have emacs insert N spaces when I hit the tab key I know manual-indentation is a step backwards but having readable code is IMHO more useful than a tool that doesn t work as expected . Comment : That used to be a problem for old js2-mode . The problem is now gone with the latest GNU ELPA version of js2-mode which can be installed from M-x list-packages . With that version C-M- or TAB on a region should indent the lines in a conventional way you expect and not in the Lisp-like way . .. . Answer : Have you tried new versions of js2-mode It looks like there s a fix out : http : code.google.com p js2-mode issues detail id 94",
"Question : I m using js2-mode for working with javascript in emacs and for the most part it s very useful . However the indenting methods are terribly frustrating when working with jQuery closures and JSON.. . for instance code that I wish to be indented like this : .. . .. . Turns out as : .. . .. . Is there a way I can just switch off all the indenting helpers and just have emacs insert N spaces when I hit the tab key I know manual-indentation is a step backwards but having readable code is IMHO more useful than a tool that doesn t work as expected . Comment : That used to be a problem for old js2-mode . The problem is now gone with the latest GNU ELPA version of js2-mode which can be installed from M-x list-packages . With that version C-M- or TAB on a region should indent the lines in a conventional way you expect and not in the Lisp-like way . .. . Answer : js2-mode supports bounce indenting you can press tab multiple times to choose different likely indenting levels so you might be able to get the effect you want that way : Comment : Already tried this but the algorithm it uses never gets the indent right . Thanks though",
"Question : I am getting a javascript error .. . .. . missing in destructuring declaration .. . .. . What could be the problem Comment : Cosmic rays . Definitely . Comment : Can you post code at all Do you have a line number and a snippet you could show us Comment : Are you using code.google.com p js2-mode http : code.google.com p js2-mode .. . Answer : This is not a standard javascript error . It s coming from your editor . You must be using the js2-mode http : code.google.com p js2-mode Javascript mode for your Emacs editor . This could be a missing equals in for-loop . Example : .. . .. . However without looking at your code we can only guess .",
"Question : I m using js2-mode for working with javascript in emacs and for the most part it s very useful . However the indenting methods are terribly frustrating when working with jQuery closures and JSON.. . for instance code that I wish to be indented like this : .. . .. . Turns out as : .. . .. . Is there a way I can just switch off all the indenting helpers and just have emacs insert N spaces when I hit the tab key I know manual-indentation is a step backwards but having readable code is IMHO more useful than a tool that doesn t work as expected . Comment : That used to be a problem for old js2-mode . The problem is now gone with the latest GNU ELPA version of js2-mode which can be installed from M-x list-packages . With that version C-M- or TAB on a region should indent the lines in a conventional way you expect and not in the Lisp-like way . .. . Answer : One other alternative is js3-mode https : github.com thomblake js3-mode . It indents like this by default but there seems to be some options that might enable you to tweak it for your liking .",
"Question : I m using js2-mode for working with javascript in emacs and for the most part it s very useful . However the indenting methods are terribly frustrating when working with jQuery closures and JSON.. . for instance code that I wish to be indented like this : .. . .. . Turns out as : .. . .. . Is there a way I can just switch off all the indenting helpers and just have emacs insert N spaces when I hit the tab key I know manual-indentation is a step backwards but having readable code is IMHO more useful than a tool that doesn t work as expected . Comment : That used to be a problem for old js2-mode . The problem is now gone with the latest GNU ELPA version of js2-mode which can be installed from M-x list-packages . With that version C-M- or TAB on a region should indent the lines in a conventional way you expect and not in the Lisp-like way . .. . Answer : You can simply bind TAB to insert itself : .. . .. . But the better solution would of course be to find out why the mode thinks it needs so much indentation for anonymous functions and fix it .",
"Question : I am using js2-mode http : code.google.com p js2-mode to edit Javascript in Emacs but I can t seem to get it to stop using tabs instead of spaces for indentation . My other modes work fine just having issues w js2 . .. . Answer : Do you have .. . .. . in your .emacs It works fine for me in emacs 23.0.60.1 when I do that . js2-mode uses the standard emacs function indent-to which respects indent-tabs-mode to do its indenting .",
"Question : Trimming trailing whitespace works fine on all non-JS files . I ve got these lines in my .emacs : .. . .. . I ve also used M-x customize-group enter js2-mode to set : .. . .. . But it still doesn t trim whitespace on saves What am I missing Edited to add : in response to Drew s suggestions .. . .. . 1 . Running delete-trailing whitespace manually on the file does work . 2 . Still doesn t work without whitespace cleanup which isn t surprising because.. . .. . 3 . delete-trailing-whitespace doesn t seem to be called on saves . 4 . Neither does basic-save-buffer . I m not sure how to investigate how js2-mode is intercepting preventing the before-save-hooks from being triggered . Comment : Not a direct answer but you might like to try using either ws-trim ftp : ftp.lysator.liu.se pub emacs ws-trim.el or ws-butler https : github.com lewang ws-butler instead . These libraries can smartly tidy up only the lines you actually edit which prevents you from making unnecessary changes to other parts of the file . If you use version-control I would consider this mandatory to avoid committing irrelevant changes . Comment : Version of Emacs Version of js2-mode from GNU ELPA you haven t specified . I can t replicate the issue on Emacs 24.3 using the latest js2-mode from elpa.gnu.org packages js2-mode.html http : elpa.gnu.org packages js2-mode.html Comment : I upgraaded to Emacs 24.2 and the latest js2-mode still happening . I think this isn t a suitable StackOverflow question because of the back-and-forth needed so I ll take it to a mailing list . .. . Answer : I got it to work by wrapping delete-trailing-whitespace in a lambda instead of quote .",
"Question : I am using js2-mode http : code.google.com p js2-mode to edit Javascript in Emacs but I can t seem to get it to stop using tabs instead of spaces for indentation . My other modes work fine just having issues w js2 . .. . Answer : Add this to your .emacs file somewhere after you load js2-mode :",
"Question : I am using emacs js2-mode for coding javaScript . Here is a simple code snippet where emacs always shows me a syntax-error : .. . .. . The and return a are always colored in red can somebody tell me why Has anyone worked with js2-mode so far .. . Answer : I think the problem arises from the script tags you have in the code as there shouldn t be any HTML in a JavaScript file hence the syntax errors .",
"Question : I don t want to use js2-mode as major mode when editing js files . But I find I use swank-js very often with magnar s slime-js setting https : github.com magnars .emacs.d blob master setup-slime-js.el . Of course I know that swank-js depends on js2-mode Can I just require js2-mode means not as major mode and add some extra settings to enable swank-js Any help is appreciated . Comment : Why don t you want to use js2-mode Maybe the problem is more easily fixed in that end . Comment : @Magnar It seems that I just don t use many of its features . Sometimes paredit-kill not work very well in js2 but in js-mode . And can I stop its syntax check Syntax check is good but I just feel that js2-mode s syntax check is a bit .. . I m sorry for my broken English I don t know how to describe it . I just feel uncomfortable when I am typing in js2 with its syntax check . Comment : Yes I know exactly how you feel . It is constantly telling me I have errors when I m just not done typing yet . You can turn it off with setq js2-mode-show-parse-errors nil - I don t know a fix for paredit-kill tho . Comment : @Magnar Thanks for your comment I ll try it soon later . Comment : @Magnar After setq js2-mode-show-parse-errors nil it seems nothing change . The minibuffer keep displaying error messages when typing . .. . Answer : You can of course without the feature that requires js2-mode like smart evaluation of statement and function definition . I have to write a functions to have evaluation of line and region . Comment : Thanks for you answer :",
"Question : I just started to use js2-mode in Emacs and I found some variables like js2-global-externs and js2-additional-externs . The doc string says it is A list of any extern names you d like to consider always declared . I don t understand what extern means here . I only knew the extern keyword in C so I started to discover what extern means . I searched JavaScript extern Ecma-262 extern web browser extern but didn t get anything that looked promising . Can anyone point me in the right direction .. . Answer : The extern keyword has nothing to do with JavaScript . It s some configuration on which js2-mode relies on to define the language . For instance I believe that you could add your own global-variables js2-global-externs so that they get recognized . Have a look at this file https : code.google.com p js2-mode source browse trunk js2-externs.el r 57 Comment : Thanks . Does global-variables mean JavaScript variables or Emacs Lisp variables Comment : @xfq The former . Comment : Ah I see thank you .",
"Question : I m using this superb js2-mode fork https : github.com mooz js2-mode along with autopairs to make Javascript editing awesome in Emacs . However it occurs to me that since js2-mode is a full parser it should be possible to automatically insert semi-colons whenever I m in a function calling context . I thought I d ask if anyone s looked into this before I dig too much deeper . Comment : What do you mean by function calling context Inside of functions How would the mechanism for example know whether you want a semicolon after the return in return n .. . Comment : Covering all corner cases isn t necessary here . Just when I call fooFunc is automatically inserted but when I declare function only is inserted . Comment : I have solved this and will post as a github project when I get some time . It works well corner cases not withstanding . .. . Answer : Here is my code that solves this : .. . .. . le-js2-mode-setup-partial.el .. . .. . You can also get this code from this GitHub Gist https : gist.github.com 908bc9cb7677d5936936 . Comment : It seems not work.js2-NAME is void .",
"Question : I m editing React .jsx files and I don t want to indent on newline how to disable it Comment : Which version of Emacs are you using Comment : @Chris emacs 24.4.1 Comment : In that case it s probably electric-indent-mode not js2-mode that is automatically indenting on newline . Try turning that off with M-x or electric-indent-mode -1 . .. . Answer : M-x electric-indent-local-mode should do it if you re using Emacs-24.4 . Comment : Is there a way to automatically set this for all js2 buffers but leave all other buffers alone Comment : The answer I gave only works on the current buffer . So you can add it to your js2-mode-hook as in : add-hook js2-mode-hook lambda electric-indent-local-mode -1",
"Question : I m trying out js2-mode which is a kind of javascript IDE in emacs . One of the features is syntax-error highlighting and style warnings . Since turning it on I ve noticed that I m getting this one warning all over my code : .. . .. . When I write a function whose responsibility is to call a callback I often do not explicitly add a return-value . Is that bad style For example : .. . .. . where the return only serves to ensure the rest of the function doesn t get executed . Is that better written as .. . .. . The latter style is the only way to get js2-mode to leave me alone . Or maybe it should be written as .. . .. . That also gives me a js2 pass but I have always found the former style to read better . Am I doing it wrong or is js2-mode too uptight Comment : Not returning a value from a callback is ONLY bad style if the caller of the callback is expecting a return-value from it . If no return-value is expected by the caller then it is pointless to return something in the callback . In your code you really ought to only use return statements when you re actually purposefully returning a value that will be used - otherwise it is very confusing to people reading your code what should be put in that return-value . Comment : How about using return to stop the execution a function to save on curly-braces and an indentation level Comment : A plain return statement by itself is fine . But return callback or return someAsyncMethod .. . makes it look like you are purposely returning a value which I would not recommend if there is no return-value from the function . In my opinion code clarity of intent is more important than saving a line or two of bracing . .. . Answer : The consensus at work and following from jfriend00 is that it should be written like this : .. . .. . js2-mode was right . My desire to write one-liners was making my code less clear .",
"Question : null .. . Answer : I started using Emacs a couple weeks ago . I installed js2-mode on emacs and works like a charm but now I would like to have autocompletion when working in there . I already installed ac-js2-mode but when I work in js2-mode I don t see any completion at all . Any ideas Edit : I installed and enabled auto-complete-mode but when I m typing a variable it says in the minibuffer the following error : .. . .. . auto-complete error : void variable ac-source-js2 Comment : Yes : read-the-docs make sure you ve followed them and if it still doesn t work file an issue . Comment : did you ever get an answer I opened an issue here : github.com ScottyB ac-js2 issues 21 https : github.com ScottyB ac-js2 issues 21 Comment : by following the issue link above I found the solution that worked for me as well : just replace line 285 ac-js2.el with this eval ac-define-source js2",
"Question : Since im using eslint syntax checking from js-mode is redundant to me . so how to turn it off globally instead of toggling on and off I configured eslint not to check for semicolons but js2-mode still checks it . if js2-mode syntax checking cant be disabled globally is there a way to only turn off semicolon check .. . Answer : putting setq js2-strict-missing-semi-warning nil in .spacemacs solves my issue . Comment : I think you d better add a complete guide as setq js2-strict-missing-semi-warning nil Comment : thanks . edited ."
]
} | [
"yes-answer-long",
"yes-answer-short"
] | emacs | UNK_RELATION |
yii2@yii@43 | yii2 -- yii2 is the latest version of the @placeholder php framework yii is a high-performance component-based php framework version 2.0.8 was released on april 28 2016 . | {
"confidence": [
60.64235305786133,
58.28368377685547,
57.43984603881836,
50.488075256347656,
49.342254638671875,
48.758644104003906,
47.108638763427734,
46.140899658203125,
45.938148498535156,
45.90034103393555,
45.854774475097656,
45.83666229248047,
45.83666229248047,
45.73185729980469,
45.14549255371094,
44.992820739746094,
44.75040817260742,
44.30165481567383,
44.12140655517578,
43.84368896484375,
43.17884826660156,
42.822792053222656,
42.7723274230957,
42.64349365234375,
41.97895050048828,
41.84564971923828,
41.55162811279297,
41.55162811279297,
41.55162811279297,
41.55162811279297,
41.197357177734375,
41.17717742919922,
40.952247619628906,
40.791175842285156,
40.70779037475586,
40.70779037475586,
40.31341552734375,
40.212677001953125,
39.72730255126953,
39.68027114868164,
39.483734130859375,
39.356109619140625,
39.19218444824219,
38.88346481323242,
38.882293701171875,
38.639896392822266,
38.639896392822266,
38.562103271484375,
38.553932189941406,
38.51005554199219,
38.44116973876953,
38.24378967285156,
38.11943054199219,
38.038455963134766,
37.9029426574707,
37.838226318359375,
37.808433532714844,
37.79839324951172,
37.790950775146484,
37.664466857910156,
37.57888412475586,
37.568904876708984,
37.2763557434082,
37.267723083496094,
37.26286315917969,
37.26286315917969,
37.26286315917969,
37.26286315917969,
37.16363525390625,
37.06862258911133,
37.02143096923828,
36.890968322753906,
36.66477584838867,
36.66477584838867,
36.1976318359375,
36.16459274291992,
36.16459274291992,
36.120948791503906,
36.12034606933594,
36.105804443359375,
36.09088134765625,
36.09088134765625,
36.09088134765625,
36.09088134765625,
36.09088134765625,
36.09088134765625,
36.09088134765625,
36.09088134765625,
36.09088134765625,
36.09088134765625,
36.09088134765625,
36.09088134765625,
36.09088134765625,
35.843505859375,
35.843505859375,
35.77972412109375,
35.77972412109375,
35.77972412109375,
35.760108947753906,
35.66368865966797
],
"content": [
"I m using Yii2 framework of PHP .",
"I m working on a project using Yii2 PHP framework .",
"I am new to the PHP Yii2 framework .",
"I am new in yii2 framework .",
": .. . .. . Read more about how php view files are rendered https : github.com yiisoft yii2 blob 2.0.8 framework base View.php L320 .",
"How this can be done with Yii2 framework .",
"I am using AdminLTE 2.0in yii2 framework .",
".. . .. . I am running Yii 2.0.8 on php 7.0.6 .",
"in console you can create migrationController.php that extends the the Yii2 one instead of calling php yii migrate up you will call php yii migration up .",
": .. . .. . You can see this Yii2 framework doc for ref http : www.yiiframework.com doc-2.0 yii-data-activedataprovider.html",
"Yii2 requires PHP 5.4 minimum so if your IDE supports PHP 5.4 or later then it will show standards for Yii2 too .",
"I was trying to get started with Yii2 framework .",
"I have a little problem in yii2 framework .",
"What version of Yii2 you are using",
"The latest basic version that composer downloads for me not yii2-advanced .",
"I m building a REST-full API in Yii2 framework .",
"May be in yii2-jui InputWidget.php .. . .. . resolveNameID in Yii : .. . .. . I want to convert above method into Yii2 or any alternate method for resolveNameID in Yii2 .",
"I ve installed the latest version of yii2 using the advanced template .",
"By the way yii2 has own password hashing based on php .",
"You seriously need this guide : codefc.com generate-yii2-framework-multi-language http : www.codefc.com generate-yii2-framework-multi-language",
"I am trying to learn Yii 2 from a book Web application development with Yii2 and PHP .",
"Then We can use RBAC in yii2-basic version .",
"I m using Yii2 and the https : github.com boundstate yii2-mailgun component .",
"Yii Booster was meant to work with Yii 1.x not Yii2 .",
"There are many changes in Yii2 compare to first version .",
"I am currently using Yii2 PHP framework and Kartik FileInput widget in my system .",
"In the yii2 framework there are many .gitignore files and i understand the use of these files .",
"Hi Dency G B I am new to yii2 and framework .",
"Link https : github.com yiisoft yii2 blob master framework widgets BaseListView.php",
"I am using elasticsearch on the yii2 framework using the elasticsearch extension .",
"Because while reading yii2-rbac tutorial i found that RBAC is for yii2-advanced version .",
"more about Yii2 Component Wiki http : www.yiiframework.com wiki 747 write-use-a-custom-component-in-yii2-0",
"I m using Yii2 and kartik s yii2-gridview extension .",
"How to restrict it to select with case sensitivity in PHP Yii2 Framworok",
"i use below code for url manager in Yii2 Framework : .. . .. . but .",
"Id is assigned by you while UniqueId is generated by Yii2 framework .",
"I m just beginning developing with the Yii 2 Framework and installed the officially advanced app https : github.com yiisoft yii2-app-advanced .",
"It will Support yii2",
"Maybe the solution gets a general Yii2 framework issue later since vServer with inode limits are a common production environment for Yii2 applications .",
"I have downloaded Yii2 and Yii2 Advanced Application .",
"I have installed in Yii 1.1 .. . .. . But how to do it in Yii2",
"But this method not found in yii2-jui InputWidget https : github.com yiisoft yii2-jui .",
"is it yii1 or yii2",
"I want to install Select 2 extension https : github.com kartik-v yii2-widget-select2 widget manually with Yii2 Framework without using composer .",
"I am creating a site in Yii2 and using basic version .",
"I have worked in Yii 1 and now trying to use Yii2 .",
"That s why Yii Yii2 advises you to use models .",
".. . .. . .. . .. . Not necessarily relevant but for completness I use Yii2 PHP framework - no extension just the quick start php code from mailgun .. . .. . The emails get sent and it tracks the open event .",
"I have an Yii application and now I need to revamp this Yii application to Yii 2 and I need to migrate the user table from Yii to Yii2 .",
"I was using ActiveRecord models by defining relationships between them in Yii2 framework .",
"Please refer to the updated rbac tables at github.com yiisoft yii2 blob master framework rbac migrations https : github.com yiisoft yii2 blob master framework rbac migrations",
"What I did until now : Mobile : 1 - User open the mobile-application 2 - Log in using Facebook account .. . .. . Yii2 Framework : 1 - Create a yii2 rest api based on : http : budiirawan.com setup-restful-api-yii2 return countries .. . .. . But whats next",
"Is it possible in Yii2",
"this was the reason why I turned back to dev version of yii2 .",
"Well you should learn php before using a php framework",
"You can also check this yii pligin for netbeans http : plugins.netbeans.org plugin 47246 php-yii-framework-netbeans-phpcc",
"I installed Yii2-Imageine for resizing images for wherever I need in my website using php composer.phar require --prefer-dist yiisoft yii2-imagine command .",
"Yii2 if I remember right works based upon a probability of deleting like PHP sessions do as such the excess space you might be seeing is in fact Yii2 not having the probability to delete it .",
"I m working with Yii2 Framework and already configured i18n component using this guide : http : thecodeninja.net 2014 12 i18n-with-yii-2-advanced-template .. . .. . So I can now translate strings within my php files using Yii : : t function .",
"I ve just installed vova07 yii2-imperavi-widget through php composer.phar require --prefer-dist vova07 yii2-imperavi-widget . And it s working fine for inserting any content to database-table .",
"I am new in YII2 .",
"My fixture : .. . .. . To load fixture I use this command from @app tests : yii fixture load IdentityDocument .. . .. . As a result I get this error message : .. . .. . Exception yii base InvalidParamException with message Table not found : in C : php-projects ais vendor yiisoft yii2 db mssql QueryBuilder.php : 180 .. . .. . Stack trace : .. . .. . 0 C : php-projects ais vendor yiisoft yii2 db Command.php 753 : yii db mssql QueryBuilder- checkIntegrity false 1 C : php-projects ais vendor yiisoft yii2 test InitDbFixture.php 94 : yii db Command- checkIntegrity false 2 C : php-projects ais vendor yiisoft yii2 test InitDbFixture.php 76 : yii test InitDbFixture- checkIntegrity false 3 C : php-projects ais vendor yiisoft yii2 test FixtureTrait.php 114 : yii test InitDbFixture- beforeUnload 4 C : php-projects ais vendor yiisoft yii2 console controllers FixtureController.php 147 : yii console controllers FixtureController- unloadFixtures Array 5 internal function : yii console controllers FixtureController- actionLoad IdentityDocumen.. . 6 C : php-projects ais vendor yiisoft yii2 base InlineAction.php 55 : call user func array Array Array 7 C : php-projects ais vendor yiisoft yii2 base Controller.php 154 : yii base InlineAction- runWithParams Array 8 C : php-projects ais vendor yiisoft yii2 console Controller.php 91 : yii base Controller- runAction load Array 9 C : php-projects ais vendor yiisoft yii2 base Module.php 454 : yii console Controller- runAction load Array 10 C : php-projects ais vendor yiisoft yii2 console Application.php 167 : yii base Module- runAction fixture load Array 11 C : php-projects ais vendor yiisoft yii2 console Application.php 143 : yii console Application- runAction fixture load Array 12 C : php-projects ais vendor yiisoft yii2 base Application.php 375 : yii console Application- handleRequest Object yii console Request 13 C : php-projects ais tests codeception bin yii 22 : yii base Application- run 14 main .. . .. . How to load fixture",
"How to upgrade Yii 1.x version to Yii 2.0 latest release version",
"Like i want to create function with name dt .. . .. . and want to access it like this : - .. . .. . Which is better place in Yii2 framework to do that",
"I using https : github.com creocoder yii2-nested-sets extension for Yii2",
"I am using yii2-user and yii2-rbac extension by dektrium .",
"Hence I am using dektrium for yii2-user and yii2-rbac .",
"Try using the yii2-solr https : github.com Sammaye yii2-solr package .",
"Im using Yii2.There will not be actionError",
"Only batchInsert is available in yii2 bacthUpdate is not available in yii2 how can we do this in yii2 like Codeigniter batchUpdate",
"I am using Yii2 GoogleOAuth and yii2-user extension .",
"I am using Yii framework and want to upgrade to version 2.0.7 which requires ICU version 49 or higher .",
"yii2-solr depends on the Solarium library .",
"It s a typical Yii2 module setup .",
"When I try to install it by php composer.phar require edvlerblog yii2-adldap-module v1.0.0 I am getting the following error .. . .. . How can Install adldap for yii2",
"I am Trying to Convert Yii Jui timepicker extension http : www.yiiframework.com extension jtimepicker into Yii2 .",
"But i am stacked at one method which is available in Yii but not in Yii2 called resolveNameID .",
"The Yii2 guide http : www.yiiframework.com doc-2.0 guide-intro-upgrade-from-v1.html indicates that Yii 2.0 breaks the CComponent class in 1.1 into two classes : yii base Object and yii base Component .",
"Or is there are somewhere exists module or component for Yii2 just like for this situation like mine",
"You should upgrade to the latest version of the widget which at the time of writing is 1.2.10 https : github.com vova07 yii2-imperavi-widget releases .",
"How can this be done in yii2",
"I have a Yii2 ActiveFrom .",
"Is there any preinstall message in yii2",
"Am fairly new to yii2 .",
"how to define a scenario in Yii2",
"Is that the same approach still with yii2",
"Unexpected behavior for Yii2-beginner",
"I use Yii2 .",
"I use yii2 framwork .",
"I have a yii2 project .",
"I m a newbie in Yii2 .",
"there is an extension for dynamic-forms in yii2",
"There are no classes with C prefix in Yii2 .",
"Create a multiple field form in YII2 .",
"The Yii2 documentation is not very clear to me .",
"see comment at https : github.com yiisoft yii2 blob master framework assets yii.activeForm.js",
"I m new to the Yii2 framework and I m now trying to acces data in Listview using relations .",
"I get this error Maximum execution-time of 120 seconds exceeded .. . .. . How i can modify this period in yii2 framework",
"I want to use yii2-solr http : www.yiiframework.com extension yii2-solr add-comment extension in one of my projects .",
"so help to write insert Query for this scenario in Yii2 .. . .. . This is the insert-query given in yii2 docs .. . .. . But i need this Query to be convert according Yii2 Query"
]
} | {
"confidence": [
69.11467742919922,
64.74752807617188,
64.53175354003906,
63.995941162109375,
62.77111053466797,
62.10304260253906,
61.81489944458008,
61.40510940551758,
61.02884292602539,
59.868934631347656,
59.85874938964844,
59.4387092590332,
59.042476654052734,
59.00519561767578,
58.82286071777344,
58.543357849121094,
58.0908317565918,
57.93678665161133,
57.48710632324219,
57.25496292114258
],
"content": [
"Question : I read this https : github.com yiisoft yii2-coding-standards and this https : github.com yiisoft yii2 blob master docs internals core-code-style.md . But how to setup this in NetBeans IDE in Windows machine .. . Answer : Yii2 requires PHP 5.4 minimum so if your IDE supports PHP 5.4 or later then it will show standards for Yii2 too . You can also check this yii pligin for netbeans http : plugins.netbeans.org plugin 47246 php-yii-framework-netbeans-phpcc Comment : i mean how to add yii2 coding standards in the form of codesniffer to NetBeans",
"Question : null .. . Answer : I am new to the PHP Yii2 framework . I just started a project . I used postgresql for database and EnterpriseDB for apache and php . error was given below : .. . .. . exception yii base InvalidRouteException with message Unable to resolve the request site error . in D : apache www foldername vendor yiisoft yii2 base Module.php : 461 Stack trace : .. . .. . 0 D : apache www foldername vendor yiisoft yii2 web ErrorHandler.php 80 : yii base Module- runAction site error .. . .. . 1 D : apache www foldername vendor yiisoft yii2 base ErrorHandler.php 95 : yii web ErrorHandler- renderException Object yii web NotFoundHttpException .. . .. . 2 internal function : yii base ErrorHandler- handleException Object yii web NotFoundHttpException .. . .. . 3 main .. . .. . Previous exception : exception yii base InvalidRouteException with message Unable to resolve the request . in D : apache www foldername vendor yiisoft yii2 base Module.php : 461 Stack trace : .. . .. . 0 D : apache www foldername vendor yiisoft yii2 web Application.php 83 : yii base Module- runAction Array .. . .. . 1 D : apache www foldername vendor yiisoft yii2 base Application.php 375 : yii web Application- handleRequest Object yii web Request .. . .. . 2 D : apache www foldername index.php 10 : yii base Application- run .. . .. . 3 main .. . .. . Next exception yii web NotFoundHttpException with message Page not found . in D : apache www foldername vendor yiisoft yii2 web Application.php : 95 Stack trace : .. . .. . 0 D : apache www foldername vendor yiisoft yii2 base Application.php 375 : yii web Application- handleRequest Object yii web Request .. . .. . 1 D : apache www foldername index.php 10 : yii base Application- run .. . .. . 2 main",
"Question : I want to install Select 2 extension https : github.com kartik-v yii2-widget-select2 widget manually with Yii2 Framework without using composer . I done the following steps but it s not working . 1 Added yii2-widget-select2 to vendor yii-soft .. . .. . 2 Added following code in my yii-soft extensions.php : .. . .. . 3 Added display in view form : .. . .. . And It shows the following error : .. . .. . PHP Fatal Error yii base ErrorException . Class kartik select2 Select2 not found .. . Answer : You can use yii2-workbench http : www.yiiframework.com extension yii2-workbench package . It designed for easy intergrate package without composer . It support composer autoload and bootstrap Comment : While this link may answer the question it is better to include the essential parts of the answer here and provide the link for reference . Link-only answers can become invalid if the linked page changes . Comment : Ok thanks for your comment",
"Question : Use of undefined constant INTL ICU VERSION - assumed INTL ICU VERSION .. . .. . Yii Framework 2.0.7 .. . .. . checks array title Yii : : t base title state ERROR hint Install INTL Extension .. . .. . .. . icuVersion defined INTL ICU VERSION INTL ICU VERSION : 0 .. . icuMinVersion 4.8.1 .. . title PHP - INTL Extension - ICU Version . INTL ICU VERSION . .. . if version compare icuVersion icuMinVersion .. . checks array .. . title Yii : : t base title .. . state OK .. . .. . else .. . checks array .. . title Yii : : t base title .. . state WARNING .. . .. . .. . hint Install INTL Extension .. . .. . .. . .. . icuVersion defined INTL ICU VERSION INTL ICU VERSION : 0 .. . icuMinVersion 4.8.1 .. . title PHP - INTL Extension - ICU Version . INTL ICU VERSION . .. . if version compare icuVersion icuMinVersion .. . checks array .. . title Yii : : t base title .. . state OK .. . .. . else .. . .. . Answer : Here s solution http : www.yiiframework.com forum index.php topic 69245-error-installing-yii2-on-local-computer of your problem I guess : .. . .. . Or maybe try to update Php version",
"Question : I am new to Yii framework . I want to seed my database like it can be done in Laravel framework using Faker . I tried this http : www.yiiframework.com forum index.php topic 59655-how-to-seed-yii2-database but it does not provide much details . I would really appreciate if someone can help me out with the steps in details . Comment : Please check this one - stackoverflow.com questions 17114708 how-to-seed-in-yii http : stackoverflow.com questions 17114708 how-to-seed-in-yii Comment : You can build migration http : www.yiiframework.com doc-2.0 guide-db-migrations.html scripts based on yii2-faker https : github.com yiisoft yii2-faker extension . Comment : Thanks for the reply . I am actually looking to seed my database with dummy-data . Like it can be done using Faker . Comment : Hi Salem . Thanks for your reply . Can you please provide the example with steps .. . Answer : See at fixtures http : www.yiiframework.com doc-2.0 guide-test-fixtures.html and faker realization in yii2-app-advanced tests . In project you also can write in console php yii fixture load to load seeds in database and php yii fixture generate-all to generate seed by faker . yii.php should have right fixture controller in controllerMap array : .. . .. . See more info in documentation https : github.com yiisoft yii2-faker blob master docs guide basic-usage.md testing . Comment : Thanks for the reply . I created the new file YiiBasic tests unit templates fixtures users.php . Following is the content : php return username faker- firstName password 123456 And after running php yii fixture generate users command . I get the following error in my command-prompt : The following fixtures templates were NOT found : users No fixtures template files matching input conditions were found under the pa C : xampp htdocs YiiBasic tests codeception unit templates fixtures Comment : @FaisalQureshi you should configure faker generator template files for generate method . example : php yii fixture templates --templatePath @app path to my custom templates . For seeds i recommend don t use faker it is better to fill database determined data with corrected foreign-keys known passwords etc.. .",
"Question : I was trying to get started with Yii2 framework . As described in documentation http : www.yiiframework.com doc-2.0 guide-start-installation.html i did .. . .. . then I cd yii2-test and run php yii serve --port 8888 .. . .. . I expected that it would run server but it exit with code 255 . Debugger said that it stops on the line https : github.com yiisoft yii2 blob master framework console controllers ServeController.php L116 .. . .. . and error message is .. . .. . How can I solve this problem Some enviroment : .. . .. . Description : Ubuntu 15.10 Comment : What Operating System do you running Provide some information please . Are you sure the built-in php Webserver is running On which port If not start with php -S localhost : 8888 Comment : I edited my question : Ubuntu 15.10 with php 5.6.11 . I don t think built-in php webserver should be running otherwise if I run php yii serve --port 8888 I get an error http : localhost : 8888 is taken by another process . . Also port-number doesn t metter I checked it is free and tried another different random ports .. . Answer : This strange behaviour was caused by xdebug setting .. . .. . To solve my problem I had to just exclude E WARNING from it . Explanation .. . .. . Before starting yii serve command checks if another application uses selected port . This is done in method isAddressTaken by trying to open socket to localhost at this port .. . .. . so every time the port is empty and yii may use it fsockopen generates warning which is suppressed by @ . The result : if you have xdebug and it makes all scripts to halt on warnings - yii serve will not start .",
"Question : Like i want to create function with name dt .. . .. . and want to access it like this : - .. . .. . Which is better place in Yii2 framework to do that Comment : yiiframework.com wiki 747 http : www.yiiframework.com wiki 747 write-use-a-custom-component-in-yii2-0 i hope its help for you .. . Answer : I use common components folder . Here i create a file name AppBasic.php which will have functions which are for PHP and also Yii related functions . some of the functions. . I also do the same for controllers . I extend them by the Backendcontroller and FrontendController . They were extended by MosLakeController My Name and it is extended by controller . So i put all access-control thing into frontend and backend controller . I also have functions in MosLakeController . And i also do the same for models . I extend all the ActiveMdels and ALso Models Without DB connection and when theyhave any error afterValidate then i insert data in Database about the error trace with Yii : : error or Yii : : info or Yii : : warning . I do many things to make coding easy and fun and keep learning new things. .",
"Question : I want to install Select 2 extension https : github.com kartik-v yii2-widget-select2 widget manually with Yii2 Framework without using composer . I done the following steps but it s not working . 1 Added yii2-widget-select2 to vendor yii-soft .. . .. . 2 Added following code in my yii-soft extensions.php : .. . .. . 3 Added display in view form : .. . .. . And It shows the following error : .. . .. . PHP Fatal Error yii base ErrorException . Class kartik select2 Select2 not found .. . Answer : It s highly recommended to use composer instead . But if you want to do it manually : .. . .. . 1 Download archive of needed version from Github . 2 Open composer.json . 3 Find PSR-4 autoload section and remember it in your case : kartik select2 . 4 Extract files to corresponding folder in vendor : vendor kartik select2 not yiisoft . 5 Add to vendor composer autoload psr4.php : .. . .. . 6 Add to vendor yiisoft extensions.php : .. . .. . samdark one of the core contributors has the article in russian about it on his official blog here http : rmcreative.ru blog post kak-postavit-rasshchirenie-na-yii-2.0-bez-composer . It s basically brief translated version . As you can see it s quite a lot of work to do . Multiply it by number of extensions and it becomes pain . Seriously use composer . If the hoster doesn t support it find another one . Comment : Couldn t agree more . Why make it so hard on yourself Worst case scenario you can just add the composer.phar to your own files and run it like that . Comment : Nice step-by-step solution pointing to autoload psr4.php",
"Question : I m working with Yii2 Framework and already configured i18n component using this guide : http : thecodeninja.net 2014 12 i18n-with-yii-2-advanced-template .. . .. . So I can now translate strings within my php files using Yii : : t function . Translatable strings are extracted using . yii message extract console command which generates proper translation files . I now need to display translations for strings stored in the database . I could use Yii : t with a variable instead of a string as an argument like this .. . .. . and make a new php file with some code like this .. . .. . This way . yii message extract command will find the needed translations . This is working Ok but of course . yii message extract is throwing some warnings anywhere I use Yii : t with variables . I think this is not a big deal but well here is my question : .. . .. . Is this a right way to translate strings stored in a database Is there a better way to accomplish this Comment : The thing is the main focus of i18n on Yii2 is to translate UI text not to work as a translator for data in your app . I would not recommend using i18n to do so if there is no The Yii2 Way Solution you can find some other way . .. . Answer : I was having the same problem and I found the solution with this module https : github.com lajax yii2-translate-manager . In the module configuration you have the tables array in which you can specify which field s of which table s should be translated . Then the module has its own scan action equivalent to message extract with which it adds all the translatable strings to database using DbMessageSource http : www.yiiframework.com doc-2.0 yii-i18n-dbmessagesource.html : all Yii : : t the specified database fields and many more even javascript check the docs . It also has a nice user-interface to do the translations it s awesome For example with the following configuration the field name from table nationality will be scanned and added for its translation i.e country names : .. . .. .",
"Question : I use a simple fixture to populate the table in the test database . But when I try to load it check integrity code throws exception Table not found : . My fixture : .. . .. . To load fixture I use this command from @app tests : yii fixture load IdentityDocument .. . .. . As a result I get this error message : .. . .. . Exception yii base InvalidParamException with message Table not found : in C : php-projects ais vendor yiisoft yii2 db mssql QueryBuilder.php : 180 .. . .. . Stack trace : .. . .. . 0 C : php-projects ais vendor yiisoft yii2 db Command.php 753 : yii db mssql QueryBuilder- checkIntegrity false 1 C : php-projects ais vendor yiisoft yii2 test InitDbFixture.php 94 : yii db Command- checkIntegrity false 2 C : php-projects ais vendor yiisoft yii2 test InitDbFixture.php 76 : yii test InitDbFixture- checkIntegrity false 3 C : php-projects ais vendor yiisoft yii2 test FixtureTrait.php 114 : yii test InitDbFixture- beforeUnload 4 C : php-projects ais vendor yiisoft yii2 console controllers FixtureController.php 147 : yii console controllers FixtureController- unloadFixtures Array 5 internal function : yii console controllers FixtureController- actionLoad IdentityDocumen.. . 6 C : php-projects ais vendor yiisoft yii2 base InlineAction.php 55 : call user func array Array Array 7 C : php-projects ais vendor yiisoft yii2 base Controller.php 154 : yii base InlineAction- runWithParams Array 8 C : php-projects ais vendor yiisoft yii2 console Controller.php 91 : yii base Controller- runAction load Array 9 C : php-projects ais vendor yiisoft yii2 base Module.php 454 : yii console Controller- runAction load Array 10 C : php-projects ais vendor yiisoft yii2 console Application.php 167 : yii base Module- runAction fixture load Array 11 C : php-projects ais vendor yiisoft yii2 console Application.php 143 : yii console Application- runAction fixture load Array 12 C : php-projects ais vendor yiisoft yii2 base Application.php 375 : yii console Application- handleRequest Object yii console Request 13 C : php-projects ais tests codeception bin yii 22 : yii base Application- run 14 main .. . .. . How to load fixture The test database exists the data sources are configured correctly . .. . .. . Update .. . .. . The real name of the table is tbl identitydocument : .. . .. . Here is the method tableName of the model IdentityDocument : .. . .. . Model code completely : .. . .. . Under the debugger I can see that method IdentityDocument : : tableName returns : .. . .. . I see that tableNameTmp is equal identitydocument verbatim returns this string .. . .. . .. . .. . Update .. . .. . Under the debugger I can see the following . In the class TestCase.php there is a method setUp : .. . .. . The exception is thrown here : this- unloadFixtures : .. . .. . enter image description here http : i.stack.imgur.com WMZxV.png .. . .. . At the screenshot it is visible that initScript referenced to the path @app tests fixtures initdb.php but there is no such file . . Also the schemas array contains a single element . .. . .. . Update .. . .. . I used the instructions written by @slinstj http : stackoverflow.com users 479964 slinstj here - Run fixture load User fails to load User data https : github.com yiisoft yii2-app-advanced issues 172 . In my local project advanced pattern and MySQL rdbms the fixture is loaded successfully : .. . .. . enter image description here http : i.stack.imgur.com GjigW.png Comment : In the class InitDbFixture declared initScript @app tests fixtures initdb.php which is not present in the project in the templates . Maybe that s the reason . . Comment : Maybe the reason is in the name of the fixture If the table in database have prefix - how should be called a fixture . . Comment : Hi Aleksey What is the real name of the table for IdentityDocument and what name is being returned by IdentityDocument : : tableName Comment : Hi slinstj Thanks for your reply I updated the question . The name of the table is tbl identitydocument . IdentityDocument : : tableName returns identitydocument .. . Comment : It seems right I will give a shot.. . see below . .. . Answer : 1 - Check if you have set the tablePrefix param for yii db Connection : .. . .. . Further infomation from docs http : www.yiiframework.com doc-2.0 yii-db-connection.html 24tablePrefix-detail : .. . .. . tablePrefix : .. . .. . The common prefix or suffix for table names . If a table name is given as TableName then the percentage character will be replaced with this property value . For example post becomes tbl post . OR .. . .. . 2 - Set a dataFile path : .. . .. . According to this http : github.com yiisoft yii2-app-advanced issues 172 : Comment : Thank you for your answer Yes this parameter has already been set in the dev configuration . I ve added it to tests codeception config config.php but the error remains the same - yii base InvalidParamException Table not found : . Comment : You are welcome . Are your fixtures being loaded correctly when running codeception tests Comment : If so please look at this : github.com yiisoft yii2-app-advanced issues 172 https : github.com yiisoft yii2-app-advanced issues 172 Comment : Thank you for your comment . No the fixture is not loaded - error is the same I tried yii fixture load IdentityDocument . OK I ll look now. . I updated the question again . Comment : Cool I did as you wrote . On my local MySQL database fixtures have loaded successfully . I ll try to repeat it with my current project .",
"Question : I m wondering if it s possible in Yii2 to call a function automatically when executing php init command I have a component extension which has a function that I want to call only when the Yii2 app is initialized . Can this function be registered in anywhere so that it will be automatically called and is it even possible .. . Answer : init https : github.com yiisoft yii2-app-advanced blob master init Yii Application Initialization Tool is available for Advanced Application Template only and written in procedural style not OOP . Unfortunately init does not raise any events so you can t add any event handlers to execute custom code . The easiest way to solve the problem is to modify init file itself but it s not good practice because changes can be lost on framework update file is included in git trackable files in framework core . My advice will be create separate console command http : www.yiiframework.com doc-2.0 guide-tutorial-console.html create-command for handling that and execute it right after php init : .. . .. . If you are using deploy tools such as Deployer http : deployer.org you can easily add your custom command for execution right after init . Recipe for Yii2 Advanced Application Template exists https : github.com deployphp deployer blob master recipe yii2-app-advanced.php so you can add your custom command like so : .. . .. . Then you just run : .. . .. . And forget about everything what you need to do to deploy your project . Definetely recommend to spend some time and learn it it s worth it .",
"Question : I have a server machine and I am trying to allow my PC ip-address to use gii . My PC ip-address is 192.168.1.101 .. . .. . The server machine ip is 192.168.1.102 . I used composer to install the gii module . This is how my composer.json settings look like : .. . .. . I have used php init and composer update and php yii migrate . I am also logged in in the frontend . This is the main.php file content : .. . Answer : In the current version of Yii you should do that in web.php to allow access to Gii : Comment : Correct In Yii 2.0 the settings for allowed IP must be included in web.php instead of console.php Comment : That s assuming you are using the Yii2 Basic slightly different for Yii2 Advanced Template . There is no web.php in the Advanced Template .",
"Question : How to upgrade Yii 1.x version to Yii 2.0 latest release version I am using ubuntu OS Process to updating my old Yii to new Yii release version 2.0 Comment : is it possible or not Comment : github.com yiisoft yii2 blob master docs guide https : github.com yiisoft yii2 blob master docs guide intro-upgrade-from-v1.md Comment : changes in classes are huge and not a good way to spend time changing all the classes also coding practices are changed .. . Answer : The Yii2 guide has excellent documentation in this regard see Upgrade from v1 http : www.yiiframework.com doc-2.0 guide-intro-upgrade-from-v1.html .. . .. . I recently migrated couple of moderately complex applications from Yii 1.x to Yii 2.0 . There are two ways to go about it either you can run Yii 1.x and Yii 2 at the same time see using-yii-2-with-yii-1 http : www.yiiframework.com doc-2.0 guide-tutorial-yii-integration.html using-both-yii2-yii1 . Then migrate part by part while it is possible it was quite bit of pain like trying to rebuild the second floor while living on the third . Alternatively you can rewrite the entire application bottom up with the exact same functionality I found this to be much more efficient significant code could be reused with only minor modifications also that gave opportunity to tweak the design without changing functionality . The important thing is to ensure the exposed API i.e . the frontend UI functionality remains the same . It is always tempting to update functionality or change features during a rewrite however if you stick to strictly reimplementing everything for Yii2 then consider changing your API your migration will be smoother .",
"Question : I m working with Yii2 Framework and already configured i18n component using this guide : http : thecodeninja.net 2014 12 i18n-with-yii-2-advanced-template .. . .. . So I can now translate strings within my php files using Yii : : t function . Translatable strings are extracted using . yii message extract console command which generates proper translation files . I now need to display translations for strings stored in the database . I could use Yii : t with a variable instead of a string as an argument like this .. . .. . and make a new php file with some code like this .. . .. . This way . yii message extract command will find the needed translations . This is working Ok but of course . yii message extract is throwing some warnings anywhere I use Yii : t with variables . I think this is not a big deal but well here is my question : .. . .. . Is this a right way to translate strings stored in a database Is there a better way to accomplish this Comment : The thing is the main focus of i18n on Yii2 is to translate UI text not to work as a translator for data in your app . I would not recommend using i18n to do so if there is no The Yii2 Way Solution you can find some other way . .. . Answer : You can check out this extension . https : github.com creocoder yii2-translateable it allows for attaching behaviors to models to support multiple-languages . I am using it now in a projects and it is easy to use . Comment : This seems promising . I ve been trying to use this behavior but it s not working as expected . Translation s model-validation fails . The key attribute is not being set . I ve tried for a new record and for an existing one and the results are the same . Are you using the extension s current version I ve installed it through composer . Comment : You can easily fix that by... . wait did you just took your points back.. . hmm.. . good luck I guess . Comment : Actually I did find a workaround for that issue . There are your points back to you . I really appreciate your help it has been greatly useful . I m a newbie at stackoverflow and I ve just noticed I can improve your answer . I ll do that tomorrow when I have all the info . Comment : Just make the foreign key not required . That will make it work it took me some time to figure that easy fix out . I will update the extension to reflect that . Comment : Great that s it That s way easier than my workaround . I was manually setting that attribute before saving the model . Thanks for sharing .",
"Question : I have mysql table Flats with such rows .. . .. . I need to select 3 flats with 2 rooms and 4 flats with 1 room sorted by date DESC . That selected info 3 and 4 flats would be at the 1st site s page . Then i need to select next info next 3 and 4 flats . 1 - How can i do it in yii2 using not pagination and not mysql offset but using php-generators yield . 2 - What is the better way- mysql offset or php-yield for the purpose . Comment : what do you mean Comment : I don t know even how to start this code in Yii2- how combine active query and generators .. . Answer : I see no benefits in this approach . Why reinvent the wheel especially when you choose to use framework and it already provides Pagination component You can read about pagination in common in Pagination http : www.yiiframework.com doc-2.0 guide-output-pagination.html article . Example : .. . .. . Links to pages are displayed with yii widgets LinkPager http : www.yiiframework.com doc-2.0 yii-widgets-linkpager.html widget : .. . .. . And there are some details for yii data Pagination http : www.yiiframework.com doc-2.0 yii-data-pagination.html component . Learn framework features and use it . For example when using ActiveDataProvider with GridView widget the pagination is already built-in so you only configure it to fit your needs items per page etc . and don t care about details of internal implementation offsets etc . . But it s obviously better if you understand how it works .",
"Question : I have enabled mbstring in my php.ini.It even shows in phpinfo .But still I am getting this error in yii2 . Comment : mb strlen is a global PHP function why you search it in yii helpers namespace Comment : Post the code please Comment : Try to mb strlen .. . Answer : As @TomaszKane said in comment mb strlen is native PHP function so you need to call it as mbstrlen without specifying the namespace . Official documentation : .. . .. . mb strlen http : php.net manual en function.mb-strlen.php .. . .. . Also take a look at yii helpers StringHelper http : www.yiiframework.com doc-2.0 yii-helpers-stringhelper.html mb strlen is used in several places . For example if you are looking for byte length there is special method byteLength http : www.yiiframework.com doc-2.0 yii-helpers-basestringhelper.html byteLength 28 29-detail you can call it like that : .. . .. . It s basically syntactic-sugar of mb strlen . Comment : Yes it is used in byteLength thats why its throwing error.I am not using it anywhere error is in the base file of yii2 i.e.StringHelper .",
"Question : I have installed in Yii 1.1 .. . .. . But how to do it in Yii2 Param template Yii : : t Site Header News does not work .. . Answer : template property of ListView in Yii2 called layout . Link https : github.com yiisoft yii2 blob master framework widgets BaseListView.php Comment : Thanks helped . Comment : if it helped accept my answer : Comment : How to use it Give some examples .",
"Question : Can anyone have any idea what can cause Yii2 error handler to halt correctly on following line : .. . .. . assuming that missing is null and display correctly Undefined variable : missing.. . notice . And in the same time die totally on following line : .. . .. . and display return completely blank page instead of correct error message I have a very strange troubles with Yii2 error handler ever since I started coding in Yii2 . Above code is one of examples . Another one is that redeclaring Yii namespace in migration causes command-line console to die ugly instead of displaying proper fatal-error https : github.com yiisoft yii2 issues 8206 . I ve been told https : github.com yiisoft yii2 issues 8206 issuecomment-96988544 that this problem is caused by my PHP configuration . But I found it hard to believe -- mainly because : .. . .. . I haven t changed anything in my XAMPP structure php.ini content etc . for past many many months I m actually still using old-good 1.8.1 version of XAMPP versioned without compliance to PHP version .. . .. . all metioned problems started about month ago when I started coding in Yii2 and happens only in Yii2-powered apps -- I can t reproduce any of above mentioned problems in any of my Yii1-powered projects . I agree that this must be something in my local installation of PHP because I have tested all of these examples in freshly-new installed XAMPP 5.6.8 and in its portable version . But since I can only reproduce this problem in Yii2-powered project and everything goes as good as it can in Yii1-powered application or under pure PHP then there must be some sort of nasty devil inside . Can someone help here or at least shed some light where should I start looking for Comment : Idk actually . I have XAMPP Version 1.8.3 with php 5.5.11 . Tested and for me php fatal errors handled properly . So it must be your local installation problem try another xamp or vagrant box maybe . Comment : have you set debug variable to true in web index.php defined YII DEBUG or define YII DEBUG true defined YII ENV or define YII ENV dev Comment : @arkoak Yes of course : .. . Answer : I found out that on certain environments when Yii2 handles a missing variable error it shows an error at the bottom of the debugger . Warning : var export does not handle circular references in vendor yiisoft yii2 helpers BaseVarDumper.php on line 187 .. . .. . Maybe that error is causing your environment to die on this . However this seems to be a bug . Also I found a workaround using the solution found in this Github Issue https : github.com yiisoft yii2 issues 3327 . It s not pretty but is a solution . Edit : A patch for this issue was released . See here https : github.com yiisoft yii2 issues 8723 issuecomment-129171206",
"Question : Iam trying to embed a report into a view and I ve followed the instructions in http : www.reportico.org yii2 web index.php quickstart embedding-reports-prepare .. . .. . but I get the following error PHP Compile Error yii base ErrorException .. . .. . main : Failed opening required reportico.php include path . C : php pear .. . .. . Could anyone help me with this please Thanks in advance Comment : You need exactly to embed this into a view Reportico has a yii2 module read how to install and use it reportico.org yii2 web index.php site installation http : www.reportico.org yii2 web index.php site installation .. . Answer : check the path to reportico.php is it correct and im with the answer in the comment try to install Reportico http : www.reportico.org yii2 web index.php site installation",
"Question : How can I get all params that the controller passed on to the view My controller says : .. . .. . Within the view var-dump this- params just returns an empty array instead of the 3 items . How can I get the entire array that was passed on The reason I want to do this is to pass on the params to another view with renderPartial and I want to avoid specifying each parameter manually.. . .. . Answer : You should simply use params : .. . .. . The parameters name-value pairs that will be extracted and made available in the view file . e.g . : .. . .. . Read more about how php view files are rendered https : github.com yiisoft yii2 blob 2.0.8 framework base View.php L320 ."
]
} | [
"yes-answer-long",
"yes-answer-short"
] | yii | UNK_RELATION |
jquery-attributes@html@70 | jquery-attributes -- attributes provide additional information about @placeholder elements . | {
"confidence": [
36.1795654296875,
36.1795654296875,
30.705211639404297,
30.43361473083496,
29.224994659423828,
28.688703536987305,
28.49431037902832,
28.149337768554688,
27.54705047607422,
27.54705047607422,
27.54705047607422,
26.98302459716797,
26.98302459716797,
26.852519989013672,
26.441539764404297,
26.274871826171875,
26.274871826171875,
26.274871826171875,
26.274871826171875,
26.257312774658203,
25.473392486572266,
25.36751937866211,
24.5516357421875,
24.5516357421875,
24.5516357421875,
24.5516357421875,
24.5516357421875,
24.53466033935547,
24.534149169921875,
24.380815505981445,
23.640104293823242,
23.640104293823242,
23.42007827758789,
22.828472137451172,
22.828472137451172,
22.508548736572266,
22.364391326904297,
22.23044204711914,
22.23044204711914,
22.23044204711914,
22.23044204711914,
22.23044204711914,
22.23044204711914,
22.06387710571289,
21.275278091430664,
21.275278091430664,
21.098886489868164,
20.903032302856445,
20.809825897216797,
20.806865692138672,
20.806865692138672,
20.525188446044922,
20.525188446044922,
20.340713500976562,
20.262592315673828,
20.10786247253418,
19.92559814453125,
19.916324615478516,
19.805419921875,
19.678268432617188,
19.678268432617188,
19.675308227539062,
19.569599151611328,
19.54738998413086,
19.54738998413086,
19.398183822631836,
19.194290161132812,
19.141422271728516,
18.81951141357422,
18.81951141357422,
18.788196563720703,
18.788196563720703,
18.402183532714844,
18.402183532714844,
18.402183532714844,
18.402183532714844,
17.841711044311523,
17.841711044311523,
17.76556968688965,
17.76556968688965,
17.76556968688965,
17.76556968688965,
17.581546783447266,
17.488609313964844,
17.468589782714844,
17.270627975463867,
17.139699935913086,
17.139699935913086,
17.139699935913086,
17.08251953125,
17.08251953125,
17.08251953125,
17.08251953125,
17.08251953125,
17.08184051513672,
17.05225944519043,
17.022140502929688,
16.947036743164062,
16.947036743164062,
16.947036743164062
],
"content": [
"This is an example of a script that will loop through the collected elements and print out two attributes .",
"Is there a way to disallow the cloning of certain attributes into newly inserted elements",
"@ShadGagnon That s because some of your a elements don t have onclick attributes I have updated the selector .",
"However this will return all natural attributes of a jQuery element object .",
"The test includes boolean attributes hidden and enumerated attributes contenteditable .",
"Haven t tried it but that s what the documentation says : docs.jquery.com Attributes attr name http : docs.jquery.com Attributes attr name",
"the number of attributes and the names are generic .",
"window.addEventListener load function .. . var result document.getElementById result .. . var spanAttributes document.getElementsByTagName span 0 .attributes .. . for var i 0 i spanAttributes.length i++ .. . result.innerHTML + spanAttributes i .value + .. . .. . .. . .. . .. . span name test message test2 span .. . div id result div .. . .. . To get the attributes of many elements and organize them I suggest making an array of all the elements that you want to loop through and then create a sub array for all the attributes of each element looped through .",
"var atts myObject 0 .attributes",
"Doesn t work with dynamically added attributes : -",
"In javascript : .. . .. . To access the attributes names and values :",
"The attributes collection contains all possible attributes in older IE not just those that have been specified in the HTML .",
"You can work around this by filtering the attributes list using each attributes specified property .",
"window.addEventListener load function .. . .. . collect all the elements you want the attributes .. . for into the variable elementsToTrack .. . .. . var elementsToTrack body span body div .. . variable to store all attributes for each element .. . var attributes .. . gather all attributes of selected elements .. . for var i 0 i elementsToTrack.length i++ .. . var currentAttr elementsToTrack i .attributes .. . attributes.push currentAttr .. . .. . .. . print out all the attrbute names and values .. . var result document.getElementById result .. . for var i 0 i attributes.length i++ .. . result.innerHTML + attributes i 0 .name + + attributes i 0 .value + + attributes i 1 .name + + attributes i 1 .value + br .. . .. . .. . .. . .. . script src https : ajax.googleapis.com ajax libs jquery 2.1.1 jquery.min.js script .. . span name test message test2 span .. . span name test message test2 span .. . span name test message test2 span .. . span name test message test2 span .. . span name test message test2 span .. . span name test message test2 span .. . span name test message test2 span .. . div name test message test2 div .. . div name test message test2 div .. . div name test message test2 div .. . div name test message test2 div .. . div id result div",
"I am trying to go through an element and get all the attributes of that element to output them for example an tag may have 3 or more attributes unknown to me and I need to get the names and values of these attributes .",
"Doesn t work with dynamically added attributes too",
"I tested and it works with dynamically added attributes chrome",
"This property returns all the attributes of an element into an array for you .",
"Custom non-standard attributes should be prefixed with data- .",
"According to the W3C boolean attributes are defined by presence or absence of the attribute .",
"If you just want the DOM attributes it s probably simpler to use the attributes node list on the element itself : .. . .. . Note that this fills the array only with attribute names .",
"In short the difference is .data is used for storing information without any alteration on the DOM element attr is used to manipulate attributes of an element .",
"Warning : in IE this gets not only specified but all possible attributes",
"It doesn t work with dynamically added properties cause properties and attributes are not always in sync .",
"I will work around it and avoiding putting title attributes in my tag : -",
"All attributes except id were cloned including my custom attribute .",
"Also note that changing id attributes dynamically is not a very good idea .",
"As per jQuery documentation http : api.jquery.com jquery.map the map-function will return you an array with the mapped elements .",
"Remember NOT to insert any inline onclick handler in your elements .",
"The method you provide to test the presence of an attribute is not described in the jQuery documentation 1.8.2 .",
"Use .slice to convert the attributes property to Array .. . .. . The attributes property of DOM nodes is a NamedNodeMap https : developer.mozilla.org en-US docs Web API NamedNodeMap which is an Array-like object .",
"The attributes property contains them all : .. . .. . .. . .. . What you can also do is extending .attr so that you can call it like .attr to get a plain object of all attributes : .. . .. . Usage :",
"You ll find plenty of examples there to set and get data attributes .",
"This question already has an answer here : .. . .. . Event binding on dynamically created elements",
"You may want to fix it when there s no matched elements e.g .",
"http : jsfiddle.net cj9j7 .. . .. . If you need something more dynamic do not use onclick attributes changing onclick attributes is hackish you can use click method instead .",
"I want to put all attributes in a Html element into an array : like i have a jQuery Object whichs html looks like this : .. . .. . now one way is to use the xml parser described here http : stackoverflow.com questions 1705504 javascript-jquery-how-do-i-get-an-array-of-all-attributes-in-an-xml-element but then i need to know how to get the html code of my object .",
"I want to be able to send all the attributes of the selected options when I submit .",
"Because in IE7 elem.attributes lists all possible attributes not only the present ones we have to test the attribute value .",
"This approach works well if you need to get all the attributes with name and value in objects returned in an array .",
"This script assumes that there will always be two attributes but you can easily fix this with further mapping .",
"Unless there s a specific reason you need to retain the title attributes I would just remove them .",
"When adding a new paragraph by hitting enter in jwysiwyg the new paragraph automatically has the previous paragraph s attributes assigned to it .",
"Because other attributes i have that are camel cased are fine",
"If you already have a collection and you want to filter out only elements with specific attribute - just do it - filtered collection.filter attribute name",
"In addition to selecting all elements with an attribute someAttribute or input someAttribute you can also use a function for doing boolean checks on an object such as in a click handler : .. . .. . if",
"See here : https : developer.mozilla.org en DOM HTMLInputElement .. . .. . .. . .. . Attributes exist in the HTML source code .",
"Is working fine because they have different behaviours jQuery.data : .. . .. . Store arbitrary data associated with the matched elements or return the value at the named data store for the first element in the set of matched elements .",
"var obj document.querySelector name test .attributes .. . array Array.prototype.slice.call obj .. . console.log array .. . .. . .. . span name test message test2 Open your console . span",
"This removes all .o-kcp-tab-item elements that do not have rel re and are direct children of .o-kcp-tabs :",
"I looked in the source of jwysiwyg but am not having much luck finding where the elements get cloned .",
"How to do it with JQuery",
"JQuery will return the attribute as a string .",
"You of course need to do that on the select element not on all option elements .",
"Roland Bouman http : stackoverflow.com users 235058 roland-bouman s answer http : stackoverflow.com questions 2048720 get-all-attributes-from-a-html-element-with-javascript-jquery 27865269 answer-2048786 is the best simple Vanilla way .",
"if you are using jquery-1.7 .. . .. . else",
"Don t need to create new jQuery objects just to access a DOM element s attrbiutes",
"Original Q didn t say anything about jQuery .",
"jQuery .. . .. . This function expects a jQuery object not a DOM element .",
"I am not aware of any examples but does anyone know if there are any attributes that don t have a matching property like defaultChecked in the DOM",
"I am using skrollr and although it is made to apply data attributes directly in html I want to control them with javascript before applying init in the plugin .",
"If admin links node edit is reused among other elements you ll want to specify the element you re working on li in this case .",
"The cleanest way I can think of doing this is to first select using the common elements across all items then just .find or .filter the OR values out .",
"jQuery provides the method .attr to manipulate attribute values .",
"Do you know how to add an attribute with jQuery",
"But not that well versed in jQuery to even know what you re talking about exactly let alone know how to hack it together .",
"With jQuery 1.7+ you can use on off : stackoverflow.com questions 209029 http : stackoverflow.com questions 209029 best-way-to-remove-an-event-handler-in-jquery",
"jQuery .btn .attr title returns a string not a jQuery object .",
"then on jquery do something like this .",
"@Fabio97 Is jQuery defined",
"Is it possible to use JQuery to check if an element has a specific attribute",
"I agree this is the best answer using jQuery - very clear and concise .",
"the other way is to make it with jquery but how",
"There is no jQuery event for watching change of an attribute .",
"The closest would be jQuery attribute value .",
"It s strange jQuery does not include it .",
"Of course better documentation over on the jQuery site itself .",
"This is a very good and expected functionality for jQuery .attr method .",
"stackoverflow.com questions 1318076 http : stackoverflow.com questions 1318076 jquery-hasattr-checking-to-see-if-there-is-an-attribute-on-an-element",
"In jQuery it is possible munging its name exactly because it is constructed with the var contructor and not valued .",
"see link : stackoverflow.com questions 1318076 http : stackoverflow.com questions 1318076 jquery-hasattr-checking-to-see-if-there-is-an-attribute-on-an-element",
"JQuery does in fact return the attribute as a string and you can check the length of that string just as any other string .",
"I know it s been a long time since the question was asked but I found the check to be clearer like this : .. . .. . As found on this site here http : blog.routydevelopment.com 2010 07 how-to-check-if-an-attribute-exists-on-your-jquery-selection .. . .. . Documentation about is can be found here http : api.jquery.com is",
"Guys i have used the following code to disable an option using jQuery jquery-1.4.2.min .The disable happens in Firefox but not in IE .",
"@RetroCoder what s your point about your link",
"It looks like a jQuery bug to me .",
"I did find myself wondering why jQuery doesn t just have a hasAttribute function and the answer is that native javascript already has one .",
"On the top of the magic library code infact there s a line which states var undefined and this way an undefined variable is defined with that name in the jQuery scope.. .",
"A couple ideas were tossed around using typeof jQuery .is and .filter so I thought I would post up a quick perf compare of them .",
"The problem is that i can t use getElementById it s a jquery object .",
"is there a way that i can make getelementbyclassname inside a context like at jquery",
"I figured that i should be possible to fake a click with JQuery .",
".. . or perhaps extend jQuery with your own chain wrapper function .",
"How do I set a data attribute without adding a value in jQuery",
"The following html-snippet shows the special behavior of itemId on at least li-elements : .. . .. . Looks like itemId has become a special attribute behavior as of FF16 .",
"I have this list : .. . .. . i need to get data attribute of all elements so i do this : .. . .. . but what i get is only attribute of first element.. . What is wrong",
"I have a simple script in jQuery that works perfectly with jQuery 1.5.2 as you can see in this jsFiddle http : jsfiddle.net kHBsD .",
"Either way it would teach you a lesson about coding practices :",
"I am curious about what part didn t work",
"The original question was about detecting existence of the attribute making this a failure as an answer to the question ."
]
} | {
"confidence": [
42.09239196777344,
38.20246887207031,
35.47502517700195,
34.60695266723633,
34.553592681884766,
33.0570182800293,
32.00357437133789,
31.845245361328125,
31.334869384765625,
31.329681396484375,
30.484973907470703,
30.24372100830078,
30.230213165283203,
29.883258819580078,
29.882869720458984,
29.300048828125,
27.34158706665039,
26.62637710571289,
26.39360809326172,
26.086292266845703
],
"content": [
"Question : I want to put all attributes in a Html element into an array : like i have a jQuery Object whichs html looks like this : .. . .. . now one way is to use the xml parser described here http : stackoverflow.com questions 1705504 javascript-jquery-how-do-i-get-an-array-of-all-attributes-in-an-xml-element but then i need to know how to get the html code of my object . the other way is to make it with jquery but how the number of attributes and the names are generic . Thanks .. . .. . Btw : I can t access the element with document.getelementbyid or something similar . .. . Answer : Does this help This property returns all the attributes of an element into an array for you . Here is an example . window.addEventListener load function .. . var result document.getElementById result .. . var spanAttributes document.getElementsByTagName span 0 .attributes .. . for var i 0 i spanAttributes.length i++ .. . result.innerHTML + spanAttributes i .value + .. . .. . .. . .. . .. . span name test message test2 span .. . div id result div .. . .. . To get the attributes of many elements and organize them I suggest making an array of all the elements that you want to loop through and then create a sub array for all the attributes of each element looped through . This is an example of a script that will loop through the collected elements and print out two attributes . This script assumes that there will always be two attributes but you can easily fix this with further mapping . window.addEventListener load function .. . .. . collect all the elements you want the attributes .. . for into the variable elementsToTrack .. . .. . var elementsToTrack body span body div .. . variable to store all attributes for each element .. . var attributes .. . gather all attributes of selected elements .. . for var i 0 i elementsToTrack.length i++ .. . var currentAttr elementsToTrack i .attributes .. . attributes.push currentAttr .. . .. . .. . print out all the attrbute names and values .. . var result document.getElementById result .. . for var i 0 i attributes.length i++ .. . result.innerHTML + attributes i 0 .name + + attributes i 0 .value + + attributes i 1 .name + + attributes i 1 .value + br .. . .. . .. . .. . .. . script src https : ajax.googleapis.com ajax libs jquery 2.1.1 jquery.min.js script .. . span name test message test2 span .. . span name test message test2 span .. . span name test message test2 span .. . span name test message test2 span .. . span name test message test2 span .. . span name test message test2 span .. . span name test message test2 span .. . div name test message test2 div .. . div name test message test2 div .. . div name test message test2 div .. . div name test message test2 div .. . div id result div",
"Question : I am trying to go through an element and get all the attributes of that element to output them for example an tag may have 3 or more attributes unknown to me and I need to get the names and values of these attributes . I was thinking something along the lines of : .. . .. . Could anyone tell me if this is even possible and if so what the correct syntax would be .. . Answer : The attributes property contains them all : .. . .. . .. . .. . What you can also do is extending .attr so that you can call it like .attr to get a plain object of all attributes : .. . .. . Usage : Comment : Brilliant thank you . That worked perfectly . Comment : You may want to fix it when there s no matched elements e.g . .attr Comment : The attributes collection contains all possible attributes in older IE not just those that have been specified in the HTML . You can work around this by filtering the attributes list using each attributes specified property . Comment : Thanks alot for this saves me alot of time awesome Comment : This is a very good and expected functionality for jQuery .attr method . It s strange jQuery does not include it .",
"Question : I have a collection of checkboxes with generated ids and some of them have an extra attribute . Is it possible to use JQuery to check if an element has a specific attribute For example can I verify if the following element has the attribute myattr The value of the attribute can vary . For example how can I get a collection of all checkboxes that have this attribute without checking one by one Is this possible Comment : As an aside an input is an empty tag that isn t meant to have content inside of it . Perhaps you re not concerned with validating seeing as you have myatttr present.. . Comment : stackoverflow.com questions 1318076 http : stackoverflow.com questions 1318076 jquery-hasattr-checking-to-see-if-there-is-an-attribute-on-an-element Comment : If you already have a collection and you want to filter out only elements with specific attribute - just do it - filtered collection.filter attribute name .. . Answer : Comment : .attr will not return null as suggested by our example instead it ll return undefined . Comment : Works for me in firebug but that may be an firebug thing Comment : Haven t tried it but that s what the documentation says : docs.jquery.com Attributes attr name http : docs.jquery.com Attributes attr name Comment : it works because null undefined",
"Question : I am trying to set a data attribute to a div which previously doesn t have any value . with jQuery the first method data doesn t do anything however the attr method works correctly . http : jsfiddle.net 5bT8p .. . .. . Am I using incorrectly the data function .. . Answer : Is working fine because they have different behaviours jQuery.data : .. . .. . Store arbitrary data associated with the matched elements or return the value at the named data store for the first element in the set of matched elements . so your element will not have any html attribute set but the key-value pair is stored inside the jQuery object-reference . In short the difference is .data is used for storing information without any alteration on the DOM element attr is used to manipulate attributes of an element . Demo : http : jsfiddle.net 5bT8p 3 Comment : Then I misunderstood how it works I should use attr to actually apply the data right Thanks Comment : It depends if you want to manipulate DOM attribute use attr I think is your case if you want to store data use data added in the answer",
"Question : When adding a new paragraph by hitting enter in jwysiwyg the new paragraph automatically has the previous paragraph s attributes assigned to it . Is there a way to disallow the cloning of certain attributes into newly inserted elements I looked in the source of jwysiwyg but am not having much luck finding where the elements get cloned . .. . Answer : I ended up using CKeditor instead . It s definitely bigger probably more than I need but it provided some other things we needed for this project as well . However I had the same problem in CKeditor . All attributes except id were cloned including my custom attribute . In CK I was able to circumvent this by adding node.removeAttribute myattrib false at line 117 of ckeditor source core dom node.js",
"Question : I have a collection of checkboxes with generated ids and some of them have an extra attribute . Is it possible to use JQuery to check if an element has a specific attribute For example can I verify if the following element has the attribute myattr The value of the attribute can vary . For example how can I get a collection of all checkboxes that have this attribute without checking one by one Is this possible Comment : As an aside an input is an empty tag that isn t meant to have content inside of it . Perhaps you re not concerned with validating seeing as you have myatttr present.. . Comment : stackoverflow.com questions 1318076 http : stackoverflow.com questions 1318076 jquery-hasattr-checking-to-see-if-there-is-an-attribute-on-an-element Comment : If you already have a collection and you want to filter out only elements with specific attribute - just do it - filtered collection.filter attribute name .. . Answer : I know it s been a long time since the question was asked but I found the check to be clearer like this : .. . .. . As found on this site here http : blog.routydevelopment.com 2010 07 how-to-check-if-an-attribute-exists-on-your-jquery-selection .. . .. . Documentation about is can be found here http : api.jquery.com is Comment : @HRJ I second that . Comment : This is the best legitimate answer Comment : According to the W3C boolean attributes are defined by presence or absence of the attribute . jQuery provides the method .attr to manipulate attribute values . But how do we add an attribute without value The method you provide to test the presence of an attribute is not described in the jQuery documentation 1.8.2 . Do you know how to add an attribute with jQuery Comment : I agree this is the best answer using jQuery - very clear and concise . I did find myself wondering why jQuery doesn t just have a hasAttribute function and the answer is that native javascript already has one . Any HTML Dom Element has a method hasAttribute attributeName . So you could do : A 0 .hasAttribute myattr @chmike - I don t think you can add an empty attribute using jQuery functions but you can do it with the HTML Dom Element object in a similar way as follows : A 0 .setAttributeNode document.createAttribute myNewAttribute Comment : Just a comment that I like this answer but was confused about the comments asking how to add an attribute without a value . These aren t related to the question or the answer .",
"Question : I want to put all attributes in a Html element into an array : like i have a jQuery Object whichs html looks like this : .. . .. . now one way is to use the xml parser described here http : stackoverflow.com questions 1705504 javascript-jquery-how-do-i-get-an-array-of-all-attributes-in-an-xml-element but then i need to know how to get the html code of my object . the other way is to make it with jquery but how the number of attributes and the names are generic . Thanks .. . .. . Btw : I can t access the element with document.getelementbyid or something similar . .. . Answer : In javascript : .. . .. . To access the attributes names and values :",
"Question : I want to put all attributes in a Html element into an array : like i have a jQuery Object whichs html looks like this : .. . .. . now one way is to use the xml parser described here http : stackoverflow.com questions 1705504 javascript-jquery-how-do-i-get-an-array-of-all-attributes-in-an-xml-element but then i need to know how to get the html code of my object . the other way is to make it with jquery but how the number of attributes and the names are generic . Thanks .. . .. . Btw : I can t access the element with document.getelementbyid or something similar . .. . Answer : You can use this simple plugin as some id .getAttributes Comment : FYI : This only exposes the first element of the selector . Comment : Doesn t work with dynamically added attributes too Comment : I tested and it works with dynamically added attributes chrome",
"Question : I want to put all attributes in a Html element into an array : like i have a jQuery Object whichs html looks like this : .. . .. . now one way is to use the xml parser described here http : stackoverflow.com questions 1705504 javascript-jquery-how-do-i-get-an-array-of-all-attributes-in-an-xml-element but then i need to know how to get the html code of my object . the other way is to make it with jquery but how the number of attributes and the names are generic . Thanks .. . .. . Btw : I can t access the element with document.getelementbyid or something similar . .. . Answer : Because in IE7 elem.attributes lists all possible attributes not only the present ones we have to test the attribute value . This plugin works in all major browsers : .. . .. . Usage : Comment : Typo in this -- el.get 0 at line 6 should be elem.get 0 . Comment : Doesn t work with dynamically added attributes : - Comment : From my experience just now this is actually a bit more complex than this . At least in some cases . For example will this include an attribute named dataFld with value null string value or would it exclude it Comment : It doesn t work with dynamically added properties cause properties and attributes are not always in sync .",
"Question : I want to put all attributes in a Html element into an array : like i have a jQuery Object whichs html looks like this : .. . .. . now one way is to use the xml parser described here http : stackoverflow.com questions 1705504 javascript-jquery-how-do-i-get-an-array-of-all-attributes-in-an-xml-element but then i need to know how to get the html code of my object . the other way is to make it with jquery but how the number of attributes and the names are generic . Thanks .. . .. . Btw : I can t access the element with document.getelementbyid or something similar . .. . Answer : If you just want the DOM attributes it s probably simpler to use the attributes node list on the element itself : .. . .. . Note that this fills the array only with attribute names . If you need the attribute value you can use the nodeValue property : Comment : The problem is that i can t use getElementById it s a jquery object . is there a way that i can make getelementbyclassname inside a context like at jquery Comment : You can use getElementById - var el document.getElementById myObj .attr id Comment : You can get the DOM object from a jQuery object via the get method...e.g . : var obj example .get 0 Comment : @k0ni - could you use e.g . var atts myObject 0 .attributes Comment : Warning : in IE this gets not only specified but all possible attributes",
"Question : I want to put all attributes in a Html element into an array : like i have a jQuery Object whichs html looks like this : .. . .. . now one way is to use the xml parser described here http : stackoverflow.com questions 1705504 javascript-jquery-how-do-i-get-an-array-of-all-attributes-in-an-xml-element but then i need to know how to get the html code of my object . the other way is to make it with jquery but how the number of attributes and the names are generic . Thanks .. . .. . Btw : I can t access the element with document.getelementbyid or something similar . .. . Answer : Simple : Comment : Any downsides of this Comment : Attr.nodeValue is deprecated in favor of value says Google Chrome . So this could be this.name + : + this.value . The Attr Interface http : www.w3.org TR DOM-Level-3-Core core.html ID-637646024",
"Question : I want to put all attributes in a Html element into an array : like i have a jQuery Object whichs html looks like this : .. . .. . now one way is to use the xml parser described here http : stackoverflow.com questions 1705504 javascript-jquery-how-do-i-get-an-array-of-all-attributes-in-an-xml-element but then i need to know how to get the html code of my object . the other way is to make it with jquery but how the number of attributes and the names are generic . Thanks .. . .. . Btw : I can t access the element with document.getelementbyid or something similar . .. . Answer : This approach works well if you need to get all the attributes with name and value in objects returned in an array . Example output : .. . .. . .. . function getElementAttrs el .. . return .slice.call el.attributes .map attr .. . return .. . name : attr.name .. . value : attr.value .. . .. . .. . .. . .. . var allAttrs getElementAttrs document.querySelector span .. . console.log allAttrs .. . .. . .. . span name test message test2 span .. . .. . If you want only an array of attribute names for that element you can just map the results :",
"Question : I am trying to go through an element and get all the attributes of that element to output them for example an tag may have 3 or more attributes unknown to me and I need to get the names and values of these attributes . I was thinking something along the lines of : .. . .. . Could anyone tell me if this is even possible and if so what the correct syntax would be .. . Answer : Here is an overview of the many ways that can be done for my own reference as well as yours : The functions return a hash of attribute names and their values . Vanilla JS : .. . .. . Vanilla JS with Array.reduce .. . .. . Works for browsers supporting ES 5.1 2011 . Requires IE9+ does not work in IE8 . jQuery .. . .. . This function expects a jQuery object not a DOM element . Underscore .. . .. . Also works for lodash . lodash .. . .. . Is even more concise than the Underscore version but only works for lodash not for Underscore . Requires IE9+ is buggy in IE8 . Kudos to @AlJey for that one http : stackoverflow.com a 25946982 508355 . Test page .. . .. . At JS Bin there is a live test page http : jsbin.com vefiku 7 covering all these functions . The test includes boolean attributes hidden and enumerated attributes contenteditable .",
"Question : This question already has an answer here : .. . .. . Event binding on dynamically created elements questions 203198 event-binding-on-dynamically-created-elements 15 answers .. . .. . I use this code to change id to an input type button id avvia timer value AVVIA : .. . .. . I changed id with this .attr id inizia timer Then I want to show id with an alert but doing click on the element with the new id .. . .. . this doesn t work . Why How can I fix Html code : Comment : what is coming in alert box Comment : You need to use a delegated event handler as you bound the event to inizia timer on load before the element existed . See the question I marked as duplicate for the solution . Also note that changing id attributes dynamically is not a very good idea . You should keep id static and add remove classes instead . Comment : Can you include html at Question Comment : The alert doesn t work @nmnsud Comment : I edited the question @guest271314 .. . Answer : You can attach click event to element having new id following changing id .. . .. . .. . avvia timer .click function .. . this .val INIZIA .. . .attr id inizia timer .. . .on click function .. . alert this.id .. . .. . .. . .. . .. . script src https : ajax.googleapis.com ajax libs jquery 2.1.1 jquery.min.js script .. . div id timer .. . input type button id avvia timer value AVVIA .. . input type button id stop timer value FERMA .. . span id tempo timer Timer span .. . div Comment : Uncaught TypeError : .. . .on is not a function on line .on click function Comment : @Fabio97 Is jQuery defined Is javascript at Answer within .ready handler Comment : Yes it is @guest271314 Comment : @Fabio97 Can you create a plnkr plnkr.co http : plnkr.co or jsfiddle jsfiddle.net http : jsfiddle.net to demonstrate Comment : Later I need to use this new id inizia timer .click function",
"Question : I want to put all attributes in a Html element into an array : like i have a jQuery Object whichs html looks like this : .. . .. . now one way is to use the xml parser described here http : stackoverflow.com questions 1705504 javascript-jquery-how-do-i-get-an-array-of-all-attributes-in-an-xml-element but then i need to know how to get the html code of my object . the other way is to make it with jquery but how the number of attributes and the names are generic . Thanks .. . .. . Btw : I can t access the element with document.getelementbyid or something similar . .. . Answer : Use .slice to convert the attributes property to Array .. . .. . The attributes property of DOM nodes is a NamedNodeMap https : developer.mozilla.org en-US docs Web API NamedNodeMap which is an Array-like object . An Array-like object is an object which has a length property and whose property names are enumerated but otherwise has its own methods and does not inherit from Array.prototype https : developer.mozilla.org en-US docs Web JavaScript Reference Global Objects Array prototype .. . .. . The slice method can be used to convert Array-like objects to a new Array https : developer.mozilla.org en-US docs Web JavaScript Reference Global Objects Array slice Array-like . var obj document.querySelector name test .attributes .. . array Array.prototype.slice.call obj .. . console.log array .. . .. . .. . span name test message test2 Open your console . span",
"Question : I want to put all attributes in a Html element into an array : like i have a jQuery Object whichs html looks like this : .. . .. . now one way is to use the xml parser described here http : stackoverflow.com questions 1705504 javascript-jquery-how-do-i-get-an-array-of-all-attributes-in-an-xml-element but then i need to know how to get the html code of my object . the other way is to make it with jquery but how the number of attributes and the names are generic . Thanks .. . .. . Btw : I can t access the element with document.getelementbyid or something similar . .. . Answer : Setter and Getter Use : Comment : Nice I like this answer the best . Fits in perfectly well with jQuery.attr . Comment : Two recommendations : Can you update to use non-minified variable names And I see you re using jQuery.attr in the setter but it would probably be beneficial to use it in the getter too . Comment : Also small thing - there shouldn t be a semicolon after your first for statement .",
"Question : Do someone know what is the best way to replace some string inside a onclick attribute I need to get the current value and replace some text inside parameters . Exemple .. . I have this link : .. . .. . And I want this : .. . .. . In other words I want something like this : .. . .. . And I know I can do this but I need something dynamic retreiving the values of current element : .. . .. . Finally it working when I made a simple demo : http : jsfiddle.net GkWhh 4 .. . .. . Thank you for your solutions Comment : Why do you need something more dynamic Comment : You just need to know what the paramters are you need to change and create a conditional statement within the click function to pass the parameters to your custom myFunction par1 par2 Comment : Why do you need to do this in first place How is this layout being created and why can t you change it Overall this is a wrong approach Comment : @Alexander - Do you have a better approach Comment : I made a simple demo on jsFiddle . But finally it working I will look closer to my real code to see what is missing . Before when I added some objectives see demo http : jsfiddle.net GkWhh 4 the link-to add Solution didnt update the parameters . Thank you for your help .. . Answer : http : jsfiddle.net cj9j7 .. . .. . If you need something more dynamic do not use onclick attributes changing onclick attributes is hackish you can use click method instead . Comment : I would also change the selector to a onclick Comment : It is weird I see that it s working on your jsFiddle . But for me the console show me : Uncaught TypeError : Object function onclick event myfunction parameter1a parameter1b has no method replace Comment : @ShadGagnon That s because some of your a elements don t have onclick attributes I have updated the selector . Comment : I have updated the selector.. . But the problem is still here . I tried to alert the onclick attr like this alert this .attr onclick before the return v.replace 1 g 2 and it show me my function correctly . The console still show : Uncaught TypeError : Object function onclick event myfunction parameter1a parameter1b has no method replace Comment : @ShadGagnon Can you provide a demo on jsfiddle",
"Question : I have a collection of checkboxes with generated ids and some of them have an extra attribute . Is it possible to use JQuery to check if an element has a specific attribute For example can I verify if the following element has the attribute myattr The value of the attribute can vary . For example how can I get a collection of all checkboxes that have this attribute without checking one by one Is this possible Comment : As an aside an input is an empty tag that isn t meant to have content inside of it . Perhaps you re not concerned with validating seeing as you have myatttr present.. . Comment : stackoverflow.com questions 1318076 http : stackoverflow.com questions 1318076 jquery-hasattr-checking-to-see-if-there-is-an-attribute-on-an-element Comment : If you already have a collection and you want to filter out only elements with specific attribute - just do it - filtered collection.filter attribute name .. . Answer : This will work : Comment : see link : stackoverflow.com questions 1318076 http : stackoverflow.com questions 1318076 jquery-hasattr-checking-to-see-if-there-is-an-attribute-on-an-element Comment : @RetroCoder what s your point about your link This test seems quite good especially because often you use this . something when here you can do this.hasAttribute .. . directly and do not care about older browsers of course .",
"Question : I have a collection of checkboxes with generated ids and some of them have an extra attribute . Is it possible to use JQuery to check if an element has a specific attribute For example can I verify if the following element has the attribute myattr The value of the attribute can vary . For example how can I get a collection of all checkboxes that have this attribute without checking one by one Is this possible Comment : As an aside an input is an empty tag that isn t meant to have content inside of it . Perhaps you re not concerned with validating seeing as you have myatttr present.. . Comment : stackoverflow.com questions 1318076 http : stackoverflow.com questions 1318076 jquery-hasattr-checking-to-see-if-there-is-an-attribute-on-an-element Comment : If you already have a collection and you want to filter out only elements with specific attribute - just do it - filtered collection.filter attribute name .. . Answer : In addition to selecting all elements with an attribute someAttribute or input someAttribute you can also use a function for doing boolean checks on an object such as in a click handler : .. . .. . if this.hasAttribute myattr .. .",
"Question : I want to put all attributes in a Html element into an array : like i have a jQuery Object whichs html looks like this : .. . .. . now one way is to use the xml parser described here http : stackoverflow.com questions 1705504 javascript-jquery-how-do-i-get-an-array-of-all-attributes-in-an-xml-element but then i need to know how to get the html code of my object . the other way is to make it with jquery but how the number of attributes and the names are generic . Thanks .. . .. . Btw : I can t access the element with document.getelementbyid or something similar . .. . Answer : Roland Bouman http : stackoverflow.com users 235058 roland-bouman s answer http : stackoverflow.com questions 2048720 get-all-attributes-from-a-html-element-with-javascript-jquery 27865269 answer-2048786 is the best simple Vanilla way . I noticed some attempts at jQ plugs but they just didn t seem full enough to me so I made my own . The only setback so far has been inability to access dynamically added attrs without directly calling elm.attr dynamicAttr . However this will return all natural attributes of a jQuery element object . Plugin uses simple jQuery style calling : .. . .. . You can also add a second string param for getting just one specific attr . This isn t really needed for one element selection as jQuery already provides elm .attr name however my version of a plugin allows for multiple returns . So for instance a call like .. . .. . Will result in an array return of objects . Each object will look like : .. . .. . Plugin .. . .. . Complied .. . .. . jsFiddle .. . .. . http : jsfiddle.net SpYk3 ygxxLx27 .. . .. . .. . BEGIN PLUGIN .. . function .. . .getAttrs .extend .. . getAttrs : function .. . var a arguments .. . c b .. . if a.length .. . for x in a switch typeof a x .. . case object : .. . a x instanceof f b a x .. . break .. . case string : .. . b c c a x : b a x .. . .. . if b instanceof f .. . if 1 b.length .. . for var d e 0 g b 0 .attributes h g.length e h e++ a g e d a.name a.value .. . b.data attrList d .. . c all c d b.attr c .. . for x in d d.length++ .. . else d c all c b.each function a .. . a .. . elm : this .. . index : this .index .. . .. . a c this .attr c .. . d.push a .. . : b.each function a .. . elmRet .. . for var b 0 c this.attributes e c.length b e b++ a c b elmRet a.name a.value .. . d.push .. . elm : this .. . index : this .index .. . attrs : elmRet .. . .. . this .data attrList d .. . for x in elmRet elmRet.length++ .. . .. . return d .. . .. . return Error : Cannot find Selector .. . .. . .fn.extend .. . getAttrs : function .. . var a this .. . if arguments.length .. . for x in arguments a.push arguments x .. . return .getAttrs.apply a .. . .. . .. . jQuery .. . END PLUGIN .. . -------------------- .. . bob .attr bob bill .. . console.log bob .. . console.log new Array 50 .join - .. . console.log bob .getAttrs id .. . console.log new Array 50 .join - .. . console.log .getAttrs bob .. . console.log new Array 50 .join - .. . console.log .getAttrs bob name .. . console.log new Array 50 .join - .. . console.log .getAttrs class .. . console.log new Array 50 .join - .. . console.log .getAttrs p .. . console.log new Array 50 .join - .. . console.log bob .getAttrs all .. . console.log .getAttrs all .. . .. . .. . script src https : ajax.googleapis.com ajax libs jquery 1.9.1 jquery.min.js script .. . All of below is just for stuff for plugin to test on . See developer console for more details . hr .. . div id bob class wmd-button-bar ul id wmd-button-row-27865269 class wmd-button-row style display : none .. . div class post-text itemprop text .. . p Roland Bouman s answer is the best simple Vanilla way . I noticed some attempts at jQ plugs but they just didn t seem full enough to me so I made my own . The only setback so far has been inability to access dynamically added attrs without directly calling code elm.attr dynamicAttr code . However this will return all natural attributes of a jQuery element object . p .. . .. . p Plugin uses simple jQuery style calling : p .. . .. . pre class default prettyprint prettyprinted code span class pln span span class pun span span class pln elm span span class pun . span span class pln getAttrs span span class pun span span class pln .. . span span class com OR span span class pln .. . span span class pun . span span class pln getAttrs span span class pun span span class pln elm span span class pun span code pre .. . .. . p You can also add a second string param for getting just one specific attr . This isn t really needed for one element selection as jQuery already provides code elm .attr name code however my version of a plugin allows for multiple returns . So for instance a call like p .. . .. . pre class default prettyprint prettyprinted code span class pln span span class pun . span span class pln getAttrs span span class pun span span class str span span class pun span span class pln span span class str class span span class pun span code pre .. . .. . p Will result in an array code code return of objects code code . Each object will look like : p .. . .. . pre class default prettyprint prettyprinted code span class pun span span class pln span span class kwd class span span class pun : span span class pln span span class str classes names span span class pun span span class pln elm span span class pun : span span class pln span span class pun span span class pln elm span span class pun span span class pln index span span class pun : span span class pln i span span class pun span span class pln span span class com index is elm .index span code pre .. . div .. . div"
]
} | [
"yes-answer-long",
"yes-answer-short"
] | html | UNK_RELATION |
encapsulation@s@80 | encapsulation -- in oop mechanism for restricting access to some of the object @placeholder components or a design principle encouraging decoupling from implementation details . | {
"confidence": [
44.778263092041016,
41.36370849609375,
40.5223388671875,
37.052520751953125,
36.78175354003906,
36.3243293762207,
33.637081146240234,
33.52395248413086,
33.52395248413086,
33.169166564941406,
32.023582458496094,
31.769039154052734,
31.175243377685547,
31.034759521484375,
30.8758544921875,
30.400808334350586,
30.306884765625,
30.003952026367188,
29.880239486694336,
29.86359405517578,
29.634618759155273,
29.603469848632812,
29.586505889892578,
29.34014320373535,
29.32270050048828,
29.16166877746582,
28.965787887573242,
28.965787887573242,
28.81668472290039,
28.683025360107422,
28.535720825195312,
28.535720825195312,
28.245285034179688,
28.234424591064453,
28.234424591064453,
28.234424591064453,
28.116130828857422,
27.898771286010742,
27.760780334472656,
27.48786163330078,
27.45760726928711,
27.45760726928711,
27.45760726928711,
27.39826011657715,
27.217060089111328,
27.191715240478516,
27.12653923034668,
26.969547271728516,
26.911827087402344,
26.784778594970703,
26.690731048583984,
26.557857513427734,
26.49425506591797,
26.489185333251953,
26.34529685974121,
26.341167449951172,
26.326265335083008,
26.326265335083008,
26.25103759765625,
26.06431770324707,
26.061262130737305,
26.0036563873291,
25.916584014892578,
25.684627532958984,
25.684627532958984,
25.65530014038086,
25.640846252441406,
25.533010482788086,
25.408451080322266,
25.33645248413086,
25.267017364501953,
25.267017364501953,
25.267017364501953,
25.076736450195312,
24.876083374023438,
24.831905364990234,
24.586009979248047,
24.504554748535156,
24.502046585083008,
24.502046585083008,
24.451171875,
24.347793579101562,
24.337997436523438,
24.331056594848633,
24.293930053710938,
24.2215576171875,
24.219268798828125,
24.147212982177734,
23.99742317199707,
23.93851661682129,
23.895458221435547,
23.87159538269043,
23.86039161682129,
23.819536209106445
],
"content": [
"A language mechanism for restricting access to some of the object s components .",
".. . .. . Initially Information Data Hiding was considered the part of Encapsulation and the definitions of Encapsulation would be as : .. . .. . A language mechanism for restricting access to some of the object s components .",
"Information Hiding : .. . .. . -- mechanism for restricting access to some of the object s components .",
"This wikipedia article http : en.wikipedia.org wiki Encapsulation 28computer science 29 defines encapsulation in the following way : .. . .. . A language mechanism for restricting access to some of the object s components .",
"Encapsulation http : en.wikipedia.org wiki Encapsulation object-oriented programming is the packing of data and functions operating on that data into a single component and restricting the access to some of the object s components .",
"Encapsulation protects implementation details of classes from external access .",
"Encapsulation is hiding implementation details .",
"This exposes the dependency being injected and violates the OOP principle of encapsulation .",
"This exposes the dependency being injected and violates the OOP principle of encapsulation .",
"Encapsulation is about hiding implementation details .",
".. . .. . An interface generated via encapsulation hides implementation details .",
"Encapsulation : Is hiding unwanted un-expected propriety implementation details from the actual users of object .",
"You maximize encapsulation by minimizing the exposure of implementation details .",
"Encapsulation is simply putting together related data and the methods that act on that data and restricting outside access to only the components that contribute to its essential characteristics i.e .",
"Is the answer : Encapsulation is a mechanism to hide some information from the client .",
"The primary use for encapsulation is to hide implementation details from calling code .",
"Is the OOP concept Encapsulation followed here",
"I ve always read about encapsulation being purely about the ability to restrict access to certain components of your code such as access modifiers in OOP languages .",
".. . .. . Encapsulation is one of the four fundamental OOP concepts .Encapsulation is the technique of making the fields in a class private and providing access to the fields via public methods .",
".. . Me : Encapsulation is a mechanism to hide information from the client .",
"Encapsulation is a good and important principle .",
"2.Abstraction solves the problem in the design side while Encapsulation is the Implementation .",
"Most answers here focus on OOP but encapsulation begins much earlier every method is an encapsulation : .. . .. . Here distance encapsulates the calculation of the euclidean-distance between two points in a plane : it hides implementation details .",
"Encapsulation is just wrapping some data in an object .",
"encapsulation is all about protecting invariants and hiding of implementation details .",
"If this design is not OOP by some definition of OOP then OK idiomatic C++ is not OOP by that definition .",
"Encapsulation is hiding away implementation details of a service or abstraction .",
"Encapsulation is hiding away implementation details of a service or abstraction .",
".. . .. . Short Answer .. . .. . Encapsulation - Hiding and or restricting access to certain parts of a system while exposing the necessary interfaces .",
"To reiterate some discussions in the comments : .. . .. . No encapsulation is not the most important thing in OOP .",
"just because the OOP rule : Data Hiding and Encapsulation .",
"Also there are many other reasons but the root is Encapsulation in OOP .",
"Encapsulation has to do with disallowing access to or knowledge of internal structures of an implementation .",
"Encapsulation means hiding the internal details or mechanics of how an object does something .",
"But the details of this object like data structures.. . can be hidden via encapsulation .",
"Abstraction means to show only the necessary details to the client of the object .. . .. . Actually that is encapsulation .",
"my 2c .. . .. . the purpose of encapsulation is to hide implementation details from the user of your class e.g .",
"Quoting from Wikipedia article http : en.wikipedia.org wiki Encapsulation 28object-oriented programming 29 : .. . .. . In a programming language encapsulation is used to refer to one of two related but distinct notions and sometimes to the combination thereof : .. . .. . A language mechanism for restricting access to some of the object s components .",
"Encapsulation means restricting access to some classes components .",
"Abstract classes are NOT the equivalent of Abstraction principle in Object Oriented Analysis and Design .",
"Encapsulation means hiding the implementation details and only exposing the interface .",
"I guess hiding implementation details relates to abstraction not encapsulation .",
"The key feature for encapsulation is shared contract designed to hide implementation details .",
"The concept of encapsulation is a design technique that relates with information-hiding .",
"Encapsulation is a process of hiding all the internal details of an object from the outside real world .",
"Abstraction--- Hiding Implementation--at Design---Using Interface Abstract calsses .. . .. . Encapsulation--Hiding Data --At Development---Using access modifiers public private",
"Encapsulation is the mechanism by which Abstraction is implemented .",
"Access modifiers are good for encapsulation .",
"making the object private and implementation of logic in setter and getter is called ENCAPSULATION .",
"After all they break the Object-Oriented principle of encapsulation where getters and setters are allowed and encouraged .",
"Encapsulation solves the problem in the implementation level .",
"--- Encapsulation is an OOP concept where object state class fields and it s behavior methods is wrapped together .",
"Encapsulation is a technique for hiding implementation details from the caller whereas abstraction is more a design philosophy involving creating objects that are analogous to familiar objects processes to aid understanding .",
"The creator of C++ says that isn t broking any encapsulation principle and I will quote him : .. . .. . Does friend violate encapsulation",
"Encapsulation is hiding an implementation detail from something using that implementation .",
"Encapsulation : Hiding of object internals .",
"Does IoC always break encapsulation and therefore OOP",
"Does IoC always break encapsulation and therefore OOP",
"Encapsulation doesn t really apply as in the component service oriented world there is no implementation type for details to leak from .",
"People seem to be mixing up details of object orientation with encapsulation which is a much older and wider concept .",
"It is decoupling internal data representation and implementation from the public interface .",
"Encapsulation is the mechanism that binds together code and the data it manipulates and keeps both safe from outside interference and misuse .",
"Can anyone else confirm the difference is abstraction is at design level encapsulation is at the implementation level",
"Different implementations of the same interface can exist while the details of every implementation are hidden by encapsulation .",
"Encapsulation is hiding the implementation details which may or may not be for generic or specialized behavior s .",
"Another appliance of the getter and setters is restricting the access to the variable .",
"An encapsulation means that when you create a class this itself means that you realize encapsulation principle .",
"InformationHiding is a design principle .",
"Encapsulation refers to hidden data that is manipulated only by the methods on the same object it what makes sense of encapsulation : .. . .. . encapsulation in Java is a mechanism of wrapping the data variables and code acting on the data methods together as as single unit .",
"As I understood from the documents I have read I wrote an example program for encapsulation concept in OOP .",
"Encapsulation helps hide the implementation behind an interface .",
"Encapsulation- Inner layout used in terms of implementation .",
"Implementation Difference Between Encapsulation and Abstraction .. . .. . 1 .",
"Encapsulation is not about if it will effect the only s object or the every created object .",
"In otherwords Encapsulation is a technique used to protect the information in an object from the other object .",
"Just to prevent some confusions modern versions of Ada has OOP features and encapsulation could be simply achieved in C as well .",
"As mentioned encapsulation isn t the same as protecting access .",
"Encapsulation aims to protect certain components from outside influences and knowledge as well as expose components which other things should interface with .",
"Information Hiding - It is the process of hiding the implementation details of an object .",
"At this time the caller of the object knows nothing of the implementation details .",
"Indeed from the OOP position one could argue that fields are better than blind properties as a lack of encapsulation is clearer than something that pretends to encapsulation and then blows it away .",
"In this case encapsulation means we restrict some properties .",
"With Access Modifiers .. . .. . In Java encapsulation is implemented by hiding details using the accessibility modifiers i.e .",
"I don t think the mechanism of IoC will violate Encapsulation .",
"Up to this point it would appear as-if encapsulation depended entirely from the capacity of a programming language to hide details and therefore that it could not be achieved without access modifiers right",
"Encapsulation is not about hiding methods consider answers to this question : stackoverflow.com questions 18300953 http : stackoverflow.com questions 18300953 why-encapsulation-is-important-feature-of-oop-languages",
"Abstraction lets you focus on what the object does instead of how it does it .. . Encapsulation means hiding the internal details or mechanics of how an object does something .",
"There is some similarity overlap between the concepts but the best way to remember it is like this : Encapsulation is more about hiding the details whereas abstraction is more about generalizing the details .",
"Abstraction http : en.wikipedia.org wiki Abstraction computer-science is a mechanism which represent the essential features without including implementation details .",
"Encapsulation .. . .. . Encapsulation from what you have learnt googling around is a concept of combining the related data and operations in a single capsule or what we could say a class in OOP such that no other program can modify the data it holds or method implementation it has at a particular instance of time .",
"Encapsulation is a technique used for hiding the properties and behaviors of an object and allowing outside access only as appropriate .",
"Here The internal engine represents the encapsulation process while the wheel components represent the Dependency Inversion Principles DIP in the car design .",
"A mechanism that prevents the data of a particular objects safe from intentional or accidental misuse by external functions is called data Encapsulation .. . .. . The act of representing essential features without including the background details or explanations is known as abstraction",
"Because inheritance exposes a subclass to details of its parent s implementation it s often said that inheritance breaks encapsulation ."
]
} | {
"confidence": [
58.028568267822266,
50.772727966308594,
48.75668716430664,
48.56359100341797,
48.11872482299805,
47.57014465332031,
46.278045654296875,
46.19481658935547,
45.566532135009766,
44.67668151855469,
44.66443634033203,
44.20900344848633,
43.81084442138672,
43.75339889526367,
43.67626190185547,
43.11619186401367,
43.0831184387207,
42.86819839477539,
42.85449981689453,
42.46986389160156
],
"content": [
"Question : What is the precise difference between encapsulation and abstraction .. . Answer : Many answers and their examples are misleading . Encapsulation http : en.wikipedia.org wiki Encapsulation object-oriented programming is the packing of data and functions operating on that data into a single component and restricting the access to some of the object s components . Encapsulation means that the internal representation of an object is generally hidden from view outside of the object s definition . Abstraction http : en.wikipedia.org wiki Abstraction computer-science is a mechanism which represent the essential features without including implementation details . Encapsulation : -- Information hiding . Abstraction : -- Implementation hiding . Example : .. . .. . Internal representation of any object of foo class is hidden outside the class . -- Encapsulation . Implementation of method add is hidden . -- Abstraction . Use of foo obj object above is also an example of abstraction as it is used without any details of its implementation .",
"Question : What exactly are the differences between Ecapsulation and Information Hiding Well i know that making fields private and then making setter and getter of the fields is ecapsulation.However does encapsulation mean just this suppose i have a class as described below . Now is the class IsThisEncapsulation an example of Encapsulation Now would making the field age in the above class private achieve informaton hiding Could you please give me clear examples that will help me distinguish these concepts clearly Comment : is the class IsThisEncapsulation an example of Encapsulation you have not really encapsulated anything since you provide getters and setters that can read and write the state of your class directly.. . Comment : @assylias Making age public is what breaks encapsulation not providing getter and setter.. . Comment : @hyde I had not noticed that detail Indeed Comment : @hyde i read that encapsulation means bundling data and methods together if that is so the class that i have made IsThisEncapsulation does achieve encapsulation.Am i correct Or have i read about encapsulation incorrectly . Comment : @user1720616 For encapsulation to be meaningful you need some invariants conditions which must remain true . For age you could define invariant : age can t be negative . So if it s possible to set negative age instead of getting exception or whatever as it obviously is if age is public field then age is not encapsulated properly . Another might be if you have many fields which depend on each other so you can t just modify one field you need code which does proper modifications to all fields that need it . .. . Answer : Well i know that making fields private and then making setter and getter of the fields is ecapsulation . However does encapsulation mean just this --- Encapsulation is an OOP concept where object state class fields and it s behavior methods is wrapped together . Java provides encapsulation using class . Information Hiding : .. . .. . -- mechanism for restricting access to some of the object s components . Your above example is the example of Information Hiding if you make age private . .. . .. . Initially Information Data Hiding was considered the part of Encapsulation and the definitions of Encapsulation would be as : .. . .. . A language mechanism for restricting access to some of the object s components . A language construct that facilitates the bundling of data with the methods or other functions operating on that data . second definition is motivated by the fact that in many OOP languages hiding of components is not automatic or can be overridden thus information-hiding is defined as a separate notion by those who prefer the second definition . Reference : wikipage http : en.wikipedia.org wiki Encapsulation 28object-oriented programming 29",
"Question : I was recently having a debate about the Dependency Inversion Principle Inversion of Control and Dependency Injection . In relation to this topic we were debating whether these principles violate one of the pillars of OOP namely Encapsulation . My understanding of these things is : .. . .. . The Dependency Inversion Principle implies that objects should depend upon abstractions not concretions - this is the fundamental principle upon which the Inversion of Control pattern and Dependency Injection are implemented . Inversion of Control is a pattern implementation of the Dependency Inversion Principle where abstract dependencies replace concrete dependencies allowing concretions of the dependency to be specified outside of the object . Dependency Injection is a design pattern that implements Inversion of Control and provides dependency-resolution . Injection occurs when a dependency is passed to a dependent component . In essence the Dependency Injection pattern provides a mechanism for coupling dependency abstractions with concrete implementations . Encapsulation is the process whereby data and functionality that is required by a higher level object is insulated away and inaccessible thus the programmer is unaware of how an object is implemented . The debate got to a sticking point with the following statement : .. . .. . IoC isn t OOP because it breaks Encapsulation .. . .. . Personally I think that the Dependency Inversion Principle and the Inversion of Control pattern should be observed religiously by all OOP developers - and I live by the following quote : .. . .. . If there is potentially more than one way to skin a cat then do not behave like there is only one . Example 1 : .. . .. . Here we see an example of encapsulation . The programmer only has to call Main and the cat will be skinned but what if he wanted to skin the cat with say a set of razor sharp teeth Example 2 : .. . .. . Here we observe the Dependency Inversion Principle and Inversion of Control since an abstract ICatSkinner is provided in order to allow concrete dependencies to be passed in by the programmer . At last there is more than one way to skin a cat .. . .. . The quarrel here is does this break encapsulation technically one could argue that .SkinTheCat is still encapsulated away within the Main method call so the programmer is unaware of the behavior of this method so I do not think this breaks encapsulation . Delving a little deeper I think that IoC containers break OOP because they use reflection but I am not convinced that IoC breaks OOP nor am I convinced that IoC breaks encapsulation . In fact I d go as far as to say that : .. . .. . Encapsulation and Inversion of Control coincide with each other happily allowing programmers to pass in only the concretions of a dependency whilst hiding away the overall implementation via encapsulation . Questions : .. . .. . Is IoC a direct implementation of the Dependency Inversion Principle Does IoC always break encapsulation and therefore OOP Should IoC be used sparingly religiously or appropriately What is the difference between IoC and an IoC container Comment : Being a question about conceptual questions about software development you might have more luck getting this answered on programmers.stackexchange.com http : programmers.stackexchange.com . As written this is a request for discussion which isn t the forte of a Q A site like SO . Comment : Poor kitty . We ve had to abstract away the skinning of you as there are so many ways to do it : Comment : @neontapir discussion requests are very poor fit for Programmers - it would be quickly voted down and closed over there see On discussions and why they don t make good questions http : meta.programmers.stackexchange.com q 6742 31260 . Recommended reading : What goes on Programmers.SE A guide for Stack Overflow http : meta.programmers.stackexchange.com q 7182 31260 Comment : Is IoC a direct implementation of the Dependency Inversion Principle Possible duplicate of stackoverflow.com q 6766056 126014 http : stackoverflow.com q 6766056 126014 Comment : What is the difference between IoC and an IoC container Duplicate of programmers.stackexchange.com q 131451 19115 http : programmers.stackexchange.com q 131451 19115 .. . Answer : Encapsulation does not contradict with Dependency Inversion Principles in Object-Oriented Programming world . For example in a car design you will have an internal engine which will be encapsulated from outside world and also wheels that can be replaced easily and considered as outside component of the car . The car has specification interface to rotate the shaft of the wheels and the wheels component implements part that interact with the shaft . Here The internal engine represents the encapsulation process while the wheel components represent the Dependency Inversion Principles DIP in the car design . With DIP basically we prevent building a monolithic object and instead we make our object composable . Can you image you build a car where you cannot replace the wheels because they are built-in into the car . Also you can read more about Dependency Inversion Principles in more details in my blog Here http : kusnaditjung.blogspot.co.uk 2016 05 dependency-inversion-principle-dip.html .",
"Question : If I understand correctly the typical mechanism for Dependency Injection is to inject either through a class constructor or through a public property member of the class . This exposes the dependency being injected and violates the OOP principle of encapsulation . Am I correct in identifying this tradeoff How do you deal with this issue Please also see my answer to my own question below . Comment : this is a very smart question imho Comment : Answering this question first requires an argument about what encapsulation means . Comment : Encapsulation is maintained by the interfaces . They expose the essential characteristics of the object and hide details such as dependencies . This allows us to open-up the classes to some extent as to provide a more flexible configuration . .. . Answer : PS . By providing Dependency Injection you do not necessarily break Encapsulation . Example : .. . .. . Client code does not know implementation details still .",
"Question : I ve read the other posts discussing abstraction and encapsulation but I m not confident I understand them or maybe I understand them but feel unsatisfied with the clarity of their content . Here are my understandings of abstraction and encapsulation . In what regards are they accurate inaccurate complete incomplete Abstractions are data types created by programmers to extend a language when primitive data types are insufficient . Like primitive data types abstractions have specifications which list the inputs they require and the outputs they return but the specifications do not overwhelm programmers with the methods functions and variables used to operate on the inputs . A class is an example of an abstraction . An API is another example of an abstraction . Encapsulation is the state of having abstract data types i.e . classes isolated from each other so their methods functions and variables do not conflict with each other and so programmers can easily reuse an existing class in other programs without being concerned that doing so would interfere with the rest of the program presuming the programmer correctly provides the required inputs and correctly handles the data that get returns . Comment : You seem to be quoting something - what .. . Answer : I ve never come across that definition of encapsulation before . That definition sounds more like what namespaces are for . I ve always read about encapsulation being purely about the ability to restrict access to certain components of your code such as access modifiers in OOP languages . However there seems to be a two definitions of encapsulation on wikipedia which is news to me : .. . .. . Encapsulation is the packing of data and functions into a single component . The features of encapsulation are supported using classes in most object-oriented programming-languages although other alternatives also exist . It allows selective hiding of properties and methods in an object by building an impenetrable wall to protect the code from accidental corruption . .. . In programming-languages encapsulation is used to refer to one of two related but distinct notions and sometimes to the combination thereof : .. . .. . 1 . A language mechanism for restricting access to some of the object s components . 2 . A language construct that facilitates the bundling of data with the methods or other functions operating on that data . .. . Some programming language researchers and academics use the first meaning alone or in combination with the second as a distinguishing feature of object-oriented programming while other programming-languages which provide lexical closures view encapsulation as a feature of the language orthogonal to object orientation . .. . The second definition is motivated by the fact that in many OOP languages hiding of components is not automatic or can be overridden thus information-hiding is defined as a separate notion by those who prefer the second definition . source https : en.wikipedia.org wiki Encapsulation computer programming .. . .. . So I guess I ve always defined encapsulation in terms of point 1 but it looks like some people define it as the ability to bundle methods and data together and term 1 information-hiding .",
"Question : If I understand correctly the typical mechanism for Dependency Injection is to inject either through a class constructor or through a public property member of the class . This exposes the dependency being injected and violates the OOP principle of encapsulation . Am I correct in identifying this tradeoff How do you deal with this issue Please also see my answer to my own question below . Comment : this is a very smart question imho Comment : Answering this question first requires an argument about what encapsulation means . Comment : Encapsulation is maintained by the interfaces . They expose the essential characteristics of the object and hide details such as dependencies . This allows us to open-up the classes to some extent as to provide a more flexible configuration . .. . Answer : This exposes the dependency being injected and violates the OOP principle of encapsulation . Well frankly speaking everything violates encapsulation . : It s a kind of a tender principle that must be treated well . So what violates encapsulation Inheritance does . Because inheritance exposes a subclass to details of its parent s implementation it s often said that inheritance breaks encapsulation . Gang of Four 1995 : 19 .. . .. . Aspect-oriented programming http : en.wikipedia.org wiki Aspect-oriented programming does . For example you register onMethodCall callback and that gives you a great opportunity to inject code to the normal method evaluation adding strange side-effects etc . Friend declaration in C++ does . Class extention in Ruby does . Just redefine a string method somewhere after a string class was fully defined . Well a lot of stuff does . Encapsulation is a good and important principle . But not the only one . Comment : Those are my principles and if you don t like them.. . well I have others . Groucho Marx Comment : I think this is sort of the point . It s dependant injection vs encapsulation . So only use dependant injection where it gives significant benifits . It s the DI everywhere that gives DI a bad name",
"Question : I was recently having a debate about the Dependency Inversion Principle Inversion of Control and Dependency Injection . In relation to this topic we were debating whether these principles violate one of the pillars of OOP namely Encapsulation . My understanding of these things is : .. . .. . The Dependency Inversion Principle implies that objects should depend upon abstractions not concretions - this is the fundamental principle upon which the Inversion of Control pattern and Dependency Injection are implemented . Inversion of Control is a pattern implementation of the Dependency Inversion Principle where abstract dependencies replace concrete dependencies allowing concretions of the dependency to be specified outside of the object . Dependency Injection is a design pattern that implements Inversion of Control and provides dependency-resolution . Injection occurs when a dependency is passed to a dependent component . In essence the Dependency Injection pattern provides a mechanism for coupling dependency abstractions with concrete implementations . Encapsulation is the process whereby data and functionality that is required by a higher level object is insulated away and inaccessible thus the programmer is unaware of how an object is implemented . The debate got to a sticking point with the following statement : .. . .. . IoC isn t OOP because it breaks Encapsulation .. . .. . Personally I think that the Dependency Inversion Principle and the Inversion of Control pattern should be observed religiously by all OOP developers - and I live by the following quote : .. . .. . If there is potentially more than one way to skin a cat then do not behave like there is only one . Example 1 : .. . .. . Here we see an example of encapsulation . The programmer only has to call Main and the cat will be skinned but what if he wanted to skin the cat with say a set of razor sharp teeth Example 2 : .. . .. . Here we observe the Dependency Inversion Principle and Inversion of Control since an abstract ICatSkinner is provided in order to allow concrete dependencies to be passed in by the programmer . At last there is more than one way to skin a cat .. . .. . The quarrel here is does this break encapsulation technically one could argue that .SkinTheCat is still encapsulated away within the Main method call so the programmer is unaware of the behavior of this method so I do not think this breaks encapsulation . Delving a little deeper I think that IoC containers break OOP because they use reflection but I am not convinced that IoC breaks OOP nor am I convinced that IoC breaks encapsulation . In fact I d go as far as to say that : .. . .. . Encapsulation and Inversion of Control coincide with each other happily allowing programmers to pass in only the concretions of a dependency whilst hiding away the overall implementation via encapsulation . Questions : .. . .. . Is IoC a direct implementation of the Dependency Inversion Principle Does IoC always break encapsulation and therefore OOP Should IoC be used sparingly religiously or appropriately What is the difference between IoC and an IoC container Comment : Being a question about conceptual questions about software development you might have more luck getting this answered on programmers.stackexchange.com http : programmers.stackexchange.com . As written this is a request for discussion which isn t the forte of a Q A site like SO . Comment : Poor kitty . We ve had to abstract away the skinning of you as there are so many ways to do it : Comment : @neontapir discussion requests are very poor fit for Programmers - it would be quickly voted down and closed over there see On discussions and why they don t make good questions http : meta.programmers.stackexchange.com q 6742 31260 . Recommended reading : What goes on Programmers.SE A guide for Stack Overflow http : meta.programmers.stackexchange.com q 7182 31260 Comment : Is IoC a direct implementation of the Dependency Inversion Principle Possible duplicate of stackoverflow.com q 6766056 126014 http : stackoverflow.com q 6766056 126014 Comment : What is the difference between IoC and an IoC container Duplicate of programmers.stackexchange.com q 131451 19115 http : programmers.stackexchange.com q 131451 19115 .. . Answer : I will try to answer your questions According to my understanding : .. . .. . Is IoC a direct implementation of the Dependency Inversion Principle we can t label IoC as the direct implementation of DIP as DIP focuses on making higher level modules depending on the abstraction and not on the concretion of lower level modules . But rather IoC is an implementation of Dependency Injection . Does IoC always break encapsulation and therefore OOP I don t think the mechanism of IoC will violate Encapsulation . But can make the system become Tightly coupled . Should IoC be used sparingly religiously or appropriately IoC can be used as a in many patterns like Bridge Pattern where seperating Concretion from Abstraction improves the code . Thus can be used in order to achieve DIP . What is the difference between IoC and an IoC container IoC is a mechanism of Dependency Inversion but containers are those which uses IoC .",
"Question : Searching turns up a simple definition : data hiding . But consider the following two examples : .. . .. . 1 First Example : .. . .. . 2 Second Example : .. . .. . Question : .. . In both the above specified examples there is no data hiding as age is either being modified by others or being viewed by others . Where is the data hiding How does encapsulation help in the above examples Comment : Did you read the Wikipedia article : en.wikipedia.org wiki http : en.wikipedia.org wiki Encapsulation object-oriented programming Comment : @Reno Encapsulation doesn t means to just to protect data from modification . What if I added one more setter method... . based on your explanation it means that encapsulation means read only properties of class ...which is not....i sure... . Comment : Also see : Why Properties Matter http : csharpindepth.com Articles Chapter8 PropertiesMatter.aspx by Jon Skeet .. . Answer : There is more to Encapsulation than data hiding . Encapsulation allows you to keep all the data and the functionality pertinent to an entity with this entity . Levels of visibility of this data is a related but not identical concept . E.g . an Employee object caries all employee data and functionality methods with it . Note that this is not enforced but enabled by the OO languages . This may sound natural to you if you were born into the OO era but this was the big leap from Functional Programming to OOP both conceptual design and in languages that support this paradigm . Quoting from Wikipedia article http : en.wikipedia.org wiki Encapsulation 28object-oriented programming 29 : .. . .. . In a programming language encapsulation is used to refer to one of two related but distinct notions and sometimes to the combination thereof : .. . .. . A language mechanism for restricting access to some of the object s components . A language construct that facilitates the bundling of data with the methods or other functions operating on that data .",
"Question : I was recently having a debate about the Dependency Inversion Principle Inversion of Control and Dependency Injection . In relation to this topic we were debating whether these principles violate one of the pillars of OOP namely Encapsulation . My understanding of these things is : .. . .. . The Dependency Inversion Principle implies that objects should depend upon abstractions not concretions - this is the fundamental principle upon which the Inversion of Control pattern and Dependency Injection are implemented . Inversion of Control is a pattern implementation of the Dependency Inversion Principle where abstract dependencies replace concrete dependencies allowing concretions of the dependency to be specified outside of the object . Dependency Injection is a design pattern that implements Inversion of Control and provides dependency-resolution . Injection occurs when a dependency is passed to a dependent component . In essence the Dependency Injection pattern provides a mechanism for coupling dependency abstractions with concrete implementations . Encapsulation is the process whereby data and functionality that is required by a higher level object is insulated away and inaccessible thus the programmer is unaware of how an object is implemented . The debate got to a sticking point with the following statement : .. . .. . IoC isn t OOP because it breaks Encapsulation .. . .. . Personally I think that the Dependency Inversion Principle and the Inversion of Control pattern should be observed religiously by all OOP developers - and I live by the following quote : .. . .. . If there is potentially more than one way to skin a cat then do not behave like there is only one . Example 1 : .. . .. . Here we see an example of encapsulation . The programmer only has to call Main and the cat will be skinned but what if he wanted to skin the cat with say a set of razor sharp teeth Example 2 : .. . .. . Here we observe the Dependency Inversion Principle and Inversion of Control since an abstract ICatSkinner is provided in order to allow concrete dependencies to be passed in by the programmer . At last there is more than one way to skin a cat .. . .. . The quarrel here is does this break encapsulation technically one could argue that .SkinTheCat is still encapsulated away within the Main method call so the programmer is unaware of the behavior of this method so I do not think this breaks encapsulation . Delving a little deeper I think that IoC containers break OOP because they use reflection but I am not convinced that IoC breaks OOP nor am I convinced that IoC breaks encapsulation . In fact I d go as far as to say that : .. . .. . Encapsulation and Inversion of Control coincide with each other happily allowing programmers to pass in only the concretions of a dependency whilst hiding away the overall implementation via encapsulation . Questions : .. . .. . Is IoC a direct implementation of the Dependency Inversion Principle Does IoC always break encapsulation and therefore OOP Should IoC be used sparingly religiously or appropriately What is the difference between IoC and an IoC container Comment : Being a question about conceptual questions about software development you might have more luck getting this answered on programmers.stackexchange.com http : programmers.stackexchange.com . As written this is a request for discussion which isn t the forte of a Q A site like SO . Comment : Poor kitty . We ve had to abstract away the skinning of you as there are so many ways to do it : Comment : @neontapir discussion requests are very poor fit for Programmers - it would be quickly voted down and closed over there see On discussions and why they don t make good questions http : meta.programmers.stackexchange.com q 6742 31260 . Recommended reading : What goes on Programmers.SE A guide for Stack Overflow http : meta.programmers.stackexchange.com q 7182 31260 Comment : Is IoC a direct implementation of the Dependency Inversion Principle Possible duplicate of stackoverflow.com q 6766056 126014 http : stackoverflow.com q 6766056 126014 Comment : What is the difference between IoC and an IoC container Duplicate of programmers.stackexchange.com q 131451 19115 http : programmers.stackexchange.com q 131451 19115 .. . Answer : Does IoC always break encapsulation and therefore OOP No these are hierarchically related concerns . Encapsulation is one of the most misunderstood concepts in OOP but I think the relationship is best described via Abstract Data Types ADTs . Essentially an ADT is a general description of data and associated behaviour . This description is abstract it omits implementation details . Instead it describes an ADT in terms of pre- and post-conditions . This is what Bertrand Meyer calls design-by-contract . You can read more about this seminal description of OOD in Object-Oriented Software Construction http : amzn.to 1claOin . Objects are often described as data with behaviour . This means that an object without data isn t really an object . Thus you have to get data into the object in some way . You could for example pass data into an object via its constructor : .. . .. . Another option is to use a setter function or property . I hope we can agree that so far encapsulation is not violated . What happens if we change bar from an integer to another concrete class The only difference compared to before is that bar is now an object instead of a primitive . However that s a false distinction because in object-oriented design an integer is also an object . It s only because of performance optimisations in various programming-languages Java C etc . that there s an actual difference between primitives strings integers bools etc . and real objects . From an OOD perspective they re all alike . Strings have behaviours as well : you can turn them into all-upper-case reverse them etc . Is encapsulation violated if Bar is a sealed final concrete class with only non-virtual members bar is only data with behaviour just like an integer but apart from that there s no difference . So far encapsulation isn t violated . What happens if we allow Bar to have a single virtual member Is encapsulation broken by that Can we still express pre- and post-conditions about Foo given that Bar has a single virtual member If Bar adheres to the Liskov Substitution Principle https : en.wikipedia.org wiki Liskov substitution principle LSP it wouldn t make a difference . The LSP explicitly states that changing the behaviour mustn t change the correctness of the system . As long as that contract is fulfilled encapsulation is still intact . Thus the LSP one of the SOLID principles https : en.wikipedia.org wiki SOLID object-oriented design of which the Dependency Inversion Principle https : en.wikipedia.org wiki Dependency inversion principle is another doesn t violate encapsulation it describes a principle for maintaining encapsulation in the presence of polymorphism . Does the conclusion change if Bar is an abstract base-class An interface No it doesn t : those are just different degrees of polymorphism . Thus we could rename Bar to IBar in order to suggest that it s an interface and pass it into Foo as its data : .. . .. . bar is just another polymorphic object and as long as the LSP holds encapsulation holds . TL DR .. . .. . There s a reason SOLID is also known as the Principles of OOD . Encapsulation i.e . design-by-contract defines the ground rules . SOLID describes guidelines for following those rules .",
"Question : Interviewer : What is encapsulation and how do you achieve it in Java .. . Me : Encapsulation is a mechanism to hide information from the client . The information may be data or implementation or algorithm . We achieve this using access modifiers . .. . Interviewer : This is data hiding . How do we achieve encapsulation in Java .. . Me : uummmm .. . .. . Concrete Question : Other than Access Modifiers what is the way to implement Encapsulation in Java Comment : Possible dup of : stackoverflow.com questions 24626 http : stackoverflow.com questions 24626 abstraction-vs-information-hiding-vs-encapsulation Comment : @ChanderShivdasani this is more specific to Java Comment : The information may be data or implementation or algorithm - And hiding the data is data hiding but hiding the implementation or algorithm wouldn t come under the definition of data hiding . Encapsulation is a goal while data hiding is one of the ways of achieving it . But access modifiers aren t really a way to achieve encapsulation . Comment : Altogether yet another lame interview question . What does that say about your programming skills I d never bother my interviewees with such nitpicking . Especially since there isn t exactly an RFC or IEEE standard that spells out exactly what is the definition of encapsulation . Various authors will use various definitions . Comment : I would want to give +100 to this : .. . Answer : I hate to do this but from Wikipedia http : en.wikipedia.org wiki Encapsulation 28object-oriented programming 29 : .. . .. . In programming-languages encapsulation is used to refer to one of two related but distinct notions and sometimes to the combination thereof : .. . .. . 1 . A language mechanism for restricting access to some of the object s components . 2 . A language construct that facilitates the bundling of data with the methods or other functions operating on that data .. . .. . Your explanation was more along the lines of the first notion the interviewer was looking for something on the second .",
"Question : I am preparing for an interview and decided to brush up my OOP concepts . There are hundreds of articles available but it seems each describes them differently . Some http : www.c-sharpcorner.com UploadFile eecabral OOPSand.NET211102005075520AM OOPSand.NET2.aspx says .. . .. . Abstraction is the process of identifying common patterns that have systematic variations an abstraction represents the common pattern and provides a means for specifying which variation to use Richard Gabriel . and is achieved through abstract classes . Some other http : forums.asp.net t 1258933.aspx 1 says .. . .. . Abstraction means to show only the necessary details to the client of the object .. . .. . and .. . .. . Let s say you have a method CalculateSalary in your Employee class which takes EmployeeId as parameter and returns the salary of the employee for the current month as an integer value . Now if someone wants to use that method . He does not need to care about how Employee object calculates the salary An only thing he needs to be concern is name of the method its input parameters and format of resulting member .. . .. . I googled again and again and none of the results seem to give me a proper answer . Now where does encapsulation fit in all these I searched and found a stack-overflow question http : stackoverflow.com questions 8960918 how-encapsulation-is-different-from-abstraction-as-a-object-oriented-concept-in . Even the answers to that questions were confusing Here http : stackoverflow.com a 8960961 2401223 it says .. . .. . Encapsulation is a strategy used as part of abstraction . Encapsulation refers to the state of objects - objects encapsulate their state and hide it from the outside outside users of the class interact with it through its methods but cannot access the classes state directly . So the class abstracts away the implementation details related to its state . And here http : stackoverflow.com a 8961003 2401223 another reputed member says .. . .. . They are different concepts . .. . Abstraction is the process of refining away all the unneeded unimportant attributes of an object and keep only the characteristics best suitable for your domain . Now I m messed up with the whole concept . I know about abstract-class inheritance access specifiers and all . I just want to know how should I answer when I am asked about abstraction and or encapsulation in an interview . .. . .. . Please don t mark it as a duplicate . I know there are several similar questions . But I want to avoid the confusion among the conflicting explanations . Can anyone suggest a credible link A link-to stackoverflow question is also welcome unless it creates confusion again . : .. . .. . EDIT : I need answers a bit c oriented Comment : Also what about abstraction in the sense that a Printer class is an abstraction of a physical printer Comment : All these answers confuse me again : Comment : I am gonna start a bounty on this question . Comment : The problem is that there are no precise definitions for these concepts and the words themselves have multiple meanings even within the context of object orientation . If you talk about that in an interview I would hope that would be sufficient Comment : @MatthewWatson : If you talk about that in an interview I would hope that would be sufficient I didn t get you . .. . Answer : You are asking about only two of them but Object Oriented Analysis and Design OOAD is actually based on four principles . A mnemonic to remember the four principles is A PIE . Abstraction : means that you only incorporate those features of an entity which are required in your design . So if every bank account has an opening date but your application doesn t need to know an account s opening date then you simply don t add the OpeningDate field in your Object-Oriented Design of the BankAccount class . Abstraction in OOAD has nothing to do with abstract classes in programming . By this principle your entities are an abstraction of what they actually are . You design an abstraction of Bank Account down to only that level of detail that your application s needs . Inheritance : is the principle that saves you from writing those functionalities that you can receive from someone else . Just like you may inherit your parents wealth you may inherit fields and methods from your parent class . So taking everything that parent class has and then adding something more if need be is inheritance . Don t go looking for inheritance in your Object Oriented Design . Inheritance will present itself . Polymorphism : is a consequence of inheritance . Inheriting a method from parent is useful but being able to modify a method if the situation demands is polymorphism . You may implement a method in the subclass with exactly the same signature as in parent class so that when called the method from child class is executed . This is polymorphism . Encapsulation : means bundling the related functionality together and giving access to only the needful . This principle is the basis of designing classes in Object Oriented Design where : .. . .. . you put related data and methods together and .. . not all the pieces of data and methods may be public . .. . .. . People who argue that Abstraction of OOAD results in the abstract keyword of OOP .. . Well that is simply not correct . Example : When you design a University in an application using object oriented principles you only design an abstraction of the university . Even though there is usually one cash dispensing ATM in almost every university you may not incorporate that fact if it s not needed for your application . And now though you have designed only an abstraction of the university you are not required to put abstract in your class declaration . Your abstract design of university will be a normal class in your application .",
"Question : I am preparing for an interview and decided to brush up my OOP concepts . There are hundreds of articles available but it seems each describes them differently . Some http : www.c-sharpcorner.com UploadFile eecabral OOPSand.NET211102005075520AM OOPSand.NET2.aspx says .. . .. . Abstraction is the process of identifying common patterns that have systematic variations an abstraction represents the common pattern and provides a means for specifying which variation to use Richard Gabriel . and is achieved through abstract classes . Some other http : forums.asp.net t 1258933.aspx 1 says .. . .. . Abstraction means to show only the necessary details to the client of the object .. . .. . and .. . .. . Let s say you have a method CalculateSalary in your Employee class which takes EmployeeId as parameter and returns the salary of the employee for the current month as an integer value . Now if someone wants to use that method . He does not need to care about how Employee object calculates the salary An only thing he needs to be concern is name of the method its input parameters and format of resulting member .. . .. . I googled again and again and none of the results seem to give me a proper answer . Now where does encapsulation fit in all these I searched and found a stack-overflow question http : stackoverflow.com questions 8960918 how-encapsulation-is-different-from-abstraction-as-a-object-oriented-concept-in . Even the answers to that questions were confusing Here http : stackoverflow.com a 8960961 2401223 it says .. . .. . Encapsulation is a strategy used as part of abstraction . Encapsulation refers to the state of objects - objects encapsulate their state and hide it from the outside outside users of the class interact with it through its methods but cannot access the classes state directly . So the class abstracts away the implementation details related to its state . And here http : stackoverflow.com a 8961003 2401223 another reputed member says .. . .. . They are different concepts . .. . Abstraction is the process of refining away all the unneeded unimportant attributes of an object and keep only the characteristics best suitable for your domain . Now I m messed up with the whole concept . I know about abstract-class inheritance access specifiers and all . I just want to know how should I answer when I am asked about abstraction and or encapsulation in an interview . .. . .. . Please don t mark it as a duplicate . I know there are several similar questions . But I want to avoid the confusion among the conflicting explanations . Can anyone suggest a credible link A link-to stackoverflow question is also welcome unless it creates confusion again . : .. . .. . EDIT : I need answers a bit c oriented Comment : Also what about abstraction in the sense that a Printer class is an abstraction of a physical printer Comment : All these answers confuse me again : Comment : I am gonna start a bounty on this question . Comment : The problem is that there are no precise definitions for these concepts and the words themselves have multiple meanings even within the context of object orientation . If you talk about that in an interview I would hope that would be sufficient Comment : @MatthewWatson : If you talk about that in an interview I would hope that would be sufficient I didn t get you . .. . Answer : Encapsulation : hiding data using getters and setters etc . Abstraction : hiding implementation using abstract classes and interfaces etc . Comment : Upvote. . It can t get any more simple . Comment : Make sense simply Comment : This answer is not really correct . I d have down-voted it but then the question too isn t very specific . The question s very first line asks about OOP . If it d be OO-Design or OO-Analysis then this answer would be completely wrong . Abstract classes are NOT the equivalent of Abstraction principle in Object Oriented Analysis and Design . For people interested please look at the two answers I have provided to this question .",
"Question : If I understand correctly the typical mechanism for Dependency Injection is to inject either through a class constructor or through a public property member of the class . This exposes the dependency being injected and violates the OOP principle of encapsulation . Am I correct in identifying this tradeoff How do you deal with this issue Please also see my answer to my own question below . Comment : this is a very smart question imho Comment : Answering this question first requires an argument about what encapsulation means . Comment : Encapsulation is maintained by the interfaces . They expose the essential characteristics of the object and hide details such as dependencies . This allows us to open-up the classes to some extent as to provide a more flexible configuration . .. . Answer : There is another way of looking at this issue that you might find interesting . When we use IoC dependency-injection we re not using OOP concepts . Admittedly we re using an OO language as the host but the ideas behind IoC come from component-oriented software-engineering not OO . Component software is all about managing dependencies - an example in common use is .NET s Assembly mechanism . Each assembly publishes the list of assemblies that it references and this makes it much easier to pull together and validate the pieces needed for a running application . By applying similar techniques in our OO programs via IoC we aim to make programs easier to configure and maintain . Publishing dependencies as constructor parameters or whatever is a key part of this . Encapsulation doesn t really apply as in the component service oriented world there is no implementation type for details to leak from . Unfortunately our languages don t currently segregate the fine-grained object-oriented concepts from the coarser-grained component-oriented ones so this is a distinction that you have to hold in your mind only : Comment : Positively great answer Comment : Encapsulation is not just a piece of fancy terminology . It is a real thing with real benefits and it doesn t matter if you consider your program to be component oriented or object oriented . Encapsulation is supposed to protect the state of your object component service whatever from being changed in unexpected ways and IoC does take away some of this protection so there s definitely a tradeoff . Comment : Arguments supplied through a constructor still fall within the realm of expected ways in which the object may be changed : they re explicitly exposed and invariants around them are enforced . Information hiding is the better term for the kind of privacy you re referring to @RonInbar and it s not necessarily always beneficial it makes the pasta harder to untangle - .",
"Question : In interviews I have been asked to explain the difference between abstraction and encapsulation . My answer has been along the lines of .. . .. . Abstraction allows us to represent complex real world in simplest manner . It is the process of identifying the relevant qualities and behaviors an object should possess in other words to represent the necessary feature without representing the background details . Encapsulation is a process of hiding all the internal details of an object from the outside real world . The word encapsulation is like enclosing into a capsule . It restricts clients from seeing its internal view where the behavior of the abstraction is implemented . I think with above answer the interviewer was convinced but then I was asked if the purpose of both is hiding then why there is a need to use encapsulation . At that time I didn t have a good answer for this . What should I have added to make my answer more complete Comment : Here is a precised answer to this question stackoverflow.com questions 742341 http : stackoverflow.com questions 742341 difference-between-abstraction-and-encapsulation Comment : I once answered same question as Encapsulation is more of a concept of categorization of objects at least practically while abstraction is a property of methods and functions the majority of time . So both are applicable on different members of OOP family . .. . Answer : Difference between Abstraction and Encapsulation : - .. . .. . Abstraction .. . .. . 1 . Abstraction solves the problem in the design level . 2 . Abstraction is used for hiding the unwanted data and giving relevant data . 3 . Abstraction lets you focus on what the object does instead of how it does it . 4 . Abstraction- Outer layout used in terms of design . For Example : - Outer Look of a Mobile Phone like it has a display screen and keypad buttons to dial a number . Encapsulation .. . .. . 1 . Encapsulation solves the problem in the implementation level . 2 . Encapsulation means hiding the code and data into a single unit to protect the data from outside world . 3 . Encapsulation means hiding the internal details or mechanics of how an object does something . 4 . Encapsulation- Inner layout used in terms of implementation . For Example : - Inner Implementation detail of a Mobile Phone how keypad button and Display Screen are connect with each other using circuits .",
"Question : I was recently having a debate about the Dependency Inversion Principle Inversion of Control and Dependency Injection . In relation to this topic we were debating whether these principles violate one of the pillars of OOP namely Encapsulation . My understanding of these things is : .. . .. . The Dependency Inversion Principle implies that objects should depend upon abstractions not concretions - this is the fundamental principle upon which the Inversion of Control pattern and Dependency Injection are implemented . Inversion of Control is a pattern implementation of the Dependency Inversion Principle where abstract dependencies replace concrete dependencies allowing concretions of the dependency to be specified outside of the object . Dependency Injection is a design pattern that implements Inversion of Control and provides dependency-resolution . Injection occurs when a dependency is passed to a dependent component . In essence the Dependency Injection pattern provides a mechanism for coupling dependency abstractions with concrete implementations . Encapsulation is the process whereby data and functionality that is required by a higher level object is insulated away and inaccessible thus the programmer is unaware of how an object is implemented . The debate got to a sticking point with the following statement : .. . .. . IoC isn t OOP because it breaks Encapsulation .. . .. . Personally I think that the Dependency Inversion Principle and the Inversion of Control pattern should be observed religiously by all OOP developers - and I live by the following quote : .. . .. . If there is potentially more than one way to skin a cat then do not behave like there is only one . Example 1 : .. . .. . Here we see an example of encapsulation . The programmer only has to call Main and the cat will be skinned but what if he wanted to skin the cat with say a set of razor sharp teeth Example 2 : .. . .. . Here we observe the Dependency Inversion Principle and Inversion of Control since an abstract ICatSkinner is provided in order to allow concrete dependencies to be passed in by the programmer . At last there is more than one way to skin a cat .. . .. . The quarrel here is does this break encapsulation technically one could argue that .SkinTheCat is still encapsulated away within the Main method call so the programmer is unaware of the behavior of this method so I do not think this breaks encapsulation . Delving a little deeper I think that IoC containers break OOP because they use reflection but I am not convinced that IoC breaks OOP nor am I convinced that IoC breaks encapsulation . In fact I d go as far as to say that : .. . .. . Encapsulation and Inversion of Control coincide with each other happily allowing programmers to pass in only the concretions of a dependency whilst hiding away the overall implementation via encapsulation . Questions : .. . .. . Is IoC a direct implementation of the Dependency Inversion Principle Does IoC always break encapsulation and therefore OOP Should IoC be used sparingly religiously or appropriately What is the difference between IoC and an IoC container Comment : Being a question about conceptual questions about software development you might have more luck getting this answered on programmers.stackexchange.com http : programmers.stackexchange.com . As written this is a request for discussion which isn t the forte of a Q A site like SO . Comment : Poor kitty . We ve had to abstract away the skinning of you as there are so many ways to do it : Comment : @neontapir discussion requests are very poor fit for Programmers - it would be quickly voted down and closed over there see On discussions and why they don t make good questions http : meta.programmers.stackexchange.com q 6742 31260 . Recommended reading : What goes on Programmers.SE A guide for Stack Overflow http : meta.programmers.stackexchange.com q 7182 31260 Comment : Is IoC a direct implementation of the Dependency Inversion Principle Possible duplicate of stackoverflow.com q 6766056 126014 http : stackoverflow.com q 6766056 126014 Comment : What is the difference between IoC and an IoC container Duplicate of programmers.stackexchange.com q 131451 19115 http : programmers.stackexchange.com q 131451 19115 .. . Answer : Is IoC a direct implementation of the Dependency Inversion Principle The two are related in a way that they talk about abstractions but that s about it . Inversion of Control is : .. . .. . a design in which custom-written portions of a computer program receive the flow of control from a generic reusable library source https : en.wikipedia.org wiki Inversion of control .. . .. . Inversion of control is allowing us to hook our custom code into the pipeline of a reusable library . In other words Inversion control is about frameworks . A reusable library that does not apply Inversion of Control is merely a library . A framework is a reusable library that does apply Inversion of Control . Do note that we as developers can only apply Inversion of Control if we are writing a framework ourselves you can t apply inversion-of-control as an application developer . We can and should however apply Dependency Inversion Principle and the Dependency Injection pattern . Does IoC always break encapsulation and therefore OOP Since IoC is just about hooking into the pipeline of a framework there is nothing that s leaking here . So the real question is : does Dependency Injection break encapsulation . The answer to that question is : no it does not . It doesn t break encapsulation because of two reasons : .. . .. . Since the Dependency Inversion Principles states that we should program against an abstraction a consumer will not be able to access the internals of the used implementation and that implementation will therefore not be breaking encapsulation to the client . The implementation might not even be known or accessible at compile-time because it lives in an unreferenced assembly and the implementation can in that case not leak implementation details and break encapsulation . Although the implementation accepts the dependencies it requires throughout its constructor those dependencies will typically be stored in private fields and can t be accessed by anyone even if a consumer depends directly on the concrete type and it will therefore not break encapsulation . Should IoC be used sparingly religiously or appropriately Again the question is Should DIP and DI be used sparingly . In my opinion the answer is : NO you should actually use it throughout the application . Obviously you should never apply things religiously . You should apply SOLID principles and the DIP is a crucial part of those principles . They will make your application more flexible and more maintainable and in most scenarios it is very appropriate to apply the SOLID principles . What is the difference between IoC and an IoC container Dependency Injection is a pattern that can be applied either with or without a IoC container . An IoC container is merely a tool that can help building your object graph in a more convenient way in case you have an application that applies the SOLID principles correctly . If you have an application that doesn t apply the SOLID principles you will have a hard time using a IoC container . You will have a hard time applying Dependency Injection . Or let me put it more broadly you will have a hard time maintaining your application anyway . But in no way an IoC container is a required tool . I m developing and maintaining an IoC container for .NET but I don t always use a container for all my applications . For the big BLOBAs boring line of business applications I often use a container but for smaller apps or windows-services I don t always use a container . But I do almost always use Dependency Injection as a pattern because this is the most effective way to adhere to DIP . Note : Since an IoC container helps us in applying the Dependency Injection pattern IoC container is a terrible name for such library . .. . .. . But despite of anything I said above please note that : .. . .. . in the real world of the software developer usefulness trumps theory from Robert C . Martin s Agile Principle Patterns and Practices https : books.google.nl books id hckt7v6g09oC pg PT404 lpg PT404 dq in 20the 20real 20world 20of 20the 20software 20developer 20usefulness 20trumps 20theory source bl ots ISQc81 SKU sig D51wKiHCSqzGu5lwF mcOQszbeY hl en sa X ei zLmRVdPMHouBUcLympgP ved 0CCEQ6AEwAA v onepage q in 20the 20real 20world 20of 20the 20software 20developer 2C 20usefulness 20trumps 20theory f false .. . .. . In other words even if DI would break encapsulation it wouldn t matter because these techniques and patterns have proven to be very valuable because it results in very flexible and maintainable systems . Practice trumps theory .",
"Question : If I understand correctly the typical mechanism for Dependency Injection is to inject either through a class constructor or through a public property member of the class . This exposes the dependency being injected and violates the OOP principle of encapsulation . Am I correct in identifying this tradeoff How do you deal with this issue Please also see my answer to my own question below . Comment : this is a very smart question imho Comment : Answering this question first requires an argument about what encapsulation means . Comment : Encapsulation is maintained by the interfaces . They expose the essential characteristics of the object and hide details such as dependencies . This allows us to open-up the classes to some extent as to provide a more flexible configuration . .. . Answer : Encapsulation is only broken if a class has both the responsibility to create the object which requires knowledge of implementation details and then uses the class which does not require knowledge of these details . I ll explain why but first a quick car anaology : .. . .. . When I was driving my old 1971 Kombi I could press the accelerator and it went slightly quicker . I did not need to know why but the guys who built the Kombi at the factory knew exactly why . But back to the coding . Encapsulation is hiding an implementation detail from something using that implementation . Encapsulation is a good thing because the implementation details can change without the user of the class knowing . When using dependency-injection constructor-injection is used to construct service type objects as opposed to entity value-objects which model state . Any member variables in service type object represent implementation details that should not leak out . e.g . socket port-number database credentials another class to call to perform encryption a cache etc . The constructor is relevant when the class is being initially created . This happens during the construction-phase while your DI container or factory wires together all the service objects . The DI container only knows about implementation details . It knows all about implementation details like the guys at the Kombi factory know about spark plugs . At run-time the service object that was created is called apon to do some real work . At this time the caller of the object knows nothing of the implementation details . That s me driving my Kombi to the beach . Now back to encapsulation . If implementation details change then the class using that implementation at run-time does not need to change . Encapsulation is not broken . I can drive my new car to the beach too . Encapsulation is not broken . If implementation details change the DI container or factory does need to change . You were never trying to hide implementation details from the factory in the first place . Comment : How would you unit test your factory And that means the client needs to know about the factory in order to get a working car which means you need a factory for each other object in your system .",
"Question : In interviews I have been asked to explain the difference between abstraction and encapsulation . My answer has been along the lines of .. . .. . Abstraction allows us to represent complex real world in simplest manner . It is the process of identifying the relevant qualities and behaviors an object should possess in other words to represent the necessary feature without representing the background details . Encapsulation is a process of hiding all the internal details of an object from the outside real world . The word encapsulation is like enclosing into a capsule . It restricts clients from seeing its internal view where the behavior of the abstraction is implemented . I think with above answer the interviewer was convinced but then I was asked if the purpose of both is hiding then why there is a need to use encapsulation . At that time I didn t have a good answer for this . What should I have added to make my answer more complete Comment : Here is a precised answer to this question stackoverflow.com questions 742341 http : stackoverflow.com questions 742341 difference-between-abstraction-and-encapsulation Comment : I once answered same question as Encapsulation is more of a concept of categorization of objects at least practically while abstraction is a property of methods and functions the majority of time . So both are applicable on different members of OOP family . .. . Answer : Abstraction refers to the act of representing essential features without including the background details or explanations . Encapsulation is a technique used for hiding the properties and behaviors of an object and allowing outside access only as appropriate . It prevents other objects from directly altering or accessing the properties or methods of the encapsulated object . Difference between abstraction and encapsulation .. . .. . 1.Abstraction focuses on the outside view of an object i.e . the interface Encapsulation information-hiding prevents clients from seeing it s inside view where the behavior of the abstraction is implemented . 2.Abstraction solves the problem in the design side while Encapsulation is the Implementation . 3.Encapsulation is the deliverable of Abstraction . Encapsulation barely talks about grouping up your abstraction to suit the developer needs .",
"Question : If I understand correctly the typical mechanism for Dependency Injection is to inject either through a class constructor or through a public property member of the class . This exposes the dependency being injected and violates the OOP principle of encapsulation . Am I correct in identifying this tradeoff How do you deal with this issue Please also see my answer to my own question below . Comment : this is a very smart question imho Comment : Answering this question first requires an argument about what encapsulation means . Comment : Encapsulation is maintained by the interfaces . They expose the essential characteristics of the object and hide details such as dependencies . This allows us to open-up the classes to some extent as to provide a more flexible configuration . .. . Answer : Maybe this is a naive way of thinking about it but what is the difference between a constructor that takes in an integer parameter and a constructor that takes in a service as a parameter Does this mean that defining an integer outside the new object and feeding it into the object breaks encapsulation If the service is only used within the new object I don t see how that would break encapsulation . Also by using some sort of autowiring feature Autofac for C for example it makes the code extremely clean . By building extension-methods for the Autofac builder I was able to cut out a LOT of DI configuration code that I would have had to maintain over time as the list of dependencies grew .",
"Question : I was recently having a debate about the Dependency Inversion Principle Inversion of Control and Dependency Injection . In relation to this topic we were debating whether these principles violate one of the pillars of OOP namely Encapsulation . My understanding of these things is : .. . .. . The Dependency Inversion Principle implies that objects should depend upon abstractions not concretions - this is the fundamental principle upon which the Inversion of Control pattern and Dependency Injection are implemented . Inversion of Control is a pattern implementation of the Dependency Inversion Principle where abstract dependencies replace concrete dependencies allowing concretions of the dependency to be specified outside of the object . Dependency Injection is a design pattern that implements Inversion of Control and provides dependency-resolution . Injection occurs when a dependency is passed to a dependent component . In essence the Dependency Injection pattern provides a mechanism for coupling dependency abstractions with concrete implementations . Encapsulation is the process whereby data and functionality that is required by a higher level object is insulated away and inaccessible thus the programmer is unaware of how an object is implemented . The debate got to a sticking point with the following statement : .. . .. . IoC isn t OOP because it breaks Encapsulation .. . .. . Personally I think that the Dependency Inversion Principle and the Inversion of Control pattern should be observed religiously by all OOP developers - and I live by the following quote : .. . .. . If there is potentially more than one way to skin a cat then do not behave like there is only one . Example 1 : .. . .. . Here we see an example of encapsulation . The programmer only has to call Main and the cat will be skinned but what if he wanted to skin the cat with say a set of razor sharp teeth Example 2 : .. . .. . Here we observe the Dependency Inversion Principle and Inversion of Control since an abstract ICatSkinner is provided in order to allow concrete dependencies to be passed in by the programmer . At last there is more than one way to skin a cat .. . .. . The quarrel here is does this break encapsulation technically one could argue that .SkinTheCat is still encapsulated away within the Main method call so the programmer is unaware of the behavior of this method so I do not think this breaks encapsulation . Delving a little deeper I think that IoC containers break OOP because they use reflection but I am not convinced that IoC breaks OOP nor am I convinced that IoC breaks encapsulation . In fact I d go as far as to say that : .. . .. . Encapsulation and Inversion of Control coincide with each other happily allowing programmers to pass in only the concretions of a dependency whilst hiding away the overall implementation via encapsulation . Questions : .. . .. . Is IoC a direct implementation of the Dependency Inversion Principle Does IoC always break encapsulation and therefore OOP Should IoC be used sparingly religiously or appropriately What is the difference between IoC and an IoC container Comment : Being a question about conceptual questions about software development you might have more luck getting this answered on programmers.stackexchange.com http : programmers.stackexchange.com . As written this is a request for discussion which isn t the forte of a Q A site like SO . Comment : Poor kitty . We ve had to abstract away the skinning of you as there are so many ways to do it : Comment : @neontapir discussion requests are very poor fit for Programmers - it would be quickly voted down and closed over there see On discussions and why they don t make good questions http : meta.programmers.stackexchange.com q 6742 31260 . Recommended reading : What goes on Programmers.SE A guide for Stack Overflow http : meta.programmers.stackexchange.com q 7182 31260 Comment : Is IoC a direct implementation of the Dependency Inversion Principle Possible duplicate of stackoverflow.com q 6766056 126014 http : stackoverflow.com q 6766056 126014 Comment : What is the difference between IoC and an IoC container Duplicate of programmers.stackexchange.com q 131451 19115 http : programmers.stackexchange.com q 131451 19115 .. . Answer : Summing up the question : .. . .. . We have the ability for a Service to instantiate its own dependencies . Yet we also have the ability for a Service to simply define abstractions and require an application to know about the dependent abstractions create concrete implementations and pass them in . And the question is not Why we do it Because we know there is a huge list of why . But the question is Doesn t option 2 break encapsulation .. . .. . My pragmatic answer .. . .. . I think Mark is the best bet for any such answers and as he says : No encapsulation isn t what people think it is . Encapsulation is hiding away implementation details of a service or abstraction . A Dependency isn t an implementation detail . If you think of a service as a contract and its subsequent sub-service dependencies as sub-contracts etc etc chained along then you really just end up with one huge contract with addendums . Imagine I m a caller and I want to use a legal service to sue my boss . My application would have to know about a service that does so . That alone breaks the theory that knowing about the services contracts required to accomplish my goal is false . The argument there is.. . yeah but I just want to hire a lawyer I don t care about what books or services he uses . I ll get some random dood off the interwebz and not care about his implementation details.. . like so : .. . .. . But it turns out other services are required to get the job done such as understanding workplace law . And also as it turns out.. . I am VERY Interested in the contracts that lawyer is signing under my name and the other stuff he s doing to steal my money . For example.. . Why the hell is this internet lawyer based in South Korea How will THAT help me That isn t an implementation detail that s part of a dependency chain of requirements I m happy to manage . Now all I know is that I have a contract which has other contracts which might have other contracts . I am very well responsible for those contracts and not their implementation details . Though I am more than happy to sign those contracts with concretions that are relevant to my requirements . And again I don t care about how those concretions do their jobs as long as I know I have a binding contract that says we exchange information in some defined way . Comment : Encapsulation is hiding away implementation details of a service or abstraction . - exactly and in your second example you have made these implementation details explicit instead of hiding them . In fact we can keep going and say that ca workplace law is not decoupled enough-let s add county services in there and maybe the specific case law that should be referenced . It is nice that we can change all this on the fly but now you have moved the burden to the caller for something that should be handled by a dedicated class instead . I don t know if this breaks encapsulation or just YAGNI . Comment : Creating concrete instantiations of abstractions or instead of abstractions is not implementation . The methods defined in those classes and or abstractions are a contract and the code within a method defined in a contract is the implementation . And so since the Composition Root is only responsible for filling abstractions with concrete instantiations which inside them have contracted methods which inside them have implementations we never expose implementation to the caller . Fulfilling Contracts does not show us the code in the methods in the classes that implement those contracts Comment : Though yes I do show where the implementation detail is.. . in both example 2 as well as example 1 . And in both cases they are hidden from main",
"Question : Here is a class Encapsulate which has public property and a public-method . Is the OOP concept Encapsulation followed here I am sure that it is applicable as both are bonded together in a class may be we can call it weak encapsulation but there is encapsulation . But I don t know how to prove it because my searches showed that class-properties should be private . Update : What in case of default access-specifier . Comment : I don t know if this is really correct but usually I say that data hiding and encapsulation are related but not the same . Comment : This might be interesting : programmers.stackexchange.com questions 173547 http : programmers.stackexchange.com questions 173547 what-is-the-difference-between-data-hiding-and-encapsulation Comment : If I am binding property and methods using public access-specifier than also they are hidden from other classes and bounded together That s what encapsulation is except other classes instantiate them or extend them . Comment : Possible duplicate of stackoverflow.com questions 1020749 http : stackoverflow.com questions 1020749 what-are-public-private-and-protected-in-object-oriented-programming The very first answer to that question probably answers your question . This site has a search function use it before posting a new question . Comment : @ Raedwald : Thanks for the info but I am aware of it and the link you provided is not answering my question at least I couldn t find what I wanted . .. . Answer : Heres another example that Encapsulation is Hiding data .. . .. . Software objects are conceptually similar to real-world objects : they too consist of state and related behavior . An object stores its state in fields variables in some programming-languages and exposes its behavior through methods functions in some programming-languages . Methods operate on an object s internal state and serve as the primary mechanism for object-to-object communication . Hiding internal state and requiring all interaction to be performed through an object s methods is known as data encapsulation a fundamental principle of object-oriented programming . Which basically means you should change the access modifiers of the properties to private and allow access to the properties through methods .. . .. . Referencing from https : docs.oracle.com javase tutorial java concepts object.html"
]
} | [
"yes-answer-long",
"yes-answer-short"
] | s | UNK_RELATION |
forwarding-reference@rvalue-reference@120 | forwarding-reference -- a forwarding-reference refers to a reference-type that may either be an lvalue reference or an @placeholder depending on its initializer . | {
"confidence": [
65.85856628417969,
64.84307861328125,
64.53011322021484,
64.53011322021484,
64.53011322021484,
59.46173095703125,
59.46173095703125,
58.25382995605469,
57.536537170410156,
56.38035583496094,
54.84223175048828,
54.84223175048828,
54.84223175048828,
54.84223175048828,
53.60564422607422,
53.539794921875,
52.72907257080078,
52.72907257080078,
51.71607208251953,
51.647705078125,
50.96559143066406,
50.93150329589844,
49.89729309082031,
49.89729309082031,
49.85980224609375,
48.817413330078125,
48.299827575683594,
48.24879455566406,
47.78319549560547,
47.78319549560547,
47.78319549560547,
47.032684326171875,
46.881797790527344,
46.667938232421875,
46.308433532714844,
45.037445068359375,
44.635772705078125,
44.321685791015625,
44.00292205810547,
43.592308044433594,
43.23522186279297,
43.23522186279297,
43.23522186279297,
43.23522186279297,
43.23522186279297,
43.19793701171875,
42.813438415527344,
42.64881896972656,
42.334800720214844,
41.98814392089844,
41.76251983642578,
41.26963424682617,
41.15694046020508,
41.121124267578125,
41.121124267578125,
41.121124267578125,
41.121124267578125,
40.94811248779297,
40.63523483276367,
40.53278350830078,
40.349300384521484,
39.84217071533203,
39.84217071533203,
39.58157730102539,
39.331459045410156,
39.15789031982422,
39.15789031982422,
39.15789031982422,
39.15789031982422,
39.15789031982422,
39.15789031982422,
39.155540466308594,
39.038726806640625,
37.70387268066406,
37.7001953125,
37.1370964050293,
37.043800354003906,
37.043800354003906,
37.043800354003906,
36.94990158081055,
36.689788818359375,
36.37690734863281,
35.859954833984375,
35.74176788330078,
35.58610534667969,
35.58610534667969,
35.58610534667969,
35.41741943359375,
35.127906799316406,
34.863304138183594,
34.59114074707031,
34.34777069091797,
34.34777069091797,
34.29376983642578,
34.15528106689453,
34.04472732543945,
34.04472732543945
],
"content": [
"The rule that an rvalue-reference to an lvalue reference is an lvalue reference is what allows the forwarding-reference technique to exist .",
"It is not a forwarding-reference .",
"If P is a forwarding-reference and the argument is an lvalue the type lvalue reference to A is used in-place of A for type deduction .",
"If P is a forwarding-reference and the argument is an lvalue the type lvalue reference to A is used in-place of A for type deduction .",
"If P is a forwarding-reference and the argument is an lvalue the type lvalue reference to A is used in-place of A for type deduction .",
"The issue is that T would be a forwarding-reference not an rvalue-reference .",
"it s called a forwarding-reference now not a universal-reference .",
"Therefore auto may be deduced either as an lvalue reference or rvalue-reference according to the initializer .",
"As such it will be deduced to an lvalue reference when the initializer is an lvalue .",
"auto creates a forwarding-reference i.e .",
"const auto is not a forwarding-reference it s const rvalue-reference",
"A forwarding-reference is an rvalue-reference to a cv-unqualified template parameter .",
"So first off please use the forwarding-reference instead of universal-reference .",
"A forwarding-reference is an rvalue-reference to a cv-unqualified template parameter .",
"In simple terms T is a forwarding-reference if and only if : .. . .. . T is a simple simple as shown next type so for instance vector int or vector T is not a forwarding-reference .",
"This question http : stackoverflow.com questions 15181741 can-a-defaulted-template-type-be-universal-reference confirms that the reference does remain a Forwarding Reference in that case .",
"The first thing to be aware of is that not every is a forwarding-reference .",
"By taking it by forwarding-reference it makes exactly one copy .",
"lvalue reference and rvalue-reference refer to how a reference is bound .",
"If P is an rvalue-reference to a cv-unqualified template parameter and the argument is an lvalue the type lvalue reference to A is used in-place of A for type deduction .",
"or a typedef for some lvalue reference-type .",
"Consider the following snippet below : .. . .. . i is an lvalue hence if foo declares a forwarding-reference parameter it should compile .",
"Once the replacement is done the function-parameter becomes a forwarding-reference .",
"This is a continuation of my previous question : .. . .. . Can an identity alias template be a forwarding-reference",
"if so if it refers to anything other than a plain template parameter it s not a forwarding-reference .",
"If Number T permits lvalue references to pass then that T will work like a forwarding-reference .",
"The official name is not universal-reference but forwarding-reference http : stackoverflow.com questions 33904462 whats-the-standard-official-name-for-universal-references .",
"This means it is not handled as a RValue Reference but as a Universal Forwarding Reference -- the Reference Collapsing Rules http : thbecker.net articles rvalue references section 08.html apply .",
"The fact that T occurs in parameter declaration does not imply it is forwarding-reference .",
"Why would an operator take a forwarding-reference instead of by const-ref to begin with",
".. . .. . It looks like Can an identity alias template be a forwarding-reference",
"A becomes A .. . .. . so according this rules and taking in account universal-reference why std : : forward signature can t be as follows : .. . .. . According to the rules from above if T s type is rvalue-reference it will collapse to rvalue-reference if T s type is lvalue reference it will collapse to lvalue reference .",
"identity T is the type of the template parameter but it is not a template parameter itself so the forwarding-reference deduction rule does not apply .",
"http : stackoverflow.com questions 29851098 can-an-identity-alias-template-be-a-forwarding-reference may be related to this as well but it seems to cover a different facet of the restrictions on forwarding references .",
"This workaround suggests itself : .. . .. . however this fails : Forwarding References work by deducing the template type as a reference-type but you have specified an object-type and the rvalue-reference now cannot bind to the lvalues of your dummy objects .",
"Anyway as was suggested in this http : stackoverflow.com a 36842684 4480180 answer forwarding-reference is not possible with this version since Args is not deduced .",
"No such thing as an rvalue-reference to an lvalue reference http : coliru.stacked-crooked.com a 9692dfa2084d361a or in fact a reference to a reference in general as per 8.3.2 5 There shall be no references to references .",
"However var is an lvalue as it is the name of a variable hence var2 is an lvalue reference .",
"This makes only sense if we have a reference where we don t know a priori whether it s an rvalue-reference or an lvalue-reference .",
"A bit of reminder on forwarding references.. . .. . .. . First let s take a simpler example than yours with simply the following : .. . .. . Now let s instanciate f from various sources let s assume with have the following variables : .. . .. . ...then : .. . .. . You should be wondering : Why is the first instanciation f std : : string instead of f std : : string but the standard tells you 14.8.2.1 3 temp.deduct.call : .. . .. . If P is a forwarding-reference and the argument is an lvalue the type lvalue reference to A is used in-place of A for type deduction .",
"g++ accepts template typename T using forwarding-reference T as a forwarding-reference by the way but clang++ does not .",
"All of the above supports the idea of identity T and identity T being treated as equivalent to a forwarding-reference .",
"I guess this opens the possibility that identity T could actually not be treated as a forwarding-reference after all .",
"Again it is equivalent to the type but the forwarding-reference ruling speaks about template parameters not their types .",
"The term has later been changed to Forwarding Reference https : isocpp.org files papers N4164.pdf",
"Use either plain type or const reference .",
"I opened this http : stackoverflow.com questions 36842291 c-confusion-about-forwarding-reference post about forwarding-reference this is a hopefully MCVE code : .. . .. . Since this is not the whole code maybe I ll have to add extra code based on the answers .",
"However a reference-type is distinct from a non-reference type .",
"To get a forwarding-reference you need to have a function template with some template type-parameter X and a function-parameter of the form X x .",
"Not really it s because of the quoted standard part : If you have a templated function waiting for a forwarding-reference T and you are giving it an lvalue s in this case then the deduced argument template will be T and not T even for the other parameters .",
"A telltale pre-forwarding reference sign is that associated types are described like so : .. . .. . Value type X : : value-type The type of the object stored in a container .",
"This could even have practical value as a straightforward way of avoiding the greediness of a forwarding-reference when all you want is an rvalue-reference to a deduced T . .. . .. . So I think you ve raised a very interesting problem .",
"If const T is allowed to use as forwarding-reference we would deduce T as int in g i then collapse to const int which binds const lvalue refere to lvalue .",
"Then a user of the concept always would have to explicitely remove the reference if he wants to use the forwarding syntax .",
"Consider these two template functions : .. . .. . Why does the former accept lvalues by using a forwarding-reference while the latter does not",
"Why does a std : : thread object accept the function-parameter by forwarding-reference and then make a copy of the object with decay copy",
"Why does a std : : thread object accept the function-parameter by forwarding-reference and then make a copy of the object with decay copy",
"T is not an rvalue-reference if T is a reference-type because dcl.ref 5 there shall be no reference to references .",
"So the substituted alias is equivalent to the type of T but 14.8.2.1 3 reads reference to .. . template parameter not reference to .. . the type of a template parameter .",
".. . .. . 1 There is never actually a reference-to-a-reference .",
"Therefore we don t need std : : forward : .. . .. . If we add another overload : .. . .. . we still don t need std : : forward since the type of that parameter item is always rvalue-reference to T assuming T is not a reference-type : .. . .. . Only if we have something like .. . .. . where forwarding-reference U can be either an lvalue-reference or an rvalue-reference then we need std : : forward : .. . .. . Due to implementation details we must write the above as : .. . .. . Note that the above U item is not an rvalue-reference but a forwarding-reference .",
"So why std : : forward have two different signatures one for lvalue reference and one for rvalue-reference am I missing something",
"So why std : : forward have two different signatures one for lvalue reference and one for rvalue-reference am I missing something",
"Expressions that name variables are always lvalue-expressions even if they name a variable that has the type rvalue-reference to some type .",
"For reference to be universal type deduction is necessary but it is not sufficient .",
"So we can only look for other ways to achieve the idea of being able to optionally specify an argument to match a forwarding-reference .",
"Funny thing identity T seems to work in both GCC and Clang demo http : melpon.org wandbox permlink r1YH40UcY8lwouQ4 being treated as a forwarding-reference",
"If they re actually the same template we could expect 1 to behave in the exact same way as 2 meaning that identity T should act as a forwarding-reference .",
"CWG - the Core working group .. . .. . A similar line of reasoning could apply to your example making identity T not equivalent to a forwarding-reference .",
"I think it applies just as well to the cases discussed here and settles the issue for now : all these forms should be treated as equivalent to a forwarding-reference .",
"Or is Angew s reasoning http : stackoverflow.com a 29851257 391022 correct that there is additional rule which requires exactly T syntax no matter where to treat it as a forwarding-reference",
"Why auto is Also Considered a Forwarding case .. . .. . auto is also considered a forward case since it follows the reference collapsing rules http : en.cppreference.com w cpp language reference .",
"That is unless T is a template parameter type or auto or a typedef for some lvalue reference-type .",
"P the type of the function-parameter is of type rvalue-reference to identity T .",
"Why auto is not rvalue-reference",
"Similarly the lvalue-ness of a reference is the max of the lvalue-ness of the T and any local modifiers .",
"Given your code the following fails to compile .. . .. . The reason the forwarding-reference overload is selected is because matching the other one requires const qualification .",
"So this means that you would have to make sure for every custom concept that it is not a reference if you want to prevent unexpected forwarding behavior right",
"Opened this question on the topic : stackoverflow.com questions 36842291 http : stackoverflow.com questions 36842291 c-confusion-about-forwarding-reference 36842684 noredirect 1 comment61256144 36842684",
"I m still confused as to why I understand that the type is deduced to a Reference and this is desired but why wouldn t a reference have the function member",
"If copy does not make sense take by rvalue-reference not a universal-reference or by value .",
"If P is a reference-type the type referred to by P is used for type deduction .",
"If T was int lvalue ref then reference collapsing results in int lvalue ref ref - int lvalue ref which translates back as int .",
"First a concept used in this way is supposed to work just as a type and second if T is a deduced type T denotes a universal-reference instead of an rvalue-reference .",
"This is called reference collapsing1 .",
"It can also be an rvalue-reference .",
"for const reference it is always const .",
"below are rvalue-reference example .. . .. . Why var2 is not rvalue-reference but f and var2 are rvalue references",
"If you want to retain a forwarding-reference parameter and at the same time deduce the type of an argument you can use the below solution : .. . .. . DEMO http : coliru.stacked-crooked.com a 651f0f3ae9afbf39",
"std : : forward is intended to restore the value category of what we assume a reference refers to .",
"-- The reason for the error is that you have to supply the template argument for std : : forward manually : std : : forward T t since it is meant to restores the value category of t if t is a forwarding-reference .",
"That rules out the possibility that param is a universal-reference .",
"add auto var3 10 as an rvalue-reference",
"At least with the syntax we ve got the type T is a real type and the reference collapsing rules are not specific to function-templates using universal references they re completely consistent with the rest of the type system outside of templates : .. . .. . Or equivalently : .. . .. . When T is an lvalue reference-type T is too .",
"The universal-reference deduces the parameter to foo .",
"It sounds like type-traits for a reference are closer to those of a pointer than a class .",
"@BeABee Sometimes a reference-type is a perfectly fine model of a concept ."
]
} | {
"confidence": [
71.09806060791016,
70.49099731445312,
67.54479217529297,
67.13097381591797,
66.62651824951172,
65.08434295654297,
63.76679611206055,
63.25564956665039,
59.860443115234375,
59.49281692504883,
57.79521560668945,
56.758934020996094,
55.716854095458984,
55.484580993652344,
54.093597412109375,
52.023284912109375,
51.98775100708008,
51.0120735168457,
49.141536712646484,
48.53319549560547
],
"content": [
"Question : Why auto is not rvalue-reference below are rvalue-reference example .. . .. . Why var2 is not rvalue-reference but f and var2 are rvalue references Comment : I d recommend reading this article https : isocpp.org blog 2012 11 universal-references-in-c11-scott-meyers on forwarding references previously known as universal references . Comment : add auto var3 10 as an rvalue-reference Comment : Because named rvalue references are lvalues . Comment : lvalue reference and rvalue-reference refer to how a reference is bound . After binding it s just a reference there is no longer any distinction other than the result-of decltype . Please update your question to show how you are determining not rvalue-reference .. . Answer : auto is a declaration s equivalent of forwarding references with identical deduction rules . As such it will be deduced to an lvalue reference when the initializer is an lvalue . However var is an lvalue as it is the name of a variable hence var2 is an lvalue reference .",
"Question : Consider the following snippet below : .. . .. . i is an lvalue hence if foo declares a forwarding-reference parameter it should compile . However if identity T is turned to be int it should raise an error instead . The code compiles in GCC 6.0.0 demo http : melpon.org wandbox permlink XQg1vhNx0MSrgHT2 . The code fails to compile in Clang 3.7.0 demo http : melpon.org wandbox permlink OGCUVTrh37XPHFdh with error message : .. . .. . Which one is right Comment : Funny thing identity T seems to work in both GCC and Clang demo http : melpon.org wandbox permlink r1YH40UcY8lwouQ4 being treated as a forwarding-reference Comment : That s probably because T is of the format prescribed for forwarding references . Comment : @Angew Yes but as a function-parameter not as a template argument in a template-id . Comment : I have a sneaking suspicion that identity T is rejected by Clang because it triggers an overriding check of the form is the function-parameter an rvalue-reference if so if it refers to anything other than a plain template parameter it s not a forwarding-reference . Since identity T and forwarding-reference T from your other question don t contain the rvalue-reference syntax at the top level in the function-parameter they fall through to further processing . This is just a shot in the dark I haven t looked at the code . .. . Answer : It is not a forwarding-reference . C++14 n4140 14.8.2.1 3 emphasis mine : .. . .. . .. . If P is an rvalue-reference to a cv-unqualified template parameter and the argument is an lvalue the type lvalue reference to A is used in-place of A for type deduction . This is the piece of the standard which specifies how forwarding references work . P the type of the function-parameter is of type rvalue-reference to identity T . identity T is the type of the template parameter but it is not a template parameter itself so the forwarding-reference deduction rule does not apply . We can also look at what 14.5.7 2 has to say about alias templates : .. . .. . When a template-id refers to the specialization of an alias template it is equivalent to the associated type obtained by substitution of its template-arguments for the template-parameters in the type-id of the alias template . So the substituted alias is equivalent to the type of T but 14.8.2.1 3 reads reference to .. . template parameter not reference to .. . the type of a template parameter . Comment : If we assume the implementation is free to substitute the alias template with actual type it points to before the template argument type deduction takes place or something else not sure how to call it I m referring to what GCC presumably does this paragraph still applies doesn t it - I might be wrong I just don t know . Comment : @MarcAndreson Any reason why we should be able to assume that Comment : @MarcAndreson Per 14.5.7 2 When a template-id refers to the specialization of an alias template it is equivalent to the associated type obtained by substitution of its template-arguments for the template-parameters in the type-id of the alias template . Again it is equivalent to the type but the forwarding-reference ruling speaks about template parameters not their types . Comment : I was just about to paste the same sentence but with the equivalent word emphasised Comment : @MarcAndreson I actually added it to the answer .",
"Question : Why auto is not rvalue-reference below are rvalue-reference example .. . .. . Why var2 is not rvalue-reference but f and var2 are rvalue references Comment : I d recommend reading this article https : isocpp.org blog 2012 11 universal-references-in-c11-scott-meyers on forwarding references previously known as universal references . Comment : add auto var3 10 as an rvalue-reference Comment : Because named rvalue references are lvalues . Comment : lvalue reference and rvalue-reference refer to how a reference is bound . After binding it s just a reference there is no longer any distinction other than the result-of decltype . Please update your question to show how you are determining not rvalue-reference .. . Answer : Once the type of the initializer has been determined the compiler determines the type that will replace the keyword auto using the rules for template argument deduction from a function-call see template argument deduction Other contexts for details . The keyword auto may be accompanied by modifiers such as const or which will participate in the type deduction . For example given .. . .. . The type of i is exactly the type of the argument u in an imaginary .. . .. . If the function-call f expr was compiled . In general it can be think as below . Therefore auto may be deduced either as an lvalue reference or rvalue-reference according to the initializer . In your case imaginary template would look like .. . .. . Here var1 is named rvalue which is being treated as lvalue so var2 will be deduced as lvalue . Consider the following examples :",
"Question : I have a templated implementation of a concurrent-queue that has a push function that looks like : .. . .. . Later on I instantiate it and use it like so : .. . .. . and then I try to push items on the queue and I get the afore mentioned compiler error : .. . .. . I ve sucessfully used the queue before as part of a thread pool implementation where it stored std : : function objects . I don t understand why it can t deduce the type in this case . Any thoughts Comment : queue.push back std : : forward item there is no reason to forward a reference to a constant T . -- The reason for the error is that you have to supply the template argument for std : : forward manually : std : : forward T t since it is meant to restores the value category of t if t is a forwarding-reference . Comment : Thanks . I removed const and added the template argument and it solved the problem . If you add your comment as an answer I ll accept it . Comment : I think you should use void push T item without const and as a universal-reference . And call forward T with the explicit T . If you want to keep the const you should also add it in the call to forward const T . See isocpp.org blog 2012 11 http : isocpp.org blog 2012 11 universal-references-in-c11-scott-meyers for more details about the mess with different kind of references . .. . Answer : Value categories like lvalue and rvalue are properties of expressions . Expressions that name variables are always lvalue-expressions even if they name a variable that has the type rvalue-reference to some type . We use lvalue-reference and rvalue-references to bind different categories of expressions : Per convention we treat lvalue-references as being bound to lvalues and rvalue-references as being bound to rvalues . std : : forward is intended to restore the value category of what we assume a reference refers to . For example : .. . .. . std : : forward being an ordinary function cannot restore the value category merely by using the argument . Both arguments are lvalue-expressions . You have to specify which value category you want to restore by manually supplying the template-argument . This makes only sense if we have a reference where we don t know a priori whether it s an rvalue-reference or an lvalue-reference . That is the case-when writing a function that uses perfect-forwarding with forwarding references . By the way we want to restore the value category to allow another function to move from the argument we have received . If we receive an rvalue argument we want to pass on an rvalue to allow the called function to move . .. . .. . For a function like the one in the OP : .. . .. . We know that item has the type lvalue reference to const T . Therefore we don t need std : : forward : .. . .. . If we add another overload : .. . .. . we still don t need std : : forward since the type of that parameter item is always rvalue-reference to T assuming T is not a reference-type : .. . .. . Only if we have something like .. . .. . where forwarding-reference U can be either an lvalue-reference or an rvalue-reference then we need std : : forward : .. . .. . Due to implementation details we must write the above as : .. . .. . Note that the above U item is not an rvalue-reference but a forwarding-reference . To get a forwarding-reference you need to have a function template with some template type-parameter X and a function-parameter of the form X x . Comment : g++ accepts template typename T using forwarding-reference T as a forwarding-reference by the way but clang++ does not . : Comment : Awesome answer this really cleared up some misconceptions I ve had about forwarding that I haven t seen in other SO answers",
"Question : I have been reading about the universal references in Soctt s last master piece about the c++11 and 14 with that being said despite an argument assigned to either lvalue or an rvalue type reference parameter there is something in between called universal-reference which could deduced to either l rvalue based on the type trait of an argument that passed . I could understand what makes the parameter as an universal-reference but the one thing that doesn t clear to me is why adding cont to the type-parameter const T p make the p as rvalue .. . .. . Does the const do more than this when assigned to the reference parameter . .. . Answer : The official name is not universal-reference but forwarding-reference http : stackoverflow.com questions 33904462 whats-the-standard-official-name-for-universal-references . The Standard http : www.open-std.org jtc1 sc22 wg21 docs papers 2016 n4582.pdf states that only rvalue references to cv-unqualified template parameters fall in this category : .. . .. . 14.8.2.1 Deducing template arguments from a function-call temp.deduct.call .. . .. . 3 If P is a cv-qualified type the top level cv-qualifiers of P s type are ignored for type deduction . If P is a reference-type the type referred to by P is used for type deduction . A forwarding-reference is an rvalue-reference to a cv-unqualified template parameter . If P is a forwarding-reference and the argument is an lvalue the type lvalue reference to A is used in-place of A for type deduction . Example : .. . .. . .. . template class T int f T heisenreference .. . template class T int g const T .. . int i .. . int n1 f i calls f int int .. . int n2 f 0 calls f int int .. . int n3 g i error : would call g int const int which .. . would bind an rvalue-reference to an lvalue .. . .. . .. . end example .. . .. . Allowing const T to behave as forwarding references would make it impossible to overload a template function who takes only an rvalue-reference as parameter . Update : as @HowardHinnant mentions in the comments const T does have its uses see also this Q A http : stackoverflow.com q 4938875 819272 . Comment : To tie back to the part of Item 24 in Effective Modern C++ that confused the OP Scott describe loosely universal references to be rvalue references in a type deducing context . The first non-emphasized sentence in the 14.8.2.1 standard quote above If P is a cv-qualified type the top level cv-qualifiers of P s type are ignored for type deduction clearly explains Scott s statement that Even the simple presence of a const qualifier is enough to disqualify a reference from being universal quote from book Item 24 . Comment : @dfri Thanks I didn t have a digital copy of EMC++ nearby . Comment : More motivation as to the why : Sometimes we need to say : Don t bind to an rvalue only to lvalues : template class T void cref const T delete . Comment : @HowardHinnant updated with a link-to another Q A where you explained that in depth tnx Comment : allowing const T to behave as forwarding references would lead to binding rvalue references to lvalues . strictly speaking this is not true . If const T is allowed to use as forwarding-reference we would deduce T as int in g i then collapse to const int which binds const lvalue refere to lvalue . The problem is that we would have no way to overload a template function who takes only rvalue-reference as parameter if both T and const T are allowed to use as forwarding references .",
"Question : Consider this code : .. . .. . My question is if universal-reference type can be deduced why do I still need to call forward Why without forwarding tmp s correct c tor won t be called even if T s type was deduced . My second question is about reference collapsing rules : .. . .. . 1 . A becomes A .. . 2 . A becomes A .. . .. . so according this rules and taking in account universal-reference why std : : forward signature can t be as follows : .. . .. . According to the rules from above if T s type is rvalue-reference it will collapse to rvalue-reference if T s type is lvalue reference it will collapse to lvalue reference . So why std : : forward have two different signatures one for lvalue reference and one for rvalue-reference am I missing something Comment : They re called forwarding references these days . Comment : What is T is that supposed to be T .. . Answer : My question is if universal-reference type can be deduced why do I still need to call forward Because as soon as you give a name to the parameter param it is an lvalue even if the function was called with an rvalue so it wouldn t be forwarded as an rvalue unless you use forward T .. . .. . Why without forwarding tmp s correct c tor won t be called even if T s type was deduced . Because param is an lvalue . To restore the value category of the argument passed to foo you need to cast it back to string or string which means you need to know the type T was deduced as and use forward to do the cast . So why std : : forward have two different signatures one for lvalue reference and one for rvalue-reference am I missing something It was changed by http : www.open-std.org jtc1 sc22 wg21 docs papers 2010 n3143.html .. . .. . There is lots of background info in http : www.open-std.org jtc1 sc22 wg21 docs papers 2010 n3143.html and http : www.open-std.org jtc1 sc22 wg21 docs papers 2009 n2951.html .. . .. . The problem with your suggested version is that if you say forward string then the parameter T is not deduced so doesn t function as a forwarding-reference which means that T can t bind to an lvalue and it needs to be able to bind to an lvalue in order for forward string param to work because param is an lvalue there . Comment : According to your answer foo s param is an lvalue when you call forward with lvalue you get lvalue . So how rvalue type is preserved here BTW according to Scott Meyers foo s signature implies that param is universal-reference . Comment : The rvalue-ness is lost inside the body of foo because param is an lvalue there but then you restore the rvalue type using forward . Comment : And they are called forwarding references http : isocpp.org files papers N4164.pdf now not universal references . Comment : So if forward manages to restore the correct type of param which is preserved within foo s body why in my example tmp s c tor can t do implicitly the same Comment : Because you have to explicitly tell forward the type you want it to cast to i.e . you must call forward T param not just forward param . The explicit type there is explicit and cannot be deduced implicitly . If you don t use forward to restore the rvalue-ness then it is lost it can t be restored by another function that gets passed an lvalue it has no way to know that is was an rvalue two levels up the stack .",
"Question : I looked recently at this video https : youtu.be qwXq5MqY2ZA explaining the ideas of concepts lite in C++ which are likely to appear this year as a TS . Now I also learned about universal references forwarding references as described here http : isocpp.org blog 2012 11 universal-references-in-c11-scott-meyers and that T can have two meanings depending on the context i.e . if type deduction is being performed or not . This leads naturally to the question how concepts will interact with universal references To make it concrete in the following example we have .. . .. . and .. . .. . But what happens if we use concepts Especially the last example bothers me a bit since there are two conflicting principles . First a concept used in this way is supposed to work just as a type and second if T is a deduced type T denotes a universal-reference instead of an rvalue-reference . Thanks in advance for clarification on this .. . Answer : T always has the same meaning -- it is an rvalue-reference to T . The interesting thing happens when T itself is a reference . If T X then T X . If T X then T X . The rule that an rvalue-reference to an lvalue reference is an lvalue reference is what allows the forwarding-reference technique to exist . This is called reference collapsing1 . So as for .. . .. . this depends on what Number T means . If Number T permits lvalue references to pass then that T will work like a forwarding-reference . If not T it will only bind to rvalues . As the rest of the examples are last I checked defined in terms of the first example there you have it . There may be additional magic in the concepts specification but I am not aware of it . .. . .. . 1 There is never actually a reference-to-a-reference . In fact if you type int y 3 int x y that is an illegal expression : but using U int U x y is perfectly legal as reference collapsing occurs . An analogy to how const works sometimes helps . If T const x is const regardless of if T is const . If T const is const then T const x is also const . And T const const x is const as well . The const ness of x is the max of the const ness of the type T and any local modifiers . Similarly the lvalue-ness of a reference is the max of the lvalue-ness of the T and any local modifiers . Imagine if the language had two keywords ref and lvalue . Replace with lvalue ref and with ref . The use of lvalue without ref is illegal under this translation. . .. . .. . T means T ref . If T was int lvalue ref then reference collapsing results in int lvalue ref ref - int lvalue ref which translates back as int . Similarly T translates to int lvalue ref lvalue ref - int lvalue ref and if T int then T translates to int ref lvalue ref - int lvalue ref - int . Comment : N4377 http : www.open-std.org jtc1 sc22 wg21 docs papers 2015 n4377.pdf from 2015-02-09 still defines h like g and g like f : From the abbreviated function template introduce a template parameter list with a constrained-parameter dcl.fct p16-18 then introduce a type template-parameter from the prototype parameter of the concept temp.param p9 and finally introduce a predicate constraint from the concept temp.param p10 . Comment : No such thing as an rvalue-reference to an lvalue reference http : coliru.stacked-crooked.com a 9692dfa2084d361a or in fact a reference to a reference in general as per 8.3.2 5 There shall be no references to references . There is such a thing as reference collapsing but I believe there are better ways to explain it . Comment : @LucDanton long discussion of reference collapsing not using standardese added . Do you see any errors",
"Question : Consider these two template functions : .. . .. . Why does the former accept lvalues by using a forwarding-reference while the latter does not .. . .. . It looks like Can an identity alias template be a forwarding-reference http : stackoverflow.com questions 29851098 can-an-identity-alias-template-be-a-forwarding-reference may be related to this as well but it seems to cover a different facet of the restrictions on forwarding references . Comment : Here s http : coliru.stacked-crooked.com a 651f0f3ae9afbf39 an alternative solution Comment : @PiotrSkotnicki Oh that s a nice way of doing it too . Could you post your solution as an alternative answer rather than just linking it There s nothing wrong with adding additional solutions even if a good one already exists if the additional solutions are good as well . .. . Answer : Because that s how the standard says the language should work . 14.8.2.1 temp.deduct.call .. . 3.If P is a cv-qualified type the top level cv-qualifiers of P s type are ignored for type deduction . If P is a reference-type the type referred to by P is used for type deduction . A forwarding-reference is an rvalue-reference to a cv-unqualified template parameter . If P is a forwarding-reference and the argument is an lvalue the type lvalue reference to A is used in-place of A for type deduction . Only an rvalue-reference to a CV-unqualified template parameter can be deduced as an l-value reference in this manner . To achieve what you are trying to do you might be able to use a trait to extract the template template parameter . Or just overload the function for const and as usual . Comment : Traits are pretty cool I haven t used them that much but they ve been quite useful when I needed them . Ultimately in what I was working on I was able to use another type-parameter that could be passed as const to supply the template template parameter so was able to specify the argument type as a plain parameter kind of like Piotr s solution actually and asked the question more out of curiosity than needing a specific solution but this would be useful for situations where that s not doable .",
"Question : I am reading Effective modern C++ by Scott Meyers .. . .. . For universal references that are function parameters the initializer is provided at the call site . For reference to be universal type deduction is necessary but it is not sufficient . The form of the reference declaration must also be correct and that from is quite constrained . It must be precisely T . When f is invoked the type T will be deduced unless the caller explicitly specifies it an edge case we ll not concern ourselves with . But the form of param s type declaration isn t T it s std : : vector T . That rules out the possibility that param is a universal-reference . param is therefore an rvalue-reference something your compilers will be happy to confirm for you if you try to pass an lvalue to f .. . .. . In above I have following question .. . .. . 1 . What does author mean by unless the caller explicitly specifies it an edge case we ll not concern ourselves with Request to provide an example what is edge case author is mentioning that caller explicitly specifies Comment : What does author mean by unless the caller.. . - f int w Comment : The term has later been changed to Forwarding Reference https : isocpp.org files papers N4164.pdf Comment : @amit is there is difference in type deduction if user specifies the type Comment : There is no type deduction when type is explicitly specified .. . Answer : The author is referring to the end user explicitly specifying the type-parameter in the call to f :",
"Question : I opened this http : stackoverflow.com questions 36842291 c-confusion-about-forwarding-reference post about forwarding-reference this is a hopefully MCVE code : .. . .. . Since this is not the whole code maybe I ll have to add extra code based on the answers . Anyway as was suggested in this http : stackoverflow.com a 36842684 4480180 answer forwarding-reference is not possible with this version since Args is not deduced . So my question is : is it possible to make this code forwarding referencable Comment : What about the linked answer is insufficient When you re explicitly providing the template arguments the overload isn t viable . .. . Answer : I will add a bit of details regarding @TartanLlama answer on why your code fails to compile even without the explicit template parameters but also why in my own opinion your code is dangerous . In the following I will use only a simple type T instead of your parameter pack Args.. . because it is simpler to explain and does not change the meaning . A bit of reminder on forwarding references.. . .. . .. . First let s take a simpler example than yours with simply the following : .. . .. . Now let s instanciate f from various sources let s assume with have the following variables : .. . .. . ...then : .. . .. . You should be wondering : Why is the first instanciation f std : : string instead of f std : : string but the standard tells you 14.8.2.1 3 temp.deduct.call : .. . .. . If P is a forwarding-reference and the argument is an lvalue the type lvalue reference to A is used in-place of A for type deduction . Back to our initial snippet Now let s complicate a bit our example : .. . .. . And one instantiation : .. . .. . The above is equivalent to your example and will fails to compile but why.. . Well as explained above when you have an lvalue the deduced type for T is T not T and thus the type deduction fails for A T because the compiler is expecting A std : : string and you are giving a A std : : string . So now we know that we have to do the following : .. . .. . Why is it dangerous Ok so now this should be good : .. . .. . But it is not.. . Because when T is deduced as a rvalue-reference T is simply T so the compiler is expecting A std : : string . So here is the problem : You are going to give a rvalue to a method that is going to forward it to a function expecting an lvalue . That s not wrong but it is probably not what you d have expected . How to deal with it The first possibility is to force the type of the first parameter regardless of the deduced type for T e.g . : .. . .. . But note : .. . .. . 1 . You would have to add more stuff to deal with const . 2 . One may wonder the usefulness of T when the type of the first argument is fixed in your case at least . The second possibility warning : I don t know if this is standard is to move the first parameter at the end and then deduce the type from t : .. . .. . Now you have an exact match between the deduced type for T and the expected type for A . Unfortunately I don t know how to make the above work with variadic templates.. . Comment : Thanks for your answer . I have still some doubts : 1 . f s instanciate f std : : string it s because of the infamous collapsing rule where A becomes A right 2 . In your solution I didn t get A decltype std : : forward T t 3 . What do you mean by warning : I don t know if this is standard and what could be the problem with that 4 . Your esample is not a little bit different since we are using template typename T1 typename T2 according to @TartanLlama s solution Comment : @justHelloWorld 1 . Not really it s because of the quoted standard part : If you have a templated function waiting for a forwarding-reference T and you are giving it an lvalue s in this case then the deduced argument template will be T and not T even for the other parameters . This is a different behaviour than if you pass an rvalue in which case the deduced parameter is still T for the other arguments . Comment : @justHelloWorld 2 . Instead of using T for the template argument you can used the deduce type for t which can be retrieved using decltype and std : : forward will be T if the given parameter is an lvalue and T if it s an rvalue . 3 . I simply mean that I don t know if you can use an parameter name in the definitiion of a following parameter . 4 . I was extending on your code why it does not work and why it may behave strangly not on the proposed code by Tartan . Comment : By your answer for point 4 . seems like @TartanLlama code could be a working solution or am I wrong Comment : @justHelloWorld Tartan code will basically work the same as the code with std : : remove reference but it is not what you want I think I will add a bit at the end of my answer to explain why .",
"Question : I know that if a variable or parameter is declared to have type T for some deduced type T that variable or parameter is widely called a universal-reference . The term universal-reference was introduced by Scott Meyers in his original talk Universal References in C++11 https : channel9.msdn.com Shows Going+Deep Cpp-and-Beyond-2012-Scott-Meyers-Universal-References-in-Cpp11 . However I wonder what s the official standard term for universal references . .. . Answer : Overview .. . .. . It is known that since C++11 a parameter of type T is called an rvalue-reference ISO IEC 14882 : 2011 8.3.2 p2 References dcl.ref . That is unless T is a template parameter type or auto or a typedef for some lvalue reference-type . examples : .. . .. . .. . template typename T .. . void foo T p - T is a template parameter .. . .. . .. . .. . .. . auto p expression .. . .. . .. . Although technically T in the examples above is still an rvalue-reference its behaviour differs significantly from a regular one . Naturally you would ask why this special case doesn t have a special syntax . The answer is that the syntax was intentionally overloaded for this special construct by the C++ committee . However they missed to name this special case . In the absence of a distinct name for this particular construct Scott Meyers http : www.aristeia.com coined the widely known term name universal references https : isocpp.org blog 2012 11 universal-references-in-c11-scott-meyers . The committee however decided that this name is not proper for a number of reasons . As such the proposal N4164 http : www.open-std.org jtc1 sc22 wg21 docs papers 2014 n4164.pdf made by Herb Sutter https : en.wikipedia.org wiki Herb Sutter Bjarne Stroustrup https : en.wikipedia.org wiki Bjarne Stroustrup and Gabriel Dos Reis http : www.axiomatics.org gdr proposed to change the name to Forwarding References . The name Forwarding References had the most support in informal discussions among committee members including the authors of the proposal mentioned earlier . Interestingly enough it was Scott Meyers himself that introduced that term in his original Universal References talk . However later he decided to go along with the name universal references . For this decision played role the fact that at the time he didn t think that the term forwarding references included also the auto case . Why not universal references According to the proposal the term Universal references although is a reasonable name with an obvious meaning it happens to be wrong in several aspects . A universal-reference must mean the following : .. . .. . A reference that can be used everywhere or .. . A reference that can be used for everything or .. . something similar . Obviously this is not the case nor is the appropriate use of this construct . Furthermore this name would encourage many people to consider that something having such a name is meant to be used universally . Something that the committee considered it a bad thing . Moreover universal references aren t even really references per se but rather a set of rules for using references in a particular way in a particular context with some language support for that use and that use is forwarding . Why auto is Also Considered a Forwarding case .. . .. . auto is also considered a forward case since it follows the reference collapsing rules http : en.cppreference.com w cpp language reference . For example in : .. . .. . Generic lambdas of the form auto x .. . for -ranged loop of the form-for auto i : v .. . .. . Finally in general is true that auto local-variables are for forwarding . Standard Wordings for Forwarding References .. . .. . The term forwarding references is mentioned in the draft standard N4527 http : open-std.org JTC1 SC22 WG21 docs papers 2015 n4527.pdf in the following places : .. . .. . 14.8.2.1 Deducing template arguments from a function-call temp.deduct.call Emphasis Mine : .. . .. . If P is a cv-qualified type the top level cv-qualifiers of P s type are ignored for type deduction . If P is a reference-type the type referred to by P is used for type deduction . A forwarding-reference is an rvalue-reference to a cv-unqualified template parameter . If P is a forwarding-reference and the argument is an lvalue the type lvalue reference to A is used in-place of A for type deduction . Example : .. . .. . .. . template class T int f T heisenreference .. . template class T int g const T .. . int i .. . int n1 f i calls f int int .. . int n2 f 0 calls f int int .. . int n3 g i error : would call g int const int which .. . would bind an rvalue-reference to an lvalue .. . .. . .. . end example .. . .. . 14.8.2.5 p10 Deducing template arguments from a type temp.deduct.type : .. . .. . Similarly if P has a form that contains T then each parameter type Pi of the respective parameter-typelist of P is compared with the corresponding parameter type Ai of the corresponding parameter-type-list of A . If P and A are function types that originated from deduction when taking the address of a function template 14.8.2.2 or when deducing template arguments from a function declaration 14.8.2.6 and Pi and Ai are parameters of the top-level parameter-type-list of P and A respectively Pi is adjusted if it is a forwarding-reference 14.8.2.1 and Ai is an lvalue reference in which case the type of Pi is changed to be the template parameter type i.e . T is changed to simply T . Note : As a result when Pi is T and Ai is X the adjusted Pi will be T causing T to be deduced as X . end note Example : .. . .. . .. . template class T void f T .. . template void f int 1 .. . template void f int 2 .. . void g int i .. . f i calls f int int i.e . 1 .. . f 0 calls f int int i.e . 2 .. . .. . .. . .. . end example If the parameter-declaration corresponding to Pi is a function-parameter pack then the type of its declaratorid is compared with each remaining parameter type in the parameter-type-list of A . Each comparison deduces template arguments for subsequent positions in the template parameter packs expanded by the function-parameter pack . During partial ordering 14.8.2.4 if Ai was originally a function-parameter pack : Comment : A citation for It is known that since C++11 a parameter of type T is called an rvalue-reference would be appreciated . In particular if T is int a citation that T is still called an rvalue-reference in the standard . Comment : @Yakk I agree I ll try to find the standard wording for it . Comment : @Yakk done thanx . Comment : That is unless T is a template parameter type or auto . or a typedef for some lvalue reference-type . Comment : dcl.ref 6 -- If TR is int an attempt to create the type rvalue-reference to TR creates TR . The use of an attempt to create implies no rvalue-reference actually occurs there instead it is just an attempt to create an rvalue-reference . T is not an rvalue-reference if T is a reference-type because dcl.ref 5 there shall be no reference to references . In essence TR where TR is a reference is not a valid construct and hence has no name prior to dcl.ref 6 . After dcl.ref 6 it means TR .. . maybe",
"Question : I read this https : isocpp.org blog 2012 11 universal-references-in-c11-scott-meyers incredibly well written article about Forwarding Reference in C++11 by Scott Meyers . Now focus on this part of the article : .. . .. . .. . template class.. . Args .. . void emplace back Args .. . args deduced parameter types type deduction .. . .. . universal references .. . .. . .. . So in contrast with other cases the ellipses doesn t make the an rvalue-reference but it s still universal references . From what I ve understood when we have universal references we can call the function passing both rvalue and lvalues wow so cool Now I ve implemented this function : .. . .. . So using the same logic of the previous example means forwarding references . But if I try to make this call : .. . .. . The compiler is going to complain with You cannot bind an lvalue to an rvalue-reference .. . .. . Why this happens THE WHOLE CODE : Comment : Universal references was terrible term from the very beginning and now it is finally replaced with much more suitable forwarding refererence . Comment : Are you sure Args is actually deduced in your call Comment : Please provide a Minimal Complete and Verifiable example http : stackoverflow.com help mcve . The code provided isn t complete what s sort vec and certainly isn t minimal . Comment : @bolov It s almost as-if they just want to see the code that s relevant Comment : @justHelloWorld Everyone is right : 1 . There were some parts missing in your snippet 2 . Your code contains lots of stuff irrelevant to your question 3 . These are completely irrelevant for your questions 4 . A code can be minimal and working for compiler . This http : ideone.com zXuA0K could be a good MCVE for your question and its 25 lines long . .. . Answer : So first off please use the forwarding-reference instead of universal-reference . It better represents what it is and what is it s intended use . The first thing to be aware of is that not every is a forwarding-reference . It can also be an rvalue-reference . In simple terms T is a forwarding-reference if and only if : .. . .. . T is a simple simple as shown next type so for instance vector int or vector T is not a forwarding-reference . and T is deduced . In your example Args is not deduced . That is because you explicitly specify the function template argument Args when you call it : .. . .. . .. . .. . Let s work with something simpler to better understand : .. . .. . Lets set up the scene : .. . .. . In the next 2 calls we have forwarding-reference : .. . .. . In the first T will be deduced as X and by collapsing rules : X becomes X therefore we have an lvalue reference . As you would expect . In the second T will be deduced as X and by collapsing rules X becomes X therefore we have an rvalue-reference . But when you call it like this : .. . .. . T is no longer deduced . You basically say let T be X . So if T is X then T is X and you have the error : p whose type is now X cannot bind to an lvalue . .. . .. . Holt also added : .. . .. . Also note that because of the declaration of sortFunc this would not work even if you did not specify the function template arguments explicitely . I tend to agree with him but I would need to investigate further to be sure of this . Comment : Also note that because of the declaration of sortFunc this would not work even if you did not specify the function template arguments explicitely . Comment : I think that I understood your answer but my next question is : there is a way to make my code forwarding referencable and so make Args type deduced Comment : @justHelloWorld at first glance I would say no at least not without some nasty ugly hacks . You need to specify Args for sortFunc . Maybe if you make memFunc the last parameter don t know if it s possible so that Args deduction happens first but then it would change the signature of memFunc . But you could add remove reference t to the signature of memFuc s parameters . As I ve said ugly ugly hacks . Comment : @justHelloWorld Maybe if you post that as a separate question but please keep it minimal someone will come up with a good solution . Comment : Opened this question on the topic : stackoverflow.com questions 36842291 http : stackoverflow.com questions 36842291 c-confusion-about-forwarding-reference 36842684 noredirect 1 comment61256144 36842684",
"Question : Consider these two template functions : .. . .. . Why does the former accept lvalues by using a forwarding-reference while the latter does not .. . .. . It looks like Can an identity alias template be a forwarding-reference http : stackoverflow.com questions 29851098 can-an-identity-alias-template-be-a-forwarding-reference may be related to this as well but it seems to cover a different facet of the restrictions on forwarding references . Comment : Here s http : coliru.stacked-crooked.com a 651f0f3ae9afbf39 an alternative solution Comment : @PiotrSkotnicki Oh that s a nice way of doing it too . Could you post your solution as an alternative answer rather than just linking it There s nothing wrong with adding additional solutions even if a good one already exists if the additional solutions are good as well . .. . Answer : If you want to retain a forwarding-reference parameter and at the same time deduce the type of an argument you can use the below solution : .. . .. . DEMO http : coliru.stacked-crooked.com a 651f0f3ae9afbf39",
"Question : Consider the following snippet below : .. . .. . i is an lvalue hence if foo declares a forwarding-reference parameter it should compile . However if identity T is turned to be int it should raise an error instead . The code compiles in GCC 6.0.0 demo http : melpon.org wandbox permlink XQg1vhNx0MSrgHT2 . The code fails to compile in Clang 3.7.0 demo http : melpon.org wandbox permlink OGCUVTrh37XPHFdh with error message : .. . .. . Which one is right Comment : Funny thing identity T seems to work in both GCC and Clang demo http : melpon.org wandbox permlink r1YH40UcY8lwouQ4 being treated as a forwarding-reference Comment : That s probably because T is of the format prescribed for forwarding references . Comment : @Angew Yes but as a function-parameter not as a template argument in a template-id . Comment : I have a sneaking suspicion that identity T is rejected by Clang because it triggers an overriding check of the form is the function-parameter an rvalue-reference if so if it refers to anything other than a plain template parameter it s not a forwarding-reference . Since identity T and forwarding-reference T from your other question don t contain the rvalue-reference syntax at the top level in the function-parameter they fall through to further processing . This is just a shot in the dark I haven t looked at the code . .. . Answer : Consider this code : .. . .. . Both GCC and Clang reject it because 2 is a redefinition of 1 . If they re actually the same template we could expect 1 to behave in the exact same way as 2 meaning that identity T should act as a forwarding-reference . Following this logic we don t know which one is right but GCC is at least consistent . This is also consistent with a very similar example in the standard at 14.5.7p2 . We should also consider the way template argument deduction can work in this case . If identity were a class-template its form could be matched against the type of the function argument without looking at its definition allowing the compiler to deduce the template argument for T . However here we have an alias template T cannot be deduced to int or int or anything else unless identity T is replaced by T . Otherwise what are we matching against Once the replacement is done the function-parameter becomes a forwarding-reference . All of the above supports the idea of identity T and identity T being treated as equivalent to a forwarding-reference . However it seems that there s more to this that the immediate replacement of the alias template-id with the corresponding type-id . Paragraph 14.5.7p3 says : .. . .. . However if the template-id is dependent subsequent template argument substitution still applies to the template-id . Example : .. . .. . .. . template typename.. . using void t void .. . template typename T void t typename T : : foo f .. . f int error int does not have a nested type foo .. . .. . .. . end example .. . .. . This might not seem to have much to do with your example but it actually indicates that the initial form of the template-id is still taken into account in some cases independently of the substituted type-id . I guess this opens the possibility that identity T could actually not be treated as a forwarding-reference after all . This area seems to be underspecified in the standard . This shows in the number of open issues dealing with similar problems all in the same category in my opinion : in what cases should the initial form of the template-id be taken into account upon instantiation even though it s supposed to be replaced by the corresponding type-id immediately when encountered . See issues 1980 http : www.open-std.org jtc1 sc22 wg21 docs cwg active.html 1980 2021 http : www.open-std.org jtc1 sc22 wg21 docs cwg closed.html 2021 and 2025 http : www.open-std.org jtc1 sc22 wg21 docs cwg active.html 2025 . Even issues 1430 http : www.open-std.org jtc1 sc22 wg21 docs cwg active.html 1430 and 1554 http : www.open-std.org jtc1 sc22 wg21 docs cwg active.html 1554 could be seen as dealing with similar problems . In particular issue 1980 http : www.open-std.org jtc1 sc22 wg21 docs cwg active.html 1980 contains the following example : .. . .. . with the note : .. . .. . CWG felt that these two declarations should not be equivalent . CWG - the Core working group .. . .. . A similar line of reasoning could apply to your example making identity T not equivalent to a forwarding-reference . This could even have practical value as a straightforward way of avoiding the greediness of a forwarding-reference when all you want is an rvalue-reference to a deduced T . .. . .. . So I think you ve raised a very interesting problem . Your example may be worth adding as a note to issue 1980 http : www.open-std.org jtc1 sc22 wg21 docs cwg active.html 1980 to make sure this is taken into account when drafting the resolution . In my opinion the answer to your question is for now a resounding who knows . .. . .. . Update : In the comments to the other related question http : stackoverflow.com q 29867841 4326278 Piotr S . http : stackoverflow.com users 3953764 piotr-s pointed out issue 1700 http : www.open-std.org jtc1 sc22 wg21 docs cwg closed.html 1700 which was closed as not a defect . It refers to the very similar case described in that question and contains the following rationale : .. . .. . Because the types of the function parameters are the same regardless of whether written directly or via an alias template deduction must be handled the same way in both cases . I think it applies just as well to the cases discussed here and settles the issue for now : all these forms should be treated as equivalent to a forwarding-reference . It will be interesting to see if this is changed indirectly by the resolutions for the other open issues but they mostly deal with substitution failures rather than deduction by itself so I guess such an indirect effect is rather unlikely . .. . .. . All standard references are to the current working draft N4431 the second draft after final C++14 . Note that the quote from 14.5.7p3 is a recent addition included right after the final C++14 version as the resolution of DR1558 http : www.open-std.org jtc1 sc22 wg21 docs cwg defects.html 1558 . I think we can expect further additions in this area as the other issues are resolved in one way or another . Until then it may be worth asking this question in the ISO C++ Standard - Discussion https : groups.google.com a isocpp.org forum forum std-discussion group that should bring it to the attention of the right people . Comment : Your passage from 14.5.7 3 is not present in the C++14 or C++11 standard . Comment : @Columbo Yes it is the resolution of DR1558 http : www.open-std.org jtc1 sc22 wg21 docs cwg defects.html 1558 included in the working draft after the November 2014 meeting so it can be found in the two drafts after final C++14 . I forgot to mention the document version I quoted I ll update the answer thanks for the note . Comment : Thank you for this insightful analysis . I have started a discussion on google groups here https : groups.google.com a isocpp.org d topic std-discussion s0U6TNU1Qy0 discussion Comment : @MarcAndreson Nice one looking forward to seeing their opinions . One niggle : I didn t say unspecified but under specified . I shouldn t have used that word it s confusing sorry . What I meant by underspecified was not specified clearly enough needs more details . Unspecified has special meaning in the context of the standard 1.3.26 and clearly doesn t apply here .",
"Question : I am having trouble trying to figure out how to specify default-arguments for a Forwarding Reference formerly called Universal References http : isocpp.org blog 2012 11 universal-references-in-c11-scott-meyers by Scott Meyers . Here s an example of the code trying to do what I want to do : .. . .. . Also available on Coliru http : coliru.stacked-crooked.com a 4cc7f1b1d08ac1ce . Mucking through the errors you find out that you can make it work by defaulting the template argument and then default-constructing the argument thereafter : .. . .. . Also on Coliru http : coliru.stacked-crooked.com a e207474a715716d7 . Is this the proper way to be handling this What should be the syntax I use Are there multiple ways to have the desired effect of defaulted forwarded references Which way should I be writing this Also keep in mind that later on I ll be sprinkling tons of SFINAE on the code so I d much more prefer something that does not include writing multiple overloads . .. . Answer : First of all template types cannot be deduced from default-arguments http : stackoverflow.com questions 9628974 why-cant-the-compiler-deduce-the-template-type-from-default-arguments . So we can only look for other ways to achieve the idea of being able to optionally specify an argument to match a forwarding-reference . This workaround suggests itself : .. . .. . however this fails : Forwarding References work by deducing the template type as a reference-type but you have specified an object-type and the rvalue-reference now cannot bind to the lvalues of your dummy objects . As you say in your post you can fix this by making the defaults be a temporary object encoder t instead of a dummy object . This question http : stackoverflow.com questions 15181741 can-a-defaulted-template-type-be-universal-reference confirms that the reference does remain a Forwarding Reference in that case . Another workaround would be to use separate constructors instead of default-arguments : .. . .. . Depending on exactly what you do in the constructor body you could implement this by using constructor delegation . Since you mention intent to add SFINAE maybe this post will have some ideas : How to allow default construction when using universal-reference in constructor http : stackoverflow.com questions 23459432 how-to-allow-default-construction-when-using-universal-reference-in-constructor",
"Question : I opened this http : stackoverflow.com questions 36842291 c-confusion-about-forwarding-reference post about forwarding-reference this is a hopefully MCVE code : .. . .. . Since this is not the whole code maybe I ll have to add extra code based on the answers . Anyway as was suggested in this http : stackoverflow.com a 36842684 4480180 answer forwarding-reference is not possible with this version since Args is not deduced . So my question is : is it possible to make this code forwarding referencable Comment : What about the linked answer is insufficient When you re explicitly providing the template arguments the overload isn t viable . .. . Answer : In order to perfect-forward your arguments you need to have the types deduced . You can do this by deducing the arguments to the function and the parameters to the functor separately : .. . .. . Then you can call callFunction without template parameters and have everything deduced : Comment : I have added a bit of information from the standard on the cited answer http : stackoverflow.com questions 36842291 c-confusion-about-forwarding-reference 36842684 36842684 to explain why template argument deduction fails in the case where you have Args.. . inside the function maybe it s worth expanding a bit on your answer Comment : Am I wrong or this solution is type unsafe I cannot edit the answer now but as you can imagine you re gonna call memFunc args and so you re gonna find at runtime if this legal or not Comment : @Holt I m on my phone now so feel free to edit this answer or add one of your own : . Comment : @justHelloWorld why would this be done at runtime All the types are checked at compile-time . Comment : @TartanLlama do you think that after Holt considerations you code could still work",
"Question : While thinking about what can be done to solve the std : : min dangling reference problem http : stackoverflow.com questions 13721839 if-stdmax-returns-by-reference-as-it-must-might-that-lead-to-a-dangling-r one thought I had was to add an overload actually 3 - for each combination for rvalues that would be deleted . The issue is that T would be a forwarding-reference not an rvalue-reference . I want to separate this question from std : : min specifically and make it more general . The std : : min can be taken as an example why would you need such a thing . Lets simplify and generalize the problem : .. . .. . The question is : How can you control to what kind of references a generic template parameter T could bind And how could it scale for multiple arguments like in std : : min case .. . Answer : Given your code the following fails to compile .. . .. . The reason the forwarding-reference overload is selected is because matching the other one requires const qualification . But if you were to write .. . .. . In this case the overload taking the lvalue reference is selected https : stackoverflow.com q 17979265 241631 . Thus in order to reject all rvalues the delete d function needs to take a T const this is what std : : ref http : en.cppreference.com w cpp utility functional ref does to reject rvalues .. . .. . Live demo http : coliru.stacked-crooked.com a 9e29db8632ffa965 Comment : very good example with std : : ref Comment : do you see an easier way to make this work for multiple parameters other than declaring every possible combination ideone.com AJgqV8 http : ideone.com AJgqV8 Comment : @bolov No I don t see another way around . Looks like it s either a horrible looking enable-if expression or multiple deleted overloads . Neither is particularly appealing . Comment : @bolov : By changing the correct method you may do something like that http : coliru.stacked-crooked.com a d59e75855413a7ac .",
"Question : Assuming my current rule when programming with range-based loops says .. . .. . Use for auto const e : .. . or for auto e : .. . when possible over for auto a : .. . . I base this on my own experience and this question https : stackoverflow.com questions 15176104 for example . But after reading about the new terse for loops http : blogs.msdn.com b vcblog archive 2014 11 12 details-about-some-of-the-new-c-language-features.aspx I wonder should I not replace my in my rule with As written here https : stackoverflow.com questions 13230480 this looks like the Meyers Universal References http : isocpp.org blog 2012 11 universal-references-in-c11-scott-meyers . So I ask myself should my new rule either be .. . .. . Use for auto const e : .. . or for auto e : .. . when possible .. . .. . .. . or does that not always work and therefore should rather be the quite complicated one .. . .. . Check if for auto const e : .. . or for auto e : .. . is possible then consider for auto const e : .. . or for auto e : .. . and only when needed do not use references . Comment : auto always works . That s why it s universal . If necessary the deduced type will be qualified . Comment : const auto is not a forwarding-reference it s const rvalue-reference Comment : and the rest is explained in N3853 http : www.open-std.org jtc1 sc22 wg21 docs papers 2014 n3853.htm and What is the advantage of using universal references in range-based for loops http : stackoverflow.com questions 13130708 what-is-the-advantage-of-using-universal-references-in-range-based-for-loops Comment : @Bulletmagnet it was STL during CppCon 14 https : www.youtube.com watch v dTeKf5Oek2c t 47m4s Comment : @PiotrS . Cunningham s Law states the best way to get the right answer on the Internet is not to ask a question it s to post the wrong answer . .. . Answer : When and if you should use auto in for loops has been explained very nicely by Howard Hinnant http : stackoverflow.com a 13130795 472245 here . This leaves the question what x in .. . .. . actually is . And it is handled as-if there there were a function template definition .. . .. . and the type of x is deduced by the same tules as u 7.1.6.4 . 7 . This means it is not handled as a RValue Reference but as a Universal Forwarding Reference -- the Reference Collapsing Rules http : thbecker.net articles rvalue references section 08.html apply . This also holds for .. . .. . as the example in 7.1.6.4 . 7 states at least for const auto x . But as PiotrS says in the questions comments any qualifiers nullifies the URef-ness : .. . .. . no because neither T in template class T void f const T is a forwarding-reference nor const auto is . The fact that T occurs in parameter declaration does not imply it is forwarding-reference . Only pure T with no qualifiers like const or volatile is forwarding-reference meaning it has to be template class T void f T or auto and never const T or const auto",
"Question : Why does a std : : thread object accept the function-parameter by forwarding-reference and then make a copy of the object with decay copy Wouldn t it be easier to just accept the function object by value In general why would one not template a function so as to take a function object by value Can reference-ness not be imitated with reference wrapper s which would be more explicit and also conveniently has a member operator to call the stored function .. . Answer : Why does a std : : thread object accept the function-parameter by forwarding-reference and then make a copy of the object with decay copy Wouldn t it be easier to just accept the function object by value It has to have a copy of the function object in a storage that it can guarantee lasts as long as the thread it is about to launch lasts . A function argument to construct std : : thread would not last that long as the line where std : : thread is created can end long before the created thread ends . So it must make a copy . If it took its argument by-value it would make a copy when the constructor was called then have to make another copy to the persistent-storage . By taking it by forwarding-reference it makes exactly one copy . Now this additional copy could be moved-to making the extra overhead one extra move . This is still extra overhead as not all constructs are cheap to move . In general why would one not template a function so as to take a function object by value Because that mandates an extra move . Can reference-ness not be imitated with reference wrappers which would be more explicit and also conveniently has a member operator to call the stored function In the case where you intend to store the function object taking by forwarding-reference saves a move and doesn t require much extra work on the part of the writer of the function-object taking code . If the caller passed in a reference wrapper the value stored would be the reference wrapper which has a different meaning . Comment : I honestly didn t think the answer would be so simple. . it s so easy to overcomplicate things sometimes",
"Question : This is an rvalue-reference : .. . .. . It does not bind to lvalues : .. . .. . This is a universal-reference : .. . .. . It binds to rvalues and it also binds to lvalues : .. . .. . This is an rvalue-reference : .. . .. . It does not bind to lvalues : .. . .. . Why do universal references use the same syntax as rvalue references Isn t that an unnecessary source of confusion Did the committee ever consider alternative syntaxes like T T T@ or T 42 just kidding on that last one If so what were the reasons for rejecting alternative syntaxes Comment : Universal references is not a term in the standard . They re all r-value refs and ref collapsing rules kick in sometimes . So there s no syntax because there s no such thing as universal references in the standard . Comment : @Mat Right but the reference collapsing rules belong to the design I am questioning : It s not like the reference collapsing rules were god-given and rvalue references had to be designed around them : Comment : Useful link T Doesn t Always Mean Rvalue Reference http : isocpp.org blog 2012 11 universal-references-in-c11-scott-meyers from Scott Meyers Comment : @KerrekSB not really the rules had to be changed to allow T to deduce T as a reference-type it didn t just emerge . Comment : X x misses the template arguments . The code should compile when using X int x . .. . Answer : A universal-reference such as T can deduce T to be an object-type or a reference-type .. . .. . In your example it can deduce T as int when passed an rvalue so the function-parameter is int or it can deduce T as int when passed an lvalue in which case the function-parameter is int because the reference collapsing rules say std : : add rvalue-reference int : : type is just int .. . .. . If T isn t deduced by the function-call as in your X : : baz example then it can t be deduced to int so the reference isn t a universal-reference . So IMHO there s really no need for new syntax it fits nicely into template argument deduction and reference collapsing rules with the small tweak that a template parameter can be deduced as a reference-type where-in C++03 a function template parameter of type T or T would always deduce T as an object-type . These semantics and this syntax were proposed right from the beginning when rvalue references and a tweak to the argument deduction rules were proposed as the solution to the forwarding problem see N1385 http : www.open-std.org jtc1 sc22 wg21 docs papers 2002 n1385.htm s7 . Using this syntax to provide perfect-forwarding was proposed in parallel with proposing rvalue references for the purposes of move-semantics : N1377 http : www.open-std.org jtc1 sc22 wg21 docs papers 2002 n1377.htm was in the same mailing as N1385 . I don t think an alternative syntax was ever seriously proposed . IMHO an alternative syntax would actually be more confusing anyway . If you had template typename T void bar T @ as the syntax for a universal-reference but the same semantics as we have today then when calling bar i the template parameter T could be deduced as int or int and the function-parameter would be of type int or int .. . neither of which is T @ whatever that type is . So you d have grammar in the language for a declarator T @ which is not a type that can ever exist because it actually always refers to some other type either int or int . At least with the syntax we ve got the type T is a real type and the reference collapsing rules are not specific to function-templates using universal references they re completely consistent with the rest of the type system outside of templates : .. . .. . Or equivalently : .. . .. . When T is an lvalue reference-type T is too . I don t think a new syntax is needed the rules really aren t that complicated or confusing . Comment : +1 Nicely explained . Scott contacted me prior to his using his invented term universal-reference and I expressed concern that this may actually cause more confusion than teaching what the standard actually says . Nevertheless Scott has an outstanding track record of being an excellent teacher of C++ . Maybe use of his term will help people learn . Or maybe it will just cause confusion . I honestly don t know . In any event Jonathan s explanation of why things are the way they are and references to papers is spot on . Comment : @HowardHinnant same here I had been planning to write a piece for the ACCU journal Overload explaining it in terms of the typedef and add rvalue-reference examples above but Scott published first . I had exactly the same reservations when reviewing his piece for Overload but decided that because he s a far better teacher than I am with a far wider readership I d trust him to do a better job of explaining it to the world . I now use the term universal references in public but I still think in terms of deduction and ref-collapsing . Comment : Hmm just noting that Daveed answered to my mild rage on cpp-next.com http : cpp-next.com archive 2009 12 onward-forward comment-page-1 comment-270 by saying I and others voiced my preference for not trying to fit everything under the rvalue-reference type and instead introduce forwarding-specific notation and There were from the start people e.g . colleagues and I who thought the merging of moving and forwarding was a terrible idea and we sketched out other ways but also My bad for not putting in the energy to push those sketches forward as a competing proposal . Comment : Thanks @JohannesSchaub-litb -- as I said nothing was ever seriously proposed . If there s a proposal on the table to do it one way and noone offers an alternative proposal then generally the one on the table wins . Comment : @Johannes template void ff for T T deduced to or What a beautiful repurposing of the for keyword :"
]
} | [
"yes-answer-long",
"yes-answer-short"
] | rvalue-reference | UNK_RELATION |
row-value-expression@sql@53 | row-value-expression -- a row-value-expression is a @placeholder standard expression for specifying a row value . | {
"confidence": [
72.77127075195312,
69.72281646728516,
57.72616958618164,
55.69511795043945,
50.61113357543945,
49.42213821411133,
47.451690673828125,
46.87151336669922,
46.87151336669922,
46.570472717285156,
45.74113464355469,
42.588623046875,
42.588623046875,
42.53950500488281,
41.767356872558594,
40.64400100708008,
39.846092224121094,
38.613502502441406,
37.277896881103516,
37.277896881103516,
36.31957244873047,
35.60462188720703,
35.5079345703125,
35.072120666503906,
34.67914581298828,
34.151283264160156,
28.59593391418457,
27.835689544677734,
27.107128143310547,
24.964378356933594,
24.938838958740234,
22.556419372558594,
22.340087890625,
21.462453842163086,
21.462453842163086,
21.462453842163086,
21.462453842163086,
21.462453842163086,
21.462453842163086,
21.462453842163086,
21.462453842163086,
21.462453842163086,
21.462453842163086,
21.462453842163086,
21.462453842163086,
21.462453842163086,
21.462453842163086,
21.462453842163086,
21.462453842163086,
21.462453842163086,
21.462453842163086,
21.462453842163086,
21.462453842163086,
21.462453842163086,
21.462453842163086,
21.462453842163086,
21.462453842163086,
21.462453842163086,
21.462453842163086,
21.462453842163086,
21.462453842163086,
21.462453842163086,
21.462453842163086,
21.462453842163086,
21.462453842163086,
21.462453842163086,
21.462453842163086,
21.462453842163086,
21.462453842163086,
21.462453842163086,
21.462453842163086,
21.462453842163086,
21.462453842163086,
21.462453842163086,
21.462453842163086,
21.462453842163086,
21.462453842163086,
21.462453842163086,
21.462453842163086,
21.462453842163086,
21.462453842163086,
21.462453842163086,
21.462453842163086,
21.462453842163086,
21.462453842163086,
21.462453842163086,
21.462453842163086,
21.462453842163086,
21.462453842163086,
21.462453842163086,
21.462453842163086,
21.462453842163086,
21.462453842163086,
21.462453842163086,
21.462453842163086,
21.462453842163086,
21.462453842163086,
21.462453842163086
],
"content": [
"This shows what is row-value-expression meaning clearly .",
"N.B : a b is a called a row-value-expression or a tuple .",
"Don t use string-concatenation when in fact you want to use row-value-expression predicates",
"The standard uses row value constructor to denote what I m calling a tuple .",
"and you can add your vote for it here : .. . .. . Add support for ANSI standard row value constructors https : connect.microsoft.com SQLServer feedback details 299231 add-support-for-ansi-standard-row-value-constructors .",
"For all people who cares please vote for it here -- Add support for ANSI standard row value constructors connect.microsoft.com SQLServer feedback details 299231 https : connect.microsoft.com SQLServer feedback details 299231 add-support-for-ansi-standard-row-value-constructors",
"We re certainly considering row value constructors for a future release of SQL Server .",
"Dear It is converting row data into single column value as in image thank you for your response .",
"However AFAIK mySQL does not support row value constructors the VALUES .. . part in the given context .",
"Use jOOQ s row-value-expression support as documented here : http : www.jooq.org doc 3.0 manual sql-building column-expressions row-value-expressions .. . .. . Or more specifically : .. . .. . You might need to suppress-warnings due to the generic varargs parameter in Row2.in Row2.. . http : www.jooq.org javadoc latest org jooq Row2.html in 28org.jooq.Row2.. . 29 .. . .. . If your target database doesn t support row value expressions jOOQ will expand the above to this predicate",
"How to convert columns of one row into one row each",
"But a row constructor is a kind of shorthand .",
"On platforms that support row constructors that is .",
"While SQL Server has a Table Value Constructor http : technet.microsoft.com en-us library dd776382.aspx that can be used for some use-cases SQL Server doesn t support SQL standard row value expressions and predicates derived from row value expressions for general use yet .",
"AFAIK MySQL supports row comparison e.g .",
"This expression can also be used elsewhere as in WHERE clauses .",
"Here s the Connect issue http : connect.microsoft.com SQLServer feedback details 299231 add-support-for-ansi-standard-row-value-constructors if you feel the urge to vote on it .",
"If you are a SQL Server user the feature you allude to comparisons involving rows of more than one column is not yet in SQL Server but you can vote for it here http : connect.microsoft.com SQLServer feedback details 299231 add-support-for-ansi-standard-row-value-constructors details .",
"I am completely certain that the sub-select returns one row .",
"If subqueries return more than one row it will raise a SQL error .",
"Having data in table as below : .. . .. . required output : all values in the row should go in single column as below .",
"You can use a common-table-expression to pretend that these tuples are in another table :",
"Sadly Access is not compliant with even entry level SQL : 2000 and the syntax is not supported it isn t supported on SQL Server http : connect.microsoft.com SQLServer feedback details 299231 add-support-for-ansi-standard-row-value-constructors either .",
"It does not support natural joins and the other queries produce An expression of non-boolean type specified in a context where a condition is expected near .",
"For the record a row with B K K would not staisfy the BETWEEN conditions right",
"At least with Oracle and PostgreSQL .. . .. . If you are uncertain if the sub-select returns more than one row you can even change the to IN",
"Although the group X containing ZOO in T1 has a matching value in T2 : B ZOO it is still not a match because the group also has the X HHH value which is not part of the B ZOO group in T2",
"May not be the ANSII standard but it s close and it works fine .",
"What database are you using or are you only allowed standard sql",
"I want to display dates of particular month in column header of gridview and .. . .. . corresponding value should be display under .. . .. . SELECT .. . .. . distinct .. . .. . cardno name .. . .. . min convert char 5 time 108 over partition by cardno CONVERT varchar 20 time .. . .. . 102 + +max convert char 5 time 108 over partition by cardno .. . .. . CONVERT varchar 20 time 102 exit in out .. . .. . FROM Events .. . .. . following is the output of above query .. . .. . cardno name exit in out 100 baiju 09 : 30 18 : 30 101 kiran 09 : 55 18 : 45 .. . .. . i want the output like this .. . .. . cardno name 2013-07-01 2013-07-12 ...................................2013-07-31 .. . .. . 100 baiju 09 : 30 18 : 30 null .. . .. . 101 kiran 09 : 35 18 : 45 null .. . .. . means the whole day of month should be display in gridview header .if there is no value it should be null .. . .. . i tried this example but showing error .. . .. . declare @dte as datetime 2013-07-01 .. . .. . declare @StDt as Datetime DATEADD dd - DAY GETDATE -1 @dte .. . .. . declare @EnDt as datetime DATEADD s -1 DATEADD mm DATEDIFF m 0 @dte +1 0 .. . .. . Declare @Cnt as int datepart dd @EnDt .. . .. . Declare @inc as int 0 .. . .. . Create table temp Month date datetime .. . .. . while @inc @cnt .. . .. . begin .. . .. . insert into temp .. . .. . select DATEADD dd @inc DATEADD dd - DAY @dte -1 @dte .. . .. . set @inc @inc + 1 end DECLARE @cols AS NVARCHAR MAX @query AS NVARCHAR MAX .. . .. . select @cols STUFF SELECT distinct + QUOTENAME date from events FOR XML PATH TYPE .value .",
"If it exists I would suspect it s a non-standard extension .",
"You will have to resort to semi-joining your subquery using an equivalent EXISTS clause : .. . .. . This : .. . .. . Is equivalent to this see SQLFiddle demo http : www.sqlfiddle.com 3 69171 14 : .. . .. . Or a bit more generically by using a common-table-expression See SQLFiddle demo http : www.sqlfiddle.com 3 69171 6 :",
"Sadly this aspect of the Standard has not yet made it into SQL Server .",
"Like in image : Here mytable always have one record so I need the output as below .",
"enter image description here http : i.stack.imgur.com pzAut.png .. . .. . want to avoid below sql as it requires multiple joins :",
"Saw the image now",
"dear I just corrected the image as my table always have one record .",
"You could make a UNION on four single calls .. . .. . will output .. . .. .",
"enter image description here http : i.stack.imgur.com jZoRY.png .. . .. . You say that .. . .. . mytable always have one record .",
"Be aware that if you have more than one record it s wise to use the same WHERE condition on each SELECT statement above .",
"it works is there any simple way because the values are not coming from one table it requires multiple joins adding my exact sql .",
"Given a database like this : .. . .. . I would like to do something along the lines of .. . .. . To get the answer one three but I m getting near : syntax-error .. . .. . Is this possible in any flavour of SQL",
"I m using sqlite .. . .. . Am I making a gross conceptual error",
"Or what",
"your code works if you do it in PostgreSQL or Oracle .",
"on MS SQL it is not supported .. . .. . use this : .. . .. . EDIT .. . .. . sans the stating of intent : .. . .. . it s somewhat lame for more than a decade MS SQL still don t have first-class support for tuples .",
"IN tuple construct is way more readable than its analogous EXISTS construct .",
"btw JOIN also works tster s code but if you need something more flexible and future-proof use EXISTS .",
"EDIT .. . .. . speaking of SQLite i m dabbling with it recently .",
"yeah IN tuples doesn t work",
"definitive answer in 10 mins",
"doesn t work in sqlite : - voted and accepted",
"Even if it did work in sqlite I would recommend not doing it .",
"This is bound to confuse future maintainers of your code .",
"NOTE : you are the future maintainer so it s you who will be confused",
"@tster - I fail to see the source of any confusion",
"it s somewhat lame for more than a decade MS SQL still don t have first-class support for tuples .",
"Yep I landed here because of such limitation from MS SQL .",
"you can use a join :",
"This works .",
"Plus the answer showed up in 5 minutes",
"Still interested to know whether my proposed code is possible hopelessly misconceived whatever",
"Yes you are trying to write in a way that you understand but this problem is solved much more naturally using set theory the basis of SQL .",
"A very common usage of SQL is to join two tables to get the intersection of them which is what you are trying to do .",
"JOIN can have a problem if anotherTable has duplicate values EXISTS is more flexible future-proof than its JOIN cousin : stackoverflow.com questions 1001543 http : stackoverflow.com questions 1001543 in-vs-join-with-large-rowsets 1001578 1001578",
"this article explain set testings IN vs JOIN vs EXITS very nicely including the logic and execution plan on non-unique values and non-indexed values : explainextended.com 2009 06 16 in-vs-join-vs-exists http : explainextended.com 2009 06 16 in-vs-join-vs-exists",
"Joins also don t work with DELETE .",
"Another alternative is to use concatenation to make your 2-tuple into a single field : .. . .. . ...just be aware that bad things can happen if a or b contain the delimiter -",
"My application initially had a query similar to this one : - .. . .. . where list is comma separated list .",
"But now the requirement has changed and i have to query the Persons table with name and age given .",
"I have the nameAgeList .",
"Initially i thought a query similar to this would work Create nameList and ageList from nameAgeList .. . .. . But after carefully thinking this seems to be a wrong query .",
"Please let me know how should I proceed ahead with this query .",
"What is nameAgeList",
"Why is this the wrong query",
"Does it give incorrect results",
"Do you get an error",
"Did your server explode",
"Is this perhaps homework or some such",
"1 What platform",
"2 What form is the nameAgeList",
"3 If it s a string why",
"4 Are the names actually related to ages",
"I am using Java and Oracle is the database .",
"nameAgelist is a list of input objects where input consists of a string and int which correspond to name and age .",
"This is an input given to me .",
"Before the change in the requirement i had nameList which was a list of strings corresponding to the name but now its a list of objects .",
"Under Oracle you can do this : .. . .. . You can have up to 1000 tuples in this list .",
"+1 for the 1000 limit",
"One option is to create a temporary table or if SQL Server a table-variable place your names and ages in this table and then simply join to it :",
"It s not pretty and this one only works when you can generate your statement in code : .. . .. . Now if you could put those lists into tables you could do alot better than this .",
"Is there any way you can get those lists into the database",
"I assume that you really need some Person table that holds name and age for each individual .",
"yeah that s horrible don t do that",
"For homework it s allright i d say",
"Say you have Accounts table where ID column is PK and TaxID+AccountNumber is unique constraint : .. . .. . now you want to make similar query using the natural-key : .. . .. . So this involves tuples and looks pretty legitimate .",
"Is it possible to express somehow with ANSI SQL",
"Maybe in some specific SQL extension"
]
} | {
"confidence": [
63.11212158203125,
57.09504318237305,
55.63719177246094,
45.29987335205078,
44.850547790527344,
44.817420959472656,
44.51651382446289,
42.27972412109375,
41.66416931152344,
41.187843322753906,
40.002708435058594,
39.47724914550781,
37.64173126220703,
37.64173126220703,
35.46074676513672,
35.26305389404297,
30.922927856445312,
28.782169342041016,
28.19851303100586,
25.489187240600586
],
"content": [
"Question : I would like to write a condition like the following with JOOQ .. . .. . I tried this syntax .. . .. . which generates .. . .. . But this solution lead to a huge performance issue by skipping indexes .. . .. . I ve no clue of how to get the two fields together .. . .. . Thanks for your help Comment : Post what you have tried .. . Answer : Don t use string-concatenation when in fact you want to use row-value-expression predicates Use jOOQ s row-value-expression support as documented here : http : www.jooq.org doc 3.0 manual sql-building column-expressions row-value-expressions .. . .. . Or more specifically : .. . .. . You might need to suppress-warnings due to the generic varargs parameter in Row2.in Row2.. . http : www.jooq.org javadoc latest org jooq Row2.html in 28org.jooq.Row2.. . 29 .. . .. . If your target database doesn t support row value expressions jOOQ will expand the above to this predicate Comment : thanks work great",
"Question : Let s look for example Oracle SQL which works perfectly : .. . .. . Sample data : .. . .. . Query : .. . .. . Here s the sql-fiddle : http : www.sqlfiddle.com 4 8375e 3 0 .. . .. . Simple question : is there any equivalent in MS SQL of above where a b clause I ve been looking around in google MS Docs and nothing so far.. . Comment : stackoverflow.com questions 4452539 http : stackoverflow.com questions 4452539 sql-server-in-clause-with-multiple-fields Comment : How does it work in Oracle Is it the same as select from test where a 1 and b 4 What is the benefit then Comment : N.B : a b is a called a row-value-expression or a tuple . This might help with googling . Comment : Related question : stackoverflow.com questions 1474964 http : stackoverflow.com questions 1474964 using-tuples-in-sql-in-clause .. . Answer : While SQL Server has a Table Value Constructor http : technet.microsoft.com en-us library dd776382.aspx that can be used for some use-cases SQL Server doesn t support SQL standard row value expressions and predicates derived from row value expressions for general use yet . You will have to resort to semi-joining your subquery using an equivalent EXISTS clause : .. . .. . This : .. . .. . Is equivalent to this see SQLFiddle demo http : www.sqlfiddle.com 3 69171 14 : .. . .. . Or a bit more generically by using a common-table-expression See SQLFiddle demo http : www.sqlfiddle.com 3 69171 6 : Comment : Here s the Connect issue http : connect.microsoft.com SQLServer feedback details 299231 add-support-for-ansi-standard-row-value-constructors if you feel the urge to vote on it . Comment : @Damien The Unbeliever : Thanks for the link . I will",
"Question : Say you have Accounts table where ID column is PK and TaxID+AccountNumber is unique constraint : .. . .. . now you want to make similar query using the natural-key : .. . .. . So this involves tuples and looks pretty legitimate . Is it possible to express somehow with ANSI SQL Maybe in some specific SQL extension If not why will appreciate any speculations Comment : Based on the answers you ve got . I would recommend you to keep doing your s queries as you did in the past.. . Comment : If you are a SQL Server user the feature you allude to comparisons involving rows of more than one column is not yet in SQL Server but you can vote for it here http : connect.microsoft.com SQLServer feedback details 299231 add-support-for-ansi-standard-row-value-constructors details . .. . Answer : Both of these are valid ISO ANSI Full SQL-92 syntax : .. . .. . But I don t think either of them works in any current DBMS . .. . .. . This is also valid Full SQL-92 syntax it doesn t work in SQL-Server 2008 because of the NATURAL JOIN : Comment : Tried SQL Server 2008 . None of these work . It does not support natural joins and the other queries produce An expression of non-boolean type specified in a context where a condition is expected near . error . Comment : AFAIK MySQL supports row comparison e.g . this is valid and useful syntax ...WHERE a.TaxID a.AccountNumber IN SELECT b.TaxID b.AccountNumber FROM b . However AFAIK mySQL does not support row value constructors the VALUES .. . part in the given context . Comment : The last query is SQL-92 syntax but it will not work on SQL Server because no version of SQL Server supports NATURAL JOIN . If the last query works on PostgeSQL then I would expect the first two to also work on postgreSQL . Comment : @onedaywhen : My mistake . I tested in SO Dataexchange and thought it worked but I was wrong .",
"Question : How to convert columns of one row into one row each Having data in table as below : .. . .. . required output : all values in the row should go in single column as below . Like in image : Here mytable always have one record so I need the output as below . enter image description here http : i.stack.imgur.com pzAut.png .. . .. . want to avoid below sql as it requires multiple joins : Comment : Dear It is converting row data into single column value as in image thank you for your response . Comment : Saw the image now Comment : dear I just corrected the image as my table always have one record . .. . Answer : You could make a UNION on four single calls .. . .. . will output .. . .. . enter image description here http : i.stack.imgur.com jZoRY.png .. . .. . You say that .. . .. . mytable always have one record . Be aware that if you have more than one record it s wise to use the same WHERE condition on each SELECT statement above . Comment : it works is there any simple way because the values are not coming from one table it requires multiple joins adding my exact sql .",
"Question : Given a database like this : .. . .. . I would like to do something along the lines of .. . .. . To get the answer one three but I m getting near : syntax-error .. . .. . Is this possible in any flavour of SQL I m using sqlite .. . .. . Am I making a gross conceptual error Or what .. . Answer : your code works if you do it in PostgreSQL or Oracle . on MS SQL it is not supported .. . .. . use this : .. . .. . EDIT .. . .. . sans the stating of intent : .. . .. . it s somewhat lame for more than a decade MS SQL still don t have first-class support for tuples . IN tuple construct is way more readable than its analogous EXISTS construct . btw JOIN also works tster s code but if you need something more flexible and future-proof use EXISTS . EDIT .. . .. . speaking of SQLite i m dabbling with it recently . yeah IN tuples doesn t work Comment : definitive answer in 10 mins doesn t work in sqlite : - voted and accepted Comment : Even if it did work in sqlite I would recommend not doing it . This is bound to confuse future maintainers of your code . NOTE : you are the future maintainer so it s you who will be confused Comment : @tster - I fail to see the source of any confusion Comment : it s somewhat lame for more than a decade MS SQL still don t have first-class support for tuples . IN tuple construct is way more readable than its analogous EXISTS construct . Yep I landed here because of such limitation from MS SQL . For all people who cares please vote for it here -- Add support for ANSI standard row value constructors connect.microsoft.com SQLServer feedback details 299231 https : connect.microsoft.com SQLServer feedback details 299231 add-support-for-ansi-standard-row-value-constructors",
"Question : Is it possible to compare tuples thanks a horse with no name in the WHERE clause of a SQL query That way I could convert this : .. . .. . Into something similar to this : Comment : Did you try to execute similar code with your real table names and column names did it work what message did you get Comment : Btw : you mean tuples not tables in your subject .. . Answer : It seems like you are trying to compare records not tables here . And in fact you are comparing results of queries . It is totally possible with Oracle PostgreSQL and MySQL . The following query is valid and do the job : .. . .. . It will compare fields one against one and return 1 if they all match or 0 if they dont . If subqueries return more than one row it will raise a SQL error . This expression can also be used elsewhere as in WHERE clauses .",
"Question : I have a table containing the fields group id and group type and I want to query the table for all the records having any tuple group id group type from a list of tuples . For example I want to be able to do something like : .. . .. . A very similar question is already asked at : using tuples in sql-in clause http : stackoverflow.com questions 1474964 using-tuples-in-sql-in-clause but the solution proposed there presumes the tuple list is to be fetched from another table . This doesn t work in my case is the tuple values are hard coded . One solution is to use string-concatenation : .. . .. . But the problem is that the table is quite big and doing a string-concatenation and conversion for each record would be very expensive . Any suggestion .. . Answer : Given a very minor tweak replace double quotes with single and add the VALUES keyword your proposed syntax is valid Standard SQL-92 syntax i.e . Sadly this aspect of the Standard has not yet made it into SQL Server . It has already been proposed for SQL Server by Hugo Kornelis currently has a healthy 142 votes including mine and you can add your vote for it here : .. . .. . Add support for ANSI standard row value constructors https : connect.microsoft.com SQLServer feedback details 299231 add-support-for-ansi-standard-row-value-constructors . Thank you for your feedback . We re certainly considering row value constructors for a future release of SQL Server . .. . Sara Tahir Microsoft SQL Server",
"Question : Say you have Accounts table where ID column is PK and TaxID+AccountNumber is unique constraint : .. . .. . now you want to make similar query using the natural-key : .. . .. . So this involves tuples and looks pretty legitimate . Is it possible to express somehow with ANSI SQL Maybe in some specific SQL extension If not why will appreciate any speculations Comment : Based on the answers you ve got . I would recommend you to keep doing your s queries as you did in the past.. . Comment : If you are a SQL Server user the feature you allude to comparisons involving rows of more than one column is not yet in SQL Server but you can vote for it here http : connect.microsoft.com SQLServer feedback details 299231 add-support-for-ansi-standard-row-value-constructors details . .. . Answer : In Oracle SQL you can just substitute parenthesis for the curly-brackets in the original post second example . May not be the ANSII standard but it s close and it works fine . Concatenating the values is not recommended even with uncommon delimiters there s always some tiny risk of it incorrectly matching freely-entered text values . Best not to get in the habit .",
"Question : Trying to do the same thing as this question http : stackoverflow.com questions 5506729 sql-tuple-comparison but this time in sqlite . In my current application I need to be able to do this type of query : .. . .. . and get the answer of Liz Jordan 2 given this data : .. . .. . What is the most efficient way to accomplish this in sqlite Please keep in mind that this is a toy example and that my actual application has tables with more columns and data types and hundreds of million of rows . If the solution is easily extensible to more less columns that s even better . .. . .. . Tuple Comparison : .. . .. . Tuples are ordered lexicographically meaning that the sequences are ordered the same as their first differing elements . For example 1 2 x 1 2 y returns the same as x y . It s worth noting that SQL-92 and mysql oracle postresql implements this correctly . The standard uses row value constructor to denote what I m calling a tuple . The behavior is defined in excruciating detail in part 8.2.7 page 209 http : www.contrib.andrew.cmu.edu shadow sql sql1992.txt . .. . .. . Here s the necessary SQL to create the example : .. . Answer : SQLite doesn t support tuple comparisons . But a row constructor is a kind of shorthand . You can get the same result with a more complicated WHERE clause . I ve omitted the LIMIT 1 clause to make it easier to see that both queries return the same set . On platforms that support row constructors that is . This comparison .. . .. . is equivalent to .. . .. . And you can extend that to as many columns as you need . I did not test this with NULLs in the data . Comment : I wonder if the mysql optimizer is smart enough to know this is the same as the tuple syntax . Comment : @bukzor : Right . I ll correct my answer .",
"Question : Say you have Accounts table where ID column is PK and TaxID+AccountNumber is unique constraint : .. . .. . now you want to make similar query using the natural-key : .. . .. . So this involves tuples and looks pretty legitimate . Is it possible to express somehow with ANSI SQL Maybe in some specific SQL extension If not why will appreciate any speculations Comment : Based on the answers you ve got . I would recommend you to keep doing your s queries as you did in the past.. . Comment : If you are a SQL Server user the feature you allude to comparisons involving rows of more than one column is not yet in SQL Server but you can vote for it here http : connect.microsoft.com SQLServer feedback details 299231 add-support-for-ansi-standard-row-value-constructors details . .. . Answer : Be careful how to intrepret this . Shark s answer will work but will return .. . .. . Which might not be what you want.. . For example if you only want account number 8765 for tax ID 1234 and 7654 for tax ID 2345 you would need a WHERE clause like this :",
"Question : I have a table containing the fields group id and group type and I want to query the table for all the records having any tuple group id group type from a list of tuples . For example I want to be able to do something like : .. . .. . A very similar question is already asked at : using tuples in sql-in clause http : stackoverflow.com questions 1474964 using-tuples-in-sql-in-clause but the solution proposed there presumes the tuple list is to be fetched from another table . This doesn t work in my case is the tuple values are hard coded . One solution is to use string-concatenation : .. . .. . But the problem is that the table is quite big and doing a string-concatenation and conversion for each record would be very expensive . Any suggestion .. . Answer : In SQL Server 2008 you can do like this : Comment : What in this is specific to SQL Server 2008 Is it the from values part Comment : @Promather Yes it is the values . The alternative is to use select .. . union-all like in the answer by B Tyler . Comment : Great is this possible in SQL Server 2008 This shows what is row-value-expression meaning clearly . Comment : @MikaelEriksson this would also work : where not exists select T.group id T.group type EXCEPT select from values 1234-567 2 .. . as V group id group type Comment : Or this : where exists select T.group id T.group type INTERSECT select from values 1234-567 2 .. . as V group id group type .",
"Question : Let s look for example Oracle SQL which works perfectly : .. . .. . Sample data : .. . .. . Query : .. . .. . Here s the sql-fiddle : http : www.sqlfiddle.com 4 8375e 3 0 .. . .. . Simple question : is there any equivalent in MS SQL of above where a b clause I ve been looking around in google MS Docs and nothing so far.. . Comment : stackoverflow.com questions 4452539 http : stackoverflow.com questions 4452539 sql-server-in-clause-with-multiple-fields Comment : How does it work in Oracle Is it the same as select from test where a 1 and b 4 What is the benefit then Comment : N.B : a b is a called a row-value-expression or a tuple . This might help with googling . Comment : Related question : stackoverflow.com questions 1474964 http : stackoverflow.com questions 1474964 using-tuples-in-sql-in-clause .. . Answer : How about below query which supports in sql-server and I guess a 1 and b 4 gives the same result in sql-server equivalent to oracle query . : Comment : Is this the same as the oracle query i don t know It ll give one record as the other answers but if you insert another with a 4 b 1 you ll get two records instead of one . sqlfiddle.com 3 24f87 5 1 http : www.sqlfiddle.com 3 24f87 5 1 Comment : Yes my answer gives only 1 record . In oracle also output is one record as he mentioned . Comment : Yes this query isn t correct . According to the SQL standard a b 1 4 is equivalent to a 1 AND b 4 . This accounts for the IN predicate and subselects just as well . Your predicate is equivalent to 1 a OR 1 b AND 4 a OR 4 b Comment : @TimSchmelter You are correct It s giving 2 records . I didn t checked with entry 4 1 actually . So select from test where a 1 and b 4 will the result no",
"Question : Say you have Accounts table where ID column is PK and TaxID+AccountNumber is unique constraint : .. . .. . now you want to make similar query using the natural-key : .. . .. . So this involves tuples and looks pretty legitimate . Is it possible to express somehow with ANSI SQL Maybe in some specific SQL extension If not why will appreciate any speculations Comment : Based on the answers you ve got . I would recommend you to keep doing your s queries as you did in the past.. . Comment : If you are a SQL Server user the feature you allude to comparisons involving rows of more than one column is not yet in SQL Server but you can vote for it here http : connect.microsoft.com SQLServer feedback details 299231 add-support-for-ansi-standard-row-value-constructors details . .. . Answer : If you are using T-SQL then an option that looks a bit like your hypothetical query is to use table literals like this : .. . .. . Here you create a table literal named v that contains the fields TaxID and AccountNumber . Now you can join the table literal on two fields to get the desired result . One caveat is that a table literal can only contain 1000 rows . You can read more about T-SQL support for table literals on this page http : msdn.microsoft.com en-us library dd776382 28SQL.100 29.aspx . Edit : this page http : www.postgresql.org docs 8.2 static sql-values.html indicates that this construct also works in PostgreSQL . Comment : +1 I was just about to post my own VALUES answer.. .",
"Question : Say you have Accounts table where ID column is PK and TaxID+AccountNumber is unique constraint : .. . .. . now you want to make similar query using the natural-key : .. . .. . So this involves tuples and looks pretty legitimate . Is it possible to express somehow with ANSI SQL Maybe in some specific SQL extension If not why will appreciate any speculations Comment : Based on the answers you ve got . I would recommend you to keep doing your s queries as you did in the past.. . Comment : If you are a SQL Server user the feature you allude to comparisons involving rows of more than one column is not yet in SQL Server but you can vote for it here http : connect.microsoft.com SQLServer feedback details 299231 add-support-for-ansi-standard-row-value-constructors details . .. . Answer : A crude way would be to concatenate the 2 values together. . .. . .. . e.g . However in e.g . SQL Server this would not be able to use an index . You could add a computed column that combines both values into 1 and then match on that : .. . .. . .. . Or you could do : Comment : Good point your JOIN-solution is the best so far but the query cannot be parameterised can it Comment : @UserControl - in TSQL as of SQL 2008 there is support for table-valued-parameters . So you can pass a table in as a parameter and join onto that instead . Or less desirably the older ways of doing it were to pass in CSV XML in and then extract the values out into a temp table to then join on . I ve blogged about those approaches here : adathedev.co.uk 2010 02 http : www.adathedev.co.uk 2010 02 sql-server-2008-table-valued-parameters.html",
"Question : Trying to do the same thing as this question http : stackoverflow.com questions 5506729 sql-tuple-comparison but this time in sqlite . In my current application I need to be able to do this type of query : .. . .. . and get the answer of Liz Jordan 2 given this data : .. . .. . What is the most efficient way to accomplish this in sqlite Please keep in mind that this is a toy example and that my actual application has tables with more columns and data types and hundreds of million of rows . If the solution is easily extensible to more less columns that s even better . .. . .. . Tuple Comparison : .. . .. . Tuples are ordered lexicographically meaning that the sequences are ordered the same as their first differing elements . For example 1 2 x 1 2 y returns the same as x y . It s worth noting that SQL-92 and mysql oracle postresql implements this correctly . The standard uses row value constructor to denote what I m calling a tuple . The behavior is defined in excruciating detail in part 8.2.7 page 209 http : www.contrib.andrew.cmu.edu shadow sql sql1992.txt . .. . .. . Here s the necessary SQL to create the example : .. . Answer : I ve been circumventing the lack of tuple comparison by using string-concatenation and a character sequence to ensure the fields don t merge and cause incorrect matches - . becomes .. . .. . or .. . .. . so your SELECT would be .. . .. . String concatenation is pretty costly and less terse but it works the same way and looks very similar . Comment : This is general-purpose only if you escape the concatenated strings . Do you think this has better performance than @catcall s answer",
"Question : Is it possible to compare tuples thanks a horse with no name in the WHERE clause of a SQL query That way I could convert this : .. . .. . Into something similar to this : Comment : Did you try to execute similar code with your real table names and column names did it work what message did you get Comment : Btw : you mean tuples not tables in your subject .. . Answer : Writing .. . .. . is certainly possible . At least with Oracle and PostgreSQL .. . .. . If you are uncertain if the sub-select returns more than one row you can even change the to IN Comment : I am completely certain that the sub-select returns one row . It just returns more than one column.. . and I m using SQL Server . : S Comment : I don t use SQL Server so you will need to try if that is supported Comment : Just checking and looks like doesnt work on MSSQL .",
"Question : I wanted to make a query in MS Access 2003 or just sql-in VBA which would have an IN clause working on tuples i.e . .. . .. . I have to columns with year and month and I would like to extract for example 2010-10 and 2012-03 using IN clause . For comparison in Postgres it would look like .. . .. . but it does not work for me in Access . Yes I store both year and month as text but it really does not matter . I know I could write it using many AND and OR or make a LEFT JOIN with a temporary table . But those queries are created prograYmatically so I wanted to make it as simple as possible . Comment : If you replace double quotes with single quotes then your SQL complies with the SQL : 2000 standard . Sadly Access is not compliant with even entry level SQL : 2000 and the syntax is not supported it isn t supported on SQL Server http : connect.microsoft.com SQLServer feedback details 299231 add-support-for-ansi-standard-row-value-constructors either . Comment : ...however I think you have a design problem . You seem to be modelling the period of one month using two attributes of type text . Consider using temporal data types instead perhaps coupled with a Calendar table http : sqlserver2000.databases.aspfaq.com why-should-i-consider-using-an-auxiliary-calendar-table.html but hard to give good advice based on a single query Comment : There was not much designed . It was a fast task where I needed to create a query which worked like above . Of course I could import everything to Postgres but it takes longer to create a table etc . than to import the file to Access Hence I wanted to know if it was possible to make this kind of WHERE clouse . .. . Answer : How about : Comment : Good workaround and it works regardless of the type of year month I mean they may be both numbers or text . Comment : Just note that this syntax does not allow for index usage . Comment : The OP wishes to use IN an indexed search will not be possible with that condition .",
"Question : null .. . Answer : I want to display dates of particular month in column header of gridview and .. . .. . corresponding value should be display under .. . .. . SELECT .. . .. . distinct .. . .. . cardno name .. . .. . min convert char 5 time 108 over partition by cardno CONVERT varchar 20 time .. . .. . 102 + +max convert char 5 time 108 over partition by cardno .. . .. . CONVERT varchar 20 time 102 exit in out .. . .. . FROM Events .. . .. . following is the output of above query .. . .. . cardno name exit in out 100 baiju 09 : 30 18 : 30 101 kiran 09 : 55 18 : 45 .. . .. . i want the output like this .. . .. . cardno name 2013-07-01 2013-07-12 ...................................2013-07-31 .. . .. . 100 baiju 09 : 30 18 : 30 null .. . .. . 101 kiran 09 : 35 18 : 45 null .. . .. . means the whole day of month should be display in gridview header .if there is no value it should be null .. . .. . i tried this example but showing error .. . .. . declare @dte as datetime 2013-07-01 .. . .. . declare @StDt as Datetime DATEADD dd - DAY GETDATE -1 @dte .. . .. . declare @EnDt as datetime DATEADD s -1 DATEADD mm DATEDIFF m 0 @dte +1 0 .. . .. . Declare @Cnt as int datepart dd @EnDt .. . .. . Declare @inc as int 0 .. . .. . Create table temp Month date datetime .. . .. . while @inc @cnt .. . .. . begin .. . .. . insert into temp .. . .. . select DATEADD dd @inc DATEADD dd - DAY @dte -1 @dte .. . .. . set @inc @inc + 1 end DECLARE @cols AS NVARCHAR MAX @query AS NVARCHAR MAX .. . .. . select @cols STUFF SELECT distinct + QUOTENAME date from events FOR XML PATH TYPE .value . NVARCHAR MAX 1 1 .. . .. . SET @Query SELECT distinct cardno name + @cols+ from select t.Month date e.cardno e.date from temp t right outer-join events on t.Month date e.date x pivot min convert char 5 time 108 over partition by cardno CONVERT varchar 20 time 102 + +max convert char 5 time 108 over partition by cardno CONVERT varchar 20 time 102 .. . .. . p order by Month date .. . .. . exec @query .. . .. . drop-table temp .. . .. . this is error message .. . .. . Msg 207 Level 16 State 1 Line 19 .. . .. . Invalid column name date . Msg 402 Level 16 State 1 Line 36 .. . .. . The data types nvarchar max and varchar are incompatible in the operator . how to solve this .. . .. . Regards .. . .. . Baiju Comment : are you trying to apply the pivot in the sql query and bind the resultset to the gridview Comment : yes my requirement is multiple aggregation in pivot query",
"Question : I have a table containing the fields group id and group type and I want to query the table for all the records having any tuple group id group type from a list of tuples . For example I want to be able to do something like : .. . .. . A very similar question is already asked at : using tuples in sql-in clause http : stackoverflow.com questions 1474964 using-tuples-in-sql-in-clause but the solution proposed there presumes the tuple list is to be fetched from another table . This doesn t work in my case is the tuple values are hard coded . One solution is to use string-concatenation : .. . .. . But the problem is that the table is quite big and doing a string-concatenation and conversion for each record would be very expensive . Any suggestion .. . Answer : You can use a common-table-expression to pretend that these tuples are in another table : Comment : Thanks but why is there a semicolon before the WITH clause Comment : @Promather - it s there because the WITH keyword can have other meanings and to introduce a CTE it must be the start of a statement . The semicolon ensures that the previous statement is definitely terminated .",
"Question : In my current application I need to be able to do this type of query : .. . .. . and get the answer of 333 B B given this data : .. . .. . What is the most efficient way to accomplish this in real SQL Please keep in mind that this is a toy example and that my actual application has tables with varying columns and data types and hundreds of million of rows . I use MySQL if that helps . You can also assume that these columns have a PRIMARY or UNIQUE index on them . If the solution is easily extensible to more less columns that s even better . .. . .. . Tuple Comparison : .. . .. . Several have asked so I should put this in the question . Tuples are ordered lexicographically meaning that the sequences are ordered the same as their first differing elements . For example 1 2 x 1 2 y returns the same as x y . It s worth noting that SQL or at least mysql implements this correctly : .. . .. . .. . .. . Here s the necessary SQL to create the example : .. . .. . Adding this index seems to cause the table to be sorted lexicographically which is interesting . This isn t true in our production system . Comment : How do you define tuple ordering Comment : For the record a row with B K K would not staisfy the BETWEEN conditions right Comment : @ypercube : yes it would . B K K sorts between A B C and D E F Comment : @John Douthat : Lexicographically meaning that the sequences are ordered the same as their first differing elements . For example 1 2 x 1 2 y returns the same as x y . .. . Answer : Just do : .. . .. . It works just fine . And I suspect is should be pretty fast too . .. . .. . This is equivalent but it may have better performance depending on your tables : Comment : perfect You should remove your other answer . Comment : If works on tuples it seems like BETWEEN should work because it s supposed to simply be equivalent to that operation . Comment : @Cade : I tried . It doesn t work . Comment : @Cade : my point exactly since BETWEEN did not work I hadn t tried at first ."
]
} | [
"yes-answer-long",
"yes-answer-short"
] | sql | UNK_RELATION |
struts2-jquery@jquery@76 | struts2-jquery -- a struts 2 plugin that provides ajax ui widgets based on @placeholder and jquery-ui . | {
"confidence": [
58.51629638671875,
49.28333282470703,
47.51412582397461,
47.24635314941406,
44.998130798339844,
43.053367614746094,
41.47090530395508,
41.142601013183594,
41.08966064453125,
40.95390701293945,
40.709537506103516,
38.684364318847656,
37.84238815307617,
36.60634231567383,
36.48899459838867,
36.211082458496094,
35.79582214355469,
35.39497375488281,
35.13454055786133,
35.104583740234375,
34.998233795166016,
34.44834899902344,
34.17820739746094,
33.52217102050781,
33.171356201171875,
32.95976257324219,
32.92790985107422,
32.273033142089844,
31.81397247314453,
31.677078247070312,
31.437427520751953,
31.388351440429688,
31.041961669921875,
30.958885192871094,
30.825199127197266,
30.69922637939453,
30.55021095275879,
29.96139907836914,
29.692893981933594,
29.481494903564453,
29.370346069335938,
29.042922973632812,
29.042402267456055,
28.352453231811523,
27.88711166381836,
27.81542205810547,
27.653385162353516,
27.44015884399414,
26.961727142333984,
26.57099151611328,
26.46172332763672,
24.933578491210938,
24.64389419555664,
24.41033935546875,
24.33522605895996,
23.935802459716797,
23.635883331298828,
22.920263290405273,
22.50122833251953,
22.11319351196289,
22.09402084350586,
21.862817764282227,
21.744163513183594,
21.480215072631836,
21.41836929321289,
21.40338134765625,
21.17201805114746,
21.147945404052734,
20.96912384033203,
20.71895408630371,
20.485074996948242,
20.33793830871582,
20.1878662109375,
20.1878662109375,
20.1878662109375,
19.87633514404297,
19.87633514404297,
19.794635772705078,
19.583011627197266,
19.569034576416016,
19.563074111938477,
19.53900146484375,
19.40886688232422,
19.40886688232422,
19.32549285888672,
19.122926712036133,
19.101879119873047,
18.966690063476562,
18.966690063476562,
18.966690063476562,
18.887386322021484,
18.84543228149414,
18.751100540161133,
18.608949661254883,
18.578922271728516,
18.578922271728516,
18.530380249023438,
18.530380249023438,
18.392641067504883,
18.267391204833984
],
"content": [
"A Plugin for the popular java web framework struts2 to provide ajax functionality and UI Widgets based on the jQuery javascript-framework .",
"Now this plugin is deprecated and struts2-jquery-plugin https : github.com struts-community-plugins struts2-jquery could be used instead .",
"Here are the list of files that I have added from JQuery UI library .",
"So Struts2-jQuery plugin button is working good but Struts s : submit is not working .",
"Unfortunately using plain jQuery UI doesn t seem to be an option for me .",
"struts2-jquery-plugin ver .",
"As I review some struts-jquery-plugin codes .",
"References : .. . .. . Struts2 jQuery Plugin 3.4.0 with improved Chart Tag released http : www.jgeppert.com 2012 10 struts2-jquery-plugin-3-4-0-with-improved-chart-tag-released .. . ChartTag https : github.com struts-community-plugins struts2-jquery wiki ChartTag .. . Categories http : www.flotcharts.org flot examples categories index.html",
"Which version of struts2-jquery-plugin",
"I m trying to populate a drop down list in a grid column using the Struts2-jQuery-grid-3.7.0 https : code.google.com p struts2-jquery downloads detail name struts2-jquery-grid-plugin-3.7.0.jar can 2 q plugin as follows .",
"I have a Struts 2 application that is utilizing the accordion feature of the Struts2 jQuery plugin http : code.google.com p struts2-jquery wiki AccordionTag and I m trying to programmatically traverse through the accordion items .",
"The chart component in the Struts 2 jQuery plugin version 3.6 seems not supporting the category plugin for the sjc : chart .",
"Seems like a bug in struts2-jquery-plugin : http : code.google.com p struts2-jquery issues detail id 931 .",
"If the tag does not support data what is the best way to use jqGrid which are included in Struts 2 jQuery plugin .",
"I ve been struggling for a while with the autocompleter tag using struts2-jquery-plugin .",
"Is there any way to target a column in a jqGrid in my case Struts2-jQuery-Grid Plugin 3.7.0 on certain rows only",
"I am searching for struts2 Jquery Json grid form page using only struts2 tags",
"I am going to use struts-jquery taglib https : code.google.com p struts2-jquery wiki DatePickerTag Datepicker with different options and animations but the application throws the following errors .",
"I would suggest you to use jQuery Datatable http : www.datatables.net you need done following : .. . .. . There are also other options like struts2-jquery-plugin http : code.google.com p struts2-jquery .. . .. . It depends on your needs .",
"Possible duplicate of Struts2 jQuery plugin java.lang.ClassNotFoundException : org.apache.struts2.views.TagLibrary http : stackoverflow.com questions 20772405 struts2-jquery-plugin-java-lang-classnotfoundexception-org-apache-struts2-views",
"Doing a google-search on jquery grid initial data instead of struts 2 jquery grid . . brought me to a quick and painless fix .",
"First time I am using Struts2 jQuery Grid for AJAX data table .",
"I wanted to know the difference between Struts2 and Struts2 jQuery tags",
"please check this link simplecodestuffs.com http : www.simplecodestuffs.com crud-operations-in-struts-2-using-jtable-jquery-plugin-via-ajax i cant use arraylist ajax field name must match the class property",
"See : http : code.google.com p struts2-jquery source browse trunk struts2-jquery-plugin src main resources template js struts2 jquery.struts2.js 947 .. . .. . What about using an normal Link instead of an button",
"I found that the jquery.chart.struts2.js does not use this plugin on the other hand the jquery.flot.categories.js file is in the struts2-jquery-chart-plugin-3.7.1.jar file .",
"Based on this question http : stackoverflow.com questions 15087557 can-not-find-the-tag-library-descriptor-for-struts2-jquery-tags-in-jsp I changed struts to struts2 and based on this one http : stackoverflow.com questions 20772405 struts2-jquery-plugin-java-lang-classnotfoundexception-org-apache-struts2-views I added the bean to struts.xml file but to no avail .",
"Note : If you do not want to use struts 2 jquery grid at least consider using jqGrid which will save you life .",
"Here I am facing some issue when replace struts-dojo autocompleter to struts-jquery autocompleter .",
"I could use the jQuery plugin on Struts2 2.3.14 I just removed the Target directory of the application and used the following dependencies .",
"Currently I am doing struts up-gradation task struts2.0 to struts2.5 .I want to replace struts dojo tag with struts-jquery .",
"Added struts2-jquery tag because it has 31 followers while your other sj tags have 3 followers.. .",
"I had included following jar for JQuery http : code.google.com p struts2-jquery downloads .",
"If you like to know how to use custom theme with Struts2 jQuery plugin you should read Overriding Struts2 jqGrid CSS http : stackoverflow.com a 32155445 573032 .",
"TL DR Struts2 jQuery grid no longer hits url after setting hiddengrid true .",
"Dojo plugin is deprecated .. . .. . The Dojo plugin will be deprecated on Struts 2.1 .. . .. . Struts 2.0 versus Struts 2.1 and the Dojo tags .. . .. . The easiest way to get documentation for Struts 2.0 Dojo tag usage is to look at older Struts 2 documentation like the Struts 2.0.11 Ajax tags wiki documentation .",
"Seems like a bug : code.google.com p struts2-jquery issues detail id 931 http : code.google.com p struts2-jquery issues detail id 931 .",
"Is it even possible to use jQuery to manipulate the accordion object that struts created",
"It adds replaces the Ajax being used by struts2 dojo plugin https : struts.apache.org docs ajax-tags.html .",
"I am using ajax jquery validation .",
"Possible duplicate : Struts2 jQuery DataTable 1.10 Mutidimensional Http Parameters http : stackoverflow.com q 27828138 1700321 .",
"Because I have been trying to implement search in struts2 jQuery grid and still couldnt get it working .",
"Why jQuery submit works fine when normal Struts2 submit not",
"Even if I click or not on the jQuery submit struts submit doesn t work .",
"For the records the solution for the fake scenario described in the question using Struts2-jQuery-Grid Plugin instead of the raw jqGrid would be :",
"not any struts2 plugin .",
"The first one is used for Struts2 core tag library https : struts.apache.org docs struts-tags.html .. . .. . The framework provides a tag library decoupled from the view technology .",
"Many Actions need drop-down lists http : www.mkyong.com struts2 struts-2-sselect-drop-down-box-example and other controls pre-populated before the page displays .",
"Add Struts2 jQuery Plugin Tag lib to your JSP .. . .. . Enable jQuery Grid Plugin in your Head Tag .. . .. . update : .. . .. . Specify an Edit Url in your JSP .. . .. . And enable Edit by setting following attributes in your JSP .. . .. . then define which Column should be editable .. . .. . Example for an Edit Options : .. . .. . Example for an Edit Rules : .. . .. . update : 1",
"JQuery :",
"Regarding Solution 1 I don t think is possible in Struts2-jQuery-Grid it does not have cellattr exposed since I m using checkbox formatter I will create a custom one with another formatter as in Solution 2b .",
"Using plain jQuery outside of my Struts application I seem to be able to do this : accordion .accordion activate x as described here : Jquery accordion activate http : stackoverflow.com questions 1899307 jquery-accordion-activate .. . .. . When i try to do this with my struts jquery implementation however it screws up the rendering of my accordion altogether .",
"Possible duplicate of Drop-Down in Struts 2 http : stackoverflow.com questions 20419844 drop-down-in-struts-2",
"In Struts 2 the HTML drop down list can be rendered via s : select tag .",
"but the problem is i dont have getSubject1 setSubject1 .....getSubjectN setSubjectN .. . .. . EDITED Now issue is how should i retreive it wihtout setters and getters.I am using JQuery Jtable reference : http : www.simplecodestuffs.com crud-operations-in-struts-2-using-jtable-jquery-plugin-via-ajax .. . .. . My Bean class .. . .. . Subject class .. . .. . action class .",
"In my case-when user clicks a button a jquery function is called which sends ajax request and displays output .",
"For example I want to show the content of the 2nd column only if the 1th column value is Movie : .. . .. . I ve tried to use conditional OGNL expressions in hidden and cssClass fields of the GridColumnTag http : code.google.com p struts2-jquery wiki GridColumnTag but immediately noticed they evaluate once against the whole column not at every iteration .",
"The display tag is a library created to simplify representation of tabular data on the web and already old enough to use it with the modern technologies like Ajax and component based scripting libraries like jQuery etc .",
"I have a strut2 jquery grid along with a form on my webapp s landing s page .",
"http : jqueryui.com datepicker date-formats .. . .. . http : api.jqueryui.com datepicker .. . .. . As you can see jQuery easily provides for this how to do it with the tag.. .",
"The jQuery Datepicker I uses mm dd yy .",
"I am new to Struts2 .",
"What happens when you click on second default submit w o clicking on jQuery plugin submit",
"In my web application i want to load every pages without loading like gmail does.so I found one plugin named jquery-address .",
"Thanks for ur reply but the grid table should be developed using in struts2 tags only not with javascript ajax.the grid table must be in editable form .",
"Hi I have a web application built using java+struts2+hibernate .",
".. . The types of tags can be broken in to two types : generic and UI .",
"I am using struts2 jqgrid .",
"I m new to Struts framework .",
"I think I can extend the used jquery objects may be .struts2 jquery chart and add it but don t know how",
"I have used bootstrap and jquery 1.11.x .",
"This question already has an answer here : .. . .. . Submit two HTML forms in JSP using single submit button with Ajax questions 15711443 submit-two-html-forms-in-jsp-using-single-submit-button-with-ajax 3 answers .. . .. . following is my submit button which is submitting two forms using struts2-jquery plugin but nothing is happening .",
"I am using Struts2 with ModelDriven for form submitting .",
"You are ignoring fundamentals of both Struts2 and OGNL .",
"I am using Struts2 action for getting data",
"I am using a struts 2 s : iterator tag to add data to a jsp page .",
"How can I implement paging in Struts 2 for the client-side display and Hibernate as the persistence layer .",
"Below is my code : .. . .. . JQuery : .. . .. . I am able to get the 4th column value which is amount from the table when clicked on the remove button .",
"Struts2 looks at the property name and checks the property type and then will attempt to apply a known conversion struts2 parameters interceptor if there is not one the value will not be settable .",
"Do Struts tags s : submit and sj : submit work on same form",
"If I remove the jquery.js file then form works well but ui fails .",
"is it a good way to use bootstrap in struts2 .",
"Always use cssClass and cssStyle in Struts tags .",
"Why are you using the Struts 1.3 taglib",
"The grid is populated and made visible via ajax call when the form is submitted .",
"Caused by : Unable to load bean : type : org.apache.struts2.views.TagLibraryDirectiveProvider class : com.jgeppert.struts2.bootstrap.views.BootstrapTagLibrary - bean - jar : file : D : server application build web WEB-INF lib struts2-bootstrap-plugin-2.0.4.jar struts-plugin.xml : 27 : 148 .. . .. . Thanks in advance .",
"https : code.google.com p struts2-jquery wiki Validation .. . .. . In my struts.xml i have .. . .. . In JSP page i have : .. . .. . I have model class Channel with annotation validations as : .. . .. . My action class implements the Model Driven Interface .",
"I m using all js css files for jquery and bootstrap .",
"Only when I complete remove jQuery submit it works .",
"As I wrote above jQuery submit works fine and it fills this div properly .",
"I am fetching records dynamically using struts2 framework .",
"Just fyi - since 2.3.20 github.com apache struts commit https : github.com apache struts commit 6fbd1bef3a91eb6992507086b75f6d22bcb95fb2 E2 80 8C E2 80 8B .",
"The data is obtained via an AJAX call and should be a valid HTML select element with the desired options One .",
"You have dependency problem : .. . .. . class TagLibraryDirectiveProvider exists in struts2-core jar but in newer version 2.3.16 than you declared 2.3.8 : http : struts.apache.org release 2.3.x struts2-core apidocs org apache struts2 views TagLibraryDirectiveProvider.html .. . .. . So simple upgrade the dependency .",
"I have on struts2 2.3.15 application with netbeans-8.1 .",
"tried to use bootstrap plugins for struts2 but gives error .",
"How can I get the relevant applicant id to a variable in jquery when I click the approve button",
"But when datepicker tag of jQuery is taken in the form and date is selected the object in ModelDriven have null values .",
"If I can pop-up the JQuery Dialog box I can solve my 1st issue also But not sure about the issue that is causing the dialog not to pop-up",
"The problem is that something override default onclick event for the last default struts 2 submit and there is no submition no action created ."
]
} | {
"confidence": [
78.76176452636719,
57.65041732788086,
56.42753219604492,
56.182373046875,
54.505332946777344,
53.82969665527344,
53.797210693359375,
49.626670837402344,
48.56222915649414,
48.171627044677734,
45.42437744140625,
45.41389846801758,
45.1513786315918,
44.58807373046875,
43.288719177246094,
43.25912094116211,
41.99042510986328,
41.83893966674805,
40.45622634887695,
40.31877517700195
],
"content": [
"Question : I am new to Struts2 . I wanted to know the difference between Struts2 and Struts2 jQuery tags .. . Answer : The first one is used for Struts2 core tag library https : struts.apache.org docs struts-tags.html .. . .. . The framework provides a tag library decoupled from the view technology . In this section we describe each tag in general terms such as the attributes it supports what the behaviors are and so forth . Most tags are supported in all template languages see JSP Tags Velocity Tags and FreeMarker Tags but some are currently only specific to one language . Whenever a tag doesn t have complete support for every language it is noted on the tag s reference page . .. . The types of tags can be broken in to two types : generic and UI . Besides function and responsibility the biggest difference between the two is that the HTML tags support templates and themes . In addition to the general tag reference we also provide examples for using these generic tags in each of the support languages . the second is added via plugin . It adds replaces the Ajax being used by struts2 dojo plugin https : struts.apache.org docs ajax-tags.html . Dojo plugin is deprecated .. . .. . The Dojo plugin will be deprecated on Struts 2.1 .. . .. . Struts 2.0 versus Struts 2.1 and the Dojo tags .. . .. . The easiest way to get documentation for Struts 2.0 Dojo tag usage is to look at older Struts 2 documentation like the Struts 2.0.11 Ajax tags wiki documentation . Now this plugin is deprecated and struts2-jquery-plugin https : github.com struts-community-plugins struts2-jquery could be used instead . A Plugin for the popular java web framework struts2 to provide ajax functionality and UI Widgets based on the jQuery javascript-framework . Comment : thank you for the informative description . Comment : welcome don t forget to upvote it",
"Question : I have a Struts 2 application that is utilizing the accordion feature of the Struts2 jQuery plugin http : code.google.com p struts2-jquery wiki AccordionTag and I m trying to programmatically traverse through the accordion items . What I mean is that I basically want to have a button in each accordion content area that opens up the next accordion item below it . Using plain jQuery outside of my Struts application I seem to be able to do this : accordion .accordion activate x as described here : Jquery accordion activate http : stackoverflow.com questions 1899307 jquery-accordion-activate .. . .. . When i try to do this with my struts jquery implementation however it screws up the rendering of my accordion altogether . Unfortunately using plain jQuery UI doesn t seem to be an option for me . Is there any other possible way to do this with what I m currently working with Is it even possible to use jQuery to manipulate the accordion object that struts created Any help would be greatly appreciated . I really want to continue using the accordion in this fashion because it s very easy to use but I m not sure that it s flexible enough to suit my purposes . Thanks in advance for any advice you can provide . .. . Answer : this is so awesome i figured i would share with the world : .. . .. . All i had to do was add this code accordion .accordion activate 0 to an area below my sj : accordion object . My problem was that i was putting this code in the head of my document but I m assuming there is a difference in when the elements are rendered therefore I can only reference this object after it s actually been created . Now I can bind the click event of buttons to open different accordion items . It s working like a charm",
"Question : I am going to use struts-jquery taglib https : code.google.com p struts2-jquery wiki DatePickerTag Datepicker with different options and animations but the application throws the following errors . Based on this question http : stackoverflow.com questions 15087557 can-not-find-the-tag-library-descriptor-for-struts2-jquery-tags-in-jsp I changed struts to struts2 and based on this one http : stackoverflow.com questions 20772405 struts2-jquery-plugin-java-lang-classnotfoundexception-org-apache-struts2-views I added the bean to struts.xml file but to no avail . Exceptions .. . .. . POM.xml Comment : Why are you using the Struts 1.3 taglib .. . Answer : I could use the jQuery plugin on Struts2 2.3.14 I just removed the Target directory of the application and used the following dependencies .",
"Question : I am going to use struts-jquery taglib https : code.google.com p struts2-jquery wiki DatePickerTag Datepicker with different options and animations but the application throws the following errors . Based on this question http : stackoverflow.com questions 15087557 can-not-find-the-tag-library-descriptor-for-struts2-jquery-tags-in-jsp I changed struts to struts2 and based on this one http : stackoverflow.com questions 20772405 struts2-jquery-plugin-java-lang-classnotfoundexception-org-apache-struts2-views I added the bean to struts.xml file but to no avail . Exceptions .. . .. . POM.xml Comment : Why are you using the Struts 1.3 taglib .. . Answer : And : .. . .. . I compiled and added them in my classes folder",
"Question : I am going to use struts-jquery taglib https : code.google.com p struts2-jquery wiki DatePickerTag Datepicker with different options and animations but the application throws the following errors . Based on this question http : stackoverflow.com questions 15087557 can-not-find-the-tag-library-descriptor-for-struts2-jquery-tags-in-jsp I changed struts to struts2 and based on this one http : stackoverflow.com questions 20772405 struts2-jquery-plugin-java-lang-classnotfoundexception-org-apache-struts2-views I added the bean to struts.xml file but to no avail . Exceptions .. . .. . POM.xml Comment : Why are you using the Struts 1.3 taglib .. . Answer : You have dependency problem : .. . .. . class TagLibraryDirectiveProvider exists in struts2-core jar but in newer version 2.3.16 than you declared 2.3.8 : http : struts.apache.org release 2.3.x struts2-core apidocs org apache struts2 views TagLibraryDirectiveProvider.html .. . .. . So simple upgrade the dependency . Comment : if I change that to 2.3.16.1 which is the latest one I can not use ServletResponseAware interface anymore Comment : I posted a question for it as well stackoverflow.com questions 22600204 http : stackoverflow.com questions 22600204 how-to-have-access-to-servletrequestaware-on-struts2-core-2-3-16-1",
"Question : The chart component in the Struts 2 jQuery plugin version 3.6 seems not supporting the category plugin for the sjc : chart . I want to use Flot With String x-axis for chart and the best solution is to use jquery.flot.categories.js Described at Flot With String x-axis http : stackoverflow.com questions 5820954 flot-with-string-x-axis . As I review some struts-jquery-plugin codes . I found that the jquery.chart.struts2.js does not use this plugin on the other hand the jquery.flot.categories.js file is in the struts2-jquery-chart-plugin-3.7.1.jar file . Please let me know how can I fix it I think I can extend the used jquery objects may be .struts2 jquery chart and add it but don t know how .. . Answer : It s easily fixable just modify your jquery.chart.struts2.js and add the following code . If you like to know how to use custom theme with Struts2 jQuery plugin you should read Overriding Struts2 jqGrid CSS http : stackoverflow.com a 32155445 573032 . References : .. . .. . Struts2 jQuery Plugin 3.4.0 with improved Chart Tag released http : www.jgeppert.com 2012 10 struts2-jquery-plugin-3-4-0-with-improved-chart-tag-released .. . ChartTag https : github.com struts-community-plugins struts2-jquery wiki ChartTag .. . Categories http : www.flotcharts.org flot examples categories index.html Comment : This also worked jQuery.struts2 jquery.require js flot jquery.flot.categories +jQuery.struts2 j query.minSuffix+ .js for me",
"Question : null .. . Answer : I have on struts2 2.3.15 application with netbeans-8.1 . I have used bootstrap and jquery 1.11.x . display works well but all the forms submits twice . If I remove the jquery.js file then form works well but ui fails . tried to use bootstrap plugins for struts2 but gives error . Caused by : Unable to load bean : type : org.apache.struts2.views.TagLibraryDirectiveProvider class : com.jgeppert.struts2.bootstrap.views.BootstrapTagLibrary - bean - jar : file : D : server application build web WEB-INF lib struts2-bootstrap-plugin-2.0.4.jar struts-plugin.xml : 27 : 148 .. . .. . Thanks in advance . Comment : Show us how you do submit forms Comment : Hi Andrea . Its a sample piece of code . Please note that If I remove jquery.min.js all works well . Comment : Possible duplicate of Struts2 jQuery plugin java.lang.ClassNotFoundException : org.apache.struts2.views.TagLibrary http : stackoverflow.com questions 20772405 struts2-jquery-plugin-java-lang-classnotfoundexception-org-apache-struts2-views Comment : I m using all js css files for jquery and bootstrap . not any struts2 plugin . is it a good way to use bootstrap in struts2 . Comment : Placed at the end of the document so the pages load faster O O",
"Question : How can I implement paging in Struts 2 for the client-side display and Hibernate as the persistence layer . Here is the code that I have done so far : .. . .. . Is there any way to implement this without display tag Comment : Better describe with results how did you do . .. . Answer : I would suggest you to use jQuery Datatable http : www.datatables.net you need done following : .. . .. . There are also other options like struts2-jquery-plugin http : code.google.com p struts2-jquery .. . .. . It depends on your needs .",
"Question : I am fetching records dynamically using struts2 framework . eg . ExamId 1 has 6 subject . ExamId 2 has 8 subject . ExamId 3 has 2 subject . etc . but the problem is i dont have getSubject1 setSubject1 .....getSubjectN setSubjectN .. . .. . EDITED Now issue is how should i retreive it wihtout setters and getters.I am using JQuery Jtable reference : http : www.simplecodestuffs.com crud-operations-in-struts-2-using-jtable-jquery-plugin-via-ajax .. . .. . My Bean class .. . .. . Subject class .. . .. . action class . Comment : Can you be please more clear . . If possible add some code and explain where you are finding difficulties . . Comment : please check the edits . Comment : Why dont you use ArrayList . In That list keep Any Bean class objects which are holding data . . And create ArrayList getter and setter . . It will be available in your JSP . Comment : please check this link simplecodestuffs.com http : www.simplecodestuffs.com crud-operations-in-struts-2-using-jtable-jquery-plugin-via-ajax i cant use arraylist ajax field name must match the class property Comment : How your case is different from one that in the link .. . Answer : You are ignoring fundamentals of both Struts2 and OGNL . And this is a perfect case of the XY problem http : meta.stackexchange.com a 66378 214186 . The only things you need are the getter and the setter for the Collection List that obviously must be declared at class level not method level or it ll be destroyed once the method execution is over . Since in your case the Collection List is inside another object then that object must be declared at class level and you will need getter setter for it too : .. . .. . Also use a List to have order and use the notation and the dot notation to specify it in page with the help of IteratorStatus object",
"Question : I m trying to populate a drop down list in a grid column using the Struts2-jQuery-grid-3.7.0 https : code.google.com p struts2-jquery downloads detail name struts2-jquery-grid-plugin-3.7.0.jar can 2 q plugin as follows . And the action where the CategoryList action is mapped is as follows . When a given edit link on the grid is clicked the load method is executed where a list of categories is loaded from the database . The list in the grid however displays nothing in edit mode when the edit link is clicked . I cannot find relative examples that may demonstrate this kind of thing . How to populate this drop down list especially how to give this drop down labels using the catName property and values using the catId of Long type property separately while category in the list has-many other attributes I don t find relevant examples to map a java.util.List E to sjg : grid . .. . .. . subCategory.category.catName is a nested property of Product entity . In this case even after populating the list it should also be noted that the display value of this column is catName category name of type String . The value of the selected item however to be set to an instance of Product should be catId category id of type Long which doesn t seem possible as the name of this column is subCategory.category.catName . Intuitively catId subCategory.category.catId would be mapped to catName subCategory.category.catName which would be wrong if I could envision correctly as-if the list were already populated . Comment : Added struts2-jquery tag because it has 31 followers while your other sj tags have 3 followers.. . Comment : Please add answer s if someone has . .. . Answer : In Struts 2 the HTML drop down list can be rendered via s : select tag . To auto select a default-value for a drop down list just declared a value attribute in the tag and set the default-value accordingly . Example : .. . .. . A Java list to generate the select options for the drop down box . tag to render the HTML drop down box . The value defaultSearchEngine will call the corresponds Action class getDefaultSearchEngine method to return a default search-engine value . Many Actions share common concerns . Some Actions need input validated . Other Actions may need a file-upload to be pre-processed . Another Action might need protection from a double submit . Many Actions need drop-down lists http : www.mkyong.com struts2 struts-2-sselect-drop-down-box-example and other controls pre-populated before the page displays . In this example the drop down box will auto select the yahoo.com as the default option . Add Struts2 jQuery Plugin Tag lib to your JSP .. . .. . Enable jQuery Grid Plugin in your Head Tag .. . .. . update : .. . .. . Specify an Edit Url in your JSP .. . .. . And enable Edit by setting following attributes in your JSP .. . .. . then define which Column should be editable .. . .. . Example for an Edit Options : .. . .. . Example for an Edit Rules : .. . .. . update : 1 Comment : I know about this stray s : select but I need a drop down list inside sjg : gridColumn . This should have something to do with the attribute editoptions dataUrl : dataURL or something else . Comment : @Tiny look at my new update answer... . Comment : editoptions are dynamic . They should be populated from the database . Given the example in the question catId as value and catName as label of select option option select . How can this be dynamic - editoptions value : France : France USA : USA Australia : Australia Norway : Norway Sp ain : Spain Comment : The list is populated in the CategoryList class . It should be mapped to editoptions catId as value and catName as label of select option option select . Can this be done Comment : @Tiny look at my update : 1 answer .",
"Question : I have a problem with submitting form which contains normal and jQuery submit button . This is code snippet of my JSP : .. . .. . jQuery submit button only adds typed into textfield user name to ArrayList and list all saved users in div with id assignCollaborators and this works fine . Rendered jQuery submit : .. . .. . Now when I want to submit form using last submit button nothing happens . No Java or JavaScript errors . What can cause such strange behavior Why jQuery submit works fine when normal Struts2 submit not I assure that all needed actions and property fields are defined . EDIT : .. . .. . When I ve created simple submit JavaScript function and assign its to onclick event to the last submit it works properly . Comment : What happens when you click on second default submit w o clicking on jQuery plugin submit Does it work Comment : No it doesn t . Only when I complete remove jQuery submit it works . Even if I click or not on the jQuery submit struts submit doesn t work . Comment : Which version of struts2-jquery-plugin Comment : struts2-jquery-plugin ver . 3.6.1 . Comment : Seems like a bug : code.google.com p struts2-jquery issues detail id 931 http : code.google.com p struts2-jquery issues detail id 931 . .. . Answer : Seems like a bug in struts2-jquery-plugin : http : code.google.com p struts2-jquery issues detail id 931 . It should work with version 3.3.3 of that plugin .",
"Question : I have a problem with submitting form which contains normal and jQuery submit button . This is code snippet of my JSP : .. . .. . jQuery submit button only adds typed into textfield user name to ArrayList and list all saved users in div with id assignCollaborators and this works fine . Rendered jQuery submit : .. . .. . Now when I want to submit form using last submit button nothing happens . No Java or JavaScript errors . What can cause such strange behavior Why jQuery submit works fine when normal Struts2 submit not I assure that all needed actions and property fields are defined . EDIT : .. . .. . When I ve created simple submit JavaScript function and assign its to onclick event to the last submit it works properly . Comment : What happens when you click on second default submit w o clicking on jQuery plugin submit Does it work Comment : No it doesn t . Only when I complete remove jQuery submit it works . Even if I click or not on the jQuery submit struts submit doesn t work . Comment : Which version of struts2-jquery-plugin Comment : struts2-jquery-plugin ver . 3.6.1 . Comment : Seems like a bug : code.google.com p struts2-jquery issues detail id 931 http : code.google.com p struts2-jquery issues detail id 931 . .. . Answer : Problem here is the e.PreventDefault to prevent a normal submit on press enter inside of an form textfield . See : http : code.google.com p struts2-jquery source browse trunk struts2-jquery-plugin src main resources template js struts2 jquery.struts2.js 947 .. . .. . What about using an normal Link instead of an button",
"Question : I have a problem with submitting form which contains normal and jQuery submit button . This is code snippet of my JSP : .. . .. . jQuery submit button only adds typed into textfield user name to ArrayList and list all saved users in div with id assignCollaborators and this works fine . Rendered jQuery submit : .. . .. . Now when I want to submit form using last submit button nothing happens . No Java or JavaScript errors . What can cause such strange behavior Why jQuery submit works fine when normal Struts2 submit not I assure that all needed actions and property fields are defined . EDIT : .. . .. . When I ve created simple submit JavaScript function and assign its to onclick event to the last submit it works properly . Comment : What happens when you click on second default submit w o clicking on jQuery plugin submit Does it work Comment : No it doesn t . Only when I complete remove jQuery submit it works . Even if I click or not on the jQuery submit struts submit doesn t work . Comment : Which version of struts2-jquery-plugin Comment : struts2-jquery-plugin ver . 3.6.1 . Comment : Seems like a bug : code.google.com p struts2-jquery issues detail id 931 http : code.google.com p struts2-jquery issues detail id 931 . .. . Answer : This is because you use the token tag which prevent the form submission twice . You should refresh the page after the form-submit to generate a new token . Comment : But when I remove token tag the problem stil exists . Comment : Move the div out of the form unknown content could be returned after the action execution . Comment : As I wrote above jQuery submit works fine and it fills this div properly . The problem is that something override default onclick event for the last default struts 2 submit and there is no submition no action created . Comment : Assign id to the last submit to make sure that nothing override it except might be you . Comment : This also didn t help.. . When I remove sj : submit it works but I need this jQuery submit to load data without page refresh .",
"Question : null .. . Answer : Currently I am doing struts up-gradation task struts2.0 to struts2.5 .I want to replace struts dojo tag with struts-jquery . Here I am facing some issue when replace struts-dojo autocompleter to struts-jquery autocompleter . getting below response from server : .. . .. . firstName : Bulwark Technologies LLC partnerId : 925 firstName : Bulwark Technologies LLC1 partnerId : 926 firstName : Bulwark Technologies LLC2 partnerId : 927 .. . .. . For displaying at client-side I am using Struts2-jquey-autocompleter - .. . .. . I am getting undefined multiple times - based on result found in query at server-side in textbox . could some one please help here Thanks in advance . enter image description here http : i.stack.imgur.com 0W4P0.png Comment : I think your attribute value for list is wrong . I always use something like this : mylist : key : 1 value : Foo key : 2 value : Bar and the autocompleter : sj : autocompleter href .. . list mylist listKey key listValue value",
"Question : Is there any way to target a column in a jqGrid in my case Struts2-jQuery-Grid Plugin 3.7.0 on certain rows only For example I want to show the content of the 2nd column only if the 1th column value is Movie : .. . .. . I ve tried to use conditional OGNL expressions in hidden and cssClass fields of the GridColumnTag http : code.google.com p struts2-jquery wiki GridColumnTag but immediately noticed they evaluate once against the whole column not at every iteration . As a workaround I can manually hide the columns in that rows with javascript after the grid is populated but that is a hack and I m wondering if there is a clean solution to conditionally do something on a columns per-row . NOTE : I can t simply erase the content from the source List as it would be obvious because COL 2 in my real case is a Boolean represented as checkbox . .. . Answer : For the records the solution for the fake scenario described in the question using Struts2-jQuery-Grid Plugin instead of the raw jqGrid would be :",
"Question : UPDATE : Found solution check comments since I am still a noobie user who has to wait 8 hours . I have a strut2 jquery grid along with a form on my webapp s landing s page . The grid is populated and made visible via ajax call when the form is submitted . It was functioning incorrectly at first since the grid would make an ajax call initially when the user hits the landing page making unnecessary requests . I fixed this with hiddengrid true and now the grid does not make any initial requests when the landing page is first hit which is good . But now my ajax call does not work at all when I submit the form . It does not even reach the action . Setting that above attribute to true has something to do with it but I am not sure how to fix the issue . TL DR Struts2 jQuery grid no longer hits url after setting hiddengrid true . Setting the attribute to false fixes the issue but then the grid makes an initial unnecessary request . Any help would be greatly appreciated Thanks Comment : Don t post a code in comments if you have an answer to your own question you can post an answer following the link below . .. . Answer : Looks like I have been searching the wrong keywords . Doing a google-search on jquery grid initial data instead of struts 2 jquery grid . . brought me to a quick and painless fix . Anyway here is the quick fix in case anyone runs into similar issue : .. . .. . Source http : pietervogelaar.nl disable-jqgrid-data-load-on-initialization .. . .. . Set the grid attribute initially : .. . .. . In your ajax call set the grid attribute to json assuming you are working with JSON data .. . .. . my-jqgrid-ID .jqGrid setGridParam datatype : json .trigger reloadGrid",
"Question : null .. . Answer : In my web application i want to load every pages without loading like gmail does.so I found one plugin named jquery-address . But i cant understand how to connect to ajax to load content from an action and to change the web page title correspondingly . In my case-when user clicks a button a jquery function is called which sends ajax request and displays output . How can i do it with jquery-address so that the web page title is changed and the contents displayed without loading.I am also curious about how to do it with form also . I am using Struts2 action for getting data Comment : Take a look at some spa . E.g . jgeppert.com 2015 05 http : www.jgeppert.com 2015 05 creating-java-web-applications-with-angularjs-and-struts2 .",
"Question : I am using Struts2 with ModelDriven for form submitting . When I use datetimepicker tag of Dojo and select date from that tag the form is submitted correctly with the form values populated in the ModelDriven object . But when datepicker tag of jQuery is taken in the form and date is selected the object in ModelDriven have null values . If date is not selected and form is submitted then it work fine . Is there any setting required that I missed to resolve the issue I had included following jar for JQuery http : code.google.com p struts2-jquery downloads . JQuery : Comment : Show complete JSP and action code . .. . Answer : Struts expects a value to be sent to the server as a locale-independent value conforming to RFC3 339 http : tools.ietf.org html rfc3339 section-5.8 yyyy-MM-dd T HH : mm : ss this is what the default dojo tag now deprecated provides : http : struts.apache.org 2.0.12 docs datetimepicker.html .. . .. . You can just send : 2013-01-03 the rest is optional . The jQuery Datepicker I uses mm dd yy . To change this format to what struts2 expects either change the defaultFormat used for presentation or set altFormat which changes what was input into the format presented during submission So if you like mm dd yy you can just set altFormat to yyyy-mm-dd and get the desired effect . http : jqueryui.com datepicker date-formats .. . .. . http : api.jqueryui.com datepicker .. . .. . As you can see jQuery easily provides for this how to do it with the tag.. . I don t know . Someone else is welcome to take this information and extend it in another answer with a tag specific technique if possible .",
"Question : I m trying to populate a drop down list in a grid column using the Struts2-jQuery-grid-3.7.0 https : code.google.com p struts2-jquery downloads detail name struts2-jquery-grid-plugin-3.7.0.jar can 2 q plugin as follows . And the action where the CategoryList action is mapped is as follows . When a given edit link on the grid is clicked the load method is executed where a list of categories is loaded from the database . The list in the grid however displays nothing in edit mode when the edit link is clicked . I cannot find relative examples that may demonstrate this kind of thing . How to populate this drop down list especially how to give this drop down labels using the catName property and values using the catId of Long type property separately while category in the list has-many other attributes I don t find relevant examples to map a java.util.List E to sjg : grid . .. . .. . subCategory.category.catName is a nested property of Product entity . In this case even after populating the list it should also be noted that the display value of this column is catName category name of type String . The value of the selected item however to be set to an instance of Product should be catId category id of type Long which doesn t seem possible as the name of this column is subCategory.category.catName . Intuitively catId subCategory.category.catId would be mapped to catName subCategory.category.catName which would be wrong if I could envision correctly as-if the list were already populated . Comment : Added struts2-jquery tag because it has 31 followers while your other sj tags have 3 followers.. . Comment : Please add answer s if someone has . .. . Answer : Regarding to the documentation connected with gridColumn and editoptions property : .. . .. . dataUrl .. . .. . This option is valid only for elements of type select - i.e . edittype : select and should be the URL to get the AJAX data for the select element . The data is obtained via an AJAX call and should be a valid HTML select element with the desired options One . You can use option group . your action has to return valid select element . That means that your Product.jsp result need to look like this : .. . .. . Reference : http : www.trirand.com jqgridwiki doku.php id wiki : common rules Comment : This can be done if there is s : select alone . Can we have s : select inside a grid column Comment : If I understand you correctly the select is rendered when there is no taglib declaration inside Product.jsp right I am sure that you have some taglib declaration in JSP where you have placed gridColumn element then it will work without additional declaration inside Product.jsp . Comment : Could you please demonstrate it in conjunction with an sjg : grid I cannot envision this thing . I have implemented such kind of things in JSF and its component library PrimeFaces where there is a p : rowEditor inside p : dataTable in which we can put a component of our choice like p : selectOneMenu . It is a different scenario .",
"Question : I am using Struts2 with ModelDriven for form submitting . When I use datetimepicker tag of Dojo and select date from that tag the form is submitted correctly with the form values populated in the ModelDriven object . But when datepicker tag of jQuery is taken in the form and date is selected the object in ModelDriven have null values . If date is not selected and form is submitted then it work fine . Is there any setting required that I missed to resolve the issue I had included following jar for JQuery http : code.google.com p struts2-jquery downloads . JQuery : Comment : Show complete JSP and action code . .. . Answer : Problem was Dojo takes the date value on JSP as Date in java whereas JQuery takes it as string . And so struts was finding for setDate String and not setDate Date for JQuery . Comment : Issue is during submission and all request parameters arrive as String . Struts2 looks at the property name and checks the property type and then will attempt to apply a known conversion struts2 parameters interceptor if there is not one the value will not be settable . Simply it can not account for every date-format and it only accounts for one afaik without a custom conversion that is ."
]
} | [
"yes-answer-long",
"yes-answer-short"
] | jquery | UNK_RELATION |
django-rest-framework@toolkit@50 | django-rest-framework -- a powerful and flexible @placeholder for building web apis . | {
"confidence": [
47.798545837402344,
45.502803802490234,
40.96996307373047,
40.094600677490234,
39.585235595703125,
39.130550384521484,
37.42734146118164,
37.42734146118164,
37.42734146118164,
36.71250534057617,
36.64566421508789,
36.039432525634766,
35.88444519042969,
35.8248291015625,
35.8248291015625,
35.8248291015625,
35.8248291015625,
35.822265625,
35.822265625,
35.77383041381836,
35.77383041381836,
35.72414016723633,
34.96210479736328,
34.96210479736328,
34.96210479736328,
34.96210479736328,
34.91725158691406,
34.91725158691406,
34.91725158691406,
34.91725158691406,
34.72500991821289,
34.72500991821289,
34.71833038330078,
34.50361251831055,
34.19049835205078,
34.16645812988281,
33.904178619384766,
33.904178619384766,
33.904178619384766,
33.904178619384766,
33.904178619384766,
33.904178619384766,
33.904178619384766,
33.904178619384766,
33.904178619384766,
33.904178619384766,
33.904178619384766,
33.904178619384766,
33.85317611694336,
33.85317611694336,
33.85317611694336,
33.85317611694336,
33.85317611694336,
33.85317611694336,
33.85317611694336,
33.80905532836914,
33.79309844970703,
33.647830963134766,
33.647830963134766,
33.47112274169922,
33.47112274169922,
33.45732879638672,
33.35959243774414,
33.35959243774414,
33.35959243774414,
33.35959243774414,
33.19959259033203,
32.81977462768555,
32.81230545043945,
32.75759506225586,
32.75759506225586,
32.75759506225586,
32.66423416137695,
32.66423416137695,
32.66423416137695,
32.66423416137695,
32.620052337646484,
32.49409103393555,
32.49409103393555,
32.46208953857422,
32.26316833496094,
32.10763168334961,
32.05556869506836,
32.0182991027832,
31.889598846435547,
31.852134704589844,
31.651161193847656,
31.651161193847656,
31.651161193847656,
31.651161193847656,
31.651161193847656,
31.641437530517578,
31.641437530517578,
31.641437530517578,
31.641437530517578
],
"content": [
"I m building a Django application with Django-Rest-Framework APIs .",
"We are building a Django Web Application using Django Rest Framework and AngularJS .",
"Django rest framework is noting but Django .",
"Django REST Framework is designed to work with Django Framework .",
"I am using django-rest-framework http : django-rest-framework.org .",
"I m building an API using Django Rest Framework .",
"class ModelSerializerOptions is not available in Django-rest-framework release .",
"How would I do that with django-rest-framework",
"Another option that works with Django REST Framework 3.3.2 :",
"I m using Django Rest Framework to create REST endpoints for a frontend .",
"I am trying to send tags to my web application using Django Rest Framework and Django Taggit .",
"I m building an app with a Django backend Angular frontend and a REST API using Django REST Framework for Angular to consume .",
"I am newbie to Django and developing a REST API using Django Rest Framework DRF and GIS .",
"thank you django-rest-framework 3.4 .. . .. .",
"I am new to django rest-framework serializers .",
"Could it be something with the recent version of django-rest-framework",
"This is for tasty pie I m working with Django Rest Framework .",
"I m trying to migrate a project from django-rest-framework-gis 0.7 to 0.8 and from django-rest-framework 2.4.3 . to 3.0.5 .",
"UPDATE 1 .. . .. . I found that this is related to using GeoFeatureModelSerializer this is part of Django Rest Framework GIS https : github.com djangonauts django-rest-framework-gis .",
"EDIT : I m using Django 1.9.5 and Django rest framework 3.3.3",
"This has more to do with django and little to do with django-rest-framework .",
"I m using the Django REST framework .",
"but 400 and 415 errors are not in my codes but Django Rest Framework codes .",
"I have read the Django Rest Framework Guides and done all the tutorials .",
"I also have a ModelSerializer Django Rest Framework that represents that model .",
"See djangorestframework-recursive https : github.com heywbj django-rest-framework-recursive .",
"Has it got to do anything with the versioning of django-rest-framework https : github.com tomchristie django-rest-framework issues 2711",
"Take a look at the api view from django-rest-framework-jwt https : github.com GetBlimp django-rest-framework-jwt .",
"github.com tomchristie django-rest-framework issues 1257 https : github.com tomchristie django-rest-framework issues 1257",
"Possible duplicate of Django Rest Framework remove csrf http : stackoverflow.com questions 30871033 django-rest-framework-remove-csrf",
"The backend is Django 1.9 Django REST Framework 3.3 with Amazon Web Services using Elastic Beanstalk .",
"I want to make the Django REST Framework work with web sockets and came across Django Channels .",
"I m using apache with mod-wsgi on a debian jessie python3.4 django and django REST framework to power a REST web service .",
"UPDATE 2 .. . .. . Updated Django-Rest-Framework-Gis to latest version and fixed it .",
"I built a web app where the back-end is implemented using the Django REST Framework .",
"Django REST framework .. . .. . Gives you HTML browse-able self-describing APIs .",
"I am using Django REST Framework .",
"Below is the corrected code for Django Rest Framework 3.0 .",
"This also was solved by upgrading Django-rest-framework to latest",
"CSRF is exempted by default in Django REST Framework .",
"I m working on angular application with Django with rest-framework . .",
"This is only valid for Django Rest Framework version 2 .",
"I m using django REST framework ModelViewset and serializers .",
"I have this code for UserDetailsView in Django Rest Framework .",
"In my project I use django-rest-framework .",
"I m using the Django-rest-framework to build an API .",
"Updating to django-rest-framework 3.3.3 fixed the issue",
"I m using nested serializers in Django REST framework .",
"I am creating a django api system that works with django-rest-framework .",
"I was not asking how to install Django but Rest Framework a plugin to Django .",
"I currently have a large Django project leveraging Django REST Framework .",
"I m on PostgreSQL 9.4 Django 1.9 and Django REST Framework 3.3.2 .",
"I have an app developed using Django and Django Rest framework .",
"We are successfully using django-guardian and django-rest-framework on a project .",
"I have a django project using django-rest-framework to create api .",
"I ve installed Django Rest Framework and am working with Django Rest Swagger .",
"I m building an AngularJS app with Django Rest Framework and Django CORS Headers as backend API .",
"I would like build a REST API using the Django REST framework .",
"I have setup a rest API with DRF Django Rest Framework .",
"Also django-rest-framework + EmberData",
"I m using django-rest-framework .",
"I need a rest framework and currently looking at Django Rest Framework .",
"To clarify are you using serializers from django-REST-framework-mongoengine",
"I am trying to learn how to use GenericRelations in Django-Rest-Framework .",
"I am beginner in Django REST framework and need your advice .",
"Django-rest-framework works well even without tying it to a model .",
"Take a look at github.com djangonauts django-rest-framework-gis blob master https : github.com djangonauts django-rest-framework-gis blob master README.rst -- GeoFeatureModelSerializer requires you to define a geo field to be serialized as the geometry .",
"I have a Django project with API based on the Django REST framework http : www.django-rest-framework.org .",
"I use Django the Django REST Framework plus django-filters alex django-filter .",
"It sounds like you may want to look into django-rest-framework-jwt https : github.com GetBlimp django-rest-framework-jwt .",
"We would like to use the Django REST framework to render the model data with the filtering specified via the Django REST framework API as plots .",
"You can use this libray for social-authentication django-rest-framework-social-oauth2 https : github.com PhilipGarnero django-rest-framework-social-oauth2 .",
"The way that I communicate with the server from the SPA is with django-rest-framework https : github.com tomchristie django-rest-framework .",
"github.com JamesRitchie django-rest-framework-expiring-tokens https : github.com JamesRitchie django-rest-framework-expiring-tokens",
"I also use django-rest-framework-jwt and django-rest-framework-json-api packages if that matters .",
"The solution Django Rest Framework remove csrf http : stackoverflow.com questions 30871033 django-rest-framework-remove-csrf is the best",
"The usecase is that Django rest framework http : django-rest-framework.org generates nice documentation in the html version of your API based on your view classes docstrings .",
"Used : .. . .. . Django 1.8.13 .. . Django Rest Framework 3.4.0 .. . PostgreSQL 9.3.13 .. . .. . Any suggestions appreciated .",
"I use Django REST Framework in my Django app to provide an API and have recently added filtering .",
"I found that there should be package for Django s rest framework on fedora https : admin.fedoraproject.org pkgdb package python-django-rest-framework .",
"I am using Django Rest Framework http : www.django-rest-framework.org for developing web-api for my project .",
"I m building a RESTful API with Django and django-rest-framework : http : django-rest-framework.org .. . .. . As authentication mechanism we ve chosen Token Authentication and I have already implemented it following Django-Rest-Framework s documentation the question is should the application renew change the Token periodically and if yes how",
"In djangorestframework-gis https : github.com djangonauts django-rest-framework-gis there exists the DistanceToPointFilter https : github.com djangonauts django-rest-framework-gis distancetopointfilter which returns results within a certain distance from a given point .",
"I am trying to determine the best way to add a root element to all json responses using django and django-rest-framework .",
"Django REST framework Mongoengine https : github.com umutbozkurt django-rest-framework-mongoengine on the other hand is perfectly fine with handling the abstraction-layer and it s recommended for those using Django REST framework with Mongoengine .",
"I m trying to build RESTful API s with django-rest-framework and cassandra following step by step the official django-rest-framework tutorial at Django-rest-framework http : www.django-rest-framework.org I encountered this error .. . .. . This is my code .. . .. . urls.py .. . .. . models.py .. . .. . serializers.py .. . .. . views.py .. . .. . Thank you in advance for your support .",
"For local request Im using Django Rest Framework .",
"But I was expecting something to be built into Django rest framework .",
"my backend is django-rest-framework and rest auth .",
"yeah am using Django REST Framework",
"The creation is done using ajax and django-rest-framework .",
"In Django Rest Framework how do you filter a serializer when it s nested in another serializer",
"On Django 1.8.2 and rest framework 3.3.2 following all of the above was not enough to enable token based authentication .",
"I would like to save and update multiple instances using the Django Rest Framework with one API call .",
"@wjin s solution was working great for me until I upgraded to Django REST framework 3.0.0 which deprecates to native ."
]
} | {
"confidence": [
42.188690185546875,
41.37451171875,
40.825225830078125,
40.63364791870117,
39.65019226074219,
39.60237503051758,
39.096343994140625,
38.63373947143555,
38.307594299316406,
38.00179672241211,
36.86023712158203,
36.16142272949219,
36.084716796875,
36.07467269897461,
35.80640411376953,
35.482696533203125,
35.186065673828125,
35.13164520263672,
35.087005615234375,
35.087005615234375
],
"content": [
"Question : null .. . Answer : I want to make the Django REST Framework work with web sockets and came across Django Channels . Can I build Channels on top of the REST Framework I read here http : www.django-rest-framework.org topics mozilla-grant realtime-apis that it is WIP however I was wondering if there is an easy light way to tie the two together . Any advice is appreciated I m still rather new to Django .",
"Question : Why would you use one over the other for exposing an API for your Django app http : pypi.python.org pypi djangorestframework .. . .. . http : pypi.python.org pypi django-tastypie .. . Answer : As the author of django-rest-framework I ve got an obvious bias but my hopefully-fairly-objective opinion on this is something like : .. . .. . TastyPie .. . .. . As Torsten noted you re not going to go far wrong with something written by the same peeps as the awesome django-haystack http : haystacksearch.org . From what I ve seen on their mailing list Daniel Lindsey et al are super-helpful and Tastypie is stable comprehensive and well documented .. . Excels in giving you a sensible set of default behaviour and making building an API with that style incredibly easy . Django REST framework .. . .. . Gives you HTML browse-able self-describing APIs . EG see the tutorial API http : restframework.herokuapp.com . Being able to navigate and interact with the API directly in the browser is a big usability win . Tries to stay close to Django idioms throughout - built on top of Django s class based views etc.. . Whereas TastyPie came along before Django s CBVs existed so uses it s own class-based views implementation .. . I d like to think that the underlying architecture is pretty nicely built decoupled etc.. . In any case both are good . I would probably characterise Tastypie as giving you a sensible set of defaults out of the box and REST framework as being very nicely decoupled and flexible . If you re planning on investing a lot of time in the API I d def recommend browsing through the docs codebase of each and trying to get a feel for which suits you more . Obviously there s also the Why TastyPie https : github.com toastdriven django-tastypie section in it s README and the REST framework 2 announcement http : django-rest-framework.org topics rest-framework-2-announcement.html . See also Daniel Greenfeld s blog post on Choosing an API framework for Django http : pydanny.com choosing-an-api-framework-for-django.html from May 2012 Worth noting that this was still a few months before the big REST framework 2.0 release . Also a couple of threads on Reddit with folks asking this same question from Dec 2013 http : www.reddit.com r django-comments 1t6ovx tastypie vs django-rest-framework and July 2013 http : www.reddit.com r django-comments 1i9qt5 ask rdjango tastypie or django-rest-framework . Last updated Feb 2014 Comment : Btw We ve been using Django-rest-framework for a major project and its awesome I test-drove tastypie for a week early on and have no regrets about going with DRF . The documentation is unfortunately not up to par with the code and the framework itself but other than that pure bliss . Comment : Great stuff thanks Ben . And yup your point re . the documentation is definitely fair . Planning to address that Comment : my lightning talk from DjangoCon on django-rest-framework video link is dead Comment : @Mutant - Thanks the djangocon.eu 2011 site is now dead but I ve linked directly to the video on blip.tv . Comment : @TomChristie The link-to blip.tv is dead now Is this http : pyvideo.org video 1136 introducing-django-rest-framework the correct video",
"Question : I am new to Django-Rest Framework and I wanted to develop API calls . I am currently using Mysql database so if I have to make changes in the database do I have to write models in my project or Can I execute the raw data operation onto my database . Like : This is my urls.py file which contains a list of URLs and if any of the URL is hit it directly calls to view function present in views.py file and rest I do the particular operation in that function like connecting to MySQL database executing SQL queries and returning JSON response to the front end . Is this a good approach to making API calls If not Please guide me . Any advice or help will be appreciated . Comment : you need to make the changes to your models.py and run . manage.py makemigrations and . manage.py migrate and your database will-change according to the changes in you models . .. . Answer : Django REST Framework is designed to work with Django Framework . And Django ORM is an integral part of Django Framework . Granted that it is possible to use Django and DRF without using ORM but you will be basically fighting against the framework instead of using the framework to help you . So you have three basic approaches . 1 . If all you want is to develop RESTful APIs in python and pull data from an existing MySQL database or you don t have a database but you want something simple . You can use something framework agnostic like restless http : restless.readthedocs.io en latest or even hug https : github.com timothycrosley hug .. . .. . 2 . If you do not have any existing data and you want a full blown web framework you should consider using Django I make my living as a Django dev there is no shame in this and embrace the ORM . In this case DRF is one of the better REST frameworks for Django at the moment . 3 . If you have existing database and are somehow stuck with using Django there are some ways to use Django ORM with existing data you should look at Django docs on the topic https : docs.djangoproject.com en 1.9 howto legacy-databases",
"Question : null .. . Answer : We are building a Django Web Application using Django Rest Framework and AngularJS . We would like to add feature flipping feature flags to our framework . Our framework uses token authentication . We have a problem when we use feature flags based on percentage of users . Waffle appends the attribute waffles to the request object . But the attribute does not exist when processed by the waffle middleware . The request object we are sending is a rest framework.request.Request type . In the middleware we get a request of type django.core.handlers.wsgi.WSGIRequest .. . .. . My simple question is : Is Django-Waffle suited to work with Django Rest Framework DRF Comment : @e4c5 please elaborate why this question is too broad .",
"Question : I m building a RESTful API with Django and django-rest-framework : http : django-rest-framework.org .. . .. . As authentication mechanism we ve chosen Token Authentication and I have already implemented it following Django-Rest-Framework s documentation the question is should the application renew change the Token periodically and if yes how Should it be the mobile app that requires the token to be renewed or the web-app should do it autonomously What is the best practice Has anybody here experience with Django Rest Framework and could suggest a technical solution the last question has lower priority .. . Answer : I ve tried @odedfos answer but I had misleading error http : stackoverflow.com questions 16736710 wsgirequest-object-has-no-attribute-successful-authenticator noredirect 1 comment24104003 16736710 . Here is the same answer fixed and with proper imports . views.py .. . .. . authentication.py",
"Question : I m building a RESTful API with Django and django-rest-framework : http : django-rest-framework.org .. . .. . As authentication mechanism we ve chosen Token Authentication and I have already implemented it following Django-Rest-Framework s documentation the question is should the application renew change the Token periodically and if yes how Should it be the mobile app that requires the token to be renewed or the web-app should do it autonomously What is the best practice Has anybody here experience with Django Rest Framework and could suggest a technical solution the last question has lower priority .. . Answer : You can leverage http : getblimp.github.io django-rest-framework-jwt .. . .. . This library is able generate token that has an expiration date .. . .. . To understand the difference between DRF default token and the token provide by the DRF take a look at : .. . .. . How to make Django REST JWT Authentication scale with mulitple webservers http : stackoverflow.com questions 26126622 how-to-make-django-rest-jwt-authentication-scale-with-mulitple-webservers 30136310 30136310",
"Question : I m building a RESTful API with Django and django-rest-framework : http : django-rest-framework.org .. . .. . As authentication mechanism we ve chosen Token Authentication and I have already implemented it following Django-Rest-Framework s documentation the question is should the application renew change the Token periodically and if yes how Should it be the mobile app that requires the token to be renewed or the web-app should do it autonomously What is the best practice Has anybody here experience with Django Rest Framework and could suggest a technical solution the last question has lower priority .. . Answer : If you notice that a token is like a session cookie then you could stick to the default lifetime of session-cookies in Django : https : docs.djangoproject.com en 1.4 ref settings session-cookie-age . I don t know if Django Rest Framework handles that automatically but you can always write a short script which filters out the outdated ones and marks them as expired . Comment : Token Authentication doesn t use cookies",
"Question : I m building a RESTful API with Django and django-rest-framework : http : django-rest-framework.org .. . .. . As authentication mechanism we ve chosen Token Authentication and I have already implemented it following Django-Rest-Framework s documentation the question is should the application renew change the Token periodically and if yes how Should it be the mobile app that requires the token to be renewed or the web-app should do it autonomously What is the best practice Has anybody here experience with Django Rest Framework and could suggest a technical solution the last question has lower priority .. . Answer : It is good practice to have mobile clients periodically renew their authentication token . This of course is up to the server to enforce . The default TokenAuthentication class does not support this however you can extend it to achieve this functionality . For example : .. . .. . It is also required to override the default rest framework login view so that the token is refreshed whenever a login is done : .. . .. . And don t forget to modify the urls : Comment : thank you for this answer. . soon i ll try it out and let you know how it goes. . Comment : Wouldn t you want to create a new token in ObtainExpiringAuthToken if it s expired though rather than just update the timestamp for the old one Comment : Creating a new token makes sense . You could also regenerate the value of the existing tokens key and then you would not have to delete the old token .",
"Question : Why would you use one over the other for exposing an API for your Django app http : pypi.python.org pypi djangorestframework .. . .. . http : pypi.python.org pypi django-tastypie .. . Answer : Both are good choices . For filters tastypie is more powerful out-of-the-box . If you have a view that exposes a model you can do Django-style inequality filters : .. . .. . or OR queries : .. . .. . these are possible with djangorestframework but you have to write custom filters for each model . For tracebacks I ve been more impressed with django-rest-framework . Tastypie tries to email settings.ADMINS on exceptions when DEBUG False . When DEBUG True the default error message is serialised JSON http : django-tastypie.readthedocs.org en latest settings.html tastypie-full-debug which is harder to read . Comment : You don t need to write custom filters for this in Django REST Framework . You just need to use the provided DjangoFilterBackend as documented by REST framework here : django-rest-framework.org api-guide filtering api-guide http : www.django-rest-framework.org api-guide filtering api-guide",
"Question : I m building a RESTful API with Django and django-rest-framework : http : django-rest-framework.org .. . .. . As authentication mechanism we ve chosen Token Authentication and I have already implemented it following Django-Rest-Framework s documentation the question is should the application renew change the Token periodically and if yes how Should it be the mobile app that requires the token to be renewed or the web-app should do it autonomously What is the best practice Has anybody here experience with Django Rest Framework and could suggest a technical solution the last question has lower priority .. . Answer : If someone is interested by that solution but wants to have a token that is valid for a certain time then gets replaced by a new token here s the complete solution Django 1.6 : .. . .. . yourmodule views.py : .. . .. . yourmodule urls.py : .. . .. . your project urls.py in the urlpatterns array : .. . .. . yourmodule authentication.py : .. . .. . In your REST FRAMEWORK settings add ExpiringTokenAuthentication as an Authentification class instead of TokenAuthentication : Comment : I m getting the error ObtainExpiringAuthToken object has no attribute serializer class when I try to access the api endpoint . Not sure what I am missing .",
"Question : I need to start saying that none of the solutions provided in similar question seem to work for me . I ve got two models .. . .. . I am using Django REST Framework with addidtional GIS extension serializers to serialize these models : .. . .. . With default serializers I get JSON looking like this : .. . .. . And desired JSON would look like this : .. . .. . Where latlng is field from address which building can have only one . Using this http : www.django-rest-framework.org api-guide serializers dealing-with-nested-objects throws and error : .. . Answer : The simplest approach would be to add a latlng field to the Building serializer and implement a method to retrieve it : Comment : Thanks that works fine Although I ve got one more question . I am using rest framework gis GeoModelSerializer in Address to serialize Point as GeoJson . In this case I need to write it myself in return . Am I doing something wrong or GeoModelSerializer is just incapable of serializing fields I am getting Point object at 0x7f09332779a0 is not JSON serializable when trying to return plain latlng with GeoModelSerializer . Comment : Try using GeoFeatureModelSerializer instead . Comment : It throws class Meta has no attribute geo field which I don t really know how to interpret . Comment : Take a look at github.com djangonauts django-rest-framework-gis blob master https : github.com djangonauts django-rest-framework-gis blob master README.rst -- GeoFeatureModelSerializer requires you to define a geo field to be serialized as the geometry . Comment : Back again to is not JSON serializable error . I find rest framework gis documentation bit chaotic.. . Guess I will settle for the first solution . Thanks for all the tips though .",
"Question : I am newbie to Django and developing a REST API using Django Rest Framework DRF and GIS . Previously I was using an SQL query for transforming a geometry : .. . .. . .. . Here serializer class : .. . .. . I have also tried to do this way but cannot transform output .. . .. . How can I do this in Django Rest Framework and GIS Where can I get query sample or a comprehensive tutorial for DRF .. . Answer : You can provide a default SRID to your GeometryField - .. . .. . And Django will automatically handle the conversion . More details on the doc https : docs.djangoproject.com en dev ref contrib gis model-api srid and tutorial https : docs.djangoproject.com en dev ref contrib gis tutorial automatic-spatial-transformations . Where can i get queries sample or comprehensive tutorial for rest framework gis You can find all about geodjango on Django documentation https : docs.djangoproject.com en dev ref contrib gis . Django rest framework is noting but Django .",
"Question : I found that there should be package for Django s rest framework on fedora https : admin.fedoraproject.org pkgdb package python-django-rest-framework . But it doesn t seem to exist when I try to install it on a fedora-21 box : .. . .. . How do I best install Django restframework on a fedora-21 box I don t want to use pip . Comment : Pip is the standard way of installing Python packages not all packages are available in the repositories . Also that package only appears to be available in Fedora 22 . .. . Answer : sudo yum install python-django source : https : www.digitalocean.com community tutorials how-to-install-the-django-web-framework-on-centos-7 Comment : I was not asking how to install Django but Rest Framework a plugin to Django . It should be quite clear if you read the question subject or body .",
"Question : null .. . Answer : I have ArrayField in my Model : .. . .. . Then serializers.py for this model in Django Rest Framework .. . .. . When I manually try to input POST values for the model through DRF web interface it throws error for aci field : A valid number is required . I tried to enter list for aci variously but no success : .. . .. . 1 . 22.3 23.4 22.1 .. . 2 . 22.3 23.4 22.1 .. . 3 . 22.3 23.4 22.1 .. . .. . Added this line in serializers.py but still doesnt work : .. . .. . I can t understand why DRF doesn t accept it is it supposed just to pass it to Django itself Used : .. . .. . Django 1.8.13 .. . Django Rest Framework 3.4.0 .. . PostgreSQL 9.3.13 .. . .. . Any suggestions appreciated . Thank you . Comment : what is the error u r getting Comment : @Trying2Learn I get error : A valid number is required . I can insert manually in PostgreSQL which means everything is ok with database . DRF only accepts just one number float not array of floats . Comment : Please check if this is helpful . stackoverflow.com questions 34624272 http : stackoverflow.com questions 34624272 django-rest-framework-correct-way-to-serialize-listfields Comment : When I enter this array : 22.3 22.5 it throws back error like this : 22.3 22.5 A valid number required",
"Question : I m building a Django application with Django-Rest-Framework APIs . I have built an API endpoint as follows . I want to be able to POST data from my browser . I want to retrieve an object-model from my Database that has the matching primary as given in the URL . And I want to operate on that retrieved object based on the data posted by the browser . If I could just grab the posted data from with my ViewSet I would be done . But I don t know how to get to execute that viewset s update function when I do a POST . From my urls.py file : .. . .. . From my views.py file : .. . .. . I m using the Advanced Rest Client ARC tool in my Chrome browser . When I point the ARC tool to http : 127.0.0.1 : 3001 api replyComment 2 using the POST method I get the error : .. . .. . See the screenshot here https : www.dropbox.com s 884z9o0ec9sp75j Screenshot 202014-03-09 2023.56.38.png . It seems like I m doing something wrong here with my POST . Can someone please advise how to do this properly How can I get around my CSRF issue I m a newbie to Django Rest Frameworks . So if you can provide clear details it would be most appreciated . Please let me know what changes I need to make to ensure my POST works as I intend it to I need a bit more help than simply referring me to the manual . I tried that but still couldn t make it work .. . Answer : CSRF Tokens are required in Django to protect against CSRF Cross Site Request Forgery . For methods that writes something POST PUT DELETE etc you need to include a CSRF token with your request so that Django knows the request came from your own site . You can read more about in Django-rest-framework documentation http : www.django-rest-framework.org topics ajax-csrf-cors.html csrf-protection . And as it says in the doc you can find how to include the CSRF token in the HTTP Header in Django documentation https : docs.djangoproject.com en dev ref contrib csrf ajax . Comment : From the docs its not clear to me what changes I need to make to my backend Django code . Comment : You don t have to modify anything in the backend . In the front end while calling POST method you have to include the csrf token . See the doc on how to do it .",
"Question : null .. . Answer : In my Django project I am trying to do two APPs : .. . .. . 1 REST APIs based APP using jwt token authentication support cross-domain request disable CSRF .. . .. . 2 original template based APP using session authentication LDAP disable cross-domain requests enable CSRF . As for different authentication I am planning to use two decorators : login-required and customized decorator . As for cross-domain there is one solution : django-cors-headers https : github.com ottoyiu django-cors-headers from here http : www.django-rest-framework.org topics ajax-csrf-cors . But how to make two apps to use two middleware .. . .. . As for CSRF how to disable CSRF for one app and enable it for the other The solution Django Rest Framework remove csrf http : stackoverflow.com questions 30871033 django-rest-framework-remove-csrf is the best Any comments welcomed . Thanks",
"Question : I am newbie to Django and developing a REST API using Django Rest Framework DRF and GIS . Previously I was using an SQL query for transforming a geometry : .. . .. . .. . Here serializer class : .. . .. . I have also tried to do this way but cannot transform output .. . .. . How can I do this in Django Rest Framework and GIS Where can I get query sample or a comprehensive tutorial for DRF .. . Answer : Solved : .. . .. . Add the srid argument to transform function . I was considering as .. . .. . transform srid .. . .. . first argument as srid but should be like this .. . .. . transform srid 3857",
"Question : null .. . Answer : I m developing a mobile app and I need to signup login logout to my Django backend that right now uses social.apps.django app.default and django.contrib.auth . At first I was thinking on csrf exempt all my auth related urls so that I can do a POST from the mobile app to login etc but I believe this is far from being the right best approach . I was looking into the DRF Authentication docs and saw some 3rd-party packages that may help with it django-oauth-toolkit djangorestframework-oauth django-rest-auth and Django-rest-framework-social-oauth2 . Any recommendation Now my url.py looks like it : .. . .. . My models are exposed thru Django Rest Framework but I m not sure how to implement the login part for the API . Comment : Possible duplicate of Appropriate choice of authentication class for python REST API used by web app http : stackoverflow.com questions 27578726 appropriate-choice-of-authentication-class-for-python-rest-api-used-by-web-app",
"Question : I have model that looks like this : .. . .. . I managed to get flat json representation of all categories with serializer : .. . .. . Now what I want to do is for subcategories list to have inline json representation of subcategories instead of their ids . How would I do that with django-rest-framework I tried to find it in documentation but it seems incomplete . .. . Answer : With Django REST framework 3.3.1 I needed the following code to get subcategories added to categories : .. . .. . models.py .. . .. . serializers.py",
"Question : I have model that looks like this : .. . .. . I managed to get flat json representation of all categories with serializer : .. . .. . Now what I want to do is for subcategories list to have inline json representation of subcategories instead of their ids . How would I do that with django-rest-framework I tried to find it in documentation but it seems incomplete . .. . Answer : Another option that works with Django REST Framework 3.3.2 :"
]
} | [
"yes-answer-long",
"yes-answer-short"
] | toolkit | UNK_RELATION |
fuelphp@frameworks@113 | fuelphp -- fuelphp is a simple flexible community driven php-5 .3 web framework based on the best ideas of other @placeholder with a fresh start . | {
"confidence": [
51.331748962402344,
50.92795944213867,
49.79097366333008,
47.77997589111328,
45.70439147949219,
45.59128189086914,
45.38811492919922,
45.190711975097656,
45.190711975097656,
44.69829177856445,
44.15987014770508,
43.50868225097656,
43.316253662109375,
43.14298629760742,
43.14298629760742,
42.825714111328125,
42.726707458496094,
42.0927848815918,
41.1168212890625,
41.1168212890625,
40.95116424560547,
40.903709411621094,
40.19232940673828,
40.19232940673828,
40.19232940673828,
39.83760070800781,
39.826629638671875,
39.826629638671875,
39.826629638671875,
39.826629638671875,
39.826629638671875,
39.826629638671875,
39.826629638671875,
39.826629638671875,
39.75920104980469,
39.516845703125,
39.516845703125,
39.516845703125,
39.516845703125,
38.8335075378418,
38.61299514770508,
38.455413818359375,
38.455413818359375,
38.2492561340332,
37.80046463012695,
37.80046463012695,
36.20048904418945,
36.20048904418945,
36.20048904418945,
36.20048904418945,
36.146121978759766,
35.72521209716797,
35.72521209716797,
35.35951614379883,
35.35951614379883,
35.35951614379883,
35.35951614379883,
35.35951614379883,
35.35951614379883,
35.35951614379883,
35.35951614379883,
35.35951614379883,
35.35951614379883,
35.35951614379883,
35.13905715942383,
35.13905715942383,
35.13905715942383,
34.56662368774414,
34.267662048339844,
34.233951568603516,
33.866905212402344,
33.775428771972656,
33.333351135253906,
33.333351135253906,
33.333351135253906,
33.333351135253906,
33.0827522277832,
32.99124526977539,
32.62554931640625,
32.32186508178711,
31.733375549316406,
31.733375549316406,
31.733375549316406,
31.733375549316406,
31.733375549316406,
31.733375549316406,
31.733375549316406,
31.733375549316406,
31.733375549316406,
31.733375549316406,
31.4296932220459,
30.67194366455078,
30.599382400512695,
30.348785400390625,
30.348785400390625,
30.134994506835938,
29.563404083251953,
29.563404083251953,
29.563404083251953,
29.563404083251953
],
"content": [
"I have a project in php fuelphp framework .",
"FuelPHP : 1.7.3 PHP : 5.6.13",
"I m using FuelPHP to create a simple web app with a photo-gallery .",
"@Uru Default FuelPHP .htaccess",
"I am using fuelphp version 1.5 and PHP version 5.6 .",
"I m using FuelPHP for my website .",
"I m using FuelPHP 1.8",
"Nonetheless there s no detailed document on official web of FuelPHP .",
"I m new to FuelPHP and web development in general .",
"I m creating simple login portal using fuelphp framework .",
"I m new to PHP frameworks and to start my venture I went to try FuelPHP .",
"I am trying to enable fuelphp profiler .",
"FuelPHP is a PHP framework it runs on the server and has nothing to do with JavaScript other than serving it to the browser .",
"fuel is the directory of this freshly installed fuelPHP on my localhost .",
"Never use either exit or die in FuelPHP code .",
"I ve been using FuelPHP to develop a new web application .",
"Is there no seeder class in FuelPHP",
"This project is using the FuelPHP framework but the question is around organisation of files .",
"No help came not even from the Forum of FuelPHP .",
"In fuelPHP I create functions without static on it in the MCV .",
"I am new in oracle and fuelphp simple question how to set connection fuelphp framework with oracle DB documentation only for mysql and postgresql : .. . .. . how to connect with oracle",
"You re welcome enjoy using FuelPHP :",
"Fuelphp profiler really helps a lot any clue how to fix this on windows",
"Using Fuelphp 1.7 the URLs only seem to work in upper case .",
"I believe the FuelPHP coding standards dictate that it should be Snake Case with capitals .",
"check permissions and modify something like this : github.com rajibmp FuelPHP-Nginx blob master nginx https : github.com rajibmp FuelPHP-Nginx blob master nginx sites-available FuelPHP",
"FuelPHP ORM needs Primary key to get ALL results .",
"Thanks to Harro over at the FuelPHP Forums for answering this one : .. . .. . Are you using MySQL",
"FuelPHP Observer UpdatedAt http : fuelphp.com docs packages orm observers included.html os updated",
"Also it FuelPHP should be able to get that info from the model isn t it",
"Using fuelphp is there a way to modify an existing ORM Model to convert it to ORM Model Temporal",
"I am trying to learn fuelPHP and I came form a CI background .",
"You are making it very complicated for yourself by installing FuelPHP like this .",
"For more information on the send method check out the FuelPHP documentation for the response class .",
"what is the correct way to create login portal in fuelphp framework .",
"You don t understand how HMVC in FuelPHP works .",
"Most of the fuelphp code outputs angularjs views .",
"I expect for Rails like migration function on FuelPHP .",
"But the thing is there s no detailed document for FuelPHP migration .",
"How can I get the desired behavior in FuelPHP despite that constraint",
"I start using Fuelphp v1.7.3 but if I want to get all data from my mysql table nothing happens .",
"why not you can handle ajax in fuelphp like this .",
"I am a little confused using fuelPHP 1.7 .",
"I then ran .. . .. . php composer.phar self-update .. . .. . and .. . .. . php composer.phar update .. . .. . and installed FuelPHP .",
"I ran in to a problem what i never experienced with fuelphp .",
"The arguments from the article Static considered harmful doesn t really apply to FuelPHP .",
"In fuelphp project I have a normal backend for users who are registered .",
"I have maintained backend login as default fuelphp login admin.php .",
"I have xampp installed and want to get FuelPHP working .",
"I m trying to figure out how to deal with multiple uploads in FuelPHP .",
"Please tell me if I m wrong I like FUELPHP and I m thinking about choosing it as PHP framework but I want to be clear about this .",
"@Tachi as you can see the exception is a PhpErrorException so this is most probably NOT FuelPHP related .",
"And just to be complete : FuelPHP doesn t require tables to have a primary-key the ORM does .",
"When i use FuelPHP ORM to get ALL results using find all it s return only one record .",
"There is plenty of documentation about relations in the main fuelphp docs http : fuelphp.com docs packages orm relations intro.html .",
"I want to order by LOWER title rather then just title however I am having issues making this work in FuelPHP .",
"I am using ORM in FuelPHP to fetch some data on a table view I created in my data base .",
"I tried changing options in default fuelphp tables for user-roles user role permissions and so on but to no avail .",
"Is there anyway to add two of the same type of observer to a Model in FuelPHP http : fuelphp.com ORM .",
"I am new developing fuelPHP and I have 4 questions about it : .. . .. . 1 .",
"I did this in FuelPHP 1.4 by adding an anonymous function to the uri filter in the security settings in fuel app-config config.php :",
"I am new to FuelPHP so if this method is bad practice let me know .",
"Using Fuelphp I d like to be able to use a URL system similar to here on StackOverflow to get to specific pages .",
"I am building an app in fuelphp and I d like to route to a page of fully static content .",
"How can I seed database in FuelPHP like Laravel and Ruby on Rails",
"FuelPHP does not currently provide built-in a way to seed databases .",
"FuelPHP is lacking good examples here and I am stuck now .",
"I am installing FuelPHP on Windows 10 but getting Fatal error while running php composer.phar install command and not able to install it .",
"fuelphp framework has-many controller model views that s why i asking this question .",
"Anyway to answer your question here it is : .. . .. . OR .. . .. . dont forget on your fuel app-config routes.php please comment .. . .. . If you got bored with that tutorial try this .. . .. . http : ucf.github.io fuelphp-crash-course .. . .. . +1 on your question Enjoy Fuelphp",
"As I understand the default .htaccess as supplied in the FuelPHP distribution works fine on Heroku .",
"I think FuelPHP doesn t support this feature but I would like to know the best way to do it... .",
"Controller Base extends Controller Template which uses template.php in the views folder to template out all of the pages in fuelphp for you .",
"that is really bizarre - what happens if you grab that sql statement and run it directly on the sql-server not through fuelphp",
"I am getting the same error so that clears up whether it s FuelPHP or not .",
"With learning fuelPHP I am introduced on calling classes using scope resolution or : : in sense .",
"If FuelPHP wraps the column names in backticks in the generated SQL then the expression won t work.. . the generated SQL will be WHERE lower name LIKE .",
"i am using fuelphp version 1.5 on core vendor phpquickprofiler display.php on function loadCSS .. . .. . from .. . .. . to .. . .. . Hope this will help us all .",
"In Yii in example you can build a model using CActiveRecord if linked to a table or CFormModel to build Contact forms in example how this is done with fuelPHP model crud",
"How can execute this query using orm in fuelPHP : .. . .. . I dont know how to implement this part and c 1 or d 2 or e 3 .. . .. . Just stuck in : .. . .. . Is there any way to accomplish this",
"I installed parser package for fuelphp to have mthaml https : github.com arnaud-lb MtHaml support in templates .",
"So I created a tamplate and I don t understand how can I run fuelphp helper functions in the mthaml templates .",
"I have routes and request handling mechanism written in fuelphp to calculate the template in server-side .",
"Sorry but syntax-error is not the category that needs a fuelphp flag and also I don t believe that this question belongs here .",
"Here is my full method for sending a json encoded string back to the user using the FuelPHP ORM :",
"i also posted this question on the fuelphp forums http : fuelphp.com forums discussion comment 20860 Comment 20860",
"http : fuelphp.com docs general migrations.html .. . .. . But some says FuelPHP has migration function like Rails .",
"I got error message when install fuelphp .. . .. . Also i my composer is updated .",
"Here is my nginx virtual host : .. . .. . I m not sure if I haven t setup FuelPHP correctly or it s Nginx .",
"For clarification this is on an Ubuntu 16.04 server running Nginx 1.10.0 and php7.0-fpm trying to setup for a Fuelphp project .",
"Oh for what it s worth I m using the current stable version of FuelPHP 1.7.2",
"I have looked everywhere I found that FUELPHP not handle Ajax requests native and easily as does RubyOnRails for example .",
"As the TS said on the forum he downloaded something from Bitbucket and FuelPHP isn t on bitbucket no answer can be given unless we have more details .",
"I am using FuelPHP and MySQL and would like to use the ORM to query with a case insensitive like query against a column with a case sensitive collation .",
"The workaround is to use the Custom SQL query feature available in FuelPHP to bypass the syntax limitations and get a SQL query-string passed to the database .",
"Using this page from ytsejam http : stackoverflow.com users 1388866 ytsejamas as a guide https : github.com rajibmp FuelPHP-Nginx blob master nginx sites-available FuelPHP .. . .. . I changed a few things to suit my situation : .. . .. . Set the server name to my server .. . .. . Set the root folder to the public folder of my fuelphp project .. . .. . I got rid of fastcgi param SCRIPT NAME script and fastcgi param PATH INFO path info as they gave me errors complaining about undeclared variables .",
"From the FuelPHP forum thread http : fuelphp.com forums discussion comment 15462 Harro answered : .. . .. . You can not have a column which is at the same time FK and PK .",
"Trying to set conditions for has-many orm on fuelphp but this is not working I m just having all the related invitations back when I try to get only the ongoing ones here is how the has-many look like any suggestions",
"You can also make use of it in this manner or take a look at this link for more light .. . Query builder Where - Classes FuelPHP documentation http : fuelphp.com docs classes database qb where.html",
"On the FuelPHP documentation located here http : fuelphp.com docs general modules.html it states : .. . .. . When you use modules in routed mode .. . .. . .. . This implies there s a non-routed mode for modules ."
]
} | {
"confidence": [
58.72998809814453,
56.42787551879883,
55.25633239746094,
54.37793731689453,
53.67858123779297,
53.10187530517578,
51.47832107543945,
50.683128356933594,
50.006080627441406,
49.95556640625,
49.93962097167969,
49.17278289794922,
47.99336242675781,
47.68009948730469,
47.636932373046875,
46.5325813293457,
46.363616943359375,
45.96893310546875,
45.85304260253906,
45.70893859863281
],
"content": [
"Question : I have looked everywhere I found that FUELPHP not handle Ajax requests native and easily as does RubyOnRails for example . There must be done manually through jquery unless I m missing something I see is this : you have to use preventDefault for the submit event of the form to create a post product or whatever and use the function post to send the relevant parameters which I think is ridiculous for a framework that claims to be based on the best ideas from other frameworks . Please tell me if I m wrong I like FUELPHP and I m thinking about choosing it as PHP framework but I want to be clear about this . Comment : Some do not want to prevent default handling of events and since that is written into JavaScript the developers at jQuery decided not to re-invent the wheel so to speak . How do you think it should work Comment : You might be getting a bit confused here . FuelPHP is a PHP framework it runs on the server and has nothing to do with JavaScript other than serving it to the browser . I don t know of any framework in the PHP world that mimics RoR s ajaxy form handling . .. . Answer : why not you can handle ajax in fuelphp like this . .01 . create ajax request in your view or public assets create javascript file .. . .. . .02 . after that you can handle post data in classes controller create auth.php and login method like this .. . .. . you can handle data like this . i think you got something . and this is helpful .",
"Question : I am trying to enable fuelphp profiler . According to their documents here http : fuelphp.com docs general profiling.html I just have to .. . .. . However it is not working on Windows any browser but when I tried it on Mac its working I used the same code config same version of PHP and fuelphp etc . I am using fuelphp version 1.5 and PHP version 5.6 . Fuelphp profiler really helps a lot any clue how to fix this on windows .. . Answer : finally I found a solution to this problem i am using fuelphp version 1.5 on core vendor phpquickprofiler display.php on function loadCSS .. . .. . from .. . .. . to .. . .. . Hope this will help us all . You may find the solution wierd I find it wierd too I just got a hint saw some logs about sheet.innerHTML on the console of firebug . I tried double quotes etc but this one worked .",
"Question : I am new in oracle and fuelphp simple question how to set connection fuelphp framework with oracle DB documentation only for mysql and postgresql : .. . .. . how to connect with oracle thank you .. . Answer : Working from the PostgreSQL PDO example you posted I would try this : .. . .. . Just be sure that you ve correctly installed configured http : php.net manual en oci8.requirements.php the PHP OCI drivers .",
"Question : I am trying to learn fuelPHP and I came form a CI background . I am using this tutorial so that I can familiarize myself on this . http : net.tutsplus.com tutorials php getting-started-with-the-fuel-php-framework .. . .. . My problem is in step 2 . When I access my simple controller .. . .. . I get a 404 error . fuel is the directory of this freshly installed fuelPHP on my localhost . When I set this to be my default route the controller works . Did something change in the new version that prompted this Here is my .htaccess on the public folder . Thanks . Comment : Have you got .htaccess set up If so can you post the code Comment : @BenSwinburne This is a fresh install . On fuel there s no .htaccess fuel fuel has .htaccess and it only contains deny all in it . But really the default controller .. . welcome.php was able to be access without any problems here . Comment : There should be one in public as part of the default install but depending on your apache php configuration you may need to tweak it . The reason the welcome controller works is because the route loads the correct page . It s the .htaccess which send the hello bit off to index.php Comment : What about http : localhost fuel public index.php hello index specifying the action name too . Comment : @BenSwinburne I will add the .htaccess on the public folder . What should I add here .. . Answer : You are making it very complicated for yourself by installing FuelPHP like this . It has been designed in such a way that the public folder is your webservers document root which means all fuel stuff is outside your document root and the .htaccess is directly inside your document root . By not only installing it entirely inside your document root but also in a subfolder of that document root you need to modify your rewrite rules . Start by adding .. . .. . to the one in public and see if that helps . Also this .htaccess is made for standard apache type installations . If you run anything else you might need a different .htaccess . If you use fcgi for example get the .htaccess from the 1.4 develop repo it s more fault tolerant towards your webserver type . Final remark : you should not use localhost as hostname . It s an illegal name in a lot of RFC s one of them being the one that documents the use of cookies . You ll have all kinds of session issues with some browser versions if you use localhost . Instead setup virtual-hosts a better solution then subfolders anyway and use a hostname like mymachine.local .",
"Question : I m new to FuelPHP and web development in general . I m trying to redirect a user to a different controller but for some reason I can t get the page to display . The homepage displays fine and if I change the default homepage to the Blog page it displays fine . Here is the link on the homepage : php echo Html : : anchor blog BLOG .. . .. . Then I have the controller it points too : .. . .. . When I click the link it takes me to mywebsite.com blog but it says Access denied . Here is my nginx virtual host : .. . .. . I m not sure if I haven t setup FuelPHP correctly or it s Nginx . Any help would be much appreciated thank you . Comment : you have deny all to your php files . Comment : Removing that didn t change anything Comment : check permissions and modify something like this : github.com rajibmp FuelPHP-Nginx blob master nginx https : github.com rajibmp FuelPHP-Nginx blob master nginx sites-available FuelPHP Comment : No luck that just gives me a 502 Bad Gateway error . Tried to fix that too but couldn t manage Comment : 502 gives me that error if I use wrong fastcgi pass 127.0.0.1 : 9000 can you use your unix-socket .. . Answer : I managed to get it working . I will post the answer in case anyone else comes along this problem . For clarification this is on an Ubuntu 16.04 server running Nginx 1.10.0 and php7.0-fpm trying to setup for a Fuelphp project . Using this page from ytsejam http : stackoverflow.com users 1388866 ytsejamas as a guide https : github.com rajibmp FuelPHP-Nginx blob master nginx sites-available FuelPHP .. . .. . I changed a few things to suit my situation : .. . .. . Set the server name to my server .. . .. . Set the root folder to the public folder of my fuelphp project .. . .. . I got rid of fastcgi param SCRIPT NAME script and fastcgi param PATH INFO path info as they gave me errors complaining about undeclared variables . the access and error-log files are in var www fuelphp nginxlogs for me .. . .. . set fastcgi pass unix : run php php7.0-fpm.sock .. . .. . listen 80 not sure why it says to set it to port 57 .. . .. . Then I followed the tips given here about further setup for php7.0-fpm : How to find my php-fpm.sock http : stackoverflow.com questions 17570658 how-to-find-my-php-fpm-sock .. . .. . I think that was everything . Thank you for your help ytsejam http : stackoverflow.com users 1388866 ytsejamas",
"Question : Using Fuelphp 1.7 the URLs only seem to work in upper case . For example the following controller only works on the following url .. . .. . http : www.example.com Index test .. . .. . and doesn t work on the following url which I would expect would work .. . .. . http : www.example.com index test .. . .. . Here is the controller code : .. . .. . I tried setting case sensitive to false .. . .. . It looks like the index is being clipped somewhere in a redirect . Other controller names work fine in lower case . See the below from the SERVER superglobal . Routing works based first on PATH INFO Comment : What does your .htaccess look like Comment : @Uru Default FuelPHP .htaccess .. . Answer : Change .. . .. . into .. . .. . note the capitalisation . Comment : I believe the FuelPHP coding standards dictate that it should be Snake Case with capitals . i.e . Controller Index . Also other controllers appeared to be fine with this capitalisation .",
"Question : I have this simple method in one of my objects : .. . .. . But I always get this warning and can t proceed futher : .. . .. . Fuel Core PhpErrorException Warning : Creating default object from empty value .. . .. . From this line : .. . .. . How can I fix this warning p.s . I was following this tutorial http : code.tutsplus.com tutorials getting-started-with-the-fuel-php-framework--net-21334 Comment : stackoverflow.com questions 8900701 http : stackoverflow.com questions 8900701 creating-default-object-from-empty-value-in-php Comment : As @Alex pointed out it is because this- response contains a null value . this- response will only exist if something has created it . What is your controller extending Is there a before method that sets up this- response Comment : My point is : there is the same question with chosen answer . That s the only thing I wanted to say . Comment : As Uru said there could be a parent controller that sets up this- response in before or it should . So this could be a different question though I also presume there s very little research effort in this question . @Tachi as you can see the exception is a PhpErrorException so this is most probably NOT FuelPHP related . .. . Answer : the tutorial you are using is really old a lot of user also asked on that part . Anyway to answer your question here it is : .. . .. . OR .. . .. . dont forget on your fuel app-config routes.php please comment .. . .. . If you got bored with that tutorial try this .. . .. . http : ucf.github.io fuelphp-crash-course .. . .. . +1 on your question Enjoy Fuelphp",
"Question : I m new to PHP frameworks and to start my venture I went to try FuelPHP . After a few days of testing around I understood how things work . Controllers control the actions views control the content and the template controls the layout . But what about models What are they for Comment : Wiki http : en.wikipedia.org wiki Model E2 80 93view E2 80 93controller s pretty clear : The model manages the behavior and data of the application domain responds to requests for information about its state usually from the view and responds to instructions to change state usually from the controller . In event-driven systems the model notifies observers usually views when the information changes so that they can react . .. . Answer : models controle your data and have a direct contact with your db have a read here http : en.wikipedia.org wiki Model E2 80 93view E2 80 93controller",
"Question : How can execute this query using orm in fuelPHP : .. . .. . I dont know how to implement this part and c 1 or d 2 or e 3 .. . .. . Just stuck in : .. . .. . Is there any way to accomplish this Thank in advanced .. . Answer : You can also make use of it in this manner or take a look at this link for more light .. . Query builder Where - Classes FuelPHP documentation http : fuelphp.com docs classes database qb where.html",
"Question : I m creating simple login portal using fuelphp framework . what is the correct way to create login portal in fuelphp framework . what is the correct controller following dir .. . .. . enter image description here http : i.stack.imgur.com zNzsN.png .. . .. . and also what is the model and view for can anyone explain to me I m confusing at this point . currently I m creating .. . .. . controller : fuel app classes controller .. . .. . model : fuel app classes model .. . .. . view : fuel app views .. . .. . is this correct fuelphp framework has-many controller model views that s why i asking this question . .. . Answer : It sounds like you need to read up on the basics of MVC of which there is plenty of information out there on google . The basics are that a URL routes to a controller the controller can then use a model to load or manipulate data which is then passed to the view to be displayed to the user . The file paths you listed are correct you want to be working within the fuel app folder . The FuelPHP MVC documentation http : fuelphp.com docs general mvc.html has a basic outline of each part along with links to more information and how to utilise that using the framework . Comment : thank your answer .",
"Question : I m creating simple login portal using fuelphp framework . what is the correct way to create login portal in fuelphp framework . what is the correct controller following dir .. . .. . enter image description here http : i.stack.imgur.com zNzsN.png .. . .. . and also what is the model and view for can anyone explain to me I m confusing at this point . currently I m creating .. . .. . controller : fuel app classes controller .. . .. . model : fuel app classes model .. . .. . view : fuel app views .. . .. . is this correct fuelphp framework has-many controller model views that s why i asking this question . .. . Answer : On basics if you are coding use the controller and model under the app classes folder . Also use the views under the app folder .",
"Question : I expect for Rails like migration function on FuelPHP . Nonetheless there s no detailed document on official web of FuelPHP . http : fuelphp.com docs general migrations.html .. . .. . But some says FuelPHP has migration function like Rails . Where can I get the detailed document Comment : As far as I can tell both migrations work the same . Judging by the both DOCs Comment : But the thing is there s no detailed document for FuelPHP migration . Where can I get it .. . Answer : Is this what you re looking for http : www.fuelphp.com api classes Fuel.Core.Migrate.html Comment : Oops That s what I am looking for . No matter how much times I checked I couldn t find it . Thanks Comment : But if possible I could get more detailed document examples usages.. . Do you have any idea",
"Question : null .. . Answer : I have routes and request handling mechanism written in fuelphp to calculate the template in server-side . Computing templates on server-side is slower in my understanding and I would like to covert all routes to angular-routing . Most of the fuelphp code outputs angularjs views . Is there a direct or quicker way to convert all php routes to angular routes .",
"Question : I am installing FuelPHP on Windows 10 but getting Fatal error while running php composer.phar install command and not able to install it . The error I am getting is given below : Comment : As extra information I have already tried this thing with newest version of composer.phar file : Comment : No help came not even from the Forum of FuelPHP . Comment : You never responded to the questions you were asked about what you installed how you installed it and where you got it from . Comment : I had more than 1 composer files in my system so solved it by installing the other one . Comment : Ok thanks for the feedback . .. . Answer : this error might come when you have more than 1 composer.phar file in your project folder . Have a thorough look in your folder and update and install all composer . Specially src fuel app : p",
"Question : I am using FuelPHP s rest controller . I am trying to break the flow and display my response after encountering an error . Here is my basic flow needed : .. . .. . 1 . When any of the methods are called I run a validate function which validates parameters and other business logic . 2 . If the validate function determines something is off I want to stop the entire script and display the errors I have complied so far . I have tried the following in my validate function but it simply exits the validate function.. . then continues to the initial method being requested . How do I stop the script immediately and display the contents of this response .. . Answer : I am new to FuelPHP so if this method is bad practice let me know . If you want your REST controller to break the flow at some other point than when the requested method returns something use this code . You can change the this- response array to return whatever you want . The main part of the script is the this- response- send method and exit method . For more information on the send method check out the FuelPHP documentation for the response class . http : fuelphp.com docs classes response.html Comment : Yes that is equally bad practice . The exit will cause the rest of the request not to be executed . Never use either exit or die in FuelPHP code .",
"Question : FuelPHP appears to require and id column throws errors if an id column doesn t exist .. . .. . I this case I would like to use master id which is matching the field name with an external datasource and would like to name the field that way instead . .. . Answer : Setting the primary-key manually solves the issue : Comment : Just to note this is covered in the documentation fuelphp.com docs packages orm creating models.html primary-key http : fuelphp.com docs packages orm creating models.html primary-key Comment : @Uru Well caught thank you . Comment : And just to be complete : FuelPHP doesn t require tables to have a primary-key the ORM does .",
"Question : I m new to PHP frameworks and to start my venture I went to try FuelPHP . After a few days of testing around I understood how things work . Controllers control the actions views control the content and the template controls the layout . But what about models What are they for Comment : Wiki http : en.wikipedia.org wiki Model E2 80 93view E2 80 93controller s pretty clear : The model manages the behavior and data of the application domain responds to requests for information about its state usually from the view and responds to instructions to change state usually from the controller . In event-driven systems the model notifies observers usually views when the information changes so that they can react . .. . Answer : You might have say .. . .. . Contact With ID Name Detail and ContactType properties . The idea is to keep it minimal it s basically something to cart around all the useful properties of an entity . This is the current definition of MVC . Nothing about the backend in it . That would be some seperate library dll that only knows about model and how the underlying data is stored in the DB .",
"Question : When i use FuelPHP ORM to get ALL results using find all it s return only one record . This is my db . table name ws config . no primary-key .. . .. . This is my model . This is my controller .. . .. . This is my view file . The result is just .. . .. . site name My Site .. . .. . How to get ALL results from this database-table or How to get multiple results upon where ondition .. . Answer : FuelPHP ORM needs Primary key to get ALL results . No PK you can get only one result . erm.. . : Comment : @trippino I would say it does answer the question and the answer is add a PK to the table . Comment : The reason for this is that the hydration process used the primary-key as an index value . When no PK is available all records will have the same index value null and all results will overwrite each other . So the one result you get is that last record in your query resultset .",
"Question : I m trying to make a relationship in the FuelPHP but I m getting the following error : .. . .. . Fuel Core Database Exception 23000 : SQLSTATE 23000 : Integrity constraint violation : 1452 Cannot add or update a child row : a foreign key constraint fails filmestorrentz . filmes tags CONSTRAINT filmes tags filme id FOREIGN KEY filme id REFERENCES filmes id ON DELETE NO ACTION ON UPDATE CASCADE with query : INSERT INTO filmes tags filme id tag id VALUES 1 .. . .. . I don t know why but FuelPHP is generating a query with filme id in blank . Models : Model Filme http : pastebin.com rswWW8uZ Model Tag http : pastebin.com 7mqr9t7N .. . .. . In the Model Filme model I have the function that saves the data from the form : .. . .. . What am I doing wrong I m using FuelPHP 1.8 .. . Answer : The problem was that in my view there is a hidden-field in which kept the value of the id to edit the registry just gave a unset data id . solved",
"Question : The error is triggered from : C : wamp www bayadko fuel core classes view.php @ line 440 .. . .. . This is my index.php .. . .. . This is my blog.php .. . .. . What could be causing this error Comment : This is the site I ve been working in code.tutsplus.com tutorials http : code.tutsplus.com tutorials build-an-admin-panel-with-the-fuel-php-framework--net-23186 .. . Answer : Controller Base extends Controller Template which uses template.php in the views folder to template out all of the pages in fuelphp for you . This is really helpful as is lets you abstract important things like html or css that s included on every page . All you have to do to resolve this is make a new file in the views folder called template.php . Here is some starter code to get you started on the template.php file . Comment : thanks your the best bro"
]
} | [
"yes-answer-long",
"yes-answer-short"
] | frameworks | UNK_RELATION |
phoria.js@graphics@62 | phoria.js -- phoria.js is a javascript library for simple 3d @placeholder on a canvas 2d renderer . | {
"confidence": [],
"content": []
} | {
"confidence": [],
"content": []
} | [
"yes-answer-long",
"yes-answer-short"
] | graphics | UNK_RELATION |
actionbarsherlock@android@172 | actionbarsherlock -- actionbarsherlock is an extension of the compatibility library designed to facilitate the use of the action bar design pattern across all versions of @placeholder with a single api . | {
"confidence": [
51.25499725341797,
47.64509582519531,
47.552093505859375,
45.32238006591797,
44.322303771972656,
44.25384521484375,
44.25384521484375,
43.180458068847656,
42.95892333984375,
42.898101806640625,
42.56848907470703,
42.48503112792969,
42.27203369140625,
42.17940902709961,
42.06088638305664,
41.73974609375,
41.72188949584961,
41.0360107421875,
40.84033966064453,
40.63932800292969,
40.268959045410156,
40.268959045410156,
40.2567024230957,
40.185546875,
40.1366081237793,
40.08736801147461,
39.89094924926758,
39.74132537841797,
39.739925384521484,
39.651954650878906,
39.0896110534668,
39.05864334106445,
39.01508331298828,
38.93205261230469,
38.920249938964844,
38.56938171386719,
38.53520965576172,
38.318721771240234,
38.22034454345703,
38.11567687988281,
38.10734176635742,
38.001556396484375,
37.940704345703125,
37.8427734375,
37.63580322265625,
37.491416931152344,
37.43669509887695,
37.1240234375,
37.072166442871094,
37.037715911865234,
37.01801681518555,
36.962982177734375,
36.962982177734375,
36.962982177734375,
36.962982177734375,
36.962982177734375,
36.959693908691406,
36.959693908691406,
36.9235954284668,
36.7817268371582,
36.7817268371582,
36.77015686035156,
36.56938171386719,
36.56938171386719,
36.43440246582031,
36.2911262512207,
36.063575744628906,
36.063575744628906,
36.008567810058594,
35.95616912841797,
35.924522399902344,
35.852195739746094,
35.66691589355469,
35.659095764160156,
35.63142395019531,
35.63142395019531,
35.425987243652344,
35.425987243652344,
35.35918426513672,
35.30421447753906,
35.147727966308594,
35.147727966308594,
35.147727966308594,
35.147727966308594,
35.147727966308594,
34.99425506591797,
34.98561477661133,
34.98561477661133,
34.98561477661133,
34.98561477661133,
34.77561569213867,
34.75965881347656,
34.74407196044922,
34.717529296875,
34.717529296875,
34.63887023925781,
34.58895492553711,
34.58895492553711
],
"content": [
"ActionBarSherlock builds on the compatibility library and gives you like the action bar compatibility sample an Action Bar on pre-3.0 devices .",
"And I m using ActionBarSherlock a compatible android action bar library .",
"Is that the Action Bar Compatibility works same as the ActionBarSherlock and is the coding same",
"This isn t nessesary if you use ActionBarSherlock for all versions .",
"ActionBarSherlock was DEPRECATED https : github.com JakeWharton ActionBarSherlock .. . .. . remove ActionBarSherlock from your project and use Appcompat library to have actionBar on old versions .",
"ActionBarSherlock is an Android library-project .",
"ActionBarSherlock is a library-project .",
"try this.. . .. . .. . add actionbarsherlock library to slidingmenu library .. . in your project libraries use only sliding menu library not actionbarsherlock .",
"And it works for actionbarsherlock on versions below honeycomb .",
"Actionbarsherlock has the support library in it .",
"Import HoloEverywhere ActionBarSherlock actionbarsherlock .",
"Import ActionbarSherlock Library and Caldroid Library .",
"Since the Actionbarsherlock library https : github.com JakeWharton ActionBarSherlock was deprecated by the author 2 years ago there is no need to use this library today .",
"Your project requires the ActionBarSherlock library .",
"Use ActionBarSherlock .",
"You can t use together ActionbarSherlock and Appcompat library .",
"This is how I use maps api v2 with actionbarsherlock .",
"Setup the ActionBarSherlock library-project in Eclipse .",
"You can t use together ActionbarSherlock and Appcompat library .",
"I use actionbarsherlock .",
"--EDIT-- .. . .. . It appears things have changed and there is actually no difference between ActionBarSherlock and the Action Bar Compatibility anymore .",
"--EDIT-- .. . .. . After having used both now I can say that I actually prefer ActionBarSherlock to Action Bar Compatibility .",
"There is really no reason to use ActionBarSherlock anymore .",
"I want to be able to use the action bar in my android project 2.3 so I am trying to import the actionbarsherlock library .",
"And i am using actionbarsherlock library .",
"I m using the version of ActionBarSherlock which allows me to use ActionBarSherlock + MapView .",
"Add ActionBarSherlock to your app as an Android library-project .",
"this is sliding bar button and I am using actionbarsherlock .",
"I decided to use ActionBarSherlock .",
"Download and extract the actionbarsherlock library from the zip Note : You only need the actionbarsherlock folder .. . 2 .",
"First of all the Actionbarsherlock library https : github.com JakeWharton ActionBarSherlock was deprecated by the author 2 years ago .",
"I am using the ActionBarSherlock library",
"ActionBarSherlock is deprecated .",
"There is an action bar library written by Jake Wharton http : stackoverflow.com users 132047 jake-wharton called ActionBarSherlock .",
"This is an ActionBarSherlock backwards compatibility quirk detailed here Issue 455 https : github.com JakeWharton ActionBarSherlock issues 455 .",
"enter image description here http : i.stack.imgur.com JqF2M.jpg .. . .. . They are both on the action bar and I use ActionBarSherlock .",
"So you need to add actionbarsherlock as library-project .",
"I guess ActionBarSherlock is deprecated .",
"Those 2 libraries are named v7 gridlayout and actionbarsherlock library .",
"ActionBarSherlock is deprecated .",
"I am using ActionBarSherlock as a library-project in a project which is a library itself .",
"Remove the ActionBarSherlock and use only the AppCompat .",
"I want to use ActionBarSherlock with a Google map API V2 .",
"ActionBarSherlock gives your application an action bar regardless of what version of the android API your app is being run on .",
"I m using ActionBarSherlock library in my app .",
"and the ActionBarSherlock yet I use a custom-action bar so I inflate my own actionBar layout .",
"remove HoloEverywhere ActionBarSherlock actionbarsherlock libs android-support-v4.jar .. . Copy HoloEverywhere library libs android-support-v4-r13.1.jar to HoloEverywhere ActionBarSherlock actionbarsherlock libs .. . on Eclipse mark the Holoeverywhere Library project as Android library is Library .",
"When I am looking to customize the action bar usually the first place I look is the ActionBarSherlock themes and styles .",
"I tried : Solo.ClickOnMenuItem Text Solo.ClickOnText Text .. . .. . And Also I tried to use Robotium-ActionBarSherlock extension but All are not working with me",
"ActionbarSherlock .. . sorry",
"The new ShareActionProvider available in Android 4.0 or in earlier versions if you re using ActionBarSherlock has a feature where the last used item is displayed in the action bar .",
"Why are you using ActionBarSherlock",
"ActionbarSherlock is very much outdated .",
"It s a requirement from the ActionBarSherlock .",
"Add ActionBarSherlock as a dependency to SlidingMenu .",
"Add caldroid as a dependency to ActionbarSherlock .",
"The ActionMode Java file in the ABS Library : https : github.com JakeWharton ActionBarSherlock blob master library src com actionbarsherlock view ActionMode.java .. . 3 .",
"The MenuItem Java file again part of the ABS Library : https : github.com JakeWharton ActionBarSherlock blob master library src com actionbarsherlock view MenuItem.java",
"use jefferstin sliding menu with actionBarSherlock",
"ActionBarSherlock was deprecated two years ago .",
"I have added actionbarsherlock .. . why",
"I am trying to setup an example project that uses Jake Wharton s ActionBarSherlock https : github.com JakeWharton ActionBarSherlock with ActionBarSherlock-Plugin-Maps https : github.com JakeWharton ActionBarSherlock-Plugin-Maps .",
"I tried implementing SupportMapFragment with ActionBarSherlock .",
"It seems like a bug in ActionBarSherlock implementation .",
"I have implemented the actionbarsherlock in my project .",
"ActionBarSherlock requires the new google-play-services lib library .. . 5 .",
"ActionbarSherlock is no longer supported .",
"Are you using v4.0 of ActionBarSherlock",
"Has anybody managed to use : Intellij Idea 12+ with ActionbarSherlock and Google+ Library",
"In order to use ActionBarSherlock replace the default Android-callbacks to the ActionBarSherlock-edited callbacks e.g .",
"ActionBarSherlock v3.5 was updated to include the sources from Ice Cream Sandwich for all action-item related views and classes .",
"On HoloEverywhere Library project Android properties add actionbarsherlock as library .",
"You can t use the appcompat and the actionbarsherlock together .",
"ActionBarSherlock is really easy and nice to use .",
"github.com JakeWharton ActionBarSherlock blob master samples https : github.com JakeWharton ActionBarSherlock blob master samples fragments src com actionbarsherlock sample fragments FragmentTabsPager.java",
"github.com JakeWharton ActionBarSherlock tree master samples https : github.com JakeWharton ActionBarSherlock tree master samples demos src com actionbarsherlock sample demos",
"I m creating an app that uses ActionBarSherlock .",
"Add ActionbarSherlock as a dependency to your app .",
"http : stackoverflow.com questions 10509510 actionbarsherlock-holoeverywhere-forcing-overflow .. . .. . I am using ActionbarSherLock library to display Actionbar on pre-Gingerbread devices. .",
"Now navigate to ActionBarSherlock under documents Android Workspace ActionBarSherlock Click Ok and next all the way to finish .",
"That s because ActionBarSherlock can only be used as a library-project .",
"Add the actionbarsherlock-plugin-map-x.y.z.jar to the libs folder of the library-project .",
"You need to add the actionbarsherlock-plugin-map.. . library to the second project as well .",
"And I added it to the build path instead of the actionbarsherlock-plugin-map.. . of the library-project .",
"You should see the actionbarsherlock library add this to your project .. . 10 .",
"Enjoy ActionBarSherlock + Google Maps + Fragments + Loaders .. . .. . It s the best workaround for now until Google puts maps in the compatibility library .",
"It was showing normally with the ActionBarSherlock .",
"and two modules : FacebookSDK and actionbarsherlock .",
"I m using HoloEverywhere with ActionBarSherlock .",
"There is a way if you re using ActionBarSherlock .",
"I used this question as a reference : Using ActionBarSherlock With the New SupportMapFragment http : stackoverflow.com questions 13721929 using-actionbarsherlock-with-the-new-supportmapfragment .. . .. . I m currently using ActionBarSherlock and I m using Vipul Shah s rather simple implementation of a map .",
"If you want to use ActionBarSherlock everywhere within your app this works :",
"ActionBarSherlock is deprecated why don t you simply use the support library",
"Error : A problem occurred evaluating project : ActionBarSherlock .",
"I needed to add ActionBarSherlock as a project dependency .",
"With ActionBarSherlock even with the SearchView expanded I was able to access the action items .",
"Hello im trying to use holoeverywhere with actionbarsherlock .",
"I m trying to use the newest ActionBarSherlock 4.0 with a MapView ."
]
} | {
"confidence": [
66.24833679199219,
63.95301818847656,
62.368186950683594,
58.700531005859375,
56.448917388916016,
55.96717834472656,
55.40602493286133,
54.74298095703125,
54.62621307373047,
54.029842376708984,
53.922706604003906,
53.812679290771484,
53.074913024902344,
52.93106460571289,
52.58412170410156,
51.11809539794922,
51.06501388549805,
50.63963317871094,
50.49399185180664,
50.27397537231445
],
"content": [
"Question : What is the difference between ActionBarSherlock http : actionbarsherlock.com and Action Bar Compatibility http : developer.android.com resources samples ActionBarCompat index.html .. . .. . Fews days ago Google just released the ActionBar Compatibility that make me so confused . Is that the Action Bar Compatibility works same as the ActionBarSherlock and is the coding same Example : Does app icon to navigate up http : developer.android.com reference android app ActionBar.html setDisplayHomeAsUpEnabled 28boolean 29 or ActionBar.Tab supported in Action Bar Compatibility Comment : FYI I wrote a blog post about this for Square s eng blog : corner.squareup.com 2012 05 actionbarsherlock-as-a-base.html http : corner.squareup.com 2012 05 actionbarsherlock-as-a-base.html Comment : youtube.com http : www.youtube.com watch feature player detailpage v Jl3-lzlzOJI t 224 This is what Google thinks of ActionBarSherlock vs ActionBarCompact Comment : This is an important and useful thread for those who want to migrate from ABS to ABCompat . Thanks . .. . Answer : ActionBarSherlock gives your application an action bar regardless of what version of the android API your app is being run on . Action Bar Compatibility gives you the action bar only if the device that you re running on is API level 3.0 or above . Note that if the device you re running on isn t 3.0 or above ActionBarSherlock is going to use it s own custom implementation of the action bar not a native one . --EDIT-- .. . .. . It appears things have changed and there is actually no difference between ActionBarSherlock and the Action Bar Compatibility anymore . Please read the comments below for details . --EDIT-- .. . .. . After having used both now I can say that I actually prefer ActionBarSherlock to Action Bar Compatibility . ActionBarSherlock is really easy and nice to use . --EDIT-- As LOG TAG mentioned there is now support for the action bar in the Android Support Library . I haven t had a chance to use it yet but I would imagine that s the best one to use . Comment : @Anidamo Thanks for the heads up . I might be going insane but I could swear that at one point the version in the android compatibility pack didn t give you one if your pre-3.0 . I ve modified my answer . Comment : Also the answer is totally wrong - the purpose of the compatibility example is to support pre-3.0 devices . Comment : Google released a new backward-compatible Action Bar implementation called ActionBarCompat that s part of the Support Library r18 . The ActionBarCompat APIs let you build the essential Action Bar design pattern into your app with broad compatibility back to Android 2.1 . Comment : Following link tells you why and how to use the new ActionBarCompat API android-developers.blogspot.in 2013 08 http : android-developers.blogspot.in 2013 08 actionbarcompat-and-io-2013-app-source.html Comment : Just to add for those who think they may want Chromecast integration in their app I d highly recommend using appcompat library . The MediaRouter APIs necessary for Chromecast integration depends on appcompat ActionBarSherlock cannot be used .",
"Question : What is the difference between ActionBarSherlock http : actionbarsherlock.com and Action Bar Compatibility http : developer.android.com resources samples ActionBarCompat index.html .. . .. . Fews days ago Google just released the ActionBar Compatibility that make me so confused . Is that the Action Bar Compatibility works same as the ActionBarSherlock and is the coding same Example : Does app icon to navigate up http : developer.android.com reference android app ActionBar.html setDisplayHomeAsUpEnabled 28boolean 29 or ActionBar.Tab supported in Action Bar Compatibility Comment : FYI I wrote a blog post about this for Square s eng blog : corner.squareup.com 2012 05 actionbarsherlock-as-a-base.html http : corner.squareup.com 2012 05 actionbarsherlock-as-a-base.html Comment : youtube.com http : www.youtube.com watch feature player detailpage v Jl3-lzlzOJI t 224 This is what Google thinks of ActionBarSherlock vs ActionBarCompact Comment : This is an important and useful thread for those who want to migrate from ABS to ABCompat . Thanks . .. . Answer : Actionbar Sherlock is far more advanced and far more ambitious than the simple Actionbar compatibility project . The Action bar compatibility can be considered a sample or a good starting point if you only want to smack an Action Bar on top of your app . ActionBarSherlock builds on the compatibility library and gives you like the action bar compatibility sample an Action Bar on pre-3.0 devices . In addition it has extra features not present in the ActionBar Compat code . This includes features like but not limited to .. . .. . setNavigationMode for Tabs and spinners in the action bar .. . Dialog Fragments .. . Contextual Action Bar CAB a menu that takes over the action bar used for example for multi-select http : developer.android.com design-patterns new-4-0.html This is a ICS feature For this an implementation of the ActionMode class introduced in API level 11 had to be introduced into the ActionbarSherlock library .. . Fragment and FragmentActivity implementations - because fragments can implement the onCreateOptions menu we need to make sure that the SupportMenuInflater is used . Two themes not very unlike Holo.Dark and Holo.Light Theme.Sherlock Theme.Sherlock.Light .. . The ICS feature split action bar .. . .. . The only downside I see in using ActionbarSherlock is that you lock yourself in to that library . If for some reason it will die out in the near future you ll have to maintain it youself for example if no Jellybean implementation comes along . This is a hassle not a huge problem since all your fragments extends SherlockFragemnt and all your Activities . SherlockActivity . Comment : Am I missing something It seems that multi-select is NOT support in ABS Comment : Sorry for the delay . Multi select is not by itself supported by ABS . But you can implement Multiselect by using the ABS ActionMode as ABS has its own implementations of the ActionMode classes . When going into multi-select mode You would set the ListView s choice mode to CHOICE MODE MULTIPLE and invoke ActionMode by calling getSherlockActivity .startActionMode callback",
"Question : What is the difference between ActionBarSherlock http : actionbarsherlock.com and Action Bar Compatibility http : developer.android.com resources samples ActionBarCompat index.html .. . .. . Fews days ago Google just released the ActionBar Compatibility that make me so confused . Is that the Action Bar Compatibility works same as the ActionBarSherlock and is the coding same Example : Does app icon to navigate up http : developer.android.com reference android app ActionBar.html setDisplayHomeAsUpEnabled 28boolean 29 or ActionBar.Tab supported in Action Bar Compatibility Comment : FYI I wrote a blog post about this for Square s eng blog : corner.squareup.com 2012 05 actionbarsherlock-as-a-base.html http : corner.squareup.com 2012 05 actionbarsherlock-as-a-base.html Comment : youtube.com http : www.youtube.com watch feature player detailpage v Jl3-lzlzOJI t 224 This is what Google thinks of ActionBarSherlock vs ActionBarCompact Comment : This is an important and useful thread for those who want to migrate from ABS to ABCompat . Thanks . .. . Answer : I strongly believe that you should use ActionBarCompat for all new projects that want to support older devices . It also might make sense to migrate existing projects . So read on to learn why you should migrate or use ActionBarCompat right away and how to migrate existing projects . Why you should prefer ActionBarCompat over ActionBarSherlock .. . .. . There are many reasons why you should prefer ActionbarCompat over ActionbarSherlock . 1 . First of all this project is by Google is part of the Support Library and thus likely will support new Action Bar related stuff at the same time Google releases them with stock Android . 2 . Another good reason is that it supports the Navigation Drawer pattern right out of the box while ActionBarSherlock does not . Thus if you want to add this drawer to an existing project app you should migrate . 3 . The last and Important is that the creator of ActionBarSherlock Jake Wharton announced on Google+ that further development of ActionBarSherlock has been stopped . ActionBarSherlock 4.4 is the last release and might get bug fixes but there won t be any new features : So if new functionality is included in actionbar you may not keep up to it with actionbarsherlock .",
"Question : What is the difference between ActionBarSherlock http : actionbarsherlock.com and Action Bar Compatibility http : developer.android.com resources samples ActionBarCompat index.html .. . .. . Fews days ago Google just released the ActionBar Compatibility that make me so confused . Is that the Action Bar Compatibility works same as the ActionBarSherlock and is the coding same Example : Does app icon to navigate up http : developer.android.com reference android app ActionBar.html setDisplayHomeAsUpEnabled 28boolean 29 or ActionBar.Tab supported in Action Bar Compatibility Comment : FYI I wrote a blog post about this for Square s eng blog : corner.squareup.com 2012 05 actionbarsherlock-as-a-base.html http : corner.squareup.com 2012 05 actionbarsherlock-as-a-base.html Comment : youtube.com http : www.youtube.com watch feature player detailpage v Jl3-lzlzOJI t 224 This is what Google thinks of ActionBarSherlock vs ActionBarCompact Comment : This is an important and useful thread for those who want to migrate from ABS to ABCompat . Thanks . .. . Answer : Maybe we should update the answer because google published offical Actionbar support since API18 http : developer.android.com tools support-library index.html revisions block below is from offical blog http : android-developers.blogspot.in 2013 08 actionbarcompat-and-io-2013-app-source.html about these two libraries : .. . .. . If you re using a third-party solution such as ActionBarSherlock there are a few reasons to consider upgrading : .. . .. . Can be kept updated as the Action Bar API evolves . Integrated Ancestral Navigation support . Use of framework Menu and MenuItem classes . Continue to use the Support Library s Fragment class . Integrated support for ActionBarDrawerToggle for use with DrawerLayout . Backport of PopupMenu . .. . ActionBarSherlock is a solid and well-tested library which has served developers very well for a long time . If you are already using it and do not currently require any of the above then there is no need to migrate .",
"Question : In trying to follow the Android Design Guidelines I m running into a small quandary . I want to have a list of items that I can long-press several of multi-select and then perform bulk actions on them . The Design Guidelines suggest using the Contextual Action Bar for this and it sounds perfectly like what I had in mind . Problem is I m trying to maintain compatibility backwards to API 7 due to my phone being 2.3.3 currently . I m using ActionBarSherlock to get other actionbar stuff but I can t seem to figure out how to get it to either fire up a contextual-action-bar nor have I figured out how to add buttons arbitrarily to the ActionBar in ABS . I see you can do tabs so maybe that s the answer but since I m trying to allow multi-select I don t want to have the normal modal context menu . Comment : Hi did you check the sample source code there are also samples of adding buttons contextual buttons ..etc github.com JakeWharton ActionBarSherlock tree master samples https : github.com JakeWharton ActionBarSherlock tree master samples demos Comment : Yeah I looked at the classes in that folder I did not see the examples you re talking about . The only examples I saw of adding things are done in the OptionsMenu creation step but I m looking to do it in response to a long-click on an item logically a contextual thing . Can you tell me specifically what file you saw it in Comment : That s how I made it work stackoverflow.com questions 14737519 http : stackoverflow.com questions 14737519 implementing-multi-selection-and-contextual-actionmode-in-actionbarsherlock 14737520 14737520 .. . Answer : I will answer second part of your question . Here is an example how to add any View instance button in the code below actionbar with ActionBarSherlock library : Comment : Yes I have done that before but that makes it show on the actionbar all the time for that activity . What I m trying to do is show the button only after items are selected in the list and update after each item is selected .",
"Question : What is the difference between ActionBarSherlock http : actionbarsherlock.com and Action Bar Compatibility http : developer.android.com resources samples ActionBarCompat index.html .. . .. . Fews days ago Google just released the ActionBar Compatibility that make me so confused . Is that the Action Bar Compatibility works same as the ActionBarSherlock and is the coding same Example : Does app icon to navigate up http : developer.android.com reference android app ActionBar.html setDisplayHomeAsUpEnabled 28boolean 29 or ActionBar.Tab supported in Action Bar Compatibility Comment : FYI I wrote a blog post about this for Square s eng blog : corner.squareup.com 2012 05 actionbarsherlock-as-a-base.html http : corner.squareup.com 2012 05 actionbarsherlock-as-a-base.html Comment : youtube.com http : www.youtube.com watch feature player detailpage v Jl3-lzlzOJI t 224 This is what Google thinks of ActionBarSherlock vs ActionBarCompact Comment : This is an important and useful thread for those who want to migrate from ABS to ABCompat . Thanks . .. . Answer : Just completing what @Kurtis Nusbaum with a pratical example . UPDATE : as @rudy-s said with newest android-support-library api 18 I saw they already have built-in support for actionbar called ActionBarCompat class . I built two simple applications to show the visual difference between ActionBarSherlock and ActionBar Compatibility . See the comparatives images : .. . .. . App using compatibility library http : i.stack.imgur.com EDNni.png .. . .. . App using sherlock library http : i.stack.imgur.com jca8P.png .. . .. . Now the appearance when the menu button is pressed : .. . .. . App using compatibility on menu pressed http : i.stack.imgur.com vEgfW.png .. . .. . App using sherlock on menu pressed http : i.stack.imgur.com KgcXQ.png .. . .. . .. . .. . As you can see the images just enforce what was said . Action Bar Compatibility gives you the action bar only if the device that you re running on is API level 3.0 or above . While Sherlock is more general . .. . .. . Below you can see the application source . The menu xml file is the same : .. . .. . Compatibility s activity : .. . .. . Sherlock s activity : .. . .. . An additional config was necessary on sherlock app : .. . .. . style name AppBaseTheme parent Theme.Sherlock.Light.DarkActionBar .. . .. . UPDATE : as @rudy-s said with newest android-support-library api 18 I saw they already have built-in support for actionbar called ActionBarCompat class . Comment : Actually this is not entirely correct . The Compat library can and does give you an ActionBar implementation on Gingerbread . This app for example gives you an AB on GB and does not use Sherlock but Compat . play.google.com store apps details id uk.co.mxdata.rootle https : play.google.com store apps details id uk.co.mxdata.rootle Comment : Can you share some code of it Or a example Comment : There is no need if you pull that actionbarcompat sample out for example out of the android-17 sdk and build it in ADT it will run on a GB device with an ActionBar . I just tested it myself to confirm on a Desire HD with 2.3.5 . Comment : With newest android-support-library api 18 I saw they already have built-in support for actionbar called ActionBarCompat class . Comment : Compatibility gives you ActionBar on android 2.2 I use it and it works.. .",
"Question : In trying to follow the Android Design Guidelines I m running into a small quandary . I want to have a list of items that I can long-press several of multi-select and then perform bulk actions on them . The Design Guidelines suggest using the Contextual Action Bar for this and it sounds perfectly like what I had in mind . Problem is I m trying to maintain compatibility backwards to API 7 due to my phone being 2.3.3 currently . I m using ActionBarSherlock to get other actionbar stuff but I can t seem to figure out how to get it to either fire up a contextual-action-bar nor have I figured out how to add buttons arbitrarily to the ActionBar in ABS . I see you can do tabs so maybe that s the answer but since I m trying to allow multi-select I don t want to have the normal modal context menu . Comment : Hi did you check the sample source code there are also samples of adding buttons contextual buttons ..etc github.com JakeWharton ActionBarSherlock tree master samples https : github.com JakeWharton ActionBarSherlock tree master samples demos Comment : Yeah I looked at the classes in that folder I did not see the examples you re talking about . The only examples I saw of adding things are done in the OptionsMenu creation step but I m looking to do it in response to a long-click on an item logically a contextual thing . Can you tell me specifically what file you saw it in Comment : That s how I made it work stackoverflow.com questions 14737519 http : stackoverflow.com questions 14737519 implementing-multi-selection-and-contextual-actionmode-in-actionbarsherlock 14737520 14737520 .. . Answer : ActionBarSherlock has its own implementation of ActionMode but you ll have to manualy controll its lifesycle I wrote a tutorial http : androidperspective.wordpress.com 2013 04 17 contextual-action-bar-with-listview about this .",
"Question : What is the difference between ActionBarSherlock http : actionbarsherlock.com and Action Bar Compatibility http : developer.android.com resources samples ActionBarCompat index.html .. . .. . Fews days ago Google just released the ActionBar Compatibility that make me so confused . Is that the Action Bar Compatibility works same as the ActionBarSherlock and is the coding same Example : Does app icon to navigate up http : developer.android.com reference android app ActionBar.html setDisplayHomeAsUpEnabled 28boolean 29 or ActionBar.Tab supported in Action Bar Compatibility Comment : FYI I wrote a blog post about this for Square s eng blog : corner.squareup.com 2012 05 actionbarsherlock-as-a-base.html http : corner.squareup.com 2012 05 actionbarsherlock-as-a-base.html Comment : youtube.com http : www.youtube.com watch feature player detailpage v Jl3-lzlzOJI t 224 This is what Google thinks of ActionBarSherlock vs ActionBarCompact Comment : This is an important and useful thread for those who want to migrate from ABS to ABCompat . Thanks . .. . Answer : ActionBarSherlock vs ActionBarCompat : .. . .. . I Just want to put few code difference between ActionBarSherlock vs ActionBarCompat Lib .. . .. . ActionBarSherlock vs ActionBarCompat strong text http : i.stack.imgur.com s4Eb4.png .. . .. . We can migrate some apps from ActionBarSherlock to ActionBarCompat : .. . .. . steps : .. . .. . 1 . Import AppCompat project . 2 . Replace SherlockFragmentActivity with ActionBarActivity . 3 . Replace SherlockFragment with Fragment . 4 . Change Menu MenuItem and getSupportMenuInflater references . Modify the way you get Action Views . mSearchView SearchView MenuItemCompat.getActionView mSearchItem .. . .. . 5 . Modify your Themes and Styles . For more info please refer this slides by +NickButcher https : plus.google.com +NickButcher posts bGWotMzC985 Google .. . .. . enter image description here http : i.stack.imgur.com MmOan.png .. . .. . Thanks to Sources : http : gmariotti.blogspot.in 2013 07 actionbarsherlock-vs-actionbarcompat.html http : antonioleiva.com actionbarcompat-migrating-actionbarsherlock .. . .. . Don t forget to read this developer.android https : developer.android.com training basics actionbar index.html for more about ABC Note : Setting it up for unit tests the same way as ABS is unfortunately not possible with the support library . Output : .. . .. . enter image description here http : i.stack.imgur.com UrRIp.png .. . .. . Credits : Gabriele Mariotti Comment : Just an update that ABS can now also be added to Gradle projects via compile com.actionbarsherlock : actionbarsherlock : 4.4.0@aar and doesn t have to be a library-project . Comment : @AnkushGupta thanks for the info +1",
"Question : Android action bar compat http : developer.android.com resources samples ActionBarCompat index.html .. . Is it possible On older devices pre 3.0 the items that don t fit the action bar are only shown when the menu key is pressed I want these items to be grouped in the actionbar s overflow menu . Comment : From the ABS changelog CHANGELOG.md : 27 : Fix : Remove .ForceOverflow themes . These never should have been included . .. . Answer : The action overflow menu is only available when there is no hard menu button available on the device . I found this stated in the Framework Topics under User Interface Action Bar check out the 3rd bullet here http : developer.android.com guide topics ui actionbar.html . There is an action bar library written by Jake Wharton http : stackoverflow.com users 132047 jake-wharton called ActionBarSherlock . Perhaps this is able to supply you with an action overflow menu style even when on older devices which include a hard menu button however I have not looked into this . Edit : ActionBarSherlock 4.0 currently a release candidate has functionality built-in to force action overflow . If you want to extend the ActionBarCompat example yourself you could take a look on github to get an idea how Jake implemented it . I would suggest just looking into using his library all together as it is very well done . If you choose to use Jake s library look into setting up the Activity theme as @style Theme.Sherlock.ForceOverflow to force the overflow menu on older devices . Edit2 : Using ForceOverflow theme causes issues example 1 https : github.com JakeWharton ActionBarSherlock issues 568 on devices with hardware menu button . Thus Jake Wharton is going to remove ForceOverflow in the future versions . Comment : You didn t read the question very carefully . He s using an official android action bar library to get the backwards and forwards compatibility . He wants to force the overflow option below Android 4.0 not turn his old menu into a functioning menu on ICS . Comment : @EricNovins ABS library offers what he is looking for . If he chooses not to use the library if offers a direction for him to extend ActionBarCompat in his own way . Comment : I wouldn t ever suggest to ditch the library completely . That s a ton of recoding for one function . Not a quality answer IMO Comment : But how could Google use action overflow on let s say Google+ I m using a Nexus S that has the hard menu button so the overflow shouldn t be there...Anyway I see it on almost all stock gapps Comment : @Shine Even though you have the hard menu button the developer can force the overflow button to appear . This will just give a consistent UI across all devices even if they are pre-ICS .",
"Question : In trying to follow the Android Design Guidelines I m running into a small quandary . I want to have a list of items that I can long-press several of multi-select and then perform bulk actions on them . The Design Guidelines suggest using the Contextual Action Bar for this and it sounds perfectly like what I had in mind . Problem is I m trying to maintain compatibility backwards to API 7 due to my phone being 2.3.3 currently . I m using ActionBarSherlock to get other actionbar stuff but I can t seem to figure out how to get it to either fire up a contextual-action-bar nor have I figured out how to add buttons arbitrarily to the ActionBar in ABS . I see you can do tabs so maybe that s the answer but since I m trying to allow multi-select I don t want to have the normal modal context menu . Comment : Hi did you check the sample source code there are also samples of adding buttons contextual buttons ..etc github.com JakeWharton ActionBarSherlock tree master samples https : github.com JakeWharton ActionBarSherlock tree master samples demos Comment : Yeah I looked at the classes in that folder I did not see the examples you re talking about . The only examples I saw of adding things are done in the OptionsMenu creation step but I m looking to do it in response to a long-click on an item logically a contextual thing . Can you tell me specifically what file you saw it in Comment : That s how I made it work stackoverflow.com questions 14737519 http : stackoverflow.com questions 14737519 implementing-multi-selection-and-contextual-actionmode-in-actionbarsherlock 14737520 14737520 .. . Answer : For long-click sample please refer to below links . First one is java code required for sample . And second one is how to define the layout .. . .. . Java source https : github.com JakeWharton ActionBarSherlock blob master samples demos src com actionbarsherlock sample demos app FragmentContextMenuSupport.java .. . Layout xml https : github.com JakeWharton ActionBarSherlock blob master samples demos res layout fragment context menu.xml Comment : That has nothing to do with my question . That example is how to show a context menu from a fragment . I m trying to replicate the Contextual Action Bar from the more current APIs .",
"Question : In trying to follow the Android Design Guidelines I m running into a small quandary . I want to have a list of items that I can long-press several of multi-select and then perform bulk actions on them . The Design Guidelines suggest using the Contextual Action Bar for this and it sounds perfectly like what I had in mind . Problem is I m trying to maintain compatibility backwards to API 7 due to my phone being 2.3.3 currently . I m using ActionBarSherlock to get other actionbar stuff but I can t seem to figure out how to get it to either fire up a contextual-action-bar nor have I figured out how to add buttons arbitrarily to the ActionBar in ABS . I see you can do tabs so maybe that s the answer but since I m trying to allow multi-select I don t want to have the normal modal context menu . Comment : Hi did you check the sample source code there are also samples of adding buttons contextual buttons ..etc github.com JakeWharton ActionBarSherlock tree master samples https : github.com JakeWharton ActionBarSherlock tree master samples demos Comment : Yeah I looked at the classes in that folder I did not see the examples you re talking about . The only examples I saw of adding things are done in the OptionsMenu creation step but I m looking to do it in response to a long-click on an item logically a contextual thing . Can you tell me specifically what file you saw it in Comment : That s how I made it work stackoverflow.com questions 14737519 http : stackoverflow.com questions 14737519 implementing-multi-selection-and-contextual-actionmode-in-actionbarsherlock 14737520 14737520 .. . Answer : This is a late answer but I think would help people stuck . Opening the contextual-action-bar is actually pretty simple at any point in your activity you just have to call : .. . .. . If you are not in your main activity like in fragments you can get a reference with .. . .. . and this is the callback .. . .. . The xml is a simple menu like the actionbar one : Comment : Wow nice awnser have truggled with this for a couple of hours great work",
"Question : In trying to follow the Android Design Guidelines I m running into a small quandary . I want to have a list of items that I can long-press several of multi-select and then perform bulk actions on them . The Design Guidelines suggest using the Contextual Action Bar for this and it sounds perfectly like what I had in mind . Problem is I m trying to maintain compatibility backwards to API 7 due to my phone being 2.3.3 currently . I m using ActionBarSherlock to get other actionbar stuff but I can t seem to figure out how to get it to either fire up a contextual-action-bar nor have I figured out how to add buttons arbitrarily to the ActionBar in ABS . I see you can do tabs so maybe that s the answer but since I m trying to allow multi-select I don t want to have the normal modal context menu . Comment : Hi did you check the sample source code there are also samples of adding buttons contextual buttons ..etc github.com JakeWharton ActionBarSherlock tree master samples https : github.com JakeWharton ActionBarSherlock tree master samples demos Comment : Yeah I looked at the classes in that folder I did not see the examples you re talking about . The only examples I saw of adding things are done in the OptionsMenu creation step but I m looking to do it in response to a long-click on an item logically a contextual thing . Can you tell me specifically what file you saw it in Comment : That s how I made it work stackoverflow.com questions 14737519 http : stackoverflow.com questions 14737519 implementing-multi-selection-and-contextual-actionmode-in-actionbarsherlock 14737520 14737520 .. . Answer : Setting up contextual actionbar is the same to setting up the regular ActionBar items as far as the XML is concerned . This example in the developer s guide explains it all http : developer.android.com guide topics ui menus.html CAB . In order to use ActionBarSherlock replace the default Android-callbacks to the ActionBarSherlock-edited callbacks e.g . instead of Android.View.ActionMode use com.actionbarsherlock.view.ActionMode . Comment : that namespace doesn t exist as far as I can tell . Comment : Are you using v4.0 of ActionBarSherlock It got pulled out of beta last week . Comment : Upgrading to 4.0 will add the namespaces you re missing .",
"Question : What is the difference between ActionBarSherlock http : actionbarsherlock.com and Action Bar Compatibility http : developer.android.com resources samples ActionBarCompat index.html .. . .. . Fews days ago Google just released the ActionBar Compatibility that make me so confused . Is that the Action Bar Compatibility works same as the ActionBarSherlock and is the coding same Example : Does app icon to navigate up http : developer.android.com reference android app ActionBar.html setDisplayHomeAsUpEnabled 28boolean 29 or ActionBar.Tab supported in Action Bar Compatibility Comment : FYI I wrote a blog post about this for Square s eng blog : corner.squareup.com 2012 05 actionbarsherlock-as-a-base.html http : corner.squareup.com 2012 05 actionbarsherlock-as-a-base.html Comment : youtube.com http : www.youtube.com watch feature player detailpage v Jl3-lzlzOJI t 224 This is what Google thinks of ActionBarSherlock vs ActionBarCompact Comment : This is an important and useful thread for those who want to migrate from ABS to ABCompat . Thanks . .. . Answer : Well @Jake implementation goes way further than what the Actionbar compat to be more precise Actionbar Compat is just a basic example on how can you support all aplication with a pseudo-actionbar for releases prior from Honeycomb API 13 . Although their target is the same cross compatible actionbar they have diferent approach . ActionbarCompat Aproach .. . .. . This implementation make no use of the Compatibility Android support library instead it create a base-class called ActionBarActivity http : developer.android.com resources samples ActionBarCompat src com example android actionbarcompat ActionBarActivity.html create a single instance of a Helper http : developer.android.com resources samples ActionBarCompat src com example android actionbarcompat ActionBarHelper.html this helper act as factory itself that returns diferent implementation for the three segment of APIS it returns .. . .. . ActionbarBaseHelper http : developer.android.com resources samples ActionBarCompat src com example android actionbarcompat ActionBarHelperBase.html : for prior to HoneyComb . ActionBarHoneyComb http : developer.android.com resources samples ActionBarCompat src com example android actionbarcompat ActionBarHelperHoneycomb.html : for HoneyComb .. . ActionBarHelperICS http : developer.android.com resources samples ActionBarCompat src com example android actionbarcompat ActionBarHelperICS.html : for ICS base devices . The most interesting part is in the ActionbarBaseHelper http : developer.android.com resources samples ActionBarCompat src com example android actionbarcompat ActionBarHelperBase.html because it has the most important code I suggest you understand this class and you will get the whole example . Action Bar Sherlock .. . .. . Well this is tricky firstable because I m not the author maybe Jake can explained further this but I ll give it a try . Just as the compat Sherlock make diferent implementation but one is for Compat and the other is Native . It force you to extends either from SherlockActivity or from SherlockFragmentActivity because this two base classes have the method for dispatching the ActionBar . This is a large and complex project that cannot be explained in a single post . Suggest you dig around Sherlock Github repo https : github.com JakeWharton ActionBarSherlock grab a look and as Jeff Atwood http : www.codinghorror.com blog 2012 04 learn-to-read-the-source-luke.html says .. . .. . enter image description here http : i.stack.imgur.com lBK3I.jpg",
"Question : In trying to follow the Android Design Guidelines I m running into a small quandary . I want to have a list of items that I can long-press several of multi-select and then perform bulk actions on them . The Design Guidelines suggest using the Contextual Action Bar for this and it sounds perfectly like what I had in mind . Problem is I m trying to maintain compatibility backwards to API 7 due to my phone being 2.3.3 currently . I m using ActionBarSherlock to get other actionbar stuff but I can t seem to figure out how to get it to either fire up a contextual-action-bar nor have I figured out how to add buttons arbitrarily to the ActionBar in ABS . I see you can do tabs so maybe that s the answer but since I m trying to allow multi-select I don t want to have the normal modal context menu . Comment : Hi did you check the sample source code there are also samples of adding buttons contextual buttons ..etc github.com JakeWharton ActionBarSherlock tree master samples https : github.com JakeWharton ActionBarSherlock tree master samples demos Comment : Yeah I looked at the classes in that folder I did not see the examples you re talking about . The only examples I saw of adding things are done in the OptionsMenu creation step but I m looking to do it in response to a long-click on an item logically a contextual thing . Can you tell me specifically what file you saw it in Comment : That s how I made it work stackoverflow.com questions 14737519 http : stackoverflow.com questions 14737519 implementing-multi-selection-and-contextual-actionmode-in-actionbarsherlock 14737520 14737520 .. . Answer : I was facing the same issue . It was solved when I found this link http : www.miximum.fr tutos 849-porting-the-contextual-anction-mode-for-pre-honeycomb-android-apps . Basically you have to create a callback class that implements ActionMode.Callback . In this class you inflate the Action Bar with your contextual Action Bar . At each selection or long-click you start the callback using the startActionMode method . See the link for an working code .. . .. . EDIT : There is also an example on Sherlock s samples under samples demos src com actionbarsherlock sample demos ActionModes.java",
"Question : Is some possible way how to hide the toast after long-press on the ActionBar item I didn t setup a title for the item but it is still there - empty toast . Comment : What s your problem Use Toast.cancel if you want to dismiss the Toast message . Comment : He s talking about the toast that pops up automatically when you long-press an item on the ActionBar . This is something the ActionBar does it s not part of his code . Comment : But I mean Toast when you long-press the ActionBar item . I know that you can cancel ordinary Toast this is not my problem . Comment : This is a feature of the native action bar . It cannot be removed . Comment : @AdaMoOo don t forgot guidelines . If you do this it will violate the action bar design guidelines .. . Answer : You can modify onLongClick in ActionMenuItemView https : github.com JakeWharton ActionBarSherlock blob master actionbarsherlock src com actionbarsherlock internal view menu ActionMenuItemView.java Class to stop Toasting on long-click . but be careful It s only working on devices with API less than 11 because sherlockactionbar library checking your device API level by Build.VERSION.SDK INT and if you have newer device it just use default system actionbar which you re not modifying .",
"Question : I have created a project with help of Action Bar Sherlock . Now I have made that project as library-project and want that project to be included in another project which uses appcompat . Here I faced problem with Error : 2 Attribute titleTextStyle has already been defined . I googled and found some reference like we can use either ActionBarSherlock or Appcompat . What should i do to solve this issue . Can anyone please help me to solve this issue Comment : check this link stackoverflow.com questions 23733021 http : stackoverflow.com questions 23733021 error-after-adding-dependencies-to-action-bar-sherlock-in-android-studio-0-5-8 .. . Answer : You can t use together ActionbarSherlock and Appcompat library . .. . .. . They use the same attributes . Since the Actionbarsherlock library https : github.com JakeWharton ActionBarSherlock was deprecated by the author 2 years ago there is no need to use this library today . Use the the AppCompat library Comment : Completed ..Thanks for your support",
"Question : When i try compiling compile com.android.support : appcompat-v7 : 23.1.1 to my gradle it throws me all these errors . I m not sure how to get appcompat into my project . Here is my gradle for my app . Here is my gradle for my SlidingMenu module . And here is the errors i m getting . Comment : why actionbarsherlock : actionbarsherlock .. . Answer : You can t use together these libraries : .. . .. . They use the same attrs . Also there are no reason to use ABS https : github.com JakeWharton ActionBarSherlock today . ActionBarSherlock is deprecated . No more development will be taking place . For an up-to-date action bar backport use AppCompat . Remove the ActionBarSherlock and use only the AppCompat . .. . .. . Also in you library you can t use compileSdkVersion 17 since you are using com.android.support : appcompat-v7 : 23.1.1 . You have to compile with API 23 so change to",
"Question : I want to export and import a gradle project which I used in Android with Eclipse . Problems importing project into Android Studio regarding ActionBarSherlock .. . .. . cannot use .. . .. . import com.actionbarsherlock.app.ActionBar .. . .. . import com.actionbarsherlock.app.SherlockFragmentActivity .. . .. . also .. . .. . Help me .. . .. . I m sorry I m not good at English .. . Answer : First of all the Actionbarsherlock library https : github.com JakeWharton ActionBarSherlock was deprecated by the author 2 years ago . There is no need to use this library today . Use the the AppCompat library in this way you will able to use all the new features and the new support libraries as the design support library . Your issue is here . Change this line in .. . .. . Pay attention . You can t use together ActionbarSherlock and Appcompat library . .. . .. . They use the same attributes . Comment : Thank you very much Comment : I just copied project into studio This project use action .so If I change action into app this project will work without errors Comment : what do you mean with this project use action Comment : ActionbarSherlock .. . sorry Comment : You have to change something in your code of course .",
"Question : I would like to have an ActionBar with custom navigation where the custom views look like the standard action bar tabs . I know it sounds like reinventing the wheel but it means we can have the menu button on the same row as the tabs as shown below . This is a design requirement and practically makes much more UI sense for this app than the standard android behaviour . How I would like the tabs to look http : i.stack.imgur.com Okan0.png .. . .. . I ve tried using an IcsLinearLayout from ActionBarSherlock like so : .. . .. . But that replicates ActionButtons and I have no idea how to replicate Tabs . I assume I will need : .. . .. . a special tab container viewgroup probably from the ActionBarSherlock library .. . views which look like tabs with a background resource from the ABS library . some code to indicate that after the view is clicked it remains selected similar to a RadioButton . Any pointers to samples or similar solutions even within the ActionBarSherlock library would be greatly appreciated . .. . Answer : enabling embedded tabs .. . .. . this code works perfectly . Tried it in my app . for further reference - https : groups.google.com forum topic actionbarsherlock hmmB1JqDeCk Comment : Works well Just as a note I found that this needs to be done before setting up the rest of the actionbar tabs etc .",
"Question : Here s my issue : .. . .. . I ve been trying to get an ActionBar in my Android 2.3 App . I decided to use ActionBarSherlock . I created a new project by importing the ZIP and then making it a library . I added it as a library to my current project . Then it wouldn t work unless I removed the compatibility library Conversion to Dalvik format failed with error 1 .. . .. . So I removed it and no more errors when compiling . But when I try to use it it always returns null . I m not sure if I m missing something small or what but this has been driving me nuts for a while now . Any advice would be greatly appreciated . Here are some code-snippets as well : .. . .. . Manifest : .. . .. . And then the call which I make in my Activity : .. . .. . .. . Answer : You don t need to include the support package as ActionBarSherlock contains the support package and enhances it . If you check the ActionBarSherlock source you ll be about to see the android.support.v4 . classes . I was getting getSupportActionBar retuning null till I went back to reread the usage instructions http : actionbarsherlock.com usage.html in particular about Parent Themes . In order for the action bar to function on pre-3.0 devices your activity must use Theme.Sherlock or Theme.Sherlock.Light or your custom theme must use one of the aforementioned two as its parent . Include in the application element"
]
} | [
"yes-answer-long",
"yes-answer-short"
] | android | UNK_RELATION |
strcpy@null-terminated@82 | strcpy -- a c-standard-library function : strcpy is used to copy non-overlapping @placeholder strings . | {
"confidence": [
55.275001525878906,
53.51725769042969,
48.636653900146484,
45.506778717041016,
40.37950897216797,
39.54673385620117,
39.39646911621094,
38.95843505859375,
38.51239013671875,
38.06343078613281,
37.669010162353516,
37.5494270324707,
37.5494270324707,
37.5494270324707,
37.5494270324707,
37.42008590698242,
37.42008590698242,
37.128814697265625,
37.084083557128906,
36.69163513183594,
36.51508331298828,
36.4293212890625,
36.35090637207031,
36.053466796875,
36.053466796875,
36.053466796875,
36.053466796875,
36.053466796875,
36.053466796875,
36.053466796875,
35.60353088378906,
35.60353088378906,
35.37989807128906,
35.275390625,
35.16273498535156,
35.13922882080078,
35.028934478759766,
34.870643615722656,
34.44597244262695,
34.128387451171875,
34.04438781738281,
34.04438781738281,
34.04438781738281,
34.04438781738281,
34.04438781738281,
34.04438781738281,
34.04438781738281,
34.04438781738281,
34.04438781738281,
34.04438781738281,
34.04438781738281,
34.04438781738281,
34.04438781738281,
34.04438781738281,
34.04438781738281,
33.77943420410156,
33.77943420410156,
33.105857849121094,
33.010040283203125,
33.010040283203125,
33.010040283203125,
32.888694763183594,
32.5630989074707,
32.520198822021484,
32.47659683227539,
32.294837951660156,
32.294837951660156,
32.237754821777344,
32.16557312011719,
31.844196319580078,
31.770349502563477,
31.770349502563477,
31.770349502563477,
31.770349502563477,
31.770349502563477,
31.744308471679688,
31.744308471679688,
31.65829849243164,
31.41863250732422,
31.32297134399414,
31.32297134399414,
31.32297134399414,
31.32297134399414,
31.32297134399414,
31.32297134399414,
31.32297134399414,
31.32297134399414,
31.32297134399414,
31.32297134399414,
31.32297134399414,
31.32297134399414,
31.32297134399414,
31.32297134399414,
31.32297134399414,
31.32297134399414,
31.32297134399414,
31.32297134399414,
31.32297134399414,
31.32297134399414,
31.260494232177734
],
"content": [
"strcpy and strcat are used to copy and concatenate strings to an allocated char array .",
"Using strcpy to copy and strcat to append strings is recommended .",
"Well strcpy is not as evil as strdup - at least strcpy is part of Standard C .",
"In an interview I was asked to write an implementation of strcpy and then fix it so that it properly handles overlapping strings .",
"We can write strcpy in such a way that overlapping addresses are taken care of .",
"Then again in strcpy .",
"I know that writing an own strcpy with a simple char-by-char copy is easy but I thought that the standard-library might apply magic which makes strcpy faster than a naive char-by-char implementation .",
"strcpy at least should not be used anymore .",
"This is not required for strcpy .",
"Even without using relational pointer comparisons memmove or equivalent it is possible to code a version of strcpy which will be performed as an strlen and memcpy in the non-overlapping case and as a top-down copy in the overlapping case .",
"strcpy text array x -- strcpy array x text",
"strcat works but there is an error in strcpy .",
"Why not strcpy and strcat",
"See How is strcpy implemented",
"That is why strcpy is considered unsafe .",
"Although it is going to be as slow or slower than strcpy the chances that it would outperform strcpy + strlen are reasonably high especially for long strings when caching starts playing a major role .",
"The reason why people use strncpy not strcpy is because strings are not always null-terminated and it s very easy to overflow the buffer the space you have allocated for the string with strcpy and overwrite some unrelated bit of memory .",
"I would like to override strcpy and to supply my own implementation in my strcpy I want to do something and call to the original strcpy .",
"strcpy and relatives should not be used anymore http : blog.smartbear.com codereviewer c11-a-new-c-standard-aiming-at-safer-programming .",
"The problem persists in case of overlapping strings .",
"instead of strcpy in first one .",
"strcpy arguments ++i buffer -- strcpy arguments i++ buffer",
"Are you implementing your own strcpy function",
"I want to use strcat and strcpy .",
"strcpy doesn t allocate memory for you .",
"Like strcpy it is not a memory-safe operation .",
"The strcpy and the printf worked just fine .",
"strcpy is passed NULL program crashes .",
"What is the difference between memcpy and strcpy",
"strcpy is deprecated so use strncpy .",
"Both strcpy and strncpy are declared in the cstring header .",
"Using std : : strcpy will solve your issue .",
"Some people seem to think that C s strcpy function is bad or evil .",
"1 This is correct behaviour for strcpy .",
"@gexicide Well the implementation should not be compared to strcpy by itself but to strcpy + strlen called back-to-back .",
"Actually what I really need is to check where-in my code there is an overlapping between the src and dest that sent to strcpy .",
"It is really a pity C never got a half-decent standard-library for strings .",
"Main question is : should I ever use strcpy from cstring library",
"Like you I assume it would be for most cases but possibly for very small strings strcpy may end up being faster .",
"questions 32136185 difference-between-strcpy-and-strcpy-s 2 answers .. . .. . I m working on a project that is basically controlling a parking lot .",
"strdup ftw no need to use malloc and that nasty strcpy",
"I have a question about strcpy and strcat .",
"No need for strcpy strcat and they are not appropriate in this context anyway .",
"The behavior of strcpy is officially undefined if source and destination overlap .",
"strcpy gives undefined-behavior if the buffers overlap .",
"Instead use strcpy together with a buffer size check .",
"So that the strncpy is more secure than strcpy",
"strcpy is not complicated you could rite your own .. .",
"Don t see how just using strcpy .",
"If you think strcpy is okay but not here please explain .",
"With strcpy this can happen with strncpy this will never happen .",
"As the quote says it wasn t designed as a bounded strcpy .",
"In the situation you describe strcpy is a good choice .",
"strcpy stops when it encounters a NULL memcpy does not .",
"Why don t you create a new strcpy instead",
"Your use of strcpy in this example is ok .",
"As everybody said strcpy is very insecure .",
"I want to update this function to use strcpy and to remove some of the ugly .",
"If you want to copy a string into an array use strcpy .",
"The real problem is that you were not using strcpy correctly .",
"You are passing parameters to strcpy in the wrong order .",
"strcpy k- b- review review MAXSTRING -- strcpy k- b- review index review MAXSTRING-1",
"The C standard states that the behavior of strcpy is undefined http : www.catb.org jargon html N nasal-demons.html when the source and destination objects overlap .",
"Shouldn t a respected library function like strcpy empty that memory of S 0 once it s use is over",
"According to this http : stackoverflow.com questions 8821343 concatenate-string-with-strcpy comment11012823 8821378 StackOverflow comment strncpy should never be used with a non-fixed length array .",
"You cannot copy a string to a NULL pointer as in char cpy NULL .. . strcpy cpy save .",
"The strcpy don t check the upper bound for destination string when copy string strncpy will check it .",
"This is for memmove but I believe it can be adapted for strcpy : stackoverflow.com questions 4023320 http : stackoverflow.com questions 4023320 how-to-implement-memmove-in-standard-c-without-an-intermediate-copy 4023563 4023563",
"We have 2 versions for copy string from one to another 1 strcpy 2 strncpy These two versions is used for fixed and non-fixed length array .",
"You could probably use memmove if you expect the strings to be overlapping .",
"It s a general misconception that strncpy is safer than strcpy .",
"What are the advantages of using strncpy over strcpy",
"Please use them in lieu of older functions such as strcpy .",
"The fact remains that strncpy is not a safer version of strcpy .",
"strcpy rssiResult rssi Can t rssiResult be a char-pointer",
"I often use strcat instead of strcpy in pgms like : .. . .. . I cannot think of cases where strcpy could not be replaced by strcat .",
"See http : linux.die.net man 3 strcpy : .. . .. . char strcpy char dest const char src .. . .. . dest means destination src means source .",
"You can only use library functions to handle strings in C :",
"And in some point of my code I use the function strcpy but I am getting an error saying that this function may be unsafe .",
"Also for b declared as char strcpy a b is not valid either .",
"Routine : .. . .. . The strcpy replicates the loss of information as each character is read from it .",
"Yes -- the behavior of strcpy is only defined if the source and dest don t overlap .",
"http : stackoverflow.com questions 12935371 how-is-strcpy-implemented for an example .",
"why strcpy makes segmentfault error by get save-as parameter",
"What do you think cpy points at to make it deserving of the target of a strcpy",
"you need to have the destination of strcpy be already allocated memory locations .",
": .. . .. . It s not strtok that s causing the problem it s the strcpy into address 0 .",
"Also read this http : stackoverflow.com questions 14020380 strcpy-vs-strdup",
"Refer : Why should you use strncpy instead of strcpy",
"@Ben You are linking to the strcpy documentation but @Zbynek refers to stpcpy .",
"It is not clear if this will be faster than using strcpy and then strlen as that functions are optimized for target-platform .",
"With older versions of the compiler there would be a lot better chance of the strcpy strlen winning .",
"2 I tried strcpy from an array that was not NUL -terminated .",
"If you think strcpy is safe in certain situations say so .",
"Using strncpy as a general rule is fine but strcpy is safe in this case .",
"memcpy is rarely slower than strcpy or strncpy and often significantly faster .",
"if dest and src overlap strcpy will throw out a seg-fault",
"strcpy terminates when the source string s null terminator is found .",
"so- use that where you need is every call to strcpy in our code .",
"The null terminating character wasn t the issue I was trying to copy nothing to firstName using strcpy which caused the segmentation-fault ."
]
} | {
"confidence": [
61.79121017456055,
58.093387603759766,
56.94534683227539,
55.61137390136719,
55.58576202392578,
55.546791076660156,
55.049930572509766,
54.256500244140625,
53.91956329345703,
53.17848205566406,
52.70758819580078,
52.47478103637695,
52.4105110168457,
52.102867126464844,
51.42673110961914,
51.29656219482422,
50.89447784423828,
50.856937408447266,
50.571414947509766,
50.54121780395508
],
"content": [
"Question : I want to copy a null-terminated string to another location and want to know how long the copied string was . Efficiency is of utmost importance . There ist the strcpy function which can achieve this but it does not return how many characters are actually copied . Of course I could find this out by simply calling strlen afterwards to detect the length of the copied string but this would mean traversing the characters in the string again a second time although strcpy has to track how many characters it copies anyway . For performance reasons I do not want such a second traversal . I know that writing an own strcpy with a simple char-by-char copy is easy but I thought that the standard-library might apply magic which makes strcpy faster than a naive char-by-char implementation . So what is the best method to strcpy and receive the number of copied characters without traversing the string again Comment : strcpy is not complicated you could rite your own .. . Comment : Don t see how just using strcpy . If you know the length of string being copied then use that as strcpy will always copy all characters from source string including null so it really copies strlen src +1 chars . Since it s C++ you could use std : : string . Comment : You cold use std : : string s and not have to worry about this . Comment : Why are you so worried about traversing the strings twice Is this really causing a performance problem in your code or are you optimizing prematurely Comment : @Barmar : I am using this code in the core of a main-memory database management system implementation . It is likely to be in the hot loop of a lot of queries to be executed . .. . Answer : Standard C library does not offer a function that does what you want so you need to write your own . Fortunately it s not too complicated : .. . .. . Demo . http : ideone.com TRugTd .. . .. . The above implementation is lifted from K R with a small modification : rather than using src directly it makes a copy before running the loop so that the length could be determined by subtracting the original src once the loop completes . Comment : Is such a naive char-by-char implementation as efficient as strcpy which might apply some platform-dependent magic Comment : @gexicide Well the implementation should not be compared to strcpy by itself but to strcpy + strlen called back-to-back . Although it is going to be as slow or slower than strcpy the chances that it would outperform strcpy + strlen are reasonably high especially for long strings when caching starts playing a major role . Comment : Looks like @gexicide is right : ideone.com PZTQu5 http : ideone.com PZTQu5",
"Question : I want to copy a null-terminated string to another location and want to know how long the copied string was . Efficiency is of utmost importance . There ist the strcpy function which can achieve this but it does not return how many characters are actually copied . Of course I could find this out by simply calling strlen afterwards to detect the length of the copied string but this would mean traversing the characters in the string again a second time although strcpy has to track how many characters it copies anyway . For performance reasons I do not want such a second traversal . I know that writing an own strcpy with a simple char-by-char copy is easy but I thought that the standard-library might apply magic which makes strcpy faster than a naive char-by-char implementation . So what is the best method to strcpy and receive the number of copied characters without traversing the string again Comment : strcpy is not complicated you could rite your own .. . Comment : Don t see how just using strcpy . If you know the length of string being copied then use that as strcpy will always copy all characters from source string including null so it really copies strlen src +1 chars . Since it s C++ you could use std : : string . Comment : You cold use std : : string s and not have to worry about this . Comment : Why are you so worried about traversing the strings twice Is this really causing a performance problem in your code or are you optimizing prematurely Comment : @Barmar : I am using this code in the core of a main-memory database management system implementation . It is likely to be in the hot loop of a lot of queries to be executed . .. . Answer : Many systems support stpcpy http : man7.org linux man-pages man3 stpcpy.3.html which returns pointer to the end of the destination . You can subtract original destination pointer and this way you ll get the length . Comment : Here http : linux.die.net man 3 strcpy it says that the char returned in the same as dest .. . Comment : @Ben You are linking to the strcpy documentation but @Zbynek refers to stpcpy . Comment : This would be indeed useful but I want to be platform independent . Does such a function exists in the standard-library Comment : @TommyA True .. . Comment : @gexicide : Unfortunately not basic C library without extensions is quite limited . I believe I saw something similar for windows too but forgot the name .",
"Question : Edit : I ve added the source for the example . .. . .. . I came across this example http : publib.boulder.ibm.com infocenter iadthelp v7r0 index.jsp topic com.ibm.etools.iseries.langref.doc rzan5mst269.htm : .. . .. . Which produced this output : .. . .. . Which makes me wonder why anyone would want this effect . It looks like it would be confusing . This program makes me think you could basically copy over someone s name eg . Tom Brokaw with Tom Bro763 . What are the advantages of using strncpy over strcpy Comment : I think you meant to ask Why on earth would anyone use strcpy instead of strncpy Comment : When I was a TA for a first semester programming course in C I assured my students that any usage of methods like getline would result in incorrect results when I graded them against carefully crafted inputs . : Comment : I think you ve misunderstood what the code actually does . Take a closer look . Comment : It is really a pity C never got a half-decent standard-library for strings . Comment : it s not THAT much of a pity . I mean it totally broke me in and made higher level languages MUCH more fun : .. . Answer : the strncpy is a safer version of strcpy as a matter of fact you should never use strcpy because its potential buffer-overflow vulnerability which makes you system vulnerable to all sort of attacks Comment : See lysator.liu.se c rat d11.html http : www.lysator.liu.se c rat d11.html : The strncpy function strncpy was initially introduced into the C library to deal with fixed-length name fields in structures such as directory entries . Such fields are not used in the same way as strings : the trailing null is unnecessary for a maximum-length field and setting trailing bytes for shorter names to null assures efficient field-wise comparisons . strncpy is not by origin a bounded strcpy and the Committee has preferred to recognize existing practice rather than alter the function to better suit it to such use .",
"Question : I want to copy a null-terminated string to another location and want to know how long the copied string was . Efficiency is of utmost importance . There ist the strcpy function which can achieve this but it does not return how many characters are actually copied . Of course I could find this out by simply calling strlen afterwards to detect the length of the copied string but this would mean traversing the characters in the string again a second time although strcpy has to track how many characters it copies anyway . For performance reasons I do not want such a second traversal . I know that writing an own strcpy with a simple char-by-char copy is easy but I thought that the standard-library might apply magic which makes strcpy faster than a naive char-by-char implementation . So what is the best method to strcpy and receive the number of copied characters without traversing the string again Comment : strcpy is not complicated you could rite your own .. . Comment : Don t see how just using strcpy . If you know the length of string being copied then use that as strcpy will always copy all characters from source string including null so it really copies strlen src +1 chars . Since it s C++ you could use std : : string . Comment : You cold use std : : string s and not have to worry about this . Comment : Why are you so worried about traversing the strings twice Is this really causing a performance problem in your code or are you optimizing prematurely Comment : @Barmar : I am using this code in the core of a main-memory database management system implementation . It is likely to be in the hot loop of a lot of queries to be executed . .. . Answer : I would use sprintf to do the job : .. . .. . It s hard to guess whether this will really be slower or faster than using strcpy followed by strlen though . With the Microsoft compiler for one example they recently did some work on the implementation of sprintf and such so on Intel it uses vector instructions and runs really fast . With older versions of the compiler there would be a lot better chance of the strcpy strlen winning . Comment : I imagine that parsing a format string might not be the fastest possible solution . Comment : @gexicide : But as noted in the answer it actually works out that with at least one widely-used implementation it s actually faster to do some string operations with sprintf and such than with the functions that seem like they should be faster in some cases by a fair margin . I can t find a link at the moment but STL mentioned it in a blog entry fairly recently . In any case it s parsing a two-character format string so unless the parser is really slow or the string being copied is exceptionally short it s not hard for it to be a win .",
"Question : Edit : I ve added the source for the example . .. . .. . I came across this example http : publib.boulder.ibm.com infocenter iadthelp v7r0 index.jsp topic com.ibm.etools.iseries.langref.doc rzan5mst269.htm : .. . .. . Which produced this output : .. . .. . Which makes me wonder why anyone would want this effect . It looks like it would be confusing . This program makes me think you could basically copy over someone s name eg . Tom Brokaw with Tom Bro763 . What are the advantages of using strncpy over strcpy Comment : I think you meant to ask Why on earth would anyone use strcpy instead of strncpy Comment : When I was a TA for a first semester programming course in C I assured my students that any usage of methods like getline would result in incorrect results when I graded them against carefully crafted inputs . : Comment : I think you ve misunderstood what the code actually does . Take a closer look . Comment : It is really a pity C never got a half-decent standard-library for strings . Comment : it s not THAT much of a pity . I mean it totally broke me in and made higher level languages MUCH more fun : .. . Answer : strncpy combats buffer-overflow by requiring you to put a length in it . strcpy depends on a trailing 0 which may not always occur . Secondly why you chose to only copy 5 characters on 7 character string is beyond me but it s producing expected behavior . It s only copying over the first n characters where n is the third argument . The n functions are all used as defensive coding against buffer overflows . Please use them in lieu of older functions such as strcpy . Comment : See lysator.liu.se c rat d11.html http : www.lysator.liu.se c rat d11.html : strncpy was initially introduced into the C library to deal with fixed-length name fields in structures such as directory entries . Such fields are not used in the same way as strings : the trailing null is unnecessary for a maximum-length field and setting trailing bytes for shorter names to null assures efficient field-wise comparisons . strncpy is not by origin a bounded strcpy and the Committee has preferred to recognize existing practice rather than alter the function to better suit it to such use . Comment : I am not sure why this is getting lots of up votes - strncpy was never intended as a safer alternative to strcpy and in fact isn t any safer as it doesn t zero termninate the string . It also has different functionality in that it pads up the supplied length with NUL chars . As caf says in his reply - it is for overwriting strings in a fixed size array . Comment : @chris Sinan : It s getting upvotes because the question was Why would you use strncpy instead of strcpy Not What is strncpy for There s a distinct difference . This answer addresses the former not the latter . Comment : The fact remains that strncpy is not a safer version of strcpy . Comment : @Sinan : I never said it was safer . It s defensive . It forces you to put in a length ergo making you think about what you re doing . There are better solutions but the fact remains that people would and do use strncpy instead of strcpy because it s a much more defensive function...which is what I said .",
"Question : I want to copy a null-terminated string to another location and want to know how long the copied string was . Efficiency is of utmost importance . There ist the strcpy function which can achieve this but it does not return how many characters are actually copied . Of course I could find this out by simply calling strlen afterwards to detect the length of the copied string but this would mean traversing the characters in the string again a second time although strcpy has to track how many characters it copies anyway . For performance reasons I do not want such a second traversal . I know that writing an own strcpy with a simple char-by-char copy is easy but I thought that the standard-library might apply magic which makes strcpy faster than a naive char-by-char implementation . So what is the best method to strcpy and receive the number of copied characters without traversing the string again Comment : strcpy is not complicated you could rite your own .. . Comment : Don t see how just using strcpy . If you know the length of string being copied then use that as strcpy will always copy all characters from source string including null so it really copies strlen src +1 chars . Since it s C++ you could use std : : string . Comment : You cold use std : : string s and not have to worry about this . Comment : Why are you so worried about traversing the strings twice Is this really causing a performance problem in your code or are you optimizing prematurely Comment : @Barmar : I am using this code in the core of a main-memory database management system implementation . It is likely to be in the hot loop of a lot of queries to be executed . .. . Answer : I would try this - use strlen and then memcpy but as usual when speed is your target you better test it for target platforms as there could be many factors that is difficult to count in theory . Added memcpy to Ben s speed test http : ideone.com HH7ZxI .. . .. . on gcc 5.1.0 with -O1 results are : .. . .. . part1 : 62181 - manual copy .. . part2 : 195093 - strcpy strlen .. . part3 : 45568 - strlen memcpy .. . .. . with -O2 results for part1 and part3 almost did not change but part2 changed dramattically : .. . .. . part1 : 62234 .. . part2 : 12129 .. . part3 : 45565 .. . .. . looks like on -O2 optimization compiler eliminated extra call to strlen and used cached value . Comment : Yep i agree now . Thanks for the good info sesh +1 .",
"Question : In an interview I was asked to write an implementation of strcpy and then fix it so that it properly handles overlapping strings . My implementation is below and it is very naive..how do I fix it so that a It detects overlapping strings and b after detecting..how do we deal with the overlap and proceed EDIT : .. . .. . So one possible implementation based on @Secure s answer is : .. . .. . If we don t rely on memmove then Comment : How is a b supposed to detect an overlap It merely tests the two addresses . Comment : You could do two copies : first copy to a local buffer with no chance of overlap then from the local buffer to the destination . Comment : @pmg : you could but then my strcpy would have to be allowed to fail ENOMEM . Comment : @Steve : right -- There ain t no such thing as a free lunch although doing two copies is very far from a free lunch in the first place : - Comment : Regarding your edit as an interviewer my very next question would be : Why would you not rely on memmove and instead trade a one-liner against an unmaintainable pointer handling mess .. . Answer : Note : Here b is the address of the source string and a is the address of the destination . With a b you wouldn t necessarily have an overlap . If .. . .. . then you have an overlap . However besides detecting overlap for the sake of interview a b should do fine for strcpy . The idea is this : .. . .. . If b is placed further in the memory b a then you can normally copy b into a . Parts of b will be overwritten but you are already past that part . If a is placed further in the memory a b it means that possibly by writing on the first location of a you have already overwritten a location in b with a higher index . In such a case you should copy in the opposite direction . So instead of copy from index 0 to strlen b -1 you should copy from strlen b -1 to 0 . If you are confused how that helps draw two overlapping arrays on paper and try to copy once from the beginning of the array and once from the end . Try this with the overlapping arrays both in cases a b and a b . Note if a b you don t need to actually copy anything and you can just return . Edit : I am not sure but reading the other solutions it seems like this answer may not be completely portable . Beware of that . Comment : if a b you could even just return : - strcpy takes pointers-to-non-volatile so there s no requirement to actually touch the memory . That said it s not worth adding code to optimize that absurd case . Comment : Yes how could I miss that I edited my answer Comment : @chux did you take the terminating NUL into account Comment : @chux right . Thanks for the comment .",
"Question : In an interview I was asked to write an implementation of strcpy and then fix it so that it properly handles overlapping strings . My implementation is below and it is very naive..how do I fix it so that a It detects overlapping strings and b after detecting..how do we deal with the overlap and proceed EDIT : .. . .. . So one possible implementation based on @Secure s answer is : .. . .. . If we don t rely on memmove then Comment : How is a b supposed to detect an overlap It merely tests the two addresses . Comment : You could do two copies : first copy to a local buffer with no chance of overlap then from the local buffer to the destination . Comment : @pmg : you could but then my strcpy would have to be allowed to fail ENOMEM . Comment : @Steve : right -- There ain t no such thing as a free lunch although doing two copies is very far from a free lunch in the first place : - Comment : Regarding your edit as an interviewer my very next question would be : Why would you not rely on memmove and instead trade a one-liner against an unmaintainable pointer handling mess .. . Answer : I was asked this in a recent interview . We don t have to detect overlap . We can write strcpy in such a way that overlapping addresses are taken care of . The key is to copy from the end of source string instead of from the start . Here is a quick code . EDIT : This only works when a b . For a b copy from the start . Comment : The problem persists in case of overlapping strings . Like memcpy you should copy from beginning or the end based on if the destination to copy has lower or higher address than the source respectively . Comment : +1 good point . How did I miss it Comment : 1 Code does not compile . 2 Suggest re-working answer code to use src dest throughout rather than a b . 3 strlen returns type size-t but then size-t i causes trouble with while i 0 test which is always true .",
"Question : I want to copy a null-terminated string to another location and want to know how long the copied string was . Efficiency is of utmost importance . There ist the strcpy function which can achieve this but it does not return how many characters are actually copied . Of course I could find this out by simply calling strlen afterwards to detect the length of the copied string but this would mean traversing the characters in the string again a second time although strcpy has to track how many characters it copies anyway . For performance reasons I do not want such a second traversal . I know that writing an own strcpy with a simple char-by-char copy is easy but I thought that the standard-library might apply magic which makes strcpy faster than a naive char-by-char implementation . So what is the best method to strcpy and receive the number of copied characters without traversing the string again Comment : strcpy is not complicated you could rite your own .. . Comment : Don t see how just using strcpy . If you know the length of string being copied then use that as strcpy will always copy all characters from source string including null so it really copies strlen src +1 chars . Since it s C++ you could use std : : string . Comment : You cold use std : : string s and not have to worry about this . Comment : Why are you so worried about traversing the strings twice Is this really causing a performance problem in your code or are you optimizing prematurely Comment : @Barmar : I am using this code in the core of a main-memory database management system implementation . It is likely to be in the hot loop of a lot of queries to be executed . .. . Answer : If you really need this it would be very easy to write your own : .. . .. . Here is a live example . http : ideone.com Pjm5YC Comment : It is not clear if this will be faster than using strcpy and then strlen as that functions are optimized for target-platform . Comment : @Slava The OP is worrying about traversing the string twice This solves this problem Comment : @JerryCoffin Thanks edited . Comment : @Ben he worries about speed and that traversing twice may slow it down not to avoid double traverse by any cost Comment : @Slava ok looks like some magic stuff is definitally going on : ideone.com PZTQu5 http : ideone.com PZTQu5",
"Question : Edit : I ve added the source for the example . .. . .. . I came across this example http : publib.boulder.ibm.com infocenter iadthelp v7r0 index.jsp topic com.ibm.etools.iseries.langref.doc rzan5mst269.htm : .. . .. . Which produced this output : .. . .. . Which makes me wonder why anyone would want this effect . It looks like it would be confusing . This program makes me think you could basically copy over someone s name eg . Tom Brokaw with Tom Bro763 . What are the advantages of using strncpy over strcpy Comment : I think you meant to ask Why on earth would anyone use strcpy instead of strncpy Comment : When I was a TA for a first semester programming course in C I assured my students that any usage of methods like getline would result in incorrect results when I graded them against carefully crafted inputs . : Comment : I think you ve misunderstood what the code actually does . Take a closer look . Comment : It is really a pity C never got a half-decent standard-library for strings . Comment : it s not THAT much of a pity . I mean it totally broke me in and made higher level languages MUCH more fun : .. . Answer : As everybody said strcpy is very insecure . Secure Programming Lint Splint http : www.splint.org would actually warn you if you use strcpy instead of strncpy because of its vulnerabilities . Comment : The tragedy being that it doesn t warn you about using strncpy despite its vulnerabilities . Comment : strcpy can be used perfectly safely if you re careful i.e . if you know that the target array is big enough . Contrast this with scanf s .. . and gets neither of which can be used safely unless you have complete control over what will appear on standard input gets was even removed from the language by the 2011 ISO C standard .",
"Question : Some people seem to think that C s strcpy function is bad or evil . While I admit that it s usually better to use strncpy in order to avoid buffer overflows the following an implementation of the strdup function for those not lucky enough to have it safely uses strcpy and should never overflow : .. . .. . s2 is guaranteed to have enough space to store s1 and using strcpy saves us from having to store the strlen result in another function to use later as the unnecessary in this case length parameter to strncpy . Yet some people write this function with strncpy or even memcpy which both require a length parameter . I would like to know what people think about this . If you think strcpy is safe in certain situations say so . If you have a good reason not to use strcpy in this situation please give it - I d like to know why it might be better to use strncpy or memcpy in situations like this . If you think strcpy is okay but not here please explain . Basically I just want to know why some people use memcpy when others use strcpy and still others use plain strncpy . Is there any logic to preferring one over the three disregarding the buffer checks of the first two Comment : ...or should this be community wiki I forget . Comment : In multi-threaded environment it s rarely reasonable for every library function to handle locking itself . Comment : Since strlen may segfault or return an unreasonably large value on an improperly terminated s1 your strdup is not safe . Comment : If malloc changes s1 then there is no guarantee that the buffer will be large enough when you later get around to copying into it with strcpy . Suppose s1 is a pointer to a string maintained internally by the memory-management system -- maybe the last time malloc was called . .. . Answer : Your code is terribly inefficient because it runs through the string twice to copy it . Once in strlen . Then again in strcpy . And you don t check s1 for NULL . Storing the length in some additional variable costs you about nothing while running through each and every string twice to copy it is a cardinal sin . Comment : Since the function doesn t get told how long the string is how do you avoid the double traversal AFAICS there isn t a way so terribly inefficient is inaccurate . Comment : agree it is inefficient . If you pass the already known length to memcpy you remove second scan of the string for 0 Comment : In C if there is any chance to do so you should cache a once determined string-length if the string has not been modified in the meantime Comment : And that s why you should use pascal-style strings - struct size-t len char str",
"Question : In an interview I was asked to write an implementation of strcpy and then fix it so that it properly handles overlapping strings . My implementation is below and it is very naive..how do I fix it so that a It detects overlapping strings and b after detecting..how do we deal with the overlap and proceed EDIT : .. . .. . So one possible implementation based on @Secure s answer is : .. . .. . If we don t rely on memmove then Comment : How is a b supposed to detect an overlap It merely tests the two addresses . Comment : You could do two copies : first copy to a local buffer with no chance of overlap then from the local buffer to the destination . Comment : @pmg : you could but then my strcpy would have to be allowed to fail ENOMEM . Comment : @Steve : right -- There ain t no such thing as a free lunch although doing two copies is very far from a free lunch in the first place : - Comment : Regarding your edit as an interviewer my very next question would be : Why would you not rely on memmove and instead trade a one-liner against an unmaintainable pointer handling mess .. . Answer : Even without using relational pointer comparisons memmove or equivalent it is possible to code a version of strcpy which will be performed as an strlen and memcpy in the non-overlapping case and as a top-down copy in the overlapping case . The key is to exploit the fact that if the first byte of the destination is read and then replaced with zero calling strlen on the source and adding to the source pointer the value that was returned will yield a legitimate pointer which will equal the start of the destination in the troublesome overlap case . If the source and destination are different objects the source plus strlen pointer may be safely computed and observed to be unequal to the destination . In the event that adding the string-length to the source pointer yields the destination pointer replacing the zero byte with the earlier-read value and calling strlen on the destination will allow code to determine the ending address of the source and destination strings . Further the length of the source string will indicate the distance between the pointers . If this value is large probably greater than 16 or so code may efficiently subdivide the move operation into a top-down sequence of memcpy operations . Otherwise the string may be copied with a top-down loop of single-byte copy operations or with a sequence of memcpy to source to buffer memcpy buffer to destination operations if the per-byte cost of a large memcpy is less than half that of an individual-character-copy loop using a 256-byte buffer may be a useful optimization .",
"Question : Background : I have a small routine that mimics fgets character 2 fp except it takes a character from a string instead of a stream . newBuff is dynamically allocated string passed as a parameter and character is declared as char character 2 . Routine : .. . .. . The strcpy replicates the loss of information as each character is read from it . Problem : Valgrind does warns me about this activity Source and destination overlap in strcpy 0x419b818 0x419b819 . Should I worry about this warning .. . Answer : The behavior of strcpy is officially undefined if source and destination overlap . From the manpage for memcpy comes a suggestion : .. . .. . The memcpy function copies n bytes from memory area s2 to memory area s1 . If s1 and s2 overlap behavior is undefined . Applications in which s1 and s2 might overlap should use memmove 3 instead . Comment : Regardless of how it s implemented the behavior is undefined . This is stated explicitly in the standard . Comment : strcpy gives undefined-behavior if the buffers overlap . memcpy does the same but is otherwise irrelevant . Comment : OK my local man page for strcpy doesn t contain that warning but the memcpy one does . Comment : The only functions in the C standard that accept pointers to overlapping memory regions for reading and writing are memmove and wmemmove . For everything else including snprintf the behavior is undefined .",
"Question : Edit : I ve added the source for the example . .. . .. . I came across this example http : publib.boulder.ibm.com infocenter iadthelp v7r0 index.jsp topic com.ibm.etools.iseries.langref.doc rzan5mst269.htm : .. . .. . Which produced this output : .. . .. . Which makes me wonder why anyone would want this effect . It looks like it would be confusing . This program makes me think you could basically copy over someone s name eg . Tom Brokaw with Tom Bro763 . What are the advantages of using strncpy over strcpy Comment : I think you meant to ask Why on earth would anyone use strcpy instead of strncpy Comment : When I was a TA for a first semester programming course in C I assured my students that any usage of methods like getline would result in incorrect results when I graded them against carefully crafted inputs . : Comment : I think you ve misunderstood what the code actually does . Take a closer look . Comment : It is really a pity C never got a half-decent standard-library for strings . Comment : it s not THAT much of a pity . I mean it totally broke me in and made higher level languages MUCH more fun : .. . Answer : That depends on our requirement . For windows-users .. . .. . We use strncpy whenever we don t want to copy entire string or we want to copy only n number of characters . But strcpy copies the entire string including terminating null character . These links will help you more to know about strcpy and strncpy and where we can use . about strcpy https : msdn.microsoft.com en-us library kk6xf663.aspx .. . .. . about strncpy https : msdn.microsoft.com en-us library xdsywd25.aspx",
"Question : In an interview I was asked to write an implementation of strcpy and then fix it so that it properly handles overlapping strings . My implementation is below and it is very naive..how do I fix it so that a It detects overlapping strings and b after detecting..how do we deal with the overlap and proceed EDIT : .. . .. . So one possible implementation based on @Secure s answer is : .. . .. . If we don t rely on memmove then Comment : How is a b supposed to detect an overlap It merely tests the two addresses . Comment : You could do two copies : first copy to a local buffer with no chance of overlap then from the local buffer to the destination . Comment : @pmg : you could but then my strcpy would have to be allowed to fail ENOMEM . Comment : @Steve : right -- There ain t no such thing as a free lunch although doing two copies is very far from a free lunch in the first place : - Comment : Regarding your edit as an interviewer my very next question would be : Why would you not rely on memmove and instead trade a one-liner against an unmaintainable pointer handling mess .. . Answer : If these two strings overlap then while copying you ll run over the original a or b pointers . Assuming that strcpy a b roughly means a - b i.e . the first parameter is the destination of the copy then you only check whether the copy pointer reaches b s position . You only need to save the b original position and while copying check you haven t reached it . Also don t write the trailing zero if you have reached that position . This algorithm just stops copying . Maybe you want to do something else such as marking the error condition or add an end-of-the string mark to the previous position though failing silently as the algorithm does at the moment isn t the best option . Hope this helps .",
"Question : Main question is : should I ever use strcpy from cstring library I often use strcat instead of strcpy in pgms like : .. . .. . I cannot think of cases where strcpy could not be replaced by strcat . Are there any Comment : When one does not initialise the string with a null string in the first place Comment : I you are going to make that code obfuscation a bad habit you can use strcat instead of strcpy Comment : strcpy and strcat carry different semantics although by coincidence they may produce identical results . Code is more readable if you convey as much information as you can . Using strcpy to copy and strcat to append strings is recommended . Comment : Q : I often use - and + instead of ordinary assignment . Eg . i - i i + 42 I think I could always replace i 42 with the above . Can you think of a reason I shouldn t . A : Yes I can several . But if you re seriously asking that question my answers are probably going to fall on deaf ears . Comment : Can you explain why you like to use strcat when strcpy would do .. . Answer : Are there any cases where strcpy can t be replaced by strcat after setting the initial character of the target to 0 I don t think so . Does that mean you should always use strcat when strcpy would do the job Absolutely not . strcpy makes no assumptions about the initial contents of the target array . strcat requires the target to contain a terminating 0 null character -- and if it s not in the initial position it will scan for it to and possibly beyond the end of the array . It s true that .. . .. . is equivalent to .. . .. . so you can always use strcat instead of strcpy . That doesn t mean you should . strcpy is commonly used to replace the contents of an array : .. . .. . Replacing that last line with : .. . .. . would just make the code more verbose and more difficult to read . If you want to copy a string into an array use strcpy . If you want to concatenate a string onto an existing one use strcat .",
"Question : Edit : I ve added the source for the example . .. . .. . I came across this example http : publib.boulder.ibm.com infocenter iadthelp v7r0 index.jsp topic com.ibm.etools.iseries.langref.doc rzan5mst269.htm : .. . .. . Which produced this output : .. . .. . Which makes me wonder why anyone would want this effect . It looks like it would be confusing . This program makes me think you could basically copy over someone s name eg . Tom Brokaw with Tom Bro763 . What are the advantages of using strncpy over strcpy Comment : I think you meant to ask Why on earth would anyone use strcpy instead of strncpy Comment : When I was a TA for a first semester programming course in C I assured my students that any usage of methods like getline would result in incorrect results when I graded them against carefully crafted inputs . : Comment : I think you ve misunderstood what the code actually does . Take a closer look . Comment : It is really a pity C never got a half-decent standard-library for strings . Comment : it s not THAT much of a pity . I mean it totally broke me in and made higher level languages MUCH more fun : .. . Answer : The strncpy function is the safer one : you have to pass the maximum length the destination buffer can accept . Otherwise it could happen that the source string is not correctly 0 terminated in which case the strcpy function could write more characters to destination corrupting anything which is in the memory after the destination buffer . This is the buffer-overrun problem used in many exploits .. . .. . Also for POSIX API functions like read which does not put the terminating 0 in the buffer but returns the number of bytes read you will either manually put the 0 or copy it using strncpy . In your example code index is actually not an index but a count - it tells how many characters at most to copy from source to destination . If there is no null byte among the first n bytes of source the string placed in destination will not be null-terminated",
"Question : Some people seem to think that C s strcpy function is bad or evil . While I admit that it s usually better to use strncpy in order to avoid buffer overflows the following an implementation of the strdup function for those not lucky enough to have it safely uses strcpy and should never overflow : .. . .. . s2 is guaranteed to have enough space to store s1 and using strcpy saves us from having to store the strlen result in another function to use later as the unnecessary in this case length parameter to strncpy . Yet some people write this function with strncpy or even memcpy which both require a length parameter . I would like to know what people think about this . If you think strcpy is safe in certain situations say so . If you have a good reason not to use strcpy in this situation please give it - I d like to know why it might be better to use strncpy or memcpy in situations like this . If you think strcpy is okay but not here please explain . Basically I just want to know why some people use memcpy when others use strcpy and still others use plain strncpy . Is there any logic to preferring one over the three disregarding the buffer checks of the first two Comment : ...or should this be community wiki I forget . Comment : In multi-threaded environment it s rarely reasonable for every library function to handle locking itself . Comment : Since strlen may segfault or return an unreasonably large value on an improperly terminated s1 your strdup is not safe . Comment : If malloc changes s1 then there is no guarantee that the buffer will be large enough when you later get around to copying into it with strcpy . Suppose s1 is a pointer to a string maintained internally by the memory-management system -- maybe the last time malloc was called . .. . Answer : The reason why people use strncpy not strcpy is because strings are not always null-terminated and it s very easy to overflow the buffer the space you have allocated for the string with strcpy and overwrite some unrelated bit of memory . With strcpy this can happen with strncpy this will never happen . That is why strcpy is considered unsafe . Evil might be a little strong . Comment : strncpy is also dangerous because it does NOT guarantee that the destination string is 0-erminated Better use strncpy s though I m not sure whether these functions are MS specific . Comment : strncpy only keeps you safe if you pass in the right length . If you re strncpying to a dst which is not the start of a buffer you still have to calculate the available space . This isn t fundamentally different from using strlen to check your strcpy will fit : it s still subtraction . But less code . Comment : @jn - strncpy s is a proposed addition to ISO ANSI C ISO IEC TR 24731-1 except that MS doesn t implement it quite this way . Comment : strings are not always null-terminated is a false statement . A string by definition is a sequence of characters that s null-terminated . If you have a char buffer without a null terminator it is by definition not a string . Comment : Except that in the example we know the string is null-terminated and that we have enough space . Using strncpy as a general rule is fine but strcpy is safe in this case .",
"Question : Some people seem to think that C s strcpy function is bad or evil . While I admit that it s usually better to use strncpy in order to avoid buffer overflows the following an implementation of the strdup function for those not lucky enough to have it safely uses strcpy and should never overflow : .. . .. . s2 is guaranteed to have enough space to store s1 and using strcpy saves us from having to store the strlen result in another function to use later as the unnecessary in this case length parameter to strncpy . Yet some people write this function with strncpy or even memcpy which both require a length parameter . I would like to know what people think about this . If you think strcpy is safe in certain situations say so . If you have a good reason not to use strcpy in this situation please give it - I d like to know why it might be better to use strncpy or memcpy in situations like this . If you think strcpy is okay but not here please explain . Basically I just want to know why some people use memcpy when others use strcpy and still others use plain strncpy . Is there any logic to preferring one over the three disregarding the buffer checks of the first two Comment : ...or should this be community wiki I forget . Comment : In multi-threaded environment it s rarely reasonable for every library function to handle locking itself . Comment : Since strlen may segfault or return an unreasonably large value on an improperly terminated s1 your strdup is not safe . Comment : If malloc changes s1 then there is no guarantee that the buffer will be large enough when you later get around to copying into it with strcpy . Suppose s1 is a pointer to a string maintained internally by the memory-management system -- maybe the last time malloc was called . .. . Answer : Problems : .. . .. . 1 . s1 is unterminated strlen causes the access of unallocated memory program crashes . 2 . s1 is unterminated strlen while not causing the access of unallocated memory access memory from another part of your application . It s returned to the user security issue or parsed by another part of your program heisenbug appears . 3 . s1 is unterminated strlen results in a malloc which the system can t satisfy returns NULL . strcpy is passed NULL program crashes . 4 . s1 is unterminated strlen results in a malloc which is very large system allocs far too much memory to perform the task at hand becomes unstable . 5 . In the best case the code is inefficient strlen requires access to every element in the string . There are probably other problems.. . Look null termination isn t always a bad idea . There are situations where for computational efficiency or to reduce storage requirements it makes sense . For writing general purpose code e.g . business logic does it make sense No . Comment : Your answer doesn t make sense . Either you re assuming nul-terminated strings for your application or you should be using a string library even if it s just a quickly put-together struct size-t len char str and a few functions to work with them . Why should business logic be at all related to how your code handles strings If nul-termination is a danger it s a danger for every str standard-library function .",
"Question : Some people seem to think that C s strcpy function is bad or evil . While I admit that it s usually better to use strncpy in order to avoid buffer overflows the following an implementation of the strdup function for those not lucky enough to have it safely uses strcpy and should never overflow : .. . .. . s2 is guaranteed to have enough space to store s1 and using strcpy saves us from having to store the strlen result in another function to use later as the unnecessary in this case length parameter to strncpy . Yet some people write this function with strncpy or even memcpy which both require a length parameter . I would like to know what people think about this . If you think strcpy is safe in certain situations say so . If you have a good reason not to use strcpy in this situation please give it - I d like to know why it might be better to use strncpy or memcpy in situations like this . If you think strcpy is okay but not here please explain . Basically I just want to know why some people use memcpy when others use strcpy and still others use plain strncpy . Is there any logic to preferring one over the three disregarding the buffer checks of the first two Comment : ...or should this be community wiki I forget . Comment : In multi-threaded environment it s rarely reasonable for every library function to handle locking itself . Comment : Since strlen may segfault or return an unreasonably large value on an improperly terminated s1 your strdup is not safe . Comment : If malloc changes s1 then there is no guarantee that the buffer will be large enough when you later get around to copying into it with strcpy . Suppose s1 is a pointer to a string maintained internally by the memory-management system -- maybe the last time malloc was called . .. . Answer : memcpy can be faster than strcpy and strncpy because it does not have to compare each copied byte with 0 and because it already knows the length of the copied object . It can be implemented in a similar way with the Duff s device http : en.wikipedia.org wiki Duff 27s 5Fdevice or use assembler instructions that copy several bytes at a time like movsw and movsd Comment : dmityugov Good Answer Comment : This is certainly the reason for for using memcpy here it has nothing to do with safety . It would be an interesting performance analysis to determine if memcpy here is actually faster or not . Like you I assume it would be for most cases but possibly for very small strings strcpy may end up being faster ."
]
} | [
"yes-answer-long",
"yes-answer-short"
] | null-terminated | UNK_RELATION |
hue@interface@21 | hue -- hue is a web @placeholder for analyzing data with apache hadoop . | {
"confidence": [
44.31003952026367,
43.28480529785156,
43.04547882080078,
42.940086364746094,
42.6471061706543,
40.678955078125,
39.917659759521484,
39.64591598510742,
39.284786224365234,
39.284786224365234,
38.72956085205078,
38.62068176269531,
38.271644592285156,
38.259552001953125,
38.184852600097656,
38.14118576049805,
38.10146713256836,
37.904449462890625,
36.968284606933594,
36.968284606933594,
36.39732360839844,
36.39732360839844,
36.39732360839844,
36.16990661621094,
35.94304656982422,
35.94304656982422,
35.9278564453125,
35.9278564453125,
35.84745788574219,
35.62310791015625,
35.49921798706055,
35.49921798706055,
34.829612731933594,
34.71427536010742,
34.62449645996094,
34.62449645996094,
34.62449645996094,
34.62449645996094,
34.503448486328125,
34.47398376464844,
34.35624694824219,
34.33116912841797,
34.33116912841797,
33.82868576049805,
33.78472900390625,
33.761436462402344,
33.6461296081543,
33.6461296081543,
33.59925842285156,
33.59925842285156,
33.59925842285156,
33.59925842285156,
33.592681884765625,
33.52625274658203,
33.52625274658203,
33.52625274658203,
33.52625274658203,
33.52625274658203,
33.52625274658203,
33.52625274658203,
33.52625274658203,
33.52625274658203,
33.52625274658203,
33.49140167236328,
33.38507080078125,
33.272865295410156,
33.245208740234375,
33.19392013549805,
33.19392013549805,
32.75949478149414,
32.50101852416992,
32.50101852416992,
32.50101852416992,
32.50101852416992,
32.50101852416992,
32.399173736572266,
32.399173736572266,
32.399173736572266,
32.399173736572266,
32.399173736572266,
32.370487213134766,
32.370487213134766,
32.28327178955078,
32.28327178955078,
32.28327178955078,
32.24944305419922,
32.15711975097656,
32.15711975097656,
31.584930419921875,
31.530723571777344,
31.319854736328125,
31.27224349975586,
31.27224349975586,
31.27224349975586,
31.27224349975586,
31.27224349975586,
31.258037567138672,
31.258037567138672,
31.258037567138672,
31.115158081054688
],
"content": [
"Hue is a Web Server Django based which acts as a view on top of Hadoop .",
"Hue is just a web server that you point at a hadoop installation .",
"Also Hue should run outside of Hadoop cluster .",
"rm desktop libs hadoop java src main java org apache hadoop thriftfs ThriftJobTrackerPlugin.java .. . .. . 10 . build hue make apps .. . .. . 11 . configure hue vi desktop conf pseudo-distributed.ini .. . .. . 12 . run hue server in dev mode build env bin hue runserver 0.0.0.0 : 8000",
"I think the original query was about installing Hue on Apache Hadoop and not on 3rd party Hadoop like Cloudera HortonWorks .",
"It is mentioned in the Introduction of the hue Apple SDK.. . To develop for Hue you require the Philips Hue Personal Wireless Lighting System or a suitable hue Emulator .",
"Ended up with Apache Hue http : gethue.com .",
"To build and run hue 3.6.0 with apache hadoop 2.4.1 .. . .. . 1 . git-clone https : github.com cloudera hue.git Notice",
"Has anyone tried succeeded in installing Hue on Hadoop without Cloudera",
"Hue is also packaged in BigTop http : bigtop.apache.org and so based on Vanilla Hadoop .",
"added my instruction to github cloudera hue wiki github.com cloudera hue wiki https : github.com cloudera hue wiki",
"I am new to Hadoop and is currently trying to run Teragen using Apache Hue Oozie .",
"Hue API is easy .",
"http : gethue.com how-to-configure-hue-in-your-hadoop-cluster",
"It installed hue in usr local hue directory .. . 5 .",
"At this stage - from my experience at least - Hue will NOT run on a standard Apache Hadoop installation using standard Apache tools like Hive and Pig .",
"i m using the node-hue-api to control my hue system .",
"And the Hue by 65535 .",
"Which Hue version",
"Hue doesn t support BigTable .",
"I cannot see any error from Apache Hue .",
"Anyone try running Teragen using Apache Hue before",
"I am using HDP 2.4 Apache Hue 3.10 .",
"You can manually pair the lamps with a LivingColors remote a hue dimmer switch or a hue tap switch .",
"Is it a Hue version 3.7",
"The Hue version is 3.7.0 .",
"Writing Hue app you have to know Hue API giving answers to all your questions .",
"I am using HUE-Emulator http : steveyo.github.io Hue-Emulator to view the changes.Emulator is running on port 80 .",
"hue : -180 http : i.stack.imgur.com bGe2a.png .. . With hue adjusted to -78 green :",
"It would seem that the following is quite true : .. . .. . Per the install giude : http : cloudera.github.io hue docs-2.0.1 manual.html install hue .. . .. . NOTE : Hue requires the Hadoop contained in Cloudera s Distribution including Apache Hadoop CDH version 3 update 4 or later .",
"Is it possible to adjust Hue of the UIImage CGContextRef",
"Which Hue version are you using",
"You can make use of a hue emulator .",
"Fix and restart Hue .",
"I m considering buying some Philips Hue bulbs along with the Hue Tap to control them .",
"The developers meethue http : www.developers.meethue.com website is for 3rd party Hue developers who wish to program apps for Hue .",
"Yeah I am sure about IP of the hue I thought the hue secret is a random string isn t it like so",
"I am trying to get Hue to run on a custom location something like : hue .",
"Checkout slides 19 5 Hue is getting everywhere and is compatible with Hadoop 0.20 1.2.0 2.2.0 : http : gethue.tumblr.com post 69738839675 hue-goes-to-paris-hug-france .",
"I am using Cloudera s Hue .",
"I have a question for all the developers who are working with the Philips Hue-API .",
"Use the remote accessible api for HUE to control n Philips HUE Lights to accomplish a roomwide ambilight .",
"Steve .. . .. . Hue API is not fit to be used as Ambilight control facility since Hue API is not run real-time .",
"I ve been trying to search and see if the phillips hue bulbs can work without the hue bridge and just talk to it with a raspberry-pi and a .",
"Error encountered near token TOK TMP FILE .. . .. . I created db1 in the Metastore Manager as HUE user db1 and as HUE user admin and as HUE user db1 and nothing works .",
"Just run Hue Emulator for Windows jar file on your apple s device and open localhost : 8000 http : localhost : 8000 or : 80 api newdeveloper in your preferred web browser to access Hue Emulator by Steve .",
"You can also test your Hue JSON-based commands interactively using the debug clip.html that is on your hub and is documented on the Hue web site .",
"Its clearly possible since both the Hue website and IFTTT web channels can affect Hue lights from the public internet .",
"Based on the table given in the documentation the Hue s hue attribute doesn t map directly to HSV s hue .",
"I m trying to customize the Cloudera Hue user-interface by for example changing the About Hue page to contain more content .",
"However when I restart Hue in the cloudera manager and refresh the About Hue page I do not see the changes reflected .",
"It actually gives a hue change but it is completely different from Photoshop hue adjustment for example .",
"As part of one of my assignment I am trying to install and run Hue on my single node hadoop cluster apache distribution hadoop2.6.0 .",
"I am using Hue for accessing Hive Service .",
"I verified that the bridge of Philips Hue is working fine .",
"Can this problem be solved using Hue SDK",
"3 : Send the value to a Phillips Hue Bulbs .",
"For the record I m using the Philips Hue Light Bulbs .",
"I want to know whether Hue supports Bigtable .",
"I ran a query on HIVE database using HUE .",
"The Hue repo on github does not include oozie .",
"I have Hue and Tez-UI installed .",
"Also it has SUCCEEDED status in metadata section in Hue .",
"Hue API alone is not heavy but Hue API calls are server-side processed by API handlers to send calls via Zigbee master to Hue Lights with Zigbee hardware and protocol embedded .",
"You can also simply clone the source code Hue is open-source and Apache Licenced github : https : github.com cloudera hue and build the branch you want .",
"HUE SDK 2 .",
"So I tried launching HUE .",
"Other than that Hue is just a view on top of any Hadoop distribution and can be installed on any machine .",
"I m using Hadoop 2.2.6 mini cluster 1 Master and 3 slaves with Ambari 2.1.0 and Hue 3.8.1 Ubuntu 12.04 .",
"Therefore I have calculated hue atan2 Q I chroma sqrt I I + Q Q and then I chroma sin hue Q chorma cos hue .",
"Same to the Hue Home page no errors or warnings.. .",
"They are able todo this in the free philips-hue application .",
"This returns the json hue response I was looking for .",
"Simply rotate it by adding the hue rotation amount .",
"And I have problem with Hue - Hive Beeswax Editor .",
"In future it is probably best to post hue Java SDK issues on the GitHub site .",
"But a Hue app using the API is already polling the bridge at whatever the heartbeat is set to .",
"The whole Hue API and bridge system gives me goose bumps .",
"Is possible to run the Phillips Hue lights without the bridge device",
"Hue lights haven t been around that long and they last a long time .",
"That said if initial hue is 20 and you input an angle of value 10 the resulting hue value will be 30 and not 10 .",
"If there was a numerical range written I would compare my Hue value with the ranges and when the hue fell into a range e.g .",
"This question has been answered in the Philips Hue Dev Forum http : www.developers.meethue.com content how-access-hue-lamp-over-url",
"Here is my Python code for monitoring the reachability of my light bulbs using python-hue-client https : github.com adamcharnock python-hue-client :",
"The problem is that once I am in Hue if I click on different links they will be handled by cherrypy thus being sent to hostname request-uri instead of hostname hue request-uri .",
"When running HiveQL queries with TEZ Execution engine with success in Hue on Hortonworks the process is still marked as Running under Hue Job Browser Hadoop ResourceManager UI .",
"Ya i know that HUE have an easy API.But there is issues with it like .",
"The code taking Username 1i71xQmdLjajcqAk but it should be newdeveloper according to the HUE emulator .",
".json Hue API calls are easy PUT GET SET .. . .. . .. . Dialog + ncurses + curl + CLI + bash is easy .. . .. . Writing an app for Apple is not easy so I write Hue API apps for Android and Windows - Hue Ambilight Smart TV for Android Windows",
"I am using the Hue filter to change the hue of an image : .. . .. . I have the Hue number I wish to use from Photoshop but it doesn t correspond to the results I get from iOS .",
"This question already has an answer here : .. . .. . RGB to Philips Hue HSB questions 22564187 rgb-to-philips-hue-hsb 3 answers .. . .. . As I said before RGB to Philips Hue HSB http : stackoverflow.com questions 22564187 rgb-to-philips-hue-hsb I m still not giving up my hopes for converting a simple RGB value to a value Philips Hue will accept .",
"Hue 3.9 comes with Spark notebook beta 2 .",
"I have only played with Hue and Jupyter .",
"The Hue in HSL HSV color mode is an angular coordinate .",
"Downloaded latest hue tar file .. . 2 .",
"Suppose I have a color with a hue 69 .",
"This discovery is already implemented out there this way https : github.com peter-murray node-hue-api blob master hue-api bridge-discovery.js L31 .",
"@GaryKlasen No the Philips Hue API http : developers.meethue.com 1 lightsapi.html 16 set light state uses values of 0 255 for brightness and saturation and 0 65535 for the hue angle .",
"To get back to RGB calculate the new Cb and Cr or I Q using Cr chroma sin hue Cb chroma cos hue .",
".. . .. . Steps I have taken to troubleshoot this issue .. . .. . 1 I restarted HUE using below command : .. . .. . sudo service hue stop .. . .. . sudo service hue start .. . .. . 2 I tried looking at following directory file . etc hue - I could see there are two config folder ."
]
} | {
"confidence": [
59.065338134765625,
58.38823318481445,
57.25136184692383,
56.83207702636719,
55.2556037902832,
54.81805419921875,
48.09081268310547,
45.7154541015625,
45.04117202758789,
44.864227294921875,
44.82365417480469,
44.34390640258789,
44.20343017578125,
43.46208572387695,
43.314964294433594,
43.18396759033203,
42.5958251953125,
42.15288543701172,
41.247154235839844,
41.02043151855469
],
"content": [
"Question : null .. . Answer : I am working on Hadoop but searching for a better open-source HDFS explorer . Ended up with Apache Hue http : gethue.com . For Linux there are manuals but what about for Windows Comment : What is wrong with a terminal and hdfs dfs -ls Comment : Other than that Hue is just a view on top of any Hadoop distribution and can be installed on any machine . http : gethue.com how-to-configure-hue-in-your-hadoop-cluster Comment : @cricket 007 can you please give detailed idea . I am new to big data Comment : Hue is just a web server that you point at a hadoop installation . The details of the installation are too broad to cover on StackOverflow . Comment : Hue only works on Linux currently you would need a Virtual Machine or boot under connect to another OS",
"Question : Has anyone tried succeeded in installing Hue on Hadoop without Cloudera I have gotten to a point where I can reliably reproduce a hadoop cluster with hbase and hive and can set it all up in about 15 minutes . I d love to have Hue along with all this without having to go back and redo my setup with Cloudera . .. . Answer : To build and run hue 3.6.0 with apache hadoop 2.4.1 .. . .. . 1 . git-clone https : github.com cloudera hue.git Notice releases tag release-3.6.0 is unstable It s better to build from latest master . I built from Aug 7 87d6b2da1 - it s stable .. . .. . 2 . cd hue .. . .. . 3 . vi maven pom.xml .. . .. . 4 . change hadoop.version to 2.4.1 .. . 5 . replace hadoop-core with hadoop-common .. . 6 . set hadoop-test version to 1.2.1 .. . .. . 7 . remove files which need hadoop mr1 .. . .. . 8 . rm desktop libs hadoop java src main java org apache hadoop mapred ThriftJobTrackerPlugin.java .. . .. . 9 . rm desktop libs hadoop java src main java org apache hadoop thriftfs ThriftJobTrackerPlugin.java .. . .. . 10 . build hue make apps .. . .. . 11 . configure hue vi desktop conf pseudo-distributed.ini .. . .. . 12 . run hue server in dev mode build env bin hue runserver 0.0.0.0 : 8000 Comment : added my instruction to github cloudera hue wiki github.com cloudera hue wiki https : github.com cloudera hue wiki Comment : If you only use hive it s fine . But if you want to the other tools it s not enough . The Hue repo on github does not include oozie . Without Oozie hue can not connect with pig hbase spark and etc .",
"Question : Has anyone tried succeeded in installing Hue on Hadoop without Cloudera I have gotten to a point where I can reliably reproduce a hadoop cluster with hbase and hive and can set it all up in about 15 minutes . I d love to have Hue along with all this without having to go back and redo my setup with Cloudera . .. . Answer : Quote : ...without Cloudera s distribution your mileage might vary... . .. . .. . Indeed it will vary A LOT It would seem that the following is quite true : .. . .. . Per the install giude : http : cloudera.github.io hue docs-2.0.1 manual.html install hue .. . .. . NOTE : Hue requires the Hadoop contained in Cloudera s Distribution including Apache Hadoop CDH version 3 update 4 or later . I ve tried it and have run into walls with Hue trying to connect to Hive Pig and OOZIE . At this stage - from my experience at least - Hue will NOT run on a standard Apache Hadoop installation using standard Apache tools like Hive and Pig . It must be a vintage of Cloudera s Distribution . If anyone has any other positive experiences installing Hue outside of the Cloudera s Distribution I d be quite interested to hear about them.. .",
"Question : Has anyone tried succeeded in installing Hue on Hadoop without Cloudera I have gotten to a point where I can reliably reproduce a hadoop cluster with hbase and hive and can set it all up in about 15 minutes . I d love to have Hue along with all this without having to go back and redo my setup with Cloudera . .. . Answer : Checkout slides 19 5 Hue is getting everywhere and is compatible with Hadoop 0.20 1.2.0 2.2.0 : http : gethue.tumblr.com post 69738839675 hue-goes-to-paris-hug-france . Hue has tarball releases releases http : gethue.tumblr.com tagged release that you are free to install . You can also simply clone the source code Hue is open-source and Apache Licenced github : https : github.com cloudera hue and build the branch you want . Upstream documentation is here http : cloudera.github.io hue docs-3.5.0 index.html or CDH s one here http : www.cloudera.com content cloudera-content cloudera-docs CDH4 latest CDH4-Installation-Guide cdh4ig hue installation.html . Hue is also packaged in BigTop http : bigtop.apache.org and so based on Vanilla Hadoop . Hue is a Web Server Django based which acts as a view on top of Hadoop . So Hue just needs to be installed and then configured by adding the hosts of NameNode JobTracker Resource Manager Oozie HiveServer.. . etc in its hue.ini . Also as detailed on the gehue.com releases http : gethue.tumblr.com tagged release the version you need might depend on your Hive version . Notice that without Cloudera s distribution your mileage might vary but feel free to chime-in on the Hue user-list http : groups.google.com a cloudera.org group hue-user or gethue.com http : gethue.com .. . .. . We are also seeing for improving Hue setup with Amazon AWS EMR Comment : gethue.com has now guides for many distributions in its Download and Configure menu",
"Question : Has anyone tried succeeded in installing Hue on Hadoop without Cloudera I have gotten to a point where I can reliably reproduce a hadoop cluster with hbase and hive and can set it all up in about 15 minutes . I d love to have Hue along with all this without having to go back and redo my setup with Cloudera . .. . Answer : Follow the Hue manual installation steps http : docs.hortonworks.com HDPDocuments HDP2 HDP-2.0.6.0 bk installing manually book content rpm-chap-hue.html from Hortonworks documentation it will take you step-by-step on how to do it manually . Comment : Doesn t it assume that HDP repo yum install hue has to be configured . I think the original query was about installing Hue on Apache Hadoop and not on 3rd party Hadoop like Cloudera HortonWorks . Comment : Yes this does assume that HDP is configured however you can skip that and grab the rpm-s yourself and continue with the installation .",
"Question : null .. . Answer : I am new to Hadoop and is currently trying to run Teragen using Apache Hue Oozie . My workflow file is as follow .. . .. . When i submit this job my job is successful but with reduce task instead of map task . My result file is created but is an empty file . I cannot see any error from Apache Hue . Anyone try running Teragen using Apache Hue before I am using HDP 2.4 Apache Hue 3.10 . Cw",
"Question : I want to know whether Hue supports Bigtable . It mostly depends on does Hue use coprocessor feature in HBase . Also Hue should run outside of Hadoop cluster . It means there is no access to ZooKeeper . .. . Answer : Hue doesn t support BigTable . After some search I discovered a quora post about Hbase viewers and spot h-rider on github . It s open-source project . It looks like abandoned though after I spent 3 hours I was able to connect to BigTable see tables and rows Comment : If Google BigTable uses HBase Thrift V1 API Hue can connect to it with its HBase Browser app gethue.com the-web-ui-for-hbase-hbase-browser http : gethue.com the-web-ui-for-hbase-hbase-browser Comment : Google Bigtable does support thrift : github.com GoogleCloudPlatform cloud-bigtable-examples tree https : github.com GoogleCloudPlatform cloud-bigtable-examples tree master python thrift I m not sure if it s v1 .",
"Question : null .. . Answer : I have a cluster of two machines and using apache hbase and apache hadoop . I have to use hue so that I can interect with hbase or hdfs through GUI . I have installed it successfully on my machine ubuntu 14.04 but it is showing nothing about hdfs or tables etc . and gives error like .. . .. . 1.oozie server is not running .. . .. . 2.could not connect to local : 9090 .. . .. . 3 . HBase thrift server cannot be contacted .. . .. . How to do setting og hue so that it should connect to my running cluster . Comment : for oozie setup apache oozie start hbase thrift server from hbase bin start-daemons.sh and please provide more detals or screenshot of 2nd error Comment : In addition why don t you use an open-source distribution like cloudera instead of install everything by hand Comment : I have a running cluster and also some data about 50 GB or more . So I cannot use other distribution",
"Question : null .. . Answer : I have installed CDH 5.5.1 with Hue Hadoop Spark Hive Oozie Yarn and ZooKeeper . When I run a Spark job or MapReduce job Hue displays a issue in the job history . The problem is that when I restart the CDH services Not the physical nodes it removes all the job histories that were before the restart . Job Browser screenshot http : i.stack.imgur.com uRIee.png .. . .. . On Hadoop there are several files that I suspect have information about the task and might be the ones that hold the job information . Their hadoop paths are : .. . .. . tmp logs user logs .. . user history done 2016 .. . .. . I have looked for it in the Cloudera Manager configuration page Hue configuration page and some configuration-files with no success . I don t know how to prevent this removal . Am I missing something Comment : refer this blog.cloudera.com blog 2010 11 http : blog.cloudera.com blog 2010 11 hadoop-log-location-and-retention Comment : The clean way to support it is in progress here issues.cloudera.org browse HUE-3079 https : issues.cloudera.org browse HUE-3079",
"Question : I am new to bigdata technologies hadoop ecosystem . As part of one of my assignment I am trying to install and run Hue on my single node hadoop cluster apache distribution hadoop2.6.0 . I have installed hue as per the instructions provided by many websites : .. . .. . 1 . Downloaded latest hue tar file .. . 2 . Unzipped it at one location .. . 3 . Ran sudo make install .. . 4 . It installed hue in usr local hue directory .. . 5 . Updated hue.ini file with required details of my cluster . 6 . When I am trying to access the newly installed hue through web UI using : 8888 it is showing me following error page : .. . .. . .. . Traceback most recent call last : .. . File usr local hue desktop core src desktop lib wsgiserver.py line .. . .. . .. . 1198 in communicate req.respond File usr local hue desktop core src desktop lib wsgiserver.py line 568 in respond self . respond File usr local hue desktop core src desktop lib wsgiserver.py line 580 in respond response self.wsgi app self.environ self.start response File usr local hue build env lib python2.6 site-packages Django-1.6.10-py2.6.egg django core handlers wsgi.py line 206 in call response self.get response request File usr local hue build env lib python2.6 site-packages Django-1.6.10-py2.6.egg django core handlers base.py line 194 in get response response self.handle uncaught exception request resolver sys.exc info File usr local hue build env lib python2.6 site-packages Django-1.6.10-py2.6.egg django core handlers base.py line 236 in handle uncaught exception return callback request param dict File usr local hue desktop core src desktop views.py line 304 in serve 500 error return render 500.mako request traceback : traceback.extract tb exc info 2 File usr local hue desktop core src desktop lib django util.py line 225 in render kwargs File usr local hue desktop core src desktop lib django util.py line 146 in render-to-response return django mako.render to response template args kwargs File usr local hue desktop core src desktop lib django mako.py line 125 in render-to-response return HttpResponse render to string template name data-dictionary kwargs File usr local hue desktop core src desktop lib django mako.py line 114 in render to string normal result template.render data dict File usr local hue build env lib python2.6 site-packages Mako-0.8.1-py2.6.egg mako template.py line 443 in render return runtime . render self self.callable args data File usr local hue build env lib python2.6 site-packages Mako-0.8.1-py2.6.egg mako runtime.py line 786 in render kwargs for callable callable data File usr local hue build env lib python2.6 site-packages Mako-0.8.1-py2.6.egg mako runtime.py line 818 in render context exec template inherit lclcontext args args kwargs kwargs File usr local hue build env lib python2.6 site-packages Mako-0.8.1-py2.6.egg mako runtime.py line 844 in exec template callable context args kwargs File tmp tmpjqe8jG desktop 500.mako.py line 103 in render body M writer unicode commonfooter messages File usr local hue desktop core src desktop views.py line 388 in commonfooter hue settings Settings.get settings File usr local hue desktop core src desktop models.py line 59 in get settings settings created Settings.objects.get or create id 1 File usr local hue build env lib python2.6 site-packages Django-1.6.10-py2.6.egg django db models manager.py line 154 in get or create return self.get queryset .get or create kwargs File usr local hue build env lib python2.6 site-packages Django-1.6.10-py2.6.egg django db models query.py line 391 in get or create six.reraise exc info File usr local hue build env lib python2.6 site-packages Django-1.6.10-py2.6.egg django db models query.py line 383 in get or create obj.save force insert True using self.db File usr local hue build env lib python2.6 site-packages Django-1.6.10-py2.6.egg django db models base.py line 545 in save force update force update update fields update fields File usr local hue build env lib python2.6 site-packages Django-1.6.10-py2.6.egg django db models base.py line 573 in save base updated self . save table raw cls force insert force update using update fields File usr local hue build env lib python2.6 site-packages Django-1.6.10-py2.6.egg django db models base.py line 654 in save table result self . do insert cls . base manager using fields update pk raw File usr local hue build env lib python2.6 site-packages Django-1.6.10-py2.6.egg django db models base.py line 687 in do insert using using raw raw File usr local hue build env lib python2.6 site-packages Django-1.6.10-py2.6.egg django db models manager.py line 232 in insert return insert-query self.model objs fields kwargs File usr local hue build env lib python2.6 site-packages Django-1.6.10-py2.6.egg django db models query.py line 1514 in insert-query return query.get compiler using using .execute sql return id File usr local hue build env lib python2.6 site-packages Django-1.6.10-py2.6.egg django db models sql compiler.py line 903 in execute sql cursor.execute sql params File usr local hue build env lib python2.6 site-packages Django-1.6.10-py2.6.egg django db backends util.py line 53 in execute return self.cursor.execute sql params File usr local hue build env lib python2.6 site-packages Django-1.6.10-py2.6.egg django db utils.py line 99 in exit six.reraise dj exc type dj exc value traceback File usr local hue build env lib python2.6 site-packages Django-1.6.10-py2.6.egg django db backends util.py line 53 in execute return self.cursor.execute sql params File usr local hue build env lib python2.6 site-packages Django-1.6.10-py2.6.egg django db backends sqlite3 base.py line 452 in execute return Database.Cursor.execute self query params OperationalError : attempt to write a readonly database .. . .. . Not sure what does it mean please help me in resolving this issue .. . .. . Regards Bhupesh .. . Answer : Got it : - .. . .. . I was facing this issue because of the hue directory ownership . I changed the owner of my usr local hue folder : .. . .. . and then tried accessing the URL it worked . : - .. . .. . Bhupesh",
"Question : I setup a Hadoop cluster with security by Kerberos Hive has been enable Sentry . And I have problem with Hue - Hive Beeswax Editor . Hue can t load data information from hive in hive-server2 log : .. . .. . Can anyone help me Thank you .. . Answer : Is Hive impersonation turned on When using Sentry it should be off that way the Hive user can access the data according to Sentry privileges . This Hive with Sentry http : gethue.com hadoop-tutorial-hive-query-editor-with-hiveserver2-and post details it more . Comment : Hi Romain Hive impersonation has been turn off before . When I use cmd beeline everything is ok . But when I use Hue I cann t connect to Hive . I saw this document : issues.apache.org jira browse HIVE-5155 https : issues.apache.org jira browse HIVE-5155 and is trying to fix this issue . Did you know it Comment : Failed to validate proxy privilage of hue for admin I try to fix this issue . I have this config in core-site.xml : name hadoop.proxyuser.hive.hosts name value value name hadoop.proxyuser.hive.groups name value value But it can t fix i think it work with impersonation Comment : I had a similar problem but without Sentry . Beeline was working and the conf was fine however from hue it was failing . Killing the hiveserver2 process manually restarting it from Ambari solved it .",
"Question : null .. . Answer : Configuration files located in etc hue conf.empty http : i.stack.imgur.com BH1C9.jpg .. . .. . Hi Experts .. . .. . I m newbie to Hadoop linux environment and Cloudera . I installed cloudera vm 5.7 on my machine and imported mysql data to hdfs using SQOOP . I m trying to execute to some queries against this data using impala . So I tried launching HUE . When I launched I could see there is some misconfiguration error . Error : .. . .. . Potential misconfiguration detected . Fix and restart Hue . .. . .. . Steps I have taken to troubleshoot this issue .. . .. . 1 I restarted HUE using below command : .. . .. . sudo service hue stop .. . .. . sudo service hue start .. . .. . 2 I tried looking at following directory file . etc hue - I could see there are two config folder . One is config and other on config.empty . I couldn t figure out the problem . But Still I m facing the same issue . Comment : You do know you don t need Hue to run Impala queries right Comment : Yes Am I trying to access the tools via HUE.Now I m struck with it . Insteadof finding a work around solution.I like to fix the issue . Comment : I m just saying if impala is the end goal here then the terminal should work . Otherwise I imagine when you downloaded the quickstart VM hue worked fine and you needed to start it from Cloudera Manager Comment : Yes I tried launching Cloudera Manager.But it recursively refreshing the page again and again . I m learning these tools to enhance my knowledge . So I want to fix this issue rather finding a work around solution . Comment : Kindly take a look at the URL i.stack.imgur.com BH1C9.jpg http : i.stack.imgur.com BH1C9.jpg Looking for an assist .",
"Question : I m using Hadoop 2.2.6 mini cluster 1 Master and 3 slaves with Ambari 2.1.0 and Hue 3.8.1 Ubuntu 12.04 . Spark 1.2.1 using Scala 2.10.3 was installed as part of the Ambari setup . I ve installed Livy-Server to be able use Spark Notebook in Hue . The configauration in hue.ini file are as follows : .. . .. . But when I try to type simple command in the Notebook every time I have same error : Gateway timeout Error 504 . When I manually start the Livy-Server from the shell by using : .. . .. . I have outcome as been asked in other article but without solution : http : gethue.com new-notebook-application-for-spark-sql comment-56901 Any ideas how to fix that or even where to look at Other apps works fine apart from the Spark Notebook . I m new to big data and hadoop reading the forums for possible solution but didn t find anything related to this problem is that misconfiguration or I ve missed something during installation Any help highly appreciated . Thanks Comment : Correction 2 : I can run Spark from the shell without problems looks like only Livy Server and Hue can t communicate with each other .. . Ambari service check shows up that all services up and running normally no warnings . Same to the Hue Home page no errors or warnings.. . .. . Answer : Livy was never tested with Spark 1.2 . It was initially created for 1.3 is currently working with 1.4 and 1.5 is almost all there : https : github.com cloudera hue tree master apps spark-java prerequisites Comment : Thanks a lot Romain I had that feeling that it is incompatibility but now I know . Will upgrade Spark version . Thanks .",
"Question : I am evaluating Spark Notebook and found three different products 1 . Hue 3.9 comes with Spark notebook beta 2 . Apache zeppelin 3 . andypetrella spark-notebook . Can you please help me understand pros and cons of each product .. . .. . Thanks Pani Comment : Why don t you try downloading each one or comparing their lists of features and some screenshots to see which one works for you Comment : Hello Matt I am trying . . meanwhile I thought of getting others experience as well before deciding . Comment : You can try jupyter also it support spark Try it https : try.jupyter.org .. . Answer : I have only played with Hue and Jupyter . Hue is kind of new but offer more than just a Spark Notebook it integrates with all the Hadoop components Oozie Solr Impala HBase Pig.. . . Jupyter is great if you want an advanced editor for Pyspark . The Python editor is really good and it is very popular in the Python community .",
"Question : null .. . Answer : I am trying to run a hive query from Hue - Beeswax . when i am running the same query from shell i an able to sucessfully execute the query . But from Beeswax i am getting the following error . Comment : Do you have any MapReduce logs from Job Browser Comment : Hi Romain I am unable to paste the entire logs here . This is teh part of logs from where error has started . Comment : Which Hue version are you using If 2.5+ you could use HiveServer2 instead of Beeswax : gethue.com http : gethue.com hadoop-tutorial-hive-query-editor-with-hiveserver2-and",
"Question : I am making an application using meethue api for apple http : www.developers.meethue.com documentation apple-api-guide . I don t have any device bridge to check the output . How can I proceed my development using my simulator . Is their any way from which I can test or know how my app is working without having bridge . .. . Answer : Dalvik If you know how to write an app for Apple you know how to run java jar on Apple s product . Writing Hue app you have to know Hue API giving answers to all your questions . Hue API is easy . .json Hue API calls are easy PUT GET SET .. . .. . .. . Dialog + ncurses + curl + CLI + bash is easy .. . .. . Writing an app for Apple is not easy so I write Hue API apps for Android and Windows - Hue Ambilight Smart TV for Android Windows Comment : Ya i know that HUE have an easy API.But there is issues with it like . I have to manualy enter the ip-address and the user name . Comment : stackoverflow.com questions 29670558 http : stackoverflow.com questions 29670558 cant-change-the-username-of-philips-hue please elp Comment : Dalvik all you need to set up manually is port since IP is preset to localhost port is preset to : 8000 I chan ge to : 80 to get . Just run Hue Emulator for Windows jar file on your apple s device and open localhost : 8000 http : localhost : 8000 or : 80 api newdeveloper in your preferred web browser to access Hue Emulator by Steve .",
"Question : I m on CDH4 in HUE I have a database in Metastore Manager named db1 . I can run Hive queries that create objects in db1 with no problem . I put those same queries in scripts and run them through Oozie and they fail with this message : .. . .. . FAILED : SemanticException 0 : 0 Error creating temporary folder on : hdfs : lad1dithd1002.thehartford.com : 8020 appl hive warehouse db1.db . Error encountered near token TOK TMP FILE .. . .. . I created db1 in the Metastore Manager as HUE user db1 and as HUE user admin and as HUE user db1 and nothing works . The db1 user also has a db1 ID on the underlying Linux cluster if that helps . I have chmod d the appl hive warehouse db1.db to read-write execute to owner group other and none of that makes a difference . I m almost certain it s a rights issue but what Oddly I have this working under another ID where I had hacked some combination of things that seemed to have worked but I m not sure how . It was all in HUE so if possible I d like a solution doable in HUE so I can easily hand it off to folks who prefer to work at the GUI level . Thanks Comment : Did you chmod to 1777 Comment : I tried 777 in a few places but not 1777 . I think of not setting the sticky bit as an even looser form of security so I m assuming 777 is the same . Is there some magic to the sticky bit Comment : Also chmod what The db1.db folder The warehouse folder is already 1777 I believe by default but at least that s what it is now in our system . I ll try it now and let you know . Comment : Did a chmod 1777 on the db1.db folder . Still same issue .. . Answer : Exact same error on Hadoop MapR . Root cause : Main database and temporary scrat database were created by different users . Resolution : Creating both folders with same ID might help with this .",
"Question : I m trying to get a json response back from the Philips hue after I complete a PUT request . The Philips hue has a build in web server command-line when I send a basic json message like on : True using the hue web interface I get a json response back telling me that the request was a success . The message looks like this : .. . .. . Right now when I send a command to the hue via my setup below I always get a TRUE .IsSuccessStatusCode I m assuming becasue the message was recieved by the hue even if I send some json that should cause an error . Example I could use the json on : Cause an error and still get a TRUE . So I m trying to figure out how to get the above json response back from the hue after I ve sent a PUT . Below is the code I m using . .. . Answer : This returns the json hue response I was looking for . I just kept getting basic http info back until I put the await keyword in front of it . Shout out to Q42.hueApi I took a peak at your code and that helped greatly .",
"Question : null .. . Answer : I m trying to use sqoop in Hue but there s an error : .. . .. . Sqoop error : Could not get connectors . and no sqoop wizard in page . But I could import data from Oracle using sqoop shell not sqoop2 . My questions are : .. . .. . Is there anything else to config beside putting oracle jdbc driver in opt cloudera parcels CDH-5.5.0-1.cdh5.5.0.p0.8 lib sqoop2 client-lib .. . .. . What directories that needs to be permitted for user sqoop2 except var lib sqoop .. . .. . note : I still got no clue after reading this post https : community.cloudera.com t5 Web-UI-Hue-Beeswax Blank-Sqoop-page-in-Hue-2-5-0 td-p 2581 http : Blank 20Sqoop 20page 20in 20Hue 202.5.0 .. . .. . env : Hue 3.9 Sqoop2 CDH 5.5.0 CM 5.5.0 LDAP Kerberos Sentry installed Comment : Did you configure Sqoop2 properly cloudera.com documentation enterprise latest topics http : www.cloudera.com documentation enterprise latest topics cdh ig sqoop2 configure.html",
"Question : I am making an application using meethue api for apple http : www.developers.meethue.com documentation apple-api-guide . I don t have any device bridge to check the output . How can I proceed my development using my simulator . Is their any way from which I can test or know how my app is working without having bridge . .. . Answer : You can make use of a hue emulator . For example the Hue-emulator by SteveyO http : steveyo.github.io Hue-Emulator is a simple .jar file which can be run using the command : .. . .. . After this the following request can be used to check whether the emulator is running : .. . .. . The full bridge config should be returned . Comment : i am developing for iPhone. . can i still use it Comment : Yes . It is mentioned in the Introduction of the hue Apple SDK.. . To develop for Hue you require the Philips Hue Personal Wireless Lighting System or a suitable hue Emulator . Comment : Thanx @ZeMoon ....... . please tell me one one more thing i have to give ip-address to the emulator or just the port number. . Comment : Read the API and emulator guide for all this information . Comment : i need your help.. . i have run the emulator and trying to connect to the emulator but i am not getting any match.. ."
]
} | [
"yes-answer-long",
"yes-answer-short"
] | interface | UNK_RELATION |
mdnsjava@dns-sd@73 | mdnsjava -- the multicast dns mdns rfc 6762 dns-based service-discovery @placeholder rfc 6763 in java mdnsjava project is an extension of dnsjava dnsjava.org that implements multicast dns mdns rfc 6762 and dns-based service-discovery dns-sd rfc 6763 in java aka . | {
"confidence": [],
"content": []
} | {
"confidence": [],
"content": []
} | [
"yes-answer-long",
"yes-answer-short"
] | dns-sd | UNK_RELATION |