uid
stringlengths
6
55
question
stringlengths
34
465
context_short
sequence
context_long
sequence
tags
sequence
answer
stringlengths
1
25
relation
stringclasses
1 value
android-elevation@material-design@110
android-elevation -- android-elevation is a feature introduced in android lollipop 5.0 is part of new google @placeholder recommendation .
{ "confidence": [ 54.1600456237793, 53.87737274169922, 48.27862548828125, 48.271575927734375, 47.56185531616211, 46.459739685058594, 46.449241638183594, 46.42031478881836, 45.798095703125, 45.69587707519531, 43.60237121582031, 43.429988861083984, 43.34503173828125, 42.3695182800293, 41.80033493041992, 41.573673248291016, 41.28232955932617, 41.229373931884766, 41.08777618408203, 41.08777618408203, 40.27622604370117, 40.13343048095703, 39.74612808227539, 39.74612808227539, 39.55157470703125, 39.55157470703125, 39.55157470703125, 39.53947067260742, 38.8276481628418, 37.54590606689453, 37.54590606689453, 37.54590606689453, 37.54590606689453, 37.54590606689453, 37.14331817626953, 36.19478988647461, 36.087989807128906, 36.00970458984375, 36.00970458984375, 36.00970458984375, 36.00970458984375, 36.00970458984375, 35.72856903076172, 35.72856903076172, 35.72856903076172, 35.47283935546875, 35.47283935546875, 35.47283935546875, 35.31317901611328, 35.261512756347656, 35.261512756347656, 34.57786560058594, 34.551788330078125, 34.551788330078125, 34.264610290527344, 34.20766830444336, 34.191097259521484, 34.191097259521484, 34.191097259521484, 33.725311279296875, 33.591163635253906, 33.578548431396484, 32.90894317626953, 32.90894317626953, 32.868064880371094, 32.868064880371094, 32.868064880371094, 32.868064880371094, 32.868064880371094, 32.868064880371094, 32.868064880371094, 32.6548957824707, 32.6548957824707, 32.6548957824707, 32.6548957824707, 32.6548957824707, 32.42572021484375, 31.968263626098633, 31.923274993896484, 31.80384063720703, 31.614700317382812, 31.58632469177246, 31.58632469177246, 31.58632469177246, 31.58632469177246, 31.58632469177246, 31.58632469177246, 31.58632469177246, 31.490238189697266, 31.446666717529297, 30.852859497070312, 30.852859497070312, 30.852859497070312, 30.467695236206055, 30.44011688232422, 30.269973754882812, 30.05012321472168, 30.05012321472168 ], "content": [ "The elevation style attribute enables box-shadows for Android 5.0+ .", "as found here : Android elevation not showing a shadow http : stackoverflow.com questions 27477371 android-elevation-not-showing-a-shadow", "credit to ShinChven CardView elevation not working on Android 5.1.1 http : stackoverflow.com questions 31773274 cardview-elevation-not-working-on-android-5-1-1", "I know what is elevation in android material-design environment but couldn t exactly know what is resting elevation .", "Related question : stackoverflow.com questions 26572048 http : stackoverflow.com questions 26572048 elevation-on-android-lollipop-not-working", "If I add an elevation to a small wide view on Android 5.0 the shadow looks really weird .", "Elevation requires the device to run Lollipop .", "elevation supported from 21 Lollipop version", "I know that CardViews have the elevation even for Android 4 .", "I m trying to use android : elevation in my application but once I run it does not appear in the device with android 4.1.2 .. . .. . gradle .. . .. . layout.xml .. . .. . maybe I m not compiling correctly Lollipop for pre-lollipop devices Any suggestions", "There are posts related to elevation for views for pre-lollipop devices .", "I am using Android Lollipop s new elevation feature to set a Z on the View that I want to cast a shadow and am already doing this effectively with the ActionBar technically a Toolbar in Lollipop .", "blog.grafixartist.com add-a-toolbar-elevation-on-pre-lollipop http : blog.grafixartist.com add-a-toolbar-elevation-on-pre-lollipop - this showed me how to use xml to achieve the same .", "Related stackoverflow.com questions 27477371 http : stackoverflow.com questions 27477371 android-elevation-not-showing-a-shadow", "For pre-lollipop devices elevation attribute doesn t work .", "If you want elevation on Pre Lollipop sdk you should check this : blog.grafixartist.com add-a-toolbar-elevation-on-pre-lollipop http : blog.grafixartist.com add-a-toolbar-elevation-on-pre-lollipop or this : stackoverflow.com questions 26743325 http : stackoverflow.com questions 26743325 appcompat-v21-toolbar-elevation-pre-lollipop", "I wondering is there any way to add elevation on SlidingTabLayout for pre-Lollipop devices .", "According to android documentation http : developer.android.com reference android support v4 view ViewCompat.html setElevation android.view.View 20float setElevation .. . .. . Sets the base elevation of this view in pixels .", "this might help you stackoverflow.com questions 26728570 http : stackoverflow.com questions 26728570 android-appcompat-21-elevation", "I found solutions through here http : stackoverflow.com a 29128692 5722521 replace android-elevation with a drawable xml file .", "Elevation Card resting elevation : 2dp Card raised elevation : 8dp Cards have a default elevation of 2dp .", "I am getting an issue on android lollipop .", "You can mimic the elevation on pre-Lollipop with a official method .", "You can t mimic the elevation on pre-Lollipop with a official method .", "If you are trying to get the elevation above sea level of the surface of the Earth at a particular latitude and longitude Android does not have anything for that .", "you can try this : stackoverflow.com questions 26728570 http : stackoverflow.com questions 26728570 android-appcompat-21-elevation 26747592 26747592", "User TinTran s comment http : stackoverflow.com questions 30692999 android-elevation-and-setelevation-not-the-same-effect comment59251783 30693264 is correct .", "Elevation make Sliding Tab Layout worked fine on Lollipop device but tabs will disappear on pre-lollipop device .", "Inflating framelayout and adding the elevation to it .", "Use ViewCompat.setElevation view elevation", "Add elevation as 0dp .", "Is it the zero elevation of a material i.e .", "it is not having any elevation", "This is known as resting elevation .", "CardView has default elevation which is greater than ImageView So we have to add greater elevation in ImageView than CardView s elevation .", "I would recommend looking at the Google Maps Elevation API : developers.google.com maps documentation elevation intro hl en https : developers.google.com maps documentation elevation intro hl en", "stackoverflow.com questions 31115531 http : stackoverflow.com questions 31115531 add-elevation-shadow-on-toolbar-for-pre-lollipop-devices", "It seems the elevation is ignored by seekbar", "Shadow of this elevation directed down .", "Used TranslationZ in-place of Elevation .", "But the elevation was fine in the preview .", "What s the default elevation", "dialog http : i.stack.imgur.com Zmb18.png .. . .. . I have read no reference sorry that elevation is not implemented for Android 4 not even with appCompat library .", "I m using API 23 on a Nexus 6P emulator on Android Studio 1.4 I can see the elevation working on other elements just not this one .", "I m trying to use elevation in my project following the material-theme tutorial from Xamarin https : developer.xamarin.com guides android user-interface material-theme .", "The PopupWindow is programmically created and its elevation is set .", "For example : i want to add elevation shadow to this pic : .. . .. .", "I just set elevation and the outline provider .", "Google has shown some nice ways that elevation effect are shown on Lollipop here http : developer.android.com training material shadows-clipping.html .", "If you want to place a view half on elevation CardView and half without elevation How will it be possible", "Refer Elevation and shadows https : material.google.com what-is-material elevation-shadows.html for more info .", "Blur that shape using elevation as a radius .", "For Pre-LolliPop device you have to Create shadow or elevation using drawable file .", "for buttons .. . .. . How can I mimic the elevation effect on pre-Lollipop versions without 3rd party library", "I also tried this question http : stackoverflow.com questions 27477371 android-elevation-not-showing-a-shadow 27518160 27518160 I couldn t get it to work the possible reason being my parent layout in a different xml-layout file .", "The problem is that the toolbar has no elevation .", "In this LinearLayout I have a cardview which has an elevation .", "I m trying to set the elevation of a AppBarLayout via code .", "For example the resting elevation of a floating-action-button is 6dp .", "On desktop cards can have a resting elevation of 0dp and gain an elevation of 8dp on hover .", "For Android 4.4- I use : item name android : windowContentOverlay @null item .. . .. . But is it possible for Android 5.0", "Well I know for sure that views that are part of the .xml layout and have elevation set to them work .", "Good day I have a project that I am working on and I am achieving the elevation on my image on lollipop and marshmallow only .", "I saw many answers but they have not been applied for images my goal is to achieve the elevation on an my image for pre-lollipop version .", "Is it really to implement elevation of ImageView with png that contains transparent background", "Weird looking elevation shadow http : i.stack.imgur.com bRwO6.png", "Searchbar appeared but with big fat shadow which corresponds to the setted elevation value .", "I tried giving elevation attribute of the main layout a vlaue 0 but to no avail .", ".. . .. . I created a view set its elevation and then add it to my main layout .", "Use the AppCompat method ViewCompat.SetElevation View int to set the elevation as desired .", "Then within my Activity class I set the elevation on that TooltipTest class .", "The buttons appear to OK but the elevation on views aren t .", "If i remove the background ripple i get elevation .", "It supports elevation and generated animated shadows as well .", "You can change the elevation .. . round the corners etc .", "how to customize value of elevation using this method", "I am unable to figure out what is the importance criteria for different layouts in android lollipop release .", "What is the Android version for the virtual device", "there isnt much to mess up to set elevation all you do is use the elevation tag like you are already .", "Image from Android Studio .. . .. .", "If the Bluelight filter feature on the phone is ON .. . .. . I was facing this issue when the elevation appeared completely distorted and unbearable in my device .", "I m trying to utilize elevation attributes to display drop shadows .", "The problem is here that the elevation won t appear outside the parent div .", "It works great with one small problem : it doesn t draw elevation shadows .", "Additional question is there a way to control the elevation depth of shadow using this appraoch", "Increment the elevation to some non-negetive non zero value 0 .", "I am little bit confused with the term resting elevation .", "In other words it is the elevation that a view will have when it s resting .", "And the shadow above the toolbar correspond to the value of 2dp and the shadow of search results displayed above contents of the activity with the value of 2dp searchbar elevation + 4dp toolbar elevation 6dp", "References : https : code.google.com p android issues detail id 213895 .. . .. . In order to minimize the delay in elevation drawing set the duration to 1ms in your own StateListAnimator and apply it to AppbarLayout .", "Most of the buttons have an elevation and state change animation .", "The recyclerview child item does not have any elevation .", "Set the elevation attribute in your Action Bar style .", "may be you have old version of android", "When following this Android tutorial http : developer.android.com training appbar setting-up.html using AppCompat V7 to get the new Tool Bar work the android.support.v7.widget.Toolbar supports android : elevation on SDK s Lollipop .", "Is there a way using the NavigationView element of the Google support library to use elevation on the items inside a NavigationView to achieve something like this : Navigation View with header elevation http : i.stack.imgur.com KAK40.png .. . .. . You can see that the header of the navigation-drawer has an elevation like the footer on the bottom of the view .", "If not wouldn t your translationZ and elevation cancel one another out .", "Remove the elevation of both and you have the situation I describe above ." ] }
{ "confidence": [ 70.55418395996094, 67.8307876586914, 65.65050506591797, 64.57527160644531, 64.52003479003906, 64.47720336914062, 64.47720336914062, 63.24617385864258, 63.03487014770508, 62.79243087768555, 62.45265579223633, 62.45265579223633, 62.03792190551758, 60.467830657958984, 60.084354400634766, 59.00560760498047, 58.42529296875, 58.33314514160156, 58.033599853515625, 56.934791564941406 ], "content": [ "Question : Hi I m trying to apply a shadow to a linearlayout with the following code .. . .. . if some condition layout.setElevation 4 .. . .. . but this call requires API level 21 to work . How can I apply a shadow to layouts for devices with version 5.0 Is it possible I know this is part of Material Design which is why I just want to know if there is a way to achieve something similar in previous versions thanks : Comment : You can follow this thread of SO . stackoverflow.com questions 31115531 http : stackoverflow.com questions 31115531 add-elevation-shadow-on-toolbar-for-pre-lollipop-devices Comment : this might help you stackoverflow.com questions 26728570 http : stackoverflow.com questions 26728570 android-appcompat-21-elevation Comment : blog.grafixartist.com add-a-toolbar-elevation-on-pre-lollipop http : blog.grafixartist.com add-a-toolbar-elevation-on-pre-lollipop - this showed me how to use xml to achieve the same . thanks : .. . Answer : Use ViewCompat.setElevation view elevation", "Question : Google has shown some nice ways that elevation effect are shown on Lollipop here http : developer.android.com training material shadows-clipping.html . for buttons .. . .. . How can I mimic the elevation effect on pre-Lollipop versions without 3rd party library Comment : You are able to do that using the Custom Library in your App . You are able to find the examples in following link : github.com wasabeef awesome-android-ui https : github.com wasabeef awesome-android-ui Comment : @RajanBhavsar can I implement without 3rd party library Comment : Yes arjunu.com 2015 02 materializing-your-apps-for-pre-lollipop http : arjunu.com 2015 02 materializing-your-apps-for-pre-lollipop folow this link-to do that . Comment : you can try this : stackoverflow.com questions 26728570 http : stackoverflow.com questions 26728570 android-appcompat-21-elevation 26747592 26747592 Comment : possible duplicate of Android view shadow http : stackoverflow.com questions 21211870 android-view-shadow .. . Answer : You can t mimic the elevation on pre-Lollipop with a official method . You can use some drawables to make the shadow in your component . Google uses this way in CardView for example . The ViewCompat.setElevation View int currently creates the shadow only on API21+ . If you check the code-behind this method calls : .. . .. . API 21+ : .. . .. . API 21", "Question : I have a ListView and with each list item I want it to show a shadow beneath it . I am using Android Lollipop s new elevation feature to set a Z on the View that I want to cast a shadow and am already doing this effectively with the ActionBar technically a Toolbar in Lollipop . I am using Lollipop s elevation but for some reason it isn t showing a shadow under the list items . Here is how each list item s layout is set up : .. . .. . However here is how it shows the list item without a shadow : enter image description here http : i.stack.imgur.com lo95C.png .. . .. . I have also tried the following to no avail : .. . .. . 1 . Set the elevation to the ImageView and TextViews themselves instead of the parent layout . 2 . Applied a background to the ImageView . 3 . Used TranslationZ in-place of Elevation . Comment : I tried your layout without customviews and shown the shadow in my phone could you share a minimal project which reproduce the issue Comment : possible duplicate of Android L FAB Button shadow http : stackoverflow.com questions 24480425 android-l-fab-button-shadow Comment : Related question : stackoverflow.com questions 26572048 http : stackoverflow.com questions 26572048 elevation-on-android-lollipop-not-working .. . Answer : Adding to the accepted answer there is one more reason due to which elevation may not work as expected . If the Bluelight filter feature on the phone is ON .. . .. . I was facing this issue when the elevation appeared completely distorted and unbearable in my device . But the elevation was fine in the preview . Turning off the Bluelight filter on phone resolved the issue . So even after setting .. . .. . The elevation is not working properly then you can try to tinker with phone s color settings .", "Question : Google has shown some nice ways that elevation effect are shown on Lollipop here http : developer.android.com training material shadows-clipping.html . for buttons .. . .. . How can I mimic the elevation effect on pre-Lollipop versions without 3rd party library Comment : You are able to do that using the Custom Library in your App . You are able to find the examples in following link : github.com wasabeef awesome-android-ui https : github.com wasabeef awesome-android-ui Comment : @RajanBhavsar can I implement without 3rd party library Comment : Yes arjunu.com 2015 02 materializing-your-apps-for-pre-lollipop http : arjunu.com 2015 02 materializing-your-apps-for-pre-lollipop folow this link-to do that . Comment : you can try this : stackoverflow.com questions 26728570 http : stackoverflow.com questions 26728570 android-appcompat-21-elevation 26747592 26747592 Comment : possible duplicate of Android view shadow http : stackoverflow.com questions 21211870 android-view-shadow .. . Answer : You can mimic the elevation on pre-Lollipop with a official method . .. . .. . I achieve same effect using .. . .. . My tested output : .. . .. . enter image description here http : i.stack.imgur.com jf5kL.png .. . .. . reference - http : stackoverflow.com a 25683148 3879847 .. . .. . Thanks to user @Repo. . Comment : what if i want to use a button with blue background Comment : how to customize value of elevation using this method Comment : @KundanKumarRoy we can t customize elevation value in this method. .", "Question : I have a ListView and with each list item I want it to show a shadow beneath it . I am using Android Lollipop s new elevation feature to set a Z on the View that I want to cast a shadow and am already doing this effectively with the ActionBar technically a Toolbar in Lollipop . I am using Lollipop s elevation but for some reason it isn t showing a shadow under the list items . Here is how each list item s layout is set up : .. . .. . However here is how it shows the list item without a shadow : enter image description here http : i.stack.imgur.com lo95C.png .. . .. . I have also tried the following to no avail : .. . .. . 1 . Set the elevation to the ImageView and TextViews themselves instead of the parent layout . 2 . Applied a background to the ImageView . 3 . Used TranslationZ in-place of Elevation . Comment : I tried your layout without customviews and shown the shadow in my phone could you share a minimal project which reproduce the issue Comment : possible duplicate of Android L FAB Button shadow http : stackoverflow.com questions 24480425 android-l-fab-button-shadow Comment : Related question : stackoverflow.com questions 26572048 http : stackoverflow.com questions 26572048 elevation-on-android-lollipop-not-working .. . Answer : I ve been playing around with shadows on Lollipop for a bit and this is what I ve found : .. . .. . 1 . It appears that a parent ViewGroup s bounds cutoff the shadow of its children for some reason and .. . 2 . shadows set with android : elevation are cutoff by the View s bounds not the bounds extended through the margin .. . 3 . the right way to get a child view to show shadow is to set padding on the parent and set android : clipToPadding false on that parent . Here s my suggestion to you based on what I know : .. . .. . 1 . Set your top-level RelativeLayout to have padding equal to the margins you ve set on the relative layout that you want to show shadow .. . 2 . set android : clipToPadding false on the same RelativeLayout .. . 3 . Remove the margin from the RelativeLayout that also has elevation set .. . 4 . EDIT you may also need to set a non-transparent background-color on the child layout that needs elevation . At the end of the day your top-level relative layout should look like this : .. . .. . The interior relative layout should look like this : Comment : Thanks for this I also found android : clipChildren false to be useful when applied to the parent relative layout . Comment : Glad to help @blaffie Comment : It s so annoying that Google produces such shoddy code . We ll have to account for these framework bugs for years . Comment : Great answer you gave us good insight on how it all works more than simply giving away the solution . Comment : Google only says alas : Shadows are drawn by the parent of the elevated view and thus subject to standard view clipping clipped by the parent by default . .", "Question : Google has shown some nice ways that elevation effect are shown on Lollipop here http : developer.android.com training material shadows-clipping.html . for buttons .. . .. . How can I mimic the elevation effect on pre-Lollipop versions without 3rd party library Comment : You are able to do that using the Custom Library in your App . You are able to find the examples in following link : github.com wasabeef awesome-android-ui https : github.com wasabeef awesome-android-ui Comment : @RajanBhavsar can I implement without 3rd party library Comment : Yes arjunu.com 2015 02 materializing-your-apps-for-pre-lollipop http : arjunu.com 2015 02 materializing-your-apps-for-pre-lollipop folow this link-to do that . Comment : you can try this : stackoverflow.com questions 26728570 http : stackoverflow.com questions 26728570 android-appcompat-21-elevation 26747592 26747592 Comment : possible duplicate of Android view shadow http : stackoverflow.com questions 21211870 android-view-shadow .. . Answer : You can either hack it using a card-view : .. . .. . Or look at using this third party library : https : github.com rey5137 Material see wiki article on button https : github.com rey5137 Material wiki Button", "Question : Google has shown some nice ways that elevation effect are shown on Lollipop here http : developer.android.com training material shadows-clipping.html . for buttons .. . .. . How can I mimic the elevation effect on pre-Lollipop versions without 3rd party library Comment : You are able to do that using the Custom Library in your App . You are able to find the examples in following link : github.com wasabeef awesome-android-ui https : github.com wasabeef awesome-android-ui Comment : @RajanBhavsar can I implement without 3rd party library Comment : Yes arjunu.com 2015 02 materializing-your-apps-for-pre-lollipop http : arjunu.com 2015 02 materializing-your-apps-for-pre-lollipop folow this link-to do that . Comment : you can try this : stackoverflow.com questions 26728570 http : stackoverflow.com questions 26728570 android-appcompat-21-elevation 26747592 26747592 Comment : possible duplicate of Android view shadow http : stackoverflow.com questions 21211870 android-view-shadow .. . Answer : u can easily simulate it by declaring a drawable like this - .. . .. . shadow.xml .. . .. . and use it int ur main xml like -", "Question : I have a ListView and with each list item I want it to show a shadow beneath it . I am using Android Lollipop s new elevation feature to set a Z on the View that I want to cast a shadow and am already doing this effectively with the ActionBar technically a Toolbar in Lollipop . I am using Lollipop s elevation but for some reason it isn t showing a shadow under the list items . Here is how each list item s layout is set up : .. . .. . However here is how it shows the list item without a shadow : enter image description here http : i.stack.imgur.com lo95C.png .. . .. . I have also tried the following to no avail : .. . .. . 1 . Set the elevation to the ImageView and TextViews themselves instead of the parent layout . 2 . Applied a background to the ImageView . 3 . Used TranslationZ in-place of Elevation . Comment : I tried your layout without customviews and shown the shadow in my phone could you share a minimal project which reproduce the issue Comment : possible duplicate of Android L FAB Button shadow http : stackoverflow.com questions 24480425 android-l-fab-button-shadow Comment : Related question : stackoverflow.com questions 26572048 http : stackoverflow.com questions 26572048 elevation-on-android-lollipop-not-working .. . Answer : I believe your issue stems from the fact that you have applied the elevation element to a relative layout that fills its parent . Its parent clips all child views within its own drawing canvas and is the view that handles the child s shadow . You can fix this by applying an elevation property to the topmost RelativeLayout in your view xml the root tag .", "Question : Elevation make Sliding Tab Layout worked fine on Lollipop device but tabs will disappear on pre-lollipop device . I wondering is there any way to add elevation on SlidingTabLayout for pre-Lollipop devices . Here is my .xml file : .. . Answer : I found solutions through here http : stackoverflow.com a 29128692 5722521 replace android-elevation with a drawable xml file .", "Question : I m trying to use android : elevation in my application but once I run it does not appear in the device with android 4.1.2 .. . .. . gradle .. . .. . layout.xml .. . .. . maybe I m not compiling correctly Lollipop for pre-lollipop devices Any suggestions If you need to see other parts of the code I ll edit the question .. . .. . Thanks Comment : late comment. . But surely helps to anyone. . try this - stackoverflow.com a 30962710 3879847 http : stackoverflow.com a 30962710 3879847 Comment : Thanks @RanjithKumar surely helps nice job . .. . Answer : Elevation requires the device to run Lollipop . See this answer on how to simulate elevation http : stackoverflow.com a 26747592 680249", "Question : I have a ListView and with each list item I want it to show a shadow beneath it . I am using Android Lollipop s new elevation feature to set a Z on the View that I want to cast a shadow and am already doing this effectively with the ActionBar technically a Toolbar in Lollipop . I am using Lollipop s elevation but for some reason it isn t showing a shadow under the list items . Here is how each list item s layout is set up : .. . .. . However here is how it shows the list item without a shadow : enter image description here http : i.stack.imgur.com lo95C.png .. . .. . I have also tried the following to no avail : .. . .. . 1 . Set the elevation to the ImageView and TextViews themselves instead of the parent layout . 2 . Applied a background to the ImageView . 3 . Used TranslationZ in-place of Elevation . Comment : I tried your layout without customviews and shown the shadow in my phone could you share a minimal project which reproduce the issue Comment : possible duplicate of Android L FAB Button shadow http : stackoverflow.com questions 24480425 android-l-fab-button-shadow Comment : Related question : stackoverflow.com questions 26572048 http : stackoverflow.com questions 26572048 elevation-on-android-lollipop-not-working .. . Answer : If you have a view with no background this line will help you .. . .. . By default shadow is determined by view s background so if there is no background there will be no shadow also . Comment : this worked for me even if it wasn t ImageView Comment : This is works for me thanks . Comment : What a strange thing Preview showed elevation but real device didn t . Thanks this one fixed the issue . Comment : Works for API level 21 and higher Comment : This sort of worked for me but gave a diagonal border on the sides when applied to a textview . Setting the background to a color same as parents background-color worked better .", "Question : I have a ListView and with each list item I want it to show a shadow beneath it . I am using Android Lollipop s new elevation feature to set a Z on the View that I want to cast a shadow and am already doing this effectively with the ActionBar technically a Toolbar in Lollipop . I am using Lollipop s elevation but for some reason it isn t showing a shadow under the list items . Here is how each list item s layout is set up : .. . .. . However here is how it shows the list item without a shadow : enter image description here http : i.stack.imgur.com lo95C.png .. . .. . I have also tried the following to no avail : .. . .. . 1 . Set the elevation to the ImageView and TextViews themselves instead of the parent layout . 2 . Applied a background to the ImageView . 3 . Used TranslationZ in-place of Elevation . Comment : I tried your layout without customviews and shown the shadow in my phone could you share a minimal project which reproduce the issue Comment : possible duplicate of Android L FAB Button shadow http : stackoverflow.com questions 24480425 android-l-fab-button-shadow Comment : Related question : stackoverflow.com questions 26572048 http : stackoverflow.com questions 26572048 elevation-on-android-lollipop-not-working .. . Answer : Apparently you cannot just set an elevation on a View and have it appear . @nickes answer helped me to realize all I was missing was a background . The following lines added to my LinearLayout finally showed a shadow :", "Question : Google has shown some nice ways that elevation effect are shown on Lollipop here http : developer.android.com training material shadows-clipping.html . for buttons .. . .. . How can I mimic the elevation effect on pre-Lollipop versions without 3rd party library Comment : You are able to do that using the Custom Library in your App . You are able to find the examples in following link : github.com wasabeef awesome-android-ui https : github.com wasabeef awesome-android-ui Comment : @RajanBhavsar can I implement without 3rd party library Comment : Yes arjunu.com 2015 02 materializing-your-apps-for-pre-lollipop http : arjunu.com 2015 02 materializing-your-apps-for-pre-lollipop folow this link-to do that . Comment : you can try this : stackoverflow.com questions 26728570 http : stackoverflow.com questions 26728570 android-appcompat-21-elevation 26747592 26747592 Comment : possible duplicate of Android view shadow http : stackoverflow.com questions 21211870 android-view-shadow .. . Answer : To bring dynamic animated shadows to pre-Lollipop devices you have to : .. . .. . 1 . Draw a black shape of a view to a bitmap .. . 2 . Blur that shape using elevation as a radius . You can do that using RenderScript . Seems like it s the method Lollipop s using . 3 . Draw that blurred shape beneath the view . Probably the best place is the drawChild method . You also have to override setElevation and setTranslationZ override child view drawing in layouts turn off clip-to-padding and implement state animators . enter image description here http : i.stack.imgur.com 3W2LQ.png .. . .. . That s a lot of work but it gives the best looking dynamic shadows with response animations . I m not sure why you d like to achieve that without third party libraries . If you wish you can analyze sources of Carbon and port the parts you d like to have in your app : .. . .. . Shadow generation https : github.com ZieIony Carbon blob master carbon src main java carbon shadow ShadowGenerator.java L83 .. . .. . Drawing a view with a shadow https : github.com ZieIony Carbon blob master carbon src main java carbon widget FrameLayout.java L126 .. . .. . Elevation API backported to pre-Lollipop https : github.com ZieIony Carbon blob master carbon src main java carbon widget Button.java L267 Comment : The link for the Elevation API which points to the File Line is updated one day ago from today . So Could you plz mention bit of code So developer have better idea of the actual code . Comment : good idea thanks Comment : too much work to do", "Question : I m trying to use android : elevation in my application but once I run it does not appear in the device with android 4.1.2 .. . .. . gradle .. . .. . layout.xml .. . .. . maybe I m not compiling correctly Lollipop for pre-lollipop devices Any suggestions If you need to see other parts of the code I ll edit the question .. . .. . Thanks Comment : late comment. . But surely helps to anyone. . try this - stackoverflow.com a 30962710 3879847 http : stackoverflow.com a 30962710 3879847 Comment : Thanks @RanjithKumar surely helps nice job . .. . Answer : On Pre-Lollipop you can use this drawable .. . .. . it will give you the look of elevation .. . .. . or you can create your own like this .. . .. . reference http : stackoverflow.com a 25683148 3879847", "Question : Google has shown some nice ways that elevation effect are shown on Lollipop here http : developer.android.com training material shadows-clipping.html . for buttons .. . .. . How can I mimic the elevation effect on pre-Lollipop versions without 3rd party library Comment : You are able to do that using the Custom Library in your App . You are able to find the examples in following link : github.com wasabeef awesome-android-ui https : github.com wasabeef awesome-android-ui Comment : @RajanBhavsar can I implement without 3rd party library Comment : Yes arjunu.com 2015 02 materializing-your-apps-for-pre-lollipop http : arjunu.com 2015 02 materializing-your-apps-for-pre-lollipop folow this link-to do that . Comment : you can try this : stackoverflow.com questions 26728570 http : stackoverflow.com questions 26728570 android-appcompat-21-elevation 26747592 26747592 Comment : possible duplicate of Android view shadow http : stackoverflow.com questions 21211870 android-view-shadow .. . Answer : Create a 9-patch http : developer.android.com tools help draw9patch.html image with stretchable patches defined on an image with shadow around it . enter image description here http : i.stack.imgur.com tm6GQ.png .. . .. . Add this 9-patch image as a background of your button with a padding so that the shadow is visible . You can find some pre-defined 9-patch .9.png images here https : github.com android platform frameworks base tree master core res res drawable-mdpi or here https : android.googlesource.com platform frameworks base.git + master core res res drawable-mdpi from where you can select customize and copy to your project s drawable .", "Question : null .. . Answer : I looked at every item on stackoverflow about this issue but i still cant make my cardview show shadow on lollipop and up . it does has shadow on api 19 .. . .. . here is my code .. . .. . i tried with and without .. . .. . lollipop s elevation attribute .. . android : background .. . card view : cardUseCompatPadding .. . cardBackgroundColor .. . clipToPadding clipChildren on the father node .. . .. . thanks a lot Comment : Related stackoverflow.com questions 27477371 http : stackoverflow.com questions 27477371 android-elevation-not-showing-a-shadow", "Question : When following this Android tutorial http : developer.android.com training appbar setting-up.html using AppCompat V7 to get the new Tool Bar work the android.support.v7.widget.Toolbar supports android : elevation on SDK s Lollipop . This is because they use android.support.v7.widget.Toolbar and not Toolbar . Is there equivalent for button Something like android.support.v7.widget.Button This one not exist Or any other workaround in the kind of overlaying the Button in some view supporting elevation I don t want implementation of creating custom shapes with gradients for look feel of elevation . Thanks .. . Answer : Unfortunately you will have to do what you do not want . Because there is no support button view yet . As i know : perhaps some omniscient person will correct my answer Comment : Button gets inflated to AppCompatButton by AppCompat s LayoutInflater however it doesn t backport elevation just tinting .", "Question : From what I understand early in the preview stage there seemed to be no way to set elevation in XML only on CardView s without a hack in Java . Now that the official release is out is there any way of doing this in XML without writing Java code to set elevation I have tried card view : cardElevation to no effect . I had thought when I was using the emulators for 5.0 everything was fine . But now that I m using the official version on my actual device all of my CardView s disappeared .. . .. . Pre Lollipop it works great . Here is my full xml Comment : I have gotten behind the problem but don t have an answer yet . When I upgraded to lollipop somehow the margins or padding disappeared so they don t see the corners or the edges of the card so it is completely flat . .. . Answer : You have to use the cardElevation https : developer.android.com reference android support v7 widget CardView.html attr android.support.v7.cardview : cardElevation attribute Comment : I believe i made a typo above and that is what i tried . I will try again.. . Comment : No I tried again and that did not work . I added my full xml up top . Comment : Works for me . What s the default elevation Comment : Elevation Card resting elevation : 2dp Card raised elevation : 8dp Cards have a default elevation of 2dp . On desktop cards can have a resting elevation of 0dp and gain an elevation of 8dp on hover . From google.com design spec components https : www.google.com design spec components cards.html cards-content-blocks", "Question : Disclaimer : I am using Xamarin.Android . .. . .. . I created a view set its elevation and then add it to my main layout . The view successfully gets added to the layout when I trigger the event but there is no elevation shadow whatsoever . Here is what I am working with : .. . .. . View that gets added programmatically : .. . .. . Event to add the view : .. . .. . Any ideas on why the shadow doesn t show I ve tried setting SetClipToPadding false and SetClipChildren false on the tooltip but that had no effect . Comment : may be you have old version of android-elevation supported from 21 Lollipop version Comment : Well I know for sure that views that are part of the .xml layout and have elevation set to them work . The shadows work as expected on those items . This seems to be strictly views added programmatically . Comment : Please @hellaadrew can you mark my post as the correct answer thank you . Comment : I still have my eye on this thread . Sorry for the wait however I haven t had the time to return back to this issue in my project . Once I can get back to it I ll report back .. . Answer : Use the AppCompat method ViewCompat.SetElevation View int to set the elevation as desired . But on a pre-Lollipop devices the method appears to do nothing . The only way I found to render shadows to pre-Lollipop UI elements was using a background instead : .. . .. . If you want do dig more on this topic go to this reddit https : www.reddit.com r androiddev comments 2kd843 so how are you guys doing with your current topic and search for elevation . There are really good updated information there . Comment : I finally managed to try out ViewCompat.SetElevation View int on that TooltipTest view . Unfortunately the shadow still doesn t appear . I m considering using Paint to render my shadow . However setting the View s background to the dialog holo light frame worked and looks pretty darn good Comment : Glad that worked for you . Comment : I just discovered why it wasn t working . I will be adding another answer .", "Question : null .. . Answer : I m trying to use elevation in my project following the material-theme tutorial from Xamarin https : developer.xamarin.com guides android user-interface material-theme . I ve followed each and every step in the tutorial but for some strange reason elevation still does not work at runtime . Here is the designer : enter image description here http : i.stack.imgur.com RG9F7.png .. . .. . And at runtime : .. . .. . enter image description here http : i.stack.imgur.com prgMj.png .. . .. . Clearly the elevation fails at runtime . I m using a Windows 10 OS latest Xamarin Studio Xamarin android versions i ve downloaded SDK 22 and the latest JDK . My emulator is API 22 Lollipop . Main.XML : .. . .. . AssemblyInfo.cs : .. . .. . Note that I have added assembly : Application Theme @android : style Theme.Material.Light just like in the tutorial ." ] }
[ "yes-answer-long", "yes-answer-short" ]
material-design
UNK_RELATION
fw1@cfml@82
fw1 -- framework one or fw 1 is a lightweight convention-based mvc framework for @placeholder .
{ "confidence": [ 44.06208419799805, 42.46146774291992, 40.18614196777344, 39.01979446411133, 38.17628860473633, 34.045379638671875, 32.8028450012207, 31.175495147705078, 30.206127166748047, 29.353755950927734, 29.206443786621094, 28.863861083984375, 28.753250122070312, 28.496288299560547, 27.74768829345703, 27.23520278930664, 27.23520278930664, 27.23520278930664, 27.081069946289062, 26.674549102783203, 26.40169334411621, 26.026653289794922, 26.026653289794922, 25.73394775390625, 25.478485107421875, 24.776622772216797, 24.579954147338867, 24.579954147338867, 23.371402740478516, 23.371402740478516, 23.13260269165039, 22.954883575439453, 22.61977767944336, 21.746334075927734, 21.698406219482422, 21.698406219482422, 21.472190856933594, 21.178401947021484, 20.977500915527344, 20.44447135925293, 20.28139305114746, 20.223785400390625, 19.98971939086914, 19.926197052001953, 19.926197052001953, 19.926197052001953, 19.158628463745117, 19.158628463745117, 19.040019989013672, 18.598716735839844, 18.18799591064453, 17.0999698638916, 16.908212661743164, 16.50159454345703, 15.939543724060059, 15.848550796508789, 15.651933670043945, 15.40433120727539, 15.212130546569824, 14.80596923828125, 14.80596923828125, 14.439760208129883, 14.439760208129883, 14.439760208129883, 14.233503341674805, 14.233503341674805, 14.195779800415039, 14.02959156036377, 13.784398078918457, 13.784398078918457, 13.784398078918457, 13.784398078918457, 13.784398078918457, 13.784398078918457, 13.784398078918457, 13.784398078918457, 13.784398078918457, 13.784398078918457, 13.784398078918457, 13.784398078918457, 13.784398078918457, 13.784398078918457, 13.784398078918457, 13.784398078918457, 13.784398078918457, 13.744251251220703, 13.597417831420898, 13.584272384643555, 12.821040153503418, 12.821040153503418, 12.758899688720703, 12.375720977783203, 11.962658882141113, 11.962658882141113, 11.962658882141113, 11.962658882141113, 11.962658882141113, 11.962658882141113, 11.962658882141113 ], "content": [ "I downloaded Framework 1 from RIAforge http : fw1.riaforge.org and browsed to it .", "I use Framework One FW 1 if it can help .", "Project structure is defined by framework -- it is convention-based .", "There s a cool helper isAjax in CFWheels framework it is easy to port to the FW 1 .", "FW 1 is built to be deliberately lightweight etc .", "See below .. . .. . Is this approach consistent with how MVC and FW 1 should be doing this", "I m using Framework One FW 1 Coldfusion 10 and trying to use Tuckey URLRewriteFilter to remove the index.cfm from the URL .", "See : github.com seancorfield fw1 wiki Developing-Applications-Manual https : github.com seancorfield fw1 wiki Developing-Applications-Manual", "I can t speak for the requirements of MVC or FW 1 but I can tell you how to do this is your cfc .", "I ve got fw1 http : fw1.riaforge.org using the content of the default.cfm page as the editable content region .", "We are talking here about FW 1 right .", "Other info that may be pertinent : .. . .. . This is a MURA plugin based on a recent version of FW 1 .", "groups.google.com group framework-one browse thread thread http : groups.google.com group framework-one browse thread thread b3210d115fd2ff01", "Can someone explain how the FW1 service call works", "By default FW 1 1.x stores the result-of the initial service method call in rc.data .", "All of my FW 1 controllers extend extend base.cfc .", "Where should traffic logging be done on an FW 1 site", "I am trying to get per subsystem error files in FW 1 .", "The template for the FW 1 plugin by Steve Withington works just fine and when I was developing my app as a normal FW 1 application it worked fine .", "This is with ColdBox but you should be able to implement something similar in fw1 .", "A service method may return a result which is placed into the request context by FW 1 .", "The choices have been narrowed down to either CFWheels Coldbox or FW 1 .", "So for a RoR developer FW 1 and CB would probably be more cumbersome .", "See : https : github.com seancorfield fw1 wiki Reference-Manual .. . .. . A service method is passed a collection of named arguments based on whatever is in the request context after the controller methods have executed i.e . after before startItem and item .", "I am creating an FW 1 based plugin for Mura CMS and after I installed it I was getting permanent redirect errors in my browser .", "If you need ColdFusion 8 and 9.0.0 suppport FW 1 version 1.2 is still a great piece of software and will work on your existing server .", "I think you can set user as private but I haven t touched FW 1 for a while to know if this works .", "I am currenting using FW 1 and tracking traffic via the following function-call .. . .. . Currently it is ran on setupRequest in application.cfc .", "I ve got a FW 1 app on Railo 4.2.2 Apache and for some reason it s calling onApplicationStart on every request .", "FW 1 puts URL and form variables in the RC struct true but it doesn t destroy the Form struct .", "Framework 1 s newest version 2.x requires ColdFusion 9.0.1 at a minimum which you don t have thanks for posting your exact version - great question asking skills .", "Currently I am using partials concept in my FW 1 views : these chunks of layout that can be re-used by different views .", ".. . .. . The error occurred in C : inetpub wwwroot FW1 org corfield framework.cfc : line 46 .. . .. . 44 : .. . .. . 45 : .. . .. . 46 : public void function addRoute .. . .. . I m using cf9.0.0.25.1028", "I am using FW 1 so all of my form fields get put into the RC scope rather than remaining in the Form scope .", "Or maybe there are some framework events flags which would allow me to handle missing method situation in before", "It is similar to azawaza s suggestion but at least it wont involve the framework application invokation which is good for performance .", "I am trying to understand if Fusebox 5.5 the latest version which am using supports any kind of convention based url-mapping .", "I ve double checked the application timeout 1 day and the FW 1 setting - it s turned off - so there should be no reason the app would be losing application scope on every request .", "I had my own lightweight ORM that worked really well for me .", "I think this approach is better than others because it is using built-in framework tools easy to implement and does not require external setup .", "But this is my first real-life FW 1 project and I came with idea too late to refactor so many views 1 plus I think having partials in same directory is worse from maintenance point of view than having them where it makes sense for them 2 .", "I was pretty sure the FW 1 settings had nothing to do with my issue but wanted to make sure .", "This allows you to override the convention and apply a single view to multiple controller methods .", "Anyway to identify if it s some sort of bug with creating entities in onApplicationStart which is calling FW 1 s setupApplication try moving the same code into index.cfm or something .", "@Al Yes all variable scopes have their own structs but in FW 1 my form and url scopes get mixed together along with some other stuff .", "All you do is pass in a struct in my case the Rc struct from FW 1 containing what should be structures but displaying as strings and you will be returns a structure with nested structures .", "It looks like you already have it with the url.folder variable so you would do this : .. . .. . It looks like you re using FW 1 so I assumed buildURL works as advertised and your url form variables are in the rc scope .", "just starting to use coldfusion fusebox a bit this is my second question asked here where a lot of the response mentioned that fusebox is no longer supported and there are possibly better suited frameworks - so am looking at ColdBox and FW 1 - but still wanted to ask this Fusebox question .", "No framework that I know of can avoid URL rewriting if you want to remove the index.cfm .. . .. . IIS7.5 supports it natively using the web.config or using built-in wizards Apache has mod-rewrite via .htaccess .", "I have generateSES set to true and SESOmitIndex to true in the FW 1 settings .. . .. . These two settings are irrelevant - they only affect the behaviour of the buildUrl method .", "I have the noxml skeleton app which starts and runs on the urL : .. . .. . Now I have seen that this defaults to executing the welcome function within the app controller - what I want to know is if there is convention based url-mapping built-in so i can define my urls like this : .. . .. . e.g .", "Though maybe be useful to know that the presence of a path info will toggle the generateSES flag on for that request even if you explicitly disable it in the FW settings .", "suppressImplicitService true means the service isn t automatically called and placed in rc.data which was the 1.x behavior .", "Working with a category selector in the form of a drop-down menu using : .. . .. . Assuming this form refactored to use the rc scope is in views main default.cfm and category.cfm is in views main as well does FW 1 require a controller function in order to get the user to a new page with a url variable or can it still be a simple view-to-view process", "I m trying to get it working with ORMExecuteQuery Coldfusion 9 based on Hibernate .", "Which is why I tend to stick to one or the other .", "+1 for the right function .", "One solution is to create the user method in member.cfc controller and redirect user somewhere .", "Conversion is a one-time event .", "But it d add one more layer of complexity with repository structure and workflow and IDE second project effectively for me personally .", "One can override it of course but it doesn t look as wise choice for long term maintenance .", "OK since there s no answer which I ve expected which is fine here s one more approach which I am using for email templates already .", "I believe you cannot disable views completely but there s a pretty simple workaround : you can create one view and use it for many actions .", "This way my view looks like this : .. . .. . Any way now in our action we need to do something like this : .. . .. . .. . .. . There s one more gotcha for this .", "I really don t want to create a view just to output 1 variable so I was wondering if there was a way that I don t have to use a view and only use the controller to output simple strings .", "http : stackoverflow.com questions 744181 how-do-i-create-search-engine-safe-urls-in-fusebox-5-1-noxml .. . .. . As the poster mentions apparently there is built-in URL rewriting in FB 5.5 but I m not familiar with 5.5 intimately .", "One of my helper functions logs the time it takes to index a solr collection .", "To prevent the problem I ve described in question controller emails.cfc looks like this : .. . .. . I guess it would be possible to create one more such controller partials.cfc and keep all views in views partials .", "I m getting the following error : .. . .. . Invalid CFML construct found on line 46 at column 81 .", ".. . ColdFusion was looking at the following text : .. . .. . .. . .. . The CFML compiler was processing : .. . .. . .. . A script statement beginning with public on line 46 column 9 .", "Just update your server and you will be set .", "Thanks Nathan", "As I read the section from the manual below .", "I thought the following should work .", "controller comparables.cfc .. . .. . service comparables.cfc .. . .. . .. . .. . The following view displays rc.autocomplete not yet implemented .. . .. . views comparables autocomplete.cfm", "suppressImplicitService is set to true by default in v2 therefore you should really invoke your own service s and put the results in rc yourself .", "Henry the call to service in the controller is doing this placing the result in rc.autocomplete .", "The code looks correct to me assuming that rc.term is defined before the service call .", "What do you see when you dump the arguments scope from within the service function", "Thanks for the help .", "I believe that it was getting cached .", "When I did a reload true things improved and started working .", "I ll post any corrections when I get back to work tomorrow .", "I was finally able figure out how it all fits together .", "The following service call would return a value immediately whereas the above would not be called until the controller method has finished .", "http : stackoverflow.com questions 744181 how-do-i-create-search-engine-safe-urls-in-fusebox-5-1-noxml and having added the suggested basic config : .. . .. . I can hit this url : .. . .. . but obviously thats still a pretty ugly url. . .. . .. . Is what I want even possible out of the box with fusebox 5.5", "If you re trying to put helper functions together for use in CFCs one option may be to use the component.cfc file .", "using before method like you mentioned while similar will require you to repeat same code in every before method in every controller that has restricted items running it in setupRequest on the other hand you only have ONE place the code is in security.cfc in my example code .", "Investigate your shortlist - they all come with sample applications - and determine which one you d rather work with going forward then do what it takes to convert - none of the three should be especially difficult .", "One thing I saw is that CFWheels seems to make more sense when you you are starting a project from scratch and can easily use its ORM .", "I have generateSES set to true and SESOmitIndex to true in the FW 1 settings .. . .. . I have the following code in my urlrewrite.xml file .. . .. . When I go view the application I get a 404 error so I dumped the CGI scope in my onMissingTemplate method and I see the following keys that caught my eye .", "Therefore before upgrading you should save any code that you have added to the component.cfc file and then copy the code into the new component.cfc file . .. . .. . If that solution is TOO global you can extend your helper cfc but it has to be done in every cfc and doesn t answer your one-time-set-it-and-forget-it idea .", "This is happening intermittently usually at start up .", "I get the above error message when executing the following code .", "The first line executes fine but the second line blows up .", "The solution is to run ormreload .. . .. . The problem keeps coming up in an unpredictable way though .", "Even when no changes have been made to the beans or gateways that are using ORM .", "Completely unpredictable and impossible to replicate on purpose .", "Is there something else that can mess with the hibernate mappings that could cause this type of problem ." ] }
{ "confidence": [ 54.15343475341797, 47.08385467529297, 41.81031036376953, 37.1927604675293, 35.185325622558594, 33.74962615966797, 33.325931549072266, 32.59862518310547, 31.421415328979492, 31.060331344604492, 30.872753143310547, 30.8158016204834, 29.967065811157227, 28.489013671875, 27.652868270874023, 26.769649505615234, 26.38463592529297, 26.212886810302734, 25.85455322265625, 25.109771728515625 ], "content": [ "Question : I downloaded Framework 1 from RIAforge http : fw1.riaforge.org and browsed to it . I m getting the following error : .. . .. . Invalid CFML construct found on line 46 at column 81 . .. . ColdFusion was looking at the following text : .. . .. . .. . .. . The CFML compiler was processing : .. . .. . .. . A script statement beginning with public on line 46 column 9 . .. . .. . The error occurred in C : inetpub wwwroot FW1 org corfield framework.cfc : line 46 .. . .. . 44 : .. . .. . 45 : .. . .. . 46 : public void function addRoute .. . .. . I m using cf9.0.0.25.1028 .. . Answer : Framework 1 s newest version 2.x requires ColdFusion 9.0.1 at a minimum which you don t have thanks for posting your exact version - great question asking skills . Just update your server and you will be set . If you need ColdFusion 8 and 9.0.0 suppport FW 1 version 1.2 is still a great piece of software and will work on your existing server . Comment : Thanks Nathan", "Question : Can someone explain how the FW1 service call works As I read the section from the manual below . I thought the following should work . See : https : github.com seancorfield fw1 wiki Reference-Manual .. . .. . A service method is passed a collection of named arguments based on whatever is in the request context after the controller methods have executed i.e . after before startItem and item . A service method may return a result which is placed into the request context by FW 1 . By default FW 1 1.x stores the result-of the initial service method call in rc.data . controller comparables.cfc .. . .. . service comparables.cfc .. . .. . .. . .. . The following view displays rc.autocomplete not yet implemented .. . .. . views comparables autocomplete.cfm Comment : suppressImplicitService is set to true by default in v2 therefore you should really invoke your own service s and put the results in rc yourself . See : github.com seancorfield fw1 wiki Developing-Applications-Manual https : github.com seancorfield fw1 wiki Developing-Applications-Manual Comment : Henry the call to service in the controller is doing this placing the result in rc.autocomplete . suppressImplicitService true means the service isn t automatically called and placed in rc.data which was the 1.x behavior . Comment : The code looks correct to me assuming that rc.term is defined before the service call . What do you see when you dump the arguments scope from within the service function Comment : Thanks for the help . I believe that it was getting cached . When I did a reload true things improved and started working . I ll post any corrections when I get back to work tomorrow . .. . Answer : I was finally able figure out how it all fits together . The following service call would return a value immediately whereas the above would not be called until the controller method has finished .", "Question : null .. . Answer : I am creating an FW 1 based plugin for Mura CMS and after I installed it I was getting permanent redirect errors in my browser . I noticed that my URL which should be plugins studentms action admin : main.default was being turned into plugins studentms action admin 3Amain.default . I don t know what I might have set that is causing that . The template for the FW 1 plugin by Steve Withington works just fine and when I was developing my app as a normal FW 1 application it worked fine . If I try to go straight to either the root of the plugin plugins studentms or directly to the proper URL then it redirects to the URL encoded format . Anyone have any ideas as to what would cause that PS I have tried in multiple browsers . Comment : groups.google.com group framework-one browse thread thread http : groups.google.com group framework-one browse thread thread b3210d115fd2ff01", "Question : Currently I am using partials concept in my FW 1 views : these chunks of layout that can be re-used by different views . They are prefixed with underscore for easier maintenance but unlike the CFWheels these still can be used as implicit views which is not very good . For example there s a directory structure : .. . .. . This way actual user form is in the user.cfm and can be included to the two others using view member user . What I want is to prevent access to the pages like member . user on the website . One solution is to create the user method in member.cfc controller and redirect user somewhere . But creating such methods for each partial is kinda inefficient approach . Alternative to this would be parsing the rc.action in before and checking if there s underscore in the prefix but I m not sure this is clean solution . Is it possible to disable the action throw 404 if there s no corresponding method in controller Or maybe there are some framework events flags which would allow me to handle missing method situation in before Thank you . Comment : I think you can set user as private but I haven t touched FW 1 for a while to know if this works . Comment : @Henry I could but that s the point -- I don t want to create dozens of blank methods I have many partials . Comment : Use mod-rewrite to detect URLs containing and block redirect as appropriate Comment : @PeterBoughton Please post this as answer . It is similar to azawaza s suggestion but at least it wont involve the framework application invokation which is good for performance . Comment : Wasn t sure it counted as an answer more of a workaround but ok.. . .. . Answer : The easiest way to do this is to put them in a folder that is not in the web root . Therefore they are not web accessible . Then use a ColdFusion mapping to make them available to ColdFusion . Make sense Comment : Maybe it would in some cases . But it d add one more layer of complexity with repository structure and workflow and IDE second project effectively for me personally . Comment : @Sergii this is the established way of achieving what you are asking for . You shouldn t have to create a new project . You can just have folder structure that supports it . i.e . www this is your webroot views this is where your views go then you promote it as a mapping . The mod-rewrite route will work but it is a bit of a sledgehammer approach to something that can be solved by CF itself Comment : I m sorry but it is not . We are talking here about FW 1 right . Project structure is defined by framework -- it is convention-based . One can override it of course but it doesn t look as wise choice for long term maintenance . For example if some other applications follow standard structure it d be confusing . Comment : I know that . It only cares where ColdFusion thinks it is though so creating a mapping tells it the answer . It is obviously your choice but I think you are just making it hard for yourself . Comment : You know I think your answer was incorrect from very beginning . Let s say I ve created the mapping for views which actually lay outside of the webroot . But problem is that application thinks that they are regular views and all the implicit actions going to work as usually including partials . I need them to be accessible by application to include in the regular views .", "Question : All of my FW 1 controllers extend extend base.cfc . In base.cfc there is a function called addMessage . Messages are thing like You have successfully logged in . There is an error in your data Error occurred while processing request . The addMessage appends messages to a variable called request.arMessage an array . When I get to the layout file the layout file loops through all the message and displays them on the page . I am considering replacing request.arMessage with request.qryMessage . That way I can run a QoQ and sort by severity as opposed to last in last out . See below .. . .. . Is this approach consistent with how MVC and FW 1 should be doing this .. . Answer : I can t speak for the requirements of MVC or FW 1 but I can tell you how to do this is your cfc . Instead of building an array build a query object . Then use your Q of Q to sort it . Then use a combination of ListToArray and ValueList to create your sorted array .", "Question : Currently I am using partials concept in my FW 1 views : these chunks of layout that can be re-used by different views . They are prefixed with underscore for easier maintenance but unlike the CFWheels these still can be used as implicit views which is not very good . For example there s a directory structure : .. . .. . This way actual user form is in the user.cfm and can be included to the two others using view member user . What I want is to prevent access to the pages like member . user on the website . One solution is to create the user method in member.cfc controller and redirect user somewhere . But creating such methods for each partial is kinda inefficient approach . Alternative to this would be parsing the rc.action in before and checking if there s underscore in the prefix but I m not sure this is clean solution . Is it possible to disable the action throw 404 if there s no corresponding method in controller Or maybe there are some framework events flags which would allow me to handle missing method situation in before Thank you . Comment : I think you can set user as private but I haven t touched FW 1 for a while to know if this works . Comment : @Henry I could but that s the point -- I don t want to create dozens of blank methods I have many partials . Comment : Use mod-rewrite to detect URLs containing and block redirect as appropriate Comment : @PeterBoughton Please post this as answer . It is similar to azawaza s suggestion but at least it wont involve the framework application invokation which is good for performance . Comment : Wasn t sure it counted as an answer more of a workaround but ok.. . .. . Answer : OK since there s no answer which I ve expected which is fine here s one more approach which I am using for email templates already . In the views emails all the views are email templates which do not have actions but invoked only like this : .. . .. . Where registration confirmation.cfm is template for specific email body and default.cfm could call it differently is email template itself . To prevent the problem I ve described in question controller emails.cfc looks like this : .. . .. . I guess it would be possible to create one more such controller partials.cfc and keep all views in views partials . But this is my first real-life FW 1 project and I came with idea too late to refactor so many views 1 plus I think having partials in same directory is worse from maintenance point of view than having them where it makes sense for them 2 . These are two reasons why I ve asked this question .", "Question : just starting to use coldfusion fusebox a bit this is my second question asked here where a lot of the response mentioned that fusebox is no longer supported and there are possibly better suited frameworks - so am looking at ColdBox and FW 1 - but still wanted to ask this Fusebox question . I am trying to understand if Fusebox 5.5 the latest version which am using supports any kind of convention based url-mapping . I have the noxml skeleton app which starts and runs on the urL : .. . .. . Now I have seen that this defaults to executing the welcome function within the app controller - what I want to know is if there is convention based url-mapping built-in so i can define my urls like this : .. . .. . e.g . appname controllername functionname .. . .. . I have also seen this question : How do I create Search Engine Safe URLs in Fusebox 5.1 noxml http : stackoverflow.com questions 744181 how-do-i-create-search-engine-safe-urls-in-fusebox-5-1-noxml and having added the suggested basic config : .. . .. . I can hit this url : .. . .. . but obviously thats still a pretty ugly url. . .. . .. . Is what I want even possible out of the box with fusebox 5.5 documentation and community links on the fusebox site 404. . .. . Answer : If you want to do the purest form of SES URLs http : site.com controller action it requires the removal of the index.cfm which involves having to do some URL rewriting on the web server-side . No framework that I know of can avoid URL rewriting if you want to remove the index.cfm .. . .. . IIS7.5 supports it natively using the web.config or using built-in wizards Apache has mod-rewrite via .htaccess . There are 3rd party products for IIS6 7 . If you want more power control you can also check out using coldcourse http : coldcourse.riaforge.org as mentioned here : .. . .. . How do I create Search Engine Safe URLs in Fusebox 5.1 noxml http : stackoverflow.com questions 744181 how-do-i-create-search-engine-safe-urls-in-fusebox-5-1-noxml .. . .. . As the poster mentions apparently there is built-in URL rewriting in FB 5.5 but I m not familiar with 5.5 intimately . Comment : Ok thanks . And if I didn t mind the index.cfm but wanted to use inex.cfm controller action could I do that easily", "Question : Currently I am using partials concept in my FW 1 views : these chunks of layout that can be re-used by different views . They are prefixed with underscore for easier maintenance but unlike the CFWheels these still can be used as implicit views which is not very good . For example there s a directory structure : .. . .. . This way actual user form is in the user.cfm and can be included to the two others using view member user . What I want is to prevent access to the pages like member . user on the website . One solution is to create the user method in member.cfc controller and redirect user somewhere . But creating such methods for each partial is kinda inefficient approach . Alternative to this would be parsing the rc.action in before and checking if there s underscore in the prefix but I m not sure this is clean solution . Is it possible to disable the action throw 404 if there s no corresponding method in controller Or maybe there are some framework events flags which would allow me to handle missing method situation in before Thank you . Comment : I think you can set user as private but I haven t touched FW 1 for a while to know if this works . Comment : @Henry I could but that s the point -- I don t want to create dozens of blank methods I have many partials . Comment : Use mod-rewrite to detect URLs containing and block redirect as appropriate Comment : @PeterBoughton Please post this as answer . It is similar to azawaza s suggestion but at least it wont involve the framework application invokation which is good for performance . Comment : Wasn t sure it counted as an answer more of a workaround but ok.. . .. . Answer : You can create a method in a controller that checks rc.action to see if the item part starts with a and redirects elsewhere or throws an error or whatever you want to do . Then call this method using controller function in your setupRequest method in Application.cfc . For example I have a controllers security.cfc controller with checkItem method as follows : .. . .. . And call it in setupRequest in Application.cfc : .. . .. . This way it is automatically called on every request - no need to define a separate method for each item in controllers . Comment : That s essentially the same as I ve described in paragraph starting with Alternative to this .. . but thanks any way . Comment : using before method like you mentioned while similar will require you to repeat same code in every before method in every controller that has restricted items running it in setupRequest on the other hand you only have ONE place the code is in security.cfc in my example code . Comment : Well actually you can have before after methods in Application.cfc as well . Comment : I think this approach is better than others because it is using built-in framework tools easy to implement and does not require external setup . Let s consider this correct answer .", "Question : I have a large Adobe ColdFusion 9 site that uses the no XML version of Fusebox 5.5 . The site does not currently use CFCs in the model . The choices have been narrowed down to either CFWheels Coldbox or FW 1 . My question is which of those three would be faster and easier to convert to when moving from a Fusebox no XML site Thank you .. . Answer : Ease of conversion is the wrong question . Conversion is a one-time event . Maintenance is an on-going situation and is a far more important factor to base your decision on . Investigate your shortlist - they all come with sample applications - and determine which one you d rather work with going forward then do what it takes to convert - none of the three should be especially difficult . Though I ve only dabbled with cfWheels and ColdBox so can t guarantee there isn t some hidden gotchas that make them more complicated to convert but again if they re easier for your team to work with that s more important . Comment : Thanks for the response . Are you suggesting that it is all a matter of preference or that some might be more cumbersome to work with If it is just a matter of preference then I might as well close the question . Comment : Kinda - depends how you define preference - they all have different aims and it depends how those align with the developers using them . FW 1 is built to be deliberately lightweight etc . ColdBox is built to be full-stack enterprise . cfWheels is built to do whatever Ruby on Rails does . So for a RoR developer FW 1 and CB would probably be more cumbersome . Comment : Makes sense . I did take a more in depth look at them and they each have some nice features . One thing I saw is that CFWheels seems to make more sense when you you are starting a project from scratch and can easily use its ORM . Comment : What goals that you are trying to meet", "Question : I ve got fw1 http : fw1.riaforge.org using the content of the default.cfm page as the editable content region . While this works fine for static content I d like to add the ability to edit the content over with fckeditor or some other in-browser WYSIWYG tool . Is there any tool you could recommend that would make this easy I don t want to convert to a CMS like mura just want to login and the ability to edit the contents of about 5 files with the possibility of creating a timestamped backup of the file . .. . Answer : ColdFusion 8 and above has a built-in WSYIWYG editor . It is a part of cftextarea .. . .. . http : livedocs.adobe.com coldfusion-8 htmldocs help.html content Tags t 02.html", "Question : I ve got fw1 http : fw1.riaforge.org using the content of the default.cfm page as the editable content region . While this works fine for static content I d like to add the ability to edit the content over with fckeditor or some other in-browser WYSIWYG tool . Is there any tool you could recommend that would make this easy I don t want to convert to a CMS like mura just want to login and the ability to edit the contents of about 5 files with the possibility of creating a timestamped backup of the file . .. . Answer : We have the concept of a dynamic text area on some pages on applications that don t require a full on cms . This is with ColdBox but you should be able to implement something similar in fw1 . We have a helper component with a method that allows us to render dynamic text with a specific code eg . helppagetext in a zone in the page . We then have a very simple CRUD application using CKEditor that saves text blocks against those codes . The CRUD application is protected by a pre-existing login-system . It is pretty simple to implement something like this especially if you already have a security and login-system in-place . Hope that helps .", "Question : Currently I am using partials concept in my FW 1 views : these chunks of layout that can be re-used by different views . They are prefixed with underscore for easier maintenance but unlike the CFWheels these still can be used as implicit views which is not very good . For example there s a directory structure : .. . .. . This way actual user form is in the user.cfm and can be included to the two others using view member user . What I want is to prevent access to the pages like member . user on the website . One solution is to create the user method in member.cfc controller and redirect user somewhere . But creating such methods for each partial is kinda inefficient approach . Alternative to this would be parsing the rc.action in before and checking if there s underscore in the prefix but I m not sure this is clean solution . Is it possible to disable the action throw 404 if there s no corresponding method in controller Or maybe there are some framework events flags which would allow me to handle missing method situation in before Thank you . Comment : I think you can set user as private but I haven t touched FW 1 for a while to know if this works . Comment : @Henry I could but that s the point -- I don t want to create dozens of blank methods I have many partials . Comment : Use mod-rewrite to detect URLs containing and block redirect as appropriate Comment : @PeterBoughton Please post this as answer . It is similar to azawaza s suggestion but at least it wont involve the framework application invokation which is good for performance . Comment : Wasn t sure it counted as an answer more of a workaround but ok.. . .. . Answer : You could use mod-rewrite http : httpd.apache.org docs current mod mod rewrite.html to detect URLs containing and block redirect as appropriate . For example : .. . .. . .. . The first RewriteCond makes sure that the file does not exist - so if you have a real file css default.css any requests for that will fail this condition and not redirect . The second RewriteCond accepts any alphanumeric for the first segment then continues if there is a at the start of the second segment . It s not necessary to match the entire URI just the start is enough . Finally the RewriteRule is applied only if both conditions were true but matches all URLs and performs a server-side redirect to error 404 - you can update that part as appropriate . The L flag tells mod-rewrite not to attempt any further rewrites .", "Question : I start this year with a big question . When I do .. . .. . It throws an error like myName is undefined . Why I can resolve this by doing .. . .. . But still I want to know why Coldfusion don t allow to pass myName Thierry in arguments I use Framework One FW 1 if it can help . Thank you Comment : I suspect it related to your function definition . What is the signature of myCustomFunction Also what is the exact error message Comment : I ll echo what the others have said . The code you quote is fine . It s some other code that is giving you the error . Can I recommend you look at the error with Robust Exception Handling switched on it ll give you the exact error message and the line it occurs on . Then you can provide us with that instead of something vague like It throws an error like myName is undefined . Don t give us what the error is like give us the exact error and the exact code that causes the error . Comment : This sounds like a variant of bug 3482734 https : bugbase.adobe.com index.cfm event bug id 3482734 - I m guessing the actual code is inside a block and uses named arguments . .. . Answer : If I do this : .. . .. . The code runs without error and I see the dump . There must be something else going on with your code .", "Question : I m using Framework One FW 1 Coldfusion 10 and trying to use Tuckey URLRewriteFilter to remove the index.cfm from the URL . I have generateSES set to true and SESOmitIndex to true in the FW 1 settings .. . .. . I have the following code in my urlrewrite.xml file .. . .. . When I go view the application I get a 404 error so I dumped the CGI scope in my onMissingTemplate method and I see the following keys that caught my eye . It seems like it is butchering the Request Context etc . I ve seen some other posts here on SO but without any answers . I m using ColdFusion 10 on my local Windows Vista machine with the local built-in webserver . Can anyone shed some light in what I m doing wrong or why this is happening I m using the URLRewriteFilter version 4.0.3 http : urlrewritefilter.googlecode.com svn-trunk src doc manual 4.0 index.html Comment : Im using Coldfusion 10 on my local Windows Vista machine with the local built-in webserver . - The built-in CF webserver Coyote or the built-in Windows webserver IIS .. . Answer : I have generateSES set to true and SESOmitIndex to true in the FW 1 settings .. . .. . These two settings are irrelevant - they only affect the behaviour of the buildUrl method . Though maybe be useful to know that the presence of a path info will toggle the generateSES flag on for that request even if you explicitly disable it in the FW settings . .. . .. . .. . If you re using a URL filter you don t need to worry about going via path info and it may be simpler to just rewrite to a query-string - again both are used processed regardless of the above settings . As a first step simply try this and see what you get : .. . .. . You ll probably notice the negative-lookahead there . . - it prevents actual files and directories from being incorrectly redirected - if you have any other root-level files add them in along with any top-level folder s containing your images stylesheets etc using as a delimiter . Comment : I was pretty sure the FW 1 settings had nothing to do with my issue but wanted to make sure . To answer your first question I m using the CF webserver but rewriting it to a query-string works much better . Thanks", "Question : I have an Ajax request that sends some data to a page and expects back a truthy or falsey value depending on if the data was saved . In my controller I do everything and set the content to a true or false value . I really don t want to create a view just to output 1 variable so I was wondering if there was a way that I don t have to use a view and only use the controller to output simple strings . .. . Answer : I believe you cannot disable views completely but there s a pretty simple workaround : you can create one view and use it for many actions . Let s say we ve created the view views main ajax.cfm what could be inside it Obviously simplest way is : .. . .. . Personally I like returning JSON it allows me to have status field plus data if needed . This way my view looks like this : .. . .. . Any way now in our action we need to do something like this : .. . .. . .. . .. . There s one more gotcha for this . Sometimes you don t want AJAX page to be accessed directly like opened in browser or vise-versa -- want to do some debugging when it is . There s a cool helper isAjax in CFWheels framework it is easy to port to the FW 1 . It could be as simple as adding method like this to controller : .. . .. . Actually that setup code above is also helper method in my apps : .. . .. . So in my action code whole check looks like this which is pretty compact and convenient : .. . .. . Hope this helps .", "Question : I start this year with a big question . When I do .. . .. . It throws an error like myName is undefined . Why I can resolve this by doing .. . .. . But still I want to know why Coldfusion don t allow to pass myName Thierry in arguments I use Framework One FW 1 if it can help . Thank you Comment : I suspect it related to your function definition . What is the signature of myCustomFunction Also what is the exact error message Comment : I ll echo what the others have said . The code you quote is fine . It s some other code that is giving you the error . Can I recommend you look at the error with Robust Exception Handling switched on it ll give you the exact error message and the line it occurs on . Then you can provide us with that instead of something vague like It throws an error like myName is undefined . Don t give us what the error is like give us the exact error and the exact code that causes the error . Comment : This sounds like a variant of bug 3482734 https : bugbase.adobe.com index.cfm event bug id 3482734 - I m guessing the actual code is inside a block and uses named arguments . .. . Answer : If your actual code looks more like this : .. . .. . Then it s because the literal struct and array notation in CF is very badly written and buggy . If you can confirm the circumstances it breaks raise an issue with Adobe https : bugbase.adobe.com there are several issues relating to this already you may or not feel like checking for duplicates . Comment : Thank you . Indeed the error shows up in an IF statement", "Question : I am building a form-for my ColdFusion application using the naming format report field-name which when using RoR or CFWheels would give me a struct on the backend called report containing all of my field names . I am using FW 1 so all of my form fields get put into the RC scope rather than remaining in the Form scope . I know that it is possible to convert my form fields into a ColdFusion struct because as I said CFWheels does it . I just have no idea how to make my application do it . Here is part of the form that I am talking about Comment : FWIW your Form scope is already a Struct . That s true of all variables scopes . Comment : @Al Yes all variable scopes have their own structs but in FW 1 my form and url scopes get mixed together along with some other stuff . I need just my form scope which is not accessible as far as I know . Comment : As Al said form is a struct which you can manipulate like any other structure . Comment : FW 1 puts URL and form variables in the RC struct true but it doesn t destroy the Form struct . You can still use it if absolutely necessary . Comment : Thanks Al . I didn t realize that it was accessible from controllers . I will stick with Adam s solution as it is reusable for any scope . .. . Answer : Adam had the right context but his code snippet was wrong . A function that will work is this : .. . .. . I tested it in my application outside of CFWheels and it worked perfectly . All you do is pass in a struct in my case the Rc struct from FW 1 containing what should be structures but displaying as strings and you will be returns a structure with nested structures . Example : Comment : +1 for the right function .", "Question : null .. . Answer : This is happening intermittently usually at start up . I get the above error message when executing the following code . The first line executes fine but the second line blows up . The solution is to run ormreload .. . .. . The problem keeps coming up in an unpredictable way though . Even when no changes have been made to the beans or gateways that are using ORM . Completely unpredictable and impossible to replicate on purpose . Is there something else that can mess with the hibernate mappings that could cause this type of problem . Other info that may be pertinent : .. . .. . This is a MURA plugin based on a recent version of FW 1 . ormreload is a persistent fix until it fails again .. . .. . My current solution is to put ormreload in the setupApplication method of application.cfc .. . .. . I just want to understand better what could be causing this problem . Comment : Dumb question here...but do you really need to covert the array to a query I use ORM extensively in my applications and I have never had a need to use entityToQuery . If you really need a query object why bother with ORM Just run a SQL query instead . Comment : @ScottStroz Great question . I have rarely used CF ORM in the past . I had my own lightweight ORM that worked really well for me . Now I m working with an inherited app and I m trying keep tools consistent throughout the existing project . In this case I m trying get a list of all priorities so that I can populate a pick list . The picklist is a built using some customized UI tag libraries also inherited . So the picklist is looking for a query object . So I could refactor but still trying to figure out why entityToQuery is flaky for me . Thanks for the suggestion though . I may go that way . Comment : Make sure that var arr is not an empty array . entityToQuery only works if there are rows in the array . Comment : Using ORM and then converting to a query could be a lot of overhead . Which is why I tend to stick to one or the other . Comment : @JamesAMohler Array is not empty . Note that ORMreload fixes the problem . And it isn t a cache issue...dump and abort shows values . Removing the abort throws the error . Then ormReload fixes the problem .", "Question : I am currenting using FW 1 and tracking traffic via the following function-call .. . .. . Currently it is ran on setupRequest in application.cfc . I have two subsystems : home and admin . home will always have it traffic tracked . Admin will never have its traffic tracked . I am considering moving the function-call to home layouts default.cfm because only the home subsystem is tracked . I don t want to move the traffic tracker there because this has nothing to do with layouts . Where should traffic logging be done on an FW 1 site .. . Answer : It would be done in setupRequest where you are currently doing it . To avoid it occurring for the Admin subsystem wrap it in a conditional check for getSubSystem NEQ admin before running it . Alternatively if you forsee adding multiple subsystems with different statuses you could implement it instead by creating a TrackedSubsystems or UntrackedSubsystems item in Variables.Framework with a list of subsystem names then check for : Comment : I like the idea of using Variables.Framework.TrackedSubSystems as it is self describing .", "Question : I ve got a FW 1 app on Railo 4.2.2 Apache and for some reason it s calling onApplicationStart on every request . I can tell it s not any reinit code - put in a callStackGet dump in setupApplication and can see that the root call is onApplicationStart not via any init hook . Are there any known bugs in Railo that would cause this I ve double checked the application timeout 1 day and the FW 1 setting - it s turned off - so there should be no reason the app would be losing application scope on every request . There is another strange thing I m seeing too but I don t know that it is related . In setup application I am creating a new user object via ORM and persisting it if a local admin doesn t exist . I dump it and see the ID but it s not in the database when I query the table yes I flushed it . The next page hit creates the user again since it doesn t exist still.. . . Edit : Add persist object code for Adam . Comment : Are you setting the application name Comment : Agreed with Bardware if you re not setting an application name or are setting it to something random every time that could cause this behavior . Comment : As for your ORM user creation bug post the code man . Comment : Application name is set yes . And no there is no duplicate application running locally . @AdamTuttle - come on man you know I know how to create and persist a simple user Comment : I would usually give you the benefit of the doubt true . But if you don t want to post code how can you expect help Anyway to identify if it s some sort of bug with creating entities in onApplicationStart which is calling FW 1 s setupApplication try moving the same code into index.cfm or something . Double check that it s not your persistence code . Think like a scientist and isolate those variables . .. . Answer : I think the failure to persist to the DB may be a regression bug with Railo 4.2.2 . See https : issues.jboss.org browse RAILO-3279 .. . .. . Try wrapping your save flush in a transaction : .. . .. . Normally you shouldn t need both . Either the transaction or ormFlush should make it persist ." ] }
[ "yes-answer-long", "yes-answer-short" ]
cfml
UNK_RELATION
spring-test@integration-testing@259
spring-test -- spring-test is the testing module of the spring framework providing support for unit and integration-testing with junit and testng including various mocks for unit-testing and the spring testcontext framework the spring-mvc test framework for @placeholder spring-based applications .
{ "confidence": [ 110.43497467041016, 104.21735382080078, 101.75886535644531, 100.54741668701172, 98.27912902832031, 98.03781127929688, 98.01581573486328, 96.4039077758789, 96.36105346679688, 96.32933807373047, 96.23854064941406, 94.56731414794922, 94.47471618652344, 93.71758270263672, 92.84703826904297, 92.47527313232422, 92.18639373779297, 91.86588287353516, 91.78353118896484, 91.61763000488281, 91.36359405517578, 91.3340072631836, 90.87625885009766, 90.03233337402344, 89.79035186767578, 89.7795639038086, 89.43988037109375, 89.1078872680664, 88.84317016601562, 87.9407730102539, 86.05708312988281, 85.9259262084961, 85.69279479980469, 85.2960205078125, 84.76405334472656, 84.1739273071289, 84.1739273071289, 84.15148162841797, 83.97301483154297, 83.69120788574219, 83.27796936035156, 83.0893325805664, 82.7889175415039, 82.52308654785156, 82.48773956298828, 82.14263916015625, 82.10923767089844, 82.10923767089844, 80.94185638427734, 80.88229370117188, 80.78823852539062, 80.75092315673828, 80.41307067871094, 80.0911865234375, 79.97896575927734, 79.73536682128906, 79.48347473144531, 79.39373016357422, 79.27851867675781, 79.08065795898438, 78.96475982666016, 78.96475982666016, 78.95378875732422, 78.7015380859375, 78.7015380859375, 78.50602722167969, 78.16731262207031, 77.98365783691406, 77.7042007446289, 77.69671630859375, 77.62042236328125, 77.62042236328125, 77.39981079101562, 77.26051330566406, 77.25787353515625, 77.1799087524414, 77.12938690185547, 76.9384994506836, 76.92777252197266, 76.53197479248047, 76.06999206542969, 75.5562973022461, 75.29356384277344, 75.28641510009766, 75.0710678100586, 75.05565643310547, 74.85807037353516, 74.79068756103516, 74.64436340332031, 74.44670867919922, 74.30975341796875, 74.27586364746094, 74.27586364746094, 74.27586364746094 ], "content": [ "I am new to unit-testing with spring-test .", "A promising framework for testing Spring MVC https : github.com SpringSource spring-test-mvc", "I m working from the Spring documentation here http : docs.spring.io spring docs current spring-framework-reference htmlsingle spring-mvc-test-framework .", "The spring-test module has support for writing integration tests for @RequestMapping methods as described here http : docs.spring.io spring docs 4.0.0.RELEASE spring-framework-reference html testing.html spring-mvc-test-framework in a very simple and fluid way : .. . .. . Is there similar support for testing @MessageMapping methods using WebSockets", "The Spring ApplicationContext itself doesn t know anything about test methods and the Spring TestContext Framework doesn t support loading a test ApplicationContext per test method .", "You can use the Spring MVC Test Framework http : docs.spring.io spring docs current spring-framework-reference html testing.html spring-mvc-test-server to verify the target JSP for a resolved view .", "As the name implies the Spring MVC Test Framework is for testing Spring MVC Web and Spring MVC REST applications .", "spring-test has supported inheritance of loaders since Spring Framework 3.0 .", "Server-Side Tests http : docs.spring.io spring docs current spring-framework-reference html integration-testing.html spring-mvc-test-server .. . Setup Options http : docs.spring.io spring docs current spring-framework-reference html integration-testing.html spring-mvc-test-server-setup-options .. . Difference With End-to-End Integration Tests http : docs.spring.io spring docs current spring-framework-reference html integration-testing.html spring-mvc-test-vs-end-to-end-integration-tests .. . .. . Noteworthy excerpts : .. . .. . The webAppContextSetup loads the actual Spring MVC configuration resulting in a more complete integration test .", "Rossen Stoyanchev s Spring Framework 3.2 RC1 : Spring MVC Test Framework http : blog.springsource.org 2012 11 12 spring-framework-3-2-rc1-spring-mvc-test-framework .. . .. . Sam Brannen s Spring Framework 3.2 RC1 : New Testing Features http : blog.springsource.org 2012 11 07 spring-framework-3-2-rc1-new-testing-features", "Use Spring MVC Test framework and Mockito to test controllers http : markchensblog.blogspot.com 2013 02 use-spring-mvc-test-framework-and.html This uses Mockito along with webAppContextSetup but this is in Spring 3 .", "Sam author of the Spring TestContext Framework", "I am writing a test for controller using spring-test-mvc framework .", "Testing http : static.springsource.org spring docs 3.1.x spring-framework-reference html testing.html of the Spring reference for further details .", "- Sam author of the Spring TestContext Framework", "Regards .. . .. . Sam author of the Spring TestContext Framework", "Regards .. . .. . Sam author of the Spring TestContext Framework", "See the Integration testing with Spring http : docs.spring.io spring docs current spring-framework-reference html integration-testing.html section of the official documentation .", "You can use Spring 3.2 test framework if you added spring-test-mvc maven artifact .", "I m setting up unit tests for my Spring MVC Controllers and I am attempting to leverage the Spring MVC test framework .", ".. . .. . Prior to Spring Framework 4.1 the easiest way is to configure a custom PropertySource and register it with the Spring TestContext Framework before the ApplicationContext is loaded for your test .", "Recently I started using Spring MVC Test for testing Spring MVC controllers .", "So you don t need the SpringJUnit4ClassRunner : docs.spring.io spring docs current spring-framework-reference http : docs.spring.io spring docs current spring-framework-reference html integration-testing.html testcontext-junit4-rules", "TestExecutionListeners provide various types of functionality to tests running in the Spring TestContext Framework .", "I don t use Spring for unit-testing anymore .", "See sample code below that demonstrates unit-testing a controller using junit and spring-test .", "Yes there is an example of how to use a custom ActiveProfilesResolver in the Testing chapter http : docs.spring.io spring docs current spring-framework-reference html testing.html testcontext-ctx-management-env-profiles-ActiveProfilesResolver of the Spring Framework Reference Manual .", "From the reference Spring Security s testing support requires spring-test-4.1.3.RELEASE or greater .", "I am using junit 4.12 jmockit 1.19 spring-test 4.1.1.RELEASE for testing my Spring MVC Java project .", "Best regards .. . .. . Sam author of the Spring TestContext Framework", "Having a Spock test that uses only Spring testing facilities is perfectly fine .", "Search for false positives in the testing chapter http : docs.spring.io spring docs current spring-framework-reference html testing.html testcontext-tx-annotation-demo of the Spring reference manual for details .", "I am doing unit-testing on my Spring MVC controller methods .", "How to execute above method only once before all @Test methods with spring testing framework and junit4 .. . .. . Thank you", "I have a JUnit test where I am using Spring Test DBUnit http : springtestdbunit.github.io spring-test-dbunit and Spring declarative transaction management http : docs.spring.io spring docs current spring-framework-reference html transaction.html tx-decl-explained .", "In general the version of spring-test used should match the version of all other modules from the core Spring Framework .", "You really should not be mixing Spring Framework 2.5.6 modules with spring-test 4.1 because that is basically guaranteed not to work .", "I am using spring-test only for testing controllers .", "See @TestPropertySource in the Spring docs http : docs.spring.io spring docs current spring-framework-reference html integration-testing.html and Javadocs https : docs.spring.io spring docs current javadoc-api org springframework test context TestPropertySource.html .", "Methods annotated with @BeforeTransaction http : static.springsource.org spring docs 3.2.1.RELEASE spring-framework-reference html testing.html integration-testing-annotations run like its name suggests before the transaction of each test is started .", "For testing we also use DbUnit and Spring-test-dbunit .", "You might also find my answer to the following question useful as well : Spring-Boot module based integration-testing http : stackoverflow.com questions 28123299 spring-boot-module-based-integration-testing 28141143 28141143", "@VijendraKulhade I was expecting a rollback according to documentation docs.spring.io spring docs current spring-framework-reference http : docs.spring.io spring docs current spring-framework-reference htmlsingle testing-tx after running the test all my transaction will automatically rolled back .", "I m working on an Application using Spring MVC 4.0.4 and Hibernate and we re using Spring Test MVC 1.0.0.M2 to do some integration unit tests .", "I am writin Spring Integration Testcase using Spring test MVC framewok .", ".. . .. . Correct and permanent link http : docs.spring.io spring docs 4.2.5.RELEASE spring-framework-reference html integration-testing.html testcontext-tx to the relevant section of documentation about integration-testing .", "I want to test hibernate-session s save method using spring testing framework .", "I am testing Sign Up form-submit using Spring Test Framework .", "According to this Spring documentation http : docs.spring.io spring docs current spring-framework-reference html integration-testing.html testcontext-ctx-management-caching I can use the @DirtiesContext annotation to tell Spring that a test does something bad to the ApplicationContext and that Spring should re-initialize it upon next use .", "TestContextBootstrapper was introduced in Spring Framework 4.1 .", "Spring MVC Test does not rely on a servlet container .", "See slides 27-33 in my Spring 3.1 and MVC Testing Support http : www.slideshare.net sbrannen spring-31-and-mvc-testing-support presentation and consult the Javadoc for @TestExecutionListeners http : docs.spring.io spring docs 4.0.5.RELEASE javadoc-api org springframework test context TestExecutionListeners.html .", "What version of spring-jdbc i.e . Spring Framework in general are you using", "Also your test is testing Spring and your own code .", "I was able to get your test running including the following Spring dependencies along with spring-test :", "I am attempting to write Spring MVC integration test with Spring Security and Thymeleaf for the view layer .", "Furthermore a TestExecutionListener can be automatically discovered http : docs.spring.io spring docs current spring-framework-reference html testing.html testcontext-tel-config-automatic-discovery and ordered http : docs.spring.io spring docs current spring-framework-reference html testing.html testcontext-tel-config-ordering .", "I am experimenting with the new Spring Security Test framework .", "Regards .. . .. . Sam lead of the spring-test module", ".. . .. . .. . The options provided in Spring MVC Test are different stops on the scale from classic unit to full integration tests .", "The Spring TestContext Framework provides a TestExecutionListener SPI that can be used to achieve this .", "By design programmatic refreshing of an ApplicationContext is not explicitly supported by the Spring TestContext Framework .", "Hence it is just a plain spring based test .", "I wanted to integration test a Spring security authentication .", "It is by definition an integration test since it is loading a Spring ApplicationContext .", "Specifically these sections explain what s going on : .. . .. . Context management and caching http : docs.spring.io spring docs current spring-framework-reference html testing.html testing-ctx-management .. . Context caching http : docs.spring.io spring docs current spring-framework-reference html testing.html testcontext-ctx-management-caching .. . .. . Soooo the TestContext framework certainly supports caching across tests within a test suite and I should know because I wrote it .", "For an integration test in Spring Framework the test should do the following : .. . .. . Instantiate an application context .", "I was wondering how I can set up integration-testing just to test Spring Data JPA repositories", "It s essentially this : .. . .. . Test A and C : .. . .. . Test B : .. . .. . According to the Spring documentation http : docs.spring.io spring docs current spring-framework-reference html integration-testing.html testing-ctx-management since the ApplicationContext config of A and C are equal they share a cached ApplicationContext .", "Here s a pertinent excerpt from the reference manual : .. . .. . Spring MVC Test builds on the familiar mock implementations of the Servlet API available in the spring-test module .", "I hate to ask the obvious but.. . .. . .. . Have you read the Testing chapter of the Spring Reference Manual http : docs.spring.io spring docs current spring-framework-reference html testing.html", "Also it is described in details in Spring documentation : 9.3.2.1 Context management and caching http : static.springsource.org spring docs current spring-framework-reference html testing.html testing-ctx-management .", "Thus spring-test 4.1 requires version 4.1 of spring-beans spring-core etc .", "I use the spring-boot-starter-web and spring-boot-starter-test .", "I am using JUnit to test my Spring MVC controller .", "Here I suggest a merger of Emil and scarba05 answers using spring-test not spring-test-mvc .", "Using spring-mvc test https : github.com SpringSource spring-test-mvc I m testing a controller that generates .. . .. . with .. . .. . I d like to make sure that no other members are present in the generated json .", "Sam component lead for the spring-test module", "I am working with .. . .. . Spring MVC .. . Spring MVC Testing .. . .. . In Spring MVC assuming that a @Controller working with @ResponseBody returns a domain object represented in XML format and through print method I can confirm the following : .. . .. . I have the following for Spring MVC Testing : .. . .. . Until here all work fine .", "I am using Spring-test-DbUnit library with Spring Data JPA TestNG and Postgres database .", "I create a file-upload service with Spring Boot and test it with Spring Mock Mvc and MockMultipartFile .", "The JavaConfigTests https : github.com spring-projects spring-framework blob master spring-test src test java org springframework test web servlet samples context JavaConfigTests.java in Spring s own test suite demonstrate such a test with JSPs and Tiles : .. . .. . Regards .. . .. . Sam", "Because when your running integration-testing spring-boot should be running before executing the test cases .", "I have a very simple test case that is using Mockito and Spring Test framework .", "Please note that @IfProfileValue was introduced in Spring Framework 2.0 long before the notion of bean definition profiles and @ActiveProfiles was first introduced in Spring Framework 3.1 .", "See @ContextConfiguration http : docs.spring.io spring docs current spring-framework-reference html integration-testing.html contextconfiguration .", "My perception is that JUnit should be used for Spring DAO Layer test cases .", "So see if that gets you any further and read the Spring Boot Reference Manual http : docs.spring.io spring-boot docs current reference htmlsingle boot-features-testing for further details on Spring Boot s testing support .", "Spring Security 4 provides Test support .", "I have posted the code on GitHub Click here github.com ximanta blog-spring-mvc-test https : github.com ximanta blog-spring-mvc-test", "I am working with .. . .. . STS .. . Gradle .. . Spock Core .. . Spock Reports .. . Spock Spring .. . Spring MVC Testing .. . .. . I have the following test code : .. . .. . The code works fine .", "I cannot get spring-mvc test framework to run correctly in standaloneSetup configuration it always result in a null View .", "Hello everyone I m using Spring MVC framework and I want to test my Controllers .", "However the particular scenario you are describing involves the API of the Spring MVC Test framework ." ] }
{ "confidence": [ 149.35462951660156, 140.4004364013672, 134.74307250976562, 133.4787139892578, 131.50059509277344, 129.85757446289062, 127.89347839355469, 125.64541625976562, 123.49754333496094, 122.4395751953125, 120.205078125, 119.52335357666016, 118.94673156738281, 118.83300018310547, 118.61068725585938, 117.70319366455078, 115.17411804199219, 114.70555114746094, 113.22892761230469, 113.09161376953125 ], "content": [ "Question : Spring has 2 setups for the MockMvc : .. . .. . 1 . Standalone setup .. . 2 . WebApplicationContext setup .. . .. . In general what kind of testing is MockMvc used for Unit or Integration or Both Am i right in saying that using the standalone setup running outside the Spring s application context allows you to write unit tests and with the WebApplicationContext setup you can write integration tests .. . Answer : Both forms are actually integration tests since you are testing the integration of your code with the Spring DispatcherServlet and supporting infrastructure . The difference lies in the amount of supporting infrastructure that is used behind the scenes . The details are documented in the Spring reference manual . Server-Side Tests http : docs.spring.io spring docs current spring-framework-reference html integration-testing.html spring-mvc-test-server .. . Setup Options http : docs.spring.io spring docs current spring-framework-reference html integration-testing.html spring-mvc-test-server-setup-options .. . Difference With End-to-End Integration Tests http : docs.spring.io spring docs current spring-framework-reference html integration-testing.html spring-mvc-test-vs-end-to-end-integration-tests .. . .. . Noteworthy excerpts : .. . .. . The webAppContextSetup loads the actual Spring MVC configuration resulting in a more complete integration test . Since the TestContext framework caches the loaded Spring configuration it helps to keep tests running fast even as more tests get added . Furthermore you can inject mock services into controllers through Spring configuration in order to remain focused on testing the web layer . .. . .. . .. . The standaloneSetup on the other hand is a little closer to a unit test . It tests one controller at a time the controller can be injected with mock dependencies manually and it doesn t involve loading Spring configuration . Such tests are more focused in style and make it easier to see which controller is being tested whether any specific Spring MVC configuration is required to work and so on . The standaloneSetup is also a very convenient way to write ad-hoc tests to verify some behavior or to debug an issue . .. . .. . .. . Just like with integration vs unit-testing there is no right or wrong answer . Using the standaloneSetup does imply the need for some additional webAppContextSetup tests to verify the Spring MVC configuration . Alternatively you can decide to write all tests with webAppContextSetup and always test against actual Spring MVC configuration . .. . .. . .. . The options provided in Spring MVC Test are different stops on the scale from classic unit to full integration tests . To be sure none of the options in Spring MVC Test are classic unit tests but they are a little closer to it . For example you can isolate the service-layer with mocks injected into controllers and then you re testing the web layer only through the DispatcherServlet and with actual Spring configuration just like you might test the database layer in isolation of the layers above . Or you could be using the standalone setup focusing on one controller at a time and manually providing the configuration required to make it work . When in doubt I suggest first reading the reference manual before posting questions here . .. . .. . Regards .. . .. . Sam author of the Spring TestContext Framework", "Question : I wrote two unit test classes using JUnit4 . They both run fine separately but running them one after another by for example mvn test the second test fails . The reason the second test fails is because the first test modified a bean in the first test . The second test wants to use a fresh instance of this bean . A unit test should be given a new Context for each unit test class . Spring has first-class support for context caching which I would like to disable . How can I configure Spring to restart a new Context for each unit test class My test classes are configured as such : Comment : I don t use Spring for unit-testing anymore . Unit tests shouldn t require dependency-injection I want to use mocks . Spring factory takes too long to start up . Comment : Possible duplicate of I need my Spring Boot WebApplication to restart in JUnit http : stackoverflow.com questions 33151702 i-need-my-spring-boot-webapplication-to-restart-in-junit Comment : Just to be clear to anyone else reading this : the above is not a unit test . It is by definition an integration test since it is loading a Spring ApplicationContext . Comment : When you say Spring tries to optimise this what you are referring to is Spring s first-class support for context caching which just so happens to be fully documented in the reference manual http : docs.spring.io spring docs current spring-framework-reference html integration-testing.html testcontext-ctx-management-caching . Comment : I adjusted the original post with this additional information .. . Answer : You can use @DirtiesContext on a test method or a test class . The Spring ApplicationContext will be reloaded after the execution of the test . Comment : Thanks Spring seems to cache based on the locations param in the ContextConfiguration annotation : @DirtiesContext classMode ClassMode.AFTER CLASS works for me Comment : There is no need to specify classMode ClassMode.AFTER CLASS . That is the default Please read the Javadoc for classMode .", "Question : I would like to write Junit test cases for REST API . The APIs are written using CXF framework . web.xml : .. . .. . spring-config.xml : .. . .. . Webservice : .. . .. . Junit .. . .. . I can write Junit test cases for simple REST API and rollback the data after test is done using spring-test . But I couldn t write when CXF framework is involved . I have two issues here . The above Junit code returns 404 response instead of 200 . I want to rollback the data when test is done .. . .. . Pleas help me to resolve the issues .. . Answer : As the name implies the Spring MVC Test Framework is for testing Spring MVC Web and Spring MVC REST applications . You are writing a CXF REST application which is based on JAX-RS . Spring MVC REST is not an implementation of JAX-RS . It is therefore not possible to test a JAX-RS application with Spring MVC Test i.e . MockMvc . To test your JAX-RS endpoints you will need to use a testing framework with dedicated support for JAX-RS . For example you may want to use the JAX-RS Testing https : cwiki.apache.org confluence display CXF20DOC JAXRS+Testing support from CXF or you can Google jax-rs testing to find other solutions .", "Question : I am using junit 4.12 jmockit 1.19 spring-test 4.1.1.RELEASE for testing my Spring MVC Java project . Order of these dependencies in my pom.xml : .. . .. . jmockit .. . junit .. . spring-test .. . .. . Test cases for service-layer is working fine . I am using spring-test only for testing controllers . While testing controller I got the following error : .. . .. . java.lang.IllegalStateException : JMockit wasn t properly initialized please ensure that jmockit precedes junit in the runtime classpath or use @RunWith JMockit.class .. . .. . For service-layer I resolved this error by using @RunWith JMockit.class on test class . But for controller I need to annotate with @RunWith SpringJUnit4ClassRunner.class . How to resolve this error Note : I put jmockit before junit in pom.xml Comment : If you can upgrade to Spring Framework 4.2.1 there is now first-class support for JUnit Rules . So you don t need the SpringJUnit4ClassRunner : docs.spring.io spring docs current spring-framework-reference http : docs.spring.io spring docs current spring-framework-reference html integration-testing.html testcontext-junit4-rules Comment : I believe you would need to show an example test class and an example pom.xml file that reproduces the issue . I have tested this combination of tools jmockit junit and spring-test but saw no initilalization failures . .. . Answer : I m not entirely sure this will resolve your problem as I just started using jmockit myself and running into similar style issues . Have you tried using -javaagent : Easiest way to apply to all JUnit tests Eclipse is to go to your JRE settings and add as a VM Argument Preferences- JRE- Edit- VM Defaults . Additionally I found an Eclipse JMockit plugin via the Marketplace that will automatically append the javaagent to any junit tests to avoid the JRE configuration . Finally in your POM you can try although I haven t tested it myself yet : .. . .. . However keep in mind that this would only work for maven launched tests and not through the IDE . I haven t found a way for the m2e plugin to understand the requirement to append the javaagent to junit tests .", "Question : What is the difference between using JUnit @BeforeClass and the Spring @TestExecutionListener beforeTestClass TestContext testContext hook If there is a difference which one to use under which circumstances Maven Dependencies : .. . spring-core : 3.0.6.RELEASE .. . spring-context : 3.0.6.RELEASE .. . spring-test : 3.0.6.RELEASE .. . spring-data-commons-core : 1.2.0.M1 .. . spring-data-mongodb : 1.0.0.M4 .. . mongo-java-driver : 2.7.3 .. . junit : 4.9 .. . cglib : 2.2 .. . .. . .. . Using JUnit @BeforeClass annotation : .. . .. . Using the Spring hook : .. . .. . 1 Override beforeTestClass TextContext testContext : .. . .. . 2 Use @TestExecutionListeners annotation : .. . Answer : TestExecutionListeners are a way to externalize reusable code that instruments your tests . As such if you implement a TestExecutionListener you can reuse it across test class hierarchies and potentially across projects depending on your needs . On the flip side a @BeforeClass method can naturally only be used within a single test class-hierarchy . Note however that JUnit also supports Rules https : github.com junit-team junit wiki Rules : if you implement org.junit.rules.TestRule you can declare it as a @ClassRule to achieve the same thing.. . with the added benefit that a JUnit Rule can be reused just like a Spring TestExecutionListener . So it really depends on your use-case . If you only need to use the before class functionality in a single test class or a single test class-hierarchy then you d be better off going the simple route of just implementing a @BeforeClass method . However if you foresee that you will need the before class functionality in different test class hierarchies or across projects you should consider implementing a custom TestExecutionListener or JUnit Rule . The benefit of a Spring TestExecutionListener over a JUnit Rule is that a TestExecutionListener has access to the TestContext and therefore access to the Spring ApplicationContext which a JUnit Rule would not have access to . Furthermore a TestExecutionListener can be automatically discovered http : docs.spring.io spring docs current spring-framework-reference html testing.html testcontext-tel-config-automatic-discovery and ordered http : docs.spring.io spring docs current spring-framework-reference html testing.html testcontext-tel-config-ordering . Related Resources : .. . .. . SPR-8854 https : jira.spring.io browse SPR-8854 .. . .. . Regards .. . .. . Sam author of the Spring TestContext Framework Comment : Is there any way to set the order of the listeners E.g . I want to run some code before the loading of the spring context happens Comment : Yes you can control the order of the listeners when you declare @TestExecutionListeners on your test class . See slides 27-33 in my Spring 3.1 and MVC Testing Support http : www.slideshare.net sbrannen spring-31-and-mvc-testing-support presentation and consult the Javadoc for @TestExecutionListeners http : docs.spring.io spring docs 4.0.5.RELEASE javadoc-api org springframework test context TestExecutionListeners.html . Comment : Just read up on both references but I don t see anything related to the order . Are they supposed to run in the order you declare them on the annotation Comment : Yes the TestContextManager maintains them as List TestExecutionListener testExecutionListeners which is an ordered list that is constructed based on the order in which the listeners are declared via @TestExecutionListeners . Comment : And what if you use inheritance of listeners", "Question : null .. . Answer : I have a Spring Boot application using Spring 4 in this app I have an interface and an implementing class : .. . .. . and .. . .. . What I want to to is test the implementation directly but still as a bean with autowiring and everything . I want to do that because when I need to assert something that for example relates to messages I have to make the method public as you can see in the Impl class . Is there a way in Spring to properly write tests for implementations directly and still have them work as beans Thanks . Comment : See the Integration testing with Spring http : docs.spring.io spring docs current spring-framework-reference html integration-testing.html section of the official documentation . Comment : Yes I read through that it says how to use mocks and test interfaces and things like that but I am asking about the implementations testing of implementations Comment : See @ContextConfiguration http : docs.spring.io spring docs current spring-framework-reference html integration-testing.html contextconfiguration . Comment : @engma the Spring TestContext Framework is not just about mocks and testing interfaces . It is in fact mostly about testing implementations . I know because I wrote the framework . So please reread the reference manual and let us know how you progress .", "Question : I am in reference to Spring test and the following annotations : .. . .. . @IfProfileValue http : docs.spring.io spring docs 4.0.3.RELEASE javadoc-api index.html org springframework test annotation IfProfileValue.html .. . @ActiveProfiles http : docs.spring.io spring docs 4.0.3.RELEASE javadoc-api index.html org springframework test context ActiveProfiles.html .. . .. . I currently use @ActiveProfiles in my application and I recently discovered the existence of the @IfProfileValue annotation which seems to provide similar functionnality . Can someone please explain what the differences are between those two annotations perhaps by providing usage examples that would contrast the two .. . Answer : As stated in the Javadoc @IfProfileValue is used to indicate that a test is enabled for a specific testing profile or environment . .. . .. . Whereas @ActiveProfiles is used to declare which active bean definition profiles should be used when loading an ApplicationContext for test classes . .. . .. . In other words you use @IfProfileValue to control whether a test class or test method will be executed or skipped and you use @ActiveProfiles to set the active bean definition profiles that will be used to load the ApplicationContext for your test . Please note that @IfProfileValue was introduced in Spring Framework 2.0 long before the notion of bean definition profiles and @ActiveProfiles was first introduced in Spring Framework 3.1 . Both annotations contain the term profile but they are actually completely unrelated The term profile is perhaps misleading when considering the semantics for @IfProfileValue . The key is to think about test groups like those in TestNG instead of profiles . See the examples in the JavaDoc for @IfProfileValue http : docs.spring.io spring docs 4.0.3.RELEASE javadoc-api index.html org springframework test annotation IfProfileValue.html . Here s an excerpt : .. . .. . The above test method would be executed if you set the test-groups system property e.g . -Dtest-groups unit-tests or -Dtest-groups integration-tests . The Context configuration with environment profiles http : docs.spring.io spring docs current spring-framework-reference html testing.html testcontext-ctx-management-env-profiles section of the Testing chapter in the Spring Reference manual provides detailed examples of how to use @ActiveProfiles . Regards .. . .. . Sam author of the Spring TestContext Framework Comment : Thanks for this detailed answer . Comment : profile does seem very overloaded in the annotations in fact I m not sure what @IfProfileValue has to do with profiles at all . Even the way to make it check a profile doesn t seem obvious . And using @Profile to filter and @ActiveProfiles to provide is counter intuitive .", "Question : null .. . Answer : I m working on an Application using Spring MVC 4.0.4 and Hibernate and we re using Spring Test MVC 1.0.0.M2 to do some integration unit tests . We use HSQLDB as an in-memory DB during these tests and have Hibernate create the schema hibernate.hbm2ddl.auto is create . I ve got a problem with a setup that s sort of like the following : .. . .. . There are three test classes : A B C . They all use the database and are executed in that order . It s essentially this : .. . .. . Test A and C : .. . .. . Test B : .. . .. . According to the Spring documentation http : docs.spring.io spring docs current spring-framework-reference html integration-testing.html testing-ctx-management since the ApplicationContext config of A and C are equal they share a cached ApplicationContext . B has a different context . However it still uses the same database . Here is the problem : .. . .. . Test B does some things that pollute the database causing Test C to fail . According to this Spring documentation http : docs.spring.io spring docs current spring-framework-reference html integration-testing.html testcontext-ctx-management-caching I can use the @DirtiesContext annotation to tell Spring that a test does something bad to the ApplicationContext and that Spring should re-initialize it upon next use . Putting @DirtiesContext on Test B will not work because it s not context B that should be fixed it s also that of A and C . Putting it on Test B won t make Spring re-initialize that of Test C . .. . I could put @DirtiesContext on Test A . Then when it s time to run Test C Spring will create the new ApplicationContext from scratch . However if the order of tests ever changes or we add tests with the same ApplicationContexts and they re run in between these the problem would just re-occur . All the while the order of unit integration tests really should not matter . So it s not a permanent solution and it s also not very elegant . I tried setting the hibernate.hbm2ddl.auto property to create-drop and update but since the ApplicationContext is re-created from scratch neither is the database-schema and so it doesn t help . Any suggestions on how to tell Spring that all contexts are dirtied say @DirtiesEveryContext Or any other suggestions about how to solve this", "Question : I have a simple annotated controller similar to this one : .. . .. . and I want to test it with an unit test like this : .. . .. . The problem is that AnnotationMethodHandlerAdapter.handler method throws an exception : .. . Answer : Provided you are using Spring 3.0.x . Here I suggest a merger of Emil and scarba05 answers using spring-test not spring-test-mvc . Please skip this answer and refer to spring-test-mvc examples if you are using Spring 3.2.x or later .. . .. . MyControllerWithParameter.java .. . .. . MyControllerTest.java .. . .. . Comment : Can you please attach source of servlet-context.xml . We are using Spring 3.1.x and I don t know how to configure Spring for test . Comment : You can use Spring 3.2 test framework if you added spring-test-mvc maven artifact . If you want to use my answer refer to the answer stackoverflow.com questions 12902247 http : stackoverflow.com questions 12902247 spring-3-1-dependency-injection-junit-testing", "Question : I have been using AssertJ for some time in my projects . Recently I started using Spring MVC Test for testing Spring MVC controllers . But I am not getting how to use AssertJ with it . All examples I see online all use Hamcrest with Spring MVC Test . Below is an example using the Hamcrest API . .. . Answer : Generally speaking you may choose whatever assertion framework you like when testing with Spring . However the particular scenario you are describing involves the API of the Spring MVC Test framework . The methods in question are designed to be used with the Hamcrest Matcher API . It is therefore not possible to use AssertJ within those method calls . Regards .. . .. . Sam author of the Spring TestContext Framework", "Question : We ve a bunch of JUnit test cases Integration tests and they are logically grouped into different test classes . We are able to load Spring application context once per test class and re-use it for all test cases in a JUnit test class as mentioned in http : static.springsource.org spring docs current spring-framework-reference html testing.html .. . .. . However we were just wondering if there is a way to load Spring application context only once for a bunch of JUnit test classes . FWIW we use Spring 3.0.5 JUnit 4.5 and use Maven to build the project . .. . Answer : To add to Tomasz Nurkiewicz s answer http : stackoverflow.com a 8502023 179630 as of Spring 3.2.2 @ContextHierarcy annotation can be used to have separate associated multiple context structure . This is helpful when multiple test classes want to share for example in-memory database setups datasource EntityManagerFactory tx manager etc . For example : .. . .. . By having this setup the context that uses test-db-setup-context.xml will only be created once but beans inside it can be injected to individual unit test s context .. . .. . More on the manual : http : docs.spring.io spring docs current spring-framework-reference html testing.html testcontext-ctx-management search for context hierarchy Comment : I ve multi-module maven and I try to avoid database setup in service module as it already loaded with tests of dataaccess module and it doesn t work for me Comment : This worked for me Thanks . Just to be clear without the @ContextHierarchy annotation spring loads my db for each test . I m using the classes param : @ContextConfiguration classes JpaConfigTest.class .. . Comment : Any idea if this can be done fully via annotations instead of using an XML for context definition I ve searched a lot about it in the doc and here on SO but could not find anything which leads me to think it is not possible .", "Question : I m thinking about which testing framework to use for my spring+hibernate web application . Initially I spotted and got pretty interested in Unitils but then I saw the standard Spring TestContext Framework and started having some doubts . I m pretty new to the subject but so far my understanding is the following : .. . .. . Unitils pros : .. . .. . has a mix of various other testing frameworks i.e . EasyMock or DbUnit .. . builds on top of the the frameworks providing some additional value i.e . hibernate-mapping tests or reflection testing utilities .. . .. . Spring TestContext Framework pros : .. . .. . allows to use the standard Spring annotations when testing .. . probably has a bigger user base and better support this is my assumption since Unitils seems to be basically created by two people .. . also has some of the Unitils features built-in such as reflection testing utilities .. . if I need any of the Unitils bigger features such as DbUnit or EasyMock I can just get regular DbUnit or EasyMock straight from the source - this allows me to always have the most current version of DbUnit EasyMock without waiting for Unitils to release their new version with the current DbUnit EasyMock .. . .. . So for now I m leaning more towards using Spring TestContext Framework . Does anyone have a bit more experience with these frameworks and could help me tilt in the right direction What does Unitils actually offer on its own except for integration of all these frameworks EDIT Just found out about a few more things provided by Unitils : .. . .. . some improvements to DbUnit like the @DataSet annotation in Spring TestContext Framework it appears you have to write a bit more code on your own if you want to use it with DbUnit as described here : http : blog.zenika.com index.php post 2010 02 04 Testing-SQL-queries-with-Spring-and-DbUnit 2C-part-1 .. . ability to disable database constraints in your tests .. . .. . Here s a nice presentation on Unitils which convinced me to start using Unitils : http : www.javapolis.com confluence download attachments 32918 C 14 09 04.pdf .. . .. . I m leaving the question open for the time being maybe someone will come up with some other thoughts.. . Comment : Little update : now in 2014 it seems that Unitils is almost abandoned while spring-test is under active development . So answer which one to choose seems clear . .. . Answer : Unitils is a very good framework as you have noted . Pros : .. . .. . 1 . Unitils now uses Spring jars . 2 . Unitils inject module works great in my view though you can achieve something like that in spring too . Cons : As you have said I believe it lacks proper support in the Unitils forum . I can see many threads not answered for a long time . However stackoverflow has good support for it : - except if you need additional features or bug fixes . Personally I find Unitils good for my testing .", "Question : I am testing my repository for update operation .. . .. . In the test case i saving my entity with default status and after that i am changing it to other using updateStatusByEmail CUST EMAIL STATUS EMAIL VERFIED but still next assert statement is failing this is due to fact that the updates during the test execution are commited after completion of test....Is there any way that I can commit my changes within the test Comment : Are you using hibernate Comment : yes..hibernate with spring-data-jpa on top of it . Comment : Is the test running in a transaction Comment : yes...it is running in transaction Comment : have you thought to transaction propagation REQUIRES NEW you could encapsulate your method in another annotated by @Transactional propagation Propagation.REQUIRES NEW LINK http : docs.spring.io spring-framework docs 4.0.x spring-framework-reference html transaction.html .. . Answer : You can likely get by with flushing the underlying Hibernate Session as this will push your changes to the underlying tables in the database within the current test-managed transaction . Search for false positives in the testing chapter http : docs.spring.io spring docs current spring-framework-reference html testing.html testcontext-tx-annotation-demo of the Spring reference manual for details . Basically you will want to call flush on the current Hibernate Session after your update call and before the corresponding assertion . If that does not solve your problem with Spring Framework 4.1 you can use the new TestTransaction API for programmatic transaction management http : docs.spring.io spring docs current spring-framework-reference html testing.html testcontext-tx-programmatic-tx-mgt within tests . Regards .. . .. . Sam lead of the spring-test module", "Question : What is the best way to use spring-test with JUnit to read property files specific to a test method The following bean illustrates the intent to search method-level then class-level then package-level then root-level property files : .. . .. . I ve considered using subclassing PropertySourcesPlaceholderConfigurer or SpringMethodRule but so far neither a viable nor elegant solution has occurred to me . spring-test offers a variety of promising class-level annotations but the stumbling block is that I want to be able to find a method-specific file e.g . : Comment : What do you mean by you want to be able to find a method-specific file The Spring ApplicationContext itself doesn t know anything about test methods and the Spring TestContext Framework doesn t support loading a test ApplicationContext per test method . So where do you plan to load them and for what purpose Comment : My test has a SpringContextRule like alexcollins.com tutorial-junit-rule http : www.alexcollins.com tutorial-junit-rule . My test has another rule based on junit.org junit4 javadoc 4.12 org junit rules TestName.html http : junit.org junit4 javadoc 4.12 org junit rules TestName.html that provides access to the names of the test class and test method . Comment : For each test method there is a property file that by convention is named after the method e.g . foo.properties.xml bar.properties.xml where foo and bar are test method names . .. . Answer : If you are just looking for an algorithm that helps you to look up classpath resources based on the current method you can take inspiration from the ServletTestExecutionListener in the Spring TestContext Framework specifically the detectDefaultScript https : github.com spring-projects spring-framework blob master spring-test src main java org springframework test context jdbc SqlScriptsTestExecutionListener.java L279-L312 method . Regards .. . .. . Sam author of the Spring TestContext Framework Comment : I will have a look and respond with feedback . Thank you", "Question : The title explains my question 100 . Let assume there is @ControllerAdvice annotated class in Spring Boot MVC . In my case it contains @ExceptionHandler annotations . Ok I can do unit-test of this class it returns formatted JSON with information from Exception class . It is easy - especially when using Spock . But what about integration tests The only way to test if my usage of Spring library is right is to create controller that only exists for testing purposes add some methods to it that eg . throw exception of specific kind and see if it returns what I designed @ControllerAdvice to return . But it seems ugly - creating additional code only for testing of existing code . So my questions is - how do You do integration-tests on @ControllerAdvice Do You just do not do it create special controller only to test @ControllerAdvice or just test it using existing controller providing it for example with wrong data that will result in exception being thrown in my case if it was @InitBinder methods we will check ModelAndView .. . Answer : For an integration test in Spring Framework the test should do the following : .. . .. . Instantiate an application context . In your case the application context must contain the controller and the controller advice .. . Make a request on the HTTP endpoint defined by the controller .. . Assert the results .. . .. . You can find more details of the integration-testing in Spring here : http : docs.spring.io spring docs current spring-framework-reference html integration-testing.html spring-mvc-test-framework Comment : I know that but in Your solution there is controller involved . And my question is - should I create separate controller for testing @ControllerAdvice classes or use existing ones Comment : I wouldn t create a new controller only for testing the advice why not use existing ones This way you can test the advice with the actual flow intended to work in the application . Comment : Let s just assume that I want to test handler for ValidationException . The only place in my app this exception is generated is when I try to access external system get some data then create an object and validate it . It is done mostly in @Service beans . So how do You propose to simulate such situation using existing controllers during integration-testing Comment : In the application context of the integration test i would put a bean which is a mock of the service . That mock would raise an exception for any method call using Mockito and if the setup is correct the advice would catch it .", "Question : I m thinking about which testing framework to use for my spring+hibernate web application . Initially I spotted and got pretty interested in Unitils but then I saw the standard Spring TestContext Framework and started having some doubts . I m pretty new to the subject but so far my understanding is the following : .. . .. . Unitils pros : .. . .. . has a mix of various other testing frameworks i.e . EasyMock or DbUnit .. . builds on top of the the frameworks providing some additional value i.e . hibernate-mapping tests or reflection testing utilities .. . .. . Spring TestContext Framework pros : .. . .. . allows to use the standard Spring annotations when testing .. . probably has a bigger user base and better support this is my assumption since Unitils seems to be basically created by two people .. . also has some of the Unitils features built-in such as reflection testing utilities .. . if I need any of the Unitils bigger features such as DbUnit or EasyMock I can just get regular DbUnit or EasyMock straight from the source - this allows me to always have the most current version of DbUnit EasyMock without waiting for Unitils to release their new version with the current DbUnit EasyMock .. . .. . So for now I m leaning more towards using Spring TestContext Framework . Does anyone have a bit more experience with these frameworks and could help me tilt in the right direction What does Unitils actually offer on its own except for integration of all these frameworks EDIT Just found out about a few more things provided by Unitils : .. . .. . some improvements to DbUnit like the @DataSet annotation in Spring TestContext Framework it appears you have to write a bit more code on your own if you want to use it with DbUnit as described here : http : blog.zenika.com index.php post 2010 02 04 Testing-SQL-queries-with-Spring-and-DbUnit 2C-part-1 .. . ability to disable database constraints in your tests .. . .. . Here s a nice presentation on Unitils which convinced me to start using Unitils : http : www.javapolis.com confluence download attachments 32918 C 14 09 04.pdf .. . .. . I m leaving the question open for the time being maybe someone will come up with some other thoughts.. . Comment : Little update : now in 2014 it seems that Unitils is almost abandoned while spring-test is under active development . So answer which one to choose seems clear . .. . Answer : We use Unitils and Spring s test framework on our project . With unitils one thing we ran into problems with was having more than one PersistenceUnit . Unitils does not support it . Of course spring does . Another problem we ran into I posted about here : Using unitils dbMaintain to maintain database how to exclude scripts from being run http : stackoverflow.com questions 6143505 using-unitils-dbmaintain-to-maintain-database-how-to-exclude-scripts-from-being .. . .. . Basically unitils does not have all the latest features of each of the underlying frameworks such as DBMaintain because unitils uses old versions of the other frameworks under the covers . That said Unitils does have some great convenience-methods like some of the ones provided in DatabaseUnitils http : www.unitils.org apidocs org unitils database DatabaseUnitils.html . We particularly like updateSequences .. . .. . So for ultimate flexibility and or if you anticipate a fairly complex code-structure I would stick with Spring s test framework whenever possible . In many other cases unitils is a very handy tool . And a little p.s.. . when possible I would recommend favoring unit tests and mocking frameworks like Mockito versus integration tests . I ve always been an integration test heavy tester and on this last project it has turned into a bit of a maintenance challenge . Comment : thanks for sharing your experience : You re mentioning using Mockito - do you prefer it over EasyMock which is already bundled with Unititls Comment : I ve heard good arguments for against both frameworks . I haven t used EasyMock . When I was reading about it vs mockito and their associated documentation mockito just seemed simpler and more straightforward . So I chose mockito . YMMV . Comment : The EasyMock support in Unitils is deprecated now . Instead it offers the Unitils Mock module which provides a modern mocking API that is IMO significantly better than the EasyMock or Mockito APIs .", "Question : I am currently experimenting with the support for WebSockets added in Spring 4.0 as described in this guide http : spring.io guides gs messaging-stomp-websocket . As demonstrated in the guide methods annotated with @MessageMapping can be added to any Spring MVC controller which may also contain @RequestMapping methods . The spring-test module has support for writing integration tests for @RequestMapping methods as described here http : docs.spring.io spring docs 4.0.0.RELEASE spring-framework-reference html testing.html spring-mvc-test-framework in a very simple and fluid way : .. . .. . Is there similar support for testing @MessageMapping methods using WebSockets I have not found anything in any of the Spring modules and none of the WebSocket guides contain any tests . If not would I need to actually deploy the application and use a WebSocketConnectionManager http : docs.spring.io autorepo docs spring 4.0.0.RELEASE javadoc-api org springframework web socket client WebSocketConnectionManager.html to connect a test client Or is there some API I can build on from spring-test This sample project https : github.com rstoyanchev spring-websocket-test blob master src test java org springframework samples websocket echo StandardClientApp.java contains such a small test client but I would prefer to integrate this into the actual tests without requiring me to deploy the application and hardcode the deployed path in the tests . .. . Answer : There is nothing like Spring MVC Test for @MessageMapping methods yet . However a similar approach to testing should be possible even without the fluent API . There is a ticket in JIRA see https : jira.springsource.org browse SPR-11266 to provide documentation so watch that ticket for more details in the very near future . Comment : answer should be updated now that issue was resolved", "Question : I have a simple annotated controller similar to this one : .. . .. . and I want to test it with an unit test like this : .. . .. . The problem is that AnnotationMethodHandlerAdapter.handler method throws an exception : .. . Answer : A promising framework for testing Spring MVC https : github.com SpringSource spring-test-mvc Comment : this is definitively the way to go - to bad it depends on Spring 3.1 Comment : See also : jira.springsource.org browse SPR-9211 https : jira.springsource.org browse SPR-9211 - vote if of interest . : -", "Question : I have a set of tests based which need a spring context . For fast test execution I want to make sure that the Spring context is initialized just once then all the tests should be run against this context then it should shut down . I already tried the following approaches : .. . .. . 1 . Use @RunWith SpringJUnit4ClassRunner.class and @ContextConfiguration MyAnnotatedConfig.class to initialize the spring context .. . 2 . Use a @RunWith SpringJUnit4ClassRunner.class and @TestExecutionListeners MyTestExecutionListener.class with a handwritten test execution listener that initializes the spring context and injects it into the concrete test classes .. . 3 . Use a @BeforeClass listener in a base-class and a static field to store the spring context and a @AfterClass for shutdown .. . .. . With all three approaches the spring context seems to be initialized more than once which takes a lot of time . It seems that JUnit unloads classes while running tests so that the content of static fields is sometimes lost . Is there a way to make sure the spring context is initialized only once Comment : Use a test suite http : stackoverflow.com questions 6580670 testsuite-setup-in-junit-4 . Comment : @BoristheSpider yeah that might be an option although it s not my favourite since it requires additional configuration overhead for each new test that we write Comment : You can put the @RunWith @TestExecutionListeners @ContextConfiguration annotations on your base-class and this will just initialise the context once . Comment : @Jamey that s what I tried didn t work for me : - Comment : Hmmm it definitely works for me . That s exactly what I do for our tests.. . I can t think why that wouldn t work . What are you using to run the tests In fact Boris is spot on . I use a suite to run our tests so I guess this manages the lifecycle for me as desired . : .. . Answer : For fast test execution I want to make sure that the Spring context is initialized just once then all the tests should be run against this context then it should shut down . I hate to ask the obvious but.. . .. . .. . Have you read the Testing chapter of the Spring Reference Manual http : docs.spring.io spring docs current spring-framework-reference html testing.html Specifically these sections explain what s going on : .. . .. . Context management and caching http : docs.spring.io spring docs current spring-framework-reference html testing.html testing-ctx-management .. . Context caching http : docs.spring.io spring docs current spring-framework-reference html testing.html testcontext-ctx-management-caching .. . .. . Soooo the TestContext framework certainly supports caching across tests within a test suite and I should know because I wrote it . .. . .. . Now as for why caching is not working for you I can only assume that you have configured your build framework to fork for each test or that you are running tests individually and manually within your IDE . Here s an excerpt from the last link above that might help you out : .. . .. . Test suites and forked processes .. . .. . The Spring TestContext framework stores application contexts in a static cache . This means that the context is literally stored in a static variable . In other words if tests execute in separate processes the static cache will be cleared between each test execution and this will effectively disable the caching mechanism . .. . To benefit from the caching mechanism all tests must run within the same process or test suite . This can be achieved by executing all tests as a group within an IDE . Similarly when executing tests with a build framework such as Ant Maven or Gradle it is important to make sure that the build framework does not fork between tests . For example if the forkMode for the Maven Surefire plug-in is set to always or pertest the TestContext framework will not be able to cache application contexts between test classes and the build-process will run significantly slower as a result . If you still experience issues after taking the above into consideration please consider submitting a project https : github.com spring-projects spring-framework-issues readme that demonstrates your problem . Cheers .. . .. . Sam Comment : Thanks Sam . Sumbitting a demo project is certainly a good idea as the problem seems difficult to describe . I hope I will find the time to do that .", "Question : I have a Spring MVC 3.2 project that I would like to unit integration tests . The problem is all the dependencies I have makes testing extremely difficult even with Sprint-test . I have a controller like this : .. . .. . This will return a JSON object . I would like to test this call returns a 200 and the correct object with canned JSON . However I have a lot of other classes called by those @Autowired classes and even if I mock them like this : .. . .. . this creates a lot of mocked classes . Here is how I am trying to test it : .. . .. . I can go thru and setup a H2 embeddeddatabase and populate it but I wonder if that is really a test of this controller or the application Can anyone recommend some better approaches to this integration test How does one write unit tests for controllers Thank you .. . Answer : Check out the spring show case https : github.com SpringSource spring-mvc-showcase project and take a look at controller test cases you will be able to understand and see standard way of testing controllers . MappingControllerTests.java https : github.com SpringSource spring-mvc-showcase blob master src test java org springframework samples mvc mapping MappingControllerTests.java has some json based controller testing" ] }
[ "yes-answer-long", "yes-answer-short" ]
integration-testing
UNK_RELATION
80286@targeting@55
80286 -- questions with this tag should be about code @placeholder this processor .
{ "confidence": [ 20.95289421081543, 17.584325790405273, 17.328405380249023, 17.328405380249023, 16.82733917236328, 16.174467086791992, 15.789583206176758, 15.370031356811523, 15.271146774291992, 15.271146774291992, 14.953852653503418, 12.807624816894531, 12.807624816894531, 12.807624816894531, 12.807624816894531, 12.807624816894531, 12.807624816894531, 12.807624816894531, 12.807624816894531, 12.807624816894531, 12.807624816894531, 12.807624816894531, 12.807624816894531, 12.807624816894531, 12.807624816894531, 12.807624816894531, 12.807624816894531, 12.807624816894531, 12.807624816894531, 12.807624816894531, 12.807624816894531, 12.807624816894531, 12.807624816894531, 12.807624816894531, 12.807624816894531, 12.807624816894531, 12.807624816894531, 12.807624816894531, 12.807624816894531, 12.807624816894531, 12.807624816894531, 12.807624816894531, 12.807624816894531, 12.807624816894531 ], "content": [ "As far as I remember from old days that AT systems with 80286 architectures were introduced the memory consisted of 64 KB segments which is the max address that can be addressed using a 16-bit address register real-mode .", "Can you give me some examples about the ABI used and about how far pointers are passed around", "Your answer doesn t answer most of the questions I have e.g .", "Sorry your answer does not answer any of the questions I have .", "If that was your question you should have just asked that .", "Were there multiple ABIs for different code models", "I actually want to know how this works on machine code level .", "When a far jump happens in assembly you should first of all give the segment that the jump will happen then the local address within the segment .", "I want to write some code for the 16-bit protected-mode specifically a simple operating-system with some programs .", "Because that s what I need to know if I want to write such code for my own system .", "Multi-tasking and also Terminate and Stay Resident TSR programs could be implemented using appropriate BIOS and OS interrupts if the code was implemented to be reentrant .", "I know this sounds silly and it probably is but I m interested in understanding how to write programs under these constraints .", "I d like to know what kinds of conventions have been employed in the various operating systems working in 16-bit protected-mode e.g .", "OS 2 and Win 3.1 .", "What ABI did they use", "How are far pointers passed around", "To clarify I know what far pointers are and how they are used on the API level .", "What I d like to know is how this works on assembly level .", "Are segments for far pointers passed on the stack", "Are there any special conventions", "Most 16-bit protected-mode APIs took far pointers as parameters .", "A far pointer is a 32-bit value containing both a 16-bit offset low order word and a 16-bit selector high order word selectors refer to segments .", "It s passed by value by putting it on the stack like any other parameter .", "Generally these pointers could only refer a region of memory up to 65536 bytes in size but different far pointers could refer to different regions of memory allowing more than 64K of memory to be used .", "For example in the 16-bit Windows API Win16 the function GetClientRect https : msdn.microsoft.com en-us library windows desktop ms633503.aspx had the following documented interface : .. . .. . .. . void GetClientRect hwnd lprc .. . .. . HWND hwnd handle of window .. . RECT FAR lprc address of structure for rectangle .. . .. . .. . The symbol FAR was a macro that expanded to far keyword when using the 16-bit Windows API .", "Today this API function is documented as taking an LPRECT parameter which is meant to be read as being long far pointer to RECT .", "The symbol LPRECT is defined as a typedef of RECT in the 32-bit and 64-bit Windows APIs .", "It would be a typedef of RECT far when using the 16-bit API if that was still supported .", "There weren t separate APIs for different memory models small medium compact large because of the use of the far keyword on pointers and the function itself the API was accessible from all memory models .", "The compiler would see that it took a far pointer and promote any near 16-bit pointers as necessary .", "How were these pointers passed", "Is there any ABI documentation you can link me to", "I know that people used far pointers see my question but I d like to see some concrete examples so I can get a better understanding .", "Far pointers consisted of a 16-bit offset in the lower order word of the 32-bit pointer and a 16-bit selector as the higher order word .", "I don t know if anyone wrote up any actual ABI documentation the 16-bit calling conventions predate the term ABI I think but I ve given a 16-bit API example taken from my old Borland C++ 3.1 documentation .", "I know what far pointers are and how they are used on the ABI level .", "how is this implemented on the ABI level and does not really add much to what I already know .", "Thank you for your effort though .", "@FUZxxl I can only answer the question you actually asked .", "As I said far pointers are 32-bit values .", "They re passed around on the stack like any other 32-bit value .", "So there isn t any special convention were segments are passed in segment registers or such", "Near and far jumps could happen within or outside of a segment respectively when coding was done in assembly .", "In protected-mode a descriptor table could be used to extend the addressing range of the segments which could increase the amount of memory that could be utilized on a machine ." ] }
{ "confidence": [ 27.139604568481445, 15.292479515075684 ], "content": [ "Question : I want to write some code for the 16-bit protected-mode specifically a simple operating-system with some programs . I know this sounds silly and it probably is but I m interested in understanding how to write programs under these constraints . I d like to know what kinds of conventions have been employed in the various operating systems working in 16-bit protected-mode e.g . OS 2 and Win 3.1 . What ABI did they use How are far pointers passed around Were there multiple ABIs for different code models To clarify I know what far pointers are and how they are used on the API level . What I d like to know is how this works on assembly level . Are segments for far pointers passed on the stack Are there any special conventions .. . Answer : As far as I remember from old days that AT systems with 80286 architectures were introduced the memory consisted of 64 KB segments which is the max address that can be addressed using a 16-bit address register real-mode . Near and far jumps could happen within or outside of a segment respectively when coding was done in assembly . When a far jump happens in assembly you should first of all give the segment that the jump will happen then the local address within the segment . In protected-mode a descriptor table could be used to extend the addressing range of the segments which could increase the amount of memory that could be utilized on a machine . Multi-tasking and also Terminate and Stay Resident TSR programs could be implemented using appropriate BIOS and OS interrupts if the code was implemented to be reentrant . Comment : Sorry your answer does not answer any of the questions I have . Can you give me some examples about the ABI used and about how far pointers are passed around", "Question : I want to write some code for the 16-bit protected-mode specifically a simple operating-system with some programs . I know this sounds silly and it probably is but I m interested in understanding how to write programs under these constraints . I d like to know what kinds of conventions have been employed in the various operating systems working in 16-bit protected-mode e.g . OS 2 and Win 3.1 . What ABI did they use How are far pointers passed around Were there multiple ABIs for different code models To clarify I know what far pointers are and how they are used on the API level . What I d like to know is how this works on assembly level . Are segments for far pointers passed on the stack Are there any special conventions .. . Answer : Most 16-bit protected-mode APIs took far pointers as parameters . A far pointer is a 32-bit value containing both a 16-bit offset low order word and a 16-bit selector high order word selectors refer to segments . It s passed by value by putting it on the stack like any other parameter . Generally these pointers could only refer a region of memory up to 65536 bytes in size but different far pointers could refer to different regions of memory allowing more than 64K of memory to be used . For example in the 16-bit Windows API Win16 the function GetClientRect https : msdn.microsoft.com en-us library windows desktop ms633503.aspx had the following documented interface : .. . .. . .. . void GetClientRect hwnd lprc .. . .. . HWND hwnd handle of window .. . RECT FAR lprc address of structure for rectangle .. . .. . .. . The symbol FAR was a macro that expanded to far keyword when using the 16-bit Windows API . Today this API function is documented as taking an LPRECT parameter which is meant to be read as being long far pointer to RECT . The symbol LPRECT is defined as a typedef of RECT in the 32-bit and 64-bit Windows APIs . It would be a typedef of RECT far when using the 16-bit API if that was still supported . There weren t separate APIs for different memory models small medium compact large because of the use of the far keyword on pointers and the function itself the API was accessible from all memory models . The compiler would see that it took a far pointer and promote any near 16-bit pointers as necessary . Comment : How were these pointers passed Is there any ABI documentation you can link me to I know that people used far pointers see my question but I d like to see some concrete examples so I can get a better understanding . Comment : Far pointers consisted of a 16-bit offset in the lower order word of the 32-bit pointer and a 16-bit selector as the higher order word . I don t know if anyone wrote up any actual ABI documentation the 16-bit calling conventions predate the term ABI I think but I ve given a 16-bit API example taken from my old Borland C++ 3.1 documentation . Comment : I actually want to know how this works on machine code level . Because that s what I need to know if I want to write such code for my own system . I know what far pointers are and how they are used on the ABI level . Your answer doesn t answer most of the questions I have e.g . how is this implemented on the ABI level and does not really add much to what I already know . Thank you for your effort though . Comment : @FUZxxl I can only answer the question you actually asked . As I said far pointers are 32-bit values . They re passed around on the stack like any other 32-bit value . If that was your question you should have just asked that . Comment : So there isn t any special convention were segments are passed in segment registers or such" ] }
[ "yes-answer-long", "yes-answer-short" ]
targeting
UNK_RELATION
sql-server-2008-express@server@159
sql-server-2008-express -- sql-server-2008-express is a free edition of sql-server that is an ideal data platform for learning and building desktop and small @placeholder applications and for redistribution by isvs .
{ "confidence": [ 90.93328094482422, 88.53173065185547, 86.77005004882812, 84.07666778564453, 82.31985473632812, 81.65064239501953, 81.65064239501953, 81.65064239501953, 79.12411499023438, 78.80480194091797, 78.6171646118164, 78.28589630126953, 78.24642944335938, 76.83744812011719, 76.5243911743164, 75.06493377685547, 74.3396224975586, 74.3396224975586, 74.0983657836914, 74.0983657836914, 71.82859802246094, 71.69831848144531, 71.49378204345703, 71.25253295898438, 71.25253295898438, 71.25253295898438, 71.00345611572266, 70.74596405029297, 70.71761322021484, 70.71761322021484, 70.31629943847656, 70.31629943847656, 70.04864501953125, 69.3272933959961, 69.05622863769531, 68.37569427490234, 68.37569427490234, 68.37569427490234, 68.0475082397461, 68.0475082397461, 68.0475082397461, 68.0475082397461, 67.9185562133789, 67.81194305419922, 67.33293151855469, 67.07486724853516, 67.04170989990234, 66.61958312988281, 66.50531005859375, 66.41130065917969, 66.35152435302734, 66.35152435302734, 66.23878479003906, 65.56663513183594, 65.56663513183594, 65.52877044677734, 65.07271575927734, 64.66675567626953, 64.22903442382812, 63.925498962402344, 63.925498962402344, 63.925498962402344, 63.925498962402344, 63.925498962402344, 63.925498962402344, 63.39912414550781, 63.273406982421875, 62.90922927856445, 62.720794677734375, 62.720794677734375, 62.49586486816406, 62.20881271362305, 61.937904357910156, 61.85564422607422, 61.512794494628906, 61.1888427734375, 61.07965850830078, 61.07965850830078, 61.07965850830078, 61.07965850830078, 61.07965850830078, 61.07965850830078, 60.77095413208008, 60.609825134277344, 60.56338882446289, 60.4429817199707, 60.35625457763672, 60.348854064941406, 60.348854064941406, 59.85301971435547, 59.85301971435547, 59.739479064941406, 59.63636016845703, 59.615169525146484, 59.515777587890625, 59.092063903808594, 57.97554016113281, 57.90155792236328 ], "content": [ "I m using SQL Server 2008 Express Edition .", "sql-server-express-2008", "The application uses Sql Server 2008 Express Edition as its database .", "I use SQL Server 2008 Express .", "BTW I m using SQL Server 2008 Express edition .", "Install SQL Server 2008 EXPRESS R2 .", "I m using SQL Server 2008 Express .", "I use SQL Server Express 2008 .", "SQL server 2008 db on one physical server was migrated to other physical server with SQL express 2008 .", "My program needs SQL Server 2008 Express .", "We have SQL Server Express 2008 on a production server .", "Do I go with SQL Server 2008 Express or install the SQL Server 2005 Standard Edition", "The functionality of creating SQL Agent Jobs is not available in SQL Server Express Edition .", "I managed to install SQL Server 2008 Express on top of SQL Server 2005 Express 86 .", "Visual Studio 2010 Ultimate .. . SQL Server 2008 Express", "SQL Server 2005 and 2008 Express will not compress your data .", "A backup from SQL Server 2012 was made and I am trying to restore it on my local SQL Server 2008 Express .", "Is there a way I can get a large database from SQL Server 2012 into SQL Server 2008 Express", "I have an application which has SQL Server 2008 Express as a prerequisite .", "Does SQL Server 2008 Express support Integration Services", "Uninstall this instance of SQL Server 2005 Express and retry installing SQL Server 2008 Express Service Pack 1 x64 .. . .. . I think only one SQL Server Express can exist on a machine .", "possible duplicate of How to create jobs in SQL Server Express edition http : stackoverflow.com questions 7201061 how-to-create-jobs-in-sql-server-express-edition", "We are looking at migrating one of our databases from SQL Server 2008 Express to SQL Server 2012 .", "Below is my stored procedure in SQL Server 2008 Express", "I have a database with 2 tables in SQL Server 2008 Express .", "In which way Can I rename my sql-server-2008 Express", "I install Sql server 2008 Express From Setup Version That Visual Studio Own Make it and this Sql server Doesn t Have Sql Server Management Studio .", "I just setup a new Windows Server 2008 machine with an instance of SQL Server 2008 Express .", "I am developing a Winforms application in which I am using SQL Server 2008 Express Edition as backend .", "I am using MS SQL Server 2008 R2 SP2 Express edition 64 bit .", "So if the SQL Server 2005 Express is installed as SQLEXPRESS then your SQL Server 2008 Express must be installed with a different instance name e.g .", "Only if you install the included SQL Server 2012 Express LocalDB ... . if you ve installed SQL Server 2008 Express before then you don t have LocalDB : .. .", "Assuming both MSDE and SQL Server 2008 Express exist on a single machine what options are available to copy a database from MSDE to SQL Server 2008", "A database that was originally from SQL Server 2008 was restored into SQL Server 2012 .", "I am thinking of cutting down costs by installing the free SQL Server 2008 Express instead .", "The installation fail when you try to install sql-server-2008-express on an x86-based computer . ontent error :", "I Work on C Project WinForm .. . .. . I Install Sql Server 2008 Express On Client PC .", "SQL Server 2008 R2 Express has a new 10 GB database size limit", "I have recently successfully completed the installation of SQL Server 2008 Express .", "sql-server-2008-express does not have management studio .", "I have an application which requires SQL Server 2008 Express .", "The option of SQL Server 2008 Express is included in the prerequisete list", "I have a very basic ASP.NET web application that is connecting to a SQL Server database I am using SQL Server 2008 Express .", "I have created some new databases in SQL Server 2008 Express 10.0.1600.22 and I have also restored one from SQL Server 2005 Express 9.00.1399.06 .", "directly from the the link i sent you .. . Microsoft SQL Server 2008 Express SQL Server Express can serve as a Subscriber for all types of replication providing a convenient way to distribute data to client applications that use SQL Server Express .", "OP asked about SQL 2008 Express not 2005 .", "Copied and pasted from : Sql Server Express Blog http : blogs.msdn.com sqlexpress archive 2008 09 12 faq-installing-the-sql-server-2008-express-clickonce-bootstrapper-for-visual-studio-2008-sp1.aspx", "No no licensing problems at all - SQL Server 2008 Express is FREE to use to deploy to install - and can be used for any kind of hobbyist or commercial application - no restrictions .", "I am using Visual Studio 2010 and SQL Server 2008 Express .. . .. . I would like to deploy my project with setup and deployment project and would like to include the SQL Server database file and SQL Server 2008 Express installer so the user can easily install and use the application .", "We re looking to install SQL Server 2008 Express on the clients but must retain MSDE for other applications .", "Here is my first question about a SQL Server 2008 Express database containing articles quantities prices and so on .", "If I run this query on SQL Server Express 2008 : .. . .. . It stored the date as 04 11 2011 .. . .. . How can I prevent this", "If it installs a Sql Server express edition it this enough or it s better to have Sql Server developer edition", "Actually I was using SQL Server express .", "Express does not support the SQL Server Agent .", "Any edition of SQL Server Express is an ideal choice for independent software vendors ISVs server users non-professional developers Web developers Web site hosts and hobbyists who are building client applications.. . .. . .. . I didn t see any explicit reference on that case .", "However all of my SQL Server databases together are only 4GB in size thereby making SQL Server 2008 Express an option .", "The Visual Studio 2010 installer gives you the option of installing SQL Server 2008 Express Edition .", "Run the install of SQL Express 2008 .. . 3 .", "Hi I m trying to connect to SQL Server 2008 Express using the following code .", "But when we install it on a Windows 7 Professional machine it asks for .Net framework but not ask for SQL Server 2008 Express .", "I want to connect to a SQL Server 2008 Express but I get this error - how to solve it", "I only have the Express versions of MS SQL Server 2008 and Visual Studio .", "Microsoft SQL Server 2008 Express doesn t support Integration Services at it s fullest .", "See more here http : stackoverflow.com questions 15514572 sql-server-2008-express-integration-services .", "Could any one please explain me how can I create jobs in SQL Server Express edition", "It appears to me then that SQL Server Express Advanced has everything SQL Server Express With Tools has the tools and nothing more and SQL Server Express plain is just the database engine .", "See also this question : stackoverflow.com questions 955926 sql-server-express-4gb-limit http : stackoverflow.com questions 955926 sql-server-express-4gb-limit", "Usually SQL Server Express is installed with a named instance .", "SQL Server Express is installed using a named instance .", "When I install it on another system that use installed application that uses SQL Server 2005 Express I get this error : .. . .. . SQL Server 2008 Express Service Pack 1 x64 cannot upgrade the existing instance of SQL Server 2005 Express x64 WoW named SQLEXPRESS .", "We were thinking we could run SQL Server 2008 Express on the same server as 2000 for the period of time it takes before we upgrade .", "SQL Server 2008 doesn t know sequences yet - that ll be introduced in SQL Server 2012 f.k.a .", "The correct provider for SQL Server 2008 is SQLNCLI10.1 .", "Hi Can anyone help me with a new installation of SQL Server 2008 .", "But this is easily worked around : Is there a way to stop SQL Express 2008 from Idling", "How come you are not using the built-in replication features built-in to SQL SERVER 2008 Express", "I have developed an application in VB.Net VS2010 and make a setup-deployment that checked in prerequisites SQL Server 2008 Express .", "How to create new database with SQL Server Express 2008 without using Management Studio", "I am in charge for migrating old Access 2007 project to MS SQL server 2008 Express .", "So I added Microsoft SQL Server 2008 Express SP1 x86 in the redistributables section .", "For more information Please take a look at : http : www.hadirobati.com wpEn silent-install-of-sql-server-2008-express-in-installshield", "I should also mention that we will be looking to create the solution using .NET C and we re limited to SQL Server Express 2008 edition .", "Also : if ever possible move to a more recent version - SQL Server 2014 Express is just as free as the 2008 version - and it supports databases up to 10 GB the limit was upped from 4 to 10 GB with SQL Server 2008 R2 Express ... .", "@marc c : In my machine I have installed the sql-server by installing the vs2010.Can I install a new instance of sql express 2008 by vs2010", ": .. . .. . Express Agent for SQL Server Express : Jobs Jobs Jobs and Mail http : weblogs.asp.net alex papadimoulis archive 2005 11 10 Express-Agent-for-SQL-Server-Express 3A00 -Jobs 2C00 -Jobs 2C00 -Jobs 2C00 -and-Mail.aspx .. . SQL Scheduler http : www.lazycoding.com products.aspx", "I want synchronize data between two SQL servers 2008 Express Edition .", "Ohh sorry MySql server 2008 express", "MySql Server 2008 Express would be a new invention .", "I am trying to allow remote connections for SQL Server Express .", "In short I create the database using the Winforms C in SQL Server Express .", "SQL Server Express doesn t include SQL Server Agent http : en.wikipedia.org wiki SQL Server Express Capabilities so it s not possible to just create SQL Agent jobs .", "I have installed SQL Server 2008 Express and done the configuration but still when when I try to add a SQL Server database file in the project I get an error .. . .. . Connection to SQL Server Database file .mdf requires SQL Server 2005 or SQL Server 2008 Express to be installed and running on you local computer .. . .. . Please help I am stuck here .", "If you are referring to SQL Agent jobs that functionality is not available in Express edition .", "Does SQL Server Express not come with Management Studio", "SQL Server 2008 doesn t have a LocalDB version that was introduced in SQL Server 2012 ... .", "So my SQL Server Express version does not allow the SQL Agent service to run .", "I m using MSSQL 2008 EXPRESS edition ." ] }
{ "confidence": [ 111.25709533691406, 85.97969818115234, 82.96810913085938, 81.9464340209961, 81.39421844482422, 81.29261779785156, 81.23793029785156, 80.10710144042969, 79.92586517333984, 79.03529357910156, 77.75901794433594, 77.64340209960938, 77.5356216430664, 76.37084197998047, 76.29253387451172, 76.17294311523438, 76.05412292480469, 75.6986312866211, 75.41001892089844, 75.142578125 ], "content": [ "Question : I m deploying a web application into a server hosting company . The application uses Sql Server 2008 Express Edition as its database . It seems from the license agreement that this state is ok as Microsoft says : .. . .. . All editions of SQL Server Express are free downloads that can be redistributed subject to agreement . Each edition can function both as the client database and as a basic server database . Any edition of SQL Server Express is an ideal choice for independent software vendors ISVs server users non-professional developers Web developers Web site hosts and hobbyists who are building client applications.. . .. . .. . I didn t see any explicit reference on that case . Do you have any experience with that issue Is there any license problem with that .. . Answer : No no licensing problems at all - SQL Server 2008 Express is FREE to use to deploy to install - and can be used for any kind of hobbyist or commercial application - no restrictions . Comment : More interesting to my company are the limitations : single CPU 1GB RAM 4GB database size 32-bit only . Okay that was 2005 . Do these still hold true for 2008 Comment : @Michael : yes those limitations are still the same for the 2008 versions . The FILESTREAM data e.g . documents however does not count against those 4 GB per database - just in case you re dealing with large numbers of documents : - Comment : OK thank you very much Comment : SQL Server 2008 R2 Express has a new 10 GB database size limit Comment : blogs.msdn.com b sqlexpress archive 2010 04 21 http : blogs.msdn.com b sqlexpress archive 2010 04 21 database-size-limit-increased-to-10gb-in-sql-server-2008-r2-express.aspx", "Question : My hosting provider Rackspace is offering a fully managed dedicated-server with SQL Server Web version installed . My company handles web development and has about 20+ clients using ASP.Net + SQL Server 2005 . I am thinking of cutting down costs by installing the free SQL Server 2008 Express instead . I am aware of the 1GB RAM and 4GB database is that correct limitations . What I would like to know is : .. . .. . 1 . Is there any limit to the NUMBER of databases I can install with the express edition 2 . Are there any other limitations I should be wary of I am a bit concerned about having to set up the database backup - with the express edition it might a lot more difficult . 3 . Any other advise Comment : Is there a limitation on the number of connections anyone Comment : @codeulike : no there was never a limit on the number of connections in MSDE SQL Express and the Workload Governor that limited the number of ACTIVE connections to 5 in MSDE has been removed in SQL Express : blogs.msdn.com b euanga archive 2006 03 09 545576.aspx http : blogs.msdn.com b euanga archive 2006 03 09 545576.aspx .. . Answer : Another limitation to consider is that SQL Server Express editions go into an idle mode after a period of disuse . Understanding SQL Express behavior : Idle time resource usage AUTO CLOSE and User Instances http : blogs.msdn.com b sqlexpress archive 2008 02 22 sql-express-behaviors-idle-time-resources-usage-auto-close-and-user-instances.aspx : .. . .. . When SQL Express is idle it aggressively trims back the working memory set by writing the cached data back to disk and releasing the memory . But this is easily worked around : Is there a way to stop SQL Express 2008 from Idling http : stackoverflow.com questions 579332 is-there-a-way-to-stop-sql-express-2008-from-idling", "Question : I want synchronize data between two SQL servers 2008 Express Edition . I would like to avoid escalating SQL queries to MS DTC service MS DTC service is not running . For synchronization I use stored-procedures without transactions . I have more stored procedure . The procedures which download data from linked-server and then store it to local DB works fine . I am using stored-procedures to upload data to linked-server . Inside stored procedure I have no transaction used . When I run stored procedure from SQL Management Studio data are correctly uploaded to server . But when I call this procedure from .NET 4.0 C code it ends up with error .. . .. . 8501 - MSDTC on server compName SQLEXPRESS2008 is unavailable . No transactions used within application code . Sometimes the data is uploaded even from the code . I cannot figure out when the MSDTC is necessary and when not . Why is MSDTC needed when no transaction used .. . .. . EDIT1 : .. . .. . I have little progress . This code is used for calling stored procedure . First time when the procedure is called the data is correctly uploaded to server . Next time it ends-with exception 8501 . .. . Answer : Why are you trying to manage the sync ing yourself How come you are not using the built-in replication features built-in to SQL SERVER 2008 Express http : technet.microsoft.com en-us library ms165686 v sql.105 .aspx http : technet.microsoft.com en-us library ms165686 28v sql.105 29.aspx .. . .. . This will allow you to push and pull between databases to keep them synchronized . Comment : I need to make replication between 2 SQL Servers 2008 Express Edition . I thought that I cannot use built-in replication between two Express Edition servers . Comment : directly from the the link i sent you .. . Microsoft SQL Server 2008 Express SQL Server Express can serve as a Subscriber for all types of replication providing a convenient way to distribute data to client applications that use SQL Server Express . When using SQL Server Express in a replication topology consider the following : Comment : Thank you for answers but according to stackoverflow.com questions 6248298 http : stackoverflow.com questions 6248298 how-to-synchronize-2-databases . The replication feature cannot be used . And the table structure is slightly different in both databases .", "Question : Does SQL Server 2008 Express support Integration Services When I try to create an Integration Services project it says that I have to install Integration Services but I cannot find the option in the setup for the installation . How can I install it thanks .. . Answer : Microsoft SQL Server 2008 Express doesn t support Integration Services at it s fullest . It will support access to basic data sources but not the full suite that is included in the Standard edition of MSSQL Server 2008 . I don t believe there is a way around this . It s part of the installation package and I don t believe Express has the necessary programmatic pieces for Integration Services .", "Question : My hosting provider Rackspace is offering a fully managed dedicated-server with SQL Server Web version installed . My company handles web development and has about 20+ clients using ASP.Net + SQL Server 2005 . I am thinking of cutting down costs by installing the free SQL Server 2008 Express instead . I am aware of the 1GB RAM and 4GB database is that correct limitations . What I would like to know is : .. . .. . 1 . Is there any limit to the NUMBER of databases I can install with the express edition 2 . Are there any other limitations I should be wary of I am a bit concerned about having to set up the database backup - with the express edition it might a lot more difficult . 3 . Any other advise Comment : Is there a limitation on the number of connections anyone Comment : @codeulike : no there was never a limit on the number of connections in MSDE SQL Express and the Workload Governor that limited the number of ACTIVE connections to 5 in MSDE has been removed in SQL Express : blogs.msdn.com b euanga archive 2006 03 09 545576.aspx http : blogs.msdn.com b euanga archive 2006 03 09 545576.aspx .. . Answer : There are a number of limitations notably : .. . .. . Constrained to a single CPU in 2012 this limitation has been changed to The lesser of one socket or four cores so multi-threading is possible .. . 1GB RAM Same in 2008 2012 .. . 4GB database size raised to 10GB in SQL 2008 R2 and SQL 2012 per database .. . .. . http : www.dotnetspider.com tutorials SqlServer-Tutorial-158.aspx http : www.microsoft.com sqlserver 2008 en us editions.aspx .. . .. . With regards to the number of databases this MSDN article http : msdn.microsoft.com en-us library ms345154 28SQL.90 29.aspx says there s no limit : .. . .. . The 4 GB database size limit applies only to data files and not to log files . However there are no limits to the number of databases that can be attached to the server . However as mentioned in the comments and above the database size limit was raised to 10GB in 2008 R2 and 2012 . Also this 10GB limit only applies to relational data and Filestream data does not count towards this limit http : msdn.microsoft.com en-us library bb895334.aspx . Comment : Hi As mentioned above I m ok with those limitations - I m only worried about the actual no . of databases - any idea about this Comment : @David Brunelle : The 4 GB limitation is per database as far as I understand it . In the MSDN article it says : Databases have a 4 GB maximum size . See also this question : stackoverflow.com questions 955926 sql-server-express-4gb-limit http : stackoverflow.com questions 955926 sql-server-express-4gb-limit Comment : This answer could be updated SQL Server 2008 R2 allows up to 10GB per database . Comment : @RudolfDvoracek According to msdn.microsoft.com en-us library bb895334.aspx http : msdn.microsoft.com en-us library bb895334.aspx Filestream doesn t count towards that limit : SQL Server Express supports FILESTREAM . The 10-GB database size limit does not include the FILESTREAM data container . Comment : The CPU and RAM limits are per instance while Express supports 50 instances per server .", "Question : I am using SQL Server 2008 express and i want to import .mdf and i get this error : .mdf version is 661 your db supports the version 655 .. . .. . Which version is 661 and how to import it in sql Server 2008 . Comment : Could you please edit the title to refer to 655 instead of 665 .. . Answer : Install SQL Server 2008 EXPRESS R2 . There is a bug in the Web Platform Installer and it still thinks EXPRESS R1 is the latest version .", "Question : My hosting provider Rackspace is offering a fully managed dedicated-server with SQL Server Web version installed . My company handles web development and has about 20+ clients using ASP.Net + SQL Server 2005 . I am thinking of cutting down costs by installing the free SQL Server 2008 Express instead . I am aware of the 1GB RAM and 4GB database is that correct limitations . What I would like to know is : .. . .. . 1 . Is there any limit to the NUMBER of databases I can install with the express edition 2 . Are there any other limitations I should be wary of I am a bit concerned about having to set up the database backup - with the express edition it might a lot more difficult . 3 . Any other advise Comment : Is there a limitation on the number of connections anyone Comment : @codeulike : no there was never a limit on the number of connections in MSDE SQL Express and the Workload Governor that limited the number of ACTIVE connections to 5 in MSDE has been removed in SQL Express : blogs.msdn.com b euanga archive 2006 03 09 545576.aspx http : blogs.msdn.com b euanga archive 2006 03 09 545576.aspx .. . Answer : If you switch from Web to Express you will no longer be able to use the SQL Server Agent service so you need to set up a different scheduler for maintenance and backups .", "Question : I have developed an application in VB.Net VS2010 and make a setup-deployment that checked in prerequisites SQL Server 2008 Express . When I install it on another system that use installed application that uses SQL Server 2005 Express I get this error : .. . .. . SQL Server 2008 Express Service Pack 1 x64 cannot upgrade the existing instance of SQL Server 2005 Express x64 WoW named SQLEXPRESS . Uninstall this instance of SQL Server 2005 Express and retry installing SQL Server 2008 Express Service Pack 1 x64 .. . .. . I think only one SQL Server Express can exist on a machine . But I can t uninstall SQL Server 2005 because an application uses it . What can I do in setup to prevent this error Thanks Comment : You can migrate the existing application with a little downtime or go virtual and have several instances of sql-server on different VMs . Comment : At what point during your install did you receive that error I managed to install SQL Server 2008 Express on top of SQL Server 2005 Express 86 . Comment : When I double-click on setup . .. . Answer : You can easily have multiple instances of SQL Server - any edition - on a machine at the same time . The instances must have unique names however . So if the SQL Server 2005 Express is installed as SQLEXPRESS then your SQL Server 2008 Express must be installed with a different instance name e.g . SQLX2008 or whatever - just not SQLEXPRESS .. . .. . And your application s config file of course must be updated to connect to that new separate instance by its name . Comment : In which way Can I rename my sql-server-2008 Express Comment : @student : you just need to choose a different instance name when installing Comment : @marc c : In my machine I have installed the sql-server by installing the vs2010.Can I install a new instance of sql express 2008 by vs2010 or must download it from microsoft and then install it Comment : @student : I would download it from Microsoft s web site http : www.microsoft.com en-us download details.aspx id 1695 Comment : @marc c : I download Sql Express 2008 And install it with new instance name.Can you Introduce reference to modify and update application s config Thanks .", "Question : My hosting provider Rackspace is offering a fully managed dedicated-server with SQL Server Web version installed . My company handles web development and has about 20+ clients using ASP.Net + SQL Server 2005 . I am thinking of cutting down costs by installing the free SQL Server 2008 Express instead . I am aware of the 1GB RAM and 4GB database is that correct limitations . What I would like to know is : .. . .. . 1 . Is there any limit to the NUMBER of databases I can install with the express edition 2 . Are there any other limitations I should be wary of I am a bit concerned about having to set up the database backup - with the express edition it might a lot more difficult . 3 . Any other advise Comment : Is there a limitation on the number of connections anyone Comment : @codeulike : no there was never a limit on the number of connections in MSDE SQL Express and the Workload Governor that limited the number of ACTIVE connections to 5 in MSDE has been removed in SQL Express : blogs.msdn.com b euanga archive 2006 03 09 545576.aspx http : blogs.msdn.com b euanga archive 2006 03 09 545576.aspx .. . Answer : You can t install Integration Services with it . Express does not support Integration Services . So if you want build say SSIS-packages you ll need at least Standard Edition . See more here http : stackoverflow.com questions 15514572 sql-server-2008-express-integration-services .", "Question : null .. . Answer : I am trying to figure out the best method for transferring SQL Server 2005 databases from 2 different physical servers to a new server running Windows Server 2008 64bit . I own a fully registered copy of Microsoft SQL Server 2005 32bit Standard Edition . However all of my SQL Server databases together are only 4GB in size thereby making SQL Server 2008 Express an option . Here is the breakdown of the servers : .. . .. . 1 . Old Server1 Windows 2003 Server 32bit - SQL Server 2005 Express 32bit .. . 2 . Old Server2 Windows 2003 Server 32bit - SQL Server 2005 32bit Standard .. . 3 . New Server Windows 2008 Server 64bit - Not sure which version to install .. . .. . The objective is to migrate the 2 SQL Server databases from Old Server1 and 1 SQL Server database from Old Server 2 to the New Server . What version should I install on the new server Do I go with SQL Server 2008 Express or install the SQL Server 2005 Standard Edition Pending your response to which version to install what are the correct steps to migrate which I have never done before the databases from both of these servers to the new server I have researched this online and I think this particular situation is unique in that I am transferring from both SQL Server Express and Standard from 2 different physical servers to a 2008 server that is 64bit . I cannot find anything online that I feel confident in trying . Please help me as I have this migration deadline of this weekend . Any help is appreciated . Thanks Comment : This is not a programming question . Please look for another place to ask this question . Comment : You simply backup the databases from the source servers and restore them into the new SQL Server . Not much more to it really . Bitness 32 64 is irrelevant unless you are using some funky linked servers i.e . connecting to external Excel . If you re certain your DB s will not grow beyond 10G in the medium term then why not go the whole and try SQL 2014 Express . Its MAX size is 10G Comment : One thing to keep in mind : SQL Server 2005 is no longer supported by Microsoft . Do you really want to migrate to an unsupported version of SQL Server Also : if ever possible move to a more recent version - SQL Server 2014 Express is just as free as the 2008 version - and it supports databases up to 10 GB the limit was upped from 4 to 10 GB with SQL Server 2008 R2 Express ... . Comment : To add to someone else s comments see if you can BACKUP the 2005 DBs msdn.microsoft.com en-us library ms186865 v sql.90 .aspx https : msdn.microsoft.com en-us library ms186865 v sql.90 .aspx . move the backup files to the new server and restore them through SSMS .", "Question : I Work on C Project WinForm .. . .. . I Install Sql Server 2008 Express On Client PC . in Start Of My Program Must Create a Database . So I Use This Code For Create a Database : .. . .. . But When My Program Run I See Following Error .. . .. . enter image description here http : i.stack.imgur.com egRwE.jpg .. . .. . What is My Problem Comment : See this : codeproject.com Articles 10213 http : www.codeproject.com Articles 10213 Create-a-SQL-Server-Database-Using-C Comment : Thanks My friend . But Doesn t Work . Comment : In you code avoid creating the files in root directory C see error message . Use a sub directory you can read-write to . As per the link What errors are you getting Are you running the app as admin Can you connect to DB Comment : Thanks it works . i create db in c : aaa ali.mdf and work --- Why this error Happend . How Can Understand what Directory is Safe to Make DB Comment : The root directory is protected for some Windows versions . Most applications don t have enough auth . to write to C : so without acquiring privs you can t create files there . .. . Answer : It looks from the error message that you don t have permissions to create your mdf file on the root . Truth be told you should not have put it there anyway as that is much too exposed . Put it in your application s folder or somewhere obscure where it won t be accidentally deleted . I also think that you should be running this as a install script for the initial setup rather than in your code . I am a big proponent of keeping sql out of code as much as possible but to each his own . You say you set up the SQL Server DB you should use the tools at your disposal to make this easy for you . I had a book from Wrox that served me well here is the link : http : www.wrox.com WileyCDA WroxTitle Wrox-s-SQL-Server-2005-Express-Edition-Starter-Kit.productCd-0764589237.html -Amazon has it for 2 - http : www.amazon.com Server-Express-Edition-Starter-Programmer dp B006TQYC8U ref sr 1 1 ie UTF8 qid 1342019983 sr 8-1 keywords Wrox 27s+SQL+Server+2005+Express+Edition+Starter+Kit http : rads.stackoverflow.com amzn click B006TQYC8U .. . .. . Also : .. . .. . http : msdn.microsoft.com en-us library bb264562 v sql.90 .aspx Comment : I install Sql server 2008 Express From Setup Version That Visual Studio Own Make it and this Sql server Doesn t Have Sql Server Management Studio . And When Run My Program On My PC . it s Work Well . but When Install And Run On Client PC Has Error . I think Sql server that I install On Client PC is Raw And Doesn t Have Any user And Pass Instance .", "Question : My hosting provider Rackspace is offering a fully managed dedicated-server with SQL Server Web version installed . My company handles web development and has about 20+ clients using ASP.Net + SQL Server 2005 . I am thinking of cutting down costs by installing the free SQL Server 2008 Express instead . I am aware of the 1GB RAM and 4GB database is that correct limitations . What I would like to know is : .. . .. . 1 . Is there any limit to the NUMBER of databases I can install with the express edition 2 . Are there any other limitations I should be wary of I am a bit concerned about having to set up the database backup - with the express edition it might a lot more difficult . 3 . Any other advise Comment : Is there a limitation on the number of connections anyone Comment : @codeulike : no there was never a limit on the number of connections in MSDE SQL Express and the Workload Governor that limited the number of ACTIVE connections to 5 in MSDE has been removed in SQL Express : blogs.msdn.com b euanga archive 2006 03 09 545576.aspx http : blogs.msdn.com b euanga archive 2006 03 09 545576.aspx .. . Answer : It seems like the database size limitation has been increased to 10GB. . good new .. . .. . http : blogs.msdn.com b sqlexpress archive 2010 04 21 database-size-limit-increased-to-10gb-in-sql-server-2008-r2-express.aspx", "Question : Do visual-studio-2010 include already Sql Server instance or I need to install Sql Server developer edition to develop an application that need a Sql Server db . If it installs a Sql Server express edition it this enough or it s better to have Sql Server developer edition .. . Answer : I think the size limitation is not the main issue . In Sql Server 2008 you have some features in Sql Server Management Studio that aren t available in the Express management Studio or the Express database engine like : - suggesting the table and column names in Query Window - Sql profiler Cor Westra", "Question : I m using SQL Server 2008 Express Edition . I wanna create a sequence with this code : .. . .. . and the error is .. . .. . Msg 343 Level 15 State 1 Line 1 .. . Unknown object-type SEQUENCE used in a CREATE DROP or ALTER statement . Can anyone help me Best Regards .. . Answer : Sequence objects are new with SQL Denali SQL Server 2012 Here is some sample codes http : www.kodyaz.com sql-server-2012 number-of-sequences-in-sql-server-2012-using-sequence-objects.aspx for sequence objects in SQL 2012 .. . .. . You can find a sequence table implemantation for SQL Server 2008 here : http : www.kodyaz.com t-sql sql-server-instead-of-trigger-with-sequence-table.aspx Comment : I remember being able to do this in postgresql.. . and loved it . Very happy it was added to SQL 2012", "Question : I have recently successfully completed the installation of SQL Server 2008 Express . After installation when I tried accessing SQL Server Express I found there was no Management Studio installed . Is there an issue with express that Management Studio is not installed during installation If yes how do we access SQL Server in this case I also tried installing Management Studio separately but however when I tried to login through the installed Management Studio the server was not found . Am I missing something Does SQL Server Express not come with Management Studio Please Assist . Thanks Comment : If you look at the SQL Server Express download page http : www.microsoft.com en-us download details.aspx id 29062 you ll see several versions of SQL Server Express . The bare bones version is just that - nothing but the actual SQL Server engine . But there s also the Express with Tools and the Express with Advanced Services versions - both of which do include SQL Server Management Studio Express . But you can also download the Mgmt Studio Express separately and install it . .. . Answer : The SQL Server 2008 Management Studio Express can be downloaded from here http : www.microsoft.com en-us download details.aspx id 7593 . You ll need it to use a management studio with Express edition .", "Question : Could any one please explain me how can I create jobs in SQL Server Express edition Comment : If you are referring to SQL Agent jobs that functionality is not available in Express edition . See the answer to this question for other possibilities : stackoverflow.com questions 3788583 http : stackoverflow.com questions 3788583 automate-a-sql-query-to-run-every-month 3789024 3789024 .. . Answer : SQL Server Express editions are limited in some ways - one way is that they don t have the SQL Agent that allows you to schedule jobs . There are a few third-party extensions that provide that capability - check out e.g . : .. . .. . Express Agent for SQL Server Express : Jobs Jobs Jobs and Mail http : weblogs.asp.net alex papadimoulis archive 2005 11 10 Express-Agent-for-SQL-Server-Express 3A00 -Jobs 2C00 -Jobs 2C00 -Jobs 2C00 -and-Mail.aspx .. . SQL Scheduler http : www.lazycoding.com products.aspx", "Question : My hosting provider Rackspace is offering a fully managed dedicated-server with SQL Server Web version installed . My company handles web development and has about 20+ clients using ASP.Net + SQL Server 2005 . I am thinking of cutting down costs by installing the free SQL Server 2008 Express instead . I am aware of the 1GB RAM and 4GB database is that correct limitations . What I would like to know is : .. . .. . 1 . Is there any limit to the NUMBER of databases I can install with the express edition 2 . Are there any other limitations I should be wary of I am a bit concerned about having to set up the database backup - with the express edition it might a lot more difficult . 3 . Any other advise Comment : Is there a limitation on the number of connections anyone Comment : @codeulike : no there was never a limit on the number of connections in MSDE SQL Express and the Workload Governor that limited the number of ACTIVE connections to 5 in MSDE has been removed in SQL Express : blogs.msdn.com b euanga archive 2006 03 09 545576.aspx http : blogs.msdn.com b euanga archive 2006 03 09 545576.aspx .. . Answer : You can create user instances http : technet.microsoft.com en-us library bb264564 28SQL.90 29.aspx and have each app talk to its very own SQL Express . There is no limit on the number of databases . Comment : As in we can create 100 databases as long as the total size does not exceed 4 GB or we can create 100 databases each up to 4 GB Comment : Each individual database must be under 4GB . Comment : Good idea as with separate instances each instance should be able to use its own 1 GByte of memory and 1 CPU . Comment : If two user instances are connected to the same .mdf file will that not cause problems Comment : Will sql express allow for multiple instances to be installed Will it not be hit by the resource limits Ie all 5 sql instances together will still only be allowed to use 1gb ram", "Question : A database that was originally from SQL Server 2008 was restored into SQL Server 2012 . A backup from SQL Server 2012 was made and I am trying to restore it on my local SQL Server 2008 Express . However I get an error Specified cast is not valid SQLManagerUI . I have generated an SQL Script from 2012 and set it so that it will generate with compatibility to SQL Server 2008 . However it is a large sql file around 700mb . I recall before that I had tried to run a script of that size before on my local SQLExpress and also got an error . Is there a way I can get a large database from SQL Server 2012 into SQL Server 2008 Express Comment : You can never go back in terms of versions in SQL Server . If you backed up your database in a 2012 version you cannot restore that backup to a 2008 version . Just won t work - no tricks or ways around it either : - Comment : Oh no . Thanks Marc . I ll try to see if I can run the generated sql script to get a copy of the database into my local sql express . Comment : See Why SQL Server cannot restore backup to earlier version http : www.mytechmantra.com LearnSQLServer Unable to Restore Database From Backup.html Comment : Also see my answer here : stackoverflow.com questions 10303791 http : stackoverflow.com questions 10303791 create-database-in-sql-server-2012-script-and-use-in-2008 Comment : Even if the compatibility-mode is set to sql 2005 .. . Answer : Thanks to Marc and Aaron for providing the answers . The quick answer is no it s not possible to restore a backup file from a higher version to a lower version of SQL Server . A work around would be to generate the scripts to create the database . You can target the script generation to a lower version . Please see comments above for more information . Links : .. . .. . Why an SQL Server Database from a higher version cannot be restored onto a lower version of SQL Server http : www.mytechmantra.com LearnSQLServer Unable to Restore Database From Backup.html .. . .. . Create Database in SQL Server 2012 Script and Use in 2008 http : stackoverflow.com questions 10303791 create-database-in-sql-server-2012-script-and-use-in-2008", "Question : I m using SQL Server 2008 Express Edition . I wanna create a sequence with this code : .. . .. . and the error is .. . .. . Msg 343 Level 15 State 1 Line 1 .. . Unknown object-type SEQUENCE used in a CREATE DROP or ALTER statement . Can anyone help me Best Regards .. . Answer : SQL Server 2008 doesn t know sequences yet - that ll be introduced in SQL Server 2012 f.k.a . Denali . For pretty much the same result use an INT IDENTITY column instead : .. . .. . The IDENTITY column is automatically filled by SQL Server at the time you insert a new row into the table . SQL Server makes sure it s monotonically increasing starting at 1 increasing by 1 you can set these to different values if needed . Basically when inserting a row into such a table you must not specify the IDENTITY column in your list of columns to insert values into - SQL Server will do this for you automatically .", "Question : Is it possible to get sql profiler for sql2008 for free or you have to have a license to get it i.e . it won t work with sql express .. . Answer : SQL Server 2008 Developer Edition isn t free but it s about 50 at NewEgg or anywhere else : .. . .. . Newegg.com product link http : www.newegg.com Product Product.aspx Item N82E16832116925 Tpk sql 20server 20developer 20edition .. . .. . Developer edition is basically a re-branded not-for-production version of Enterprise so it s got all the features Enterprise has including Profiler . That s as close to free as you re going to get since Profiler is not included with any Express products . Comment : If the above link says Out of Stock then try this one : microsoftstore.com store msstore en US pd productID.221634300 http : www.microsoftstore.com store msstore en US pd productID.221634300 Comment : @HappyNomad - I ve updated the link-to be a search at NewEgg.com so it always turns out whatever version is current ." ] }
[ "yes-answer-long", "yes-answer-short" ]
server
UNK_RELATION
kinect@xbox-one@80
kinect -- microsoft s kinect is a motion sensing input device for the xbox 360 @placeholder and pcs .
{ "confidence": [ 57.974266052246094, 57.49093246459961, 52.566673278808594, 52.45734405517578, 52.275428771972656, 51.43920135498047, 50.91829299926758, 50.41411590576172, 50.37592697143555, 50.33624267578125, 49.66501235961914, 47.89799118041992, 47.32128143310547, 46.7005500793457, 46.34392547607422, 45.809391021728516, 45.5344352722168, 45.19564437866211, 44.8351936340332, 44.79278564453125, 44.712738037109375, 44.518516540527344, 43.99433898925781, 43.7810173034668, 43.745460510253906, 43.36132049560547, 42.66205978393555, 42.53142166137695, 42.23118209838867, 42.23118209838867, 42.10193634033203, 41.982913970947266, 41.982913970947266, 41.982913970947266, 41.82494354248047, 41.70182418823242, 41.50777816772461, 41.36343765258789, 41.2034912109375, 41.2034912109375, 41.2034912109375, 41.09843063354492, 41.09843063354492, 40.980289459228516, 40.914222717285156, 40.52229690551758, 40.35889434814453, 40.32902145385742, 40.25389099121094, 40.16838455200195, 40.04902267456055, 40.04902267456055, 39.94502258300781, 39.34217834472656, 39.299713134765625, 39.11090850830078, 39.095951080322266, 39.095951080322266, 38.915557861328125, 38.915557861328125, 38.73845672607422, 38.60342025756836, 38.23903274536133, 38.12763595581055, 38.08921813964844, 38.078128814697266, 38.078128814697266, 38.0482177734375, 38.00775909423828, 38.00775909423828, 37.80635070800781, 37.80635070800781, 37.80635070800781, 37.80635070800781, 37.80635070800781, 37.80635070800781, 37.69843673706055, 37.64993667602539, 37.64993667602539, 37.47709274291992, 37.354305267333984, 37.33185958862305, 37.2780647277832, 37.19826126098633, 37.192134857177734, 37.17812728881836, 37.167030334472656, 36.99444580078125, 36.97114562988281, 36.968265533447266, 36.78364562988281, 36.78364562988281, 36.78364562988281, 36.61061477661133, 36.59013366699219, 36.59013366699219, 36.578773498535156, 36.368370056152344, 36.368370056152344, 36.3662223815918 ], "content": [ "I am using a Kinect for XBOX 360 device .", "I have a Kinect sensor for XBox 360 and Windows 7 driver Kinect studio do not seem to recognize the device .", "key : .. . .. . Kinect v1 XBOX 360 kinect Windows v1 Kinect - Kinect SDK v1.8 -VS2012+lower .. . .. . Kinect v2 XBOX ONE kinect Windows v2 Kinect - Kinect SDK v2.0 -VS2013 .. . .. . Answer 1 : Yes the XBOX360 version of the kinect will work for development purposes but it is only compatible with the Kinect SDK v1.8 .", "Just try to get the big picture there http : channel9.msdn.com coding4fun kinect Finger-Tracking-with-Kinect-SDK-and-the-Kinect-for-XBox-360-Device", "Just as an FYI I am using an XBOX 360 Kinect and not the Windows version .", "It will not work with gaming console Kinect for XBOX 360 .", "Is this for the Xbox or for Kinect for Windows", "Does it matter that I am using an Xbox 360 Kinect Sensor", "I m using an Xbox Kinect with the Kinect SDK v1.0 .", "As Kinect for windows and Kinect for XBOX 360 are two different hardwares pcfromkinect function works with Kinect for Windows only .", "Using Kinect for XBox One with the Kinect For Windows USB Adapter .", "Kinect for Xbox sensors are not supported .", "Question 1 : If I want to begin working with the Kinect SDK and Visual Studio development will the Kinect for Xbox 360 work as opposed to the newer Kinect 2 for Xbox One", "Kinect v2 and the kinect for xbox-one doesn t work with OpenNI directly .", "Current version is for 1.8 SDK Kinect for Xbox 360 and Kinect for Windows v1 plan to update it to work with 2.0 SDK too via MEF plugin in the future to also support KfW v2 and Kinect for Xbox One when I get the newer Kinect for Xbox One and the adapter for Windows", "Also much of the information is outdated pertaining to the Xbox One and Xbox 360 Kinects along with the Kinect SDK .", "The left image is the Kinect in a Unity scene and the right is within Microsoft Kinect Studio .", "I m trying to calculate the surface area of a player using Kinect for Xbox 360 and SDK 1.8 .", "Microsoft does not guarantee full compatibility for Kinect for Windows applications and the Xbox 360 Kinect Sensor .. . .. . Edit : Adding this .. . .. . to FaceTracker.cs : : Track prints this .. . .. . These numbers seem correct based on the setup .", "I am using an XBox Kinect with the Kinect for Windows SDK .", "I m developing a Windowssoftware with a Kinect for XBox One Integration .", "-Download the Microsoft Samples for kinect .", "One model is acquired from a motion capture device and the other is from Kinect .", "An important note : according to the official Xbox documentation https : support.xbox.com en-US xbox-on-windows accessories kinect-for-windows-v2-known-issues c0f98f7c94a64254a7a8cff46d87638a on Kinect 2 the device cannot work with USB 2.0 but only with 3.0 .", "In Device Manager you should see if it has the following : .. . .. . Microsoft.Kinect .. . Microsoft Kinect Audio Array Control .. . Microsoft Kinect Camera .. . Microsoft Kinect Security Control .. . .. . And : .. . .. . Sound video and game controllers .. . Kinect USB Audio .. . .. . I have read that it is recommended that you do not have the sensor connected when installing the SDK .", "Version 2.0 SDK is specifically for the XBOX ONE kinect .", "I am working on Windows System 64bit-OS with Processing-1.5.1 framework SimpleOpenNI-1.96 library Microsoft kinect xbox 360 .", "I have a Kinect V2 sensor that came with my Xbox One and a Kinect for Windows adapter .", "I just buy a Kinect for Xbox 360 with the USB adapter to connect to your computer .", "My colleague has a xbox 360 kinect to spare so he brought it at work .", "I have references to : Microsoft.Kinect.Toolkit.dll I m currently using a Kinect for xbox 360 and the kinect SDK 1.8 .. . .. . Other kinect tools are displayed in my toolbox but this one seems to be missing .", "Question 2 : In the above statement when Windows states develop with the Xbox 360 Kinect what does develop mean", "More specifically can I completely develop my application test it and run it with the Xbox 360 Kinect and just not be able to publish it", "Or will I only have some functionality but not be able to run the Xbox 360 Kinect with my application and be forced to purchase the Windows version", "The kinect 360 cameras has a static pattern of points that are unevenly distributed .", "Maybe I need Kinect for Xbox in the end", "Microsoft Kinect for Windows SDK .. . 2 .", "I connected Kinect for Xbox 360 on Ubuntu on my virtual-machine launched openni.launch and then opened rviz .", "Are you using Kinect v1 or Kinect v2", "I m using C and Kinect with Kinect SDK .", "I m working with a Kinect for Windows and the Kinect SDK 1.7 .", "I am using the Microsoft Kinect SDK v1.7 .", "The Microsoft Kinect SDK does not track the back of users .", "In Microsoft Kinect SDK 1.8 the coordinate system is centered on the Kinect sensor and the following image explains how it is defined : .. . .. .", "Attempting to get the user s height in Unity using the xbox kinect .", "Kinect X-Box 360 .. . .. . Following Issue : 1 .", "In essence using the Kinect for motion detector only human I know .", "To find out if your Kinect works properly open the Kinect Developer Toolkit Browser and run the Kinect Explorer-WPF .", "This is an official video from Microsoft aka The Kinect Effect .", "In Microsoft Kinect SDK the coordinate system is centered on the Kinect sensor and the following image explains how it is defined : .. . .. .", "Which version of the Microsoft Kinect SDK are you using", "You need the following : .. . .. . -Kinect SDK from Microsoft .", "There are C++ wrapper functions for the Microsoft Kinect 2 using Microsoft SDK .", "Do you use kinect v2 or kinect v1", "I have obtained the coordinates of a human shoulder elbow and wrist using Microsoft Kinect device data are taken with respect to the Kinect Device .", "which version of Kinect device are you using", "I am using the following environment and versions : .. . .. . Python 2.7.2 .. . PyKinect 2.1b1 .. . Kinect sensor from XBOX v1 .. . Kinect SDK 1.8 .. . Windows 7", "I use a Kinect for XBox One and would like to know how I can determine if the necessary Kinect V2 drivers are installed .", "I can save all streams of Kinect v2 and Kinect v1 synchronized .", "Yes the kinect SDK 1.8 does not work with the kinect one .", "I must to do a game in unity and run it on xbox-one with kinect capabilities .", "In the device manager the kinect can be recognized in 2 ways : .. . .. . Primesense .. . Kinect for windows .. . .. . In my case Windows 8.1 it only works when it is installed as Kinect for Windows .", "Are you using kinect v1 or kinect v2", "I am interested in using XBox Kinect device on Windows eventually with Mac machine together with Open NI NITE .", "Kinect for Xbox One http : compass.xbox.com assets 3d 37 3d377852-0f21-4074-a3c2-35f418170848.jpg n chandler xboxone hardware 960x540 01.jpg or Kinect for Xbox 360 http : compass.xbox.com assets 89 91 8991d7b5-c14f-4b30-9b89-deb3ba52069c.jpg n Xbox360 Sensor 960x450.jpg", "I m using Kinect Microsoft SDK with XNA .", "The goal is to control a Mac using the Microsoft Kinect camera .", "it is a xbox 360 sensor .", "The end goal is to make the Kinect a Multi Touch device", "I have the same problem with my Kinect device .", "I have a question with Kinect .", "I am new to kinect .", "The Kinect Cursor is too sensitive .", "kinect sensor information not avilable .", "Obtain the kinect sensor .. . 2 .", "Open the kinect sensor .. . 4 .", "I have a programming project using Kinect Xbox one sensor .", "Quoted from Windows : .. . .. . If you re a software developer you can use the Kinect for Xbox 360 together with your computer to test the software you re working on .", "Answer 2 : Yes you can completely develop applications using the Kinect XBOX ONE 360 versions but you cannot publish them .", "As you note the face tracking SDK is designed for the Kinect for Windows sensor not the Xbox one .", "This has been fixed in MS Kinect SDK 2 and Kinect Studio 2 where you can use files recorded with Kinect Studio with no need of any actual device connected", "If this doesn t work you can remove those drivers and install Microsoft Kinect SDK you might find some options for Microsoft Kinect SDK .", "Kinect : .. . .. .", "getting started with Kinect http : channel9.msdn.com coding4fun kinect Getting-started-with-Kinect-development-quickly-with-the-Kinect-for-Windows-Quickstart-Series", "Can anyone advise if this is an operator error or if SDK 1.5 indeed does not support Kinect for XBox sensor but only Kinect for Windows I have USB and power adapter for it .", "I finally upgraded my OS to Windows 8.1 and now my XBOX Kinect app that I built doesn t work .", "I am working on a Kinect application .", "I m new in Kinect development .", "That means if you track motion there will come many frames over time probably limited only to the power of the Kinect device and the computer .", "You can develop a multiplayer Kinect game for the PC see this link http : kinectforwindows.org but not for XBOX 360 unless you are a Microsoft affiliate and have access to the XBOX 360 Native Development http : www.xbox.com en-US developers xbox360 registereddevelopers Kit which requires signing a non-disclosure agreement .", "well I find there s no way to do this with microsoft kinect sdks .", "Currently I am using the Microsoft Kinect for measuring angles between joints .", "I ve tried KinectExplorer sample containted inside the Microsoft Kinect SDK .", "Links may be a bit outdates for example Apple bought OpenNI so the Forth ICS project can now be found here http : cvrlcode.ics.forth.gr handtracking .. . .. . You didn t mention which version of the kinect so I ll assume it s the original kinect for xbox 360 .", "In that question there is an answer which explains that it is not possible to use .xed files for emulating a fake kinect with Kinect Studio without having an actual Kinect plugged in .", "I am trying to extract Color Depth Frames from the New Kinect Kinect Version 2 using the Kinect for Windows 2 SDK .", "There should be a way to track eyes using the Microsoft Kinect SDK .", "The Kinect Cursor is too fast i.e .", "Is the Kinect API any different in Unity", "currently I am developing a tool for the Kinect for Windows v2 similar to the one in XBOX ONE ." ] }
{ "confidence": [ 75.60252380371094, 73.80197143554688, 72.06100463867188, 71.57762145996094, 68.32037353515625, 67.24494934082031, 65.77398681640625, 65.32609558105469, 65.05196380615234, 63.52477264404297, 62.38017654418945, 62.25905990600586, 61.97142791748047, 60.09014892578125, 58.93841552734375, 58.92991256713867, 58.37577438354492, 58.194862365722656, 57.62589645385742, 57.056697845458984 ], "content": [ "Question : Microsoft has recently released Kinect SDK 1.5 and some very neat associated features such as face tracking . I have a Kinect sensor for XBox 360 and Windows 7 driver Kinect studio do not seem to recognize the device . Can anyone advise if this is an operator error or if SDK 1.5 indeed does not support Kinect for XBox sensor but only Kinect for Windows I have USB and power adapter for it . Thank you Edmon Comment : As you note the face tracking SDK is designed for the Kinect for Windows sensor not the Xbox one . But your devices should still show up . .. . Answer : The SDK supports Kinect for Xbox360 as a development device so this is probably an operator- or hardware error . Please keep in mind however that the SDK must be installed for the Xbox360 version to work - the device is not supported for deployment on machines which have just the driver installed .", "Question : I am thinking about developing a game for xbox kinect but it is a multiplayer game but there are no multiplayer games for kinect right now so i was wondering if it s even possible Multiplayer as in over the network not in the same room . .. . Answer : You can develop a multiplayer Kinect game for the PC see this link http : kinectforwindows.org but not for XBOX 360 unless you are a Microsoft affiliate and have access to the XBOX 360 Native Development http : www.xbox.com en-US developers xbox360 registereddevelopers Kit which requires signing a non-disclosure agreement . This is NOT possible using XNA . Comment : Which leads us to the question : Why not From my point of view the Kinect is just another input device it should not block the network aspect of any game .", "Question : Microsoft has recently released Kinect SDK 1.5 and some very neat associated features such as face tracking . I have a Kinect sensor for XBox 360 and Windows 7 driver Kinect studio do not seem to recognize the device . Can anyone advise if this is an operator error or if SDK 1.5 indeed does not support Kinect for XBox sensor but only Kinect for Windows I have USB and power adapter for it . Thank you Edmon Comment : As you note the face tracking SDK is designed for the Kinect for Windows sensor not the Xbox one . But your devices should still show up . .. . Answer : As Chris Ortner pointed out the Kinect for Xbox sensor is compatible with Windows 7 for development purposes only - you need to have the SDK installed . It might be worth checking to see if the SDK has installed properly . In Device Manager you should see if it has the following : .. . .. . Microsoft.Kinect .. . Microsoft Kinect Audio Array Control .. . Microsoft Kinect Camera .. . Microsoft Kinect Security Control .. . .. . And : .. . .. . Sound video and game controllers .. . Kinect USB Audio .. . .. . I have read that it is recommended that you do not have the sensor connected when installing the SDK . This is also implied by the msdn article setting up a kinect sensor http : msdn.microsoft.com en-us library hh855356 . I have also read although unable to provide a reference having things like OpenNI or libfreenect may cause issues and should be uninstalled before installing the SDK . The link also provides other troubleshooting tips . One last thing to check ensure you are plugged into a USB 2.0 or USB 3.0 bus . http : www.microsoft.com en-us kinectforwindows develop release-notes.aspx It is one of the hardware requirements and I am aware that one of the KinectSensor states is InsufficientBandwidth . http : msdn.microsoft.com en-us library microsoft.kinect.kinectstatus.aspx", "Question : Quoted from Windows : .. . .. . If you re a software developer you can use the Kinect for Xbox 360 together with your computer to test the software you re working on . However to get the full Kinect for Windows experience we recommend you download the Kinect for Windows SDK and use it with the Kinect for Windows . Question 1 : If I want to begin working with the Kinect SDK and Visual Studio development will the Kinect for Xbox 360 work as opposed to the newer Kinect 2 for Xbox One I understand it will lack some functionality that the Windows version has . Question 2 : In the above statement when Windows states develop with the Xbox 360 Kinect what does develop mean More specifically can I completely develop my application test it and run it with the Xbox 360 Kinect and just not be able to publish it Or will I only have some functionality but not be able to run the Xbox 360 Kinect with my application and be forced to purchase the Windows version Sorry for the lengthy questions . I have been researching this project for the past week and I feel the difference between the Kinects and the extent at which they can be utilized with development is very ambiguous . Also much of the information is outdated pertaining to the Xbox One and Xbox 360 Kinects along with the Kinect SDK . .. . Answer : After weeks of research and downloading all of the available SDK environments for both versions of the kinect I have finally found an answer . key : .. . .. . Kinect v1 XBOX 360 kinect Windows v1 Kinect - Kinect SDK v1.8 -VS2012+lower .. . .. . Kinect v2 XBOX ONE kinect Windows v2 Kinect - Kinect SDK v2.0 -VS2013 .. . .. . Answer 1 : Yes the XBOX360 version of the kinect will work for development purposes but it is only compatible with the Kinect SDK v1.8 . Version 2.0 SDK is specifically for the XBOX ONE kinect . Version 2 SDK has dropped all drivers for the v1 kinect and will not support it . Also note that The v2 Kinect will only work in the microsoft VS2013 or higher versions whereas the Kinect v1 will ONLY work with the VS2012 or lower versions . Be prepared to install both if necessary . I have both currently installed on my windows-8 machine . Answer 2 : Yes you can completely develop applications using the Kinect XBOX ONE 360 versions but you cannot publish them . Also the gaming versions do lack a lot of needed functionality compared to the Windows versions . I hope this post brings some clarity for Kinect developers . Good luck .", "Question : I am using a Kinect for XBOX 360 device . I installed kinectSDK v1.6 and kinect for windows support package in MATLAB 2015b . Acquisition of depth and color images is carried out perfectly . However when I try to use pcfromkinect function following error occurs : .. . .. . Does this function support Kinect for XBOX 360 devices Source code of my program is as follows : Comment : The problem is not yet solved I am using Win 8.1 64-bit OS . Did any one used Kinect v1 with new depth-related functionalities of MATLAB 2015b .. . Answer : As Kinect for windows and Kinect for XBOX 360 are two different hardwares pcfromkinect function works with Kinect for Windows only . It will not work with gaming console Kinect for XBOX 360 . I am working on same line so let me know if u will get results .", "Question : I m wondering are their any codes or application that I can use to receive data from Kinect device . The idea is to use the kinect to send its signals to a surface and get back range of signal data . this could be set of numbers which will-change according to the light distance and angel Thanks . Comment : Are you using Kinect v1 or Kinect v2 If you are using Kinect v2 there are many examples included in the SDK Comment : it is a xbox 360 sensor . Does that mean sdk does not have samples .. . Answer : Start with downloading the sdk from the link below windows-8 or above is required for kinect to pc and use their demo projects to see how to set up a program to read data in from the Kinect . It will have colour and depth cameras and you will be able to get the pixel data back and be able to use the depth feedback to tell how far away something is . As far as angle the Kinect doesn t have a built-in gyroscope so you ll have to use known points and trig to find angles . https : www.microsoft.com en-us download details.aspx id 44561 Comment : just check and it is a xbox 360 v1 sensor . downloading the sdk but not sure it has demo projects", "Question : I m trying to make a C program that uses the Microsoft Speech Recognition API with Kinect but I m struggling to get started . I have the using statements .. . .. . But it s giving me the error the type or namespace name Speech does not exist in the namespace Microsoft . Are you missing an assembly reference Does anyone know what to add System.Speech doesn t do the trick . Comment : Did you add the reference to the Microsoft Speech Recognition API DLL or Project to your project Comment : See SpeechTurtle.codeplex.com http : SpeechTurtle.codeplex.com for a project that works both with and without Kinect and Microsoft.Speech for driving a turtle using your voice based on a Kinect SDK sample . Current version is for 1.8 SDK Kinect for Xbox 360 and Kinect for Windows v1 plan to update it to work with 2.0 SDK too via MEF plugin in the future to also support KfW v2 and Kinect for Xbox One when I get the newer Kinect for Xbox One and the adapter for Windows .. . Answer : Make sure you add this assembly to your project : C : Program Files Microsoft SDKs Speech v11.0 Assembly Microsoft.Speech.dll . More details can be found on MSDN http : msdn.microsoft.com en-us library hh855387.aspx Comment : I haven t tried it myself but it should work in 64 bit .", "Question : I m trying to make a C program that uses the Microsoft Speech Recognition API with Kinect but I m struggling to get started . I have the using statements .. . .. . But it s giving me the error the type or namespace name Speech does not exist in the namespace Microsoft . Are you missing an assembly reference Does anyone know what to add System.Speech doesn t do the trick . Comment : Did you add the reference to the Microsoft Speech Recognition API DLL or Project to your project Comment : See SpeechTurtle.codeplex.com http : SpeechTurtle.codeplex.com for a project that works both with and without Kinect and Microsoft.Speech for driving a turtle using your voice based on a Kinect SDK sample . Current version is for 1.8 SDK Kinect for Xbox 360 and Kinect for Windows v1 plan to update it to work with 2.0 SDK too via MEF plugin in the future to also support KfW v2 and Kinect for Xbox One when I get the newer Kinect for Xbox One and the adapter for Windows .. . Answer : You need to do this which works for me . Import Microsoft.Speech.dll from the following location :", "Question : I am using a Kinect for XBOX 360 device . I installed kinectSDK v1.6 and kinect for windows support package in MATLAB 2015b . Acquisition of depth and color images is carried out perfectly . However when I try to use pcfromkinect function following error occurs : .. . .. . Does this function support Kinect for XBOX 360 devices Source code of my program is as follows : Comment : The problem is not yet solved I am using Win 8.1 64-bit OS . Did any one used Kinect v1 with new depth-related functionalities of MATLAB 2015b .. . Answer : This function and the Image Acquisition toolbox do not support the XBOX 360 sensor . See supported hardware here . http : www.mathworks.com hardware-support kinect-windows.html", "Question : I just buy a Kinect for Xbox 360 with the USB adapter to connect to your computer . I downloaded the SDK 1.8 and I have seen that is the last compatible version but I have several problems the microphone recognizes me well and I ve tried to record audio and recorded but in the windows s devices I look in part of unspecified : Xbox and Xbox NUI Camera NUI Motor . I try to throw in some Browser Developer Toolkit application and I get device not found even understand that I have to install any driver to recognize me the cameras and the engine any help please .. . Answer : SDK 1.8 worked for me : you must install the drivers with the Kinect unplugged . More information in this link : http : superuser.com questions 874741 connecting-a-kinect-to-windows-8-computer-with-kinect-for-windows-sdk-2-0", "Question : I just buy a Kinect for Xbox 360 with the USB adapter to connect to your computer . I downloaded the SDK 1.8 and I have seen that is the last compatible version but I have several problems the microphone recognizes me well and I ve tried to record audio and recorded but in the windows s devices I look in part of unspecified : Xbox and Xbox NUI Camera NUI Motor . I try to throw in some Browser Developer Toolkit application and I get device not found even understand that I have to install any driver to recognize me the cameras and the engine any help please .. . Answer : In the device manager the kinect can be recognized in 2 ways : .. . .. . Primesense .. . Kinect for windows .. . .. . In my case Windows 8.1 it only works when it is installed as Kinect for Windows . When it is recognized as Primesense you can do the following for all 3 devices camera motor audio : .. . .. . right-click : update driver .. . Choose search on my computer for driver .. . Choose from list of drivers on my computer .. . Choose the Kinect for Windows driver", "Question : I m trying to make a C program that uses the Microsoft Speech Recognition API with Kinect but I m struggling to get started . I have the using statements .. . .. . But it s giving me the error the type or namespace name Speech does not exist in the namespace Microsoft . Are you missing an assembly reference Does anyone know what to add System.Speech doesn t do the trick . Comment : Did you add the reference to the Microsoft Speech Recognition API DLL or Project to your project Comment : See SpeechTurtle.codeplex.com http : SpeechTurtle.codeplex.com for a project that works both with and without Kinect and Microsoft.Speech for driving a turtle using your voice based on a Kinect SDK sample . Current version is for 1.8 SDK Kinect for Xbox 360 and Kinect for Windows v1 plan to update it to work with 2.0 SDK too via MEF plugin in the future to also support KfW v2 and Kinect for Xbox One when I get the newer Kinect for Xbox One and the adapter for Windows .. . Answer : Try the System.Speech.Recognition namespace instead . The Microsoft.Speech.Recognition namespace is part of the Office Communications Server product . Help link : System.Speech.Recognition http : msdn.microsoft.com en-us library ms554855 28v vs.85 29.aspx .. . .. . Office Communications Server UCMA Application UCMA Speech SDK http : msdn.microsoft.com en-us library dd266409 28v office.13 29.aspx Comment : I m roughly following this http : www.ximplosionx.com 2011 06 22 intro-to-the-kinect-sdkadding-speech-recognition guide . Is that out of date I thought that Microsoft.Speech and System.Speech were separate Comment : @user1002973 - Edited . Comment : Microsoft.Speech and System.Speech are similar but different . See stackoverflow.com questions 2977338 http : stackoverflow.com questions 2977338 what-is-the-difference-between-system-speech-recognition-and-microsoft-speech-re Comment : Wow . Cool . That s really clarifying . Comment : Thanks but see my new answer . My comment above didn t help explain Kinect .", "Question : please help .. . .. . I ve been trying to set up kinect for XBOX 360 to run on ubuntu in order to start developing an application to control a humanoid robot . for the past four days I ve been searching downloading installing and trying dozens of libraries and drivers to get the kinect to work on Ubuntu . in the beginning none was working and I was only able to read the RGB camera with Camorama and guvcview no matter what library or driver I attempted to run. . Finally I installed a fresh copy of Ubuntu and installed libfreenect libraries using synaptic I m kinda newbie and I also installed the following packages .. . .. . https : code.google.com p simple-openni downloads detail name OpenNI NITE Installer-Linux64-0.27.zip can 4 q https : code.google.com p simple-openni downloads detail name OpenNI NITE Installer-Linux64-0.27.zip can 4 q .. . .. . along with Processing 2.0 and SimpleOpenNi-0.27 .. . .. . I start Processing - examples - OpenNi - DepthImage RUN and the kinect starts for 3 to 10 seconds giving the image below some times along with the RGB image and some times with out it then the frame freezes and when I try listing the USB devices lsusb there is no Kinect camera or audio devices listed so the Kinect must be unplugged from the Adaptor and USB and then re-inserted and the problem still occur after running the sketch . Attempted solutions : .. . .. . 1- removing and black listing gspca kernel module .. . .. . 2- disabling USB auto-suspend .. . .. . but the problem still occur.. . I m using Kinect for XBOX 360 with 12V - 1.08A USB AC Power Adapter http : www.walmart.com ip INSTEN-USB-AC-Power-Adapter-For-Microsoft-Xbox-360-Kinect-Sensor 28882271 .. . .. . My laptop is : DELL Inspiron.1525 Intel Core2Duo RAM 2GB .. . .. . Running Ubuntu 14.04.2 LTS Release : 14.04 Codename : trusty .. . .. . Can any one help me please . .. . Answer : The following tips will help you get started using your Kinect : .. . .. . 1 . If a non-Microsoft driver for the Kinect is installed on your computer the Kinect for Windows drivers might not install or function correctly . To fix this uninstall the non-Microsoft drivers before installing the Kinect for Windows SDK . 2 . Connect the power supply for the Kinect to an external power source if the Kinect has only power from the USB connection it will be minimally functional and light the LED but it must be connected to an external power source to be fully functional . 3 . No tools are required for calibration of audio and video . 4 . Your Kinect should be the only device plugged into a USB hub on your computer . If you have more than one Kinect connect them to different USB controllers . If 2 hubs are connected to the same controller only 1 Kinect can work at a time . 5 . The Kinect is protected from overheating by a fan . It is controlled by the sensor s firmware which turns off the camera at 90 degrees Celsius . There is no software interface for applications to control the fan . 6 . Reasonable lighting neither extremely dark nor extremely bright is important for capturing images with the RGB camera . Incandescent fluorescent and natural lighting provide no special obstacles but do not point an intense or constant light source at the camera because this can blind the RGB sensor . 7 . The depth sensor functions adequately in typical and reduced lighting although in near darkness there is increased noise in the signal . 8 . The depth sensor reads depth information from reflected light . Objects that are highly reflective mirrors and shiny metal or highly absorptive fluffy and or dark materials may not be registered by the depth sensor as successfully as other objects . for detailed instructions on Setting Up a Kinect Sensor please follow : https : msdn.microsoft.com en-us library hh855356", "Question : The requirement is to define a rectangle around each eye in 3D space . There should be a way to track eyes using the Microsoft Kinect SDK . According to this http : msdn.microsoft.com en-us library jj130970.aspx ID4EWF .. . .. . The Face Tracking SDK uses the Kinect coordinate system to output its 3D tracking results . The origin is located at the camera s optical center sensor Z axis is pointing towards a user Y axis is pointing up . The measurement units are meters for translation and degrees for rotation angles . Adding .. . .. . to CreateResult in Microsoft.Kinect.Toolkit.FaceTracking prints .. . .. . when the SDK starts tracking a face . I should be able to use these coordinates to paint a box around each eye but the Z coordinate should probably be closer to 1.0 not -0.1. . or -0.2. . based on my setup so I don t trust the numbers . Is the XYZ supposed to be the location of the FeaturePoint in 3D space relative to the sensor Do I misunderstand the Kinect coordinate system Am I using the Kinect SDK incorrectly Does it matter that I am using an Xbox 360 Kinect Sensor Microsoft does not guarantee full compatibility for Kinect for Windows applications and the Xbox 360 Kinect Sensor .. . .. . Edit : Adding this .. . .. . to FaceTracker.cs : : Track prints this .. . .. . These numbers seem correct based on the setup . The FeaturePoints print only once but the HeadPoints print continuously while trackSucceeded . Are FeaturePoint values relative to the HeadPoint Comment : Outside of face tracking XYZ is measured in millimeters from the Kinect origin . I would guess the values are the same though they may be the difference from a facial point . I ve not delt directly with the face tracker before to be sure . Comment : @EvilClosetMonkey : According to this http : msdn.microsoft.com en-us library jj130970.aspx ID4EWF The measurement units are meters . Comment : Indeed the seem to be in meters for the face tracker . The regular depth coordinate system http : msdn.microsoft.com en-us library hh973078.aspx reports in millimeters and I hadn t tracked down the link you posted above . How far away from the Kinect are you sitting Grab a ruler : Comment : I notice you got an answer to this on MSDN . It seems like the answer should be crossposted here for reference but I d feel odd doing it myself as I didn t answer it . Perhaps the OP should Not sure of the etiquette on this . Comment : @MikePrecup : I made a suggestion to the OP at MSDN to post a link here . .. . Answer : Per our conversation on MSDN forums : .. . .. . http : social.msdn.microsoft.com Forums en-US 93046062-05fe-4beb-9d69-94a4f004fb7b how-to-track-eyes-using-kinect", "Question : null .. . Answer : I have a black region on the right-hand side of the depth frame . When I point the Kinect at a white wall I get the following see attached picture from Kinect Studio : the black region never goes away . Depth Frame : kinect studio depth image http : i.stack.imgur.com 4KZ5A.png .. . .. . IR Frame : enter image description here http : i.stack.imgur.com AeL3R.png SDK2 . It doesn t seem to matter where I point the Kinect or how the lighting situation is the result is always the same . I supsect the Depth Sensor IR Emitter to be somehow misaligned . Does anybody know if I can align or calibrate the Sensors somehow Or is it a hardware issue Using Kinect for XBox One with the Kinect For Windows USB Adapter . Comment : How far away is the Kinect from whatever you are pointing at Is there lots of light coming from the right side Is it always like that no matter where you point the Kinect Comment : I tried with different set-ups the lighting situation hardly matters . There is always a blind spot no matter where I point the Kinect . Although it seems to be slightly smaller at close range . Comment : If it s always like that it does seem like a hardware problem . Contact Microsoft and have them replace your device .", "Question : please help .. . .. . I ve been trying to set up kinect for XBOX 360 to run on ubuntu in order to start developing an application to control a humanoid robot . for the past four days I ve been searching downloading installing and trying dozens of libraries and drivers to get the kinect to work on Ubuntu . in the beginning none was working and I was only able to read the RGB camera with Camorama and guvcview no matter what library or driver I attempted to run. . Finally I installed a fresh copy of Ubuntu and installed libfreenect libraries using synaptic I m kinda newbie and I also installed the following packages .. . .. . https : code.google.com p simple-openni downloads detail name OpenNI NITE Installer-Linux64-0.27.zip can 4 q https : code.google.com p simple-openni downloads detail name OpenNI NITE Installer-Linux64-0.27.zip can 4 q .. . .. . along with Processing 2.0 and SimpleOpenNi-0.27 .. . .. . I start Processing - examples - OpenNi - DepthImage RUN and the kinect starts for 3 to 10 seconds giving the image below some times along with the RGB image and some times with out it then the frame freezes and when I try listing the USB devices lsusb there is no Kinect camera or audio devices listed so the Kinect must be unplugged from the Adaptor and USB and then re-inserted and the problem still occur after running the sketch . Attempted solutions : .. . .. . 1- removing and black listing gspca kernel module .. . .. . 2- disabling USB auto-suspend .. . .. . but the problem still occur.. . I m using Kinect for XBOX 360 with 12V - 1.08A USB AC Power Adapter http : www.walmart.com ip INSTEN-USB-AC-Power-Adapter-For-Microsoft-Xbox-360-Kinect-Sensor 28882271 .. . .. . My laptop is : DELL Inspiron.1525 Intel Core2Duo RAM 2GB .. . .. . Running Ubuntu 14.04.2 LTS Release : 14.04 Codename : trusty .. . .. . Can any one help me please . .. . Answer : I had a similar problem and after I used Kinect With windows I found that the problem was from the Kinect itself . Comment : Thanks buddy I tried it with the official windows sdk and developer toolkit when I attempted one of the example codes the issue persists to appear but with a clear message asking to plug the power cord in though the adaptor is brand new Comment : I checked those sites for some informations a bout the AC adaptor and it seems that there is a problem with the adaptor and most importantly the Kinect manual states that any unoriginal adaptors may cause the device to fail - also the manual says that original AC adaptor power output is 12V-1.1A while the one I have is rated 12V-1.08A no big deal but who knows on the meanwhile this sites : goo.gl OUiaCx http : goo.gl OUiaCx states that 2A is prefered and some says 4A would work Comment : @MohamedAbdElRaouf i have the adaptor with 2V 2.67A and i try to connect the sensor to windows-10 VM and it keeps also disconnecting Comment : @Hany : 2V is not sufficient by all means use the original adapter i m not sure if the vm can cause problems as i never tested it .. . but my advice to you is to try it on a native machine with its official sdk and drivers just to make sure that the device is intact .. . in my case after trying several days it turned that the device it self was broken.. . Comment : @MohamedAbdElRaouf i added an answer with screenshot of the adaptor it s 12V it was a typing mistake", "Question : In my toolbox I am not able to add a KinectSensorChooser to my MainWindow . I have references to : Microsoft.Kinect.Toolkit.dll I m currently using a Kinect for xbox 360 and the kinect SDK 1.8 .. . .. . Other kinect tools are displayed in my toolbox but this one seems to be missing . Is there a way to add it .. . Answer : In Visual Studio you have to link your project with Microsoft.Kinect extension and then use Microsoft.Kinect.Toolkit as a namespace for your project . Using Kinect xbox360 or Kinect 1 for windows is the same .", "Question : I m trying to make a C program that uses the Microsoft Speech Recognition API with Kinect but I m struggling to get started . I have the using statements .. . .. . But it s giving me the error the type or namespace name Speech does not exist in the namespace Microsoft . Are you missing an assembly reference Does anyone know what to add System.Speech doesn t do the trick . Comment : Did you add the reference to the Microsoft Speech Recognition API DLL or Project to your project Comment : See SpeechTurtle.codeplex.com http : SpeechTurtle.codeplex.com for a project that works both with and without Kinect and Microsoft.Speech for driving a turtle using your voice based on a Kinect SDK sample . Current version is for 1.8 SDK Kinect for Xbox 360 and Kinect for Windows v1 plan to update it to work with 2.0 SDK too via MEF plugin in the future to also support KfW v2 and Kinect for Xbox One when I get the newer Kinect for Xbox One and the adapter for Windows .. . Answer : I think there is some confusion because you are using the Kinect SDK and some of the answers here regard the related SDKs System.Speech in .net and Microsoft.Speech that is distributed with a variety of Microsoft server products and the Server Speech Platform . From your comments in the other answers it seems that Kinect SDK uses the Microsoft.Speech namespace and your app must reference the Microsoft.Speech.dll that came with the Kinect SDK . Just to help clarify a few things I hope : .. . .. . System.Speech is a core .net API and a recognizer that implements it is included in Windows 7 . It is a client or desktop recognizer and can be trained for specific users and includes a dictation grammar . Microsoft.Speech is a .net API that is similar but a bit different . Recognizers that implment Microsoft.Speech are part of various Server products like UCMA http : www.microsoft.com download en details.aspx id 15417 and the Microsoft Server Speech Platform http : www.microsoft.com download en details.aspx id 27226 . As you point out Microsoft.Speech is also the API used for the Kinect recognizer . This is documented in the MSDN link Philipp Schmid mentioned in a comment Speech C How To Kinect http : msdn.microsoft.com en-us library hh855387.aspx . I have not worked with Kinect but this makes sense since the recognizer doesn t require speaker training . These resources are a bit out date because the predate Kinect but they may be helpful : .. . .. . Microsoft.Speech and System.Speech are similar but different . See What is the difference between System.Speech.Recognition and Microsoft.Speech.Recognition http : stackoverflow.com questions 2977338 what-is-the-difference-between-system-speech-recognition-and-microsoft-speech-re .. . .. . To get started with .NET speech there is a very good article that was published a few years ago at http : msdn.microsoft.com en-us magazine cc163663.aspx . It is probably the best introductory article I ve found so far . It is a little out of date but very helfpul . The AppendResultKeyValue method was dropped after the beta . This article shows the System.Speech namespace but most of that can be directly mapped to Microsoft.Speech .", "Question : Good afternoon I have an Xbox 360 Kinect and want to connect and be recognized on a virtual-machine computer with native Windows I have been able since I first installed the SDK 1.8 and later connect via USB to the computer and it is recognized but from a virtual-machine only I know me the microphone while the camera and the engine . Connect the Kinect to the computer make sure the USB connection is accessed in the virtual-machine the camera appears blinking led but devices in the non-specific section appear in both xbox nui camera and xbox engine nui . When I try to access any application of Developer Toolkit Browser to start it I get the message that I have not connected the camera appears . I m using both Parallels Mac as VirtualBox Windows and in both it has been impossible . .. . Answer : According to Windows documentation https : msdn.microsoft.com en-us library jj663795.aspx only the Kinect for Windows sensor will work on a virtual-machine . Kinect for Xbox sensors are not supported . Kinect for Windows does work within a virtual-machine with JDK 1.6 and more .", "Question : null .. . Answer : My colleague has a xbox 360 kinect to spare so he brought it at work . I installed the kinect studio 1.8.0 everything is fine the kinect works . I have windows-10 .. . .. . From here I would like to use it to manipulate a website . Exactly like this project does with a traditional webcam .. . .. . https : www.youtube.com watch v bXF68hNPuNo .. . .. . http : revealjs.herokuapp.com .. . .. . Question 1 is it possible to do this I check around on google and it seems the 1.8.0 is a bit outdated and some websites are down like firebreath .. . .. . Question 2 if it is not possible and or outdated can I use the kinect as a webcam to control the site I managed to install openNi virtual webcam and the browser doesn t detect the kinect as a webcam : .. . .. . I am thinking that maybe the kinect webcam will be better than the laptop regular webcam . Thanks" ] }
[ "yes-answer-long", "yes-answer-short" ]
xbox-one
UNK_RELATION
endpoints-proto-datastore@endpoints-proto-datastore@120
endpoints-proto-datastore -- this library is intended to be used with the python version of google cloud endpoints.the @placeholder api provides an abstraction that allows existing model classes to be used with google-cloud-endpoints .
{ "confidence": [ 75.47247314453125, 69.262939453125, 61.84715270996094, 49.800750732421875, 46.238643646240234, 45.73847961425781, 43.509376525878906, 43.23332977294922, 41.377891540527344, 41.29588317871094, 39.55412292480469, 38.7130126953125, 37.46803665161133, 35.798160552978516, 35.753822326660156, 35.51298904418945, 35.26057434082031, 35.26057434082031, 34.90434646606445, 33.40996551513672, 32.63383483886719, 31.918582916259766, 31.918582916259766, 31.001354217529297, 30.773914337158203, 30.662979125976562, 30.044464111328125, 29.730560302734375, 29.545991897583008, 29.07170867919922, 28.656869888305664, 28.58167266845703, 28.317279815673828, 28.236331939697266, 28.236331939697266, 27.569705963134766, 27.549354553222656, 26.413597106933594, 26.404687881469727, 26.404687881469727, 26.041318893432617, 25.673147201538086, 25.45831298828125, 25.36133575439453, 24.57155990600586, 24.317054748535156, 24.10129165649414, 23.998985290527344, 23.98056411743164, 23.94805335998535, 23.456575393676758, 23.272396087646484, 23.237335205078125, 23.015756607055664, 22.825740814208984, 22.165424346923828, 22.161741256713867, 22.161741256713867, 22.029258728027344, 21.87680435180664, 21.87680435180664, 21.395864486694336, 21.3282470703125, 21.24720573425293, 21.24720573425293, 21.24720573425293, 21.24720573425293, 21.24720573425293, 21.24720573425293, 21.24720573425293, 21.24720573425293, 21.24720573425293, 21.24720573425293, 21.24720573425293, 21.24720573425293, 21.24720573425293, 21.24720573425293, 21.24720573425293, 21.24720573425293, 21.24720573425293, 21.24720573425293, 21.24720573425293, 21.030014038085938, 20.8792781829834, 20.818130493164062, 20.246784210205078, 19.857521057128906, 19.71550750732422, 19.62647247314453, 18.973541259765625, 18.973541259765625, 18.456512451171875, 18.12350082397461, 17.929176330566406, 17.507577896118164, 17.37041664123535, 17.36762809753418, 17.36762809753418, 17.36762809753418, 17.36762809753418 ], "content": [ "I have an endpoints-proto-datastore api on the Google appengine Python .", "The ID is by endpoints-proto-datastore .", "Python google-app-engine using endpoints-proto-datastore .. . 2 . iOS endpoints Obj-C client library generator .. . .. . Background .. . .. . I ve setup a test Google cloud endpoints api and had it running pretty quickly .", "The protorpc message is cast into a datastore model https : github.com GoogleCloudPlatform endpoints-proto-datastore blob 511c8ca87d7548b90e9966495e9ebffd5eecab6e endpoints-proto-datastore ndb model.py L1316 .. . .. . THIS is the step you really care about .", "I have an endpoints-proto-datastore model like this : .. . .. . And corresponding api code is like this : .. . .. . I want to be able to set datastore namespace based on a query parameter before listing as well as creating this model .", "For example the id property is defined with https : github.com GoogleCloudPlatform endpoints-proto-datastore blob 511c8ca87d7548b90e9966495e9ebffd5eecab6e endpoints-proto-datastore ndb model.py L764 : .. . .. . and the setter https : github.com GoogleCloudPlatform endpoints-proto-datastore blob 511c8ca87d7548b90e9966495e9ebffd5eecab6e endpoints-proto-datastore ndb model.py L745 performs operations beyond simply setting data : .. . .. . This particular method attempts to retrieve the entity stored in the datastore using the id and patch in any values from the datastore that were not included in the entity parsed from the request .", "A protorpc message class is defined from your fields .. . .. . This happens every time https : github.com GoogleCloudPlatform endpoints-proto-datastore blob 511c8ca87d7548b90e9966495e9ebffd5eecab6e endpoints-proto-datastore ndb model.py L1262 a request is handled by a method decorated with @MyModel.method .", "Have you tried the workarounds in the answer at stackoverflow.com questions 16661109 http : stackoverflow.com questions 16661109 google-endpoints-api-chrome-extension-returns-none-for-endpoints-get-current-u 16661765 16661765", "The keys with ancestors http : endpoints-proto-datastore.appspot.com examples keys with ancestors.html sample gives a great example of creating your own custom properties .", "You will still need to check on the server if the client with that id retrieved from cookies is authorized to make the request but this step you will have to do even if you go for google s users service as mentioned in cloud endpoints documentation - developers.google.com appengine docs python endpoints auth https : developers.google.com appengine docs python endpoints auth", "It appears that this is a known problem Issue 8848 : Google Cloud Enpoints get current user API doesn t fill user id 3 with no prospect of a fix soon .", "Using these first a simple entity is created https : github.com GoogleCloudPlatform endpoints-proto-datastore blob 511c8ca87d7548b90e9966495e9ebffd5eecab6e endpoints-proto-datastore ndb model.py L1162 .. . .. . and then each of the alias property values are set in order : .. . .. . .. . .. . The extended behavior happens in setattr entity name value .", "I thought that this could be done by setting up a new API key in the credentials section in the Google Cloud Console so I created a new server API key there .", "Also I wonder as endpoints-proto-datastore seems to be a very practical way of dealing with the endpoints facility why isn t there more traffic with this question", "This is problematic and you d be better off using a unique field like the key or ID used to store the entity in the datastore .", "My biggest issue is how I can use this with cloud endpoints without having to send the access or API token in each request either in the body or as a header manually and then have to manually resolve the user in the endpoint .", "My questions is using Endpoints Proto Datastore can I have user required True and call endpoints.get current user to get my user from an @Model.method if the user s auth provider is Facebook or any of the other supported OAuth2 providers", "I m not 100 sure if you can access the cookie header using Endpoints Proto Datastore although if you can that would make life much easier for me .", "You can find the key entity in the datastore viewer old version .", "This is my api method : .. . .. . this is my Category model : .. . .. . and this is my Store model :", "Would this token have to be included in the POST or GET body or can it be put in a header cookie I saw some questions elsewhere on SO regarding headers and cookies with Cloud Endpoints but it s been some time since then .", "The method in the Google Endpoints Auth docs 1 is to create an OAuth 2.0 client ID using the Google Developers Console 2 .", "We ended up changing the architectural concept for our product and this resulted in dropping the need for endpoints .", "When the request comes in to your protorpc.remote.Service it is decoded https : code.google.com p google-protorpc source browse python protorpc wsgi service.py r 60e8f9831a0cefb30ea2024f4ae96f71b1b606b4 147 : .. . .. . 5 .", "See Google OAuth2 doc 8 .", "Sort of ruined the flow of the question really . .. . .. . 1 . cloud.google.com appengine docs python endpoints auth .. . 2 . console.developers.google.com .. . 3 . code.google.com p googleappengine issues detail id 8848 .. . 4 . stackoverflow.com a 26133926 4102061 .. . 5 . cloud.google.com appengine docs python endpoints create api .. . 6 . stackoverflow.com a 16803274 4102061 .. . 7 . stackoverflow.com a 26133926 4102061 .. . 8 . developers.google.com accounts docs OAuth2", "i did some testing and i found this solution to have the method at club id members .. . .. . I created an resource container for the standard endpoints .", "Wait until google fix Issue 8848 .", "A request comes in your application and a message is created .. . .. . Using the protorpc message class a message instance is parsed from the JSON which gets passed along to your Endpoints SPI http : en.wikipedia.org wiki Service provider interface which is created by endpoints.api server .", "I have looked at almost all related questions on stackoverflow and also the proto datastore docs but couldnt find the solution .", "The essence of the problem is that functools.wraps being used by the endpoints code but not in a way that s in any way wrong or unusual expects the callable being wrapped to have a module attribute amongst other things .", "I d like to : setup an API-key or system-credential that can be used by the app to ensure it alone can access the api - with all others being refused .", "EDIT : 15 May 2015 - Google made Issue 8848 status WontFix .", "The distinction between the custom EndpointsAliasProperty s and one of the data properties you defined is how they are used .", "They are all used to create a protorpc message and that message is then converted into an EndpointsModel with your custom data in it .", "Also written to that table are the Google ID provided if being called through a web page email-address and iOS id when using the iOS app while not signed-in to a Google account .", "I m getting some weird errors from protorpc when I use endpoints .", "However Google appear to limit the number of apps that can be added this way to 15 or 20 .", "For now I will be supporting Google and Facebook .", "Google supports OpenId Connect protocol .", "Actually to save a Category the API require the Category name and the Store Key .", "How can I implement the intended structure", "Other than logging in and out using webapp2 the webapp will consist of Cloud Endpoint APIs .", "This is all assuming that non-Google auth won t work .", "I tried using : .. . .. . @endpoints.api name demogaeapi version v1 .. . auth level endpoints.AUTH LEVEL.REQUIRED .. . scopes endpoints.EMAIL SCOPE .. . description My Demo API .. . .. . .. . But was able to use the api from the client app without using credentials .", "This question completely follows on from a related question I had asked and was answered here : Error when trying to retrieve a single entity http : stackoverflow.com questions 16647111 error-when-trying-to-retrieve-a-single-entity .. . .. . As I understand to retrieve a single entity from the datastore using a property other than helper methods already provided e.g .", "If you REALLY insist on using my attr to retrieve an entity you could do so using a different property name since my attr is already used for the data property such as fromMyAttr : .. . .. . Here the MyAttrSet instance method would form the query : .. . .. . reject results that aren t unique for my attr : .. . .. . and copy over the values for the already stored entity if we do find a unique one :", "Since EndpointsAliasProperty is a subclass of property http : docs.python.org 2 library functions.html property it is a descriptor and it has a setter which can perform some custom behavior beyond simply setting a value .", "What I plan on doing is using a unique user id from the third party service eg the Facebook account s id or the Google account s id with a provider prefix eg google : 12345 and storing that in webapp2 s user model .", "Although I d be interested to hear from Google and appengine team as well on this issue .", "then i created a standard @endopint.method like this .. . .. . To note that i used User.ProtoCollection to get the collection serialized automatically and i faked the page number into ret.nextPageToken .", "But i dont want to save that value to datastore .", "The API is currently open to all with no authentication .", "I have looked into EndpointsAliasProperty and tried adding this to model : .. . .. . The issue is that when no ns value is passed while creating Users the default-value is not used to start ns set .", "I ve to model a Club which has members of type User .", "This may be a silly question or maybe its not possible to do what i am trying but since i am new to appengine and enpoints proto datastore it will be great if i can get this answer so that my progress gets unblocked .", "Then in my API decorator in the code I added that key in the allowed client ids argument .", "This is still an open issue for me our API needs to be secure .", "I would like to make some of the API methods accessible only by using an API key so that one doesn t need to authenticate but needs to include the API key in order to use the method for instance by appending key apikey to URL .", "You can use strings in the KeyProperty constructor to refer to kinds that don t have a model definition :", "Use third entity-model like this : .. . .. . and from class User remove creator from class Event remove", "You can create define a KeyProperty which refer to other classes which could create circular dependancy by specifying kind as a string .", "Use this account to gain access to the API without the need for user consent via UI .", "id requires turning a simple data property into an EndpointsAliasProperty", "If yes how would I go about doing that", "Or is it that we can only use id helper methods provided by EndpointsModel and we cannot use any of the properties that we define in this case title", "THIS is where the magic happens .", "Breaking it down into steps : .. . .. . 1 .", "You specify your data .. . .. . 2 .", "You pick your fields for your method .. . .. . 3 .", "4 .", "The FromMessage class-method also provided as part of EndpointsModel loops through all the fields .. . .. . and for each field with a value set turns the value into something to be added to the entity and separates based on whether the property is an EndpointsAliasProperty or not : .. . .. . After completing this loop we have an ordered list alias args of all key-value pairs and a dictionary entity kwargs of the data attributes parsed from the message .", ".. . .. . If you wanted to do this for a field like my attr you would need to construct a custom query which could retrieve the item with that unique my attr value or fail if not exactly one such entity exists .", "many thanks for the explanation and assistance", "Thanks", "I found this very helpful in getting a grip on what s happening with these properties .", "I m not sure where value property comes from in : if isinstance value property .. . .", "And why is in order emphasized", "I m trying to insert a Category object but I like to link a Category to a Store using the Store ID .", "How Can I do that", "Assuming that you already have a Store entity that you want to include in your Category entity be sure to use the Store key entity and not the id .", "If you add the entityKey default property like so you can get the key in queries of your entity .", "When I did this I could access the API through the URL https : appname .appspot.com ah api apiname apiversion methodname key apikey https : 5Bappname 5D.appspot.com ah api 5Bapiname 5D 5Bapiversion 5D 5Bmethodname 5D key 5Bapikey 5D .. . .. . The problem was that even if I removed the key bit I could still use the method normally therefore I set user required True .", "I ve implemented something similar recently and spent quite some time figuring out which is the best way to do authentication with Google AppEngine environment .", "I saw that it may be possible to use an API Key but while I have been able to create one - I have not found a way to enable it on the backend .", "At this point I am using a workaround whereby the client passes an API key a random string at the application level over HTTPS and the service checks it also at the application level .", "I m trying to create following self-referencing EndpointsModel the trick with fix up properties is taken from here : https : groups.google.com forum topic appengine-ndb-discuss 1FmgEVK7JNM : .. . .. . This works for datastore model but unfortunately the nested fields field won t be included into ProtoRPC message .", "Additionally it provides lru cache which is available only in python3 functools .", "Now when I try to access without providing the key I get : .. . .. . which I expected however even when I add the key in the key argument I get the following : .. . .. . How do I enable that API key for the project", "According to the python documentation this is a valid implementation of partial :", "I m sure python has a similar feature .", "Also that value does not have any relation to fields present on the model .", "EDIT : Instead of passing the auth token around would it make sense to have an authenticated user request an API token that they can pass to the API methods", "related articles : .. . .. . Class method differences in Python : bound unbound and static http : stackoverflow.com questions 114214 .. . Python - can I programmatically decorate class methods from a class instance", "Probably because thats not how it works and there is no property in model which i can return in def ns self .", "bugs.python.org issue3445 http : bugs.python.org issue3445 suggests this was deemed fix-worthy for python-3.3 but not for 2.7 .", "I have two entities events and users .", "Each user has several events but I don t want them to be stored within a StructuredProperty because in future it should be possible to have multiple creators admins .", "Now I have the problem that User needs the Event Class for definition and vice versa .", "Two models with mutual relations ." ] }
{ "confidence": [ 72.0987777709961, 69.5718994140625, 63.401451110839844, 61.708072662353516, 60.23749923706055, 56.51633071899414, 36.83591079711914, 36.78969955444336, 36.52656173706055, 36.4277229309082, 31.83633041381836, 28.46060562133789, 25.581432342529297, 24.670330047607422, 23.93246841430664, 22.646711349487305, 20.780689239501953 ], "content": [ "Question : This question completely follows on from a related question I had asked and was answered here : Error when trying to retrieve a single entity http : stackoverflow.com questions 16647111 error-when-trying-to-retrieve-a-single-entity .. . .. . As I understand to retrieve a single entity from the datastore using a property other than helper methods already provided e.g . id requires turning a simple data property into an EndpointsAliasProperty If yes how would I go about doing that Or is it that we can only use id helper methods provided by EndpointsModel and we cannot use any of the properties that we define in this case title .. . Answer : The distinction between the custom EndpointsAliasProperty s and one of the data properties you defined is how they are used . They are all used to create a protorpc message and that message is then converted into an EndpointsModel with your custom data in it . THIS is where the magic happens . Breaking it down into steps : .. . .. . 1 . You specify your data .. . .. . 2 . You pick your fields for your method .. . .. . 3 . A protorpc message class is defined from your fields .. . .. . This happens every time https : github.com GoogleCloudPlatform endpoints-proto-datastore blob 511c8ca87d7548b90e9966495e9ebffd5eecab6e endpoints-proto-datastore ndb model.py L1262 a request is handled by a method decorated with @MyModel.method . 4 . A request comes in your application and a message is created .. . .. . Using the protorpc message class a message instance is parsed from the JSON which gets passed along to your Endpoints SPI http : en.wikipedia.org wiki Service provider interface which is created by endpoints.api server . When the request comes in to your protorpc.remote.Service it is decoded https : code.google.com p google-protorpc source browse python protorpc wsgi service.py r 60e8f9831a0cefb30ea2024f4ae96f71b1b606b4 147 : .. . .. . 5 . The protorpc message is cast into a datastore model https : github.com GoogleCloudPlatform endpoints-proto-datastore blob 511c8ca87d7548b90e9966495e9ebffd5eecab6e endpoints-proto-datastore ndb model.py L1316 .. . .. . THIS is the step you really care about . The FromMessage class-method also provided as part of EndpointsModel loops through all the fields .. . .. . and for each field with a value set turns the value into something to be added to the entity and separates based on whether the property is an EndpointsAliasProperty or not : .. . .. . After completing this loop we have an ordered list alias args of all key-value pairs and a dictionary entity kwargs of the data attributes parsed from the message . Using these first a simple entity is created https : github.com GoogleCloudPlatform endpoints-proto-datastore blob 511c8ca87d7548b90e9966495e9ebffd5eecab6e endpoints-proto-datastore ndb model.py L1162 .. . .. . and then each of the alias property values are set in order : .. . .. . .. . .. . The extended behavior happens in setattr entity name value . Since EndpointsAliasProperty is a subclass of property http : docs.python.org 2 library functions.html property it is a descriptor and it has a setter which can perform some custom behavior beyond simply setting a value . For example the id property is defined with https : github.com GoogleCloudPlatform endpoints-proto-datastore blob 511c8ca87d7548b90e9966495e9ebffd5eecab6e endpoints-proto-datastore ndb model.py L764 : .. . .. . and the setter https : github.com GoogleCloudPlatform endpoints-proto-datastore blob 511c8ca87d7548b90e9966495e9ebffd5eecab6e endpoints-proto-datastore ndb model.py L745 performs operations beyond simply setting data : .. . .. . This particular method attempts to retrieve the entity stored in the datastore using the id and patch in any values from the datastore that were not included in the entity parsed from the request . .. . .. . If you wanted to do this for a field like my attr you would need to construct a custom query which could retrieve the item with that unique my attr value or fail if not exactly one such entity exists . This is problematic and you d be better off using a unique field like the key or ID used to store the entity in the datastore . The keys with ancestors http : endpoints-proto-datastore.appspot.com examples keys with ancestors.html sample gives a great example of creating your own custom properties . If you REALLY insist on using my attr to retrieve an entity you could do so using a different property name since my attr is already used for the data property such as fromMyAttr : .. . .. . Here the MyAttrSet instance method would form the query : .. . .. . reject results that aren t unique for my attr : .. . .. . and copy over the values for the already stored entity if we do find a unique one : Comment : many thanks for the explanation and assistance Comment : Thanks I found this very helpful in getting a grip on what s happening with these properties . I m not sure where value property comes from in : if isinstance value property .. . . And why is in order emphasized Comment : Also I wonder as endpoints-proto-datastore seems to be a very practical way of dealing with the endpoints facility why isn t there more traffic with this question", "Question : I m trying to insert a Category object but I like to link a Category to a Store using the Store ID . The ID is by endpoints-proto-datastore . How Can I do that Actually to save a Category the API require the Category name and the Store Key . This is my api method : .. . .. . this is my Category model : .. . .. . and this is my Store model : .. . Answer : Assuming that you already have a Store entity that you want to include in your Category entity be sure to use the Store key entity and not the id . You can find the key entity in the datastore viewer old version . If you add the entityKey default property like so you can get the key in queries of your entity .", "Question : null .. . Answer : I have an endpoints-proto-datastore api on the Google appengine Python . I would like to make some of the API methods accessible only by using an API key so that one doesn t need to authenticate but needs to include the API key in order to use the method for instance by appending key apikey to URL . I thought that this could be done by setting up a new API key in the credentials section in the Google Cloud Console so I created a new server API key there . Then in my API decorator in the code I added that key in the allowed client ids argument . In the decorator of the method I want to access with the key . I initially set the argument user required False since I didn t want to require the user being actually signed in . When I did this I could access the API through the URL https : appname .appspot.com ah api apiname apiversion methodname key apikey https : 5Bappname 5D.appspot.com ah api 5Bapiname 5D 5Bapiversion 5D 5Bmethodname 5D key 5Bapikey 5D .. . .. . The problem was that even if I removed the key bit I could still use the method normally therefore I set user required True . Now when I try to access without providing the key I get : .. . .. . which I expected however even when I add the key in the key argument I get the following : .. . .. . How do I enable that API key for the project I thought that just by creating it in the console of the project it would be enabled . Many thanks .", "Question : null .. . Answer : I have an endpoints-proto-datastore model like this : .. . .. . And corresponding api code is like this : .. . .. . I want to be able to set datastore namespace based on a query parameter before listing as well as creating this model . But i dont want to save that value to datastore . Also that value does not have any relation to fields present on the model . I have looked into EndpointsAliasProperty and tried adding this to model : .. . .. . The issue is that when no ns value is passed while creating Users the default-value is not used to start ns set . Probably because thats not how it works and there is no property in model which i can return in def ns self . But if i remove the default-value then validation fails saying that ns is required even when its value is included . How can I create a method which will always set namespace default in case no ns value is specified I have looked at almost all related questions on stackoverflow and also the proto datastore docs but couldnt find the solution . This may be a silly question or maybe its not possible to do what i am trying but since i am new to appengine and enpoints proto datastore it will be great if i can get this answer so that my progress gets unblocked . Thanks", "Question : I m working on a webapp that will allow users to authenticate using simpleauth https : code.google.com p gae-simpleauth . For now I will be supporting Google and Facebook . Other than logging in and out using webapp2 the webapp will consist of Cloud Endpoint APIs . The clients will be web Android and iOS . My questions is using Endpoints Proto Datastore can I have user required True and call endpoints.get current user to get my user from an @Model.method if the user s auth provider is Facebook or any of the other supported OAuth2 providers If it is not possible does that mean I should not have user required True and should instead get a permanent user id from the provider given the OAuth2 token and keep it in the datastore generate my own auth token for that user and then pass that token to each request EDIT : Instead of passing the auth token around would it make sense to have an authenticated user request an API token that they can pass to the API methods Would this token have to be included in the POST or GET body or can it be put in a header cookie I saw some questions elsewhere on SO regarding headers and cookies with Cloud Endpoints but it s been some time since then . This is all assuming that non-Google auth won t work . .. . Answer : This answer is not going to directly answer your question but should give you a good idea how you can implement authentication in a safe way . I ve implemented something similar recently and spent quite some time figuring out which is the best way to do authentication with Google AppEngine environment . Google supports OpenId Connect protocol . Facebook s implementation should be very similar according to Getting Started with OAuth 2.0 http : my.safaribooksonline.com book - 9781449317843 practical-openid-connect id2965494 book . I will focus more on Google s implementation as I am more familiar with it but the concepts should be very similar when using other OAuth providers . OpenId Connect will give you an id token after successfully authenticating the user . It will also give you an access token . Access token is something that should be kept a secret . Never send it over the wire . Id token on the other hand is very handy . It contains some information about your user and it s encrypted so it doesn t expose any information about the user just like that . You d have to crack the id token to find out anything about user . In the unlikely event that it gets cracked it doesn t expose anything critical about the user . What you can do you can store it as a cookie and then use it in all subsequent requests to verify it the user by checking if there s an access token that matches the id token . The only drawback is that id token is quite long - it takes around 650bytes . That would mean that every http-request carries that payload . If sending that much information is too much for your use-case you can send only first few characters maybe 12 or so and then match just the first part . The id token has can also be useful when analysing your data . It will show up when analysing http requests but will not reveal any information about the user and you can still differentiate requests that came from different users . Also on a side note don t try using AppEngine s users service as it doesn t work very well with any kind of custom authentication . Hope this gives you an idea and puts you on the right track . Comment : Thanks What I plan on doing is using a unique user id from the third party service eg the Facebook account s id or the Google account s id with a provider prefix eg google : 12345 and storing that in webapp2 s user model . I will then generate my own access tokens and only go back to the third party service when I need to re-authenticate . My biggest issue is how I can use this with cloud endpoints without having to send the access or API token in each request either in the body or as a header manually and then have to manually resolve the user in the endpoint . Comment : @Eliezer if you store it as a cookie it will be sent automatically with every http-request . You will still need to check on the server if the client with that id retrieved from cookies is authorized to make the request but this step you will have to do even if you go for google s users service as mentioned in cloud endpoints documentation - developers.google.com appengine docs python endpoints auth https : developers.google.com appengine docs python endpoints auth Comment : In java you can set up servlet-filters and do the authorization check in there . I m sure python has a similar feature . Comment : I m not 100 sure if you can access the cookie header using Endpoints Proto Datastore although if you can that would make life much easier for me . I d much rather call endpoints.get current user then have to write the code to manually check if token is valid for this user . My fallback is to use annotations to handle the auth check server-side but I d love to hear from the appengine team or someone who knows for sure if a more elegant solution exists . Comment : @eliezer The cookie is sent with every http-request . I m sure there is a way to access it . The get current user will return User object which plays very well as long as you stay in AppEngine playground you use AppEngines s authentication services . As soon as you try to do more fancy stuff i.e . integrate facebook AppEngine s users service stops being very useful . You will also have a lot more problems then benefits . Although I d be interested to hear from Google and appengine team as well on this issue .", "Question : ok so this is my first post so be gentle if I don t understand the etiquette here . my setup : .. . .. . 1 . Python google-app-engine using endpoints-proto-datastore .. . 2 . iOS endpoints Obj-C client library generator .. . .. . Background .. . .. . I ve setup a test Google cloud endpoints api and had it running pretty quickly . It works great using the test app in the iOS simulator and using Google s APIs Explorer . The API is currently open to all with no authentication . I d like to : setup an API-key or system-credential that can be used by the app to ensure it alone can access the api - with all others being refused . The method in the Google Endpoints Auth docs 1 is to create an OAuth 2.0 client ID using the Google Developers Console 2 . So I have created an ID for an Installed Application of type : iOS . So far so good . In the app the GTLService Object looks like this.. . .. . .. . On GAE I ve specified the allowed client ids and added a user check to the methods.. . .. . .. . The issue .. . .. . current user is always None so the method will always raise an exception . It appears that this is a known problem Issue 8848 : Google Cloud Enpoints get current user API doesn t fill user id 3 with no prospect of a fix soon . Options 1 . Wait until google fix Issue 8848 . Can t really we have a product to release EDIT : 15 May 2015 - Google made Issue 8848 status WontFix . 2 . I saw that it may be possible to use an API Key but while I have been able to create one - I have not found a way to enable it on the backend . I also note this method has a big hole where Google s APIs Explorer can defeat it see SO question 4 . 3 . Does the @endpoints.api Argument : auth level described here 5 provide an answer I tried using : .. . .. . @endpoints.api name demogaeapi version v1 .. . auth level endpoints.AUTH LEVEL.REQUIRED .. . scopes endpoints.EMAIL SCOPE .. . description My Demo API .. . .. . .. . But was able to use the api from the client app without using credentials . So it clearly did not add any authentication . 4 . Add a hiddenProperty to the client query holding a shared-secret key . As described by bossylobster here 6 and Carlos here 7 . I tried this but cannot see how to get at the raw request object subject of another question How to get at the request object when using endpoints proto datastore.ndb http : stackoverflow.com q 27229565 4102061 . @TestModel.method path testmodel id name testmodel.insert http method POST .. . def testModelInsert self test model : .. . .. . mykey keytype request.get unrecognized field info hiddenProperty .. . if mykey my supersecret key : .. . raise endpoints.UnauthorizedException No you dont EDIT : Another option has surfaced : .. . .. . 5 . Create a Service Account using the Google Developers Console 2 . Use this account to gain access to the API without the need for user consent via UI . However Google appear to limit the number of apps that can be added this way to 15 or 20 . See Google OAuth2 doc 8 . We will likely exceed the limit . The Question .. . .. . Does anyone know how I can get any of these options working Or should I be approaching this in a different way As you can see I m in need of guidance help ideas.. . .. . .. . .. . .. . As I need 10 reputation to post more than 2 links : here are the links I had to extract and add as references . Sort of ruined the flow of the question really . .. . .. . 1 . cloud.google.com appengine docs python endpoints auth .. . 2 . console.developers.google.com .. . 3 . code.google.com p googleappengine issues detail id 8848 .. . 4 . stackoverflow.com a 26133926 4102061 .. . 5 . cloud.google.com appengine docs python endpoints create api .. . 6 . stackoverflow.com a 16803274 4102061 .. . 7 . stackoverflow.com a 26133926 4102061 .. . 8 . developers.google.com accounts docs OAuth2 Comment : This is a well-researched question . Thanks . I m currently reading it over carefully and doing some research but just saying thanks for the effort of laying out your problem clearly with tons of relevant info . I feel if we can work together to get an answer to this it might be a great question for future users to refer to which is what SO is supposed to be for . Comment : This is still an open issue for me our API needs to be secure . I ve been busy on a different module and it is time to get back to this . So my current thinking is that option 4 bossy lobster s suggested hiddenProperty holds the most promise . What are your thoughts Comment : I also ran into this problem and would be much interested in an answer . At this point I am using a workaround whereby the client passes an API key a random string at the application level over HTTPS and the service checks it also at the application level . Comment : Have you tried the workarounds in the answer at stackoverflow.com questions 16661109 http : stackoverflow.com questions 16661109 google-endpoints-api-chrome-extension-returns-none-for-endpoints-get-current-u 16661765 16661765 Comment : Alex - now that looks interesting I ll have to read through it a few times to get to grips with the options . We ended up changing the architectural concept for our product and this resulted in dropping the need for endpoints . .. . Answer : An excellent question and a real problem . I solved it by having my own user database-table . The Long key I use Java is auto-generated on write and that is the value I use to uniquely identify the user from then on . Also written to that table are the Google ID provided if being called through a web page email-address and iOS id when using the iOS app while not signed-in to a Google account . When my AppEngine endpoint gets called I use information that is present in the User parameter just the authenticated email-address for signed-in clients or a separate optional iosid parameter in order to fetch my internal userid number from said table and use that from then on to uniquely identify my user . I use the same table to store other user-specific information too so it really isn t any different than trying to use current user as a primary-key other than I had to make three fields googleid email iosid indexed for lookup .", "Question : I am currently using EndpointsModel to create a RESTful API for all my models on AppEngine . Since it is RESTful these api have a lot of repeat code which I want to avoid .. . .. . For Example : .. . .. . I want to make them become generic . So I try to dynamic add method to the class . What I have tried so far : .. . .. . But I got functools.partial object has no attribute module exception . I think it is because there are some conflicts between endpoints.method s decorator and partial . But no idea how to avoid it . related articles : .. . .. . Class method differences in Python : bound unbound and static http : stackoverflow.com questions 114214 .. . Python - can I programmatically decorate class methods from a class instance http : stackoverflow.com questions 14095616 .. . Programmatically generate methods for a class http : stackoverflow.com questions 8307602 .. . Adding a Method to an Existing Object http : stackoverflow.com questions 972 .. . .. . Update .. . .. . 1 . complete the call stack .. . 2 . Make question shorter Comment : Please provide complet call stack for the error . Comment : This question could be much shorter by explaining the issue for just GenericInsert for example . Comment : Without looking too closely it seems that if you are having naming conflicts then from functools import partial - import functools or even from functools import partial as part or something might work . Comment : The essence of the problem is that functools.wraps being used by the endpoints code but not in a way that s in any way wrong or unusual expects the callable being wrapped to have a module attribute amongst other things . The method you re passing it doesn t have one . bugs.python.org issue3445 http : bugs.python.org issue3445 suggests this was deemed fix-worthy for python-3.3 but not for 2.7 . So you probably just need to do things differently.. . not much of an answer sorry . Comment : @Greg Thanks the link is very useful to explain the issues .. . Answer : If it is the case that it is caused by an issue with wraps in functools there is nothing stopping you from writing your own partial that does not call wraps . According to the python documentation this is a valid implementation of partial :", "Question : I ve to model a Club which has members of type User . Obviously there can be a huge number of members for a club . i ve done this .. . .. . Done like this in the response i get the entire list of users which in the case i ve 5000 members can take a while . Is there a possiblity to have this list paginated maybe using ProtoCollection instead of ProtoModel i tried without success . Or how can i create an endpoint of the type club id members that gives me back the list paginated of members .. . Answer : Here i m . i did some testing and i found this solution to have the method at club id members .. . .. . I created an resource container for the standard endpoints . The messages copies what the query method has as input . then i created a standard @endopint.method like this .. . .. . To note that i used User.ProtoCollection to get the collection serialized automatically and i faked the page number into ret.nextPageToken . This last edit does not look too clean and indeed it s not but query works . Still i m not really happy of this solution .", "Question : I am currently using EndpointsModel to create a RESTful API for all my models on AppEngine . Since it is RESTful these api have a lot of repeat code which I want to avoid .. . .. . For Example : .. . .. . I want to make them become generic . So I try to dynamic add method to the class . What I have tried so far : .. . .. . But I got functools.partial object has no attribute module exception . I think it is because there are some conflicts between endpoints.method s decorator and partial . But no idea how to avoid it . related articles : .. . .. . Class method differences in Python : bound unbound and static http : stackoverflow.com questions 114214 .. . Python - can I programmatically decorate class methods from a class instance http : stackoverflow.com questions 14095616 .. . Programmatically generate methods for a class http : stackoverflow.com questions 8307602 .. . Adding a Method to an Existing Object http : stackoverflow.com questions 972 .. . .. . Update .. . .. . 1 . complete the call stack .. . 2 . Make question shorter Comment : Please provide complet call stack for the error . Comment : This question could be much shorter by explaining the issue for just GenericInsert for example . Comment : Without looking too closely it seems that if you are having naming conflicts then from functools import partial - import functools or even from functools import partial as part or something might work . Comment : The essence of the problem is that functools.wraps being used by the endpoints code but not in a way that s in any way wrong or unusual expects the callable being wrapped to have a module attribute amongst other things . The method you re passing it doesn t have one . bugs.python.org issue3445 http : bugs.python.org issue3445 suggests this was deemed fix-worthy for python-3.3 but not for 2.7 . So you probably just need to do things differently.. . not much of an answer sorry . Comment : @Greg Thanks the link is very useful to explain the issues .. . Answer : I stumbled upon this and thought would mention my workaround for this . As rightly mentioned by @samy-vilar python3 doesn t have this issue . I have some code that uses functools.wrap and needs to run on python2 as well as python3 . For python2 we use functools32 https : pypi.python.org pypi functools32 which is backport of python3 s functools for python2 . wraps implementation of this package works perfect . Additionally it provides lru cache which is available only in python3 functools .", "Question : I am currently using EndpointsModel to create a RESTful API for all my models on AppEngine . Since it is RESTful these api have a lot of repeat code which I want to avoid .. . .. . For Example : .. . .. . I want to make them become generic . So I try to dynamic add method to the class . What I have tried so far : .. . .. . But I got functools.partial object has no attribute module exception . I think it is because there are some conflicts between endpoints.method s decorator and partial . But no idea how to avoid it . related articles : .. . .. . Class method differences in Python : bound unbound and static http : stackoverflow.com questions 114214 .. . Python - can I programmatically decorate class methods from a class instance http : stackoverflow.com questions 14095616 .. . Programmatically generate methods for a class http : stackoverflow.com questions 8307602 .. . Adding a Method to an Existing Object http : stackoverflow.com questions 972 .. . .. . Update .. . .. . 1 . complete the call stack .. . 2 . Make question shorter Comment : Please provide complet call stack for the error . Comment : This question could be much shorter by explaining the issue for just GenericInsert for example . Comment : Without looking too closely it seems that if you are having naming conflicts then from functools import partial - import functools or even from functools import partial as part or something might work . Comment : The essence of the problem is that functools.wraps being used by the endpoints code but not in a way that s in any way wrong or unusual expects the callable being wrapped to have a module attribute amongst other things . The method you re passing it doesn t have one . bugs.python.org issue3445 http : bugs.python.org issue3445 suggests this was deemed fix-worthy for python-3.3 but not for 2.7 . So you probably just need to do things differently.. . not much of an answer sorry . Comment : @Greg Thanks the link is very useful to explain the issues .. . Answer : In our case I solved this by subclassing functools.partial : .. . .. . NB you could also make use of getattr to redirect queries but I figured that was actually less readable and makes it more difficult to insert any useful meta-data as with name", "Question : I am currently using EndpointsModel to create a RESTful API for all my models on AppEngine . Since it is RESTful these api have a lot of repeat code which I want to avoid .. . .. . For Example : .. . .. . I want to make them become generic . So I try to dynamic add method to the class . What I have tried so far : .. . .. . But I got functools.partial object has no attribute module exception . I think it is because there are some conflicts between endpoints.method s decorator and partial . But no idea how to avoid it . related articles : .. . .. . Class method differences in Python : bound unbound and static http : stackoverflow.com questions 114214 .. . Python - can I programmatically decorate class methods from a class instance http : stackoverflow.com questions 14095616 .. . Programmatically generate methods for a class http : stackoverflow.com questions 8307602 .. . Adding a Method to an Existing Object http : stackoverflow.com questions 972 .. . .. . Update .. . .. . 1 . complete the call stack .. . 2 . Make question shorter Comment : Please provide complet call stack for the error . Comment : This question could be much shorter by explaining the issue for just GenericInsert for example . Comment : Without looking too closely it seems that if you are having naming conflicts then from functools import partial - import functools or even from functools import partial as part or something might work . Comment : The essence of the problem is that functools.wraps being used by the endpoints code but not in a way that s in any way wrong or unusual expects the callable being wrapped to have a module attribute amongst other things . The method you re passing it doesn t have one . bugs.python.org issue3445 http : bugs.python.org issue3445 suggests this was deemed fix-worthy for python-3.3 but not for 2.7 . So you probably just need to do things differently.. . not much of an answer sorry . Comment : @Greg Thanks the link is very useful to explain the issues .. . Answer : I also stumbled upon this I was really surprised for me the issue was that partial objects are missing certain attributes specifically module and name .. . .. . Being that wraps by default uses functools.WRAPPER ASSIGNMENTS to update attributes which defaults to module name doc in python 2.7.6 anyway there are a couple ways of dealing with this .. . .. . .. . Update only present attributes .. . Here we simply filter out all those attribute which aren t present . Another approach would be to strictly deal with partial objects only you could fold wraps with singledispatch and create wrapped partial objects whose attributes would be taken from the deepest func attribute . Something along the lines : .. . .. . This is slightly better since now we can get the original functions docs which before defaulted to using the partial objects doc string . This can be modified to only search if the current partial object doesn t already have the set attribute which should be slightly faster when nesting many partial objects .. . .. . .. . UPDATE .. . .. . It seems that python CPython 3 at least 3.4.3 doesn t have this issue since I don t know nor should I assume all versions of python 3 or other implementations such as Jython also share this issue here is another future ready approach .. . .. . a couple things to note : .. . .. . we define a new wraps function only if we fail to wrap a partial in case future versions of python2 or other versions fix this issue . we use the original wraps to copy the docs and other info .. . we don t use ifilter since it was removed in python3 I ve timeit with and without ifilter but the results where inconclusive at least in python CPython 2.7.6 the difference was marginal at best either way.. .", "Question : I have two entities events and users . Each user has several events but I don t want them to be stored within a StructuredProperty because in future it should be possible to have multiple creators admins . Now I have the problem that User needs the Event Class for definition and vice versa . How can I implement the intended structure Two models with mutual relations . Error Message : .. . .. . NameError : name User is not defined .. . .. . EDIT 1 : I changed the kind to a string containing the class name like Greg suggested it . But it does not work too . Now I receive the following stack-trace : .. . Answer : You can not create such references to the entities . Here is somo solutions : 1 . You must use normal StringProperty for Event.creator or other id for User instance 2 . Remove evens from class User - you can reach to evens by index on class Events 3 . Use third entity-model like this : .. . .. . and from class User remove creator from class Event remove Comment : You can create define a KeyProperty which refer to other classes which could create circular dependancy by specifying kind as a string . see the other answer . Comment : Nice I don t know this feature . Thanx Tim . I thing this is the best option .", "Question : null .. . Answer : I m getting some weird errors from protorpc when I use endpoints . In this code : .. . .. . when I call application.get error is full trace here http : pastebin.com raw c8Aj0Sj6 : .. . .. . TypeError : Can only copy from entities of the exact type Application . Received an instance of Application . and for calling application.list error is full trace here http : pastebin.com raw z6E3EF55 : .. . .. . ValidationError : Expected type class .Application for field items found Application name : u test type class .Application .. . .. . What could be causing this My other models with pretty much the same code just different properties work fine . Comment : Those traces look like you are using an instance of Application instead of the class type object Application . Are you sure you aren t using Application somewhere in your code Comment : Just double-checked I m not using it anywhere - all relevant code is in the question . I am extending a class ApplicationApi BaseRemoteService but no mention of Application there and there s a POST api method which works.. . but even if I remove all that I m still getting the same errors with just the code from OP . Comment : It s a shot in the dark but prior to subclassing EndpointsModel did Application subclass ndb.Model Try looping through all Application entities and doing a put again on them . I m thinking that the key you pass in fetches the entity but something about the inheritance chain is making the class fields not match . Comment : You might be right . The weird thing is Application class didn t subclass anything other then EndpointsModel but when I subclassed class JsonModel EndpointsModel also did some other things in code so can t be sure what exactly is happening it started working . I reverted back to EndpointsModel and it s still workig Guess the only way to deal with thiss kind of issues is to turn everything else off and isolate modules with problems.. . Comment : @JoshJ If you post an answer with some suggestions from your comments I ll accept and award bounty.. .", "Question : I m trying to create following self-referencing EndpointsModel the trick with fix up properties is taken from here : https : groups.google.com forum topic appengine-ndb-discuss 1FmgEVK7JNM : .. . .. . This works for datastore model but unfortunately the nested fields field won t be included into ProtoRPC message . I ve tried to manually specify message fields schema by adding at the end following line : .. . .. . but then app-engine fails going into a loop trying turn EventFieldSchema into ProtoRPC field : .. . .. . Is this a bug in EndpointsModel What is the proper way of defining self-referencing EndpointsModels .. . Answer : Having the same issue with self-referencing an EndpointsModel : .. . .. . Error msg : File Applications GoogleAppEngineLauncher.app Contents Resources GoogleAppEngine- default.bundle Contents Resources google appengine lib protorpc-1.0 protorpc util.py line 170 in positional wrapper .. . .. . File Applications GoogleAppEngineLauncher.app Contents Resources GoogleAppEngine-default.bundle Contents Resources google appengine lib protorpc-1.0 protorpc messages.py line 1531 in init .. . .. . FieldDefinitionError : Invalid message class :", "Question : I have two entities events and users . Each user has several events but I don t want them to be stored within a StructuredProperty because in future it should be possible to have multiple creators admins . Now I have the problem that User needs the Event Class for definition and vice versa . How can I implement the intended structure Two models with mutual relations . Error Message : .. . .. . NameError : name User is not defined .. . .. . EDIT 1 : I changed the kind to a string containing the class name like Greg suggested it . But it does not work too . Now I receive the following stack-trace : .. . Answer : You can use strings in the KeyProperty constructor to refer to kinds that don t have a model definition : Comment : Ok this sounds great but doesn t seem to work . I receive following exception : raise datastore errors.BadValueError Expected Key got r value BadValueError : Expected Key got Comment : Firstly an instance of user needs to be saved put and you will be assigning the key not an object . ie event.participants some user.key then it works fine - Comment : So in you code above in create event you need to do self.events.append event.key Comment : db.ReferenceProperty supported object assignment but ndb.KeyProperty will only accept a key . Comment : I added your changes and the files looks like this gist.github.com inkrement 8538735 https : gist.github.com inkrement 8538735 now but the error remains . get insert and delete works fine but I am not able to receive all users without exception .", "Question : I have two entities events and users . Each user has several events but I don t want them to be stored within a StructuredProperty because in future it should be possible to have multiple creators admins . Now I have the problem that User needs the Event Class for definition and vice versa . How can I implement the intended structure Two models with mutual relations . Error Message : .. . .. . NameError : name User is not defined .. . .. . EDIT 1 : I changed the kind to a string containing the class name like Greg suggested it . But it does not work too . Now I receive the following stack-trace : .. . Answer : You could specify the key properties without the kind parameter it is optional and then do a manual check in your constructor or a pre-put hook or something like that -- or maybe not even worry about the kind : .. . .. . The actual syntax will probably be slightly different . Feel free to edit .", "Question : I ve to model a Club which has members of type User . Obviously there can be a huge number of members for a club . i ve done this .. . .. . Done like this in the response i get the entire list of users which in the case i ve 5000 members can take a while . Is there a possiblity to have this list paginated maybe using ProtoCollection instead of ProtoModel i tried without success . Or how can i create an endpoint of the type club id members that gives me back the list paginated of members .. . Answer : There are numerous other ways you might implement the many-users-to-one-club relationship - I thought of storing a clubs repeated property in the User that references the clubs they are members of stores the key of the Club . You query on Users that satisfy the clubs property and limit the results to the page-size . Use a pattern like .. . .. . next page results User.all .filter club club key .filter key last seen key .order key .run limit page-size .. . .. . to ensure that the pages are retrieved right starting and stopping at the right place .. . .. . where last seen key next page results -1 for the next call .. . .. . The way you re doing it you fetch all results every time and filter in memory . This is bad and will cost you money ." ] }
[ "yes-answer-long", "yes-answer-short" ]
endpoints-proto-datastore
UNK_RELATION
bazaar@dvcs@63
bazaar -- bazaar is a free distributed version-control system @placeholder .
{ "confidence": [ 47.85080337524414, 45.28303909301758, 44.746856689453125, 43.51728439331055, 43.31599807739258, 42.6544075012207, 41.14845657348633, 41.04507827758789, 40.84756851196289, 40.72541427612305, 40.19981002807617, 40.19746398925781, 39.75203323364258, 39.75203323364258, 39.2693977355957, 39.2693977355957, 39.012001037597656, 39.012001037597656, 38.99978256225586, 38.45441436767578, 38.23613357543945, 38.02801513671875, 38.02801513671875, 37.77863693237305, 37.6676025390625, 37.39045333862305, 37.39045333862305, 37.39045333862305, 36.83945846557617, 36.69392776489258, 36.432212829589844, 36.432212829589844, 36.432212829589844, 36.41868591308594, 35.956077575683594, 35.956077575683594, 35.67633056640625, 35.621273040771484, 35.621273040771484, 35.46044921875, 35.46044921875, 35.4429817199707, 35.332271575927734, 35.253997802734375, 35.253997802734375, 35.253997802734375, 35.2291145324707, 35.2291145324707, 35.2291145324707, 35.2291145324707, 35.2291145324707, 35.2291145324707, 35.2291145324707, 35.02581787109375, 34.51163864135742, 34.29575729370117, 34.29575729370117, 34.29575729370117, 34.257347106933594, 34.257347106933594, 34.257347106933594, 34.257347106933594, 34.06891632080078, 33.86745834350586, 33.86745834350586, 33.86745834350586, 33.76626968383789, 33.76626968383789, 33.76626968383789, 33.76626968383789, 33.58797836303711, 33.536842346191406, 33.375816345214844, 33.35639190673828, 33.163421630859375, 33.143089294433594, 33.09265899658203, 33.09265899658203, 33.09265899658203, 33.09265899658203, 33.09265899658203, 33.09265899658203, 33.09265899658203, 33.09265899658203, 33.09265899658203, 33.09265899658203, 33.09265899658203, 33.09265899658203, 33.09265899658203, 32.89569091796875, 32.89569091796875, 32.50867462158203, 32.30145263671875, 32.30145263671875, 32.30145263671875, 32.30145263671875, 32.30145263671875, 32.30145263671875, 32.30145263671875, 32.30145263671875 ], "content": [ "I haven t used too much distributed version-control yet but in Bazaar vs . Git http : bazaar-vcs.org BzrVsGit on the bazaar site they say that most complaints about performance aren t true anymore .", "I ve been working on a project using Bazaar as a version-control system .", "Is there a bitbucket or github alike hosting service for Bazaar version-control", "I m trying to use the keywords plugin in bazaar 2.7 .. . .. . to archive this : Is it possible to automatically insert version number in code using bazaar", "The Big Three of distributed version-control Git Bazaar and Mercurial each treat branching fairly differently .", "I m new to Bazaar .", "Is this possible with Bazaar", "Bazaar nested tree support is unfinished .", "Unfortunately this information is not something that Bazaar or any other version-control system I can think of tracks .", "and I d like to keep these files in some control system perhaps Bazaar .", "We wish to collaborate through Dropbox and version-control our file with Bazaar .", "For global usage you can set pattern in : .bazaar ignore .. . .. . I have version Bazaar 2.5.1 and it works .", "stackoverflow.com questions 343721 bazaar-and-id http : stackoverflow.com questions 343721 bazaar-and-id", "According to this http : ifdeflinux.blogspot.com 2012 07 a-bazaar-pre-commit-hook-to-look-for.html the plugins should be placed in .bazaar plugins .", "Bazaar VCS http : bazaar-vcs.org works with unicode filenames internally .", "@Alex regarding other CI support for Bazaar : Hudson claims to support Bazaar .", "Bazaar is NOT intuitive", "Or Bazaar maybe .", "Bazaar branches can be standalone .", "I want bazaar to write the actual version to the version file automatically on commit .", "Mercurial or bazaar are FILE VCS they store versions of files and distributed .", "Bazaar show me this screen .", "Use Bazaar to do it .", "The project I m working with at the moment is hosted in Bazaar bzr source control .", "I was thinking about using Bazaar in combination with Bazaar Upload http : wiki.bazaar.canonical.com BazaarUploadForWebDev .", "Bazaar does not have a subrepository feature .", "Bazaar does not have sub-projects .", "Is there any equivalent of svn Id in bazaar", "Git Mercurial and Bazaar are distributed control systems that operate of the idea that you aren t always connected to the Net and that there need not be one central version of the repository .", "Does someone know if there is an equivalent command in bazaar", "After that you can fetch the Bazaar repo make some changes and push it back into Bazaar .", "I m currently attempting to use Bazaar via Bazaar Explorer for Windows to manage some WordPress sites .", "The Bazaar plugin Bazaar Copyright Updater https : launchpad.net bzr-text-checker demonstrates a good example of using the start commit hook .", "I haven t tried Bazaar though .", "Install plugin basically copy it in bazaar plugins install folder .. . .. . 3 .", "How i configure bazaar merge to be external and the builtin tool", "But some people prefer other version-control systems like git Bazaar SVN CVS .", "How do I get a list of the modified files in a Bazaar plugin", "bzr branch lp : bzr-push-and-update .bazaar plugins push and update", "There is a page on their site about Bazaar s Unicode support : bazaar-vcs.org UnicodeSupport http : bazaar-vcs.org UnicodeSupport", "Looks like your Bazaar Explorer plugin is installed in Users me .bazaar plugins bzr-explorer .", "bzr version will tell you the location of the Bazaar configuration the user-specific plugins live in the plugins directory under there .", "For details see Integrating with Bazaar http : doc.bazaar.canonical.com bzr.2.1 developers integration.html in the Bazaar developer documentation http : doc.bazaar.canonical.com bzr.2.1 developers", "I am personally a Bazaar fanboy .", "I have bazaar repos A and B .", "Bazaar is slower than Mercurial anyway .", "In fact they are for now part of the same local bazaar repository .", "I m a single user looking into Bazaar Explorer gui .", "Does bazaar fail as soon as its imported", "Source code was obtained from Bazaar repository .", "I started downloading a MySQL branch using bazaar .", "There is currently 2015-04-09 no SCM plugin for Bazaar .", "How to properly remove a bazaar branch from a repository", "Basically Id does not make any sense with Bazaar Git and other distributed source code management tools .", "Git Mercurial Bazaar and also Darcs Monotone and BitKeeper are distributed version-control systems .", "Read this link lists.ubuntu.com archives bazaar 2009q1 054082.html https : lists.ubuntu.com archives bazaar 2009q1 054082.html for details", "Canonical controls both Ubuntu and Bazaar Canonical uses Bazaar for their projects including Ubuntu .", "Although Bazaar is working on their own Tortoise variant http : bazaar-vcs.org TortoiseBzr but it s not there yet as of September 2008 .", "@TridenT try All commands from Bazaar Explorer .", "Nobody talks about Mercurial or Bazaar ever .", "To handle this Bazaar create a bzr directory in the .svn directory .", "Bazaar Explorer is included in it and should work out of the box .", "Contributing to Free Software Projects Made Easy http : doc.bazaar.canonical.com explorer en tutorials foss-contribute.html states : .. . .. . Start Bazaar Explorer .", "I want to use a bazaar repo inside a git repo....Need a way to push each bazaar revision into git one by one .", "This http : stackoverflow.com questions 1835515 how-can-a-heavyweight-checkout-be-changed-to-a-lightweight-checkout-in-bazaar question discusses changing a heavyweight Bazaar checkout into a lightweight one .", "lists.canonical.com mailman listinfo bazaar http : lists.canonical.com mailman listinfo bazaar or news.gmane.org gmane.comp.version-control.bazaar-ng.general http : news.gmane.org gmane.comp.version-control.bazaar-ng.general", "You could import into a local temporary git repository and then import into Bazaar from there", "There are svn and git integration for Bazaar Explorer but no cvs integration I wonder why.. .", "I found some documentation on going SVN to Bazaar but not the other way around .", "I hear all this stuff about bazaar being slower than git .", "Bazaar developers now working on new major version that should be released in the June-July 2009 .", "I am using bzr-svn to chekout svn repositories using bazaar .", "You can check out a comprehensive comparison between Git Mercurial and Bazaar here : techtatva.com 2010 09 git-mercurial-and-bazaar-a-comparison http : www.techtatva.com 2010 09 git-mercurial-and-bazaar-a-comparison", "The version of Bazaar I m using is 2.5.1 with the bundled Python v2.6.6 and Tortoise BZR .", "Even CodeBase which announced Bazaar support in 2011 http : www.codebasehq.com blog codebase-v4-is-ready don t list Bazaar in its features http : www.codebasehq.com features today .", "Since Subversion and CVS are centralised version-control systems and git bazaar and mercurial are all distributed keeping them in sync would require choosing a master copy for each one .", "Did you try Mercurial hg and Bazaar bzr", "The problem is some of projects are already under git or bazaar .", "Import other non-versioned into bazaar git .", "Also some collaboration will be with a person that does not use Bazaar .", "Bazaar Explorer can be helpful for non-technical users .", "@gavenkoa bazaar is intuitive to folks coming from SVN .", "Mercurial and Bazaar resemble themselves very much on the surface .", "But bazaar is waaaay slower than Mercurial and Git .", "Mercurial is easier to learn for SVN users than Bazaar .", "Bazaar is IMHO easier to learn than git .", "A very important missing thing in bazaar is cp .", "What GUI s are there for GIT that are like Bazaar Explorer", "I am not able to push a bazaar repository into Git .", "While using bazaar we extensively used the bug tracker metadata feature of bazaar http : doc.bazaar.canonical.com bzr.dev en user-reference bugs-help.html .", "For Bazaar you have nested trees : http : bazaar-vcs.org NestedTreesDesign which allows you to split a big project in sub-projects .", "http : stackoverflow.com questions 21555093 is-it-possible-to-automatically-insert-version-number-in-code-using-bazaar .. . .. . But I don t get the Keyword Revision-Id or Committer replaced in my .py files after a commit I don t notice it been replaced in the working tree or the in files after bzr export .. . .. . bazaar rules contents :", "I am having issues pushing my codes into my Bazaar repository .", "I m trying to use Beyond Compare as my diff tool in Bazaar Explorer .", "I would imagine doing the same for bazaar would be quite similar .", "Is there a way for bazaar to save the path to the parent branch as an absolute path in the branch.conf file", "In bazaar a directory that contains a branch contains one and only one branch .", "If all else fails you can try asking in the bazaar IRC channel .", "Bazaar doesn t require you to work the way you describe .", "It s good to know that Bazaar is more flexible than I thought ." ] }
{ "confidence": [ 61.299747467041016, 53.49814987182617, 53.43519592285156, 51.783870697021484, 51.437137603759766, 51.1276969909668, 50.556663513183594, 49.74092102050781, 49.580955505371094, 49.50450897216797, 49.243553161621094, 48.26962661743164, 47.80020523071289, 47.73308563232422, 47.48744201660156, 47.338714599609375, 47.20832824707031, 47.04278564453125, 47.04278564453125, 47.04278564453125 ], "content": [ "Question : What do folks here see as the relative strengths and weaknesses of Git Mercurial and Bazaar In considering each of them with one another and against version-control systems like SVN and Perforce what issues should be considered In planning a migration from SVN to one of these distributed version-control systems what factors would you consider Comment : For a Windows specific comparison between Mercurial and Git see this question : stackoverflow.com questions 2550091 http : stackoverflow.com questions 2550091 best-support-now-on-windows-mercurial-or-git Comment : BTW I would like to see percent of use of different DVCS systems . .. . Answer : What do folks here see as the relative strengths and weaknesses of Git Mercurial and Bazaar This is a very open question bordering on flamebait . Git is fastest but all three are fast enough . Bazaar is the most flexible it has transparent read-write support for SVN repositories and cares a lot about the user-experience . Mercurial is somewhere in the middle . All three systems have lots of fanboys . I am personally a Bazaar fanboy . In considering each of them with one another and against version-control systems like SVN and Perforce what issues should be considered The former are distributed systems . The latter are centralized systems . In addition Perforce is proprietary while all the others are free as in speech http : www.gnu.org philosophy free-sw.html . Centralized versus decentralized is a much more momentous choice than any of the systems you mentioned within its category . In planning a migration from SVN to one of these distributed version-control systems what factors would you consider First lack of a good substitute for TortoiseSVN . Although Bazaar is working on their own Tortoise variant http : bazaar-vcs.org TortoiseBzr but it s not there yet as of September 2008 . Then training the key people about how using a decentralized system is going to affect their work . Finally integration with the rest of the system such as issue trackers the nightly-build system the automated test system etc . Comment : For the record current page states : Since Bazaar version 1.6 TortoiseBZR is included in the official installer so it seems to have matured .", "Question : I hear all this stuff about bazaar being slower than git . I haven t used too much distributed version-control yet but in Bazaar vs . Git http : bazaar-vcs.org BzrVsGit on the bazaar site they say that most complaints about performance aren t true anymore . Have you found this to be true Is performance pretty much on par now I ve heard that speed can affect workflow people are more likely to do good thing X if X is fast . What specific cases does performance currently affect workflow in bazaar vs other systems especially git and how .. . .. . I m just trying to get at why performance is of particular importance . Usually when I check something in or update it I expect it to take a little while but it doesn t matter . I commit update when I have a second so it doesn t interfere with my productivity . But then I haven t used DVCS yet so maybe that has something to do with it .. . Answer : Bazaar developers now working on new major version that should be released in the June-July 2009 . Some technical details here : http : jam-bazaar.blogspot.com 2009 03 brisbane-core.html .. . .. . UPDATE : bzr 2.0 with mentioned improvements released in September 2009 .", "Question : I hear all this stuff about bazaar being slower than git . I haven t used too much distributed version-control yet but in Bazaar vs . Git http : bazaar-vcs.org BzrVsGit on the bazaar site they say that most complaints about performance aren t true anymore . Have you found this to be true Is performance pretty much on par now I ve heard that speed can affect workflow people are more likely to do good thing X if X is fast . What specific cases does performance currently affect workflow in bazaar vs other systems especially git and how .. . .. . I m just trying to get at why performance is of particular importance . Usually when I check something in or update it I expect it to take a little while but it doesn t matter . I commit update when I have a second so it doesn t interfere with my productivity . But then I haven t used DVCS yet so maybe that has something to do with it .. . Answer : Bazaar 2.0 released 2009-09-22 http : doc.bazaar.canonical.com development en release-notes bzr-2.0.0.html uses a much more efficient storage format by default . Current benchmarks http : wiki.bazaar.canonical.com Benchmarks show Bazaar 2.0 performing pretty much equal speed with Mercurial and considerably more space-efficient in its repository data .", "Question : I hear all this stuff about bazaar being slower than git . I haven t used too much distributed version-control yet but in Bazaar vs . Git http : bazaar-vcs.org BzrVsGit on the bazaar site they say that most complaints about performance aren t true anymore . Have you found this to be true Is performance pretty much on par now I ve heard that speed can affect workflow people are more likely to do good thing X if X is fast . What specific cases does performance currently affect workflow in bazaar vs other systems especially git and how .. . .. . I m just trying to get at why performance is of particular importance . Usually when I check something in or update it I expect it to take a little while but it doesn t matter . I commit update when I have a second so it doesn t interfere with my productivity . But then I haven t used DVCS yet so maybe that has something to do with it .. . Answer : Well i m checking out emacs on a linux VM debian and bzr seems to be continuously consuming memory and cpu and shows no signs of completing . This is problematic for me .", "Question : I hear all this stuff about bazaar being slower than git . I haven t used too much distributed version-control yet but in Bazaar vs . Git http : bazaar-vcs.org BzrVsGit on the bazaar site they say that most complaints about performance aren t true anymore . Have you found this to be true Is performance pretty much on par now I ve heard that speed can affect workflow people are more likely to do good thing X if X is fast . What specific cases does performance currently affect workflow in bazaar vs other systems especially git and how .. . .. . I m just trying to get at why performance is of particular importance . Usually when I check something in or update it I expect it to take a little while but it doesn t matter . I commit update when I have a second so it doesn t interfere with my productivity . But then I haven t used DVCS yet so maybe that has something to do with it .. . Answer : Warning : lot of articles on VCS are quickly outdated these projects in general and Bazaar in particular are quickly evolving . I found some time ago a recent benchmark : Mercurial vs . Bazaar speedtest clone and log http : draketo.de english free-software light mercurial-vs-bazaar-speedtest-2-hg-1-1-vs-bzr-1-10 it appears Hg is still faster than Bzr . Now that s funny I have just read some threads on the Bazaar mailing list particularly comments on the PEP-374 and a yet to come switch of Emacs SC to Bzr . On the latter it looks like they wait for the next release 1.14 which will bring a big speed boost at least for their needs . On the former a contributor made a good remark : if it is fast enough for you it is OK Lot of benchmarks tend to check out a large or very large codebase history and measure network speed and such . Indeed on such cases Bzr still perform poorly but they work on it . Disk space is larger too . But hey modern disks are quite large that s probably a minor issue . Personally I use Bzr for small personal projects history is still recent so I don t care much about speed . As others point out you might want to concentrate instead on usability ease of use how it fits to your workflow if renaming is important for you if various ways of accessing remote repositories including SSH and FTP for example are important etc . Comment : 1.14 won t provide big speed boost . It will be in bzr 2.0 this summer .", "Question : I hear all this stuff about bazaar being slower than git . I haven t used too much distributed version-control yet but in Bazaar vs . Git http : bazaar-vcs.org BzrVsGit on the bazaar site they say that most complaints about performance aren t true anymore . Have you found this to be true Is performance pretty much on par now I ve heard that speed can affect workflow people are more likely to do good thing X if X is fast . What specific cases does performance currently affect workflow in bazaar vs other systems especially git and how .. . .. . I m just trying to get at why performance is of particular importance . Usually when I check something in or update it I expect it to take a little while but it doesn t matter . I commit update when I have a second so it doesn t interfere with my productivity . But then I haven t used DVCS yet so maybe that has something to do with it .. . Answer : The python developers recently decided to switch to Mercurial and as part of the process did some basic benchmarking of git Mercurial and Bazaar which is documented in PEP-374 http : www.python.org dev peps pep-0374 tests-impressions . An incredibly rough eye balling of the numbers they posted showed Bazaar to be 2-4x slower than either git or Mercurial in the use cases tested . That being said the message conveyed on python-dev was that all of them git Mercurial Bazaar are better than Subversion for the most part they are fast enough and the choice of Mercurial over git Bazaar was mostly based on the gut feelings of the BFDL and the attendees of PyCon2009 . Comment : Thanks . I guess bzr is still slower . Wonder why they claim it s not . Comment : Mostly they seem to be claiming that bzr will soon be just as fast though they have been claiming that for a while . I m sure during the next couple of releases over the next couple of months they will get their speed on . At which point I expect benchmarks to come pouring out of the interwebs .", "Question : I hear all this stuff about bazaar being slower than git . I haven t used too much distributed version-control yet but in Bazaar vs . Git http : bazaar-vcs.org BzrVsGit on the bazaar site they say that most complaints about performance aren t true anymore . Have you found this to be true Is performance pretty much on par now I ve heard that speed can affect workflow people are more likely to do good thing X if X is fast . What specific cases does performance currently affect workflow in bazaar vs other systems especially git and how .. . .. . I m just trying to get at why performance is of particular importance . Usually when I check something in or update it I expect it to take a little while but it doesn t matter . I commit update when I have a second so it doesn t interfere with my productivity . But then I haven t used DVCS yet so maybe that has something to do with it .. . Answer : Bazaar is such a fast moving target and presumably so is git that any claims about performance are likely to be out of date by the time you read them . According to many sources including Wikipedia git is particularly slow http : en.wikipedia.org wiki Git 5F 28software 29 Portability on Windows because it needs its POSIX environment but that nothing beats the speed of git in its native POSIX-y Linux . This is one reason I use Bazaar - apart from personally finding it easy to use I use Windows 66 of the time and Bazaar has no performance problems on Windows . I don t doubt that git is very fast on Linux though . Again though benchmarks could be skewed by a variety of factors and may be out of date . Comment : My point about benchmarks being useless because they become out of date so quickly is even truer now than in April 2009 when I wrote this answer . Things have continued to evolve at a huge speed making any comparisons between DVCSes over a few months old pretty useless .", "Question : Most my sources are in subversion and I use Id to add revision information to those sources . Then I can easily check what sources were used e.g. . --version option shows that info . Now I m going to use bazaar and I can t find such a functionality . Is there any equivalent of svn Id in bazaar .. . Answer : Having automatically generated Id tags that show a sensible version number is impossible to do with DSCM tools like Bazaar because everybody s line of development can be different from all others . So somebody could refer to version 1.41 of a file but your version 1.41 of that file is different . Basically Id does not make any sense with Bazaar Git and other distributed source code management tools .", "Question : I m interested in trying out distributed version-control systems . git sounds promising but I saw a note somewhere for the Windows port of git that says don t use non-ASCII filenames . I can t find that now but there is this link http : code.google.com p msysgit issues detail id 230 . It s put me off git for now but I don t know if the other options are any better . Support for non-ASCII filenames is essential for my Japanese company . I m looking for one that internally stores filenames as Unicode not a platform-dependent encoding which would cause endless grief . So : .. . .. . 1 . What DVCS support Unicode filenames 2 . In both Windows and Linux 3 . Ideally with the possibility to transfer repositories between Windows and Linux machines with minimal issues Comment : UTF-8 support for msysgit is coming . See stackoverflow.com a 5855213 6309 http : stackoverflow.com a 5855213 6309 and the updated answer below : stackoverflow.com a 1274142 6309 http : stackoverflow.com a 1274142 6309 .. . Answer : Bazaar VCS http : bazaar-vcs.org works with unicode filenames internally . And it has very good support for unicode both on Linux and Windows . Comment : There is a page on their site about Bazaar s Unicode support : bazaar-vcs.org UnicodeSupport http : bazaar-vcs.org UnicodeSupport Comment : That page is more developers spec than user doc and it s a bit out of date . Comment : I did some basic tests of Bazaar on Windows and confirmed it could add and merge files even if they had filename characters outside the current system code page . Good stuff . I ll try the repository on a Linux box later and see if it can branch it correctly . Comment : I did some further tests of Bazaar on Windows and discovered that while the command-line works fine the GUI fails at committing changes to a file with filename characters outside the current system code page . Comment : What the name of GUI", "Question : The Big Three of distributed version-control Git Bazaar and Mercurial each treat branching fairly differently . In Bazaar for example branches are separate repos actually divergent copies of the parent repo on your file system different branches live in different directories . In Git on the other hand you can have multiple branches existing in the same repo and therefore in the same directory on your file system . Mercurial supports both behaviors http : stevelosh.com blog entry 2009 8 30 a-guide-to-branching-in-mercurial the latter with named branches http : hgbook.red-bean.com read managing-releases-and-branchy-development.html id386031 . What are the pros and cons associated with these different branching models In my mind Bazaar s approach of one branch one repo makes branching more of a pain than Git s approach e.g . to use a branch in Bazaar I have to first create the branch then cd out of my current working copy then check out the new branch like I would in SVN . Comment : named branches is quite different from git branches see here for details : stevelosh.com blog entry 2009 8 30 http : stevelosh.com blog entry 2009 8 30 a-guide-to-branching-in-mercurial Comment : See also my answer in Git and Mercurial - Compare and Contrast which covers also branches : stackoverflow.com questions 1598759 http : stackoverflow.com questions 1598759 git-and-mercurial-compare-and-contrast 1599930 1599930 Comment : Man tonfa always manages to post my blog entry before I do : .. . Answer : Bazaar doesn t require you to work the way you describe . I ve actually written a blog post http : oxygene.sk lukas 2009 10 working-with-branches-in-bazaar about it two days ago . You can work pretty much with only a single working tree switching between various branches and creating new branches without leaving the working tree . Useful commands for this are : checkout http : doc.bazaar-vcs.org latest en user-reference index.html checkout switch http : doc.bazaar-vcs.org latest en user-reference index.html switch branch --switch http : doc.bazaar-vcs.org latest en user-reference index.html branch . Check out the workflow http : doc.bazaar-vcs.org latest en user-guide bazaar 5Fworkflows.html documentation for Bazaar you will see that you can configure it in almost any way you want . Comment : It s good to know that Bazaar is more flexible than I thought . I was actually wondering if creating a branches directory inside your repo could solve the problem I mentioned in my question . Thanks for the insight .", "Question : Is there a bitbucket or github alike hosting service for Bazaar version-control .. . Answer : Consider that the active development isn t exactly thriving see Bzr development stopped https : lists.ubuntu.com archives bazaar 2012q4 075330.html with a 2.6 released in August 2013 more than a year after the 2.6b2 July 2012 https : launchpad.net bzr +announcements . That could explain that there don t seem to be a service similar to GitHub or BitBucket for bazaar repos beside launchpad.net https : launchpad.net which don t have all the features of a GitHub . Even CodeBase which announced Bazaar support in 2011 http : www.codebasehq.com blog codebase-v4-is-ready don t list Bazaar in its features http : www.codebasehq.com features today .", "Question : null .. . Answer : I m trying to use the keywords plugin in bazaar 2.7 .. . .. . to archive this : Is it possible to automatically insert version number in code using bazaar http : stackoverflow.com questions 21555093 is-it-possible-to-automatically-insert-version-number-in-code-using-bazaar .. . .. . But I don t get the Keyword Revision-Id or Committer replaced in my .py files after a commit I don t notice it been replaced in the working tree or the in files after bzr export .. . .. . bazaar rules contents :", "Question : I hear all this stuff about bazaar being slower than git . I haven t used too much distributed version-control yet but in Bazaar vs . Git http : bazaar-vcs.org BzrVsGit on the bazaar site they say that most complaints about performance aren t true anymore . Have you found this to be true Is performance pretty much on par now I ve heard that speed can affect workflow people are more likely to do good thing X if X is fast . What specific cases does performance currently affect workflow in bazaar vs other systems especially git and how .. . .. . I m just trying to get at why performance is of particular importance . Usually when I check something in or update it I expect it to take a little while but it doesn t matter . I commit update when I have a second so it doesn t interfere with my productivity . But then I haven t used DVCS yet so maybe that has something to do with it .. . Answer : Benchmark test 2009-08-16 : Git 1.6.3.3 Hg 1.3.1 Bzr 1.17 .. . .. . http : www.editgrid.com user jaalto vc-test .. . .. . See also PDF mentioned in the site which gives more background on these three DVCS with better benchmark graphs . SUMMARY : Hg and Bzr are practically equal in performance wise . Bzr has improved in leaps see upcoming 2.0 and the shared repositories in Bzr is as fast as git-branch . The development phase and development discussion messages of both Git and Bzr suggest that in the future Git and Bzr will advance quicker than Hg .", "Question : Contributing to Free Software Projects Made Easy http : doc.bazaar.canonical.com explorer en tutorials foss-contribute.html states : .. . .. . Start Bazaar Explorer . but does not describe how this is done . .. . Answer : From the command-line as described in Linux Installation -- Bazaar Explorer http : doc.bazaar.canonical.com explorer en install-linux.html :", "Question : What do folks here see as the relative strengths and weaknesses of Git Mercurial and Bazaar In considering each of them with one another and against version-control systems like SVN and Perforce what issues should be considered In planning a migration from SVN to one of these distributed version-control systems what factors would you consider Comment : For a Windows specific comparison between Mercurial and Git see this question : stackoverflow.com questions 2550091 http : stackoverflow.com questions 2550091 best-support-now-on-windows-mercurial-or-git Comment : BTW I would like to see percent of use of different DVCS systems . .. . Answer : Mercurial and Bazaar resemble themselves very much on the surface . They both provide basic distributed version-control as in offline commit and merging multiple branches are both written in python and are both slower than git . There are many differences once you delve into the code but for your routine day-to-day tasks they are effectively the same although Mercurial seems to have a bit more momentum . Git well is not for the uninitiated . It is much faster than both Mercurial and Bazaar and was written to manage the Linux kernel . It is the fastest of the three and it is also the most powerful of the three by quite a margin . Git s log and commit manipulation tools are unmatched . However it is also the most complicated and the most dangerous to use . It is very easy to lose a commit or ruin a repository especially if you do not understand the inner workings of git . Comment : Mercurial is really on par with Git . The performance is not big difference . But bazaar is waaaay slower than Mercurial and Git . Comment : @jpartogi - Bazaar s performance numbers have been improving much faster than its competitors so I d be cautious making that kind of assertion -- particularly with the storage refactoring that s available as preview in current releases and scheduled to become default in 2.0 .", "Question : I ve just installed the latest SonarQube 5.0.1 locally to try it out . The project I m working with at the moment is hosted in Bazaar bzr source control . I looked at the SonarQube list of SCM plugins here : .. . .. . http : docs.sonarqube.org display SONAR Plugin+Library .. . .. . Bazaar is not listed . Are there any workarounds or independent projects that I could use to get the scm history information from Bazaar into SonarQube At this point I am just trying to get a sense of the value of the information to our project rather than worry about a scalable production-ready solution . .. . Answer : There is currently 2015-04-09 no SCM plugin for Bazaar . If you wish to contribute one feel free to take inspiration from e.g the SonarQube SCM integration plugin for Git https : github.com SonarCommunity sonar-scm-git .", "Question : What do folks here see as the relative strengths and weaknesses of Git Mercurial and Bazaar In considering each of them with one another and against version-control systems like SVN and Perforce what issues should be considered In planning a migration from SVN to one of these distributed version-control systems what factors would you consider Comment : For a Windows specific comparison between Mercurial and Git see this question : stackoverflow.com questions 2550091 http : stackoverflow.com questions 2550091 best-support-now-on-windows-mercurial-or-git Comment : BTW I would like to see percent of use of different DVCS systems . .. . Answer : Take a look at the comparison made recently by the Python developers : http : wiki.python.org moin DvcsComparison . They chose Mercurial based on three important reasons : .. . .. . The choice to go with Mercurial was made for three important reasons : .. . .. . According to a small survey Python developers are more interested in using Mercurial than in Bazaar or Git . Mercurial is written in Python which is congruent with the python-dev tendency to eat their own dogfood . Mercurial is significantly faster than bzr it s slower than git though by a much smaller difference . Mercurial is easier to learn for SVN users than Bazaar . .. . from http : www.python.org dev peps pep-0374 Comment : Mozilla and Sun also uses Mercurial for the same reason . Comment : bzr is also written in Python is indeed slower than hg but by a quickly narrowing margin -- and as a user of both Bazaar and Mercurial I strongly disagree with the easier to learn assertion . Comment : They are all still evolving . I decided on Bazaar for a DCVS to start with because I thought it was easiest but not much in it and Launchpad.net . It was quite slow . Git on OSX seems fine but poor Windows support . Since Python and Google projects have now adopted it and because of TortoiseHg I m swapping to Mercurial . I think Mercurial is gaining a critical mass over Bazaar and will there . And Git will do its own thing always focussed on Posix so will never be truly dominant .", "Question : I ve been playing around with Git recently to get a grasp of distributed version-control . Now I m looking at Bazaar but can t figure out how to make a local branch i.e . a branch that I do not have to push to when I want to commit changes . With Git I would do .. . .. . git-branch branch name .. . .. . or .. . .. . git-checkout -b branch name .. . .. . I can then work in my local branch committing changes as I go without having to push changes to a remote repo . When I m through with the branch I can merge it to my local master branch . If I want I can then push those changes to the remote repo . Is this possible with Bazaar Bazaar seems much more like SVN with branches just being separate directories so maybe not . .. . Answer : Yes you definitely can do that . Let s say there s a remote repository at bzr+ssh : foo.com repo mainline .. . .. . You can create a local branch by doing : .. . .. . Now you can make changes to the local branch and commit them and those changes are only in that local directory . e.g . : .. . .. . That will add foo only in the local branch . Comment : I think the cd part of that validated the branches just being separate directories part of the question . Branches are less useful if I have to reconfigure my tools when I change branches .", "Question : I ve been playing around with Git recently to get a grasp of distributed version-control . Now I m looking at Bazaar but can t figure out how to make a local branch i.e . a branch that I do not have to push to when I want to commit changes . With Git I would do .. . .. . git-branch branch name .. . .. . or .. . .. . git-checkout -b branch name .. . .. . I can then work in my local branch committing changes as I go without having to push changes to a remote repo . When I m through with the branch I can merge it to my local master branch . If I want I can then push those changes to the remote repo . Is this possible with Bazaar Bazaar seems much more like SVN with branches just being separate directories so maybe not . .. . Answer : If you set up your repository the correct way you can work in a similar fashion to git . This will create a structure like so : .. . .. . And if you want to make branches you can do the following : .. . .. . and now you ll be in the some-feature branch which will be at the same point as mainline .", "Question : I ve been playing around with Git recently to get a grasp of distributed version-control . Now I m looking at Bazaar but can t figure out how to make a local branch i.e . a branch that I do not have to push to when I want to commit changes . With Git I would do .. . .. . git-branch branch name .. . .. . or .. . .. . git-checkout -b branch name .. . .. . I can then work in my local branch committing changes as I go without having to push changes to a remote repo . When I m through with the branch I can merge it to my local master branch . If I want I can then push those changes to the remote repo . Is this possible with Bazaar Bazaar seems much more like SVN with branches just being separate directories so maybe not . .. . Answer : Old question but it appears that colocated branches http : doc.bazaar.canonical.com developers colocated-branches.html are the way to go for this nowadays . Bzr includes a plugin http : doc.bazaar.canonical.com plugins en colo-plugin.html with various convenience functions including colo-init for creating colocated-branch-enabled repositories and colo-branch for actually using creating branches I have not made extensive use of these features yet so I may have this a bit jumbled. . Comment : Detailed instructions can be found here https : wiki.openstack.org wiki ColocatedBranches ." ] }
[ "yes-answer-long" ]
dvcs
UNK_RELATION
jquery-mobile-checkbox@implementation@73
jquery-mobile-checkbox -- jquery-mobile-checkbox refers to the checkbox @placeholder of the jquery-mobile framework .
{ "confidence": [ 75.28840637207031, 70.1043930053711, 68.53401947021484, 66.26009368896484, 62.27382278442383, 59.68677520751953, 58.05723190307617, 57.44549560546875, 55.206363677978516, 52.125057220458984, 51.45798873901367, 51.45798873901367, 50.92368698120117, 50.29463577270508, 49.02897262573242, 49.02897262573242, 49.02897262573242, 46.89512634277344, 46.89512634277344, 46.89512634277344, 45.499427795410156, 44.94808578491211, 44.94808578491211, 44.934932708740234, 43.66523742675781, 43.07269287109375, 42.60995101928711, 42.395423889160156, 42.395423889160156, 42.06108474731445, 42.00215530395508, 41.83930587768555, 41.629798889160156, 40.9289436340332, 40.76456069946289, 40.54154968261719, 40.18093490600586, 40.04835891723633, 39.76861572265625, 39.76861572265625, 39.63207244873047, 39.117584228515625, 38.582889556884766, 38.28804397583008, 37.520751953125, 37.339603424072266, 36.743167877197266, 36.743167877197266, 36.743167877197266, 36.743167877197266, 36.743167877197266, 35.97197723388672, 35.97197723388672, 35.932464599609375, 35.54865646362305, 34.738590240478516, 34.738590240478516, 34.314151763916016, 34.252952575683594, 34.044761657714844, 34.0301628112793, 33.7883415222168, 33.7883415222168, 33.37813949584961, 33.35115051269531, 33.35115051269531, 32.861942291259766, 32.66790008544922, 32.66790008544922, 32.66790008544922, 32.66790008544922, 32.66790008544922, 32.66790008544922, 32.66790008544922, 32.66151809692383, 32.24443817138672, 30.948875427246094, 30.238887786865234, 30.173751831054688, 30.173751831054688, 29.45090103149414, 28.92397689819336, 28.85144805908203, 27.880992889404297, 27.38021469116211, 26.115863800048828, 25.541767120361328, 25.451980590820312, 24.95119857788086, 24.34727668762207, 23.900390625, 19.51693344116211, 17.101318359375, 17.101318359375, 17.101318359375, 17.101318359375, 17.101318359375, 17.101318359375, 17.101318359375 ], "content": [ "I am buildin a mobile web app with jquery-mobile and I want to check if a checkbox is checked .", "You have to understand you are not taping on a checkbox input you are taping on a jQuery Mobile representation of that checkbox .", "Trying to render jQuery Mobile checkboxes with .. . .. . Problem is that jQuery Mobile finishes setting up the checkbox as a button prior to Angular doing the repeat .", "Is it possible to set a checkbox instead of a split button in a split-button-list in jquery-mobile", "Also which version if jquery and jquery-mobile are using", "I am facing an issue with jQuery Mobile on iPhone .", "I have found the Issue It is happening because I do not write a refresh after check the checkbox it is mandatory to add refresh to check and uncheck the Mobile Checkbox through Jquery or Javascript .", "I have the following checkbox and I want to enlarge the checkbox by changing its height since its too small in mobile-devices I have tried the following but it didn t work in jQuery mobile 1.4.0 please any help would be greatly appreciated . . .. . .. . Html .. . .. . CSS : .. . .. .", "I think the problem is that jQuery Mobile events cannot be defined in tags so try to refeer by his id .. . .. . use checkbox-1a .on instead", "The fixContentHeight is because I m working with JQuery-Mobile so I need it for the mobile-devices .", "I have placed my entire hmtl and jquery-mobile code in jsfiddle .", "@raster How to select or unselect all checkboxes in JQuery Mobile", "possible duplicate of Control group loses control after dynamic add of radio-button - jQuery Mobile http : stackoverflow.com questions 21059478 control-group-loses-control-after-dynamic-add-of-radio-button-jquery-mobile", "I went through jQuery Mobile JS file and found out that when change triggers jQM adds removes classes to the checkbox and then call refresh method .checkboxradio refresh to enhance the markup .", "Usually this could be easily done with jQuery Mobile grids but they are not that flexible .", "I haven t worked with the jquery-mobile before though.. . so.. .", "Goal : A jQuery Mobile popup with a searchable list of people that can be checked off .", "When appending checkboxes or radio buttons to a controlgroup dynamically you deal with two jQuery Mobile widgets .checkboxradio and .controlgroup .", "Both should be created updated enhanced styled with jQuery Mobile CSS once new elements are added .", "Here s the html : .. . .. . Here s the javascript : .. . .. . It works all right in jquery-mobile 1.3.2 just like :", "@Niels I m not blaming jQuery Mobile but as far as I understand it s intended to allow mobile developers to create apps without writing any CSS .", "Checkbox .. . .. . Radio .. . .. . Updated Demo http : fiddle.jshell.net Palestinian PedEC .. . .. . .. . .. . Checkbox .. . .. . Radio", "I.e the checkbox should be selected only if the checkbox is touched and not the list item .", "But the problem is when I launch in the mobile and try to scroll the listview the checkbox of the corresponding list item that was touched gets selected which I dont want .", "Yes using type checkbox .", "I have a list of checboxes and a checkbox to select All .", "Working example : http : jsfiddle.net Gajotres VXwzp 15 .. . .. . When working with jQuery Mobile you must understand how its widgets markup can be changed to find out take a look at my other answer : jQuery Mobile : Markup Enhancement of dynamically added content http : stackoverflow.com a 14550417 1848600", "Layout should never be primarily the responsibility of Javascript code as such you shouldn t blame jQuery Mobile for this .", "whoops - that makes sense I initially had it as a jquery-mobile-listview and then changed it to a table .", "I understand this question is old but for those looking for a jQuery 2.x and jQuery Mobile 1.4.3 example try this : .. . .. . .. . .. . HTML : .. . .. . .. . .. . .. . .. . JS .. . .. . .. . .. . JSFiddle DEMO http : jsfiddle.net katalin 2003 uHcQL", "Are you using type checkbox for the input", "It seems to be easy to change it to be another button but checkbox. .", ".is - is a jQuery function .", "My solution so far has been to reproduce the jQuery Mobile form using Angular but this is not ideal here is my code : .. . .. . and CSS : .. . .. . This works noting that the div.ui-checkbox is nested redundantly because jQuery Mobile still adds it in but my addition provides the styles needed and the extra nested div doesn t appear to do any harm .", "I am building a jquery-mobile list view by dynamically adding list elements inside a list view using the below code .", "@Steaphann Did you replace the word remember with your checkbox id", "try link 1 http : stackoverflow.com questions 15383531 jquery-mobile-doesnt-apply-style-on-dynamic-checkboxes-and-cant-clicked or link 2 http : stackoverflow.com questions 5663033 jquery-mobile-dynamic-checkboxes-lose-style rq 1", "So I m trying to load dynamic-content straight into my checkbox container group checkboxes .. . .. . This is the statement I m running to populate the container : .. . .. . The checkboxes are all populated but the jQuery style is not applied .", "Follow the same fashion for other checkbox sections .", "To remove a checkbox use this .closest div .remove", "Using jQuery Mobile and AngularJS together without a plug-in but having read about it loading jQuery first and the two frameworks are mostly playing very nicely and quite powerful having both .", "JQuery .. . .. . JQuery code that doesn t seem to work .", "Concretely I d like : .. . .. . The rememberMe checkbox to be as wide as the text inside and the info button to be inline with the checkbox .", "Demo http : jsfiddle.net Palestinian 2yjgg .. . .. . .. . .. . jQuery Mobile 1.4.x .. . .. . The only difference here is elements should be appended to .controlgroup container .. . .. . and then enhance both controlgroup and all elements within it using .enhanceWithin .", "Finally I found a solution : Control group loses control after dynamic add of radio-button - jQuery Mobile http : stackoverflow.com questions 21059478 control-group-loses-control-after-dynamic-add-of-radio-button-jquery-mobile .. . .. . 1.3.2 is easy to work like this : .. . .. . 1.4.3 is much a mess like this : .. . .. . Now it works pretty good : .. . .. .", "The group containing the previous checkbox and button to be aligned to the right .", "When i select the Education checkbox it still opens and closes the collapsible dialog", "I m trying to change the checkbox status checked unchecked using JQM .", "In the HTML part i have a checkbox a button Clear and a button Set .", "The below code works fine and it displayed the list view with the checkbox as expected .", "What I need is the check should select only if the checkbox is clicked .", "After an initial few taps on the checkbox the check box takes few seconds to get marked as checked unchecked .", "The checkbox doesnt get marked unless the user waits for a few seconds or scroll the screen .", "I ve gotten it working where they show up in the list when the checkbox is clicked - but that seems to have broken the actual checkbox so it doesn t display the check .", "when you do jQuery + panelListId .empty .. . in the refresh code is that just removing the checkbox items or is it clearing out the whole thing including the li that contained the checkboxes and hidden person info input", "I want my checkbox to appear on a RIGHT side INSTEAD of a split button not instead of a picture .. . .. . Thanks for help. .", "@ezankerThanks a lot its working but it increases the label height which is around the check box can we enlarge the checkbox itself", "@gloomy.penguin It is removing everything including the li entries that contained the checkbox .", "You can try a jquery plugging called fastclick to eliminate the delay .", "If you are using this form-for mobile app then you may use the required attribute html5 .", "onclick on input dont work on mobile-devices", "I m taking my first steps in jQuery Mobile and I m getting a bit disappointed with the lack of customization it provides.. . .. . .. . As an example I have a simple-form and I d like to customize the layout of the form components .", "When they click on the sub-list I re-create the original list using this code : .. . .. . But this time checkboxes don t get rendered as jquery-mobile components but as regular old HTML checkboxes .", "Here is a DEMO http : jsfiddle.net ezanker 7wvT2 .. . .. . The CSS sizes the label around the checkbox to 128 px then the checkbox itself is sized to 64 x 128 then it is centered within its container via negative margins finally the check icon itself is sized .", "I know it s not final solution but you have to do a bit of debugging sometimes : .. . .. . Edit : .. . Found similar problems solved by using Page .. . JQM FAQ http : jquerymobiledictionary.dyndns.org faq.html .. . SO Question http : stackoverflow.com questions 4039428 jquery-mobile-dynamically-creating-form-elements", "jQuery Mobile 1.2.x - 1.3.x stable versions .. . .. . After appending checkbox radio-button to either a static or dynamic controlgroup .checkboxradio should be called first to enhance checkbox radio-button markup and then .controlgroup refresh to re-style controlgroup div .", "So My modified jquery function is - .. . .. . .. . document .on click a id btnShowRates function e .. . .. . if input type text id rate .val .. . var arrate input type text id rate .val .split .. . var targetcheckboxes .map arrate function i return document.getElementById i .. . targetcheckboxes .prop checked true .checkboxradio refresh .. . .. . for var i in targetcheckboxes .. . setCustomChecked true document .find input type checkbox : checked .. . .. . .. . .. . else id listRates input type checkbox .prop checked false .checkboxradio refresh .. . .. .", "HTML .. . .. . Currently when I click on the main checkbox it simply opens and closes the collapsible dialog .", "Unfortunately placing ul tags and the updated checkbox code breaks my entire project", "WORKING EXAMPLE : http : jsfiddle.net h7Bmb 1 .. . .. . I try now to get the checkbox part to work .", "And as you can see i m not making any attempt to refresh the checkbox during its removal .", "Using my script sample the checkbox is cached and successfully deletes on touch devices as well as full browser .", "The question is..why would you want to remove a checkbox on click if I may ask", "I think the problem is when I click the list item the checkbox is getting selected .", "So I m using jQuery Mobile s ability to display checkboxes horizontally with the fieldset property Data-Type Horizontal however even though all the checkbox icons are supposed to be hidden one of them appears to be fighting its way through to the surface as seen here with the Landmine choice : .. . .. .", "Here is a DEMO FIDDLE http : jsfiddle.net ezanker Xf8QT .. . .. . The UL does not use split icon but instead an absolutely positioned DIV on the right with a checkbox inside .", "I m using jQuery 1.9.1 jQM 1.3 knockout 2.2.1 .", "Thanks @Omar good approach too using grids although the rememberMe checkbox is wider than the text inside.. .", "i had tried a container removal approach but on a touch device it had the side-effect of deleting the checkbox i tapped AND the one next to it .", "It seems that .remove occurs before refresh takes place so if you delay the removal process by 1ms refresh will before the checkbox is removed .", "According to the docs http : jquerymobile.com demos 1.0a4.1 docs forms forms-checkboxes.html all I need to do is call this function to update the checkbox style.. . .. . .. . That doesn t work though.. . Any idea what I m doing wrong", "I haven t try it yet myself --- you can check this Article Question --- stackoverflow.com questions 12238587 http : stackoverflow.com questions 12238587 eliminate-300ms-delay-on-click-events-in-mobile-safari", "Working example : http : jsfiddle.net Gajotres uP9bn .. . .. . You can t use listview refresh on something that is not a listview : .. . .. . I have removed it and now it works : .. . .. . Find out more in my other article : jQuery Mobile : Markup Enhancement of dynamically added content http : stackoverflow.com a 14550417 1848600 .", "check below is the refresh function details .. . .. . refresh Returns : jQuery plugin only update the checkboxradio .", "In the Java Script part i have the code to clear and to set the checkbox checked value using the buttons .. . .. . Check this example in : http : jsfiddle.net VXwzp 14 .. . .. . You will notice by hitting the button Set or Clear it is not working .", "enter image description here http : i.stack.imgur.com On1Dw.jpg .. . .. . The screenshot say it all basically i want to embed radio buttons for column toggle in jquery-mobile tables so that user can get one column which he selects.. .", "Here comes dynamic checkboxes -- .. . div style position : relative .. . input type checkbox id 1 data-display-name Rack General .. . label for 1 Rack General label .. . img id img 1 class checkboxFixIconLeft .. . div .. . div style position : relative .. . input type checkbox id 4 data-display-name Government .. . label for 4 Government label .. . img id img 4 class checkboxFixIconLeft .. . div .. . div style position : relative .. . input type checkbox id 6 data-display-name Package .. . label for 6 Package label .. . img id img 6 class checkboxFixIconLeft .. . div .. . -- End -- .. . fieldset .. . div class btn container .. . a data-role button data-theme b data-rel back Confirm a .. . div .. . div .. . section .. . div", "But if the checkboxes are there correctly and the only thing wrong is they re not styled right then the jquery isn t noticing them appropriately .", "I know this I ve tried your code but still doesn t work When I m changing .ui-checkbox works great but in fieldset tap event doesn t work why", "Refer LIVE DEMO http : jsfiddle.net SivaCharan XcsPP .. . .. . UPDATED : .. . .. . Refer this same piece of code which I have done some modifications to works for all checkbox sections .. . .. . HTML : .. . .. . Actually on your HTML UL tag is missing .", "Thank You Omar I found out also a change in latest jquery versions to retrieve the radio instead of input radio it shall be : input type radio name colours", "document .on click a id btnShowRates function e .. . if input type text id rate .val .. . var arrate input type text id rate .val .split .. . var targetcheckboxes .map arrate function i return document.getElementById i .. . targetcheckboxes .prop checked true .. . .. . else id listRates input type checkbox .prop checked false .. . .. . .. . .. . script src https : ajax.googleapis.com ajax libs jquery 2.1.1 jquery.min.js script .. . div data-role controlgroup .. . a id btnShowRates href pgRates data-transition slideup data-role button runat server .. . span class left ad option text small text MBBE Revamped.Labels.GetLabel langID hotel RateCorpCode span .. . input id rate type text .. . a .. . section id pgRates data-role page data-theme a .. . bhead : custHead id CustHead1 runat server .. . header data-role header class mbe detail header .. . p class nospace Hotel Rates p .. . header .. . div data-role content .. . fieldset data-role controlgroup id listRates data-icon false runat server .. . --", "Here is my code .", "But for some reason or another it doesn t execute it .", "Please help", "----EDIT----- This is what I have for the moment .", "----EDIT-- .. . .. . Solved it the problem was that the fieldcontain was also named remember", "What is remember in this context : if remember.checked 1", "Later on it should remember email and password ." ] }
{ "confidence": [ 74.89057922363281, 74.73478698730469, 73.83552551269531, 71.99501037597656, 71.62318420410156, 70.68065643310547, 70.65785217285156, 70.65785217285156, 70.52316284179688, 69.68804931640625, 69.1285171508789, 69.10054016113281, 68.28445434570312, 68.22357177734375, 67.9291763305664, 67.6072998046875, 67.20072937011719, 66.90034484863281, 65.00663757324219, 64.83979797363281 ], "content": [ "Question : null .. . Answer : I am building a jquery-mobile list view by dynamically adding list elements inside a list view using the below code . The below code works fine and it displayed the list view with the checkbox as expected . But the problem is when I launch in the mobile and try to scroll the listview the checkbox of the corresponding list item that was touched gets selected which I dont want . I.e the checkbox should be selected only if the checkbox is touched and not the list item . How can I do that I created a jsfiddle . I think the problem is when I click the list item the checkbox is getting selected . What I need is the check should select only if the checkbox is clicked . Jsfiddle Link http : jsfiddle.net z52y9f27 1 .. . .. . Update : I noticed that this problem is only after building the android APK using phonegap-build and deployed on an android Lollipop device .", "Question : Using jQuery Mobile and AngularJS together without a plug-in but having read about it loading jQuery first and the two frameworks are mostly playing very nicely and quite powerful having both . Trying to render jQuery Mobile checkboxes with .. . .. . Problem is that jQuery Mobile finishes setting up the checkbox as a button prior to Angular doing the repeat . So the repeated checkboxes stack up vertically even though I have used data-type horizontal in the fieldset and each show as first last orphan - which they are before AngularJS does its ngRepeat . Viewing the code example at http : demos.jquerymobile.com 1.0a4.1 docs forms forms-checkboxes.html and looking at the rendered DOM shows the way it should render . .. . Answer : My solution so far has been to reproduce the jQuery Mobile form using Angular but this is not ideal here is my code : .. . .. . and CSS : .. . .. . This works noting that the div.ui-checkbox is nested redundantly because jQuery Mobile still adds it in but my addition provides the styles needed and the extra nested div doesn t appear to do any harm .", "Question : Is it possible to set a checkbox instead of a split button in a split-button-list in jquery-mobile It seems to be easy to change it to be another button but checkbox. . I want my checkbox to appear on a RIGHT side INSTEAD of a split button not instead of a picture .. . .. . Thanks for help. . .. . Answer : Here is a DEMO FIDDLE http : jsfiddle.net ezanker Xf8QT .. . .. . The UL does not use split icon but instead an absolutely positioned DIV on the right with a checkbox inside . The CSS is used to position everything correctly : .. . .. . If you do not need the thumbnail just leave out the IMG tag like the second LI in the fiddle . Comment : You do great CSS solutions .", "Question : I have the following checkbox and I want to enlarge the checkbox by changing its height since its too small in mobile-devices I have tried the following but it didn t work in jQuery mobile 1.4.0 please any help would be greatly appreciated . . .. . .. . Html .. . .. . CSS : .. . .. . enter image description here http : i.stack.imgur.com CedRv.png Comment : try : .ui-controlgroup-controls .ui-btn-icon-notext height : 180px Comment : @ezankerThanks a lot its working but it increases the label height which is around the check box can we enlarge the checkbox itself the blue square which appear in the image i have uploaded Comment : See my answer below.. . .. . Answer : Here is a DEMO http : jsfiddle.net ezanker 7wvT2 .. . .. . The CSS sizes the label around the checkbox to 128 px then the checkbox itself is sized to 64 x 128 then it is centered within its container via negative margins finally the check icon itself is sized . You can play with the values to get the desired output.. . Comment : @ezankerThank you very very much I really appreciate that you are helping me", "Question : So I m trying to load dynamic-content straight into my checkbox container group checkboxes .. . .. . This is the statement I m running to populate the container : .. . .. . The checkboxes are all populated but the jQuery style is not applied . According to the docs http : jquerymobile.com demos 1.0a4.1 docs forms forms-checkboxes.html all I need to do is call this function to update the checkbox style.. . .. . .. . That doesn t work though.. . Any idea what I m doing wrong Comment : You are generating checkboxes that aren t checked . Then you are trying to refresh checked checkboxes . First try removing that .attr checked true part . Also don t forget that names and ids should be unique . Comment : Yea i tried removing the attr part of the statement but that didn t work either . Also removed the name and id from the input also to see if that helped - it didn t : Comment : Hmm.. . btw : is generating many fieldsets inside one parent fieldset correct I haven t done that before . Comment : Just following the documentation what little of it they have . I tried replacing the internal fieldsets with divs to group the content doesn t make a difference . Comment : Just updated the original post to avoid any confusion.. . Weird seems like a very common task .. . Answer : When appending checkboxes or radio buttons to a controlgroup dynamically you deal with two jQuery Mobile widgets .checkboxradio and .controlgroup . Both should be created updated enhanced styled with jQuery Mobile CSS once new elements are added . The way to achieve this is different in latest stable versions and RC version but the methods are the same . jQuery Mobile 1.2.x - 1.3.x stable versions .. . .. . After appending checkbox radio-button to either a static or dynamic controlgroup .checkboxradio should be called first to enhance checkbox radio-button markup and then .controlgroup refresh to re-style controlgroup div . Demo http : jsfiddle.net Palestinian 2yjgg .. . .. . .. . .. . jQuery Mobile 1.4.x .. . .. . The only difference here is elements should be appended to .controlgroup container .. . .. . and then enhance both controlgroup and all elements within it using .enhanceWithin . Demo http : jsfiddle.net Palestinian ertz6", "Question : I m trying to change the checkbox status checked unchecked using JQM . In the HTML part i have a checkbox a button Clear and a button Set . In the Java Script part i have the code to clear and to set the checkbox checked value using the buttons .. . .. . Check this example in : http : jsfiddle.net VXwzp 14 .. . .. . You will notice by hitting the button Set or Clear it is not working . I m using Google Chrome Version 26.0.1410.64 m .. . .. . I have noticed in case i remove the tag from input it works fine but the JQM style is not being taken into account . Check the example in : http : jsfiddle.net QLzBX 1 .. . .. . Do you have any idea how to get it work using JQM Thank you in advance .. . .. . Alvaro Comment : By using the following i was able to get it working : checkboxID .attr checked false .checkboxradio refresh .. . Answer : Working example : http : jsfiddle.net Gajotres VXwzp 15 .. . .. . When working with jQuery Mobile you must understand how its widgets markup can be changed to find out take a look at my other answer : jQuery Mobile : Markup Enhancement of dynamically added content http : stackoverflow.com a 14550417 1848600 Comment : Many thanks :", "Question : I am buildin a mobile web app with jquery-mobile and I want to check if a checkbox is checked . Here is my code . But for some reason or another it doesn t execute it . Please help ----EDIT----- This is what I have for the moment . ----EDIT-- .. . .. . Solved it the problem was that the fieldcontain was also named remember Comment : What is remember in this context : if remember.checked 1 Comment : Later on it should remember email and password . It s for a login page Comment : What I am trying to say is that remember is undefined in that context . Try console.log remember . Comment : Which version of HTML are you using It s not really XHTML is it .. . Answer : remember is undefined and the checked property is a boolean not a number .", "Question : I am buildin a mobile web app with jquery-mobile and I want to check if a checkbox is checked . Here is my code . But for some reason or another it doesn t execute it . Please help ----EDIT----- This is what I have for the moment . ----EDIT-- .. . .. . Solved it the problem was that the fieldcontain was also named remember Comment : What is remember in this context : if remember.checked 1 Comment : Later on it should remember email and password . It s for a login page Comment : What I am trying to say is that remember is undefined in that context . Try console.log remember . Comment : Which version of HTML are you using It s not really XHTML is it .. . Answer : Try This", "Question : I am buildin a mobile web app with jquery-mobile and I want to check if a checkbox is checked . Here is my code . But for some reason or another it doesn t execute it . Please help ----EDIT----- This is what I have for the moment . ----EDIT-- .. . .. . Solved it the problem was that the fieldcontain was also named remember Comment : What is remember in this context : if remember.checked 1 Comment : Later on it should remember email and password . It s for a login page Comment : What I am trying to say is that remember is undefined in that context . Try console.log remember . Comment : Which version of HTML are you using It s not really XHTML is it .. . Answer : This should allow you to check if element with id remember is checked Comment : is does not belong to the DOM element object Comment : .is - is a jQuery function . .checked is javascript .", "Question : Goal : A jQuery Mobile popup with a searchable list of people that can be checked off . When checked they are displayed in a table list and removed when unchecked but I haven t figured that part out yet . I ve gotten it working where they show up in the list when the checkbox is clicked - but that seems to have broken the actual checkbox so it doesn t display the check . Why and how do I fix Feel free to suggest a better way to do this whole thing . Fiddle : http : jsfiddle.net 2sRAc .. . .. . HTML : .. . .. . JS : .. . .. . I d also love help figuring out the uncheck remove code and making the list with checkboxes look better but I figure those are separate questions.. . .. . Answer : Working example : http : jsfiddle.net Gajotres uP9bn .. . .. . You can t use listview refresh on something that is not a listview : .. . .. . I have removed it and now it works : .. . .. . Find out more in my other article : jQuery Mobile : Markup Enhancement of dynamically added content http : stackoverflow.com a 14550417 1848600 . Comment : whoops - that makes sense I initially had it as a jquery-mobile-listview and then changed it to a table . Thanks", "Question : And I use this script : .. . .. . When I put this to header .page-header .on tap works great but when input .on tap nothing happens .. . .. . Why onclick on input dont work on mobile-devices Comment : try vclick instead of tap . document .on vclick .selector function code here .. . Answer : You have to understand you are not taping on a checkbox input you are taping on a jQuery Mobile representation of that checkbox . Original in put is hidden . This will work : Comment : I know this I ve tried your code but still doesn t work When I m changing .ui-checkbox works great but in fieldset tap event doesn t work why Comment : What platform are you using for the test Comment : Firefox on MacOS Chrome on iOS Problem was in event . I m changed tap event to change event and works great . Thanks", "Question : I am buildin a mobile web app with jquery-mobile and I want to check if a checkbox is checked . Here is my code . But for some reason or another it doesn t execute it . Please help ----EDIT----- This is what I have for the moment . ----EDIT-- .. . .. . Solved it the problem was that the fieldcontain was also named remember Comment : What is remember in this context : if remember.checked 1 Comment : Later on it should remember email and password . It s for a login page Comment : What I am trying to say is that remember is undefined in that context . Try console.log remember . Comment : Which version of HTML are you using It s not really XHTML is it .. . Answer : If you are using this form-for mobile app then you may use the required attribute html5 . you dont want to use any java script validation for this . It should work Comment : Thanks a lot Luke", "Question : I have several collapsible check-boxes and am trying to check uncheck all the boxes within that section . HTML .. . .. . Currently when I click on the main checkbox it simply opens and closes the collapsible dialog . JQuery .. . .. . JQuery code that doesn t seem to work . Any tips would be helpful Comment : Welcome to SO . Refer my answer http : stackoverflow.com a 11331931 500725 Comment : I got your problem and i have updated my answer http : stackoverflow.com a 11331931 500725 and look at my live demo to see working version . .. . Answer : I don t about what this function fixContentHeight is doing . Do this way it works as expected . Follow the same fashion for other checkbox sections . Refer LIVE DEMO http : jsfiddle.net SivaCharan XcsPP .. . .. . UPDATED : .. . .. . Refer this same piece of code which I have done some modifications to works for all checkbox sections .. . .. . HTML : .. . .. . Actually on your HTML UL tag is missing . Refer LIVE DEMO 2 http : jsfiddle.net SivaCharan XcsPP 1 .. . .. . UPDATED 2 : .. . .. . I have gone through your code and modified it . Finally I got your issue with the checkboxes . You need to refresh the checkboxradio to get updated with checked value of all checkboxes . You need to use : - .. . .. . JS : .. . .. . Refer LIVE DEMO 3 http : jsfiddle.net SivaCharan XcjR3 7 Comment : The fixContentHeight is because I m working with JQuery-Mobile so I need it for the mobile-devices . But your code didn t work either Comment : @raster : Have you referred my live demo 2 Comment : Unfortunately placing ul tags and the updated checkbox code breaks my entire project Comment : @raster : I have updated the answer . Refer LIVE DEMO 3 . I got your problem you need to refresh the checkboxes when ever you click on main section .", "Question : I m taking my first steps in jQuery Mobile and I m getting a bit disappointed with the lack of customization it provides.. . .. . .. . As an example I have a simple-form and I d like to customize the layout of the form components . This is my code : .. . .. . See the fiddle http : jsfiddle.net 5avUc 1 . Concretely I d like : .. . .. . The rememberMe checkbox to be as wide as the text inside and the info button to be inline with the checkbox . The group containing the previous checkbox and button to be aligned to the right . The submit button to be to the right as well . Please provide an example of how such things can be achieved.. . .. . .. . EDIT : I d like something like this : .. . .. . desired layout http : i.stack.imgur.com Xssuw.png Comment : jsfiddle.net 5avUc 2 http : jsfiddle.net 5avUc 2 check this Comment : Updating example . I ve used grids to achieve what you want jsfiddle.net 5avUc 3 http : jsfiddle.net 5avUc 3 .. . Answer : Layout should never be primarily the responsibility of Javascript code as such you shouldn t blame jQuery Mobile for this . Customization for different screen sizes should be done with CSS Media Queries http : webdesignerwall.com tutorials css3-media-queries instead click the link for more examples than you ll ever need . Comment : It has nothing to do with @media queries . This can be achieved by using ui-grids . Comment : @Niels I m not blaming jQuery Mobile but as far as I understand it s intended to allow mobile developers to create apps without writing any CSS . In fact it includes CSS classes and HTML attributes than can be used to customize the interfaces.. . I m only saying that those customization options are very few in my opinion.. .", "Question : null .. . Answer : I have an app that has a listview with checkboxes on it . Here is the method that actually draws the listview . panelListId is the ID of the UL tag that contains the listview . On the first draw I call it this way and everything works fine : .. . .. . When someone clicks on the listview I remove all of the entries in the list and add all of the entries for the sub-list . When they click on the sub-list I re-create the original list using this code : .. . .. . But this time checkboxes don t get rendered as jquery-mobile components but as regular old HTML checkboxes . Can someone tell me why Comment : can the behavior be shown in a jsfiddle at all Comment : @gloomy.penguin I don t think so . I d have to load all of the data out of our web service here at the office . : Comment : when you do jQuery + panelListId .empty .. . in the refresh code is that just removing the checkbox items or is it clearing out the whole thing including the li that contained the checkboxes and hidden person info input I keep editing this comment sorry .. . I m just wondering if some styling or css class was removed and not included during the refresh.. . Comment : @gloomy.penguin It is removing everything including the li entries that contained the checkbox . Comment : I feel like this is getting left out somewhere for the refresh : data-role listview data-theme e or maybe a fieldset or something of that nature . I haven t worked with the jquery-mobile before though.. . so.. . But if the checkboxes are there correctly and the only thing wrong is they re not styled right then the jquery isn t noticing them appropriately . try link 1 http : stackoverflow.com questions 15383531 jquery-mobile-doesnt-apply-style-on-dynamic-checkboxes-and-cant-clicked or link 2 http : stackoverflow.com questions 5663033 jquery-mobile-dynamic-checkboxes-lose-style rq 1", "Question : I am buildin a mobile web app with jquery-mobile and I want to check if a checkbox is checked . Here is my code . But for some reason or another it doesn t execute it . Please help ----EDIT----- This is what I have for the moment . ----EDIT-- .. . .. . Solved it the problem was that the fieldcontain was also named remember Comment : What is remember in this context : if remember.checked 1 Comment : Later on it should remember email and password . It s for a login page Comment : What I am trying to say is that remember is undefined in that context . Try console.log remember . Comment : Which version of HTML are you using It s not really XHTML is it .. . Answer : checked is boolean property so you can directly use it in IF condition : - Comment : I always get the message You didn t check it Let me check it for you . Comment : Nope its working fine for me i am getting both alert messages . Comment : @Steaphann Did you replace the word remember with your checkbox id ...oh just noticed 2012 0.o ...p.s . you forgot the semi-colon after the 2nd alert statement Comment : and you have so many same ids. . all ids should be unique", "Question : null .. . Answer : I am facing an issue with jQuery Mobile on iPhone . I have a list of checboxes and a checkbox to select All . After an initial few taps on the checkbox the check box takes few seconds to get marked as checked unchecked . The checkbox doesnt get marked unless the user waits for a few seconds or scroll the screen . This seems to be an issue only with this particular phone as it works fine on desktop browsers and Android devices . Here is the script : .. . .. . Please let me know if anyone has faced this particular issue or have any suggestions . Thanks Comment : Experiencing the same issue on iOS . Comment : Same on Windows Phone 8 too Comment : It sounds like you need to strip back your query to see what is causing the lag . It can only be down to something using up resources . This only becomes evident on phones as they are less powerful than a dev PC . In my experience the issue is with the same bit of code being called multiple times . So it can be tricky to identify unless their is a physical evidence of the code being run multiple times eg some HTML being added multiple times . Strip your code back and build it back up piece by piece and test it on the device where you ve been seeing the issues . Comment : I tried with different logic for looping but the issue still persists . Then I came across some articles which talk abt the respose lag in JQM pages with large listviews . Seems to be an valid issue with low end phones and iPhones with older versions of iOS . Can read abt it here link http : blog.jquerymobile.com page 3 under Key Changes Comment : It Could be the 300 millisecond delay on ios devices . You can try a jquery plugging called fastclick to eliminate the delay . I haven t try it yet myself --- you can check this Article Question --- stackoverflow.com questions 12238587 http : stackoverflow.com questions 12238587 eliminate-300ms-delay-on-click-events-in-mobile-safari", "Question : I am buildin a mobile web app with jquery-mobile and I want to check if a checkbox is checked . Here is my code . But for some reason or another it doesn t execute it . Please help ----EDIT----- This is what I have for the moment . ----EDIT-- .. . .. . Solved it the problem was that the fieldcontain was also named remember Comment : What is remember in this context : if remember.checked 1 Comment : Later on it should remember email and password . It s for a login page Comment : What I am trying to say is that remember is undefined in that context . Try console.log remember . Comment : Which version of HTML are you using It s not really XHTML is it .. . Answer : You have two IDs as remember IDs need to be unique to each item . Comment : Better use comments. .", "Question : I have several collapsible check-boxes and am trying to check uncheck all the boxes within that section . HTML .. . .. . Currently when I click on the main checkbox it simply opens and closes the collapsible dialog . JQuery .. . .. . JQuery code that doesn t seem to work . Any tips would be helpful Comment : Welcome to SO . Refer my answer http : stackoverflow.com a 11331931 500725 Comment : I got your problem and i have updated my answer http : stackoverflow.com a 11331931 500725 and look at my live demo to see working version . .. . Answer : I understand this question is old but for those looking for a jQuery 2.x and jQuery Mobile 1.4.3 example try this : .. . .. . .. . .. . HTML : .. . .. . .. . .. . .. . .. . JS .. . .. . .. . .. . JSFiddle DEMO http : jsfiddle.net katalin 2003 uHcQL", "Question : I have several collapsible check-boxes and am trying to check uncheck all the boxes within that section . HTML .. . .. . Currently when I click on the main checkbox it simply opens and closes the collapsible dialog . JQuery .. . .. . JQuery code that doesn t seem to work . Any tips would be helpful Comment : Welcome to SO . Refer my answer http : stackoverflow.com a 11331931 500725 Comment : I got your problem and i have updated my answer http : stackoverflow.com a 11331931 500725 and look at my live demo to see working version . .. . Answer : http : jsfiddle.net mynameisdonald p584k 6 Comment : The example was really helpful but it didn t seem to help . When i select the Education checkbox it still opens and closes the collapsible dialog Comment : Has this fixed it for you Comment : Sorry not it didn t work Comment : Can you jsfiddle your entire area including the plugin Comment : I have placed my entire hmtl and jquery-mobile code in jsfiddle . jsfiddle.net XcjR3 8 http : jsfiddle.net XcjR3 8 It would be amazing if you could take a quick look and make sure I m not overlooking anything ." ] }
[ "yes-answer-long", "yes-answer-short" ]
implementation
UNK_RELATION
curl@http@141
curl -- curl is a computer software project providing a library and command-line tool for transferring data using various protocols such as @placeholder ftp and telnet .
{ "confidence": [ 41.85016632080078, 38.889862060546875, 38.889862060546875, 38.009010314941406, 38.009010314941406, 37.299110412597656, 37.120330810546875, 36.89949035644531, 36.776546478271484, 36.170616149902344, 35.59780502319336, 35.59780502319336, 35.59780502319336, 35.59780502319336, 35.59780502319336, 35.27436828613281, 35.24304962158203, 34.98809051513672, 34.461299896240234, 34.26811218261719, 34.26663589477539, 34.207054138183594, 34.078731536865234, 34.03706741333008, 34.01341247558594, 33.99262237548828, 33.8724365234375, 33.85114288330078, 33.815895080566406, 33.7366828918457, 33.56095886230469, 33.51336669921875, 33.51336669921875, 33.459346771240234, 33.40177536010742, 33.27063751220703, 33.226600646972656, 33.21192932128906, 33.174766540527344, 33.023582458496094, 32.947757720947266, 32.94620895385742, 32.79276657104492, 32.775604248046875, 32.752010345458984, 32.74490737915039, 32.715049743652344, 32.61308288574219, 32.56073760986328, 32.54830551147461, 32.54491424560547, 32.376075744628906, 32.348533630371094, 32.348533630371094, 32.331687927246094, 32.331687927246094, 32.331687927246094, 32.331687927246094, 32.31353759765625, 32.25529479980469, 32.25515365600586, 32.25515365600586, 32.25515365600586, 32.17274856567383, 32.13836669921875, 32.106910705566406, 32.043636322021484, 32.04344177246094, 32.02189254760742, 31.952627182006836, 31.799711227416992, 31.789716720581055, 31.720279693603516, 31.679357528686523, 31.663578033447266, 31.638629913330078, 31.626270294189453, 31.62178611755371, 31.62178611755371, 31.62178611755371, 31.61876678466797, 31.58297348022461, 31.490631103515625, 31.45856475830078, 31.44794273376465, 31.44794273376465, 31.44794273376465, 31.44794273376465, 31.43229103088379, 31.33616065979004, 31.257083892822266, 31.18520736694336, 31.18520736694336, 31.18520736694336, 31.18520736694336, 31.18010139465332, 31.165613174438477, 31.123241424560547, 31.091575622558594, 31.08183479309082 ], "content": [ "cURL supports following protocols : HTTP HTTPS FTP FTPS SCP SFTP TELNET LDAP LDAPS DICT FILE TFTP .", "cURL in PHP is a bridge to use command-line cURL from the php language", "In order to use the command-line version of curl you need the curl executable .", "The curl example is manual command-line", "curl from the terminal on the command-line", "Try to execute curl in command-line :", "Enjoy using curl library .", "With the curl command-line tool is it possible to echo print or view the request and not send it", "I have explained use of various CURL options required for CURL PROXY .", "to install php5-curl under opensuse : .. . .. . - software - software management - search for curl - check php5-curl case and accept .", "This script mimicks your curl command-line :", "BTW it fails also by command-line CURL.. .", "Certainly neither is as easy as the curl command-line version .", "It converts a curl command-line operation into an R function .", "But that s a command-line with curl outputting to stdout .", "The best solution is to use xargs and curl from the command-line : .. . .. . This will download urls or curl commands from a file .", "If you re using curl from a library and not on the command-line make sure you don t put http : in the Host header .", "stackoverflow.com questions 24053634 using-curl-command-in-java http : stackoverflow.com questions 24053634 using-curl-command-in-java", "Find the curl section and check what Protocols are supported .", "Try using curl --data-urlencode rather than just curl .", "I am having curl command which is working fine in curl .", "I m trying to get the data of a page by curl library .", "See also How to display request headers with command-line curl http : stackoverflow.com questions 3252851 how-to-display-request-headers-with-command-line-curl .", "You can use shell-exec and command-line curl .", "We are currntly using version .. . curl --version curl 7.19.5 IA64-HP-VMS libcurl 7.19.5 OpenSSL 0.9.7d Protocols : tftp ftp telnet dict http file https ftps Features : NTLM SSL I am in the process of updating to a newer version and will let you know if that solves my problem", "D : software curl curl.exe .. . 4 .", "I tried to enable curl on cygwin but it says bash : curl : command not found .. . .. . How do I install curl on cygwin", "helloacm.com curl http : helloacm.com curl", "The current curl command is below .", "So please try to add the -k --ftp-ssl options and use the ftp url to enable SSL for your curl command for example curl -k --ftp-ssl -u webappname username : password ftp : hostname .ftp.azurewebsites.windows.net", "in PHP CLI you have to write statement in one line with semicolan saperated otherwise scope of curl is expired in next command execution .. . .. . Also you dont have executed curl using curl exec curl", "I m trying to replicate the following command-line curl : .. . .. . Does anyone have an example in either www : : curl or lwp perhaps", "OLD-CURL-OUTPUT : .. . .. . NEW-CURL-OUTPUT : .. . .. . The Last line of the output is where the ab command gets stuck .", "Trying to get the data from ESPN using curl .", "its use for command-line cURL from the php language .", "CURL is not an image-processing library .", "No it shows all protocols it was built to support see curl lib version.c https : github.com curl curl blob master lib version.c L187 .", "The following curl command from remote host fetched data .. . .. . Same curl command with https : seems to have problem fetching data", "D : software curl .. . .. . Now you can run from the command-line by typing :", "A similar result is given using curl command .", "I m using cUrl at my project .", "2 . using multi curl .", "Consider the following works for me Curl command : .. . .. . curl http : 192.168.2.131 : 6800 schedule.json -d project a -d spider b .", "all compiling does is replace the curl and curl-config file in the library folder .", "I am using https : github.com ixudra curl as a Curl library for Laravel does anyone know how to run the below command through the Curl Library .. . .. . I need to curl a url using HTTP basic-authentication and cant seem to complete using this library .", "First using curl command-line options in the headers will not work .", "with the curl-commandline tool", "My current version : curl --version curl 7.15.5 x86 64-redhat-linux-gnu libcurl 7.15.5 OpenSSL 0.9.8b zlib 1.2.3 libidn 0.6.5 Protocols : tftp ftp telnet dict ldap http file https ftps Features : GSS-Negotiate IDN IPv6 Largefile NTLM SSL libz", "may not have curl library .", "OAuth Client library or using the plain cURL", "I have a curl command to use .. . .. . Can anybody tell equivalent java code for the above curl command .", "I m developing a component require to use a management software api which is using curl to accessing the data in that software .", "The string to be posted is the same as in the curl command", "The simple curl command is something like .", "I get the same error if I use curl from the command-line .", "Were you able to produce the correct output with command-line curl", "The plain curl dev.machine.com caches dependency clear on the command-line works fine .", "What happens when you send the same XML with command-line curl", "This link might help stackoverflow.com questions 24053634 using-curl-command-in-java http : stackoverflow.com questions 24053634 using-curl-command-in-java", "For this i m using curl in cmd .", "Can curl command be used for this .", "In the curl command the @ accomplishes that .", "My curl command was incorrect .", "My problem is doing this using the curl command .", "I have this command that runs from command-line perfectly and I need to transform it into PHP curl and get headers for response .", "Line 78 replace curl .. . with new curl . . your object instancing is incorrect .", "I do not know the Stripe API but just so you know : curl http : curl.haxx.se docs manpage.html is a command-line tool thus you can t copy-paste as is a curl command within your Ruby code .", "It should be curl the curl handle .", "wget and curl are command-line stand-alone programs for downloading one or more files from remote servers using a variety of options conditions and protocols .", "When I use curl from the command-line it perfectly works curl -v http : mycompanyserver", "If you unzip the curl tool to the following folder : C : Users Umberto Curl the following should work if you run it in a Windows Powershell command-prompt .", "Using the samples in the O Reilly book CouchDB - the definite guide I want to use CURL or another command-line tool if appropriate to work with desktopcouch .", "phpsense.com 2007 php-curl-functions http : phpsense.com 2007 php-curl-functions blog.unitedheroes.net curl http : blog.unitedheroes.net curl", "See the example of post data using curl .", "How can I do this with curl library", "The issue was digest function of curl command", "This request is using the Fitbit OAuth 1.0a API which will be removed in just over a month http : stackoverflow.com questions 35761623 command-line-curl-to-php-curl-for-fitbit .", "So I ve run the query via curl from the Linux command-line .", "It can convert a command-line curl code into an R expression .", "What happens when you use curl on the command-line to get the item", "If you are on a VPS and a curl command-line call gives curl : 35 Cannot communicate securely with peer error try above yum update should help .", "I am able to get redirected url using below curl command .", "Using cURL I can usually pull the data with a delay ranging from 1-3 seconds from the time I execute curl -b.. . from the command-line before the response shows up .", "The API documentation http : developer.lifx.com says to use a PUT request : .. . .. . Now using that curl command works in the command-line .", "Trying to run this curl command to access openstack .", "Please provide curl command to create the a new channel .", "Now paste your curl command on cmd and run it .", "Try this command please : yum install php-curl", "The cURL library explicitly depends on the C-library binding .", "for using --data-binary there is already an existing stackoverflow post on how to accomplish it using php-curl : data-binary parameter in cURL http : stackoverflow.com questions 17345150 data-binary-parameter-in-curl", "the problem was in my curl command .", "I am using cURL .", "I m using Curl with php .", "It seems that curl is using a cache .", "Using cURL you can .", "What does using curl with the verbose option show i.e . : curl -v ftp : ftp.omniture.com --user myname : mypassword -o a file.zip show", ".. . Try explicitly using the OS X provide curl in usr bin curl .", "This points not to curl but to the system resolver library .", "Since you are using curl 7.19.7 your curl is too old to use the necessary ciphers together with the NSS library .", "When I run this at the command-line the curl call prints all its output correctly in the terminal but the variable is not filled with that data ." ] }
{ "confidence": [ 49.416690826416016, 48.50324249267578, 47.829071044921875, 47.49283981323242, 46.75352096557617, 45.599456787109375, 45.28166580200195, 44.72420120239258, 44.149757385253906, 43.66645812988281, 42.55569839477539, 41.79643249511719, 41.793941497802734, 41.675567626953125, 41.66200637817383, 41.62665557861328, 41.612274169921875, 41.4165153503418, 41.02016067504883, 40.4676628112793 ], "content": [ "Question : null .. . Answer : Getting this error trying to connect a site via CURL on OSX 10.11.3 .. . .. . SSL : Can t load the certificate xxx xxx xxx cert.pem and its private key : OSStatus -61 .. . .. . CURL INFO : curl 7.47.0 x86 64-apple-darwin15.3.0 libcurl 7.47.0 OpenSSL 1.0.2f zlib 1.2.5 Protocols : dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp smb smbs smtp smtps telnet tftp Features : IPv6 Largefile NTLM NTLM WB SSL libz TLS-S .. . .. . I have tried several suggestions from the internet but nothing has worked . Any suggestions or guidance on how to resolve", "Question : null .. . Answer : Trying to use CURL from AIX 5.1 to a windows 2008 server . curl 7.45.0 powerpc-ibm-aix5.1.0.0 libcurl 7.45.0 OpenSSL 1.0.1p zlib 1.2.8 libidn 1.29 libssh2 1.4.3 .. . Protocols : dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 po p3s rtsp scp sftp smb smbs smtp smtps telnet tftp .. . Features : IDN IPv6 Largefile NTLM NTLM WB SSL libz TLS-SRP UnixSockets .. . .. . Here is the error . curl --verbose -T test.pdf -u DOMAIN uid : pwd .. . smb : server DEV pdfs .. . Trying xxx.30.32.46.. . .. . Total Received Xferd Average Speed Time Time Time Current .. . Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 -- : -- : -- -- : -- : -- -- : -- : -- .. . Connected to bfripshare xxx.30.32.46 port 445 0 .. . Closing connection 0 .. . curl : 7 Couldn t connect to server .. . .. . Now I know ports 445 are open between the two it resolves the IP address I CAN copy files to the windows share over SMB from this machine via another mechanism that s not as versatile as CURL so I know the network is open . Curl does work over FTP to other machines it just won t do SMB . I know the user id and password are correct . When I look at the windows event-viewer it doesn t show a thing no errors no nothing . Does Curl just not work from AIX to windows I can t get any error other than curl : 7 Couldn t connect to server does it use ports other than 445 Thanks in advance Comment : This site is for programming questions . We are not general software networking tech support .", "Question : I can t install Perlbrew using the easy script : curl -L http : install.perlbrew.pl bash .. . .. . I did it before easily but now in a brand new CentOS 6.5 I get a 400 Bad Request . This is the output : .. . .. . And this is the response if I do the curl part without passing it to bash .. . .. . curl -L http : install.perlbrew.pl .. . .. . This is my Curl version : curl -V .. . .. . curl 7.19.7 x86 64-redhat-linux-gnu libcurl 7.19.7 NSS 3.14.0.0 zlib 1.2.3 libidn 1.18 libssh2 1.4.2 Protocols : tftp ftp telnet dict ldap ldaps http file https ftps scp sftp .. . .. . Features : GSS-Negotiate IDN IPv6 Largefile NTLM SSL libz .. . .. . Usual compilers are also installed with yum groupinstall Development Tools .. . .. . What can be failing It is really strange.. . Comment : Try again Its working now . Good luck . Comment : Not working here . Maybe something is missing or something is not needed in my new Centos . The message includes Your browser sent a request that this server could not understand . So Curl or Bash is sending something wrong . .. . Answer : The http : install.perlbrew.pl link actually points to https : raw.githubusercontent.com gugod App-perlbrew master perlbrew-install which is a bash script . I believe that the curl command in this script is the one having the problem . Try this : Save the perlbrew-install bash script to your machine edit the curl line : .. . .. . PERLBREWDOWNLOAD curl -f -sS -Lo LOCALINSTALLER PERLBREWURL .. . .. . by adding the -k option to disable cert validation See curl insecure option http : stackoverflow.com questions 8520147 curl-insecure-option . Comment out the surrounding if else statements and then run the script from your command-line . Alternatively you could try installing wget and do the suggested command from the perlbrew.pl site : .. . .. . wget -O - http : install.perlbrew.pl bash Comment : Great it works using the insecure option . Great . But i do not fully understand if the problem is in my server or in the target server . Maybe it is because mine has a self-signed certificate Comment : I just ran into this recently as well on Oracle Linux 6.5 curl version 7.19.7 . Making same request from an Ubuntu host succeeds where curl verson 7.22.0 . So believe this is a curl issue . Unfortunately 7.19.7 is currently the most recent curl for Oracle Linux 6.5", "Question : I m in the process of building an web app that will besides other things need to connect to a FTP server to download or upload files . The application is written in PHP and it s hosted on a Linux server . What I was wondering is whether or not it would be possible to also provide support for SFTP servers but after some quick searches on Google it seems that this is not all that simple . So the question is : What would be the best way to use SFTP from within PHP Is there a class that could also provide support for FTP as well as SFTP so that same functions could be used for both Thank you in advance for your time titel .. . Answer : Yes you can do that with cURL http : www.php.net manual en book.curl.php . To switch from FTP to SFTP all you have to do is to change protocol option form CURLPROTO FTP to CURLPROTO SFTP . cURL supports following protocols : HTTP HTTPS FTP FTPS SCP SFTP TELNET LDAP LDAPS DICT FILE TFTP . BTW . SFTP is not to be confused with FTPS . SFTP is SSH File Transfer Protocol while FTPS is FTP over SSL . Comment : Actually you don t even need to mess with CURLOPT PROTOCOLS . You can just put sftp : at the front of the hostname you pass with CURLOPT URL and cURL will automatically detect and use SFTP .", "Question : I want to use http 2 with cURL . First I got an error when I tried this curl --http2 https : http2.akamai.com - Protocol not supported . I installed nghttp2 and reinstalled cURL like it is described here http : stackoverflow.com questions 20116949 using-http2-0-option-with-curl-7-33-0-gives-unsupported-protocol . The error is gone and I can get data with the curl --http2 now . But the page https : http2.akamai.com tells me This browser is not HTTP 2 enabled while in chrome or directly via nghttp2 it says You are using HTTP 2 right now . I m using mac os x and installed all dependencies in the latest versions via homebrew . The curl sources 7.41 I downloaded here http : ftp.sunet.se pub www utilities curl .. . Answer : You re probably not running the newly built curl or your new curl build is using the previous libcurl install . Invoke curl --version and make sure it lists HTTP2 as supported included in Features . You also need to make sure you build curl with an TLS library version that has support for ALPN for HTTP 2 over TLS . If you build with openssl you need version 1.0.2 or later . I just tried now on https : http2.akamai.com and it says You are using HTTP 2 right now just fine when I try my curl build on it like this : .. . .. . You can view the verbose output and you should see the ALPN offer and what protocol curl and the server agree on using . Comment : Yes HTTP2 is listed as a feature . Here is the complete output : localhost : svenkeinath curl --version curl 7.41.0 x86 64-apple-darwin14.3.0 libcurl 7.41.0 OpenSSL 0.9.8zd zlib 1.2.5 nghttp2 0.7.7 Protocols : dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp smb smbs smtp smtps telnet tftp Features : IPv6 Largefile NTLM NTLM WB SSL libz HTTP2 UnixSockets Comment : Yes : Thank you Rebuilding cURL with . configure --with-ssl usr local Cellar openssl 1.0.2a-1 did the trick . Comment : so....what do you do if you installed http2 c library and curl doesn t show the http2 protocol as being available Comment : I d need more details . I recommend taking your issue to the curl-library list and we can work it out there .", "Question : I have downloaded the latest cURL zip file from the website ver 2.7.24.zip . Now how do I install this in my windows environment to be able to use it I do not need to build cURL from the source just to use it . do I need to compile it If yes then how do I do that I looked for any documentation on installation but that points to installing cURL as project from source . .. . Answer : 1 . Download curl zip .. . 2 . Extract the contents if you have downloaded the correct version you should find curl.exe .. . 3 . Place curl.exe in a folder where you keep your software e.g . D : software curl curl.exe .. . 4 . To run curl from the command-line .. . .. . a Right-hand-click on My Computer icon .. . .. . b Select Properties .. . .. . c Click Advanced system settings link .. . .. . d Go to tab Advanced - Environment Variables button .. . .. . e Under System variable select Path and Edit button .. . .. . f Add a semicolon followed by the path to where you placed your curl.exe e.g . D : software curl .. . .. . Now you can run from the command-line by typing : Comment : +1 useful answer Comment : Thank you Best explanation so far .", "Question : This question is similar to another one concerning pyCURL http : stackoverflow.com questions 1942719 pycurl-tls-handshake-error .. . .. . I have the following error when I send a post request to a secure url using CURLpp http : stackoverflow.com questions 1942719 pycurl-tls-handshake-error .. . .. . Ok so according to the answer to the previous question http : stackoverflow.com questions 1942719 pycurl-tls-handshake-error I should use libcurl with openSSL . If I run curl -v I get this : .. . .. . curl 7.19.7 i486-pc-linux-gnu libcurl 7.19.7 OpenSSL 0.9.8k zlib 1.2.3.3 libidn 1.15 Protocols : tftp ftp telnet dict ldap ldaps http file https ftps Features : GSS-Negotiate IDN IPv6 Largefile NTLM SSL libz .. . .. . So I should be using openSSL and not see gnuTLS . So if I try to send the very same request through curl directly with the command-line it works fine and I see on the command output the result I am expecting . So It turns out when I switch to CURLpp it uses gnuTLS instead of openSSL . Is there something I have to configure in order to specify I want openSSL with CURLpp .. . Answer : cURLpp is just a wrapper over libcURL it doesn t dictate which SSL implementation libcURL uses . Am not exactly sure how you ve come to the when I switch to CURLpp it uses gnuTLS instead of openSSL conclusion but I suspect that you have multiple libcurl.so installed the one curl uses and another that your app is using via cURLpp . As a side note the TLS fatal alert .. . received mentioned in the linked question was probably a result-of a misconfiguration on the server-side invalid servername TLS extension failure to negotiate ciphers etc . Comment : Indeed I have libcurl-gnutls.so libcurl-gnutls.so.4.1.1 installed . I need to find out how I get CURLpp not to use them . Comment : I have installed libcurl4-openssl-dev and reinstalled curlpp I don t have the error anymore . Thanks", "Question : I m trying to reproduce the following command to upload a file via sftp on my PHP app : .. . .. . The above commands works just fine I had to recompile libcurl on my ubuntu box in order to make it work though . However when I tried to use PHP s curl library things didn t go so well for me . The code I m using is the following : .. . .. . This gives back error 79 : CURLE SSH 79 which I dont know how to fix . Have you faced this problem How did you fix it Any ideas Thanks Comment : What curl version and what libssh2 version are you using on what operating-system Which PHP version are you using and which version of the PHP curl extension Comment : curl 7.19.7 x86 64-pc-linux-gnu libcurl 7.19.7 OpenSSL 0.9.8k zlib 1.2.3.3 libidn 1.15 libssh2 1.2.2 Protocols : tftp ftp telnet dict ldap ldaps http file https ftps scp sftp Features : GSS-Negotiate IDN IPv6 Largefile NTLM SSL libz Comment : Over ubuntu-11.10 with PHP 5 . . ill get back to you on the curl extension version .. . Answer : It means libcurl got some kind of error from the SSH layer libssh2 . If you enable VERBOSE you might see further details . You re using fairly old libcurl and libssh2 versions so it is not unthinkable that you can fix this problem simply by upgrading those to modern versions . Comment : I ll do just that and see where it gets me . Thanks a lot Comment : @dabito what version of libssh2 1.2.2 you have used.. . Comment : This question was asked long ago and I no longer have access to the environment in question adding -vvv to connections helped .", "Question : Since 3 days I can t connect to the paypal-sandbox . I found out that they maybe dissabled the support for SSLv3 . So i tried to change the SSL Version in my curl Request by setting : .. . .. . But it still give me the same error : .. . .. . Any idea why the script is still using SSLv3 I am using php-5.5 and the following curl version currently asking at my hoster managed hosting at 1 1 to upgrade to a newer version .. . .. . curl 7.21.0 i486-pc-linux-gnu libcurl 7.21.0 OpenSSL 0.9.8o zlib 1.2.3.4 libidn 1.15 libssh2 1.2.6 Protocols : dict file ftp ftps http https imap imaps ldap ldaps pop3 pop3s rtsp scp sftp smtp smtps telnet tftp Features : GSS-Negotiate IDN IPv6 Largefile NTLM SSL libz .. . Answer : Perfect I wanted LibCurl to use OpenSSL instead of NSS this has helped me fix it to tweak the php libcurl to use OpenSSL . My Centos7 PHP 5.6 was using .. . .. . and after the above fix it shows this is what I wanted . Here is the revised script that I have used on Centos7 with PHP 5.6.17", "Question : Could someone please direct me on how to upgrade curl on my centOS 5.11 server My current version : curl --version curl 7.15.5 x86 64-redhat-linux-gnu libcurl 7.15.5 OpenSSL 0.9.8b zlib 1.2.3 libidn 0.6.5 Protocols : tftp ftp telnet dict ldap http file https ftps Features : GSS-Negotiate IDN IPv6 Largefile NTLM SSL libz .. . Answer : 1 create a new file etc yum.repos.d city-fan.repo .. . .. . 2 Paste the following contents : .. . .. . 3 type : .. . .. . 4 And it should work .. . .. . Observe that for other rhel centos versions all you have to do is specify the appropriate city-fan url Comment : Thank you Tbalz that worked and now it is at the latest however the version displayed in phpinfo still shows the old version even after restarting apache . Is there anything else that I would need to do Comment : Even if you restart lighttpd or apache service the php-cgi processes can still be running . In order to fix this issue stop the service then kill php-cgi processes killall php-cgi Then started lighttpd and phpinfo is now showing that im running the new version of PHP . Comment : Hi Tbalz I tried what you suggested and phpinfo is still showing me the old version . I then rebooted the server and that also didn t help . Do you have any other ideas Thanks Comment : Try this command please : yum install php-curl Comment : Running that command gave an error because of a conflict : see i.imgur.com 8Ysl52B.jpg http : i.imgur.com 8Ysl52B.jpg", "Question : Since 3 days I can t connect to the paypal-sandbox . I found out that they maybe dissabled the support for SSLv3 . So i tried to change the SSL Version in my curl Request by setting : .. . .. . But it still give me the same error : .. . .. . Any idea why the script is still using SSLv3 I am using php-5.5 and the following curl version currently asking at my hoster managed hosting at 1 1 to upgrade to a newer version .. . .. . curl 7.21.0 i486-pc-linux-gnu libcurl 7.21.0 OpenSSL 0.9.8o zlib 1.2.3.4 libidn 1.15 libssh2 1.2.6 Protocols : dict file ftp ftps http https imap imaps ldap ldaps pop3 pop3s rtsp scp sftp smtp smtps telnet tftp Features : GSS-Negotiate IDN IPv6 Largefile NTLM SSL libz .. . Answer : The problem is that PayPal dropped support for SSLv3 TLS 1.0 and TLS 1.1 and now only support TLS 1.2 but the OpenSSL version cURL is built with 0.9.8o does not support TLS . At this point all you can do is hope the host can update OpenSSL cURL and PHP to a newer 1.0+ version of OpenSSL . As it stands now your cURL client doesn t speak TLS which is required by PayPal and there are no ways around it other than updating OpenSSL . Comment : The only solution is to upgrade to a newer CURL version that includes OpenSSL 1.0+ . Thanks for the advice :", "Question : With the curl command-line tool is it possible to echo print or view the request and not send it Sort of like a -n option I would like to see the request header body and anything else that s included . Is there anything else that s sent besides header body .. . Answer : A HTTP request http : www.w3.org Protocols rfc2616 rfc2616-sec5.html sec5 is constructed with a request line headers and a body . curl http : curl.haxx.se does not seem to have a flag to do a dry-run . Depending on your needs you might be able to see what you want using netcat http : netcat.sourceforge.net as a proxy :", "Question : Is there any way of limiting the amount of data CURL will fetch I m screen-scraping data off a page that is 50kb however the data I require is in the top 1 4 of the page so I really only need to retrieve the first 10kb of the page . I m asking because there is a lot of data I need to monitor which results in me transferring close to 60GB of data per month when only about 5GB of this bandwidth is relevant . I am using PHP to process the data however I am flexible in my data-retrieval approach I can use CURL WGET fopen etc . One approach I m considering is .. . .. . Does the above mean I will only transfer 6kb from www.website.com or will fopen load www.website.com into memory meaning I will still transfer the full 50kb .. . Answer : This is more an HTTP that a CURL question in fact . As you guessed the whole page is going to be downloaded if you use fopen . No matter then if you seek at offset 5000 or not . The best way to achieve what you want would be to use a partial HTTP GET request as stated in HTML RFC http : www.w3.org Protocols rfc2616 rfc2616-sec9.html : .. . .. . The semantics of the GET method change to a partial GET if the request message includes a Range header field . A partial GET requests that only part of the entity be transferred as described in section 14.35 . The partial GET method is intended to reduce unnecessary network usage by allowing partially-retrieved entities to be completed without transferring data already held by the client . The details of partial GET requests using Ranges is described here : http : www.w3.org Protocols rfc2616 rfc2616-sec14.html sec14.35.2", "Question : I want to bulk lookup ip details at ipinfo.io http : ipinfo.io developers bulk-lookup Here is my code . cat ips.txt xargs -I curl http : ipinfo.io region .. . .. . The file ips.txt contains three ip addresses each on a separate line : 1 8.8.8.8 2 8.8.4.4 3 1.2.3.4 .. . .. . This resolves only the last ip-address . It should give 1 California 2 Colorado 3 Washington . I get the below : .. . .. . curl : 3 Illegal characters found in URL curl : 3 Illegal characters found in URL Washington .. . .. . If I write ips.txt with only one ip-address for example 8.8.8.8 I get good results . I think there is something wrong with either my text file or the way I am using cat . Can you help me clean my code so that all three ip addresses are resolved Per request here are details of my setup . uname -a CYGWIN NT-10.0 OFFICECOMP 2.3.1 0.291 5 3 2015-11-14 12 : 44 x86-64 Cygwin .. . .. . curl -V curl 7.45.0 x86 64-unknown-cygwin libcurl 7.45.0 OpenSSL 1.0.2d zlib 1.2.8 lib idn 1.29 libssh2 1.5.0 Protocols : dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp scp sftp smb smbs smtp smtps telnet tftp Features : Debug IDN IPv6 Largefile GSS-API Kerberos SPNEGO NTLM NTLM WB SSL libz TLS-SRP UnixSockets Metali Comment : Without knowing the contents of ips.txt we can t do much . What you can do is replace the curl call with a script which does echo Trying url 1 curl 1 - that will allow you to see which one is failing . Comment : ips.txt is simply three single lines of three ip addresses 8.8.8.8 8.8.4.4 1.2.3.4 Comment : If I eliminate any two of the ip addresses and keep only one then the curl works fine and I get results . Comment : check your character-encoding of the TXT file and then check the character-encoding assumption of the PHP script . Both should be defined rather than assumed Comment : Thanks for the info . Probably not Cygwin issue because dealing with just text which should be universal barring any encoding issues but from what I can tell its not an encoding error it is complaining about a whole URL you are passing it Washington . But I don t see Washington in input . What about do cat -A ips.txt and update the question to include this . .. . Answer : So to summarize as a step-by step for future reference .. . .. . Running uname -A can reveal what system is being used for example revealing here it is Cygwin . This leads us to thinking about Windows vs Linux differences . One of the known differences are windows dos line endings . This can be revealed as well as with generally checking all contents of a text file with : .. . .. . Now if you find it contains M line endings as it did here it means the line endings are dos windows and not nix line endings which would show only lines ending with .. . .. . To fix this simply run .. . .. . Now if you run your original command with this fixed input file it seems CURL is happy with it and it works . Thank you as well MistaGill I learned about ipinfo.io from this post . Comment : Changing the line ending to LF worked for me I used Sublime Text", "Question : This is a follow-up to my previous question - Curl Usage on OpenVMS . So I got everything working OK on my smallish 39Mbyte file . I then changed my command file to try and deal with the proper target file which is just over 8Gig . I have 9 curl commands of the type .. . .. . Now I get the following error message on parts 4 5 and 9 - always the same parts .. . .. . At first I was thinking it was some kind of 2Gig limit on the range parameters but parts 6 and 7 work OK . Any thoughts ideas or work-arounds would be welcome . Incidentally parts 1 2 3 6 and 7 download just fine Comment : looks like a 32 64 bit issue so you better check the build to make sure you build it with the proper support .. . Answer : It looks like a 32 64 bit signed unsigned-integer problem . 3000000001 is 0xb2d05e01 and as an unsigned value fits into 32 bits interpreted as a signed 32-bit value it is -1294967295 . The offsets you use don t fit into 32-bit integers neither signed nor unsigned . From the output it is not obvious to me whether the error is in the client or the server . edit : I may have missed the curl version I just noticed that for VMS curl version 7.46 was released a couple of days ago . However I have no info on a changelog . But it may be worth to try a new client . Comment : @user2699504 To add to that : The value 4000000001 part5.zip start also overflows to a negative value . 5000000001 part6.zip start overflows to a positive value as does 6000000001 part7.zip start . 7000000001 part8.zip start and 8000000001 part9.zip start are negative . I ll go out on a limb and guess that values are being converted to 32-bit signed values without overflow checking and as long as the starting offset appears to be positive it does something . Comment : We are currntly using version .. . curl --version curl 7.19.5 IA64-HP-VMS libcurl 7.19.5 OpenSSL 0.9.7d Protocols : tftp ftp telnet dict http file https ftps Features : NTLM SSL I am in the process of updating to a newer version and will let you know if that solves my problem", "Question : I m writing an API and I m wanting to handle file uploads from a form POST . The markup for the form is nothing too complex : .. . .. . However I m having difficulties understanding how to handle this server-side and send along with a cURL request . I m familiar with sending POST requests with cURL with a data array and resources I ve read on uploading files tell me to prefix the filename with an @ symbol . But these same resources have a hard-coded file name e.g . Well which file path is this Where would I find it Would it be something like FILES image tmp name in which case my post array should look like this : .. . .. . Or am I going about this the wrong way Any advice would be most appreciated . EDIT : If someone could give me a code snippet of where I would go with the following code-snippets then I d be most grateful . I m mainly after what I would send as cURL parameters and a sample of how to use those parameters with the receiving script let s call it curl receiver.php for argument s sake . I have this web form : .. . .. . And this would be script.php : Comment : Would the http extension http : php.net manual en book.http.php be on topic Unlike cURL multi-protocol it s better tailored to HTTP . .. . Answer : Here is some production code that sends the file to an ftp may be a good solution for you : Comment : how fast is FTP Will it be much slower than HTTP uploads Comment : @think123 FTP can be faster or slower sometimes . It depends upon your ftp server . If they put a throttle on ftp uploads that can slow it down but otherwise ftp and http should be about equivalent . Comment : Ah thanks . I ve found this solution extremely useful . Comment : ftp should be faster than http due to the way http encodes everything . Comment : @Toby It s not really as simple as we would like sometimes http is faster . See answers here stackoverflow.com questions 717200 http : stackoverflow.com questions 717200 comparing-http-and-ftp-for-transferring-files", "Question : null .. . Answer : I have a vsftpd server configured with the following options : .. . .. . I m using R and the library curl not Rcurl to connect to this ftp and retreive the list of the files . I used this script to connect to other ftp servers in the past without any bug . However on this case the vsftpd server seems to generate an error when receiving the MDTM command : .. . .. . When I try to connect to the ftp using winscp I got no error in passive-mode however when I try to use the command-line and send the MDTM command I also receive an error . The R code I use is : .. . .. . Thanks for your help .", "Question : I am using cURL to try to download all files in a certain directory . here s what my list of files looks like : .. . .. . enter image description here http : i.stack.imgur.com 2r8xt.png .. . .. . I have tried to do in bash script : iiumlabs . .csv.pgp and iiumlabs and I guess curl is not big on wildcards . question : how do i download this directory of files using cURL Comment : Do you want to download the whole directory and wildcard is not really relevant here or just some files in it matching the wildcard Comment : @Micha G rny either one would be amazing Comment : do you have a simple solution : Comment : Are you bound to curl To be honest it s one of the most hard-to-use tools I ve ever seen . What is your platform Because in the post you mention bash and in the answer comments you mentioned .bat files.. . Also how is sftp relevant And does your example actually use FTP Because there s no ftp : there so I m pretty sure curl used HTTP.. . Comment : @Micha G rny no im not bound to curl . i need a tool that can access sFTP and FTP and download files . i am running on windows . i am at the same time looking for an app that will decrypt PGP after the files are downloaded .. . Answer : OK considering that you are using Windows the most simple way to do that is to use the standard ftp tool bundled with it . I base the following solution on Windows XP hoping it ll work as well or with minor modifications on other versions . First of all you need to create a batch script file for the ftp program containing instructions for it . Name it as you want and put into it : .. . .. . The first line opens a connection to the ftp server at ftp.myftpsite.com . The two following lines specify the login and the password which ftp will ask for replace login and pass with just the login and password without any keywords . Then you use mget to get all files . Instead of the you can use any wildcard . Finally you use quit to close the ftp program without interactive prompt . If you needed to enter some directory first add a cd command before mget . It should be pretty straightforward . Finally write that file and run ftp like this : .. . .. . where -i disables interactivity asking before downloading files and -s specifies path to the script you created . .. . .. . Sadly file-transfer over SSH is not natively supported in Windows . But for that case you d probably want to use PuTTy http : www.chiark.greenend.org.uk sgtatham putty download.html tools anyway . The one of particular interest for this case would be pscp which is practically the PuTTy counter-part of the openssh scp command . The syntax is similar to copy command and it supports wildcards : .. . .. . If you authenticate using a key file you should pass it using -i path-to-key-file . If you use password -pw pass . It can also reuse sessions saved using PuTTy using the load -load your-session-name argument . Comment : AMAZING THANK YOU SO MUCH Comment : how did you do this so fast did you know how to do this already or did you check documentation Comment : Well I knew it should have something like this I just needed a while to find how to get to the help of it and how to make it working . It wasn t as easy as such things are on Linux.. . Comment : does this handle sFTP i have a key file that needs to be used in order to gain access to a certain ftp Comment : Sorry but I have no idea . Also do you mean sFTP as in ftp+ssl or file-transfer over SSH", "Question : I want to verify that my web application does not have a path traversal vulnerability . I m trying to use curl for that like this : .. . .. . I would like the HTTP request to be explicitly made to the directory . . URL to test that a specific nginx rule involving proxy is not vulnerable to path traversal . I.e . I would like this HTTP request to be sent : .. . .. . But curl is rewriting the request as to the URL as can be seen in the output : .. . .. . Is it possible to use curl for this test forcing it to pass the exact URL in the request If not what would be an appropriate way Comment : Need any further info adding to my answer Comment : fernando did you ever get an answer to this question that only uses curl Comment : Which version of curl are you using I can t seem to replicate this behavior at least not when I curl a localhost URL . .. . Answer : I m not aware of a way to do it via curl but you could always use telnet . Try this command : .. . .. . telnet www.example.com 80 .. . .. . You ll see : .. . .. . Trying xxx.xxx.xxx.xxx.. . Connected to www.example.com . Escape character is . .. . .. . You now have an open connection to www.example.com . Now just type in your command to fetch the page : .. . .. . GET directory . . HTTP 1.1 .. . .. . And you should see your result . e.g . HTTP 1.1 400 Bad Request", "Question : I tried to enable curl on cygwin but it says bash : curl : command not found .. . .. . How do I install curl on cygwin .. . Answer : I just copied the folder curl-7.43.0 from zip file that I downloaded from curl website curl.haxx.se http : curl.haxx.se into cygwin64 folder on drive C : . And then I have used it with prefix curl in cygwin command terminal . My actual download location from softpedia http : www.softpedia.com get Programming File-Editors cURL.shtml download I have used Softpedia Mirror US Comment : If you install it directly bypassing the Cygwin setup .exe utility you won t get updates . Comment : When you are on a computer with no administrator privileges my method can help Also I am not so sure that you can t update it manually with console I don t have cygwin right now on my computer and I don t use it any more so you can try methods that are described in this thread http : superuser.com questions 214831 how-to-update-cygwin-from-cygwins-command-line . and also this thread http : stackoverflow.com questions 9260014 how-do-i-install-cygwin-components-from-the-command-line" ] }
[ "yes-answer-long", "yes-answer-short" ]
http
UNK_RELATION
qcolor@cmyk@83
qcolor -- in the qt platform the qcolor class provides colors based on rgb hsv or @placeholder values .
{ "confidence": [ 55.25004577636719, 54.82019805908203, 54.07428741455078, 47.4105110168457, 46.83000183105469, 43.81792449951172, 42.63209533691406, 41.84931945800781, 38.97202682495117, 38.97202682495117, 38.97202682495117, 38.53135681152344, 37.72307586669922, 34.34576416015625, 33.505313873291016, 33.0968132019043, 30.444766998291016, 30.413555145263672, 30.265438079833984, 30.258525848388672, 27.808040618896484, 26.266063690185547, 25.427295684814453, 24.900144577026367, 24.738201141357422, 22.922786712646484, 22.709121704101562, 22.70827293395996, 22.21795654296875, 22.19750213623047, 22.10790252685547, 21.86534881591797, 21.86534881591797, 21.712839126586914, 21.537460327148438, 21.200679779052734, 21.12578582763672, 20.487619400024414, 20.487619400024414, 20.399635314941406, 20.124008178710938, 20.124008178710938, 19.946636199951172, 19.58113670349121, 19.58113670349121, 19.58113670349121, 19.08829689025879, 18.326129913330078, 18.326129913330078, 18.326129913330078, 18.326129913330078, 18.269033432006836, 18.214763641357422, 18.149873733520508, 17.907169342041016, 17.839345932006836, 17.45183563232422, 17.023775100708008, 17.023775100708008, 16.6977481842041, 16.6977481842041, 16.6977481842041, 16.028766632080078, 15.796573638916016, 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 ], "content": [ "It isn t an exception in Qt but a question of class design of QColor .", "qcolor -- scalar .. . .. . scalar -- 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 .", "I am using opencv+Qt c++ and I want convert a QColor RGB pixel to an opencv BGR pixel :", "This requires an overload for qHash QColor", "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", "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 .", "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 .", "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 .", "If you already grabbed the QColor in color you can try for a QLabel label :", "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 .", "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 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 .", "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 .", "See documentation here http : doc.qt.io qt-5 qcolor.html rgb and here http : doc.qt.io qt-5 qcolor.html QRgb-typedef .", "You probably want to swap B and R since in OpenCV you usually work on BGR while in Qt in RGB .", "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 .", ".. . All the values must be in the range 0-255 .", "How would you set a custom color using RBG values to a QBrush", "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 .", "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 .", "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 .", "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 .", "Also it is good practice to use qt stylesheet system It is easy and has a lot of perks .", "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 .", "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 .", "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 .", "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 .", "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 .", "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 ." ] }
{ "confidence": [ 74.07959747314453, 73.92399597167969, 69.80191040039062, 69.43964385986328, 63.003814697265625, 56.105674743652344, 47.1516227722168, 43.56620788574219, 42.43419647216797, 38.144287109375, 37.40105438232422, 37.244014739990234, 33.96142578125, 28.65567398071289, 26.65785026550293, 20.217376708984375, 20.117931365966797, 18.3212833404541, 17.3251953125, 12.36292552947998 ], "content": [ "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 : 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 : 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 : 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 : 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 : 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 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 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 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 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 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 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 : 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 : 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" ]
cmyk
UNK_RELATION
flux@facebook@83
flux -- an application-design paradigm used as a replacement for mvc pioneered at @placeholder by jing chen .
{ "confidence": [ 50.031829833984375, 33.019954681396484, 30.396041870117188, 28.332447052001953, 28.32162857055664, 27.826297760009766, 26.842031478881836, 26.7550048828125, 26.740964889526367, 26.095382690429688, 25.748546600341797, 25.741432189941406, 25.732112884521484, 25.600051879882812, 25.56856346130371, 25.241397857666016, 25.04185676574707, 24.994098663330078, 24.907554626464844, 24.68489646911621, 24.68489646911621, 24.629690170288086, 24.554662704467773, 24.313884735107422, 24.067157745361328, 24.067157745361328, 24.067157745361328, 24.03726577758789, 24.00293731689453, 24.00293731689453, 24.00293731689453, 23.845197677612305, 23.693737030029297, 23.693737030029297, 23.693737030029297, 23.693737030029297, 23.68906021118164, 23.68906021118164, 23.68906021118164, 23.68906021118164, 23.62697410583496, 23.497879028320312, 23.497879028320312, 23.497879028320312, 23.40576171875, 23.40576171875, 23.40576171875, 23.40576171875, 23.405288696289062, 23.34121322631836, 23.34121322631836, 23.290372848510742, 23.24178123474121, 23.197566986083984, 23.102930068969727, 22.97174835205078, 22.97174835205078, 22.92624282836914, 22.85403823852539, 22.85403823852539, 22.85403823852539, 22.85403823852539, 22.79160499572754, 22.79160499572754, 22.759864807128906, 22.759864807128906, 22.759864807128906, 22.759864807128906, 22.759864807128906, 22.759864807128906, 22.688323974609375, 22.668872833251953, 22.660354614257812, 22.660354614257812, 22.652496337890625, 22.605510711669922, 22.572607040405273, 22.48189926147461, 22.477062225341797, 22.467761993408203, 22.356964111328125, 22.356964111328125, 22.356964111328125, 22.351154327392578, 22.351154327392578, 22.351154327392578, 22.351154327392578, 22.351154327392578, 22.351154327392578, 22.351154327392578, 22.351154327392578, 22.32411766052246, 22.32411766052246, 22.3204288482666, 22.3204288482666, 22.3204288482666, 22.255878448486328, 22.229602813720703, 22.229602813720703 ], "content": [ "An approach suggested by Jing Chen https : twitter.com jingc one of Flux creators and evangelists was to flatten API responses before they reach the Stores .", "Flux design pattern has been such help in simplifying my web application .", "I am using react and flux http : facebook.github.io flux in my application .", "Reference : http : www.christianalfoni.com articles 2015 08 02 Why-we-are-doing-MVC-and-FLUX-wrong .. . .. . Traditional MVC .. . .. . FLUX", "You don t NEED Flux the same you don t need MVC .", "Amount of refactoring to migrate an application from flux to redux", "I can t seem to figure out how to apply a similar paradigm with the Flux architecture .", "I ve never tried applying HATEOAS principles to a Flux application", "I am using React + Flux for my application .", "Like this : .. . .. . Remember that Flux was created in order to avoid the unpredictability of MVC .", "If this is a Flux app then you want to take all that application logic and application state and move it into a store or multiple stores .", "I ve used flux before and I didn t go that deep into the store state .", "I m using Facebook flux", "They are the locus of all control within a Flux application .", "Flux is awesome", "Redux is not a pure Flux implementation but definitely inspired by Flux .", "Flux is simply a way to manage application state in response to different actions .", "what flux implementation are you using", "I need to highlight there s nothing new about it this is the pattern pioneered and described in detail in Elm Architecture https : github.com evancz elm-architecture-tutorial which was itself influenced by Flux .", "I m new in Flux React Native .", "If you are to religiously follow Flux for this .. . .. . 1 .", "But I read this article explaining client-side MVC and some thoughts about differences between MVC and FLUX .", "this one github.com gaearon flux-react-router-example https : github.com gaearon flux-react-router-example .", "Personal opinion : Having moved from Flux to Redux for a small application of mine I no longer know why one would want to use Flux .", "Flux https : github.com facebook flux and Redux https : github.com rackt redux .", "My current project is written on FB Flux due FB Flux .", "You want to compare Facebook s example Flux implementation with Redux s Flux implementation", "If you haven t used any flux library redux https : github.com reactjs redux is highly recommended .", "Flux Stores should be written per domain .", "For example let s have a Flux Store that holds Tasks .", "Have you looked at flux examples with pagination at GitHub", "In theory you don t need flux .", "Which framework of flux are you using redux reflux . .", "I m new to flux this is a best practice question .", "This is a fairly common pattern in Flux applications : .. . .. . 1 .", "So my question is : is React Flux incompatible with HATEOAS", "Also as the Flux pattern describes : Stores contain the application state and logic .", "I am building a application using Facebook flux architecture of React JS .", "Consider an isomorphic application based on Flux and using the Fluxible library to do it .", "I have a classic Flux pattern in my application using fluxible .", "Flux assumes this situation is an eventuality in a large application .", "Redux is an implementation of Facebook Flux .", "Flux is not a library or framework .", "In traditional Flux stores are singletons .", "You ll know when you need flux https : github.com petehunt react-howto learning-flux .", "dispatcher.register DOES return the dispatchToken facebook.github.io flux docs dispatcher.html https : facebook.github.io flux docs dispatcher.html .", "Unfortunately most isomorphic tutorials are designed this way for example this great flux-tutorial https : github.com yahoo flux-examples .", "The first of these choices is whether to use Flux or not more precisely Redux which looks great and seems to have won the flux wars .", "This is why most Flux libraries as well as the new Flux Utils https : facebook.github.io flux docs flux-utils.html now suggest you use classes instead of singletons so you can instantiate stores per request .", "I don t understand why do we need Flux with React as React itself let s us main state of the application .", "More info : .. . .. . Building a react application with flux as part of the initial render a child component computes some data .", "@CharlieMartin By FB Flux I ment applicaiton like this github.com facebook flux tree master examples https : github.com facebook flux tree master examples .", "That said .. . .. . FB s Flux Documentation https : facebook.github.io flux docs flux-utils.html best-practices suggests a best practice around this .", "what I did was used flux to give data that was needed from the server actions and let that give me data .", "One might draw a parallel between Flux stores the ideal of fat models in some MVC communities like Rails .", "That is the path of pain that Flux seeks to avoid .", "In this way it is not a flux style but just react .", "facebook.github.io flux docs dispatcher.html https : facebook.github.io flux docs dispatcher.html", "To be honest I dont like that pattern with flux .", "With Flux : where does the data come from .", "In small applications you don t need flux for sure .", "1 Maybe Flux isn t the best choice", "I have a question regarding web application architecture such as Flux and related .", "In the flux tutorial it says that Application state is maintained only in the stores .", "@JoshDavidMiller I moved the logic to flux .", "I am a newbee in react + flux .", "I am using react with flux .", "I am new to flux architecture .", "Is it hard to implement it in fb flux .. . 2 .", "Redux is not that different from Flux .", "In the Facebook talk on the Flux architecture Jing mentions at 12 : 17 http : youtu.be nYkdrAPrdcw t 12m17s that the dispatcher enforces that no actions can be dispatched until the current action is fully processed by the stores .", "I am using the flux-pattern https : facebook.github.io flux docs overview.html and the flux dispatcher https : facebook.github.io flux docs dispatcher.html .", "I can certainly do that but it seems.. . un-Flux-like .", "I don t think Facebook s flux has reducers but multiple stores .", "This definitely seems like a flaw in the Flux design and you re right it is a very common use-case .", "Data in a Flux application is meant to flow in one direction : .. . .. . Your React components create actions which are then dispatched by the Dispatcher to your stores .", "I have a React.js application that I am refactoring to use the Flux architecture and am struggling to figure out how error-handling should work while sticking to the Flux pattern .", "When i am correct in flux there are 2 different kinds of state .. . .. . Application State in Stores .. . View State in the Component .. . .. . i am trying to build a CRUD application using flux and don t understand what s the smartest way to deal with action state .", "But i have no idea to read out the information like used partials or used flux form fields .", "Plus normally the Application state is putted in the flux store while the view state often put in the component it self is this right", "Are you using regular flux", "if you look at the flux diagram .", "if another template is added to flux .", "I m quite confused about dispatch vs emit using in Flux .", "In Flux events are emitted by the store indicating a change in its state .", "Does Flux provide something out of the box to get the desired result .", "@DamienLeroux : I am using regular flux from facebook .", "I was wondering how others might have solved such problem in a Flux way .", "you shouldn t ever need shouldComponentUpdate for data changes in a flux store .", "The one-way data flow in Flux is Action- Dispatcher- Store- View .", "The data flow is still one-way within the Flux application .", "Note that the Dispatcher is a generic utility that can be used for things other than Flux hence the term payload .", "I m not a frontend developer and have not used react or any flux implementations as I m not sure if they will do what I want .", "My Flux + React Router example https : github.com gaearon flux-react-router-example handles pagination but the code for that is awful .", "Admittedly Flux frameworks not vanilla Flux have solutions to these problems but I find them overcomplicated .", "In Flux data and functions are entangled in Flux stores so you can t just replace the functions .", "I m an early adopter and implemented a mid-large single-page-application using the Facebook Flux library .", "https : facebook.github.io flux docs flux-utils.html best-practices .. . .. . A Container component is a dummy component whose only purpose is to facilitate store communication .", "facebook.github.io flux docs overview.html http : facebook.github.io flux docs overview.html Some might suggest they re more testable but again there are other ways of doing that ." ] }
{ "confidence": [ 51.1259765625, 34.13252639770508, 34.079166412353516, 33.73790740966797, 32.643760681152344, 32.49235534667969, 31.090770721435547, 30.477460861206055, 29.95490264892578, 29.85839080810547, 29.293880462646484, 29.255144119262695, 29.13388442993164, 28.82952117919922, 28.7615966796875, 28.34832763671875, 28.31835174560547, 28.30632972717285, 28.252368927001953, 27.905399322509766 ], "content": [ "Question : I m porting an existing app to Flux and I m a bit confused about one topic . Say I have several API endpoints that return two- or three-level nested objects . For example GET articles may return a JSON response of schema .. . .. . As you see there are all kinds of users at different levels of nesting : .. . .. . articles i .author .. . articles i .likers i .. . articles i .primaryCollection.curator .. . articles i .collections i .curator .. . .. . If I want to update UserStore with fresh data any time articles are fetched I d have to write a monstrous method that checks all nested entities on article API response . Moreover there would be a lot of duplication because there are also other API endpoints with different schemas and sometimes articles are embedded inside users e.g . GET user published . Is there a cleaner way for Flux stores to extract nested entities out of all API responses .. . Answer : An approach suggested by Jing Chen https : twitter.com jingc one of Flux creators and evangelists was to flatten API responses before they reach the Stores . I wrote a small library that does just that : it normalizes .. . .. . to .. . .. . Note there is no duplication and the structure is flat . Normalizr https : github.com gaearon normalizr lets you : .. . .. . Nest entities inside other entities objects and arrays .. . Combine entity schemas to express any kind of API response .. . Automatically merge entities with same IDs with a warning if they differ .. . Use a custom ID attribute e.g . slug .. . .. . To use it you need to define your entities and nesting rules and use them to transform JSON : .. . .. . This allows you to normalize any XHR response before passing it to Flux Dispatcher . The Stores will only need to update themselves from the corresponding dictionary : Comment : How does normalize handle data that needs to be passed back to the server for say an UPDATE POST", "Question : I ve read this answer http : stackoverflow.com questions 32021763 what-could-be-the-downsides-of-using-redux-instead-of-flux reducing boilerplate http : rackt.github.io redux docs recipes ReducingBoilerplate.html looked at few GitHub examples and even tried redux a little bit todo apps . As I understand official redux doc motivations http : rackt.github.io redux docs introduction Motivation.html provide pros comparing to traditional MVC architectures . BUT it doesn t provide an answer to the question : .. . .. . Why you should use Redux over Facebook Flux .. . .. . Is that only a question of programming styles : functional vs non-functional Or the question is in abilities dev-tools that follow from redux approach Maybe scaling Or testing .. . .. . Am I right if I say that redux is a flux for people who comes from functional languages .. . .. . To answer this question you may compare complexity of implementation redux s motivation points on flux vs redux . .. . .. . Here are motivation points from official redux doc motivations http : rackt.github.io redux docs introduction Motivation.html : .. . .. . 1 . Handling optimistic updates as I understand it hardly depends on 5th point . Is it hard to implement it in fb flux .. . 2 . Rendering on the server fb flux also can do this . Any benefits comparing to redux .. . 3 . Fetching data before performing route transitions Why it can t be achieved in fb flux What s the benefits .. . 4 . Hot reload It s possible with React Hot Reload http : gaearon.github.io react-hot-loader . Why do we need redux .. . 5 . Undo Redo functionality .. . 6 . Any other points Like persisting state.. . Comment : Redux is an implementation of Facebook Flux . Flux is not a library or framework . It s simply a recommended architecture for web-applications . I don t see how you can compare a concrete implementation with the abstract concept that motivated it . Facebook s actual implementation of a Flux architecture is Relay and the open-source version is still in the very early stages . facebook.github.io relay https : facebook.github.io relay Comment : @CharlieMartin By FB Flux I ment applicaiton like this github.com facebook flux tree master examples https : github.com facebook flux tree master examples . My current project is written on FB Flux due FB Flux . If you want you may think as Redux architecture over FB Flux architecture . Comment : I understand now . You want to compare Facebook s example Flux implementation with Redux s Flux implementation Comment : Relay is not an implementation of Flux - Relay GraphQL is more concerned with managing data-fetching queryng with the server while Flux is mainly concerned with structuring Data flow between Client Side Data Models View Components . However there is some overlap : At Facebook we have apps built entirely using Flux entirely using Relay or with both . One pattern we see emerging is letting Relay manage the bulk of the data flow for an application but using Flux stores on the side to handle a subset of application state .. . Answer : Redux author here Redux is not that different from Flux . Overall it s the same architecture but Redux is able to cut some complexity corners by using functional composition where Flux uses callback registration . It s not fundamentally different but I find it that Redux makes certain abstractions easier or at least possible to implement that would be hard or impossible to implement in Flux . Reducer Composition .. . .. . Take for example pagination . My Flux + React Router example https : github.com gaearon flux-react-router-example handles pagination but the code for that is awful . One of the reasons it s awful is that Flux makes it unnatural to reuse functionality across stores . If two stores need to handle pagination in response to different actions they either need to inherit from a common base store bad you re locking yourself into a particular design when you use inheritance or call a function from the handler which will need to somehow operate on the Flux store s private state . The whole thing is messy although definitely in the realm of possible . On the other hand with Redux pagination is natural thanks to reducer composition . It s reducers all the way down so you can write a reducer factory that generates pagination reducers https : github.com rackt redux blob ecb1bb453a60408543f5760bba0aa4c767650ba2 examples real-world reducers paginate.js and then use it in your reducer tree https : github.com rackt redux blob ecb1bb453a60408543f5760bba0aa4c767650ba2 examples real-world reducers index.js L29-L46 . The key to why it s so easy is because in Flux stores are flat but in Redux reducers can be nested via functional composition just like React components can be nested . .. . .. . This pattern also enables wonderful features like no-user-code undo-redo https : github.com omnidan redux-undo . Can you imagine plugging Undo Redo into a Flux app being two lines-of-code Hardly . With Redux it is again thanks to reducer composition pattern . I need to highlight there s nothing new about it this is the pattern pioneered and described in detail in Elm Architecture https : github.com evancz elm-architecture-tutorial which was itself influenced by Flux . Server Rendering .. . .. . People have been rendering on the server fine with Flux but seeing that we have 20 Flux libraries each attempting to make server rendering easier perhaps Flux has some rough edges on the server . The truth is Facebook doesn t do much server rendering so they haven t been very concerned about it and rely on the ecosystem to make it easier . In traditional Flux stores are singletons . This means it s hard to separate the data for different requests on the server . Not impossible but hard . This is why most Flux libraries as well as the new Flux Utils https : facebook.github.io flux docs flux-utils.html now suggest you use classes instead of singletons so you can instantiate stores per request . There are still the following problems that you need to solve in Flux either yourself or with the help of your favorite Flux library such as Flummox https : github.com acdlite flummox or Alt https : github.com goatslacker alt : .. . .. . If stores are classes how do I create and destroy them with dispatcher per request When do I register stores How do I hydrate the data from the stores and later rehydrate it on the client Do I need to implement special methods for this Admittedly Flux frameworks not vanilla Flux have solutions to these problems but I find them overcomplicated . For example Flummox asks you to implement serialize and deserialize in your stores http : acdlite.github.io flummox docs api store . Alt solves this nicer by providing takeSnapshot http : alt.js.org docs takeSnapshot that automatically serializes your state in a JSON tree . Redux just goes further : since there is just a single store managed by many reducers you don t need any special API to manage the re hydration . You don t need to flush or hydrate stores there s just a single store and you can read its current state or create a new store with a new state . Each request gets a separate store instance . Read more about server rendering with Redux . http : rackt.github.io redux docs recipes ServerRendering.html .. . .. . Again this is a case of something possible both in Flux and Redux but Flux libraries solve this problem by introducing a ton of API and conventions and Redux doesn t even have to solve it because it doesn t have that problem in the first place thanks to conceptual simplicity . Developer Experience .. . .. . I didn t actually intend Redux to become a popular Flux library I wrote it as I was working on my ReactEurope talk on hot reloading with time travel http : youtube.com watch v xsSnOQynTHs . I had one main objective : make it possible to change reducer code on the fly or even change the past by crossing out actions and see the state being recalculated . .. . .. . https : camo.githubusercontent.com a0d66cf145fe35cbe5fb341494b04f277d5d85dd 687474703a2f2f692e696d6775722e636f6d2f4a34476557304d2e676966 .. . .. . I haven t seen a single Flux library that is able to do this . React Hot Loader also doesn t let you do this in fact it breaks if you edit Flux stores because it doesn t know what to do with them . When Redux needs to reload the reducer code it calls replaceReducer http : rackt.github.io redux docs api Store.html replaceReducer and the app runs with the new code . In Flux data and functions are entangled in Flux stores so you can t just replace the functions . Moreover you d have to somehow re-register the new versions with the Dispatcher something Redux doesn t even have . Ecosystem .. . .. . Redux has a rich and fast-growing ecosystem https : github.com xgrommx awesome-redux . This is because it provides a few extension points such as middleware http : rackt.github.io redux docs advanced Middleware.html . It was designed with use cases such as logging https : github.com fcomb redux-logger support for Promises https : github.com acdlite redux-promise Observables https : github.com acdlite redux-rx routing https : github.com rackt redux-router immutability dev checks https : github.com leoasis redux-immutable-state-invariant persistence https : github.com elgerlambert redux-localstorage etc in mind . Not all of these will turn out to be useful but it s nice to have access to a set of tools that can be easily combined to work together . Simplicity .. . .. . Redux preserves all the benefits of Flux recording and replaying of actions unidirectional data flow dependent mutations and adds new benefits easy undo-redo hot reloading without introducing Dispatcher and store registration . Keeping it simple is important because it keeps you sane while you implement higher-level abstractions . Unlike most Flux libraries Redux API surface is tiny . If you remove the developer warnings comments and sanity checks it s 99 lines https : gist.github.com gaearon ffd88b0e4f00b22c3159 . There is no tricky async code to debug . You can actually read it and understand all of Redux . .. . .. . See also my answer on downsides of using Redux compared to Flux http : stackoverflow.com a 32916602 458193 . Comment : thanks for the answer...I am new to js..in your answer you have said flux is using singleton design pattern...can you tell me in redux what kind of design pattern they are using...and in flux can you tell me where they are using singleton pattern...can you give both an example...I understood what does design pattern from here singleton http : www.dofactory.com javascript singleton-design-pattern Comment : I started my Android Java implementation Fluxxan based on Fluxxor basically pure flux . Once I saw redux I was sold . There are some portions I kept purely flux tho but man your lib is awesome", "Question : I don t understand why do we need Flux with React as React itself let s us main state of the application . Every component has a initial state and the state can be changed by user actions or any other asynchronous JavaScript . Why is React called as only a view library when it can let s us define state of the application and also update view whenever state changes . This is not what a view does....its what complete MVC does right For example : here https : facebook.github.io react is an Todo app build only with React and here http : fluxxor.com guides quick-start.html is an Todo app build with Flux and React . If we can build the Todo app with React only then why do we need Flux .. . Answer : You don t NEED Flux the same you don t need MVC . They are both architectures and you can of course build something without using either . Would you build a non-MVC app in 2016 Probably not that doesn t mean that people didn t do it in the past . Flux is awesome But as most things in the tech industry is not always the right decision things vary in a project requirement basis . Probably the biggest selling point of Flux is that it tries to enforce the data flow in one direction this means that you know for sure where the data is coming from . In a non-flux app the data for a component could be an own property a property passed down the component tree a local state variable a state variable result-of calling an API . With Flux : where does the data come from . Answer : from the stores . Redux takes this further and only uses a single store . Flux has been criticized because you need a lot of boilerplate code but again is a matter of tradeoffs . At the end is always your call depending on your project needs . Comment : Why is React called as a view library even if it can handle application state Comment : Because it was conceived to only display data . The data can change over time and facebook needed a way to render that changing data efficiently so the purpose of the state was to track those changes . Not for you to have an entire database like structure Comment : Besides it doesn t enforce how you manage your data Backbone collections localstorage local state etc the react component itself is interested in rendering your data not how that data ended up there . Comment : Agreed . Another point here is maintenance . Though initially I felt the same . But as my project grew in size components in numbers I realized importance of flux . Where you are keeping actions and stores separately which is also useful while debugging .", "Question : Looking at the following diagram which explains MVC I see unidirectional data flow . So why do we consider MVC to have bidirectional data flow while justifying Flux MVC Pattern http : i.stack.imgur.com IRX9j.png Comment : People like to every now and then rename things and think they just came up with a brand new idea . Take the FLUX architecture diagram https : facebook.github.io flux docs overview.html structure-and-data-flow for example if you replace Dispatcher with Controller and Store with Model what do you get .. . Answer : I am an embedded developer and I use MVC pattern in my application . My application is very small and I have set up my architecture to be almost unidirectional MVC . But I read this article explaining client-side MVC and some thoughts about differences between MVC and FLUX . Reference : http : www.christianalfoni.com articles 2015 08 02 Why-we-are-doing-MVC-and-FLUX-wrong .. . .. . Traditional MVC .. . .. . FLUX", "Question : I m creating a react.js application with flux architecture and I am trying figure out where and when a request for data from the server should be made . Is there a any example for this . Not TODO app .. . Answer : You can call for data in either the action creators or the stores . The important thing is to not handle the response directly but to create an action in the error success callback . Handling the response directly in the store leads to a more brittle design . Comment : Can you explain this in more details please Say i need to make initial data loading from the server . In the controller view i start an action INIT and the Store starts it s async initialization reflecting to this action . Now i would go with the idea that when the Store fetched the data it would simply emit change but not start an action . So emitting a change after initialization tells the views that they can get the data from the store . Why is there a need not to emit a change upon successful loading but starting another action Thanks Comment : Fisherwebdev about stores calling for data by doing so don t you break the Flux paradigm the only 2 proper ways i can think of to call for data is by using : 1 . use a bootstrap class using Actions to load data 2 . Views again using Actions to load data Comment : Calling for data is not the same thing as receiving data . @Jim-Y : you should only emit change once the data in the store has actually changed . Yotam : No calling for data in the store does not break the paradigm . Data should only be received through actions so that all the stores may be informed by any new data entering the application . So we can call for data in a store but when the response comes back we need to create a new action instead of handling it directly . This keeps the application flexible and resilient to new feature development .", "Question : I don t understand why do we need Flux with React as React itself let s us main state of the application . Every component has a initial state and the state can be changed by user actions or any other asynchronous JavaScript . Why is React called as only a view library when it can let s us define state of the application and also update view whenever state changes . This is not what a view does....its what complete MVC does right For example : here https : facebook.github.io react is an Todo app build only with React and here http : fluxxor.com guides quick-start.html is an Todo app build with Flux and React . If we can build the Todo app with React only then why do we need Flux .. . Answer : In theory you don t need flux . In small applications you don t need flux for sure . But what if your application consist of hundreds components And one of your component is form . User populate this form and you send its content to server . And get response from server with new data . And assume that this response data and data from form are necessary to other components . 1 . Without flux : You can move your data to root component and then distribute it down to all components . But if you need to distribute data from many other components too This makes your application very complex . 2 . with flux : You move your data to stores and all components which are interested about this data can get it from there . You have better control on your application and source data . I prefer redux only one store and one source of truth .. . .. . edit : .. . .. . Why is React called as a view library even if it can handle application state MVC is a software architectural pattern . It divides a given software application into three interconnected parts models views controllers . If we think about react and MVC it fit as View . But this is nothing wrong . It doesn t mean that you can use it only for views . It allows you to create normal applications . But in other hand you can use it as view for other frameworks for example you can use it with angular . In other words it is very flexible library for many uses . Comment : Why is React called as a view library even if it can handle application state Comment : It seems to me that handling application state in react components is a sort of a useful side effect . If you are writing a view you need to keep some state information like visibility of elements state of radio buttons and check boxes etc . So a good view library should provide some way to do this . But once that functionality is available nobody prevents you from storing your whole application state the same way . It might be awkward but certainly possible . Comment : @MadWombat I like your explanation . Even in react page there is this React approaches building user interfaces differently by breaking them into components . This means React uses a real full featured programming language to render views . They made it very flexible possibly they even not plan to use it as full functional framework . Comment : Generally I like libraries frameworks which allow you to compose your app of them . I don t like monoliths", "Question : Flux design pattern has been such help in simplifying my web application . However I ended up directly calling web APIs for certain situations simply because Flux seemed such overkill for the job . I was wondering how others might have solved such problem in a Flux way . enter image description here http : i.stack.imgur.com PhLq7.png .. . .. . As the diagram suggests we created the Action via the Action Creator for all Web API calls . I will give an example scenario . Let s say there are 3 components that are interested in User Store changes at the moment . User clicks one of them to load a list of user s hobbies from the back-end . But I only want only that one particular UI component to display the list of hobbies due to the user s action . The other 2 components won t change at all . Traditionally this would have been a simple couple lines asynch call with a callback . If you are to religiously follow Flux for this .. . .. . 1 . You create an action via Action Creator with a specific reference ID .. . 2 . Fetch data via Web API .. . 3 . Upon receiving data action is created using the Action Creator .. . 4 . User store listens to this result arriving via the action .. . 5 . Update the store .. . 6 . Fire store updated event all 3 components react to that and check if that was for mine using the reference ID .. . 7 . then finally render with the data fetched in that 1 UI component .. . .. . My app having many small parts that load data dynamically like this per user action I decided to use Flux for things that many components have to share states with since the stores act as centralized state provider . How do you guys use Flux to do simple data fetches such as the one mentioned above .. . Answer : There are couple of ways to solve this . 1 . Let all the components receive the update and the component decide whether to update or ignore the update . 2 . Split up your store and subscribe only to those which are need in the component . This approach can get messy with stores getting dependent on each other and simultaneous dispatch problem . If you haven t used any flux library redux https : github.com reactjs redux is highly recommended . It solves this by allowing the components to subscribe to part of state store tree .", "Question : I ve read this answer http : stackoverflow.com questions 32021763 what-could-be-the-downsides-of-using-redux-instead-of-flux reducing boilerplate http : rackt.github.io redux docs recipes ReducingBoilerplate.html looked at few GitHub examples and even tried redux a little bit todo apps . As I understand official redux doc motivations http : rackt.github.io redux docs introduction Motivation.html provide pros comparing to traditional MVC architectures . BUT it doesn t provide an answer to the question : .. . .. . Why you should use Redux over Facebook Flux .. . .. . Is that only a question of programming styles : functional vs non-functional Or the question is in abilities dev-tools that follow from redux approach Maybe scaling Or testing .. . .. . Am I right if I say that redux is a flux for people who comes from functional languages .. . .. . To answer this question you may compare complexity of implementation redux s motivation points on flux vs redux . .. . .. . Here are motivation points from official redux doc motivations http : rackt.github.io redux docs introduction Motivation.html : .. . .. . 1 . Handling optimistic updates as I understand it hardly depends on 5th point . Is it hard to implement it in fb flux .. . 2 . Rendering on the server fb flux also can do this . Any benefits comparing to redux .. . 3 . Fetching data before performing route transitions Why it can t be achieved in fb flux What s the benefits .. . 4 . Hot reload It s possible with React Hot Reload http : gaearon.github.io react-hot-loader . Why do we need redux .. . 5 . Undo Redo functionality .. . 6 . Any other points Like persisting state.. . Comment : Redux is an implementation of Facebook Flux . Flux is not a library or framework . It s simply a recommended architecture for web-applications . I don t see how you can compare a concrete implementation with the abstract concept that motivated it . Facebook s actual implementation of a Flux architecture is Relay and the open-source version is still in the very early stages . facebook.github.io relay https : facebook.github.io relay Comment : @CharlieMartin By FB Flux I ment applicaiton like this github.com facebook flux tree master examples https : github.com facebook flux tree master examples . My current project is written on FB Flux due FB Flux . If you want you may think as Redux architecture over FB Flux architecture . Comment : I understand now . You want to compare Facebook s example Flux implementation with Redux s Flux implementation Comment : Relay is not an implementation of Flux - Relay GraphQL is more concerned with managing data-fetching queryng with the server while Flux is mainly concerned with structuring Data flow between Client Side Data Models View Components . However there is some overlap : At Facebook we have apps built entirely using Flux entirely using Relay or with both . One pattern we see emerging is letting Relay manage the bulk of the data flow for an application but using Flux stores on the side to handle a subset of application state .. . Answer : I m an early adopter and implemented a mid-large single-page-application using the Facebook Flux library . As I m a little late to the conversation I ll just point out that despite my best hopes Facebook seem to consider their Flux implementation to be a proof of concept and it has never received the attention it deserves . I d encourage you to play with it as it exposes more of the inner working of the Flux architecture which is quite educational but at the same time it does not provide many of the benefits that libraries like Redux provide which aren t that important for small projects but become very valuable for bigger ones . We have decided that moving forward we will be moving to Redux and I suggest you do the same Comment : I ve been developing Facebook Flux app for six months . And I still not sure if a migration time is worth the benefits Redux provide . I ll very appreciate all your comments about pros cons of Redux over FB flux Comment : @VolodymyrBakhmatiuk for us it s mostly about reducing the amount of boilerplate we have to write + better error-handling redux will for example yell if you fire an action that was not defined in your constant list - FB flux won t and it can cause all sorts of problems There s a few more advanced capabilities in flux but I ve not used them yet Comment : @GuyNesher an undefined action should be detected at compile-time not at run-time . Flow another Facebook contribution allows you to do that . Comment : @DominiquePERETTI - true can also use linting but it doesn t change the fact that not catching the error at run time is kinda sad", "Question : null .. . Answer : I am using react and flux http : facebook.github.io flux in my application . On componentWillMount we add listeners and on componentWillUnmount we remove the listeners . I have come across a scenario where I need to suspend disable all the active listeners and after performing some changes I need to enable all the listeners . Does Flux provide something out of the box to get the desired result . Comment : Which framework of flux are you using redux reflux . . Comment : @DamienLeroux : I am using regular flux from facebook . I update link in the question .", "Question : Looking at the following diagram which explains MVC I see unidirectional data flow . So why do we consider MVC to have bidirectional data flow while justifying Flux MVC Pattern http : i.stack.imgur.com IRX9j.png Comment : People like to every now and then rename things and think they just came up with a brand new idea . Take the FLUX architecture diagram https : facebook.github.io flux docs overview.html structure-and-data-flow for example if you replace Dispatcher with Controller and Store with Model what do you get .. . Answer : Because in Javascript frameworks the MVC does not work the way you depicted . The UI generally communicates bi-directionally with the model as in : .. . .. . 1 . User types into View input .. . 2 . MVC framework binds onchange to update a model . 3 . Ajax request brings in new model data . 4 . MVC framework updates View input s value to match model . In Flux architecture the UI would only fire an independent action with type and associated data to a dispatcher which would then update the model the same way any background ajax method would update the model . Reference : http : www.thesoftwaresimpleton.com blog 2013 03 23 client-side-mvc .. . .. . Client Side MVC is completely different than Server Side MVC .. . .. . We are setting up a two-way communication between two objects.. . .. . .. . In short we are wiring together the value of the firstName property of the Person object to the value property of the input . http : guides.emberjs.com v1.10.0 object-model bindings .. . .. . bindings in Ember.js can be used with any object not just between views and models .", "Question : I ve read this answer http : stackoverflow.com questions 32021763 what-could-be-the-downsides-of-using-redux-instead-of-flux reducing boilerplate http : rackt.github.io redux docs recipes ReducingBoilerplate.html looked at few GitHub examples and even tried redux a little bit todo apps . As I understand official redux doc motivations http : rackt.github.io redux docs introduction Motivation.html provide pros comparing to traditional MVC architectures . BUT it doesn t provide an answer to the question : .. . .. . Why you should use Redux over Facebook Flux .. . .. . Is that only a question of programming styles : functional vs non-functional Or the question is in abilities dev-tools that follow from redux approach Maybe scaling Or testing .. . .. . Am I right if I say that redux is a flux for people who comes from functional languages .. . .. . To answer this question you may compare complexity of implementation redux s motivation points on flux vs redux . .. . .. . Here are motivation points from official redux doc motivations http : rackt.github.io redux docs introduction Motivation.html : .. . .. . 1 . Handling optimistic updates as I understand it hardly depends on 5th point . Is it hard to implement it in fb flux .. . 2 . Rendering on the server fb flux also can do this . Any benefits comparing to redux .. . 3 . Fetching data before performing route transitions Why it can t be achieved in fb flux What s the benefits .. . 4 . Hot reload It s possible with React Hot Reload http : gaearon.github.io react-hot-loader . Why do we need redux .. . 5 . Undo Redo functionality .. . 6 . Any other points Like persisting state.. . Comment : Redux is an implementation of Facebook Flux . Flux is not a library or framework . It s simply a recommended architecture for web-applications . I don t see how you can compare a concrete implementation with the abstract concept that motivated it . Facebook s actual implementation of a Flux architecture is Relay and the open-source version is still in the very early stages . facebook.github.io relay https : facebook.github.io relay Comment : @CharlieMartin By FB Flux I ment applicaiton like this github.com facebook flux tree master examples https : github.com facebook flux tree master examples . My current project is written on FB Flux due FB Flux . If you want you may think as Redux architecture over FB Flux architecture . Comment : I understand now . You want to compare Facebook s example Flux implementation with Redux s Flux implementation Comment : Relay is not an implementation of Flux - Relay GraphQL is more concerned with managing data-fetching queryng with the server while Flux is mainly concerned with structuring Data flow between Client Side Data Models View Components . However there is some overlap : At Facebook we have apps built entirely using Flux entirely using Relay or with both . One pattern we see emerging is letting Relay manage the bulk of the data flow for an application but using Flux stores on the side to handle a subset of application state .. . Answer : You might be best starting with reading this post by Dan Abramov where he discusses various implementations of Flux and their trade-offs at the time he was writing redux : The Evolution of Flux Frameworks https : medium.com @dan abramov the-evolution-of-flux-frameworks-6c16ad26bb31 .. . .. . Secondly that motivations page you link-to does not really discuss the motivations of Redux so much as the motivations behind Flux and React . The Three Principles http : rackt.github.io redux docs introduction ThreePrinciples.html is more Redux specific though still does not deal with the implementation differences from the standard Flux architecture . Basically Flux has multiple Stores that compute state change in response to UI API interactions with components and broadcast these changes as events that components can subscribe to . In Redux there is only one Store that every component subscribes to . IMO it feels at least like Redux further simplifies and unifies the flow of data by unifying or reducing as Redux would say the flow of data back to the components - whereas Flux concentrates on unifying the other side of the data flow - view to model .", "Question : I m creating a react.js application with flux architecture and I am trying figure out where and when a request for data from the server should be made . Is there a any example for this . Not TODO app .. . Answer : I m a big proponent of putting async write operations in the action creators and async read operations in the store . The goal is to keep the store state modification code in fully synchronous action handlers this makes them simple to reason about and simple to unit test . In order to prevent multiple simultaneous requests to the same endpoint for example double-reading I ll move the actual request processing into a separate module that uses promises to prevent the multiple requests for example : .. . .. . While reads in the store involve asynchronous functions there is an important caveat that the stores don t update themselves in the async handlers but instead fire an action and only fire an action when the response arrives . Handlers for this action end up doing the actual state modification . For example a component might do : .. . .. . The store would have a method implemented perhaps something like this : Comment : Have you tried to put promises inside action payloads I find it more easy to deal with than dispatching multiple actions Comment : @SebastienLorber The big draw to flux for me is keeping all state updates in a synchronous code path and explicitly only as a result-of action dispatches so I avoid asynchrony inside the stores . Comment : @Federico It s unclear to me still what the best solution is . I ve been experimenting with this strategy for data loading combined with counting the number of outstanding async requests . Unfortunately flux is injected into stores after construction so no great way to get actions in the initialize method . You might find some good ideas from Yahoo s isomorophic flux libs this is something Fluxxor v2 should support better . Feel free to email me if you want to chat about this more . Comment : data : result should be data : data right there is no result . perhaps better to rename the data param to payload or something like that . Comment : I found this old thread https : groups.google.com forum topic reactjs jBPHH4Q-8Sc to be very helpful - in particular Bill Fisher and Jing Chen s comments . This is very close to what @BinaryMuse is proposing with the minor difference that dispatching happens in the action creator .", "Question : I was wondering how much state does really belong into the stores and not into the components I ve read at some places that really all state should live inside the stores . Would that include really component specific stuff like input values before submitting input validation if a modal is open if something has been clicked etc What are the best practices here Comment : To be honest I dont like that pattern with flux . I ve used flux before and I didn t go that deep into the store state . what I did was used flux to give data that was needed from the server actions and let that give me data . when the store has that data I can set state based off of the stores data . However trivial things like input values toggle state view for an active class open or closed modal. . those I let the component manage and not have to go through an action . It makes a ton more sense and is a good pattern .. . Answer : Keeping everything in flux stores may be benefitial for some apps . So first you should try to decide whether your app is like this . 1 . If you re not sure whether a piece of state belongs-to a flux store then it s most likely that it doesn t . 2 . You ll know when you need flux https : github.com petehunt react-howto learning-flux . And when you reach that level of understanding of whether such application architecture is appropriate for you you ll probably know the answer to your initial question as well . But of course it s nice to have some kind of specific guide maybe just a mental guide telling you when to keep state inside the component and when not to . I d go with these guides : .. . .. . Is this state purely UI-related Then you probably don t need to keep it in the store . Is this state shared anywhere else outside the component If not then don t put it in the store . It s fine inside the component . Can this state be persisted in the URL If so then don t put it in the store put it in the url It might be a search query of an input or a currently opened tab . There may be exceptions to all of these but in general I believe this to correspond well to the original ideas of a flux app . .. . .. . P.S . Also I should say that there are a lot of talks saying that you should may keep all your UI inside an immutable state tree . That s how redux is introduced to lots of people . I think you should understand that while this is a great concept and it allows you so save replay any user interactions it is more often than not unnecessary and it s not what the main idea of Flux is about . And redux itself is a great flux tool that doesn t force you to keep all of the UI state in the stores .", "Question : In the flux webchat example application and in the README diagram it seems like the action creator should retrieve the data from the server . flux data flow http : i.stack.imgur.com VFD2M.png .. . .. . The problem I see is that no fetch might be required if the data is already in the store . The store is the only one to know so the action need to actually be dispatched . I think it s better to fetch dernormalized data when possible to minimize xhr calls . If the store is denormalized e.g . MessageStore will contain all the data it needs to render Messages . Every message look like .. . .. . The store might have the responsability through events to update the UserStore with the partial user models . Another way I think of is to have some normalized stores and create a specific stores with a schema the view expects . In this situation it seems to me the action creator is only useful to dispatch the payload ie . it s useless . What do you think .. . Answer : I usually have my store dealing with fetching data . Doing it this way make sure that all the logic can be managed by the store itself and you have total control on when how why you fetch data . The fact that you can also have stores communicating with each other is also another pro for why the stores should be in charge of handling fetching data . Also as the Flux pattern describes : Stores contain the application state and logic . Their role is somewhat similar to a model in a traditional MVC but they manage the state of many objects. . It does make sense to have the stores managing the fetching of data from APIs server-side . Comment : thanks for answering my badly formulated question . Seems like the diagram I posted is outdated I can find it on flux website . thanks . ref : facebook.github.io flux docs overview.html content https : facebook.github.io flux docs overview.html content", "Question : I m using TYPO3 7.6 with the latest Flux - VHS - and Fluidcontent Extensions FluidTYPO3 https : fluidtypo3.org . I ve wrote a new FLUX-Content Element a Tab-Container from Zurb Foundation 6 http : foundation.zurb.com sites docs tabs.html . The element is working fine frontend but at backend I have a row with my tabs and also columns . . sth . will dublicated my tabs and the content inside Already cleared Cache . Here s a screenshot . The Tab-Elements will be dublicated I don t know why dublicated content elements typo3 backend http : i.stack.imgur.com 7wQSh.png .. . .. . My FLUX FCE : .. . Answer : This is the problem : .. . .. . According to Release Notes of flux 7.2 https : fluidtypo3.org blog news coming-changes-in-flux-72.html : .. . .. . Preview Widget replaced .. . .. . We have replaced the way Flux generates previews when a Grid is involved . Before Flux would render the Grid from the Fluid template file which means the template had to be parsed or loaded from compiled cache and then rendered involving a significant amount of processing . The content element container areas are now rendered by a special View class significantly increasing performance when working with multiple nested elements . .. . The new behaviour : .. . .. . Renders a Grid as content element container in the page module if your template defines one regardless of whether or not you have a Preview section . .. . Deprecates flux : widget.grid which no longer has any function . .. . Removes all support for setting the Fluid template used to render the Grid . .. . Basically we sacrifice the rarely used template replacement feature for increased performance in very frequently executed code . So simply remove complete Preview section from a template . Comment : Thank you viktor I can change it next week but you ll be right . I don t read the release notes completely thank you very much . Have a nice weekend - stefan", "Question : I am trying to learn the Flux pattern . I learned to use React with .net MVC and rendered it server-side . I would like to learn Flux but all tutorials use node js . I don t use node . I don t know how to implement the Event Emitter part because it uses a node function . https : www.codementor.io reactjs tutorial react-js-flux-architecture-tutorial .. . .. . About a 1 3 of the way down : .. . .. . Event Emitter The event emitter is responsible for notifying subscribers after a store has completed any data action . Conversely it also needs to be able to register observers for specific events . We re going to be using Node s event emitter in the todo application . Given that Flux is simply a pattern is there something that I can use with .net MVC in the absence of node to handle the Event Emitter part Thoughts appreciated thanks . Comment : You should probably browserify your code so the node things are automatically resolved . It ll also make the same code work equally well on the client and you avoid the whole concat or many-script tags problems . I don t know asp.net so not sure if that s a viable option . .. . Answer : We do use the flux pattern on the client-side without having node.js installed on our web servers . In order to do this we have to use Node.js at build time on our Team City CI servers to run a gulp task that pushes the .jsx files through the jsx interpreters and spit out a raw js file . Now our flux application is a essentially a static .js file that has already been interpreted by Node.js", "Question : I m developing a web app with React + Flux . But sometimes I am confused about where to put the data of a component . Flux says that we should keep the data in the store . When the data changed store should emit a change event then the react components which listen to the store s change event should call setState with the data in the store . But in this way one react component is made by two parts which are the component it self and the store to be listened . Sometimes I want the component to be more individual . I don t want some state of this component to be related to any store so I store the state in the component jsx file . In this way it is not a flux style but just react . I m not sure if I m doing the right thing . Should a fluxible app to be totally obey the flux or not Comment : maybe you will just have to create ANOTHER store which fits the individual needs of your component Comment : If I create ANOTHER store the component is still associate with that store . Individual means that the component should not associate with any store . .. . Answer : There is no right answer to this question . You could differentiate between application state and view state just as much as you could reason that all state should live in one global store . Application state could be User information product information or that type of data whereas view state could be related to toggling a div or what color a link should have depending on the application state . These two approaches are both used in the wild and there is just a matter of preference . This is a good read http : blog.elsdoerfer.name 2014 12 25 react-js-flux-om-i-am-trying-to-think-it-through that argues for the case of a single state . I won t link-to the other reasoning as it s the flux way and an easy Google Comment : Thanks for the answer . For my understanding from this Application state more like a business involved behavior state and view state is like a component user-interface behavior state . Plus normally the Application state is putted in the flux store while the view state often put in the component it self is this right Comment : Exactly - That s one way of reasoning about it : Comment : Cool this is also what I m doing till now .", "Question : I just recently discovered Redux https : github.com rackt redux . It all looks good . Is there any downsides gotcha or compromises from using Redux instead of Flux Thanks .. . Answer : One of the largest benefits in using Redux over the other Flux alternatives is its ability to reorient your thinking towards a more functional approach . Once you understand how the wires all connect you realize its stunning elegance and simplicity in design and can never go back .", "Question : null .. . Answer : In reference to the example React.js Flux tutorial project Part 1 : Building web app using react.js express.js node.js and mongodb http : www.codeproject.com Articles 1067725 Part-Building-web-app-using-react-js-express-js it would be helpful to understand why the dependency calls don t seem to always follow the same positive or negative correlation with the direction of the arrows in the Flux flow diagram as shown below note the situations where calls are opposite to that of the arrows : .. . .. . Flux diagram Source https : facebook.github.io flux img flux-simple-f8-diagram-with-client-action-1300w.png Flux diagram Source : https : facebook.github.io flux docs overview.html .. . .. . Modules in the View category include : .. . .. . Modules in the Action category include : .. . .. . Modules in the Dispatcher category include : .. . .. . Modules in the Store category include : .. . .. . To be clear the question is how do the dependency calls map to the arrows In particular it would be helpful to see an explanation that reconciles the inconsistent correlation of arrow direction to dependency calls . Comment : The arrows represent flow of data not dependency directions . The store is not dispatching anything just registering itself to the dispatcher so it can react to actions . I highly recommend looking at redux . it s simple elegant flux without the dispatcher part redux.js.org http : redux.js.org Comment : @azium thanks for the quick feedback . Any quick thoughts on how redux overhead and learning curve compares to flux Amount of refactoring to migrate an application from flux to redux Comment : Redux learning curve is far more lenient than the original flux pattern that FB put out there they use Redux now . Fewer things to know about less code to write easier mental model . Migrations can be a pain kinda depends on how far in your are I guess . I would do the redux tutorial and feel out the migration pain yourself . There might not be any", "Question : null .. . Answer : please i need help . i m using react+flux and till now i escaved this situation but no longer . i have a react flux application : 1 The index.html template base where i initialy load my js files jquery bootstrap .. . +css 2 components with flux architecture.. . But for some components i get the content dynamicaly from a backend and then create my dom.. . that means that the js files loads before the dom so this one is not affected by the js .. . so i don t know how to deal i thought on calling the same js files after components render.. . in the function componentDidMount but didn t work . any ideas" ] }
[ "yes-answer-long", "yes-answer-short" ]
facebook
UNK_RELATION
keystone@authentication@68
keystone -- keystone is the identity service used by openstack for @placeholder .
{ "confidence": [ 64.2199935913086, 56.04109191894531, 55.0048713684082, 51.738075256347656, 51.45684814453125, 50.294036865234375, 50.01616668701172, 47.313011169433594, 43.199501037597656, 43.06555938720703, 42.77683639526367, 42.42626190185547, 42.42626190185547, 42.06163024902344, 41.85992431640625, 41.85992431640625, 41.80873107910156, 41.35247802734375, 41.35247802734375, 41.35247802734375, 41.35247802734375, 41.283939361572266, 40.666404724121094, 40.19108200073242, 40.155006408691406, 40.13801574707031, 39.63056945800781, 39.61614227294922, 39.297298431396484, 39.143226623535156, 38.995689392089844, 38.488243103027344, 38.488243103027344, 38.188194274902344, 37.89423370361328, 37.89423370361328, 37.89423370361328, 37.89423370361328, 37.704505920410156, 36.75190734863281, 36.75190734863281, 36.75190734863281, 36.75190734863281, 36.75190734863281, 36.75190734863281, 36.75190734863281, 36.63179016113281, 36.576812744140625, 36.576812744140625, 36.576812744140625, 36.48063659667969, 35.98259353637695, 35.38279724121094, 35.33831024169922, 34.95087432861328, 34.85490036010742, 34.85490036010742, 34.85490036010742, 34.85490036010742, 34.85490036010742, 34.85490036010742, 34.840267181396484, 34.20417022705078, 34.02705764770508, 33.96920394897461, 33.94047546386719, 33.71257400512695, 33.71257400512695, 33.71257400512695, 32.343467712402344, 32.343467712402344, 31.896730422973633, 31.682565689086914, 31.387285232543945, 31.11615562438965, 30.953670501708984, 30.76093864440918, 30.76093864440918, 30.76093864440918, 30.76093864440918, 30.76093864440918, 30.76093864440918, 30.76093864440918, 30.76093864440918, 30.76093864440918, 30.76093864440918, 30.76093864440918, 30.76093864440918, 30.76093864440918, 30.76093864440918, 30.76093864440918, 30.76093864440918, 30.76093864440918, 30.76093864440918, 30.76093864440918, 29.999555587768555, 29.688447952270508, 29.618614196777344, 29.394245147705078, 29.394245147705078 ], "content": [ "I am using keystone-to-keystone to gain access from the identity provider openstack to the service provider openstack .", "In OpenStack the keystone service maintains a catalog of API endpoints .", "Write middileware in Openstack keystone .. . 3 .", "Found the answer on Openstack Keystone v3 documentation .", "the service is keystone .", "I m playing around with Juju and OpenStack and I installed Keystone Identity service on one of the nodes .", "Image of Openstack-Keystone Error http : i.stack.imgur.com vjXpS.png", "Configure Openstack keystone with Apache server and handover authentication part to Apache .. . 2 .", "Create the service entity for the Identity service : .. . .. . openstack service create --name keystone --description OpenStack Identity identity .. . .. . Output of command with --debug is : .. . .. . Output of keystone.log .. . .. . keystone.conf .. . .. . env variables : .. . .. . Thanks for your time and let me know if you have any questions .", "but i can not find which file of keystone source code to open to show that here is source code : https : github.com openstack keystone plz help me", "Keystone is a identify service doesn t have any input .", "We are trying to create users in Fiware IDM using Keystone Identity API .", "I want to implement the federated-identity management with keystone as SP and Testshib as IDP .", "After I tried to login into the openstack-horizon I face the following issue.The authentication token issued by the Identity service has expired in keystone Openstack icehouse please help .", "There is no out of box support for NIS in keystone .", "I was expecting Keystone to return 1 .", "The are located in . keystone public folder .", "Is there any way through which Network Information System NIS could be integrated with Openstack Keystone", "Check -- Custom Backend https : thestaticvoid.com post 2013 06 04 customizing-the-openstack-keystone-authentication-backend", "Extend Openstack keystone functionality by writing authentication plugin .. . .. . http : docs.openstack.org developer python-keystoneclient authentication-plugins.html authentication-plugins", "I have a single machine installation of OpenStack Mitaka on a Fedora 24 server VM that includes Keystone and Swift .", "I am currently using the identity API to access keystone .", "This is related to mongoose not Keystone actually .", "If this service were not listed in your Keystone catalog you would see this error .", "You can see the endpoints currently configured in your catalog by running openstack endpoint list if you have the openstack unified client available : .. . .. . If you don t have the unified client available you can use a combination of keystone service-list and keystone endpoint-list to get the same information .", "I am studying keystone now .", "Deploying openstack using devstack ran across this error when I use keystone commands .", "i m estimating the generation token from Keystone .", "Howto invoke keystone", "So you may change ownership to keystone and change permission so that only keystone can read .", "But in fact the installation of Keystone doesn t finished .", "I am trying to install keystone an OpenStack component on a 64 bit version of RHEL v . 7 .", "Ask your friendly OpenStack operator what host and port Keystone is running on and put that in-place of OPENSTACK KEYSTONE HOST : 5000", "im using keystone api to create an user as in Fiware Keystone API Create User http : stackoverflow.com questions 31411266 fiware-keystone-api-create-user 31411884 31411884 .", "The problem is that something goes wrong with static Keystone files .", "If I understood correctly keystone uses controller nodes .", "Looks like the pycadf lib is required for keystone .", "Try to remove .. . .. . driver keystone.token.persistence.backends.sql.Token .. . .. . in etc keystone keystone.conf", "I went through the OpenStack installation instructions and got the v3 keystone API working but some other software I m installing depends on v2 .", "Is RHEL v.7 not an acceptable version to install keystone", "I just want to install keystone on RedHat Linux .", "I meet with the same issue when installing the keystone .", "So I doubt maybe this problem is cause by Keystone .", "I just installed keystone for a personal project and to learn it .", "i m studying where Keystone has an injection attack or not .", "i m studying where Keystone has an injection attack or not .", "Some digging revealed that the Keystone instance running on Fiware labs contains the information assuming that a Keystone project KeyRock organisation .", "but you can always write your own custom backend for keystone .", "We can extent authentication support in keystone in following three ways : .. . .. . 1 .", "I am trying to list all the keystone projects present on my setup .", "http : docs.openstack.org kilo install-guide install yum content keystone-install.html .. . .. . When editing the etc keystone keystone.conf according to that tutorial .", "Then came this error : .. . .. . ERROR : Error appeared during Puppet run : 192.168.42.67 keystone.pp Package openstack-keystone has not been found in enabled Yum repos .", "I need to calculate the transform matrix for keystone correction .", "The log of Glance unit unit-glance-2.log : .. . .. . But the status of Keystone is active : .. . .. . I have verified Keystone with python-openstackclient it s truly can work .", "The Identity service manages a catalog of services in your OpenStack environment .", "But it fails with error ERROR : Unknown resource Type : OS : : Keystone : : Project .", "I am attempting to install keystone on my controller node .", "thanks at the mean while I find browserify at keystone admin app folder .", "When logged in to WireCloud via KeyStone it is possible to click logout .", "I have to edit some routes in the keystone module right", "everytime authenticate with keystone user will get the token via http header .", "I still need to execute keystone-manage db sync to create database-table and execute openstack client to create user project servcie and endpoint manually .", ": .. . .. . . keystone public style.css style.css .. . .. . I have a Keystone express instance setting for it s static files as : .. . .. . where staticPaths is an array containig list for static paths of keystone staticOptions is empty this.expandPath value - working ok and returns right path to file .", "Try this .. . .. . In DevStack Keystone the auth service you get tokens from is running on port 5000 by default .", "I wish to change password with user-password-update http : docs.openstack.org developer keystone cli examples.html .. . .. . after installing keystone command is not found .", "The only difference I see are some configuration variables in local.conf for the second region : .. . .. . Changed the 2 keystone variables so the 2nd region only authenticates on keystone service installed on the 1st region .", "Right now I have deployed MariaDB Keystone RabbitMQ .", ".. . .. . PS : although Keystone unit has no error after deployed .", "Documentation link http : docs.openstack.org liberty install-guide-rdo keystone-services.html", "I m looking for a way to keystone div https : en.wikipedia.org wiki Keystone effect .", "However the access token provided by KeyRock is somehow not valid on the Keystone API .", "Edit : Forgot to mention that OpenStack documentation doesn t mention anything about permissions in its docs http : docs.openstack.org icehouse install-guide install apt content keystone-install.html .", "I m new to openstack and I m trying to setup an all-In-One environment I m Working with Ubuntu 14.04 image .. . .. . I m following this guide : http : fosskb.in 2015 10 20 openstack-liberty-on-ubuntu-14-04-and-ubuntu-15-10 .. . .. . When installing keystone with the following command : .. . .. . apt-get install -y keystone apache2 libapache2-mod-wsgi memcached python-memcache python-openstackclient .. . .. . It tells me the following packages have unmet dependences : .. . .. . aptitude tells me that python-keystone has the following dependences that are unavailable or unsatisfied : .. . .. . I have tried searching for a solution to fix these dependences but have been unsuccessful .", "I have a need to combine 2 node.js open-source projects in one server : NodeBB as a forum engine and Keystone as a blog engine : .. . .. . There are 2 instances of Express routers are started and used - one for NodeBB on forum path and second for Keystone on root path .", "CODE-1 : .. . .. . OUTPUT .. . .. . CODE-2 .. . .. . OUTPUT .. . .. . EXPECTED OUTPUT .. . .. . Things i want to understand : .. . .. . Why CODE-1 displays few of the them from the list .. . Why CODE-2 fails .. . How to get the keystone project IDS from keystone client", "While setting up keystone in all-in-one-swift I am having an error when I try to create the service entity and API endpoints .", "All tutorials I have found use keystone when they install the swift storage .", "Swift includes a TempAuth http : docs.openstack.org developer swift overview auth.html tempauth authentication mechanism that does not require Keystone .", "I tried to create a project tenant using the resource type OS : : Keystone : : Project .", "Keeping in mind that this file contains the MySQL username and password wouldn t be it right the file to be readable only by the keystone user", "I am using the install guide located at http : docs.openstack.org kilo install-guide install yum content keystone-services.html .", "See .. . .. . https : ask.openstack.org en question 56243 keystone-authentication-to-publicadmin-port-and-scopedunscoped-token", "So I take a look on source code at keystone admin src views item.js In this file there are several require calls .", "After integrating KeyStone with WireCloud the workspaces and the usernames look like the user name plus an id .", "Is there a way to configure KeyStone and or WireCloud to only allow unique user names so that this id would not be neccessary", "But this logout button seems to only log the user out from WireCloud and not from KeyStone .", "Therefore if the login button is clicked the user gets logged in as the user currently signed in to KeyStone .", "From my point of view the logout from WireCloud should also log the user out of KeyStone .", "i want to take token from keystone and examine them by getting alot of them .", "my fault : .. . .. . Trying to solve other problem i touch file keystone etc policy.json and has a typo .", "After registering when loging in to Horizon and providing the user email Horizon sends a request to Keystone to search for the email in the name field .", "I m trying to build a website with keystone and got an error at the last point of the getting started documentation .", "You may need to use keystone API v3 since the v2 is not domain-aware .", "It happens when an user that has not yet authorized WireCloud but is logged in to keystone tries to access WireCloud .", "Admin keystone shows up as-if things should work but the document admin pages have no way to Create new documents .", "init CONF.token.driver .. . Thu Nov 27 09 : 20 : 59 2014 error client 172.20.14.15 File opt stack keystone keystone common manager.py line 70 in init .. . Thu Nov 27 09 : 20 : 59 2014 error client 172.20.14.15 self.driver importutils.import object driver name .. . Thu Nov 27 09 : 20 : 59 2014 error client 172.20.14.15 File opt stack keystone keystone openstack common importutils.py line 38 in import object .. . Thu Nov 27 09 : 20 : 59 2014 error client 172.20.14.15 return import class import str args kwargs .. . Thu Nov 27 09 : 20 : 59 2014 error client 172.20.14.15 File opt stack keystone keystone openstack common importutils.py line 28 in import class .. . Thu Nov 27 09 : 20 : 59 2014 error client 172.20.14.15 import mod str .. . Thu Nov 27 09 : 20 : 59 2014 error client 172.20.14.15 ImportError : No module named persistence.backends.sql", "wrapped init args kwargs .. . Thu Nov 27 09 : 20 : 59 2014 error client 172.20.14.15 File opt stack keystone keystone common dependency.py line 106 in wrapped init .. . Thu Nov 27 09 : 20 : 59 2014 error client 172.20.14.15 init self args kwargs .. . Thu Nov 27 09 : 20 : 59 2014 error client 172.20.14.15 File opt stack keystone keystone token core.py line 113 in init .. . Thu Nov 27 09 : 20 : 59 2014 error client 172.20.14.15 super Manager self .", "It s seen Glance unit cannot get some required data from Keystone .", "heat template version : 2015-04-30 .. . .. . - heat stack-create TEST VM tenant -f TEST VM project.yaml .. . ERROR : Unknown resource Type : OS : : Keystone : : Project .. . .. . - heat template-validate -f TEST VM project.yaml .. . ERROR : Unknown resource Type : OS : : Keystone : : Project .. . .. . - heat --version .. . 0.4.0 .. . .. . - heat-manage --version .. . 2015.1.0", "I found an open issue from February 2014 relating to this : github.com keystonejs keystone issues 153 https : github.com keystonejs keystone issues 153 It s not a one-to-many relationship but a one-has-many relationship and I need to be able to modify the nested data in the same page" ] }
{ "confidence": [ 71.60121154785156, 69.24720001220703, 69.05423736572266, 65.362548828125, 65.10543060302734, 65.1002197265625, 61.99314498901367, 61.16694641113281, 60.696861267089844, 58.66163635253906, 56.58589172363281, 55.93330383300781, 54.20955276489258, 53.62141418457031, 52.49256134033203, 52.170982360839844, 51.483787536621094, 51.30120086669922, 50.63594055175781, 48.03411102294922 ], "content": [ "Question : I am attempting to install keystone on my controller node . I am using the install guide located at http : docs.openstack.org kilo install-guide install yum content keystone-services.html . I am having some issues when I get to the following step . The Identity service manages a catalog of services in your OpenStack environment . Services use this catalog to determine the other services available in your environment . Create the service entity for the Identity service : .. . .. . openstack service create --name keystone --description OpenStack Identity identity .. . .. . Output of command with --debug is : .. . .. . Output of keystone.log .. . .. . keystone.conf .. . .. . env variables : .. . .. . Thanks for your time and let me know if you have any questions . .. . Answer : I believe the 401 error can happen when you have an unscoped token that is one without a tenant identified with it . See .. . .. . https : ask.openstack.org en question 56243 keystone-authentication-to-publicadmin-port-and-scopedunscoped-token Comment : Thanks but I am using v2 of the API the link that you referenced appears to be for v3 of the API . I am using the guide located here docs.openstack.org kilo install-guide install yum content http : docs.openstack.org kilo install-guide install yum content keystone-services.html", "Question : I m playing around with Juju and OpenStack and I installed Keystone Identity service on one of the nodes . SSH-ing into the machine I noticed that the permissions of the configuration file etc keystone keystone.conf are 644 rw-r--r-- which means it is readable by any user on the system . Keeping in mind that this file contains the MySQL username and password wouldn t be it right the file to be readable only by the keystone user Note that I ve tried installing using both Juju and by hand using a fresh Ubuntu 14.04 with the same results . Edit : Forgot to mention that OpenStack documentation doesn t mention anything about permissions in its docs http : docs.openstack.org icehouse install-guide install apt content keystone-install.html . .. . Answer : I don t think any other openstack services use keystone.conf . So you may change ownership to keystone and change permission so that only keystone can read . Comment : Yes I m pretty sure it s the only service that s using this file . The question is more about isn t this in fact a bug and should be reported I also wonder whether this type of bugs are affecting other OpenStack services . Comment : Yes you may report this as bug . I can also see other conf like swift glance with 644 permission .", "Question : I am new to openstack trying to use Ceilometer python API to pull some data from a testbed server but I get this error I do not understand what does it need as an endpoint My code is very simple .. . Answer : An endpoint simply means the URL at which you contact a service . In OpenStack the keystone service maintains a catalog of API endpoints . When you create a Ceilometer client object it asks the service catalog for the URL of the metering service . If this service were not listed in your Keystone catalog you would see this error . You can see the endpoints currently configured in your catalog by running openstack endpoint list if you have the openstack unified client available : .. . .. . If you don t have the unified client available you can use a combination of keystone service-list and keystone endpoint-list to get the same information . If your environment doesn t list the metering service you probably need to follow these instructions http : docs.openstack.org havana install-guide install yum content ceilometer-install.html look for the step labelled the Telemetry Service with the Identity Service so that other OpenStack services can locate it . Comment : okay I understand the url part but how can I add an endpoint to my code OS ENDPOIN url does not work", "Question : null .. . Answer : I want to deploy OpenStack Liberty Kilo with MAAS and Juju . Right now I have deployed MariaDB Keystone RabbitMQ . Those services is work well . But I got a problem while deploying Glance there has a message from the Glance unit : Incomplete relations : identity . It s seen Glance unit cannot get some required data from Keystone . The log of Glance unit unit-glance-2.log : .. . .. . But the status of Keystone is active : .. . .. . I have verified Keystone with python-openstackclient it s truly can work . Does anyone know how to fix this problem .. . .. . PS : although Keystone unit has no error after deployed . But in fact the installation of Keystone doesn t finished . I still need to execute keystone-manage db sync to create database-table and execute openstack client to create user project servcie and endpoint manually . So I doubt maybe this problem is cause by Keystone .", "Question : Is there any way through which Network Information System NIS could be integrated with Openstack Keystone Please let me know if you know any online resource . .. . Answer : Found the answer on Openstack Keystone v3 documentation . We can extent authentication support in keystone in following three ways : .. . .. . 1 . Configure Openstack keystone with Apache server and handover authentication part to Apache .. . 2 . Write middileware in Openstack keystone .. . 3 . Extend Openstack keystone functionality by writing authentication plugin .. . .. . http : docs.openstack.org developer python-keystoneclient authentication-plugins.html authentication-plugins", "Question : null .. . Answer : I am using keystone-to-keystone to gain access from the identity provider openstack to the service provider openstack . I am sending an http-request with X-Auth-Token in the header with a scoped token I already received from the service provider . I got 401 unauthorized and when I checked keystone.log it says could not find token . I made sure the token hasn t expired and the token was specific for the project I am trying to access in the service provider but no luck . Any suggestions on what might have caused this problem Thank you Comment : Can you please give more information where is your request and copy-paste the log . It s hard to guess without seeing all the info .", "Question : Is there any way through which Network Information System NIS could be integrated with Openstack Keystone Please let me know if you know any online resource . .. . Answer : There is no out of box support for NIS in keystone . but you can always write your own custom backend for keystone . Check -- Custom Backend https : thestaticvoid.com post 2013 06 04 customizing-the-openstack-keystone-authentication-backend Comment : Thanks for your help Deepak", "Question : I deployed openstack using MAAS-Juju juju charms . After I tried to login into the openstack-horizon I face the following issue.The authentication token issued by the Identity service has expired in keystone Openstack icehouse please help . Comment : clear your cookies . Comment : It was time sync issue . I synchronized time in all my juju nodes and it worked out fine . .. . Answer : Check the time of your machines are in sync .", "Question : i m studying where Keystone has an injection attack or not . after trying to input some code when login i need to see the source code to know where any filter the input text . but i can not find which file of keystone source code to open to show that here is source code : https : github.com openstack keystone plz help me .. . Answer : i m studying where Keystone has an injection attack or not . after trying to input some code when login i need to see the source code to know where any filter the input text . Keystone is a identify service doesn t have any input . Maybe you mean login to horizon . Horizon is a Django-based project . Its login view is in django-openstack-auth https : github.com openstack django openstack auth . The login function is in file django openstack auth openstack auth views.py . Comment : yes im studying the openstack and want to test if there is any injection attack . thanks so much for your help . as i know if a system want to avoid injection it need to filter the input of user when login so with Django is there any protection to avoid that . i read the views.py but can not recognize that : Comment : This https : docs.djangoproject.com es 1.9 topics security sql-injection-protection may help you . Comment : thanks so much", "Question : Deploying openstack using devstack ran across this error when I use keystone commands . Thu Nov 27 09 : 20 : 59 2014 error client 172.20.14.15 Traceback most recent call last : .. . Thu Nov 27 09 : 20 : 59 2014 error client 172.20.14.15 File var www keystone main line 51 in .. . Thu Nov 27 09 : 20 : 59 2014 error client 172.20.14.15 drivers service.load backends .. . Thu Nov 27 09 : 20 : 59 2014 error client 172.20.14.15 File opt stack keystone keystone service.py line 58 in load backends .. . Thu Nov 27 09 : 20 : 59 2014 error client 172.20.14.15 token api token.Manager .. . Thu Nov 27 09 : 20 : 59 2014 error client 172.20.14.15 File opt stack keystone keystone common dependency.py line 166 in wrapper .. . Thu Nov 27 09 : 20 : 59 2014 error client 172.20.14.15 self . wrapped init args kwargs .. . Thu Nov 27 09 : 20 : 59 2014 error client 172.20.14.15 File opt stack keystone keystone common dependency.py line 106 in wrapped init .. . Thu Nov 27 09 : 20 : 59 2014 error client 172.20.14.15 init self args kwargs .. . Thu Nov 27 09 : 20 : 59 2014 error client 172.20.14.15 File opt stack keystone keystone token core.py line 113 in init .. . Thu Nov 27 09 : 20 : 59 2014 error client 172.20.14.15 super Manager self . init CONF.token.driver .. . Thu Nov 27 09 : 20 : 59 2014 error client 172.20.14.15 File opt stack keystone keystone common manager.py line 70 in init .. . Thu Nov 27 09 : 20 : 59 2014 error client 172.20.14.15 self.driver importutils.import object driver name .. . Thu Nov 27 09 : 20 : 59 2014 error client 172.20.14.15 File opt stack keystone keystone openstack common importutils.py line 38 in import object .. . Thu Nov 27 09 : 20 : 59 2014 error client 172.20.14.15 return import class import str args kwargs .. . Thu Nov 27 09 : 20 : 59 2014 error client 172.20.14.15 File opt stack keystone keystone openstack common importutils.py line 28 in import class .. . Thu Nov 27 09 : 20 : 59 2014 error client 172.20.14.15 import mod str .. . Thu Nov 27 09 : 20 : 59 2014 error client 172.20.14.15 ImportError : No module named persistence.backends.sql .. . Answer : Try to remove .. . .. . driver keystone.token.persistence.backends.sql.Token .. . .. . in etc keystone keystone.conf", "Question : I am new to openstack trying to use Ceilometer python API to pull some data from a testbed server I am accessing the server from a remote site .. . .. . the problem is that I cannot figure out how get the an authorization token .. . .. . I used the following command .. . .. . But it does not give me anything .. . .. . also does not give me any token .. . Answer : From your use of port 8774 I suspect you might be using DevStack . Try this .. . .. . In DevStack Keystone the auth service you get tokens from is running on port 5000 by default . This may or may not be true in your case . Ask your friendly OpenStack operator what host and port Keystone is running on and put that in-place of OPENSTACK KEYSTONE HOST : 5000", "Question : null .. . Answer : I am using Openstack Kilo version . I want to implement the federated-identity management with keystone as SP and Testshib as IDP . My current status : .. . .. . When I try to fetch the token using .. . .. . I get the following error .. . .. . Could not find identity provider identifier in the environment code : 400 title : Bad Request .. . .. . If anyone has encountered a similar error or have knowledge about it please help .", "Question : I have a single machine installation of OpenStack Mitaka on a Fedora 24 server VM that includes Keystone and Swift . I went through the OpenStack installation instructions and got the v3 keystone API working but some other software I m installing depends on v2 . I am unable to authenticate with the v2 API and get a token even though the equivalent request to the v3 API works correctly . Here are the two requests I m making : .. . .. . V3 : .. . .. . V2 : .. . .. . The V3 request returns a token but the V2 request fails with : .. . .. . Are these API requests equivalent Are there keystone.conf settings that need to be changed in order to make the V2 API work .. . Answer : If you run v2 keystone version by default it starts up on http : SERVER : 5000 v2.0 make sure your port is open and v2 version is enabled and working . Comment : The v2 API is definitely up and running and I have tried the request both on 5000 and 35357 . If I change the format of the body of the request and misspell passwordCredentials it complains specifically about that element being missing and that s only part of the v2 API AFAIK .", "Question : null .. . Answer : I have been trying to deploy Openstack-packstack on Redhat Linux 6.5 . While deploying it I faced a lot of errors but somehow I successfully resolved them . Then came this error : .. . .. . ERROR : Error appeared during Puppet run : 192.168.42.67 keystone.pp Package openstack-keystone has not been found in enabled Yum repos . You will find full trace in log var tmp packstack 20160217-013159-gebSoY manifests 192.168.42.67 keystone.pp.log .. . .. . I Googled this problem so the result showed me to create enable EPEL repo . Even after doing that the error didn t got resolved . So can anybody help me determine what the issue is and if there any way to resolve this . Please find the image of the error here . Image of Openstack-Keystone Error http : i.stack.imgur.com vjXpS.png Comment : cleaned up grammar embedded image", "Question : I m new to openstack and I m trying to setup an all-In-One environment I m Working with Ubuntu 14.04 image .. . .. . I m following this guide : http : fosskb.in 2015 10 20 openstack-liberty-on-ubuntu-14-04-and-ubuntu-15-10 .. . .. . When installing keystone with the following command : .. . .. . apt-get install -y keystone apache2 libapache2-mod-wsgi memcached python-memcache python-openstackclient .. . .. . It tells me the following packages have unmet dependences : .. . .. . aptitude tells me that python-keystone has the following dependences that are unavailable or unsatisfied : .. . .. . I have tried searching for a solution to fix these dependences but have been unsuccessful . Any help greatly appreciated . Thanks in advance . .. . Answer : Make sure you have the liberty repository added . sudo add-apt-repository cloud-archive : liberty .. . .. . If you get a command not found . sudo apt-get install software-properties-common Comment : Hi twa16 Thanks for replying . I did add the liberty repository . If you have any other ideas id be delighted to hear them .", "Question : I followed Install the OpenStack command-line clients http : docs.openstack.org cli-reference common cli install openstack command-line clients.html on Mac 10.11.5 .. . .. . To install the clients on a Linux Mac OS X or Microsoft Windows system use pip . It is easy to use ensures that you get the latest version of the clients from the Python Package Index and lets you update or remove the packages later on . I wish to change password with user-password-update http : docs.openstack.org developer keystone cli examples.html .. . .. . after installing keystone command is not found . Howto invoke keystone Here the details what I did and how my system looks like .. . .. . PYTHONPATH is also set . Howto get Python modules in path execute the commands on Terminal .. . Answer : Python-keystone client https : wiki.openstack.org wiki OpenStackClients python-keystoneclient is deprecated I suspect that s the issue : if you installed it on a new system the executable is not there . You should install openstack-client instead . pip install python-openstackclient", "Question : I am trying to list all the keystone projects present on my setup . The snippet i am using displays only few of them . CODE-1 : .. . .. . OUTPUT .. . .. . CODE-2 .. . .. . OUTPUT .. . .. . EXPECTED OUTPUT .. . .. . Things i want to understand : .. . .. . Why CODE-1 displays few of the them from the list .. . Why CODE-2 fails .. . How to get the keystone project IDS from keystone client .. . Answer : Why CODE-1 displays few of the them from the list .. . .. . Your code does filter the tenants if you like to see all tenants list do not filter them like this : .. . .. . Your filter user sess.get user id returns all tenants that was created by current user . Why CODE-2 fails .. . .. . I suppose the error is in args you give user id idm if you use user name then argument should be username idm if you pass in arg user id then you need to pass user id eg user id 56d88dd0a3ab4c4c8d1d15534352d7de .. . .. . You can take id from horizon http : localhost horizon identity users .. . .. . In source code there are example of client creation : .. . .. . How to get the keystone project IDS from keystone client .. . .. . If you like to see all tenants ids suppose admin credentials", "Question : null .. . Answer : I m trying to launch a multi-region cloud with devstack but keep getting the error message .. . .. . during the install of devstack on the 2nd region . Openstack itself is not even installed on the 2nd region while installation runs fine on the 1st one . The only difference I see are some configuration variables in local.conf for the second region : .. . .. . Changed the 2 keystone variables so the 2nd region only authenticates on keystone service installed on the 1st region . Already checked if the regions are accessible to each other using the ping command-line and that the region 1 have an endpoint available for region 2 with keystone service : .. . .. . Here is a sample of the final output when I run . stack.sh to install devstack on the 2nd region . I d appreciate any help . Thanks Comment : Why the -1 vote Comment : I am getting the same error. . Any updates yet Comment : Use the Kilo version . We are not sure exactly why but this problem seems to be happening only with liberty release . Comment : Thanks. . I tried with both Liberty and Mitaka. . Will debug more and update if I find a solution. .", "Question : null .. . Answer : Configured ldap in the keystone.conf file and getting following error while getting token : .. . .. . keystone.log file : .. . .. . Then tried creating default domain but still getting same issue .. . .. . opestack version : .. . .. . keystone version : .. . .. . I ve hard requirement of using keystone v2 with ldap in the backend please help me what I m missing here Comment : default domain should already exist since it s the one used by the services . You should try to create a new domain let s say users . You may need to use keystone API v3 since the v2 is not domain-aware . I think this article should help : docs.hpcloud.com commercial GA1 https : docs.hpcloud.com commercial GA1 1.1commerical.services-identity-integrate-ldap.html", "Question : null .. . Answer : I have a need to combine 2 node.js open-source projects in one server : NodeBB as a forum engine and Keystone as a blog engine : .. . .. . There are 2 instances of Express routers are started and used - one for NodeBB on forum path and second for Keystone on root path . The problem is that something goes wrong with static Keystone files . The are located in . keystone public folder . and have to be served from root f.e . : .. . .. . . keystone public style.css style.css .. . .. . I have a Keystone express instance setting for it s static files as : .. . .. . where staticPaths is an array containig list for static paths of keystone staticOptions is empty this.expandPath value - working ok and returns right path to file . i mean path on server .. . .. . But when I try to access some static file it returns 303 from serve-static redirecting this name to a folder with trailing and finds nothing.. . .. . .. . http : localhost : 1111 js jquery jquery-1.11.3.min.js 303 http : localhost : 1111 js jquery jquery-1.11.3.min.js 200 OK - but returns 404 handled error html page.. ." ] }
[ "yes-answer-long", "yes-answer-short" ]
authentication
UNK_RELATION
fitsharp@.net@85
fitsharp -- fitsharp is a set of open-source web-based functional-testing tools for @placeholder inspired by the framework for integrated test .
{ "confidence": [ 47.989166259765625, 46.275299072265625, 43.91123580932617, 42.52283477783203, 42.197364807128906, 42.197364807128906, 42.197364807128906, 42.166202545166016, 42.166202545166016, 41.93914794921875, 41.06037521362305, 41.03077697753906, 40.80896759033203, 40.80896759033203, 40.80896759033203, 40.80896759033203, 40.15415954589844, 39.697662353515625, 39.671974182128906, 39.23759460449219, 39.144264221191406, 39.144264221191406, 39.144264221191406, 39.09211349487305, 38.309261322021484, 38.17361068725586, 37.430397033691406, 37.430397033691406, 37.430397033691406, 37.430397033691406, 37.430397033691406, 37.430397033691406, 37.430397033691406, 37.430397033691406, 36.87920379638672, 36.87920379638672, 36.87920379638672, 36.87920379638672, 36.29340744018555, 36.29340744018555, 35.13936233520508, 35.078975677490234, 34.593353271484375, 34.593353271484375, 34.593353271484375, 34.593353271484375, 33.729679107666016, 33.57879638671875, 33.57879638671875, 33.57879638671875, 33.199405670166016, 32.879486083984375, 32.879486083984375, 32.879486083984375, 32.879486083984375, 32.879486083984375, 32.879486083984375, 32.879486083984375, 32.879486083984375, 32.879486083984375, 32.879486083984375, 32.879486083984375, 32.879486083984375, 32.879486083984375, 32.44180679321289, 31.808094024658203, 31.74249267578125, 31.251115798950195, 30.094226837158203, 30.094226837158203, 30.094226837158203, 30.094226837158203, 30.094226837158203, 30.094226837158203, 29.989452362060547, 29.409832000732422, 28.688507080078125, 27.779386520385742, 26.974639892578125, 26.974639892578125, 26.974639892578125, 26.974639892578125, 26.974639892578125, 26.363983154296875, 25.837648391723633, 25.837648391723633, 25.301578521728516, 23.587709426879883, 23.271394729614258, 22.87640953063965, 22.383987426757812, 21.799057006835938, 21.115758895874023, 20.67011833190918, 20.12191390991211, 20.10779571533203, 20.085189819335938, 20.075105667114258, 19.504308700561523, 19.504308700561523 ], "content": [ "I am using fitsharp for invoking an acceptance test .", "Echo is in the Java code and not accessible to a fitSharp test .", "defined the FitSharp runner in the root of fitnesse we have placed fitsharp in a subdirectory inside fitnesse so the path is relative .", "I am using Fitnesse with C and FitSharp .", "A preview version is at github.com jediwhale fitsharp downloads https : github.com jediwhale fitsharp downloads", "I am trying to use a Suite Configuration File http : fitsharp.github.io FitSharp SuiteConfigurationFile.html with FitSharp .", "define COMMAND PATTERN m -r fitnesse.fitserver.FitServer fitsharp fit.dll p define TEST RUNNER fitsharp Runner.exe", "It s pretty easy to add to fitSharp .", "Tests are being run thru FitSharp", "I m using FitSharp http : www.syterra.com FitSharp.html to test an application and have a question related to testing contents of lists .", "Hum. . Maybe not.. . github.com jediwhale fitsharp issues 63 https : github.com jediwhale fitsharp issues 63", "I am trying to test method in DAL of my web application with Fitnesse and FitSharp .", "The answer is that fitSharp has a different symbol syntax .", "I am using FitSharp in order to do so .", "Look at the Behavior section on http : fitsharp.github.com FitSharp SuiteConfigurationFile.html", "wait until was added in fitSharp version 2.3", "In my test project to be used with FitSharp I have an app.config that used custom config sections : .. . .. . However when I try to test this project with FitSharp a ConfigurationErrorsException is thrown : .. . .. . System.Reflection.TargetInvocationException : Exception has been thrown by the target of an invocation .", "We are using the latest version of FitSharp downloaded it yesterday and use the version of DbFit that is included with FitSharp .", "I m using Fitnesse with FitSharp to run integration tests .", "Create a suite config file fitsharp.github.com FitSharp SuiteConfigurationFile.html http : fitsharp.github.com FitSharp SuiteConfigurationFile.html with something like this in it : suiteConfig ApplicationUnderTest addNamespace fitlibrary addNamespace ApplicationUnderTest suiteConfig", "Someone who might have deeper knowledge of FitNesse and FitSharp", "Possible these libraries were not loaded because fitSharp tries to find then in the different folder .", "I m currently setting up Fitnesse with FitSharp and the .net implementation of dbfit .", "I have a test set up in FITSharp that contains an include page from current section as shown below .", "Try this : .. . .. . from http : fitsharp.github.io FitSharp AppConfigFile.html", "Try putting the DLLs that the test is looking for in the same folder as the fitsharp Runner.exe .", "See http : www.asoftwarecraft.com 2010 01 troubleshooting-with-fitsharp-and.html", "Ahh on the fitSharp site it makes it seem like you need to use the -a switch .", "The issue arises when I add configuration for fitSharp to the root page .", "This worked fine with my older Fitnesse installation without fitSharp .", "Is there a way to get the FitNesse Fitsharp to show real-time results", "When I then update with fixes for the timeout - https : github.com jediwhale fitsharp will fail .", "I m using the latest FitNesse jar and the fitSharp .NET 2.2 4.0 libraries .", "The fitsharp thread needs something to make it wait for the background worker thread to complete .", "I have attempted this with both fitsharp and netrunner but both end up in my test page being ignore .", "I m using FitNesse with FitSharp .Net and I m trying to Setup a test suite : .. . .. . 1 .", "Details .. . .. . I am writing fixtures to test a multi-threaded C application .NETv4 using FitNesse v20150814 and Fitsharp v2.2.4498.25493 .", "The other handlers ProgressChanged RunWorkerCompleted are not called until the very end of the test when presumably the FitSharp thread is also completing .", "I ve opened an issue : https : github.com jediwhale fitsharp issues 118", "like in java GivWenZen .. . .. . we are using fitnesse in .Net 4.0 using Fitsharp .", "There is a apparently a way to use the fitsharp suite configuration file to change this behavior but I haven t been able to get it working successfully http : fitsharp.github.com FitSharp SuiteConfigurationFile.html .", "If I change from standalone mode to flow mode with the following test table as the first table in the test then the DB connection works fine : .. . .. . Version info : .. . .. . Fitnesse.jar is version 20110104 .. . fitSharp is version 1.8 for .net-4.0 .. . OS : WinXP Pro SP3 .. . .. . Am I missing something or is this a known defect in the latest version of fitSharp", "I installed a clean version of Fitnesse v20121220 and the latest version of FitSharp .net 4 .", "FitSharp supports optional cell Operators .. . .. . How do I use this one specifically", "As you commented fitSharp doesn t support the operator you could use 3.14 and 3.15 on two rows but not quite as nice", "Remove the space after the comma in : .. . .. . Actually with recent versions of fitSharp you don t need to specify the fit.dll .", "In the next release there will be a commandtimeout option : .. . .. . set option command timeout 900 .. . .. . http : github.com jediwhale fitsharp issues issue 52", "We use Fitnesse FitSharp and we have a requirement for a single fit test that will call and run individual tests that span multiple suites .", "The problem is that the fitSharp test module is packed up and finished with before the final event handlers are called on my worker thread far right .", "You ll need some way to tell fitSharp to wait until your background worker is finished before continuing with the next step in your test script .", "I m running into some odd behavior when trying to setup an ActionFixture test using Fitnesse with FitSharp as the test runner .. . .. . When creating an actionFixture I ll get an error that the class Namespace.TestClassName in example below cannot be found .", "In the example c : myfolder mysuite.config.xml is a suite configuration file see http : fitsharp.github.com FitSharp SuiteConfigurationFile.html .", "I have been using Fitnesse.NET for some time and am now attempting to upgrade to the newer fitSharp engine .", "I have a question concerning a difference I noticed between FiNesse and the newer version of FitNesse with Fitsharp to work with .Net 4.0 .", "We have just successfully upgraded to FitSharp and everything has gone really well .", "I believe you d need to make Fit Sharp aware of your App.config file http : fitsharp.github.com FitSharp AppConfigFile.html :", "I think the problem is that FitSharp tries to parse the argument instead of casting the object up to its interface .", "I forked fixed and made a pull request on GitHub .. . .. . https : github.com jediwhale fitsharp pull 109", "Does somebody know how I can get the root directory or the page folder of FitNesse in FitSharp fixture codes", "This can be done - you need to write a custom class to handle the creation operation for fitSharp .", "NetRunner : .. . Result : http : screencast.com t mBdkCyGow .. . .. . Fitsharp : .. . Result : http : screencast.com t GMqdgwxA6", "Using FitNesse with FitSharp .Net I ve got a property of an object that is a HashSet of an enum e.g .", "There s nothing to stop the fitsharp thread from running to completion - and that s exactly what your thread information shows .", "If I then use the debugger to move out of the wait loop then the later event handlers will fire but always after the fitsharp script is finished .", "Yes the Slim Test System in FitNesse offers an approximately equals http : fitnesse.org FitNesse.UserGuide.WritingAcceptanceTests.SliM.ValueComparisons operator as you point out but I agree that it is not available in fitSharp .", "I don t understand why this is happening - I ve used Fitnesse Fitsharp before without problems but this just doesn t seem to want to work .", "I m new to C I m trying to get fitSharp working with a fixture which always returns a hard-coded string hi .", "For reference here is my root content confirming these variable definitions are present and correct at least according to this fitSharp configuration page http : fitsharp.github.com Fit UsingFitnesse.html : .. . .. . I finally found one troubleshooting note http : www.asoftwarecraft.com 2010 01 troubleshooting-with-fitsharp-and.html mentioning that RunnerW gives some diagnostic information so I switched to that and received this error message indicating it is apparently an issue arising due to .NET 4 : .. . .. . Could not load file or assembly file : C : fitnesse fitSharp fit.dll or one of its dependencies .", "I have tried putting it in the fitSharp folder with Runner.exe.config fit.dll.config with .xml after those names in the FitNesse root folder in the App directory. .", "But then I ran smack into another issue that has apparently reared its head before : type DoFixture is not found this is fitsharp v1.8 for .net-4.0 .", "In attempting to upgrade to the latest Fitnesse fitSharp release for .NET I find that my database actions written in standalone mode now fail uniformly .", "No changes in the architecture of fitSharp to enable some of its new features meant that the results of a storytest are delivered back to FitNesse all at once rather than table by table .", "When I run my FItnesse tests using fitSharp I am getting the No converter for System.Double error message near each value in capexAmounts column .", "It will implement this interface : .. . .. . Then you tell fitSharp to use this class in the suite configuration file : .. . .. . As a stating point here s a very simple create operator .", "However I don t know how to define the type T within the script table so that slim can parse it.. . https : github.com jediwhale fitsharp blob master source fitSharpTest NUnit Machine MemberQueryTest.cs", "I have seen other code using an echo fixture to set the values in a script table like this : .. . .. . but I get the exception : .. . .. . What do I have to do to use the echoFixture in FitSharp", "It s simpler to just have a class that creates a customer object list and fitSharp will automatically wrap the list in a fixture to check the results : .. . .. . See http : fitsharp.github.io Fit FixtureWrapper.html", "I d like to test it simply for example in an array fixture like so : .. . .. . This simply results in all rows marked missing red and a set of surplus rows showing something like : .. . .. . What s the easiest way to get FitNesse with FitSharp .Net to understand HashSets", "visit this page .. . .. . http : oweng.net Visual-Studio-2010 Coded-UI-Fitnesse integrating-coded-ui-and-fitnesse-fitsharp-slim-1.aspx .. . .. . i was facing a similar issue but got resolved after visiting tjis page .", "I am using : FitVersionFixture.IsStandard .. . .. . However now with .Net 4.0 and FitSharp I am getting the following error : .. . .. . System.MissingMethodException : Method not found : Boolean fit.FitVersionFixture.get IsStandard .. . .. . It appears that the method has been deprecated .", "I have created a class which is copy-pasted from the decompiled code for CreateDefault decompiled from Fitsharp.. . .. . .. . ...and registered this in the SuiteConfig.xml.. . .. . .. . ...this gives the following exception as it tries to load in my CreateDefault class .", "Unfortunately if such a method requires more than one parameter I have to separate those parameters with empty cells because otherwise fitnesse fitSharp uses odd even cells to build up the method name .", "As has been pointed out on this github issue https : github.com jediwhale fitsharp issues 142 GetSingletonByIdentifier returns a Configuration object that gets wrapped in a DoFixture and processes the remainder of the table .", "Exception from HRESULT : 0x80131515 File name : file : c : fitnesse fitsharp fit.dll --- System.NotSupportedException : An attempt was made to load an assembly from a network location which would have caused the assembly to be sandboxed in previous versions of the .NET Framework .", "Two possibilities to consider : .. . .. . First though I have not had occasion to use them fitSharp offers a variety of cell operators http : fitsharp.github.io Fit CellOperators.html --see in particular Compare Foating Point on that list .", "fitnesse.996250.n3.nabble.com http : fitnesse.996250.n3.nabble.com fitSharp-namespace-issues-TypeMissingException-for-fixture-name-td11201.html Its kind of old but who knows.. .", "I have been trying to migrate over to FitSharp after we upgraded our project to .NET 4.0 however I am currently stuck with the error : .. . .. . I am using fitnesse-standalone.jar as server if that makes any difference and have ofc .", "Update : .. . .. . My fixture code : .. . .. . Suite config file example.config.xml : .. . .. . And FitNesse root page : .. . .. . I ve tried including fit.dll to my assemblies : https : github.com jediwhale fitsharp issues issue 62 .. . .. . Also tried adding some operators.. .", "Should have mentioned that I m testing the dll through the FitNesse framework .", "One problem that I ran into is that .NET run-time dependencies that are defined in app.config are resolved from the directory in which the process is executed from which in this case is probably the directory where fitsharp resides .", "For more see part 2 http : www.simple-talk.com dotnet .net-tools acceptance-testing-with-fitnesse-documentation-and-infrastructure seven of my seven-part series on Acceptance Testing with FitNesse published on Simple-Talk.com .", "Comparing for an error is one of the standard compare operators in fitsharp see http : fitsharp.github.io Fit CellOperators.html you should be able to remove it using wiki syntax below .. . .. . configure processor remove operator My.Operator .. . .. . and add it back in if needed later in the page using .. . .. . configure processor add operator My.Operator .. . .. . configure processor add operator first My.Important.Operator .. . .. . or via code as .. . .. . or alternatively you can add or remove operators in the suite config file", "I found the following test in the source code so it should be possible .", "I m using Fitnesse with CleanCodeFixtures from Michael Sorens article Acceptance Testing with Fitnesse https : www.simple-talk.com dotnet .net-tools acceptance-testing-with-fitnesse -the-overview .", "I m trying to create a custom converter for my test page in SLIM framework for fitnesse .", "https : www.simple-talk.com dotnet .net-tools acceptance-testing-with-fitnesse -the-overview .. . I presume the code is right the Fitnesse pages are right and that it is something with my setup .", "I m trying to use Symbols http : fitnesse.org FitNesse.UserGuide.FixtureGallery.ImportantConcepts.FixtureSymbols in my .NET FitNesse fixtures using the last version of FitSharp release.1.8.net.40.zip like this : .. . .. . The symbol player is ignored : .. . .. . 1 expected player .. . .. . I tried to load the handlers : .. . .. . But it doesn t seem to work : .. . .. . Could not find class CellHandlerLoader .. . .. . There were some library changes as described here : http : fitsharp.github.com Fit BreakingChanges.html .. . .. . Any help would be appreciated .", "This is what i got so far based on this post : Testing a Facebook Connect application using Selenium http : stackoverflow.com questions 8845614 testing-a-facebook-connect-application-using-selenium 8867886 8867886 .", "This test uses the Slim test system so it provides the operator .", "My test wants to test for the string Error being returned ." ] }
{ "confidence": [ 55.38843536376953, 53.88462829589844, 53.882598876953125, 52.948280334472656, 52.625946044921875, 52.467933654785156, 52.00794982910156, 51.699771881103516, 51.04600143432617, 50.86001205444336, 50.713348388671875, 49.87224578857422, 49.63243865966797, 49.00662612915039, 48.40607833862305, 47.669315338134766, 47.44489288330078, 47.202606201171875, 46.9525032043457, 46.68144989013672 ], "content": [ "Question : I am trying to test method in DAL of my web application with Fitnesse and FitSharp . I am having problems with reading app.config . Getting error : .. . .. . This is in getter .. . .. . Why ConfigurationManager is not initialized .. . How to configure Fitnesse for testing DAL .. . Thanks for any advice .. . Answer : I believe you d need to make Fit Sharp aware of your App.config file http : fitsharp.github.com FitSharp AppConfigFile.html : Comment : Thanks . It works . I just want to add that app.config is case sensitive with fit runner . Tag ConnectionStrings must starts with lowercase : configuration connectionStrings", "Question : I have a question concerning a difference I noticed between FiNesse and the newer version of FitNesse with Fitsharp to work with .Net 4.0 . When running tests with the older version of FitNesse the test results page showed each command s result as that particular command completed while the test was still running . With the newer FitNesse Fitshap I ve noticed that my test completes before it reveals any results to me . Is there a way to get the FitNesse Fitsharp to show real-time results .. . Answer : No changes in the architecture of fitSharp to enable some of its new features meant that the results of a storytest are delivered back to FitNesse all at once rather than table by table . Comment : Oh this is quite unfortunate . We have over 200 people on our development team with over 10 000 tests which we run through FitNesse . We have just successfully upgraded to FitSharp and everything has gone really well . That results feature however is one thing we are missing . Is there possibly any way to add a progress-bar so our testers can follow along with a test in that sense Comment : I ll put something in the next release . And when is the next release When I get enough spare time to get it ready : Comment : Change is ready . A preview version is at github.com jediwhale fitsharp downloads https : github.com jediwhale fitsharp downloads", "Question : I have been using Fitnesse.NET for some time and am now attempting to upgrade to the newer fitSharp engine . I immediately ran into a roadblock though . Starting with a fresh system I downloaded the latest fitnesse.jar and executed installed it all my test pages were then displaying fine from my browser . The issue arises when I add configuration for fitSharp to the root page . I tried a variety of combinations of setting TEST RUNNER and COMMAND PATTERN the end result was always that upon executing any test the fitnesse server never returned a result to my browser . For reference here is my root content confirming these variable definitions are present and correct at least according to this fitSharp configuration page http : fitsharp.github.com Fit UsingFitnesse.html : .. . .. . I finally found one troubleshooting note http : www.asoftwarecraft.com 2010 01 troubleshooting-with-fitsharp-and.html mentioning that RunnerW gives some diagnostic information so I switched to that and received this error message indicating it is apparently an issue arising due to .NET 4 : .. . .. . Could not load file or assembly file : C : fitnesse fitSharp fit.dll or one of its dependencies . Operation is not supported . Exception from HRESULT : 0x80131515 File name : file : c : fitnesse fitsharp fit.dll --- System.NotSupportedException : An attempt was made to load an assembly from a network location which would have caused the assembly to be sandboxed in previous versions of the .NET Framework . This release of the .NET Framework does not enable CAS policy by default so this load may be dangerous . If this load is not intended to sandbox the assembly please enable the loadFromRemoteSources switch . See http : go.microsoft.com fwlink LinkId 155569 for more information . The referenced MSDN page says that I need this in my config file : .. . .. . So it looks like I have three possibilities . Is there : .. . .. . 1 . An app.config or equivalent where I can insert that config section 2 . A way to stop fitnesse from thinking that my local file is on a remote path 3 . A way to enable CAS policy for the .NET framework Suggestions would be appreciated 2010.01.17 Edit : I am using fit-protocol rather than slim protocol in my environment . .. . Answer : visit this page .. . .. . http : oweng.net Visual-Studio-2010 Coded-UI-Fitnesse integrating-coded-ui-and-fitnesse-fitsharp-slim-1.aspx .. . .. . i was facing a similar issue but got resolved after visiting tjis page .", "Question : I have been using Fitnesse.NET for some time and am now attempting to upgrade to the newer fitSharp engine . I immediately ran into a roadblock though . Starting with a fresh system I downloaded the latest fitnesse.jar and executed installed it all my test pages were then displaying fine from my browser . The issue arises when I add configuration for fitSharp to the root page . I tried a variety of combinations of setting TEST RUNNER and COMMAND PATTERN the end result was always that upon executing any test the fitnesse server never returned a result to my browser . For reference here is my root content confirming these variable definitions are present and correct at least according to this fitSharp configuration page http : fitsharp.github.com Fit UsingFitnesse.html : .. . .. . I finally found one troubleshooting note http : www.asoftwarecraft.com 2010 01 troubleshooting-with-fitsharp-and.html mentioning that RunnerW gives some diagnostic information so I switched to that and received this error message indicating it is apparently an issue arising due to .NET 4 : .. . .. . Could not load file or assembly file : C : fitnesse fitSharp fit.dll or one of its dependencies . Operation is not supported . Exception from HRESULT : 0x80131515 File name : file : c : fitnesse fitsharp fit.dll --- System.NotSupportedException : An attempt was made to load an assembly from a network location which would have caused the assembly to be sandboxed in previous versions of the .NET Framework . This release of the .NET Framework does not enable CAS policy by default so this load may be dangerous . If this load is not intended to sandbox the assembly please enable the loadFromRemoteSources switch . See http : go.microsoft.com fwlink LinkId 155569 for more information . The referenced MSDN page says that I need this in my config file : .. . .. . So it looks like I have three possibilities . Is there : .. . .. . 1 . An app.config or equivalent where I can insert that config section 2 . A way to stop fitnesse from thinking that my local file is on a remote path 3 . A way to enable CAS policy for the .NET framework Suggestions would be appreciated 2010.01.17 Edit : I am using fit-protocol rather than slim protocol in my environment . .. . Answer : I ve never seen that before Why does it think C : is a dangerous network location Anyway the executable is Runner.exe or RunnerW.exe so if you create a Runner.exe.config with the settings above it should pick it up . Comment : Thanks Mike that succeeded . But then I ran smack into another issue that has apparently reared its head before : type DoFixture is not found this is fitsharp v1.8 for .net-4.0 . I will enter this as a separate question when I get a chance--unless you have a quick answer Comment : It s a bug - being fixed . Workaround is to add namespace fitlibrary to suite config file . Comment : Can you clarify the fix for DoFixture I don t understand what to do . Thank you Comment : Create a suite config file fitsharp.github.com FitSharp SuiteConfigurationFile.html http : fitsharp.github.com FitSharp SuiteConfigurationFile.html with something like this in it : suiteConfig ApplicationUnderTest addNamespace fitlibrary addNamespace ApplicationUnderTest suiteConfig", "Question : I have been using Fitnesse.NET for some time and am now attempting to upgrade to the newer fitSharp engine . I immediately ran into a roadblock though . Starting with a fresh system I downloaded the latest fitnesse.jar and executed installed it all my test pages were then displaying fine from my browser . The issue arises when I add configuration for fitSharp to the root page . I tried a variety of combinations of setting TEST RUNNER and COMMAND PATTERN the end result was always that upon executing any test the fitnesse server never returned a result to my browser . For reference here is my root content confirming these variable definitions are present and correct at least according to this fitSharp configuration page http : fitsharp.github.com Fit UsingFitnesse.html : .. . .. . I finally found one troubleshooting note http : www.asoftwarecraft.com 2010 01 troubleshooting-with-fitsharp-and.html mentioning that RunnerW gives some diagnostic information so I switched to that and received this error message indicating it is apparently an issue arising due to .NET 4 : .. . .. . Could not load file or assembly file : C : fitnesse fitSharp fit.dll or one of its dependencies . Operation is not supported . Exception from HRESULT : 0x80131515 File name : file : c : fitnesse fitsharp fit.dll --- System.NotSupportedException : An attempt was made to load an assembly from a network location which would have caused the assembly to be sandboxed in previous versions of the .NET Framework . This release of the .NET Framework does not enable CAS policy by default so this load may be dangerous . If this load is not intended to sandbox the assembly please enable the loadFromRemoteSources switch . See http : go.microsoft.com fwlink LinkId 155569 for more information . The referenced MSDN page says that I need this in my config file : .. . .. . So it looks like I have three possibilities . Is there : .. . .. . 1 . An app.config or equivalent where I can insert that config section 2 . A way to stop fitnesse from thinking that my local file is on a remote path 3 . A way to enable CAS policy for the .NET framework Suggestions would be appreciated 2010.01.17 Edit : I am using fit-protocol rather than slim protocol in my environment . .. . Answer : I know this has been answered but imho there is a better resolution . If you unblock fit.dll right-click- properties- Unblock you won t get the error . Happens due to downloaded files being locked by default . Comment : That worked like a charm . Thanks for sharing .", "Question : In attempting to upgrade to the latest Fitnesse fitSharp release for .NET I find that my database actions written in standalone mode now fail uniformly . This worked fine with my older Fitnesse installation without fitSharp . This attempt to connect to a database : .. . .. . generates this error : .. . .. . The list of searched assemblies includes dbfit.DLL dbfit.Oracle.DLL and dbfit.SqlServer.DLL and .NET Reflector confirms that SqlServerEnvironment is in fact in the dbfit.DLL file . If I change from standalone mode to flow mode with the following test table as the first table in the test then the DB connection works fine : .. . .. . Version info : .. . .. . Fitnesse.jar is version 20110104 .. . fitSharp is version 1.8 for .net-4.0 .. . OS : WinXP Pro SP3 .. . .. . Am I missing something or is this a known defect in the latest version of fitSharp .. . Answer : This is a known bug . Should be fixed in the next release . Comment : Any idea when the next release is due Comment : Depends on my free time . Hopefully end of this month .", "Question : I am struggling to code a fixture that will test a C application that is using BackgroundWorker thread . Any help would be much appreciated Details .. . .. . I am writing fixtures to test a multi-threaded C application .NETv4 using FitNesse v20150814 and Fitsharp v2.2.4498.25493 . In the ViewModel the background worker is setup as follows : .. . .. . Then during the user interaction the worker is kicked off with : .. . .. . In interactive mode this works fine with the event handlers being called as expected . However when I initiate the Run command using a FitNesse fixture only the DoWorkEventHandler is called as expected . The other handlers ProgressChanged RunWorkerCompleted are not called until the very end of the test when presumably the FitSharp thread is also completing . As critical work is node by those other handlers I am not able to test the outcome of the background worker s work . A colleague suggested re-structuring the application so that all the work is done in the DoWork event handler and that can work but I really don t want to go re-working the application if I can avoid it . .. . .. . Additional information .. . .. . I analyzed the threads and the call stack and have drawn a diagram to show what appears to be going on . The problem is that the fitSharp test module is packed up and finished with before the final event handlers are called on my worker thread far right . Sequence Diagram http : i.stack.imgur.com 2glHh.png .. . .. . The sequence-diagram is based on this thread information http : i.stack.imgur.com IU6tw.png information . I can post more details if requested and apologies for the cramming in the threads image but I could only post 2 links.. . .. . Answer : You ll need some way to tell fitSharp to wait until your background worker is finished before continuing with the next step in your test script . The wait until keyword can help do this . See http : fitsharp.github.io Fit WaitUntilKeyword.html for details . You ll need a fixture method that can detect when the background worker is finished . e.g . wait until was added in fitSharp version 2.3 Comment : Thanks for your response Mike but I don t think that is my problem . Please check out the Additional Information section I just added above . Comment : I should add for clarity that I already have a wait loop in my fixture and that does work for the initial DoWork event - just not the later events as described in my additional info above . Comment : I still think my explanation is correct . There s nothing to stop the fitsharp thread from running to completion - and that s exactly what your thread information shows . The fitsharp thread needs something to make it wait for the background worker thread to complete . Comment : Sorry Mike . I have confused us both.. . The sequence-diagram shows what happens if I do not wait . If I DO wait then the script never advances past the wait loop because the event handlers after DoWork are never called . If I then use the debugger to move out of the wait loop then the later event handlers will fire but always after the fitsharp script is finished . Comment : OK . If you can post a minimum working set of code that reproduces the problem I can look into it .", "Question : I have a test set up in FITSharp that contains an include page from current section as shown below . The main test keeps passing even when the included test page fails when expanded . Is there a way to force FITNesse to take into account the results of included tests . Here is my test : .. . .. . include page from current . . testFileName.html .. . Answer : It s a bug . I ve opened an issue : https : github.com jediwhale fitsharp issues 118", "Question : null .. . Answer : I am using fitsharp for invoking an acceptance test . The code has compiled perfectly and when run from Visual Studio runs without any problem . But when I invoke the same test from Fitnesse it throws up an error Cannot find the file Microsoft.Practices.ObjectBuilder version 1.0.x.x . I have tried to check in the test project and all the referenced dlls but this particular library is not used anywhere . Also I could not find the ObjectBuilder library with the same signature as mentioned above anywhere . Could someone help Comment : Can you post the FitNesse test page Comment : and the full exception . Comment : Did you check the folders using by your application Possible these libraries were not loaded because fitSharp tries to find then in the different folder . Try to set working folder directly .", "Question : I am using Fitnesse with C and FitSharp . My test wants to test for the string Error being returned . However this is being interpreted as the Error keyword and the test fails . How can I tell Fitnesse to treat this as a string .. . Answer : Comparing for an error is one of the standard compare operators in fitsharp see http : fitsharp.github.io Fit CellOperators.html you should be able to remove it using wiki syntax below .. . .. . configure processor remove operator My.Operator .. . .. . and add it back in if needed later in the page using .. . .. . configure processor add operator My.Operator .. . .. . configure processor add operator first My.Important.Operator .. . .. . or via code as .. . .. . or alternatively you can add or remove operators in the suite config file", "Question : Is there any way to increase the CommandTimeout for DbFit queries I have a long running stored procedure that times out when running it in a DbFit Test . It s possible for the procedure to run for a really long time processing millions of records and would like to have DbFit wait until it s completed even if it takes several minutes . We are using the latest version of FitSharp downloaded it yesterday and use the version of DbFit that is included with FitSharp . .. . Answer : In the next release there will be a commandtimeout option : .. . .. . set option command timeout 900 .. . .. . http : github.com jediwhale fitsharp issues issue 52 Comment : Awesome Thanks Comment : I love Fit FitNesse Slim", "Question : I am trying to use a Suite Configuration File http : fitsharp.github.io FitSharp SuiteConfigurationFile.html with FitSharp . I am use the exact format that this page lays out however every time I try to access it I get the following error : .. . .. . It appears that AppDomainSetup is not a valid tag for a suite config but that cannot be since it is used in that example . What is going on How would I correct this issue My ultimate goal is to use two config files for the testing fixtures . I need to use both an App.config and a wse3policyCache.config . .. . .. . Here is my Suite Config .. . .. . And here is the beginning of the Fitnesse Test page that I am using .. . Answer : The issue is that the documentation is not completely accurate . AppDomainSetup must be be fully qualified as .. . .. . Thanks to the guys over at this forum post http : fitnesse.996250.n3.nabble.com AppDomainSetup-in-suite-config-error-td4823.html for helping me out .", "Question : I m using Fitnesse with FitSharp to run integration tests . I m using the RowFixture to test a table of numerical results and need to be able to test an approximate value to about 3 decimal places . How can I achieve this I read somewhere about using but this does not appear to work on tables .. . Answer : Yes the Slim Test System in FitNesse offers an approximately equals http : fitnesse.org FitNesse.UserGuide.WritingAcceptanceTests.SliM.ValueComparisons operator as you point out but I agree that it is not available in fitSharp . Two possibilities to consider : .. . .. . First though I have not had occasion to use them fitSharp offers a variety of cell operators http : fitsharp.github.io Fit CellOperators.html --see in particular Compare Foating Point on that list . Second one technique I have used is this : Example of specifying precision http : i.stack.imgur.com Rcetu.png .. . .. . That is my Math fixture lets you specify a precision defaulting to two places if unspecified . The code-behind for that is quite simple :", "Question : I m using Fitnesse with FitSharp to run integration tests . I m using the RowFixture to test a table of numerical results and need to be able to test an approximate value to about 3 decimal places . How can I achieve this I read somewhere about using but this does not appear to work on tables .. . Answer : Does the operator do what you need It s pretty easy to add to fitSharp .", "Question : I m new to C I m trying to get fitSharp working with a fixture which always returns a hard-coded string hi . Pretty much no matter what I do I get Could not find class fixture.FitNesseDemoFixture . I m developing with Xamarin community edition and running Java 1.6 . and Mono . I ve copied the fixture DLL into the same directory as the fitSharp.dll and fit.dll files this is also the directory from which I start the FitNesse server . I ve verified my fixture class is exported in the .dll . Here s the fixture code : .. . .. . .. . and here s the test page source code .. . .. . .. . Any ideas on what I m doing wrong Comment : There s a screen shot of the failed test page at jrandrews.com fitsharpFailure.png http : www.jrandrews.com fitsharpFailure.png Comment : Is this bug report relevant fitnesse.996250.n3.nabble.com http : fitnesse.996250.n3.nabble.com fitSharp-namespace-issues-TypeMissingException-for-fixture-name-td11201.html Its kind of old but who knows.. . Comment : Hum. . Maybe not.. . github.com jediwhale fitsharp issues 63 https : github.com jediwhale fitsharp issues 63 Comment : I tried an import block but that didn t work either . Comment : ...and it had the funny result-of the following error message in the header of the table where the classname is located : FitNesseDemoFixture Could not find class FitNesseDemoFixtureATitleCreatePageHrefFitNesseDemoFixtureEditNonExistentTrueA .. . Answer : You can t use ColumnFixture with the Slim test system . See http : www.fitnesse.org FitNesse.UserGuide.TestSystems and http : fitsharp.github.io Slim.html and http : fitsharp.github.io Fit.html Comment : Excellent Thank you But Slim is still reporting as shown at jrandrews.com fitsharpFailure.png http : jrandrews.com fitsharpFailure.png . It isn t finding the fixture class at all . Comment : The funny error is because FitNesseDemoFixture is a wiki word and gets rendered as a non-existent page link . Use a literal table like fixture.FitNesseDemoFixture etc . Comment : Thanks Mike--that comment was the final piece of the puzzle .", "Question : I installed a clean version of Fitnesse v20121220 and the latest version of FitSharp .net 4 . I ve created a fitnesse test page but cannot get the tests to run - whenever I try the tests immediately fail with the following stack-trace in the standard output : - .. . .. . And the following error as Internal Exception : - Internal Exception : .. . .. . My root configuration is pretty basic : - .. . .. . Obviously the FullPathToAcceptanceTests points to where my fitnesse acceptance tests code is . I don t understand why this is happening - I ve used Fitnesse Fitsharp before without problems but this just doesn t seem to want to work . Comment : Small update - it s not my configuration per se . I sometimes need to reboot or log off log on to get it to work . If I trace what it is I ll answer it here.. . .. . Answer : I have", "Question : I have followed a couple of different tutorials for setting up a simple slim fitnesse environment with .NET . I have attempted this with both fitsharp and netrunner but both end up in my test page being ignore . Everything imports fine and even running RunnerW.exe provides nothing . I have checked numerous times and all of my paths are correct . In the end when running the test all I get are what is displayed in the screenshots below . I have been struggling with this for a few hours now so any help would be greatly appreciated . NetRunner : .. . Result : http : screencast.com t mBdkCyGow .. . .. . Fitsharp : .. . Result : http : screencast.com t GMqdgwxA6 .. . Answer : You re using a fixture from the Fit test system ColumnFixture with the Slim test system : define TEST SYSTEM slim .. . .. . If you want to use ColumnFixture then define TEST SYSTEM fit .. . .. . If you want to use Slim use the Decision table : http : www.fitnesse.org FitNesse.UserGuide.WritingAcceptanceTests.SliM.DecisionTable", "Question : null .. . Answer : In my test project to be used with FitSharp I have an app.config that used custom config sections : .. . .. . However when I try to test this project with FitSharp a ConfigurationErrorsException is thrown : .. . .. . System.Reflection.TargetInvocationException : Exception has been thrown by the target of an invocation . --- System.Configuration.ConfigurationErrorsException : An error occurred creating the configuration section handler for validConfig1 : Could not load file or assembly MyNamespace.Configuration or one of its dependencies . The system cannot find the file specified . I know there is a question on that same issue https : stackoverflow.com questions 4284995 correctly-locate-dlls-app-config-section-handler-assemblies but it was last active four years ago and the link provided in the answer is dead and adding the runner.exe via link-to the project only yields a TypeMissingException . Comment : Can you include some more information about how you are running the test and where the MyNamespace dll is located .", "Question : I have run into a very weird issue . I have several working Fitnesse tests which insert data in a database then test my full MVC application stack . When I try to add 2 Component property mappings to my entity map I get an error saying Unable to find assembly FluentNHibernate .. . which seems somewhat cryptic . All of this is being run through Fitnesse so this could be an issue with how Fitnesse loads dependencies.. . I have no idea of knowing for sure though . The only thing I know is that this code runs fine until I add the 2 Component mappings . On top of that those mappings run fine when this code is run through the normal web application so I know the Component mapping and SessionFactory class works outside of Tests project . Does anyone have any ideas why I would get the error message I m getting Please let me know if there is any other code I need to post . Any help is greatly appreciated DLL Versions : .. . .. . NHibernate - 3.3.1.4000 .. . FluentNHibernate - 1.3.0.733 .. . Fitnesse - v20111026 .. . fitSharp - 2.2.4498.25493 .. . .. . Here is my entity : .. . .. . my mapping file : .. . .. . my SessionFactory the error happens when BuildSessionFactory is called : .. . .. . I get this stack-trace : .. . .. . FWIW this is how I use the session factory from my Fitnesse Tests project : .. . .. . and my Fitnesse Classpath is : .. . Answer : Try putting the DLLs that the test is looking for in the same folder as the fitsharp Runner.exe . One problem that I ran into is that .NET run-time dependencies that are defined in app.config are resolved from the directory in which the process is executed from which in this case is probably the directory where fitsharp resides . There is a apparently a way to use the fitsharp suite configuration file to change this behavior but I haven t been able to get it working successfully http : fitsharp.github.com FitSharp SuiteConfigurationFile.html . Comment : Holy cow.. . it worked Now I only need to figure out if there is a way to configure this", "Question : I have a question concerning an error I am receiving . I am working on updating my system and FitNesse to .Net 4.0 . I am using FitSharp in order to do so . When running through my tests however to check if the update is working properly I am coming across an error that I m not sure how to fix . I am using : FitVersionFixture.IsStandard .. . .. . However now with .Net 4.0 and FitSharp I am getting the following error : .. . .. . System.MissingMethodException : Method not found : Boolean fit.FitVersionFixture.get IsStandard .. . .. . It appears that the method has been deprecated . I have been unable to figure out how to go about fixing this problem . Any advice would be greatly appreciated . .. . Answer : Look at the Behavior section on http : fitsharp.github.com FitSharp SuiteConfigurationFile.html Comment : If you want to check the setting use : Processor.Configuration.GetItem Settings .Behavior" ] }
[ "yes-answer-long", "yes-answer-short" ]
.net
UNK_RELATION
trixbox@pbx@57
trixbox -- trixbox formerly asterisk@home is a software @placeholder based on asterisk .
{ "confidence": [ 66.44172668457031, 63.351070404052734, 54.87138366699219, 54.337127685546875, 52.944847106933594, 52.10322570800781, 42.07460403442383, 42.07460403442383, 42.07460403442383, 38.885589599609375, 38.885589599609375, 38.885589599609375, 38.885589599609375, 38.885589599609375, 38.268592834472656, 36.95905303955078, 36.95905303955078, 36.95905303955078, 36.43686294555664, 35.63154983520508, 34.49827194213867, 32.601070404052734, 30.679664611816406, 30.563159942626953, 30.32158660888672, 29.401592254638672, 28.63662338256836, 28.63662338256836, 28.63662338256836, 28.63662338256836, 27.513568878173828, 27.358549118041992, 27.358549118041992, 26.7921199798584, 26.577701568603516, 26.235496520996094, 26.198169708251953, 25.299625396728516, 24.27163314819336, 20.926189422607422, 18.146873474121094, 17.526416778564453, 16.382980346679688, 14.577363014221191, 14.577363014221191, 14.577363014221191, 14.577363014221191, 14.577363014221191, 14.577363014221191, 14.577363014221191, 14.577363014221191, 14.577363014221191, 14.577363014221191, 14.577363014221191, 14.577363014221191, 14.577363014221191, 14.577363014221191, 14.577363014221191, 14.577363014221191, 14.577363014221191, 14.577363014221191, 14.577363014221191, 14.577363014221191, 14.577363014221191, 14.577363014221191, 14.577363014221191, 14.577363014221191, 14.577363014221191, 14.577363014221191, 14.577363014221191, 14.577363014221191, 14.577363014221191, 14.577363014221191, 14.577363014221191, 14.577363014221191, 14.577363014221191, 14.577363014221191, 14.577363014221191, 14.577363014221191, 14.577363014221191, 12.650826454162598, 12.650826454162598, 12.650826454162598, 12.650826454162598, 12.650826454162598, 12.650826454162598, 12.650826454162598, 12.650826454162598, 12.650826454162598, 12.650826454162598, 12.650826454162598, 12.650826454162598, 12.650826454162598, 12.650826454162598, 12.650826454162598, 12.650826454162598, 12.650826454162598 ], "content": [ "Is there a way to configure Asterisk or Trixbox for make P2P call", "In case of trixbox that mean if sendmail NOT started you not get started asterisk .", "I m using Trixbox 2.6 Centos 5.5 Final Asterisk 1.6.0.26-FONCORE-r78 FreePBX .", "I am running Trixbox v2.8.0.4 Asterisk 1.6 .. . .. . Whenever my box loses power or when you reboot etc asterisk does not start - Unable to connect to remote asterisk does var run asterisk.ctl exist", "I m not familiar with Trixbox or other Asterisk GUI s however this is more than possible using the dialplan if you re willing to edit a file .", "i have installed trixbox on vmware my question is this how can i create a menu IVR and sub menu in trixbox.. . in GUI of the trixbox", "I need to write python application connect to trixbox that run as SIP server .", "You can try using the Web UI provided with trixbox .", "How can I setup this scenario using Trixbox WebUI", "I am very new to this technology and i am trying to create an IVR on trixbox .", "More over i have installed the VMware and virtually created a trixbox stuff in my machince", "kindly also let me about the trixbox tutorials which can implement the IVR menus and sub menus for phone operations.. .", "Trixbox use Freepbx gui .. . .. . here is one of tutorial .. . .. . http : www.freepbx.org support documentation administration-guide creating-an-ivr", "When i initially installed the trixbox system dahdi show status command on astersik CLI was working fine and displaying the status .", "After this asterisk works 100 again .", "i tried to find the way to log remote extensions to a trixbox server behind a nat with no result .", "I am running TrixBox 2.8.0.4 with IVR as main menu and enabling direct dialing .", "I am installing sugarcrm in my trixbox but i am getting session.save path error .", "If you have asterisk running .", "I ve got every thing worked out so far : The call-box now dials my Google Voice account which forwards it to my virtual-machine on my laptop running the latest trixbox Asterisk which will receives the call via Gizmo5 SIP junk .", "I want to pickup call in Asterisk using AMI .", "Asterisk is a server software which can connect various VoIP clients IAX SIP etc .", "You re close try : .. . .. . This tells Asterisk how to handle a call coming in for 1234 .. . .. . In a standard Asterisk installation this goes in extensions.conf and 1234 should be whatever extension number the incoming-call is coming in on .", "For more info check output of following commands .. . .. . if not see issues try do in asterisk cli", "Can any one please help me the steps to install sugarcrm in my trixbox . .. . .. . SugarCRM relies upon PHP sessions to store important information while connected to this web server .", "Please read Asterisk book http : www.voip-info.org wiki view Skype+Gateways and look at their very helpful wiki http : www.voip-info.org wiki index.php page Asterisk on how to configure such environment .", "You don t need to make an extension -- the existence of these lines in extensions.conf tells Asterisk how to handle calls coming in for 1234 .", "For mysql you need add into etc asterisk cdr mysql.conf .. . .. . If you HAVE aliases section just add to it", "Just need add field to DB table and restart asterisk or do cdr mysql.so unload load .", "To check if your setting is generally enabled run following command and check for your 200 : .. . .. . asterisk -rx dialplan show", "The dialplan is in your extensions.conf file see : wiki.asterisk.org wiki display AST Dialplan+Fundamentals https : wiki.asterisk.org wiki display AST Dialplan+Fundamentals and voip-info.org wiki view Asterisk+config+extensions.conf http : www.voip-info.org wiki view Asterisk+config+extensions.conf .", "It can work with Skype I think we can name it P2P call via for example Skype for Asterisk .", "As Micha Niklas indicated Digium the company behind Asterisk also were working on such a gateway .", "I found this reference to adding something like manually to the configuration using Trixbox http : blog.lithiumblue.com 2007 07 adding-sip-aliases-to-trixboxasterisk.html s use of extensions.conf specifically in extensions custom.conf .. . .. . Outside of that article s reference to Trixbox s use of the ext-local-custom context I don t know how Trixbox has implemented a dialplan for queues but.. . That would assume that there is an extension for 300 that sends a user to a queue manually it d look something like : .. . .. . Note that exten 300 .. . must live in the same context in the dialplan the context being the square-bracket-encapsulated title in your extensions .", "I m sure you re right but I don t know where to put exten X . 1 AGI agi : async . I m a python programmer not Asterisk guru :", "Look at Asterisk wiki : .. . .. . http : www.voip-info.org wiki view Skype+Gateways .. . .. . If you just want to have VoIP between 2 computers then install Asterisk on one of them and install some kind of IAX or SIP softphone on both .", "No alarms when i run service dahdi status it show output like : .. . .. . But when i run asterisk -r to goto astersik CLI and run dahdi show status it returns No such command error .", "If you want to convert between Asterisk SIP IAX calls and Skype you can use the SiptoSIS skype gateway : homepage http : www.mhspot.com sts siptosis.html .", "You might want to create a special context for your tests and after you modified it remember to issue a dialplan reload in the cli or restart asterisk so the changes take effect", "it is working fine in the command based interface", "I use SIPtoSIS myself in a home situation as it s free and it works for me .", "from-internal-custom exten 200 1 System home rj call.sh .. . .. . Now when I call extension 200 PBX says that it is not a valid extension .", "extensions.conf has different sections which can vary based on distribution and local setup but it s usually best to put this in the default section .", "but as far as GUI interface is concerned it really does not work with its own provided IP address in the browser", "Thanks alot", "thanks alot", "it will be really very helpfull for me", "I have been struggling with this for a while and cant seem to find the solution .", "Which means I need to login and do an amportal start amportal restart .", "Does anyone have any suggestions", "system v5 init.d script run one-by-one .", "Sendmail will not start if you have incorrect domain-name .", "If you have no dns use something like trixbox.local", "The problem for one of my customers in this situation was SELinux .", "Try : .. . .. . This fixed the issue for them .", "I m using Digium s TE110P PCI card where I plug my PRI line .", "dahdi tool is showing that the line is working .", "When I called the PRI line the CLI was showing that a call is coming .", "But after a reboot this issue came up that service dahdi status is showing the status but dahdi show status on CLI is not working .", "Also now when I call the PRI line I get a all-lines-busy-please-try-later message .", "Can anyone help me understand what might be the issue .", "That usually mean dahdi can t load for one of any reason .. . .. . 1 .", "most likly not configured propertly .. . 2 .", "Not compiled in .. . 3 .", "Really hard card error or card died .", "Dahdi channel is very sensitive to errors in configuration .", "Check your chan dahdi.conf for errors then unload and load chan dahdi.so module .", "The Record and Monitor commands in dialplan are working but they create an audio file with nothing in it .", "Here s my simple dialplan to test recording : .. . .. . I m trying to record for 5 seconds .", "The file is created and its size in not 0 . but there is nothing recorded in it .", "I have tried it with Monitor command but the result was same .", "Any help why it is not working", "I tried calling to PRI line and transferred that call to a softphone but before dialing the softphone i play a welcome message .", "I can hear the welcome message when i dial the PRI line from a mobile i also hear the dialing tone .", "Then i accept the call on softphone .", "After that I cannot hear anything neither on softphone nor on mobile even when i m speaking something .", "can anyone please help me to resolve this issue .", "I have been stuck on it for 3 days now .", "Any suggestions will be much appreciated .", "how can i check if incoming and outgoing channels of PRI are working correctly", "But I not found any library that implement in python .", "I found SIP SKD at http : www.vaxvoip.com but it not support python .", "Can anyone suggest me an alternative to VaxVoip", "Thank you .", "There are Python bindings http : trac.pjsip.org repos wiki Python SIP Tutorial for the PJSUA API .", "+1 typo in url .", "correct one : trac.pjsip.org repos wiki Python SIP Tutorial http : trac.pjsip.org repos wiki Python SIP Tutorial", "There is no precompile package make me waste much time I can t made it work on Windows but on Linux it so easy .", "Note PJSUA is GPL which makes it difficult to integrate in many commercial projects .", "Twisted http : twistedmatrix.com trac supports SIP .", "That s really cool", "Note that Twisted s SIP implementation is somewhat dated it s still compliant with the old RFC 2543 .", "They are trying to update it to RFC 3261 according to twistedmatrix.com trac wiki SIPPlan http : twistedmatrix.com trac wiki SIPPlan but it is not a high priority see twistedmatrix.com trac ticket 3584 http : twistedmatrix.com trac ticket 3584", "@LB40 can you give me a sipmle example of using twisted sip protocol", "You might want to have a look at Sippy http : www.b2bua.org .", "It s a B2BUA with a complete SIP stack implementation underneath you could use just that .", "It s written entirely in Python so it s pretty hackable ." ] }
{ "confidence": [ 76.07457733154297, 70.10871887207031, 69.43206787109375, 67.0700912475586, 66.73585510253906, 66.66930389404297, 66.10194396972656, 65.51946258544922, 62.187259674072266, 56.3876953125, 53.83797073364258, 52.90196990966797, 47.549617767333984, 44.87913513183594, 43.6434326171875, 41.867225646972656, 39.492557525634766, 39.492557525634766, 35.46320343017578, 34.572547912597656 ], "content": [ "Question : I have been struggling with this for a while and cant seem to find the solution . I am running Trixbox v2.8.0.4 Asterisk 1.6 .. . .. . Whenever my box loses power or when you reboot etc asterisk does not start - Unable to connect to remote asterisk does var run asterisk.ctl exist Which means I need to login and do an amportal start amportal restart . After this asterisk works 100 again . Does anyone have any suggestions .. . Answer : system v5 init.d script run one-by-one . In case of trixbox that mean if sendmail NOT started you not get started asterisk . Sendmail will not start if you have incorrect domain-name . If you have no dns use something like trixbox.local", "Question : I have been struggling with this for a while and cant seem to find the solution . I am running Trixbox v2.8.0.4 Asterisk 1.6 .. . .. . Whenever my box loses power or when you reboot etc asterisk does not start - Unable to connect to remote asterisk does var run asterisk.ctl exist Which means I need to login and do an amportal start amportal restart . After this asterisk works 100 again . Does anyone have any suggestions .. . Answer : The problem for one of my customers in this situation was SELinux . Try : .. . .. . This fixed the issue for them .", "Question : I m using Trixbox 2.6 Centos 5.5 Final Asterisk 1.6.0.26-FONCORE-r78 FreePBX . I m using Digium s TE110P PCI card where I plug my PRI line . dahdi tool is showing that the line is working . No alarms when i run service dahdi status it show output like : .. . .. . But when i run asterisk -r to goto astersik CLI and run dahdi show status it returns No such command error . When i initially installed the trixbox system dahdi show status command on astersik CLI was working fine and displaying the status . When I called the PRI line the CLI was showing that a call is coming . But after a reboot this issue came up that service dahdi status is showing the status but dahdi show status on CLI is not working . Also now when I call the PRI line I get a all-lines-busy-please-try-later message . Can anyone help me understand what might be the issue . .. . Answer : That usually mean dahdi can t load for one of any reason .. . .. . 1 . most likly not configured propertly .. . 2 . Not compiled in .. . 3 . Really hard card error or card died . For more info check output of following commands .. . .. . if not see issues try do in asterisk cli", "Question : I have read skype is a p2p program Is there a way to configure Asterisk or Trixbox for make P2P call Comment : It s an old question but it may be worth stating there s not much research that has gone into this . You should always web-search the problem first and add your findings into your question . .. . Answer : If you want to convert between Asterisk SIP IAX calls and Skype you can use the SiptoSIS skype gateway : homepage http : www.mhspot.com sts siptosis.html . It s a Java app that bridges converts the calls between the two protocols . As Micha Niklas indicated Digium the company behind Asterisk also were working on such a gateway . I use SIPtoSIS myself in a home situation as it s free and it works for me .", "Question : I m using Trixbox 2.6 Centos 5.5 Final Asterisk 1.6.0.26-FONCORE-r78 FreePBX . I m using Digium s TE110P PCI card where I plug my PRI line . dahdi tool is showing that the line is working . No alarms when i run service dahdi status it show output like : .. . .. . But when i run asterisk -r to goto astersik CLI and run dahdi show status it returns No such command error . When i initially installed the trixbox system dahdi show status command on astersik CLI was working fine and displaying the status . When I called the PRI line the CLI was showing that a call is coming . But after a reboot this issue came up that service dahdi status is showing the status but dahdi show status on CLI is not working . Also now when I call the PRI line I get a all-lines-busy-please-try-later message . Can anyone help me understand what might be the issue . .. . Answer : Dahdi channel is very sensitive to errors in configuration . Check your chan dahdi.conf for errors then unload and load chan dahdi.so module .", "Question : I want to create a SIP extension e.g 333 which when dial It through caller to Queue for example Queue Number is 300 . How can I setup this scenario using Trixbox WebUI .. . Answer : I m not familiar with Trixbox or other Asterisk GUI s however this is more than possible using the dialplan if you re willing to edit a file . I found this reference to adding something like manually to the configuration using Trixbox http : blog.lithiumblue.com 2007 07 adding-sip-aliases-to-trixboxasterisk.html s use of extensions.conf specifically in extensions custom.conf .. . .. . Outside of that article s reference to Trixbox s use of the ext-local-custom context I don t know how Trixbox has implemented a dialplan for queues but.. . That would assume that there is an extension for 300 that sends a user to a queue manually it d look something like : .. . .. . Note that exten 300 .. . must live in the same context in the dialplan the context being the square-bracket-encapsulated title in your extensions . If you find that exten 300 lives in say other-context your goto would look like : .. . .. . exten 333 1 Goto other-context 300 1", "Question : I have read skype is a p2p program Is there a way to configure Asterisk or Trixbox for make P2P call Comment : It s an old question but it may be worth stating there s not much research that has gone into this . You should always web-search the problem first and add your findings into your question . .. . Answer : If you have asterisk running . You make extensions and you can call between the extensions . Comment : Is there already an extension for P2P call", "Question : I have read skype is a p2p program Is there a way to configure Asterisk or Trixbox for make P2P call Comment : It s an old question but it may be worth stating there s not much research that has gone into this . You should always web-search the problem first and add your findings into your question . .. . Answer : Asterisk is a server software which can connect various VoIP clients IAX SIP etc . It can work with Skype I think we can name it P2P call via for example Skype for Asterisk . Look at Asterisk wiki : .. . .. . http : www.voip-info.org wiki view Skype+Gateways .. . .. . If you just want to have VoIP between 2 computers then install Asterisk on one of them and install some kind of IAX or SIP softphone on both . Please read Asterisk book http : www.voip-info.org wiki view Skype+Gateways and look at their very helpful wiki http : www.voip-info.org wiki index.php page Asterisk on how to configure such environment .", "Question : I am very new to this technology and i am trying to create an IVR on trixbox . i have installed trixbox on vmware my question is this how can i create a menu IVR and sub menu in trixbox.. . in GUI of the trixbox More over i have installed the VMware and virtually created a trixbox stuff in my machince it is working fine in the command based interface but as far as GUI interface is concerned it really does not work with its own provided IP address in the browser kindly also let me about the trixbox tutorials which can implement the IVR menus and sub menus for phone operations.. . .. . Answer : Trixbox use Freepbx gui .. . .. . here is one of tutorial .. . .. . http : www.freepbx.org support documentation administration-guide creating-an-ivr Comment : Thanks alot Comment : thanks alot it will be really very helpfull for me", "Question : I m trying to solve a very painful problem that impedes on my world utilizing my amazing powers as a programmer.. . my front gate makes my friends call my cell phone then I have to press 9 and it lets them in .. . So my amazing powers have gotten me very far except this last part I can t get perhaps due to lack of sleep . I ve got every thing worked out so far : The call-box now dials my Google Voice account which forwards it to my virtual-machine on my laptop running the latest trixbox Asterisk which will receives the call via Gizmo5 SIP junk . What I need now is to have the phone call answered and then press the number 9 .. . wait about 5 seconds then hang-up . I m sure it s as easy as putting this code somewhere in a config file : .. . .. . But I don t know : .. . .. . 1 Is this possible pretty sure it is 2 What file do I edit 3 Do I need to make an extension first 4 Is that code in my example above anywhere close 5 What do I actually need to do I greatly appreciate any help on this one . .. . Answer : You re close try : .. . .. . This tells Asterisk how to handle a call coming in for 1234 .. . .. . In a standard Asterisk installation this goes in extensions.conf and 1234 should be whatever extension number the incoming-call is coming in on . extensions.conf has different sections which can vary based on distribution and local setup but it s usually best to put this in the default section . Comment : Do I need to first make an extension called 1234 also do I just paste this at the bottom of the file or do I need an blahblah above it Comment : You don t need to make an extension -- the existence of these lines in extensions.conf tells Asterisk how to handle calls coming in for 1234 . You should replace 1234 with whatever number you re using for Gizmo5 SIP . For where to put it I edited the answer above .", "Question : i tried to find the way to log remote extensions to a trixbox server behind a nat with no result . Can someone tells me Thanks in advice .. . Answer : You can try using the Web UI provided with trixbox .", "Question : null .. . Answer : I m using Trixbox 2.6 Centos 5.5 Final Asterisk 1.6.0.26-FONCORE-r78 FreePBX . I m using Digium s TE110P PCI card where I plug my PRI line . The Record and Monitor commands in dialplan are working but they create an audio file with nothing in it . Here s my simple dialplan to test recording : .. . .. . I m trying to record for 5 seconds . The file is created and its size in not 0 . but there is nothing recorded in it . I have tried it with Monitor command but the result was same . Any help why it is not working I tried calling to PRI line and transferred that call to a softphone but before dialing the softphone i play a welcome message . I can hear the welcome message when i dial the PRI line from a mobile i also hear the dialing tone . Then i accept the call on softphone . After that I cannot hear anything neither on softphone nor on mobile even when i m speaking something . Comment : can anyone please help me to resolve this issue . I have been stuck on it for 3 days now . Any suggestions will be much appreciated . Comment : how can i check if incoming and outgoing channels of PRI are working correctly", "Question : I have no luck finding a solution for my requirement . I have a delivery service and would like to notify set of users by calling them on their phone numbers . I have list of phone numbers and a way to call people as a shell script however I would like to execute this script by calling an extension number and preferably a passcode so that only person having a passcode can make the call even if extension is expose somehow . I am running TrixBox 2.8.0.4 with IVR as main menu and enabling direct dialing . Here is what i have tried hoping the solution is around custom extension . Not sure if I am heading in right direction . 1 . Uncommented the extensions custom.conf in the extensions.conf file . 2 . Added an entry in extensions custom.conf file as follows . from-internal-custom exten 200 1 System home rj call.sh .. . .. . Now when I call extension 200 PBX says that it is not a valid extension . Since this extension is not create in the standard extensions so probably PBX is not able to find it . It seems like I need to either create a inbound route or create extension in a different way so that PBX can see it and run my script . Can you please advise what is being missed or my complete approach is not correct If this works I would like to have some input from the person dialing extension to validate a code etc before script can be executed . Thanks in advance for your support . -RJ Comment : Start with simple.. . did you reload your dialplan after making your edit changes .. . Answer : You incoming-call has to match the context from-internal-custom . Your configured extension 200 works only in this context . To check if your setting is generally enabled run following command and check for your 200 : .. . .. . asterisk -rx dialplan show", "Question : I am installing sugarcrm in my trixbox but i am getting session.save path error . I am not sure where i am missing code . Can any one please help me the steps to install sugarcrm in my trixbox . .. . .. . SugarCRM relies upon PHP sessions to store important information while connected to this web server . Your PHP installation does not have the Session information correctly configured . A common misconfiguration is that the session.save path directive is not pointing to a valid directory . Please correct your PHP configuration in the php.ini file located here below . etc php.ini .. . .. . i am getting above error message . Even if i save session.save path tmp i am getting error . .. . Answer : PHP session use filebase as default handler for browser session . session.save path in php.ini indicate where the session data saved in filesystem . It probably set to a folder apache do not have write permission or that folder does not even exist . Open your etc php.ini and find session.save path and change to appropriate value .", "Question : I want to create a SIP extension e.g 333 which when dial It through caller to Queue for example Queue Number is 300 . How can I setup this scenario using Trixbox WebUI .. . Answer : You can dial queue number . i.e dial 300 and you go to queue . Also you can do custom extension with dial string", "Question : I need to write python application connect to trixbox that run as SIP server . But I not found any library that implement in python . I found SIP SKD at http : www.vaxvoip.com but it not support python . Can anyone suggest me an alternative to VaxVoip Thank you . .. . Answer : You might want to have a look at Sippy http : www.b2bua.org . It s a B2BUA with a complete SIP stack implementation underneath you could use just that . It s written entirely in Python so it s pretty hackable . Sippy is implemented with Twisted but uses none of its SIP functionality .", "Question : I need to write python application connect to trixbox that run as SIP server . But I not found any library that implement in python . I found SIP SKD at http : www.vaxvoip.com but it not support python . Can anyone suggest me an alternative to VaxVoip Thank you . .. . Answer : There are Python bindings http : trac.pjsip.org repos wiki Python SIP Tutorial for the PJSUA API . Comment : +1 typo in url . correct one : trac.pjsip.org repos wiki Python SIP Tutorial http : trac.pjsip.org repos wiki Python SIP Tutorial Comment : There is no precompile package make me waste much time I can t made it work on Windows but on Linux it so easy . Comment : Note PJSUA is GPL which makes it difficult to integrate in many commercial projects .", "Question : I need to write python application connect to trixbox that run as SIP server . But I not found any library that implement in python . I found SIP SKD at http : www.vaxvoip.com but it not support python . Can anyone suggest me an alternative to VaxVoip Thank you . .. . Answer : Twisted http : twistedmatrix.com trac supports SIP . That s really cool Comment : Note that Twisted s SIP implementation is somewhat dated it s still compliant with the old RFC 2543 . Comment : They are trying to update it to RFC 3261 according to twistedmatrix.com trac wiki SIPPlan http : twistedmatrix.com trac wiki SIPPlan but it is not a high priority see twistedmatrix.com trac ticket 3584 http : twistedmatrix.com trac ticket 3584 Comment : @LB40 can you give me a sipmle example of using twisted sip protocol", "Question : I have no luck finding a solution for my requirement . I have a delivery service and would like to notify set of users by calling them on their phone numbers . I have list of phone numbers and a way to call people as a shell script however I would like to execute this script by calling an extension number and preferably a passcode so that only person having a passcode can make the call even if extension is expose somehow . I am running TrixBox 2.8.0.4 with IVR as main menu and enabling direct dialing . Here is what i have tried hoping the solution is around custom extension . Not sure if I am heading in right direction . 1 . Uncommented the extensions custom.conf in the extensions.conf file . 2 . Added an entry in extensions custom.conf file as follows . from-internal-custom exten 200 1 System home rj call.sh .. . .. . Now when I call extension 200 PBX says that it is not a valid extension . Since this extension is not create in the standard extensions so probably PBX is not able to find it . It seems like I need to either create a inbound route or create extension in a different way so that PBX can see it and run my script . Can you please advise what is being missed or my complete approach is not correct If this works I would like to have some input from the person dialing extension to validate a code etc before script can be executed . Thanks in advance for your support . -RJ Comment : Start with simple.. . did you reload your dialplan after making your edit changes .. . Answer : Create a custom contest for your application using extension s . Using Custom Destinations add your custom context as a destination like this : Custom Destination http : i.stack.imgur.com TtGA6.png .. . .. . Then add a Misc App with a feature code of as per your example 200 and point it to your Custom Destination like this : .. . .. . enter image description here http : i.stack.imgur.com suzuT.png .. . .. . Dont forget to hit Apply Configs when your done", "Question : I want to pickup call in Asterisk using AMI . I can originate call but totally don t know how to answer the phone.. . Script for calling : .. . .. . I need something similar but for answering calls . Can t find any useful command in CLI manager show command .. . .. . Halp me plox .. . Answer : You can t answer a call directly via AMI . This is because a new call will arrive at the given context priority extension configured in the dialplan or it will be rejected if cant find one that applies . So whatever happens with that call will start at the given context priority extension in the dialplan . If you want to handle calls via AMI try using asynchronous AGI like this : .. . .. . This will handle all calls to any extension that has at least 1 digit by issuing an event AsyncAGI that you can handle with your AMI client . Then from your AMI client you can send AGIAction s like : .. . .. . This will effectively allow you to run AGI commands and handle a call like you would normally do in any AGI script from your AMI client . Hope it helps Comment : I m sure you re right but I don t know where to put exten X . 1 AGI agi : async . I m a python programmer not Asterisk guru : Comment : Hi The dialplan is in your extensions.conf file see : wiki.asterisk.org wiki display AST Dialplan+Fundamentals https : wiki.asterisk.org wiki display AST Dialplan+Fundamentals and voip-info.org wiki view Asterisk+config+extensions.conf http : www.voip-info.org wiki view Asterisk+config+extensions.conf . You might want to create a special context for your tests and after you modified it remember to issue a dialplan reload in the cli or restart asterisk so the changes take effect Comment : I know where are dialplans . For example I use from-internal dialplan . Where to paste exten blah Maybe it s doesn t matter Thank You for wasting your time for me : Comment : Thats what I want to do : schema http : share.qwerty.yum.pl asterisk pickup.png Comment : Your extensions.conf file is divided into sections called contexts . In this case you say or I m guessing : you are using the context from-internal . So put those lines into that context that is anywhere between from-internal and the next section . If this is a production box I suggest you to not modified it but try it on a dev box so you dont break anything . The lines I wrote in the answer will apply to incoming calls to an extension with at least 1 digit so you might want to modified it to apply to a specific not-in-use extension like 555" ] }
[ "yes-answer-long", "yes-answer-short" ]
pbx
UNK_RELATION
fieldcollapsing@solr@111
fieldcollapsing -- fieldcollapsing is an solr feature to group results comming from solhttp : wiki.apache.org @placeholder fieldcollapsing .
{ "confidence": [ 124.65818786621094, 112.30931091308594, 111.75910949707031, 97.62381744384766, 90.69255065917969, 86.98654174804688, 83.83280944824219, 80.72705078125, 80.32893371582031, 80.22315979003906, 77.49300384521484, 76.4032211303711, 74.43376159667969, 69.30448150634766, 67.46533966064453, 66.68936920166016, 64.44617462158203, 62.61431884765625, 59.21596145629883, 46.01941680908203, 30.677305221557617, 28.62331771850586, 27.029003143310547, 26.77777862548828, 26.653425216674805, 26.467342376708984, 26.322452545166016, 25.958011627197266, 25.108074188232422, 24.84626007080078, 24.47988510131836, 24.244136810302734, 24.243877410888672, 24.221923828125, 24.11886978149414, 23.983938217163086, 23.98294448852539, 23.887052536010742, 23.887052536010742, 23.887052536010742, 23.440109252929688, 23.440109252929688, 23.440109252929688, 23.288616180419922, 23.003219604492188, 22.410484313964844, 22.404735565185547, 22.351360321044922, 22.048381805419922, 22.048381805419922, 22.048381805419922, 21.870323181152344, 21.833772659301758, 21.77545166015625, 21.77545166015625, 21.70627212524414, 21.600967407226562, 21.600967407226562, 21.600967407226562, 21.587358474731445, 20.980009078979492, 20.905681610107422, 20.88481903076172, 20.512218475341797, 20.512218475341797, 20.512218475341797, 20.512218475341797, 20.512218475341797, 20.512218475341797, 20.512218475341797, 20.512218475341797, 20.512218475341797, 20.47267723083496, 20.192758560180664, 20.1762752532959, 20.056894302368164, 19.980180740356445, 19.68467903137207, 19.287872314453125, 19.151193618774414, 19.151193618774414, 19.092317581176758, 19.045679092407227, 19.045679092407227, 19.045679092407227, 19.045679092407227, 19.045679092407227, 19.045679092407227, 19.045679092407227, 19.003536224365234, 18.910402297973633, 18.775066375732422, 18.605438232421875, 18.556102752685547, 18.49666976928711, 18.342493057250977, 18.342493057250977, 18.342493057250977, 18.342493057250977 ], "content": [ "wiki.apache.org solr FieldCollapsing http : wiki.apache.org solr FieldCollapsing", "I m using Solr 3.4 and FieldCollapsing http : wiki.apache.org solr FieldCollapsing .", "http : wiki.apache.org solr FieldCollapsing", "I m using FieldCollapsing to group the results .", "I already read about FieldCollapsing in solr but still I have no idea whether this is the right way or not http : wiki.apache.org solr FieldCollapsing", "FieldCollapsing is not released in all recent versions of solr please find more info here stackoverflow.com questions 6455882 solr-field-collapsing http : stackoverflow.com questions 6455882 solr-field-collapsing and or course wiki.apache.org solr FieldCollapsing http : wiki.apache.org solr FieldCollapsing", "Currently solr grouping http : wiki.apache.org solr FieldCollapsing sorts groups by the score of the top document within each group .", "Yes if you want grouping over the whole index you need the field collapsing http : wiki.apache.org solr FieldCollapsing feature .", "according to the Solr Wiki http : wiki.apache.org solr FieldCollapsing field collapsing should be available in Solr 4 .", "if you are looking for sql group-by feature .. . with solr 3.3 on-wards it has the similar feature called FieldCollapsing http : wiki.apache.org solr FieldCollapsing .. . .. . Field Collapsing collapses a group of results with the same field value down to a single or fixed number of entries .", "I need to read the documentation http : wiki.apache.org solr FieldCollapsing Request Parameters more carefully .", "I would like to group all messages using FieldCollapsing .", "I tried to use the Field Collapsing parameters https : wiki.apache.org solr FieldCollapsing however they do not seem to work for More like this .", "More info @ http : wiki.apache.org solr FieldCollapsing .. . .. . Documentation - .. . group.ngroups - true false .. . If true includes the number of groups that have matched the query .", "I have applied grouping query according to below document : http : wiki.apache.org solr FieldCollapsing and I don t see the field collapsing .", "I was hoping for a solution using http : wiki.apache.org solr FieldCollapsing but if I search for x with group.field name Solr will group after search giving me version 1 of the two names above .", "I have taken a look at this patch myself and it seems to be for an older implementation of FieldCollapsing where the query parameters are called collapse instead of group in Solr 4.0", "If using Solr 4.0 the new Grouping which replaces FieldCollapsing fixes this issue when you add the parameter group.facet true .", "I read http : wiki.apache.org solr FieldCollapsing .. . .. . and I tried the query http : 192.168.0.1 : 8080 solr append select q mobile group true group.field brand http : 192.168.0.1 : 8080 solr append select q mobile group true group.field brand .. . .. . and I don t see the field collapsing .", "You could either collapse on fields like color or so : .. . .. . http : wiki.apache.org solr FieldCollapsing .. . .. . or you can use near duplicate detection when indexing : .. . .. . http : wiki.apache.org solr Deduplication .. . .. . http : karussell.wordpress.com 2010 12 23 detect-stolen-and-duplicate-tweets-with-solr .. . .. . the latter algorithm is implemented in jetwick for tweets so it should work for titles but not performant enough for big documents so only plagiarism detection for short strings .", "Is Solr itself has a support for grouping solr results", "With the release of sorting by Function Query https : issues.apache.org jira browse SOLR-1297 it seems that there should be a way to use the sum function http : wiki.apache.org solr FunctionQuery .", "For example http : localhost : 9080 solr archive select group.limit 10 rows 10 group.query car group true .. . .. . results in : .. . .. . Is this an known bug in Solr 4 Beta", "The Problem is that solr returns the label of the group including the locale parameter", "@randika : if you want to group throughout the whole index you need server-side support from Solr and SolrNet .", "However I was able to achieve the desired result using CollapsingQParserPlugin https : wiki.apache.org solr CollapsingQParserPlugin .", "So I use the field collapsing feature to group the versions together .", "Problem .. . .. . Using Solr 4.3.0 I can t seem to get the includeCollapsedDocs parameter of Field Collapsing feature to work .", "I will just add regarding random - there s random type in solr that helps to bring random results : lucene.apache.org solr api org apache solr schema http : lucene.apache.org solr api org apache solr schema RandomSortField.html", "I am using solr trunk to search some documents and group them by their category but I have to group them first by another field .", "This question cross posted from a Solr Jira issue 3742 https : issues.apache.org jira browse SOLR-3742 .", "Here are some examples of products results .. . .. . But when I m showing these results I need to show the products with group names or ids on top the results by Its group name .", "Field collapsing is not available in Solr 1.4.1 .", "Example : I search for : and group-by names like : .. . .. . It looks like solr is running internal an separate query for every name .", "SolrNet s support for this is currently broken since it s an unreleased feature in Solr and changed a lot since the first implementation in SolrNet .", "Check SOLR-3316 https : issues.apache.org jira browse SOLR-3316 and SOLR-3436 https : issues.apache.org jira browse SOLR-3436 .", "http : localhost : 8080 solr select q apposta apposta per OR sue prime ore al group true group.field grouping field group.limit 5 .. . .. . This query returns 2 groups first group has 1 document and second group has 2 documents .", "But still we couldn t show the group names on the top of the results .", "But in the results I would like to display multiple hits for the group filename .", "For example have set it to 10 to get 10 results per group .", "My index is Lucene 2.9 and my Solr is 1.4.1 .", "You need Solr 3.3 or 4.0 currently unreleased .", "I have a Solr schema with a kind of versioning .", "The wiki page about field collapsing also explains If you haven t already get a recent nightly-build of Solr4.0 or Solr3.3.. . .. . .. . Look for warning tags in the Solr wiki that show when a particular feature is available only since a particular version of Solr : .. . .. .", "I m using Solr 3.5 .", "As far as I know it is necessary to add the following configuration to the solrconfig.xml to activate field collapsing : .. . .. . I downloaded the latest nightly-build apache-solr-4.0-2011-10-26 08-46-59.zip from https : builds.apache.org job Solr-trunk updated my project from lucidworks solr 3.2 to apache solr 4.x and finally found out that the class org.apache.solr.handler.component.CollapseComponent is not available inside the apache-solr-core-4.0-2011-10-26 08-46-59.jar .", "just show the groups that Solr returns", "I have a search in solr that is returning about 1500 documents .", "On the lucene part of the solr distribution the lucene-grouping-xxx.jar is available but not the solr grouping components .", "Looks like it is being fixed in the next version of Solr .. . .. . https : issues.apache.org jira browse SOLR-4150", "I m looking forward to this -- issues.apache.org jira browse SOLR-4763 https : issues.apache.org jira browse SOLR-4763 .", "Has this feature been dropped", "what I m asking is : do you need to group results throughout the whole index", "Found a new mailing list thread with an almost identical case : mail-archives.apache.org mod mbox lucene-solr-user 201110.mbox http : mail-archives.apache.org mod mbox lucene-solr-user 201110.mbox 3C4E9B3A70.2010901@ifactory.com 3E", "I ve only found a few mentions of it here http : blog.trifork.com 2009 10 20 result-grouping-field-collapsing-with-solr and there https : issues.apache.org jira browse SOLR-236 .", "Solr field collapsing https : issues.apache.org jira browse SOLR-236 was released as a part of stable release 3.3 .. . So you can use the latest 3.4 Solr stable build which should have the components included with it .", "I ll have to follow up with the Solr folks .", "I have created the index of solr example docs .", "in my solr home all the fields are indexed and stored .", "It is just that the group query is not returning correctly .", "I understand that there are various ways to obtain suggestions term component facets Solr s inbuilt Suggester http : wiki.apache.org solr Suggester and I m open to using any one of them if it means I ll be able to get everything groups + suggestions in one request .", "https : lucidworks.com blog fun-with-docvalues-in-solr-4-2 .. . .. . Right now Group by queries which I can t sadly avoid has become a huge bottleneck .", "+1 Thank you I got a little bit mixed up with the Solr versions .", "I am trying to achieve disrtibuted field collapsing in solr .", "So may be what I m looking for is a Solr query for grouping .", "The classes for grouping have been distributed between Solr and lucene artifacts .", "Hmm ok the grouping should work out of the box with Solr 3.4 .", "An valide result is be : .. . .. . Is there a way to change to label to the real term where solr is searching for", "I have installed and configured solr 3.6.0 with tomcat container .", "Simply : .. . .. . Remove the line you added to solrconfig.xml and restart Solr .", "This issue relates to Solr 4 beta that launched very recently .", "Is there any way to get the number of distinct groups in a distributed grouping in solr", "Let s see the results I m looking forward to see your problem solved but I still don t get why you shouldn t trust a solr contributor who gave you his answer and spent his time on it .", "It implements in 4.0 and called it as group .", "I mean I see the results but not the grouping .", "Unless you need a 4.x feature I d stick with 3.x", "My dataset has a wide variety of shoes for women but it also has some very similar results for instance size 11 womens nike trainers size 10 womens nike trainers etc.. . Now when I search for womens shoes solr scoring causes a certain set of these results to bubble to the top that are all very similar. . For instance all the colors of one particular shoe model might come to the top .", "Do you think Is there anyway I can group them from display level .", "So my results should looks like : .. . .. . Indeed I need to implement the pagination as well so in other words when someone search for some product if a the products contains group names I ll list them on top of the results and next the other products .", "yes I need to group it throughout the index .", "Then you will get infinite documents per group .", "Now it is not breaking in words but the count of the group is less than what it should be added more details above", "I tried applying the patch https : issues.apache.org jira browse SOLR-1683 but it didnt seem to work .", "I m using Solr for a product catalogue built on asp.net with solrnet and everything works pretty well so far .", "Altough Solr is very good at finding the top documents that match a query it is bad at retrieving lots of documents .", "Looks like this has been an open issue for a while : https : issues.apache.org jira browse SOLR-2072 .", "The question : is there another way to use both query functions or an appropriate work-around or a tip on where-in Solr source to look into this", "today i build up an Solr Cloud System with 3 nodes 3 shards and 3 replications .", "Looking at the Solr documentation i don t find any informations about solrCloud and field collapsing problems .", "There are a few solutions to this now : .. . .. . http : yonik.com solr-count-distinct .. . .. . You can use the stats component with pivot faceting use group with group.facet or use the new analytics API that shipped in 5.2 5.1 . didn t seem to work when I tried it .", "I have product index at solr product has category field and I need to select one product better would be random from each category how query would look like", "Basically when I print product result I need product group names ONLY GROUP NAME to be printed first and then the other products .", "It is new in Solr 3.3 .", "hi..i have done this way much before..but it was not working..so still it is not working..i have created index this way .curl localhost : 8085 solr update http : localhost : 8085 solr update -H Content-type : text xml --databinary @lu-example-1.xml", "What I would like to do is basically boost on some kind of uniqueness of name compared to other results factor .", "And the products which doesn t belongs-to a group will be listed on right after the groups .", "Per default every group contains only 1 message .", "I can modify the numbers of documents per group-by changing the Parameter group.limit .", "group true group.field normstufe should return grouped values ." ] }
{ "confidence": [ 133.69378662109375, 110.42071533203125, 101.62767791748047, 101.49359130859375, 99.60938262939453, 96.20244598388672, 91.45828247070312, 89.99967956542969, 86.81265258789062, 84.75019073486328, 82.96354675292969, 82.77400207519531, 77.73128509521484, 73.05883026123047, 70.12127685546875, 67.15303039550781, 65.03707885742188, 36.18177795410156, 31.208866119384766, 30.934818267822266 ], "content": [ "Question : I have product index at solr product has category field and I need to select one product better would be random from each category how query would look like Comment : wiki.apache.org solr FieldCollapsing http : wiki.apache.org solr FieldCollapsing Comment : if you would move that to answer I would mark it as the right one .. . Answer : if you are looking for sql group-by feature .. . with solr 3.3 on-wards it has the similar feature called FieldCollapsing http : wiki.apache.org solr FieldCollapsing .. . .. . Field Collapsing collapses a group of results with the same field value down to a single or fixed number of entries . For example most search engines such as Google collapse on site so only one or two entries are shown along with a link-to click to see more results from that site . Field collapsing can also be used to suppress duplicate documents . Comment : I will just add regarding random - there s random type in solr that helps to bring random results : lucene.apache.org solr api org apache solr schema http : lucene.apache.org solr api org apache solr schema RandomSortField.html Comment : FieldCollapsing is not released in all recent versions of solr please find more info here stackoverflow.com questions 6455882 solr-field-collapsing http : stackoverflow.com questions 6455882 solr-field-collapsing and or course wiki.apache.org solr FieldCollapsing http : wiki.apache.org solr FieldCollapsing", "Question : I m using Solr 3.4 and FieldCollapsing http : wiki.apache.org solr FieldCollapsing . I would like to group all messages using FieldCollapsing . Per default every group contains only 1 message . I can modify the numbers of documents per group-by changing the Parameter group.limit . That s a bit inconveniently for grouping all available messages to specific groups . Is there a way to set group.limit to infinite The current workaround is to set group.limit to an very high value which isn t an satisfying solution . Comment : Altough Solr is very good at finding the top documents that match a query it is bad at retrieving lots of documents . What is your use-case Does your data reside somewhere else text-files a database where this partition could be performed more efficiently .. . Answer : You can set group.limit to -1 . Then you will get infinite documents per group . Comment : Hi ReinierDG . That s it Thank you By playing around with this options I found an important notice : using group.limit -1 seams to disable caching behavior . or empty the cache or4 whatever With group.limit 200 followed by group.limit 20 and so on caching works fine . Using -1 I need all the time hundreds of milliseconds to get the result . So finally for me it s faster to use group.limit 1000000 than group.limit -1", "Question : I am trying to achieve disrtibuted field collapsing in solr . I tried applying the patch https : issues.apache.org jira browse SOLR-1683 but it didnt seem to work . Is there anyway to do this Comment : The place to post this is the JIRA issue itself . Add all relevant details . .. . Answer : It implements in 4.0 and called it as group . http : wiki.apache.org solr FieldCollapsing", "Question : I m using Solr for a product catalogue built on asp.net with solrnet and everything works pretty well so far . I need to extend the search results by adding some grouping option to it . First I ll explain how the schema looks like : .. . .. . So as you see products above has a group id and group name also I have Boolean flag named has group on my schema . Here are some examples of products results .. . .. . But when I m showing these results I need to show the products with group names or ids on top the results by Its group name . And the products which doesn t belongs-to a group will be listed on right after the groups . So my results should looks like : .. . .. . Indeed I need to implement the pagination as well so in other words when someone search for some product if a the products contains group names I ll list them on top of the results and next the other products . Is this even possible If it is possible what would I need to do . I already read about FieldCollapsing in solr but still I have no idea whether this is the right way or not http : wiki.apache.org solr FieldCollapsing Comment : so does grouping affect results or is that only for display i.e . just show the groups that Solr returns Comment : Well the way it works currently when search for products currenly I get mixture of products which has group data and also product without group data . Basically when I print product result I need product group names ONLY GROUP NAME to be printed first and then the other products . Is Solr itself has a support for grouping solr results becuase I need to use the pagination for the results as well as faceting too . So may be what I m looking for is a Solr query for grouping . Comment : what I m asking is : do you need to group results throughout the whole index or just within a single result page Comment : yes I need to group it throughout the index . .. . Answer : Yes if you want grouping over the whole index you need the field collapsing http : wiki.apache.org solr FieldCollapsing feature . SolrNet s support for this is currently broken since it s an unreleased feature in Solr and changed a lot since the first implementation in SolrNet . See http : code.google.com p solrnet issues detail id 127 for details and updates . Comment : Ok it seems like SoltNet s grouping option is not available on the trunk but still its available on solr s nighly builds . -- anyway you were asked whether I need this to work through out the index or only for display Do you think Is there anyway I can group them from display level . Thank you . Comment : @randika : if you want to group throughout the whole index you need server-side support from Solr and SolrNet . If you only want to group in a single result page you can do it easily with LINQ . Comment : Hi Mauricio Since field collapsing is not available as a stable release of Solr we decided not to use it instead we decided to index groups also on the same index . So when we search now we can list both the products and group names . So it s working . But still we couldn t show the group names on the top of the results . Comment : So far the coding looks like this : var options new QueryOptions options.FilterQueries BuildFilterQueries parameters options.FilterQueries.Add Query.Field has group .Is false options.OrderBy.Add new SortOrder group name Order.ASC", "Question : http : localhost : 8080 solr select q apposta apposta per OR sue prime ore al group true group.field grouping field group.limit 5 .. . .. . This query returns 2 groups first group has 1 document and second group has 2 documents . In response I see count of documents 3 but there is no counts of groups . How can I get count of groups . .. . Answer : Use group.ngroups true to include the number of groups in the response . More info @ http : wiki.apache.org solr FieldCollapsing .. . .. . Documentation - .. . group.ngroups - true false .. . If true includes the number of groups that have matched the query . Default is false .", "Question : Currently solr grouping http : wiki.apache.org solr FieldCollapsing sorts groups by the score of the top document within each group . E.g . Is there an out-of-the-box way to instead sort groups by the sum of the scores of the documents within each group E.g . With the release of sorting by Function Query https : issues.apache.org jira browse SOLR-1297 it seems that there should be a way to use the sum function http : wiki.apache.org solr FunctionQuery . But it s not quite close enough since the score field is not part of the documents . I feel like I m close but I m missing some obvious piece . I m using Solr 3.5 . .. . Answer : Looks like this has been an open issue for a while : https : issues.apache.org jira browse SOLR-2072 . This is exactly what I was talking about . I ll have to follow up with the Solr folks .", "Question : I am trying to achieve disrtibuted field collapsing in solr . I tried applying the patch https : issues.apache.org jira browse SOLR-1683 but it didnt seem to work . Is there anyway to do this Comment : The place to post this is the JIRA issue itself . Add all relevant details . .. . Answer : I have taken a look at this patch myself and it seems to be for an older implementation of FieldCollapsing where the query parameters are called collapse instead of group in Solr 4.0", "Question : Problem .. . .. . Using Solr 4.3.0 I can t seem to get the includeCollapsedDocs parameter of Field Collapsing feature to work . Has this feature been dropped I ve only found a few mentions of it here http : blog.trifork.com 2009 10 20 result-grouping-field-collapsing-with-solr and there https : issues.apache.org jira browse SOLR-236 . Use case .. . .. . I have indexed versioned documents so that each version is a separate document . So I use the field collapsing feature to group the versions together . But doing so I will have lost the unique meta data of each version . For example I need to be able to list the dates of each version when I display it . So I m thinking that includeCollapsedDocs would allow me to have both the groups and the documents with the meta data . .. . Answer : The parameter to set to get the collapsed documents to show is group.limit . So instead of setting collapse.includeCollapsedDocs.fl I set group.limit 10 . I need to read the documentation http : wiki.apache.org solr FieldCollapsing Request Parameters more carefully .", "Question : I have installed and configured solr 3.6.0 with tomcat container . I have created the index of solr example docs . I want to apply grouping functionality on that . I have applied grouping query according to below document : http : wiki.apache.org solr FieldCollapsing and I don t see the field collapsing . I mean I see the results but not the grouping . My understanding is it should work . I have chaged below line in solrconfig.xml . in my solr home all the fields are indexed and stored . I don t see what I m doing wrong . .. . Answer : You don t need to include a searchComponent in your solrconfig.xml . If you re using 3.6 the grouping functionality you need is included standard . Simply : .. . .. . Remove the line you added to solrconfig.xml and restart Solr . Run your query with the additional parameters group true group.field group field .. . .. . make sure the group field you re using is indexed in your schema Comment : hi..i have done this way much before..but it was not working..so still it is not working..i have created index this way .curl localhost : 8085 solr update http : localhost : 8085 solr update -H Content-type : text xml --databinary @lu-example-1.xml", "Question : Using Solr 3.3 .. . Key Store Item Name Description Category Price .. . .. . 1 Store Name Xbox 360 Nice game machine Electronic Games 199.99 .. . 2 Store Name Xbox 360 Nice game machine Electronic Games 199.99 .. . 3 Store Name Xbox 360 Nice game machine Electronic Games 249.99 .. . .. . .. . I have data similar to above table and loaded into Solr . Item Name description Category Price are searchable . Expected result .. . .. . What will be the query parameters that I can send to Solr to receive results above basically I wan to group it by Store ItemName Description and min max price .. . .. . And I want to keep paging consistent with the main StoreName . The paging should be based on the Store Name group . So if 20 stores were found . I should be able to correctly page . Please suggest .. . Answer : Have you looked into field collapsing It is new in Solr 3.3 . http : wiki.apache.org solr FieldCollapsing Comment : I have tried it but the Facet counts don t come up right . The results count still shows 4 instead of 1 but the results are grouped . Don t know how to make a clean counts of facet paging etc come out to be right .", "Question : I read http : wiki.apache.org solr FieldCollapsing .. . .. . and I tried the query http : 192.168.0.1 : 8080 solr append select q mobile group true group.field brand http : 192.168.0.1 : 8080 solr append select q mobile group true group.field brand .. . .. . and I don t see the field collapsing . I mean I see the results but not the grouping . My understanding is it should work nothing to change in the solrconfig.xml In my schema all my field are stored index . My index is Lucene 2.9 and my Solr is 1.4.1 . I don t see what I doing wrong.. . .. . Answer : Field collapsing is not available in Solr 1.4.1 . You need Solr 3.3 or 4.0 currently unreleased . The wiki page about field collapsing also explains If you haven t already get a recent nightly-build of Solr4.0 or Solr3.3.. . .. . .. . Look for warning tags in the Solr wiki that show when a particular feature is available only since a particular version of Solr : .. . .. . enter image description here http : i.stack.imgur.com SdVAJ.png Comment : +1 Thank you I got a little bit mixed up with the Solr versions . So now it is not clear to me what is the difference between 4.0 and 3.3 . Which one should I use They are mentionning on the wiki a future 1.4.2 also Comment : @Bob : 1.4.2 will probably never be released . 3.3 is probably going to be released next . 4.0 has-many new features but may be more unstable than 3.x . Unless you need a 4.x feature I d stick with 3.x Comment : Great Thanks a lot I am going to use it right now", "Question : null .. . Answer : I m using FieldCollapsing to group the results . Example : I search for : and group-by names like : .. . .. . It looks like solr is running internal an separate query for every name . whatever The point is that i have to change the search parameter local in order to set an different search operator from OR to AND . To get valid results I need an query like this : .. . .. . This works very well . The Problem is that solr returns the label of the group including the locale parameter An valide result is be : .. . .. . Is there a way to change to label to the real term where solr is searching for Comment : I deleted my answer since in your opinion it reduced your chance to solve your problem . Let s see the results I m looking forward to see your problem solved but I still don t get why you shouldn t trust a solr contributor who gave you his answer and spent his time on it . Comment : @javanna Dear Javanna its absolutely not the point that I don t trust your answers . Instead of this everything was right . I know you are very active on questions related to SOLR I high regard your statements and you also gave me helpful hints and ideas in the past . That s not the point . Have a nice weekend . : -", "Question : I have a search in solr that is returning about 1500 documents . These documents are basically products . For example I have a bunch of womens shoes in my dataset . My dataset has a wide variety of shoes for women but it also has some very similar results for instance size 11 womens nike trainers size 10 womens nike trainers etc.. . Now when I search for womens shoes solr scoring causes a certain set of these results to bubble to the top that are all very similar. . For instance all the colors of one particular shoe model might come to the top . They are definitely different products but I would prefer to get a wider variety of results than just every color of nike trainer shoes . Does anyone have any suggestions Note I don t want to eliminate all the individually colored products . When someone searches for blue womens nike trainers I want them to get the blue model as the top result . I m using the dismax query as my main query . What I would like to do is basically boost on some kind of uniqueness of name compared to other results factor . .. . Answer : You could either collapse on fields like color or so : .. . .. . http : wiki.apache.org solr FieldCollapsing .. . .. . or you can use near duplicate detection when indexing : .. . .. . http : wiki.apache.org solr Deduplication .. . .. . http : karussell.wordpress.com 2010 12 23 detect-stolen-and-duplicate-tweets-with-solr .. . .. . the latter algorithm is implemented in jetwick for tweets so it should work for titles but not performant enough for big documents so only plagiarism detection for short strings . for long text you ll need local sensitive hashing : .. . .. . http : en.wikipedia.org wiki Locality sensitive hashing", "Question : I want to use a More Like This query to find similar documents and collapse those that have the same value for the field image . I tried to use the Field Collapsing parameters https : wiki.apache.org solr FieldCollapsing however they do not seem to work for More like this . Below is a snippet of my code . Can you tell me how to collapse results using the More Like This query .. . Answer : General answer .. . .. . I could not collapse results using Field Collapsing paramaters . However I was able to achieve the desired result using CollapsingQParserPlugin https : wiki.apache.org solr CollapsingQParserPlugin . The following filter query collapses documents on the field image and selects the one with the highest value for the field impressions : collapse field image max impressions .. . .. . Implementation .. . .. . For some reason I was not able to combine this filter query with my other filter queries under a single key as follows : .. . .. . This produced the error : Query does not implement createWeight .. . .. . My fix was to do a GET request instead of a POST which was done in the question above . With the GET request it is possible to have a key for each filter query : http : solr-url mtl .. . fq -signature 3A0 .. . fq 7B collapse+field 3Dimage+max 3Dimpressions 7D http : solr-url mtl .. . fq -signature 3A0 .. . fq 7B collapse+field 3Dimage+max 3Dimpressions 7D .. . .. . Below is the php solution for the snippet in the question :", "Question : according to the Solr Wiki http : wiki.apache.org solr FieldCollapsing field collapsing should be available in Solr 4 . As far as I know it is necessary to add the following configuration to the solrconfig.xml to activate field collapsing : .. . .. . I downloaded the latest nightly-build apache-solr-4.0-2011-10-26 08-46-59.zip from https : builds.apache.org job Solr-trunk updated my project from lucidworks solr 3.2 to apache solr 4.x and finally found out that the class org.apache.solr.handler.component.CollapseComponent is not available inside the apache-solr-core-4.0-2011-10-26 08-46-59.jar . Can anyone point me to the right direction where to find the missing components Best regards and thanks in advance Tobi .. . Answer : Solr field collapsing https : issues.apache.org jira browse SOLR-236 was released as a part of stable release 3.3 .. . So you can use the latest 3.4 Solr stable build which should have the components included with it . As well it does not require any special components to be included . Passing group true group.field some field should have it working without any changes . Comment : Thank you for this hint . I checked both version 3.3 and 3.4 . Neither in 3.4 nor in 3.3 the mentioned CollapseComponent class is available inside the core jar file . On the lucene part of the solr distribution the lucene-grouping-xxx.jar is available but not the solr grouping components . Any other ideas Comment : grouping does not need any additional components . So you can get started without any configuration changes just by passing additional query parameters . The classes for grouping have been distributed between Solr and lucene artifacts . Comment : Hmm ok the grouping should work out of the box with Solr 3.4 . I tested it and tried to collapse the filed normstufe which is configured like this and normally has content : Comment : type string indexed true stored true . The analysis of the query looks like this : webapp search path select params fl score start 0 q : group.field normstufe group true wt xml rows 20 version 2.2 hits 982 status 0 QTime 109 . During the search I am getting an exception : javax.xml.stream.XMLStreamException : ParseError at row col : 3 91060 Message : error reading value : LST at org.apache.solr.client.solrj.impl.XMLResponseParser.readArray XMLResponseParser . java : 324 . I am stuck . Comment : group true group.field normstufe should return grouped values . normstufe should be an indexed field . Are you using Solrj client", "Question : I have a Solr schema with a kind of versioning . IDs contain version number so existing docs remain as new are indexed . Sample contents : .. . .. . There are two distinct search scenarios : Search all versions or search only the latest . The first is trivial but how do I implement a search in the data field for only the latest versions of each name In the sample above I wish to search for x in latest and expect to hit only bar1 . I was hoping for a solution using http : wiki.apache.org solr FieldCollapsing but if I search for x with group.field name Solr will group after search giving me version 1 of the two names above . I would need it to work more like a filter query . Comment : So are you saying that if you search for x you should get back a result with id foo2 Comment : Nope you should get bar1 but not foo1 . Comment : Found a new mailing list thread with an almost identical case : mail-archives.apache.org mod mbox lucene-solr-user 201110.mbox http : mail-archives.apache.org mod mbox lucene-solr-user 201110.mbox 3C4E9B3A70.2010901@ifactory.com 3E .. . Answer : Dont think field collapsing would serve you the purpose . I can think of couple of the options - .. . .. . 1 . Generate an unique same id for the document so that when you add the new current document the old one is overwritten and you have only one version of the document always . 2 . If its possible to maintain an extra field for the documents which would indicate the status as CURRENT . Only the latest document would have the field value and you would need to reset the value for all the other version of the documents . This way you can easily filter out the latest documents by filter query and also search through all version with the filter query . Comment : 1 would make my first search scenario impossible . Regarding 2 is there a good way to mark the old document as not CURRENT when adding a new one I think I d have to reindex it . Comment : 2 handling needs to be done from the database or your source side and would surely need reindexing all the versions of the documents again . Comment : OK . It can be plan B while hoping for better options . An alternative is to index immediately to two cores one that overwrites your option 1 . Docs can be large though so I d want it to be a single submit .", "Question : Using Solr 3.3 .. . Key Store Item Name Description Category Price .. . .. . 1 Store Name Xbox 360 Nice game machine Electronic Games 199.99 .. . 2 Store Name Xbox 360 Nice game machine Electronic Games 199.99 .. . 3 Store Name Xbox 360 Nice game machine Electronic Games 249.99 .. . .. . .. . I have data similar to above table and loaded into Solr . Item Name description Category Price are searchable . Expected result .. . .. . What will be the query parameters that I can send to Solr to receive results above basically I wan to group it by Store ItemName Description and min max price .. . .. . And I want to keep paging consistent with the main StoreName . The paging should be based on the Store Name group . So if 20 stores were found . I should be able to correctly page . Please suggest .. . Answer : If using Solr 4.0 the new Grouping which replaces FieldCollapsing fixes this issue when you add the parameter group.facet true . So to group your fields you would have add the following parameters to your search request : .. . .. . The number of groups found is what you would show to the user and use for paging instead of the normal total count which would be the total number of documents in the index . Comment : group.facet is extremely inefficient for indexes about 25M records and a size of 20GB here a query without group.facet takes about 1-2 seconds with this option enabled it takes 25 seconds", "Question : today i build up an Solr Cloud System with 3 nodes 3 shards and 3 replications . After that I switched the application in order to use the new SolrCloud System instead the old one singe instance . While most of the features works fine i found out that there are problems with field collapsing or grouping . Looking at the Solr documentation i don t find any informations about solrCloud and field collapsing problems . Playing around with that feature in found out that grouping with an group.field works while group.query generates an error . For example http : localhost : 9080 solr archive select group.limit 10 rows 10 group.query car group true .. . .. . results in : .. . .. . Is this an known bug in Solr 4 Beta Or is group.field not supported in SolrCloud Thank you . .. . Answer : Looks like it is being fixed in the next version of Solr .. . .. . https : issues.apache.org jira browse SOLR-4150", "Question : null .. . Answer : Does use of DocValues provide any performance improvement for Grouping I looked into the blog which mentions improving Grouping performance through DocValues . https : lucidworks.com blog fun-with-docvalues-in-solr-4-2 .. . .. . Right now Group by queries which I can t sadly avoid has become a huge bottleneck . It has an overhead of 60-70 compared to the same query san group-by . Unfortunately I m not able to be CollapsingQParserPlugin as it doesn t have a support similar to group.facet feature . My understanding on DocValues is that it s intended for faceting and sorting . Just wondering if anyone have tried DocValues for Grouping and saw any improvements -Thanks .. . .. . Shamik Comment : yes i write some code that act similar to grouping block join stuff and I used docvalues it helps . Comment : @Mysterion . . thanks I m giving it a shot hopefully will see some improvement . Comment : @Shamik did you see any improvement Comment : @BestPractices . . Unfortunately no docvalues didn t make any difference in grouping performance . I m looking forward to this -- issues.apache.org jira browse SOLR-4763 https : issues.apache.org jira browse SOLR-4763 . I don t see any traction on CollapsingQParserPlugin group.facet support yet . Comment : @Shamik did you have any luck improving group.facet performance", "Question : Many popular search dropdowns on sites like Amazon example image http : i.imgur.com aQyM8WD.jpg use autosuggested words along with grouping Field Collapsing in Solr . While I can replicate the same functionality in Solr using two requests first to obtain suggestions second for the actual query using the most probable suggestion I want to know if this can be done in one request itself . I understand that there are various ways to obtain suggestions term component facets Solr s inbuilt Suggester http : wiki.apache.org solr Suggester and I m open to using any one of them if it means I ll be able to get everything groups + suggestions in one request . Comment : did you get any one request solution if yes can you post answer for your own question .. . Answer : I have not tested it yet. . but i try this for my auto suggest. . .. . .. . Auto Suggestion With multi words terms using SOLR http : androidyou.blogspot.in 2011 08 how-to-auto-suggesting-with-multi.html Comment : Doesn t address how I d get grouping working along with autosuggest . As I said getting autosuggest to work singly is pretty straight-forward what I want to know is if getting groups with the most likely suggestion is possible in the same request ." ] }
[ "yes-answer-long", "yes-answer-short" ]
solr
UNK_RELATION
symmetricds@database@70
symmetricds -- symmetricds is open-source software for both file and @placeholder synchronization with support for multi-master replication filtered synchronization and transformation across the network in a heterogeneous environment .
{ "confidence": [ 59.387542724609375, 47.98151779174805, 45.752567291259766, 44.31435775756836, 42.516544342041016, 36.10731506347656, 35.725738525390625, 32.965484619140625, 31.184612274169922, 31.184612274169922, 28.85547637939453, 27.798553466796875, 24.121984481811523, 21.703964233398438, 21.6824951171875, 19.044193267822266, 19.044193267822266, 19.044193267822266, 19.044193267822266, 17.985218048095703, 15.902359962463379, 15.902359962463379, 15.902359962463379, 15.902359962463379, 15.902359962463379, 15.759132385253906, 13.800712585449219, 13.800712585449219, 13.800712585449219, 13.800712585449219, 13.800712585449219, 13.800712585449219, 10.735428810119629, 10.735428810119629, 10.735428810119629, 10.735428810119629, 10.735428810119629, 10.735428810119629, 10.735428810119629, 10.735428810119629, 10.735428810119629, 10.735428810119629, 10.735428810119629, 10.735428810119629, 10.735428810119629, 10.735428810119629, 10.735428810119629, 10.735428810119629, 10.735428810119629, 10.735428810119629, 10.735428810119629, 10.735428810119629, 10.735428810119629, 10.735428810119629, 10.735428810119629, 10.735428810119629, 10.735428810119629, 10.735428810119629, 10.735428810119629, 10.735428810119629, 10.735428810119629, 10.735428810119629, 10.735428810119629, 10.735428810119629, 10.735428810119629, 10.735428810119629, 10.735428810119629 ], "content": [ "I am trying to implement multi-master bidirectional synchronization for one central node and many clients using SymmetricDS .", "It only can synchronize raws after symmetricDS installed .", "SymmetricDS version 3.8 will include Android file sync and will be released in about a month .", "Is it possible to synchronize raws include data before symmetricds installation .", "I want to synchronize the Database A with Database B . I want to create a java application using SymmetricDS embedded .", "There s a section in the documentation about embedding symmetricDs engine into Java SE application : http : www.symmetricds.org doc 3.6 user-guide html-single user-guide.html deployment-options-embedded", "Someone can think that conflicts on INSERT are common problem in star-shape network with central node so SymmetricDS will implement some simple mechanism to resolve them .", "I am trying to use SymmetricDS to sync a server-side MySQL database with a client-side embedded HSQLDB database but I get the following error : .. . .. . Any Idea", "This conflict can be easily detected in SymmetricDS but now I want to resolve it by increment key until it s inserted and then send changes back to the clients.. .", "I m testing SymmetricDS and I m having some doubt about which approach I should use to synchronize some specific tables .", "I m using symmetricDS for sync my app db sqlite and server database SQLServer and i try syncing files between my app and server but after create file in target directory in server-side new record create on outgoing batch by New status and never change to OK status .", "entity-diagram http : i.stack.imgur.com qOgTT.png .. . .. . In this diagram the red rectangles show which table need synchronize and the green arrow show the column where we can identify which SymmetricDS instance will synchronize .", "I have the following use-case : A database A Master and a database B slave located on diferent machines .", "When dealing with a multi-master bi-directional scenario its not a good idea to use an auto incrementing PK .", "this an example how run the Symmetric engine server in embedded mode and it works perfectley for me : .. . .. . .. . public class ClientNode .. . private ClientSymmetricEngine cEngine .. . private File propFile .. . .. . .. . public ClientNode File file throws FileNotFoundException IOException .. . propFile file .. . Properties propertiesFile new Properties .. . propertiesFile.load new FileReader propFile .. . cEngine new ClientSymmetricEngine propertiesFile true .. . getcEngine .openRegistration client 001 client is the name of the node group and 001 is the ID .. . getcEngine .setup .. . getcEngine .start .. . .. . .. . public ClientSymmetricEngine getcEngine .. . return cEngine .. . .. . .. . public void setcEngine ClientSymmetricEngine cEngine .. . this.cEngine cEngine .. . .. . .. . .. . Main class : .. . .. . .. . public static void main String args .. . .. . .. . try .. . new ClientNode new File client.properties .. . SymmetricWebServer node new SymmetricWebServer master.properties .. . node.setWebAppDir Web .. . node.setJoin false .. . node.start .. . this will stop the node .. . node.stop .. . catch Exception e .. . e.printStackTrace .. . .. . .. . .. . .. . Properties files : .. . .. . client.properties : .. . .. . master.properties :", "As there is no documentation on how to perform this i want a sample example or a documentation .", "Please help me I m stuck .", "thank you i ve seen it but it wasn t helpful from me any i way i have found an example and it works perfectly .", "It would be nice to post a link-to the example so other people could benefit from your findings .", "Also i tried this : jumpmind.com blog file-sync-made-easy http : www.jumpmind.com blog file-sync-made-easy", "I have a database run 4 months already .", "How to do it", "Sure it s possible .", "Take a look at the chapter Data Reloads http : www.symmetricds.org doc 3.6 user-guide html-single user-guide.html resync-data of SymmetricDS s user guide .", "There s a hint : user lacks privilege or object not found : SYSTEM USERS maybe this question can help : stackoverflow.com questions 10729107 https : stackoverflow.com questions 10729107 hsqldb-invalid-authorization-specification", "Selecting an Appropriate Primary Key for a Distributed Environment http : msdn.microsoft.com en-us library bb726011.aspx", "enter image description here http : i.stack.imgur.com vJkUk.png", "What have you tried so far", "Please provide some code .", "Have you got logs or anything", "I tried this code : http : www.symmetricds.org doc 3.5 html-single user-guide.html filesync-example s http : www.symmetricds.org doc 3.5 html-single user-guide.html filesync-examples", "http : www.symmetricds.org issues view.php id 2687", "Clients are communicating only with central node star topology .", "I have problem with dealing with conflicts in primary keys .", "For example database contains table person with columns id name .. .", "In central db I have rows : .. . .. . 1 . aaa .. . 2 . bbb .. . 3 . ccc .. . .. . First client connects and downloads initial load so it has same db .", "Second client do the same .", "Now first and second clients create new row in their local db .", "First : .. . .. . 1 . aaa .. . 2 . bbb .. . 3 . ccc .. . 4 . ddd .. . .. . Second : .. . .. . 1 . aaa .. . 2 . bbb .. . 3 . ccc .. . 4 . eee .. . .. . They will try sync but there is conflict in 4 . row .", "So result will be : .. . .. . 1 . aaa .. . 2 . bbb .. . 3 . ccc .. . 4 . ddd .. . 5 . eee .. . .. . in every database .", "How can it be done", "Thank you .", "Standard practice is to create a GUID for the PK to avoid conflicts between your clients .", "See the following site for more details .", "I know that but unfortunately I am working on existing project school project and I am doing only small part where I want to develop sync mechanism to replace existing limited sync .", "Maybe it can be done using IDatabaseWriterFilter 5.10.2 or using transforming data 4.8 .", "But I can t find out how .", "What database are you using", "Can you insert a record and specify your own PK", "What kind of volume of data are you working with", "How often will records be inserted with the same pk", "Sometimes you can divide up the range of the auto-increment PK and start each of your client nodes a different starting position .", "Depending on your db this could be as easy as inserting a record with the PK column included at the location you want that node to start incrementing .", "Central node is using PostgreSQL and clients are using Apache Derby .", "It s impossible to determine which range can one client use number of clients is unknown .", "In previous version of client there was very limited insufficient sync only INSERTs without foreign-keys .", "Collisions were solved by remapping id to new id determined by central node and new id was sent back to the client which stored it in remote id column .", "I suppose that database will contain lots of data in future and many collisions will happen.. . Users can use web app to work with central database directly too .", "I have two application the first is a ERP and the second is a PDV .", "Some tables can be synchronized to all PDV databases however in some tables the row should synchronize to a specific PDV instance : .. . .. .", "My question is : which approach I should use to do this bsh subselect lookuptable etc and how I do it", "You need a subselect router actually you need three .", "I only show you the SQL for Funcionario then you ll be able to figure out the configuration for Cadastro and Funcionario funcao by yourself : .. . .. . When a record from the Funcionario table is routed this router picks all the nodes with external id equal to the Empresa.CNPJ linked to the given Funcionario I assumed Funcionario.id cadastro to be the reference to Cadastro.CPFCGC .. . .. . Note I used c.external id but you may want to use c.node id depends on what you put into Empresa.CNPJ .", "I would optimize select empresa.CNPJ with select distinct empresa.CNPJ in case there s n-n relationship in general .", "@Raffaele Isn t subselect route an inefficient approach", "No .", "Later if you find that your production setup suffers from performance problems and a hardware upgrade can t be afforded you may try to speed things up by using routing tables routing columns it means you have to somehow digest the routing yourself and add columns to store the node lookup key" ] }
{ "confidence": [ 57.83482360839844, 56.705833435058594, 53.764930725097656, 48.673763275146484, 48.07217788696289, 46.46833801269531, 38.458229064941406 ], "content": [ "Question : I have the following use-case : A database A Master and a database B slave located on diferent machines . I want to synchronize the Database A with Database B . I want to create a java application using SymmetricDS embedded . As there is no documentation on how to perform this i want a sample example or a documentation . Please help me I m stuck . .. . Answer : There s a section in the documentation about embedding symmetricDs engine into Java SE application : http : www.symmetricds.org doc 3.6 user-guide html-single user-guide.html deployment-options-embedded Comment : thank you i ve seen it but it wasn t helpful from me any i way i have found an example and it works perfectly . Comment : It would be nice to post a link-to the example so other people could benefit from your findings .", "Question : I am trying to implement multi-master bidirectional synchronization for one central node and many clients using SymmetricDS . Clients are communicating only with central node star topology . I have problem with dealing with conflicts in primary keys . For example database contains table person with columns id name .. . In central db I have rows : .. . .. . 1 . aaa .. . 2 . bbb .. . 3 . ccc .. . .. . First client connects and downloads initial load so it has same db . Second client do the same . Now first and second clients create new row in their local db . First : .. . .. . 1 . aaa .. . 2 . bbb .. . 3 . ccc .. . 4 . ddd .. . .. . Second : .. . .. . 1 . aaa .. . 2 . bbb .. . 3 . ccc .. . 4 . eee .. . .. . They will try sync but there is conflict in 4 . row . This conflict can be easily detected in SymmetricDS but now I want to resolve it by increment key until it s inserted and then send changes back to the clients.. . So result will be : .. . .. . 1 . aaa .. . 2 . bbb .. . 3 . ccc .. . 4 . ddd .. . 5 . eee .. . .. . in every database . How can it be done Thank you . .. . Answer : When dealing with a multi-master bi-directional scenario its not a good idea to use an auto incrementing PK . Standard practice is to create a GUID for the PK to avoid conflicts between your clients . See the following site for more details . Selecting an Appropriate Primary Key for a Distributed Environment http : msdn.microsoft.com en-us library bb726011.aspx Comment : I know that but unfortunately I am working on existing project school project and I am doing only small part where I want to develop sync mechanism to replace existing limited sync . Someone can think that conflicts on INSERT are common problem in star-shape network with central node so SymmetricDS will implement some simple mechanism to resolve them . Maybe it can be done using IDatabaseWriterFilter 5.10.2 or using transforming data 4.8 . But I can t find out how . Comment : What database are you using Can you insert a record and specify your own PK What kind of volume of data are you working with How often will records be inserted with the same pk Sometimes you can divide up the range of the auto-increment PK and start each of your client nodes a different starting position . Depending on your db this could be as easy as inserting a record with the PK column included at the location you want that node to start incrementing . Comment : Central node is using PostgreSQL and clients are using Apache Derby . It s impossible to determine which range can one client use number of clients is unknown . In previous version of client there was very limited insufficient sync only INSERTs without foreign-keys . Collisions were solved by remapping id to new id determined by central node and new id was sent back to the client which stored it in remote id column . I suppose that database will contain lots of data in future and many collisions will happen.. . Users can use web app to work with central database directly too .", "Question : I have a database run 4 months already . It only can synchronize raws after symmetricDS installed . Is it possible to synchronize raws include data before symmetricds installation . How to do it .. . Answer : Sure it s possible . Take a look at the chapter Data Reloads http : www.symmetricds.org doc 3.6 user-guide html-single user-guide.html resync-data of SymmetricDS s user guide .", "Question : I have the following use-case : A database A Master and a database B slave located on diferent machines . I want to synchronize the Database A with Database B . I want to create a java application using SymmetricDS embedded . As there is no documentation on how to perform this i want a sample example or a documentation . Please help me I m stuck . .. . Answer : this an example how run the Symmetric engine server in embedded mode and it works perfectley for me : .. . .. . .. . public class ClientNode .. . private ClientSymmetricEngine cEngine .. . private File propFile .. . .. . .. . public ClientNode File file throws FileNotFoundException IOException .. . propFile file .. . Properties propertiesFile new Properties .. . propertiesFile.load new FileReader propFile .. . cEngine new ClientSymmetricEngine propertiesFile true .. . getcEngine .openRegistration client 001 client is the name of the node group and 001 is the ID .. . getcEngine .setup .. . getcEngine .start .. . .. . .. . public ClientSymmetricEngine getcEngine .. . return cEngine .. . .. . .. . public void setcEngine ClientSymmetricEngine cEngine .. . this.cEngine cEngine .. . .. . .. . .. . Main class : .. . .. . .. . public static void main String args .. . .. . .. . try .. . new ClientNode new File client.properties .. . SymmetricWebServer node new SymmetricWebServer master.properties .. . node.setWebAppDir Web .. . node.setJoin false .. . node.start .. . this will stop the node .. . node.stop .. . catch Exception e .. . e.printStackTrace .. . .. . .. . .. . .. . Properties files : .. . .. . client.properties : .. . .. . master.properties :", "Question : I m using symmetricDS for sync my app db sqlite and server database SQLServer and i try syncing files between my app and server but after create file in target directory in server-side new record create on outgoing batch by New status and never change to OK status . enter image description here http : i.stack.imgur.com vJkUk.png Comment : What have you tried so far Please provide some code . Have you got logs or anything Comment : I tried this code : http : www.symmetricds.org doc 3.5 html-single user-guide.html filesync-example s http : www.symmetricds.org doc 3.5 html-single user-guide.html filesync-examples Comment : Also i tried this : jumpmind.com blog file-sync-made-easy http : www.jumpmind.com blog file-sync-made-easy .. . Answer : SymmetricDS version 3.8 will include Android file sync and will be released in about a month . http : www.symmetricds.org issues view.php id 2687", "Question : null .. . Answer : I am trying to use SymmetricDS to sync a server-side MySQL database with a client-side embedded HSQLDB database but I get the following error : .. . .. . Any Idea Comment : There s a hint : user lacks privilege or object not found : SYSTEM USERS maybe this question can help : stackoverflow.com questions 10729107 https : stackoverflow.com questions 10729107 hsqldb-invalid-authorization-specification", "Question : I m testing SymmetricDS and I m having some doubt about which approach I should use to synchronize some specific tables . I have two application the first is a ERP and the second is a PDV . Some tables can be synchronized to all PDV databases however in some tables the row should synchronize to a specific PDV instance : .. . .. . entity-diagram http : i.stack.imgur.com qOgTT.png .. . .. . In this diagram the red rectangles show which table need synchronize and the green arrow show the column where we can identify which SymmetricDS instance will synchronize . My question is : which approach I should use to do this bsh subselect lookuptable etc and how I do it .. . Answer : You need a subselect router actually you need three . I only show you the SQL for Funcionario then you ll be able to figure out the configuration for Cadastro and Funcionario funcao by yourself : .. . .. . When a record from the Funcionario table is routed this router picks all the nodes with external id equal to the Empresa.CNPJ linked to the given Funcionario I assumed Funcionario.id cadastro to be the reference to Cadastro.CPFCGC .. . .. . Note I used c.external id but you may want to use c.node id depends on what you put into Empresa.CNPJ . Comment : I would optimize select empresa.CNPJ with select distinct empresa.CNPJ in case there s n-n relationship in general . Comment : @Raffaele Isn t subselect route an inefficient approach Comment : No . Later if you find that your production setup suffers from performance problems and a hardware upgrade can t be afforded you may try to speed things up by using routing tables routing columns it means you have to somehow digest the routing yourself and add columns to store the node lookup key" ] }
[ "yes-answer-long", "yes-answer-short" ]
database
UNK_RELATION
telecommunication@ieee@117
telecommunication -- telecommunication domain relates to the latest wireless standards like gsm gprs umts lte wimax @placeholder 802.11 .
{ "confidence": [ 38.263607025146484, 38.263607025146484, 38.263607025146484, 36.78767776489258, 34.191097259521484, 30.267234802246094, 29.18435287475586, 26.68917465209961, 24.500595092773438, 23.523847579956055, 22.570510864257812, 21.867753982543945, 21.02300262451172, 20.089744567871094, 19.436676025390625, 19.21453857421875, 18.952024459838867, 18.94175148010254, 18.862430572509766, 18.567867279052734, 18.33994483947754, 18.307811737060547, 18.273773193359375, 18.025489807128906, 17.95700454711914, 17.572158813476562, 17.296892166137695, 17.022781372070312, 16.456398010253906, 16.244651794433594, 16.063268661499023, 15.521844863891602, 15.332847595214844, 14.791255950927734, 14.791255950927734, 14.791255950927734, 14.791255950927734, 14.791255950927734, 14.791255950927734, 14.791255950927734, 14.791255950927734, 14.791255950927734, 14.791255950927734, 14.791255950927734, 14.791255950927734, 14.791255950927734, 14.791255950927734, 14.791255950927734, 14.791255950927734, 14.791255950927734, 14.791255950927734, 14.791255950927734, 14.791255950927734, 14.791255950927734, 14.791255950927734, 14.791255950927734, 14.791255950927734, 14.791255950927734, 14.791255950927734, 14.791255950927734, 14.791255950927734, 14.791255950927734, 14.791255950927734, 14.791255950927734, 14.791255950927734, 14.791255950927734, 14.791255950927734, 14.791255950927734, 14.791255950927734, 14.791255950927734, 14.791255950927734, 14.791255950927734, 14.791255950927734, 14.791255950927734, 14.791255950927734, 14.791255950927734, 14.791255950927734, 14.791255950927734, 14.791255950927734, 14.791255950927734, 14.791255950927734, 14.791255950927734, 14.791255950927734, 14.791255950927734, 14.791255950927734, 14.791255950927734, 14.791255950927734, 14.791255950927734, 14.791255950927734, 14.791255950927734, 14.791255950927734, 14.791255950927734, 14.78991985321045, 14.748808860778809, 14.613203048706055, 14.613203048706055, 14.267435073852539, 14.267435073852539, 13.861763954162598 ], "content": [ "actually i am new in this area and i am working in the security issues in telecommunication fraud", "actually i am new in this area and i am working in the security issues in telecommunication fraud .", "Being new to telecommunication this definition confused me as to what is the difference between a trunk and subscriber line .", "I would just like to ask or get a few expert advices directions on building a database and architecture for a telecommunication app .", "once we have Provisioning and ESB beside each other in telecommunication architecture how should we use them", "It s not related latitude-longitude it s pure GSM UMTS Mobility Management Signaling .", "It would make sense to divert voice calls to the GSM network and data calls to UMTS by preference .", "Its used by UMTS and HSDPA .", "Well i think UMTS is used only for datatransmission .", ".. . .. . by the way the third is E-UTRAN for LTE .", "The MNC identifies the home GSM PLMN of the mobile subscriber .", "So because what I described above I m trying to write an application service which will perform GSM UMTS location update in 15-20 minutes but I couldn t find any kind of procedure in android.telephony.gsm.GsmCellLocation android.telephony.TelephonyManager which will do this for me .", "Please could you tell me the possibility of deploying EGSM 880.0 915.0 925.0 960 . with GSM-900 hardware configuration .", "In LTE there are reference symbols which piggy pack the information required for the UE phone to decode the DL channel information and select a cell .", "Any method about data compression on aggregator of wireless sensor network", "Sorry for my late response on this post.. . .. . .. . Only now I realize there s a UMTS tag in StackOverflow.. .", "Terms like data fusion data aggregation of wireless sensor network always lead to topic about routing which is not I expected .", "When you plug in an LTE modem as part of the attach process to the LTE network it sets up a default EPS bearer to carry signalling traffic .", "But that looks like a good answer no", "I am new to telecom domain .", "The first result is what looks like a decent answer .", "TAC codes are issued by two authorities CTIA for North America and the GSM Association for everywhere else identifiable by the first two digits .", "I was searching it for long time and got some information : .. . .. . Mobile Network Code MNC consisting of two or three digits for GSM applications .", "GERAN is the oldest one and it is used for circuit switch voice transmission but also for Packet Switched transmission GPRS EDGE .. . .. . Than we have UTRAN .", "Narrowing your domain will help you tremendously .", "Domain .. . .. . The telecom domain is very large so I would suggest you determine what your audience wants you to focus on first .", "Here s the problem : When I make an international call from my phone on H2OWireless a reseller using the AT T GSM network the receiving end of my call gets a wrong country code transmitted as caller ID causing a number of problems .", "More Info : .. . .. . http : www.rfwireless-world.com Terminology GSM-BCCH-Broadcast-Control-Channel.html .. . .. . FCCH .. . .. . In this channel network sends specific data which is used by the mobile station for synchronization purposes .", "There are quite a few resources online but I would suggest a reference like this one : Fundamentals of Telecom Book http : www.ie.itcr.ac.cr acotoc Maestria en Computacion Sistemas de Comunicacion II Material Biblio5.pdf .. . .. . Do your best to research and know your domain .", "I was googling for RRC state transitions in UMTS networks and found that whenever UE feels that there is no data left for transmission it starts a timer T323 upon expiration of this timer it sends a SCRI signal to end connection .", "I have a cellphone HTC desire 510 an android phone that works with band 5 of LTE However when I build my own base station with OpeanAirInterface and send signals at a frequency of 881Mhz downlink the mobile phone cannot detect my signals .", "Recently I m working on a link scheduling algorithm in Wireless Sensor Network the topology example is shown as figure it s a converge cast communication pattern nodes besides the root upload its data forward to sink .", "I saw some questions related to PBX and telecom domain on this website so I thought maybe somebody could help me in getting the answers .", "What will be the Shannon equation for a noiseless signal", "Means if noise will be 0 then what will be the value of signal to noise ratio S N", "SNR would be infinity and you would have theoretical infinite transmission rate .", "But you always have noise you know .", "I want to validate International mobile subscriber identity IMSI numbers https : en.wikipedia.org wiki International mobile subscriber identity .", "What is the valid range of IMSI numbers", "Please let me know about specification or any web link .", "I m not sure this question has an answer as this number is both highly dependent on each country s independent numbering plan .", "The first 5 digits of the IMSI consists of an MCC Mobile Country Code + MNC Mobile Network Code combination of which according to this site http : www.mcc-mnc.com there are 1663 entries as of 3 24 2016 .", "These combinations are not sequential and were designed to accommodate natural population growth .", "So the sequences skip around somewhat arbitrarily mainly because they mostly are .", "The remaining 10 digits are the MSIN Mobile Subscriber Identification Number which is basically a phone-number .", "This number is regulated by each country s numbering plan which vary considerably from country to country .", "So there s really no cohesive rule you can use to verify IMEI integrity other than some sort of database lookup .", "Wish you luck in your search and your project", "i am trying to download the binary release for RestComm Camel Gateway using the following URL : https : mobicents.ci.cloudbees.com job RestComm-Camel-Gateway but the link is not working HTTP Status 404 - this link is mentioned by RestComm Camel Gateway team in GitHub website https : github.com RestComm camelgateway could you please help me to download this binary .", "thanks in advance .", "Possible duplicate of RestComm Camel Gateway http : stackoverflow.com questions 36004975 restcomm-camel-gateway", "Hello All any help for this issue", "any way to download RestComm Camel Gateway", "thank you all .", "What are the differences between On-net calls and Off-net calls", "How could I make international call under On-net call", "on-net calls are calls between the same network.off-net calls are calls with other networks .", "could I make international call under On-net call", "see my answer below", "The On-Net is used when your call or message originates on your home operator s network and terminates to another mobile number that resides with your operator .", "It does not matter if the person you are calling is using the home network or is off Island roaming with a different provider .", "Off-Net applies when the call or message is made on a different network e.g .", "whilst you are roaming or if you are using your home network and make a call or send a message to a number that resides with a different network provider", "many thanks for helping .", "visit this how to mark accepted answer meta.stackexchange.com questions 5234 http : meta.stackexchange.com questions 5234 how-does-accepting-an-answer-work", "I have this definitions but I am still confused could you please clarify to me .", "For an operator if a fraudster uses its own network s connections to terminate the bypassed calls it is identied as ONNET Bypass Fraud But if the fraudster uses competitor s connections or any other means for termination it is identied as OFFNET Bypass Fraud", "I want to know what s the difference between CDR and XDR.When I read articles i found CDR Call Detail Record and xDR x Data Record but i don t understand the difference between them.Can someone tell me what s the difference between them and thank you an advance", "Have you Googled Difference between CDR and xDR", "Yes but I just found this : groups.google.com forum topic comp.object.corba po88fJULWkI https : groups.google.com forum topic comp.object.corba po88fJULWkI", "What else do you need to know", "I want to know technically the difference between them", "The relation between them", "I want to ask for any help to solve my problem .", "I want to compute BER Bit error rate for a nine combination points as illustrated below .", "I used the computation for SER and then I convert it to BER but the result was incorrect .", "Any site or suggestion please", "Many thanks Othman .. . .. .", "enter image description here http : i.stack.imgur.com kAxWI.png .. . .. . My code is :", "Please post the code that you tried the result that it gave you and the result that you expect .", "clear all clc SNR 0 : 40 SNRL 10 . SNR . 10 Eb 1 sigma sqrt 2 Eb . SNRL d2 0.3 Pe 14 9 erfc d2 . sqrt 2 sigma . 2 +2 9 erfc 0 . sqrt 2 sigma . 2 semilogy SNR Pe grid on hold on", "@bwyn thanks for your quickly response but I think the error in the computations", "So if you know how could I calculate the BER for that constellation I will be thankful .", "Please help", ": .. . .. . definition of folded and non-folded network http : i.stack.imgur.com 8JRbL.jpg", "Its not a particularly well explained term in that reference but all it really means is that in a folded network the network is closed - in other words subscribers can only makes calls to other subscribers of the same network .", "A non folded or open network means that subscribers can make calls to people outside the network being discussed .", "Its mostly useful as a planning tool .", "In real life most network are not closed or folded for obvious reasons although local exchanges might be modelled as closed or folded for planning and dimensioning purposes .", "Dimensioning in telecoms is very important as telecoms equipment is traditionally expensive so most networks are blocking in one way or another - i.e .", "they are not engineered to allow every subscriber make a call at the same time as this would be a very rare occurrence and it would be costly to have much of the equipment sitting idle at all other times .", "There is a better definition than the one you reference above with some diagrams etc here : http : www.newagepublishers.com samplechapter 001222.pdf", "Does such a feature like this exist", "More domain focused examples would be what this question is after .", "But we would like to test this functionality with sip chat messages during development .. . .. . is it possible to send message from sip phone to the specific to the registered sip number", "But I would really like to understand what is going wrong here and whether AT T or Deutsche Telekom or any other provider is to blame for this problem .", "There are protocols like TMF814 3GPP that work on top of CORBA .", "Like most things to do with software it is possible .", "Usually only customers like phone manufacturers get access ." ] }
{ "confidence": [ 52.883235931396484, 41.395816802978516, 39.23004913330078, 37.276851654052734, 30.30213737487793, 23.791370391845703, 23.447124481201172, 22.02154541015625, 21.282886505126953, 20.935482025146484, 20.68204116821289, 18.772506713867188, 18.691143035888672, 18.473995208740234, 16.74172592163086, 16.69446563720703, 16.50115966796875, 15.93216323852539, 15.602603912353516, 14.839838981628418 ], "content": [ "Question : In Mobile Communication have have 3 access networks . GERAN is the oldest one and it is used for circuit switch voice transmission but also for Packet Switched transmission GPRS EDGE .. . .. . Than we have UTRAN . Its used by UMTS and HSDPA . My Question now . Is UTRAN today used for old-fashion voice calls not talking about SIP or something else or is it a data trasmission only network . .. . .. . by the way the third is E-UTRAN for LTE . Comment : Well i think UMTS is used only for datatransmission . Comment : What do you mean by voice transmission UTRAN is able to use both CS and PS . Basically CS would in your world be old-fashioned voice calls typically E1s in a C7 net . E-UTRAN is PS only . .. . Answer : The UTRAN is designed for voice and data . There are various additions to it like HSDPA HSUPA and HSPA+ that deliver faster data . I think the question about whether the UTRAN is used for voice calls depends purely on the relative number of voice and data calls in a particular area at a particular time . It would make sense to divert voice calls to the GSM network and data calls to UMTS by preference .", "Question : What are the differences between On-net calls and Off-net calls How could I make international call under On-net call Comment : on-net calls are calls between the same network.off-net calls are calls with other networks . Comment : could I make international call under On-net call Comment : see my answer below .. . Answer : The On-Net is used when your call or message originates on your home operator s network and terminates to another mobile number that resides with your operator . It does not matter if the person you are calling is using the home network or is off Island roaming with a different provider . Off-Net applies when the call or message is made on a different network e.g . whilst you are roaming or if you are using your home network and make a call or send a message to a number that resides with a different network provider Comment : many thanks for helping . actually i am new in this area and i am working in the security issues in telecommunication fraud Comment : visit this how to mark accepted answer meta.stackexchange.com questions 5234 http : meta.stackexchange.com questions 5234 how-does-accepting-an-answer-work Comment : many thanks for helping . actually i am new in this area and i am working in the security issues in telecommunication fraud . I have this definitions but I am still confused could you please clarify to me . For an operator if a fraudster uses its own network s connections to terminate the bypassed calls it is identied as ONNET Bypass Fraud But if the fraudster uses competitor s connections or any other means for termination it is identied as OFFNET Bypass Fraud", "Question : once we have Provisioning and ESB beside each other in telecommunication architecture how should we use them what is the role of each of them .. . Answer : Provisioning is the configuration deployment and management of multiple types of IT system resources . A Provisioning Service may be build based on an ESB . Talend https : help.talend.com display TalendESBInfrastructureServicesConfigurationGuide60EN 10.+Provisioning+Service for example uses this approach . In this approach the ESB is used to distribute the configuration and feature description to the used to provisioned services . There are other resources on the web like this https : wiki.jasig.org display OR ESB+Based+Provisioning you can also google for provisioning service esb .", "Question : Being new to telecommunication this definition confused me as to what is the difference between a trunk and subscriber line . Please help : .. . .. . definition of folded and non-folded network http : i.stack.imgur.com 8JRbL.jpg .. . Answer : Its not a particularly well explained term in that reference but all it really means is that in a folded network the network is closed - in other words subscribers can only makes calls to other subscribers of the same network . A non folded or open network means that subscribers can make calls to people outside the network being discussed . Its mostly useful as a planning tool . In real life most network are not closed or folded for obvious reasons although local exchanges might be modelled as closed or folded for planning and dimensioning purposes . Dimensioning in telecoms is very important as telecoms equipment is traditionally expensive so most networks are blocking in one way or another - i.e . they are not engineered to allow every subscriber make a call at the same time as this would be a very rare occurrence and it would be costly to have much of the equipment sitting idle at all other times . There is a better definition than the one you reference above with some diagrams etc here : http : www.newagepublishers.com samplechapter 001222.pdf", "Question : I would just like to ask or get a few expert advices directions on building a database and architecture for a telecommunication app . Basiclly there are 3 parts : .. . .. . Switch low-level calls signaling Backend CRM Mobile .. . .. . Mostly focused now on the backend part so would like to know if anyone had some experience and would be able to point in some directions for research and so on . Nothing special things like SQL or NoSQL and just some good points where I could learn and research more Thx .. . Answer : I have worked for both Intergraph and Ericsson on their telecommunications apps and can suggest a few places for you to start your research . Domain .. . .. . The telecom domain is very large so I would suggest you determine what your audience wants you to focus on first . Are you interested in facilities management which is where poles lines and equipment are located Are you interested in logical network management where you are worried less about the physical cables themselves and worried more about the logical circuits that ride these physical media Narrowing your domain will help you tremendously . There are quite a few resources online but I would suggest a reference like this one : Fundamentals of Telecom Book http : www.ie.itcr.ac.cr acotoc Maestria en Computacion Sistemas de Comunicacion II Material Biblio5.pdf .. . .. . Do your best to research and know your domain . Data Modeling .. . .. . For telecom data-modeling check out ESRI at www.esri.com http : www.ie.itcr.ac.cr acotoc Maestria en Computacion Sistemas de Comunicacion II Material Biblio5.pdf . They specifically publish a telecom data model white paper that you might want to check out you ll have to register to see it at : http : downloads2.esri.com support TechArticles Telecommunications Data Model.pdf https : en.wikipedia.org wiki Graph theory .. . .. . Also check out the offerings from IBM at : https : www-01.ibm.com marketing iwm iwm web signup.do source sw-infomgt S PKG 500019725 S CMP is bro11 S TACT 109HF36W 3 https : www-01.ibm.com marketing iwm iwm web signup.do source sw-infomgt S PKG 500019725 S CMP is bro11 S TACT 109HF36W 5D 5B3 5D .. . .. . Finally check out the products from Intergraph Smallworld and 3-GIS at : .. . .. . http : www.intergraph.com communications .. . http : www.gedigitalenergy.com geospatial catalog smallworld network.htm .. . http : www.3-gis.com .. . .. . Graphs .. . .. . My final bit of advice to you is to know your graph-theory https : en.wikipedia.org wiki Graph theory . Modeling telecom networks requires advanced knowledge of node-edge edge-edge and directed graphs . You need this knowledge to model pole-line graphs underground duct networks cable sheath-to-sheath connections fiber and copper stand-to-strand and pair-to-pair connections and the relationships between various parts of the network . Beyond the relationships that you model with graphs you will employ this knowledge to trace networks quickly .", "Question : null .. . Answer : Please could you tell me the possibility of deploying EGSM 880.0 915.0 925.0 960 . with GSM-900 hardware configuration . We have BTS BSC with support for 900 1800 MHZ . so will it require a hardware modifications or just a software issue Thanks and hope to hear from you .", "Question : I have a cellphone HTC desire 510 an android phone that works with band 5 of LTE However when I build my own base station with OpeanAirInterface and send signals at a frequency of 881Mhz downlink the mobile phone cannot detect my signals . I wonder if a phone will scan all the frequencies within the band 5 which is 869 894 for downlink or will it only scan a subset of that band . Besides is there a way to look into the cellphone to find what frequencies it scanned say via a log or the like Comment : What does this have to do with android or programming at all Comment : This is an android phone and is remotely relevant if any one knows how Android works with detecting cellular signals .. . Answer : Usually all of the frequencies present in a band are scanned to find the suitable cell . In LTE there are reference symbols which piggy pack the information required for the UE phone to decode the DL channel information and select a cell . In order to access the information regarding the frequencies it scan you have to consult the manufacturer . If it provides an interface to access those files because bands related information is logged but is only accessible by manufacturer .", "Question : Let me summarize my problem and what I would like to achieve . I have a SonyEricsson X10i phone with Android 2.3.3 . I realized that sometimes my phone not receiving calls even if it indicating full coverage . I checked myself in the MSC VLR and it indicates that I registered and my phone is currently active and also there is no IMSI DETACH flag so it should working correctly only the last Activate Date is a little bit old couple of hours which can be good as well without SMS Call Location Update as I mentioned before the phone indicates full coverage and it seems it s on the network . But when I tried to call it I only reached the Voice Mail . In the MSC VLR I see No Paging Response Cause for the call but the phone does nothing . I tried with other SW version 4.0.3 ICS but the same result . But I not noticed similar behaviour with a different handset same type . Sorry for the long summary . So because what I described above I m trying to write an application service which will perform GSM UMTS location update in 15-20 minutes but I couldn t find any kind of procedure in android.telephony.gsm.GsmCellLocation android.telephony.TelephonyManager which will do this for me . My other concern is the getState setStateOutOfService setState procedures from ServiceState class It seems they not really working . For example when I first call the getState I always get back STATE OUT OF SERVICE which is not true When I m set the state to STATE POWER OFF or STATE IN SERVICE at least I get back that state from getState afterwards but the phone does nothing for that . Not even indicate out of coverage etc .. . .. . Every suggestion comment are welcome . Comment : It does sounds like an interesting question but you made a bunch of different remarks and I can t totally understand what you want to know . As far as I understood you want to ge the location of your phone latitude-longitude as set from the cell tower triangulations is that right If it is you have to do it via the LOCATION PROVIDER and ask for the NETWORK PROVIDER . If that is not what you ask I suggest you to clarify a bit your question . Comment : Hi there basically what I want to force my phone to perform a new location update towards to the Radio Core . It s not related latitude-longitude it s pure GSM UMTS Mobility Management Signaling . link http : en.wikipedia.org wiki Mobility management . I hope clarified it if not please let me know . Comment : I guess it s clearer now but unfortunately I won t be able to help . Good luck . .. . Answer : I have also seen this problem many times 2 phones from the same manufacturer as yours . From your question I understand that you want to force the phone to send an MM periodic location update which it should be sending anyway . This is too low-level and there s nowhere you can force this directly in the programming interface . The mobility management procedure is part of the phone stack and is specified in detail in 3GPP TS 24.008 available from www.3gpp.org . Paragraph 4.2.2 defines when the phone is supposed to send these location updates . The only other thing would be to try by indirect means to force the phone into a condition where it would send a location update . You might be able to do that by trying to select another network manually . If it s successful and you then manually re-select your home network then you would trigger a location update . If it s rejected and falls back to its home network then I think a location update would be triggered as well . But there would also be small costs to this - battery use while it does a networks scan and time lost while it scans and does manual network selection . My personal experience is that the lost calls don t happen often enough to justify this . Comment : Hi thank you very much for your answer this is what I m afraid of I can t force the phone to perform a location update . At least you now confirmed it . About the workaround hmm my second thought was to put the phone to offline state and bring back to online like airplane mode but I just figured that the phone does nothing towards the core No message at all in this case just most probably not answering for the paging call sms . Sadly the problem is a little bit more crucial because it happens almost all the time when I m in the office Comment : And in case of emergency something happened with my family colleagues tries to reach me etc I not even know that I had a call. . I just got a tip from a friend that maybe I shall try to flash a new baseband firmware to my phone which is compatible with the network . I ll give a try . I thinking about another workaround which might be better than just reselect the network the application initiate a new call maybe I ll call my self : The first call attempt most probably will be dropped because of the unreachability issue but after that the phone will became online again . Comment : BTW do you know why the serviceState.getState gives back always STATE OUT OF SERVICE at the first time when I call it And force the phone to goes offline : and it s not an airplane mode Comment : The tip to update the firmware is a good one . I assume your SIM is on its home network That might make a difference . ---- Have you also tried reporting the missed calls issue to the operator Eventually you should get back to engineering support who might be able to fix it . Comment : I don t know why it returns STATE OUT OF SERVICE at the first call sorry . Might be worth a separate question .", "Question : null .. . Answer : Any method about data compression on aggregator of wireless sensor network Recently I m working on a link scheduling algorithm in Wireless Sensor Network the topology example is shown as figure it s a converge cast communication pattern nodes besides the root upload its data forward to sink . The queue size or cached data size of the aggregators is somewhat large since for the aggregator nodes are not leaves in a tree topology the data collected from its children is similar or have redundancy and we may need repackage data to transfer along the way to the root or sink it s possible we can have data compression or entropy reduction . Now I need to some data compression method on the aggregator to reduce the transfer data size while ensure acceptable communication quality . Terms like data fusion data aggregation of wireless sensor network always lead to topic about routing which is not I expected . Maybe I use improper terms . Could any body give me some hint or advise", "Question : I was looking mcc-mnc http : www.mcc-mnc.com list . during that I found different kind of representation of MNCs such as 01 001 like . I was searching whether they are same or not and found in Wikipedia https : en.wikipedia.org wiki Mobile country code that MNC of 001 is not the same as MNC of 01 . I understand this is a code . but still not able to understand how they can be different if we treat them as numeric number then both are same . here are some of question which I have : .. . .. . What is the significance of forward zeros in MNCs number Why they can not be treated as same MNCs Is it just because we want to make them 3 digit or some other logic If just we want to make them 3 digit can they be treated as same MNCs .. . .. . Any help to understand MNCs will be appreciated .. . Answer : I was searching it for long time and got some information : .. . .. . Mobile Network Code MNC consisting of two or three digits for GSM applications . The MNC identifies the home GSM PLMN of the mobile subscriber . The length of the MNC two or three digits depends on the value of the MCC . A mixture of two and three digit MNC codes within a single MCC area is not recommended and is outside the scope of 3GPP 3GPP TS23.003 specification . that means 3GPP explicitly says that MCC cannot mix MNC lengths . The length of the MNC two or three digits depends on the value of the MCC .. . .. . Refer this document for Change from 2digits to 3 digits https : www.google.co.in url sa t rct j q esrc s source web cd 10 cad rja uact 8 ved 0CFQQFjAJahUKEwiW1dGNkdTIAhWCxI4KHadiAZA url http 3A 2F 2Fwww.atis.org 2Fioc 2FDocs 2F3 2520Digit 2520MNCs 2520041004.DOC usg AFQjCNG5hUA1BwTwQtpIUoyXwznKmlDUTg bvm bv.105454873 d.c2E .", "Question : I have a cellphone HTC desire 510 an android phone that works with band 5 of LTE However when I build my own base station with OpeanAirInterface and send signals at a frequency of 881Mhz downlink the mobile phone cannot detect my signals . I wonder if a phone will scan all the frequencies within the band 5 which is 869 894 for downlink or will it only scan a subset of that band . Besides is there a way to look into the cellphone to find what frequencies it scanned say via a log or the like Comment : What does this have to do with android or programming at all Comment : This is an android phone and is remotely relevant if any one knows how Android works with detecting cellular signals .. . Answer : You could probably get this information from the chipset manufacturer s log files . Logging systems from chipset manufacturers like Qualcomm or Nvidia for example are not publically available you d have to get them from the manufacturer . Usually only customers like phone manufacturers get access . You can t get this information programmatically over the Android APIs which I assume is what you are asking - it is too low-level .", "Question : When you plug in an LTE modem as part of the attach process to the LTE network it sets up a default EPS bearer to carry signalling traffic . This default bearer is an IP connection with a Traffic Flow Template suitable for signalling traffic . The specification also allows that the network can change the TFT of the default EPS bearer so that it can carry data TS 24.301 6.4.1.1 last sentence . So if the network does set up the default EPS bearer to carry data and does not create a dedicated EPS bearer my tests show that Windows won t allow you to browse on the internet until you have set up a connection in the traditional way eg called the Mobile Broadband API Connect function in Win 7 . Here is the question : what does Windows still have to do to allow internet browsing given that an IP connection with suitable quality of service is already open Many thanks in advance for help . .. . Answer : I asked a question on SuperUser on how to interpret the Ping results for this modem and the answer to this question is also contained there : http : superuser.com questions 512849 what-does-this-ping-answer-mean", "Question : I do realise this question sounds off-topic for SO - it s probably more on-topic for Travel.SE but it is also really a debugging question and requires a bit of a hacker mindset to debug so I figured SO is the place to go . Here s the problem : When I make an international call from my phone on H2OWireless a reseller using the AT T GSM network the receiving end of my call gets a wrong country code transmitted as caller ID causing a number of problems . I have a US phone-number with area code 803 . If I make a call to Germany the receiver of the call sees my caller ID as 00803xxxx which does not make sense . My caller ID should be shown as +1803xxx or 001803xxx but for some reason the leading 1 gets lost . That causes the following problem : I can call regular dumb landline phones in Germany but when I try to call my bank my call bounces at their switchboard . I guess they are doing some kind of a reverse-lookup and find that +8 or +83 is not a valid country code and refuse to accept that call . I have temporarily solved the problem by having a friend setup a call forwarding for me so he forwards my call to my bank when I call him . But I would really like to understand what is going wrong here and whether AT T or Deutsche Telekom or any other provider is to blame for this problem . I would appreciate any insight from phone network experts as to how to debug the problem so that I can see who is causing this before I write a mail to either AT T support or the german provider . Comment : Have you tried a with your SIM in a phone from a different manufacturer and b a SIM from a different provider in your phone Would narrow down if the information is coming from the phone or the SIM . If one of these combinations works then as a quick solution I would probably just change whichever one is causing the problem . .. . Answer : The problem is most likely the reseller not mapping the calling number correctly - I would write the letter to them . It will be much easier for them to debug it than for you especially if they are actually obliged to do it correctly by law licence I am not sure what the rules are in the US . If it is a problem with someone else they will normally be delighted to let you know and you can then chase the guilty party instead . The reason this most commonly happens is because the reseller generally jumps off the regular network to their own IP network and they have to translate the call setup info to match the protocol they are using on their own network probably SIP based unless it is quite old . It is not uncommon for CLI data to get mixed up this way .", "Question : The problem is simple . I have an IMEI and I want to retrieve a TAC from it . How can I do it Is there a way of recognizing how many digits should TAC have if I have just an IMEI Is it necessary to know explicitly the year of production of the device to know it Comment : What solution did you use in the end .. . Answer : The first eight digits of the IMEI number is the TAC code . Prior to 2004 the first six digits were the actual device identifier and the next two were a Final Assembly Code FAC representing where the device was manufactured . Since then the FAC portion has been dropped . TAC codes are issued by two authorities CTIA for North America and the GSM Association for everywhere else identifiable by the first two digits . Because the TAC codes are issued sequentially you can test positions three through six to identify the six-digit TAC codes . For example I use code like this : .. . .. . These ranges were determined by my personal inspection of the TAC code tables and are not guaranteed . See this Wikipedia link http : en.wikipedia.org wiki International Mobile Equipment Identity for more info . Comment : Thanks for a piece of code but this is my main concern - how can I recognize the TAC type 6 or 8 digits .", "Question : I was googling for RRC state transitions in UMTS networks and found that whenever UE feels that there is no data left for transmission it starts a timer T323 upon expiration of this timer it sends a SCRI signal to end connection . On reception of SCRI network decides the RRC state of UE . I have some doubts in this procedure . 1 . Does the value of T323 timer is fixed for a network or it changes with adaptability 2 . Does transition from DCH to IDLE or DCH to PCH is possible in this model 3 . In android device is there any way to know the timer T323 timeout value I am new to this field so please correct me if i am wrong anywhere . Comment : I m not sure if this is a programming question . It doesn t look like it - no code . Comment : The T323 SCRI timer - FD R8 is set for a network e.g . 120s . DCH- PCH- IDLE or DCH- FACH- IDLE . Regarding access to T323 I guess it depends on your access to baseband debug logs from device . The timer values can be verified in baseband logs on other devices so it should be possible with e.g . QXDM or similar . .. . Answer : Sorry for my late response on this post.. . .. . .. . Only now I realize there s a UMTS tag in StackOverflow.. . But I think I can help in some way . First of all let me answer your question . Then I ll provide some details about it : .. . .. . 1 . Does the value of T323 timer is fixed for a network or it changes with adaptability .. . .. . This timer is set by network . It has following possible values : 0 5 10 20 30 60 90 120 seconds . I believe it does not change dynamically but network can use different values in different region or cells . 2 . Does transition from DCH to IDLE or DCH to PCH is possible in this model .. . .. . I might be wrong but I believe this is not possible . SCRI is sent by the phone . Then network move device to another state either IDLE CELL PCH or URA PCH . However I believe that SCRI is usually sent when device is in CELL FACH . So phone goes to PCH only after FACH state and not direclly from CELL DCH . 3 . In android device is there any way to know the timer T323 timeout value .. . .. . This timer is sent by network in System Information Block Type 1 message . This value is then read and handle it by Mobile Baseband Processor or Modem or CP - Communication Processor . Usually Fastdormancy feature is handled in Modem side and eventually CP logs can print T323 value . However CP Logs are not that easy to take in End-User phones . This kind of Logs are disabled on End-user software . Of course some company may want to handle FastDormancy feature in Application side and then you would be able to check via log message . However I think this is not the case.. . .. . .. . Considerations about T323 .. . .. . This timer was created to block too many SCRI messages . This timer defines how much time Mobile Phone should wait to send two consecutive SCRI messages . Below is the workflow : - Phone detects that no new packages will be sent to network . - Phone send first SCRI and start T323 timer . - Network move phone to CELL PCH or URA PCH . - Phone send some data and detects that no new data package will be sent soon . - It try to send SCRI again . However if T323 is running this SCRI is blocked . - After T323 expires SCRI is free to be sent to network and whole process start again . As you know after SCRI message is sent network moves phone to a low-power consumption state Cell PCH or URA PCH . By doing this some resources are released . If any new package need to be sent to network phone must return to CELL FACH CELL DCH and the resources must be restored . After send the data packages phone will probably send SCRI again and all resource will be released again . That s why T323 was created . To avoid resources to be released restored very often . That behavior increases signal load in a cell because resources are releases restored thru signalling messages . How Mobile Phone Detect No New Package will be sent .. . .. . This is totally a Mobile Phone Responsibility . So every Mobile Phone brand has its own algorithm or feature to detect that a SCRI can be sent . Of course you can create complicated algorithms to predict when no more data-package will be sent and avoid send unecessary SCRI . However simpler solution has been applied . Usually phone just wait sometime and if no data package was sent it tries to send a SCRI message . I hope I could help you someway . T323 causes some confusion sometimes . But it only tells how much time phone should wait before send a new SCRI - after sending the first one . It is set by network and when set to 0 phone does not wait to send SCRI . It can send whenever it want . However it is a mobile phone responsibility to decide when SCRI must be sent . Fastdormancy aim to improve battery consumption by requesting to release resources as soon as no more packages will be sent . Comment : Wow...Thanks @Guilhema nice explanation", "Question : I am new to telecom domain . Can anybody please help me to understand where to use CORBA and where to use SNMP for network monitoring NMS EMS . How it interacts with OSS systems for monitoring fault and perfomance . .. . Answer : 1 . SNMP is usually used to monitor devices directly from NMS OSS point-to-point . 2 . The CORBA is usually used as so called northbound interface when you need to integrate NMS OSS with vendor specific EMS . There are protocols like TMF814 3GPP that work on top of CORBA .", "Question : BCCH Broadcast Control Channel FCCH Frequency Correction Channel .. . Answer : BCCH .. . .. . Network uses this channel to constantly broadcast messages to all device into that cell coverage . System Information messages are transmitted in this channel . Those messages carry network cell identity as well re-selection criteria neighbor cells information and several other info . It s a downlink only channel . More Info : .. . .. . http : www.rfwireless-world.com Terminology GSM-BCCH-Broadcast-Control-Channel.html .. . .. . FCCH .. . .. . In this channel network sends specific data which is used by the mobile station for synchronization purposes . Based on this change mobile can syncronize its frequency to that used by Base Station . That specific data is a all zeros burst which produces continuous sine wave which has some dependency with RF centre frequency of that cell . Due to this dependency it helps the Mobile to get synchronized with the cell . It s a downlink only channel . It is sent during BCCH Timeslot allows the mobile to synchronize its own frequency to that of the transmitting cell . SCH .. . .. . Synchronization Channel SCH is also used for synchronization purposes . However it is more related to TDMA frame structure than the frequency . This channel carries the Synchronization Channel Information . It is also send during BCCH TimeSlot . Registration Procedure .. . .. . All of those channels are Broadcast Channels .. . .. . When device is trying to acquire service from a network the first step is find the FCCH All-Zero burst . After that it can assume the position of SCH and find it as well . After finding FCCH and SCH it can now find the BCCH and receive all Broadcasted information . Comment : Thank you but is FCCH related to the Broadcast control channel FCCH adjust the mobile crystal to to the the base station but I know that this happens in the SCH the synchronization channel and it s a down link channel . Comment : Before capture the SCH devices must find the FCCH . After device detect a FCCH Burst 148 Zeros it then try to find the SCH and later the BCCH Comment : I updated the answer . Comment : thank you Guilherme . Comment : @GuilhermeP Very nice answer . It might be worth clarifying that the term Mobile Station means the device connecting to the network i.e . a phone or computer and dongle rather than part of the network itself . This often causes confusion .", "Question : null .. . Answer : I want to know what s the difference between CDR and XDR.When I read articles i found CDR Call Detail Record and xDR x Data Record but i don t understand the difference between them.Can someone tell me what s the difference between them and thank you an advance Comment : Have you Googled Difference between CDR and xDR The first result is what looks like a decent answer . Comment : Yes but I just found this : groups.google.com forum topic comp.object.corba po88fJULWkI https : groups.google.com forum topic comp.object.corba po88fJULWkI Comment : But that looks like a good answer no What else do you need to know Comment : I want to know technically the difference between them Comment : The relation between them", "Question : I m working on SS7 project and reached a point where I need to create my tcap dissector parser So I was wondering to using wireshark dev files inside my source . Is that possible if yes how can I do it is there any tutorial available .. . Answer : http : www.tcpdump.org has all needed information . You ll need to use libpcap http : www.tcpdump.org latest-release as described here : http : www.tcpdump.org pcap3 man.html .. . .. . I guess pcap open offline is a good start you can then use the related functions to get the structured-data contained in the dump file . Using the same library you could also capturing directly from your application . On a related note wireshark and tshark allow to export a pcap file to xml you could also use this format instead of the binary pcap if you d like to .", "Question : What will be the Shannon equation for a noiseless signal Means if noise will be 0 then what will be the value of signal to noise ratio S N .. . Answer : SNR would be infinity and you would have theoretical infinite transmission rate . But you always have noise you know ." ] }
[ "yes-answer-long", "yes-answer-short" ]
ieee
UNK_RELATION
fiware-poi@fiware@109
fiware-poi -- fiware-poi refers to the points of interest generic enabler poi ge developed as a part of the @placeholder https : www.fiware.org platform .
{ "confidence": [ 86.21624755859375, 82.06388854980469, 79.6260757446289, 78.06765747070312, 77.81927490234375, 76.85025024414062, 76.78630065917969, 76.52485656738281, 74.52877044677734, 70.0400619506836, 70.0400619506836, 70.0400619506836, 69.11659240722656, 61.78759765625, 60.95291519165039, 60.95291519165039, 60.31550216674805, 59.635658264160156, 59.15708923339844, 58.876712799072266, 58.547733306884766, 57.06159210205078, 57.00548553466797, 56.816978454589844, 55.39139175415039, 55.39139175415039, 52.448490142822266, 51.562252044677734, 51.40919876098633, 51.40919876098633, 51.25878143310547, 51.1085319519043, 50.89258575439453, 49.09709930419922, 47.478477478027344, 47.478477478027344, 47.106414794921875, 47.106414794921875, 46.121551513671875, 45.16557312011719, 43.66606903076172, 43.15898895263672, 43.15898895263672, 42.863624572753906, 42.00646209716797, 42.00646209716797, 42.00646209716797, 42.00646209716797, 42.00646209716797, 40.754798889160156, 40.30393981933594, 40.020263671875, 40.020263671875, 38.910518646240234, 38.88518142700195, 38.88518142700195, 38.45191955566406, 38.05903625488281, 38.05903625488281, 37.270668029785156, 37.15480041503906, 37.15480041503906, 37.15480041503906, 37.15480041503906, 36.956321716308594, 36.71881103515625, 36.71881103515625, 36.71881103515625, 36.71881103515625, 35.38923645019531, 35.38923645019531, 34.278564453125, 34.278564453125, 34.278564453125, 33.94537353515625, 33.94537353515625, 32.19618225097656, 31.54540252685547, 30.622879028320312, 29.798206329345703, 29.153858184814453, 28.15372657775879, 27.103229522705078, 26.826034545898438, 25.509349822998047, 24.59976577758789, 23.4244384765625, 22.253257751464844, 21.76858139038086, 17.82115364074707, 17.772357940673828, 17.772357940673828, 17.772357940673828, 17.772357940673828, 17.772357940673828, 17.772357940673828, 17.772357940673828, 17.772357940673828, 17.772357940673828, 17.772357940673828 ], "content": [ "This question does not seem to be about FIWARE POI Data Provider Generic Enabler .", "you might spawn a FIWARE POI instance at FIWARE Lab https : account.lab.fiware.org .", "Currently there seems to be some problems with the POI GE image in the Fiware Cloud .", "see : FIWARE POI GitHub page http : chiru.github.io FIWARE-POIDataProvider .", "fiware-poi tag seems extraneous .", "For the FIWARE POI DP GE a base station may be directly associated to a POI and the corresponding UUID .", "A public FIWARE POI server is at http : poi.lab.fiware.org poi dp .", "Hosting a POI Server at Fiware Cloud .. . .. . You may use Fiware Cloud Portal https : cloud.lab.fiware.org to host experimental POI server .", "How should it be connected to a generic Enabler for instance a a POI Data Provider an Iot Broker or a POI GE", "FIWARE POI Data Provider does not yet provide user access-control .", "Does any main public FIWARE POI server exist", "Outdated answer : .. . .. . As far as I know there is no supported public FIWARE POI server .", "Otherwise you can use the Installation guide at FIWARE POI GitHub page http : chiru.github.io FIWARE-POIDataProvider .", "Currently a working choice is to start an Ubuntu 14.04 image and install the POI GE according to http : forge.fiware.org plugins mediawiki wiki fiware index.php POI Data Provider - Installation and Administration Guide .", "Supposedly some support software updates in FIWARE Cloud or elsewhere have made the POI 3.3.3 unoperative .", "Can I use in my application some public FIWARE POI server without creating my own one", "This web service should use some Generic Enablers of FIWARE http : catalogue.fiware.org enablers for instance GIS Data Provider and POI Data Provider .", "Anyway you can install the POI GE from GitHub on the Ubuntu 14.04 image http : forge.fiware.org plugins mediawiki wiki fiware index.php POI Data Provider - Installation and Administration Guide", "Easiest way is to spawn a FIWARE POI instance at FIWARE Lab https : account.lab.fiware.org if you happen to be in its target group . .. . .. . For documentation links including the Installation Guide etc .", "To get a working POI system launch a Ubuntu 14.04 instance and install the POI DP 4.4 server manually as explained in http : forge.fiware.org plugins mediawiki wiki fiware index.php POI Data Provider - Installation and Administration Guide .", "for the one POI .", "Currently this does not seem to work : Follow instructions on http : catalogue.fiware.org enablers poi-data-provider creating-instances Launch a Ubuntu 14.04 instance and install the POI Data provider as explained in the next section : .. . .. . Hosting a POI Server at Other Linux Style Environment .. . .. . For Ubuntu Server 14.04 . to install the POI server follow the instructions in http : catalogue.fiware.org enablers poi-data-provider documentation - POI Data Provider - Installation and Administration Guide or directly http : forge.fiware.org plugins mediawiki wiki fiware index.php POI Data Provider - Installation and Administration Guide .. . .. . Integrating Your Service to the POI Server .. . .. . Overview of the POI system can be found at http : forge.fiware.org plugins mediawiki wiki fiware index.php FIWARE.OpenSpecification.MiWi.POIDataProvider .. . .. . To integrate your service to the POI server you need information found in the API documentation .", "I m wondering how to use ngsi source operator and ngsi entity to POI to draw the circle on the map viewer on Fiware", "So far I ve found these GE to be of use for my project : .. . .. . POI Data Provider : http : catalogue.fiware.org enablers poi-data-provider .. . to store the points of interest .. . 2D-UI : http : catalogue.fiware.org enablers 2d-ui .. . to develop the front-end .. . .. . I haven t been able to understand much about the fiware cloud environment the fiware lab and I don t know if it might be of use for me if it is ready for production etc so I m developing everything locally at the moment and will eventually deploy to my server .", "You can install your POI server to the hosting service that suits best to your business that may be Fiware Cloud or something else and upload you data there .", "I m trying to isntall POI Data provider http : forge.fiware.org plugins mediawiki wiki fiware index.php POI Data Provider - Installation and Administration Guide on my ubuntu 14 .", "The ready POI image is called MiWi-POI Server you can launch it directly via the Launch button on the Images folder .", "Google+ identity control https : developers.google.com identity sign-in web and KeyRock authentication http : catalogue.fiware.org enablers identity-management-keyrock are now connected to the FIWARE POI Data Provider .", "In catalog the POI Data Provider GE is in Advanced Web-based User Interface category but that category isn t on form .", "You might try using Fiware s Idm GE as a front end to POI DP .", "Integrating to a POI Server - Some additional details .. . .. . Currently there are not many public and maintained POI servers so you may need to install your own POI server for your production system .", "How to integrate such web service into the FIWARE cloud platform", "And also is it possible to upload image with poi in fw media", "I ve setup an POI Instance in the Waterford Region .", "This was included later in the FIWARE selection .", "If you are in FIWARE FICORE etc .", "for POI such a demo service can be found here : http : poi.webhop.org .", "Delete the vendor subdirectory from your POI server 2 .", "If you have your own server the FIWARE catalog contains links to installations instructions for each GE .", "Depending of the server it might be this error github.com Chiru FIWARE-POIDataProvider issues 2 https : github.com Chiru FIWARE-POIDataProvider issues 2 .", "Sorry not enough knowledge about fiware-orion .", "These base stations must know their own locations at least for POI applications .", "A beacon may has its own POI record having the UUID of the beacon .", "Some superficial notes about interface : https : github.com Chiru FIWARE-POIDataProvider blob access-control docs authentication plan.txt .. . For exemplary client see : poi mapper client https : github.com Chiru FIWARE-POIDataProvider tree master poi mapper client directory .", "Security .. . .. . I am planning to use the POI Data Provider and I am not sure which item to check .", "I suggest using some media repository in combination of a standard POI-DP by a specialized client software .", "Do you have any information that can be used to find the version of the POI-DP", "There is a POI editor http : poi.lab.fiware.org pois edit poi.html for viewing detailed data but the public cannot save the modifications .", "Is a public demo read-only POI server you ve talked about available now", "Corrected in https : github.com Chiru FIWARE-POIDataProvider tree iss6 .", "Regarding your first question inside horizon you can define HTTP methods users can invoke so for that group of users that can only edit POI-s you could place only GET and PUT method and for those that should create POI-s also you could add POST method .", "Edit : The GitHub issue Access Control https : github.com Chiru FIWARE-POIDataProvider issues 9 tracks tackling this .", "These apparent problems have been corrected in the new release that has been pushed to GitHub https : github.com Chiru FIWARE-POIDataProvider.git .", "Hi I ve been trying to try out the Fiware service .", "POI Data Provider belongs-to the Advanced Web-based User Interface which was earlier called MiWi Advanced Middleware and Web-based UI .", "Status 2016-06-09 : Populating with European POIs .. . .. . To store your own POIs it is recommended to set-up an own POI server .", "I am trying to set up a blueprint instance in Fiware lab of the POI data provider and I get an Error .. . .. . Error installing product poi dp-3.3.3 Error invokg SDC to Install Productpoi dp-3.3.3 3.3.3 javax.net.ssl.SSLHandshakeException : Remote host closed connection during handshake", "The base stations can communicate with data servers POI IoT .. . about nearby beacons .", "When a base station detects a beacon it may update the coordinates of the beacon POI record to correspond the location of the base station itself .", "Location of fw media json is : github.com Chiru FIWARE-POIDataProvider blob master php https : github.com Chiru FIWARE-POIDataProvider blob master php example components fw media.json You should also modify timestamp of last update attribute because of the error : fw media.last update.timestamp string value found but an integer is required .", "The under-development Access control version can be downloaded from access-control branch https : github.com Chiru FIWARE-POIDataProvider archive access control.zip .", "and poi mapper client poi demo 6.js https : github.com Chiru FIWARE-POIDataProvider blob access-control poi mapper client poi demo 6.js play together providing login logout service for the user .", "Edit the root user data especially the gmail address to php auth conf.json https : github.com Chiru FIWARE-POIDataProvider blob access-control php auth conf.json .", "Correction is tracked in https : github.com Chiru FIWARE-POIDataProvider issues 7 I feel uploading pictures a kind of Specific Enabler stuff .", "Create Blueprint Templates functionality : In the creation of a new Tier for my specific template I can t view and I can t select the POI data provider GE poi dp 3.3.3 in the right panel Software in Catalogue maybe I do something wrong", "The API documentation can be found at http : forge.fiware.org plugins mediawiki wiki fiware index.php POI Data Provider Open API Specification", "thanks Timo Mukari so for a commercial scenario I cannot use fiware lab", "So lately I ve been reading a lot about Fiware and I want to do some tests .", "See the updated guide http : forge.fiware.org plugins mediawiki wiki fiware index.php POI Data Provider - Installation and Administration Guide for installation .", "But whe I try to verify mongo db : .. . .. . I only get poi db.collections and not : The db.collections command should list five POI data component collections created by the installation : fw contact fw marker fw media fw relationships and fw time .", "I created json for adding new poi with fw media data included based on json from example components fw media.json : .. . .. . But im getting error : .. . .. . Can you give me example of working fw media json", "If you cannot find either in the FRACTALS form please contact them directly to add it there or use their discussion forum here : http : www.f6s.com fiware-fractals discuss", "right now if I go on the cloud portal tab fiware lab I see blank page I can not test anything :", "Please review this question too stackoverflow.com questions 36064565 http : stackoverflow.com questions 36064565 fiware-orion-subscription-with-georel-expression-in-condition", "poi mapper client index.html https : github.com Chiru FIWARE-POIDataProvider blob access-control poi mapper client index.html At least the content of the tag meta name google-signin-client id content your client id must be updated .", "The user management service is php user management.html https : github.com Chiru FIWARE-POIDataProvider blob access-control php user management.html At least the content of the tag meta name google-signin-client id content your client id must be updated . .", "Users of type B will be able to edit those points of interest on this website .", "Hopefully it will work better after that Another option is to acquire your own virtual-server from some commercial web service provider and install all needed software there manually using the installation instructions found in the FIWARE catalog .", "But the idea is to use this GE for authenticating users of multiple applications .", "Remember to also allocate and connect the keys and open relevant ports as described here : http : catalogue.fiware.org enablers poi-data-provider creating-instances There has been some resource floating IPs limitations in the FILAB cloud servers so this may be also the reason if you have followed all the above .", "About Fiware s Idm GE it is a bit modified openstacks identity manager .", "I would like to create a website that will allow the creation of 2 types of users : .. . .. . Users of type A will be able to add new points of interest on this website .", "What is the main geographical area of your interest", "Another answer below refers to an error in sanity check .", "When you register application in horizon that application is assigned client id and secret id which you pass from your application along with url of horizon and callback url via REST calls.Then user will be redirected to fiware account manager where he can log in.After successful login user is again redirected to application and in that moment you should save token in session .", "The main geographical areas of our interest are Spain and France for a start and the whole world in prospect .", "I m the beginner in this topic and it s is not clear how my tool should connect all the required Generic Enablers .", "When I try to test my enabler : http : localhost poi dp radial search.php lat 1 lon 1 category test poi http : localhost poi dp radial search.php lat 1 lon 1 category test poi I obtain a empty web page and this error in the javascript console : .. . .. . I obtain this when I list my process : ps ax grep postgres mongo apache2 .. . .. . Whe I verify the postgres sql table .. . .. . I read 4 as expected .", "Also take a look at this video : https : www.youtube.com watch v uHLznMsnmTs", "Supposedly we talk about this device : https : en.wikipedia.org wiki IBeacon", "I m stuck with answering on one specific question in FRACTALS form : What technical infrastructure does your proposal use or will it use", "I have these checkboxes offered : .. . .. . 1 .", "Applications Services Ecosystems and Delivery Framework .. . 2 .", "Cloud Hosting .. . 3 .", "Data Context Management .. . 4 .", "Interface to Networks and Devices .. . 5 .", "Internet of Things Services Enabement .. . 6 .", "Please help .", "Let s say there is a web service that makes some calculations and returns some data .", "Is there any guidance about it" ] }
{ "confidence": [ 105.86186981201172, 105.439453125, 104.8480224609375, 103.76119995117188, 102.25381469726562, 101.40984344482422, 97.93925476074219, 96.96613311767578, 95.87320709228516, 95.82554626464844, 90.88347625732422, 87.9096908569336, 80.46760559082031, 78.57495880126953, 74.16815185546875, 66.26344299316406, 64.94103240966797, 53.282379150390625 ], "content": [ "Question : I want to draw a circle on the map viewer and I searched the programmer developer guide carefully . My Json file was created like this . I m wondering how to use ngsi source operator and ngsi entity to POI to draw the circle on the map viewer on Fiware It would be great if someone can provide me some detail about the steps . Comment : fiware-poi tag seems extraneous . This question does not seem to be about FIWARE POI Data Provider Generic Enabler . .. . Answer : Currently it s not possible please open a ticket in the github s issue tracker https : github.com Wirecloud map-viewer-widget issues of the widget : .", "Question : Let s say there is a web service that makes some calculations and returns some data . This web service should use some Generic Enablers of FIWARE http : catalogue.fiware.org enablers for instance GIS Data Provider and POI Data Provider . How to integrate such web service into the FIWARE cloud platform Is there any guidance about it I m the beginner in this topic and it s is not clear how my tool should connect all the required Generic Enablers . Once connected should I upload all this staff to some predefined server or can I use any virtual-server .. . Answer : Integrating to a POI Server - Some additional details .. . .. . Currently there are not many public and maintained POI servers so you may need to install your own POI server for your production system . You can install your POI server to the hosting service that suits best to your business that may be Fiware Cloud or something else and upload you data there . Hosting a POI Server at Fiware Cloud .. . .. . You may use Fiware Cloud Portal https : cloud.lab.fiware.org to host experimental POI server . Press Sign up link there if you need a new account . Currently this does not seem to work : Follow instructions on http : catalogue.fiware.org enablers poi-data-provider creating-instances Launch a Ubuntu 14.04 instance and install the POI Data provider as explained in the next section : .. . .. . Hosting a POI Server at Other Linux Style Environment .. . .. . For Ubuntu Server 14.04 . to install the POI server follow the instructions in http : catalogue.fiware.org enablers poi-data-provider documentation - POI Data Provider - Installation and Administration Guide or directly http : forge.fiware.org plugins mediawiki wiki fiware index.php POI Data Provider - Installation and Administration Guide .. . .. . Integrating Your Service to the POI Server .. . .. . Overview of the POI system can be found at http : forge.fiware.org plugins mediawiki wiki fiware index.php FIWARE.OpenSpecification.MiWi.POIDataProvider .. . .. . To integrate your service to the POI server you need information found in the API documentation . The API documentation can be found at http : forge.fiware.org plugins mediawiki wiki fiware index.php POI Data Provider Open API Specification", "Question : So lately I ve been reading a lot about Fiware and I want to do some tests . I would like to create a website that will allow the creation of 2 types of users : .. . .. . Users of type A will be able to add new points of interest on this website . Users of type B will be able to edit those points of interest on this website . Then when a user logs in the website will check its type and will allow the user to do one thing or another . Which global enablers can I use So far I ve found these GE to be of use for my project : .. . .. . POI Data Provider : http : catalogue.fiware.org enablers poi-data-provider .. . to store the points of interest .. . 2D-UI : http : catalogue.fiware.org enablers 2d-ui .. . to develop the front-end .. . .. . I haven t been able to understand much about the fiware cloud environment the fiware lab and I don t know if it might be of use for me if it is ready for production etc so I m developing everything locally at the moment and will eventually deploy to my server . May I use Sagitta http : catalogue.fiware.org enablers software-deployment-configuration-sagitta for the deployment process I ve also read about other GEs such as KeyRock http : catalogue.fiware.org enablers identity-management-keyrock that deals with authentication can I use this to handle my users and their type and make a login form using this .. . Answer : Edit : The GitHub issue Access Control https : github.com Chiru FIWARE-POIDataProvider issues 9 tracks tackling this . Google+ identity control https : developers.google.com identity sign-in web and KeyRock authentication http : catalogue.fiware.org enablers identity-management-keyrock are now connected to the FIWARE POI Data Provider . Use the current access-control branch in the GitHub . The under-development Access control version can be downloaded from access-control branch https : github.com Chiru FIWARE-POIDataProvider archive access control.zip . Some superficial notes about interface : https : github.com Chiru FIWARE-POIDataProvider blob access-control docs authentication plan.txt .. . For exemplary client see : poi mapper client https : github.com Chiru FIWARE-POIDataProvider tree master poi mapper client directory . poi mapper client index.html https : github.com Chiru FIWARE-POIDataProvider blob access-control poi mapper client index.html At least the content of the tag meta name google-signin-client id content your client id must be updated . and poi mapper client poi demo 6.js https : github.com Chiru FIWARE-POIDataProvider blob access-control poi mapper client poi demo 6.js play together providing login logout service for the user . The user management service is php user management.html https : github.com Chiru FIWARE-POIDataProvider blob access-control php user management.html At least the content of the tag meta name google-signin-client id content your client id must be updated . . Edit the root user data especially the gmail address to php auth conf.json https : github.com Chiru FIWARE-POIDataProvider blob access-control php auth conf.json . FIWARE POI Data Provider does not yet provide user access-control . You might try using Fiware s Idm GE as a front end to POI DP . Thank you for a genuine user need input . : -", "Question : I just started reading about FI-WARE so this might be a very noob question . A beacon is basically a device that just uses bluetooth for pushing info about its position . How should it be connected to a generic Enabler for instance a a POI Data Provider an Iot Broker or a POI GE Shall it first send its coordinates to a mobile device via bluetooth and then this device is supposed to send this value to the Iot Broker If so how .. . Answer : You need base stations to listen to possible beacons coming and going nearby . A base station can very roughly approximate the distance of a nearby beacon . These base stations must know their own locations at least for POI applications . The base stations can communicate with data servers POI IoT .. . about nearby beacons . The contents of communication depends on the purpose of the system . For the FIWARE POI DP GE a base station may be directly associated to a POI and the corresponding UUID . A beacon may has its own POI record having the UUID of the beacon . When a base station detects a beacon it may update the coordinates of the beacon POI record to correspond the location of the base station itself . Supposedly we talk about this device : https : en.wikipedia.org wiki IBeacon", "Question : Does any main public FIWARE POI server exist Can I use in my application some public FIWARE POI server without creating my own one .. . Answer : A public FIWARE POI server is at http : poi.lab.fiware.org poi dp . The data is public but it is read-only for the public to keep the things simple . You can use a demo browser http : poi.lab.fiware.org pois to view the POIs on the map . There is a POI editor http : poi.lab.fiware.org pois edit poi.html for viewing detailed data but the public cannot save the modifications . Status 2016-06-09 : Populating with European POIs .. . .. . To store your own POIs it is recommended to set-up an own POI server . If you are in FIWARE FICORE etc . you might spawn a FIWARE POI instance at FIWARE Lab https : account.lab.fiware.org . Otherwise you can use the Installation guide at FIWARE POI GitHub page http : chiru.github.io FIWARE-POIDataProvider . Installation to a Ubuntu 14.04 takes about half an hour by meticuously following the detailed instructions . Outdated answer : .. . .. . As far as I know there is no supported public FIWARE POI server . There are good instructions to set up one by yourself - for private or public use . Easiest way is to spawn a FIWARE POI instance at FIWARE Lab https : account.lab.fiware.org if you happen to be in its target group . .. . .. . For documentation links including the Installation Guide etc . see : FIWARE POI GitHub page http : chiru.github.io FIWARE-POIDataProvider . .. . Anyway in next few weeks we intend to set up a public demo read-only server for demonstration and experimenting . Comment : Thank you for the answer . Please review this question too stackoverflow.com questions 36064565 http : stackoverflow.com questions 36064565 fiware-orion-subscription-with-georel-expression-in-condition Comment : Sorry not enough knowledge about fiware-orion . Comment : Hello again . Is a public demo read-only POI server you ve talked about available now Is there any progress on the question Comment : Yes . We got the server up . You ll find it at poi.lab.fiware.org poi dp http : poi.lab.fiware.org poi dp . We are loading something from OpenStreetMap . What is the main geographical area of your interest The demo browser is at poi.lab.fiware.org pois http : poi.lab.fiware.org pois . Comment : Thank you . The main geographical areas of our interest are Spain and France for a start and the whole world in prospect .", "Question : So lately I ve been reading a lot about Fiware and I want to do some tests . I would like to create a website that will allow the creation of 2 types of users : .. . .. . Users of type A will be able to add new points of interest on this website . Users of type B will be able to edit those points of interest on this website . Then when a user logs in the website will check its type and will allow the user to do one thing or another . Which global enablers can I use So far I ve found these GE to be of use for my project : .. . .. . POI Data Provider : http : catalogue.fiware.org enablers poi-data-provider .. . to store the points of interest .. . 2D-UI : http : catalogue.fiware.org enablers 2d-ui .. . to develop the front-end .. . .. . I haven t been able to understand much about the fiware cloud environment the fiware lab and I don t know if it might be of use for me if it is ready for production etc so I m developing everything locally at the moment and will eventually deploy to my server . May I use Sagitta http : catalogue.fiware.org enablers software-deployment-configuration-sagitta for the deployment process I ve also read about other GEs such as KeyRock http : catalogue.fiware.org enablers identity-management-keyrock that deals with authentication can I use this to handle my users and their type and make a login form using this .. . Answer : About Fiware s Idm GE it is a bit modified openstacks identity manager . http : docs.openstack.org developer keystone It consists of keyrock and horizon which is front end application-dashboard and uses OAuth 2.0 for authorization so it would be good to look a bit at it s API . Yes you can implement login via form just send data in json format . Here is an example of that data using curl .. . .. . and get your authentication token . But the idea is to use this GE for authenticating users of multiple applications . When you register application in horizon that application is assigned client id and secret id which you pass from your application along with url of horizon and callback url via REST calls.Then user will be redirected to fiware account manager where he can log in.After successful login user is again redirected to application and in that moment you should save token in session . Regarding your first question inside horizon you can define HTTP methods users can invoke so for that group of users that can only edit POI-s you could place only GET and PUT method and for those that should create POI-s also you could add POST method . Also take a look at this video : https : www.youtube.com watch v uHLznMsnmTs", "Question : Hi I ve been trying to try out the Fiware service . I ve setup an POI Instance in the Waterford Region . I ve followed the instructions and assigned a floating IP . On the Instance page I have no IP address and an Status Error . Under the security page - Floating IP tab there is an IP address assigned . The Instance is blank . When I try and associate an IP to the instance i get a 400 error : .. . .. . undefined . Cause : 400 Error badRequest : message : No nw info cache associated with instance code : 400 .. . .. . Has anyone had the same problem Comment : I have problem with adding IP too . .. . Answer : Currently there seems to be some problems with the POI GE image in the Fiware Cloud . Currently a working choice is to start an Ubuntu 14.04 image and install the POI GE according to http : forge.fiware.org plugins mediawiki wiki fiware index.php POI Data Provider - Installation and Administration Guide .", "Question : Let s say there is a web service that makes some calculations and returns some data . This web service should use some Generic Enablers of FIWARE http : catalogue.fiware.org enablers for instance GIS Data Provider and POI Data Provider . How to integrate such web service into the FIWARE cloud platform Is there any guidance about it I m the beginner in this topic and it s is not clear how my tool should connect all the required Generic Enablers . Once connected should I upload all this staff to some predefined server or can I use any virtual-server .. . Answer : If you have your own server the FIWARE catalog contains links to installations instructions for each GE . In the FILAB cloud portal you can also you use the ready images to launch GE s directly without manual installation . For some of the GE s there is also a ready running instance available in the FILAB Cloud servers for initial trialing e.g . for POI such a demo service can be found here : http : poi.webhop.org .", "Question : I m trying to isntall POI Data provider http : forge.fiware.org plugins mediawiki wiki fiware index.php POI Data Provider - Installation and Administration Guide on my ubuntu 14 . The documentation is a little bit old but I have installed everything without problems . When I try to test my enabler : http : localhost poi dp radial search.php lat 1 lon 1 category test poi http : localhost poi dp radial search.php lat 1 lon 1 category test poi I obtain a empty web page and this error in the javascript console : .. . .. . I obtain this when I list my process : ps ax grep postgres mongo apache2 .. . .. . Whe I verify the postgres sql table .. . .. . I read 4 as expected . But whe I try to verify mongo db : .. . .. . I only get poi db.collections and not : The db.collections command should list five POI data component collections created by the installation : fw contact fw marker fw media fw relationships and fw time . what is the problem any idea thanks . .. . Answer : These apparent problems have been corrected in the new release that has been pushed to GitHub https : github.com Chiru FIWARE-POIDataProvider.git . See the updated guide http : forge.fiware.org plugins mediawiki wiki fiware index.php POI Data Provider - Installation and Administration Guide for installation . Moreover the errors e.g . in sanity-check procedure have been corrected . Another answer below refers to an error in sanity check .", "Question : Create Blueprint Templates functionality : In the creation of a new Tier for my specific template I can t view and I can t select the POI data provider GE poi dp 3.3.3 in the right panel Software in Catalogue maybe I do something wrong Instead if I click the Open catalog button of Blueprint Templates I can see an existing template called poidataprovider with a Tier called poi dp 333 . thanks . Antonio . .. . Answer : Supposedly some support software updates in FIWARE Cloud or elsewhere have made the POI 3.3.3 unoperative . To get a working POI system launch a Ubuntu 14.04 instance and install the POI DP 4.4 server manually as explained in http : forge.fiware.org plugins mediawiki wiki fiware index.php POI Data Provider - Installation and Administration Guide .", "Question : I am trying to set up a blueprint instance in Fiware lab of the POI data provider and I get an Error .. . .. . Error installing product poi dp-3.3.3 Error invokg SDC to Install Productpoi dp-3.3.3 3.3.3 javax.net.ssl.SSLHandshakeException : Remote host closed connection during handshake .. . Answer : Corrected in https : github.com Chiru FIWARE-POIDataProvider tree iss6 . Old blueprint does not seem to work . Release 4.4 is under release testing . It s blueprint will be available soon . Anyway you can install the POI GE from GitHub on the Ubuntu 14.04 image http : forge.fiware.org plugins mediawiki wiki fiware index.php POI Data Provider - Installation and Administration Guide Comment : Thank you I ll check it . Comment : Release 4.4 is published .", "Question : I m stuck with answering on one specific question in FRACTALS form : What technical infrastructure does your proposal use or will it use I have these checkboxes offered : .. . .. . 1 . Applications Services Ecosystems and Delivery Framework .. . 2 . Cloud Hosting .. . 3 . Data Context Management .. . 4 . Interface to Networks and Devices .. . 5 . Internet of Things Services Enabement .. . 6 . Security .. . .. . I am planning to use the POI Data Provider and I am not sure which item to check . In catalog the POI Data Provider GE is in Advanced Web-based User Interface category but that category isn t on form . Please help . .. . Answer : POI Data Provider belongs-to the Advanced Web-based User Interface which was earlier called MiWi Advanced Middleware and Web-based UI . This was included later in the FIWARE selection . If you cannot find either in the FRACTALS form please contact them directly to add it there or use their discussion forum here : http : www.f6s.com fiware-fractals discuss", "Question : I created json for adding new poi with fw media data included based on json from example components fw media.json : .. . .. . But im getting error : .. . .. . Can you give me example of working fw media json And also is it possible to upload image with poi in fw media Not just url to image but whole image .. . Answer : Corrected in master branch in GitHub . .. . .. . Thank you for your report . It seems that an old example somewhere has the fw image.source field that is not implemented . Just edit the source structure out of the data and it should be Ok . Of course there is no sense to have one source description common for all images etc . for the one POI . A source field might be usable in per-item basis . So I ll introduce it to the next release . Please could you tell me where that erroneous Sunset at sea is so I can go correct it . Correction is tracked in https : github.com Chiru FIWARE-POIDataProvider issues 7 I feel uploading pictures a kind of Specific Enabler stuff . So it left to the community to implement . I suggest using some media repository in combination of a standard POI-DP by a specialized client software . Comment : Thanks for quick answer . Location of fw media json is : github.com Chiru FIWARE-POIDataProvider blob master php https : github.com Chiru FIWARE-POIDataProvider blob master php example components fw media.json You should also modify timestamp of last update attribute because of the error : fw media.last update.timestamp string value found but an integer is required . I removed source attribute from json as you said but now it is returning : 500 INTERNAL SERVER ERROR Response does not contain any data . Comment : Depending of the server it might be this error github.com Chiru FIWARE-POIDataProvider issues 2 https : github.com Chiru FIWARE-POIDataProvider issues 2 . Correcting the current installation : 1 . Delete the vendor subdirectory from your POI server 2 . Install the version 1.4.3 of the justinrainbow json-schema wget getcomposer.org composer.phar http : getcomposer.org composer.phar php composer.phar require justinrainbow json-schema : 1.4.3 sudo cp -r vendor var www poi dp Anyway arrange that new vendor subdirectory to the place where you deleted the previous one . Comment : I did it but it is still the same error.I looked in the error-log and i got these errors : PHP Notice : Undefined variable : source name in var www poi dp add poi.php on line 107 PHP Notice : Undefined variable : source website in var www poi dp add poi.php PHP Notice : Undefined variable : source license in var www poi dp add poi.php PHP Notice : Undefined variable : source id in var www poi dp add poi.php PHP Fatal error : Uncaught exception MongoException with message zero-length keys are not allowed did you use with double quotes in var www poi dp add poi.php : 143 Comment : Thank you for specific report . 1 . That zero-length keys are not allowed is supposedly caused by texts of default language that initially was miserably defined having an empty string as the language code . We try to sort this out . A valid workaround is to use some language code e.g . en and then define it to be the default : def : en . 2 . Those undefineds seem to be genuine errors . Do you have any information that can be used to find the version of the POI-DP Comment : I downloaded it on October 29 .", "Question : I m trying to isntall POI Data provider http : forge.fiware.org plugins mediawiki wiki fiware index.php POI Data Provider - Installation and Administration Guide on my ubuntu 14 . The documentation is a little bit old but I have installed everything without problems . When I try to test my enabler : http : localhost poi dp radial search.php lat 1 lon 1 category test poi http : localhost poi dp radial search.php lat 1 lon 1 category test poi I obtain a empty web page and this error in the javascript console : .. . .. . I obtain this when I list my process : ps ax grep postgres mongo apache2 .. . .. . Whe I verify the postgres sql table .. . .. . I read 4 as expected . But whe I try to verify mongo db : .. . .. . I only get poi db.collections and not : The db.collections command should list five POI data component collections created by the installation : fw contact fw marker fw media fw relationships and fw time . what is the problem any idea thanks . .. . Answer : Regarding that db.collections returns nothing try command :", "Question : I just started reading about FI-WARE so this might be a very noob question . A beacon is basically a device that just uses bluetooth for pushing info about its position . How should it be connected to a generic Enabler for instance a a POI Data Provider an Iot Broker or a POI GE Shall it first send its coordinates to a mobile device via bluetooth and then this device is supposed to send this value to the Iot Broker If so how .. . Answer : A bluetooth beacon is much simpler than that . It is merely a device that transmits a unique identifier constantly . Because the identifier is unique you can tie it to a specific location using external databases or information sources embedded in a mobile app . Integrating with external systems like you describe is a process completely outside the beacon s responsibility . You must go through a process to manually associate the beacon s unique identifier with such systems when it is deployed .", "Question : Hi I ve been trying to try out the Fiware service . I ve setup an POI Instance in the Waterford Region . I ve followed the instructions and assigned a floating IP . On the Instance page I have no IP address and an Status Error . Under the security page - Floating IP tab there is an IP address assigned . The Instance is blank . When I try and associate an IP to the instance i get a 400 error : .. . .. . undefined . Cause : 400 Error badRequest : message : No nw info cache associated with instance code : 400 .. . .. . Has anyone had the same problem Comment : I have problem with adding IP too . .. . Answer : Have you used the Allocate IP to project menu under the Security Tab first If you have a floating IP available it should be connected to the instance you ve created using the Associate IP -Action under the Security Floating IP s . Remember to also allocate and connect the keys and open relevant ports as described here : http : catalogue.fiware.org enablers poi-data-provider creating-instances There has been some resource floating IPs limitations in the FILAB cloud servers so this may be also the reason if you have followed all the above .", "Question : Create Blueprint Templates functionality : In the creation of a new Tier for my specific template I can t view and I can t select the POI data provider GE poi dp 3.3.3 in the right panel Software in Catalogue maybe I do something wrong Instead if I click the Open catalog button of Blueprint Templates I can see an existing template called poidataprovider with a Tier called poi dp 333 . thanks . Antonio . .. . Answer : The FILAB Blueprint issue seems now to be solved and the poi dp 3.3.3 is back now there visible in the Software Catalogue . Comment : I still can not see the poi dp 3.3.3 in the Software catalogue right panel when I try to create a new Tier form my specific blueprint template for any OS I select.. . only if I click the Open catalog button of existing Blueprint Templates I can see an existing template called poidataprovider with a Tier called poi dp 333 . Comment : That is strange I just tested it and I could see the poi dp 3.3.3 on the right panel software catalog . This is the whole contents of the catalog visible to me : WebRTC SE apache2 augmentedreality 3.3.3 cep django 1.5.5 eHealth SE 1.0.0 git 1.7 marketplace 3.2.1 mediawiki 1.17.0 mongodbgonfig 2.2.3 mongodbshard 2.2.3 mongos 2.2.3 mysql 1.2.4 nodejs 0.6.15 nodejs 0.9.0 php 5.3.3 poi dp 3.3.3 postgresql 0.11.0 python 2.7.5 redis 2.4.10 repository 3.2.1 testingpuppet 1.2.3 tomcat 6 wirecloud 0.6.4 wstore 0.3.0 xml3d 3.3.3 Comment : right now if I go on the cloud portal tab fiware lab I see blank page I can not test anything : Comment : Yes it seems to be down now . According to the email I got there is a maintenance break scheduled to take place on May 7th from 8 AM to 12 AM . Hopefully it will work better after that Another option is to acquire your own virtual-server from some commercial web service provider and install all needed software there manually using the installation instructions found in the FIWARE catalog . You need this anyhow if you are targeting a commercial product at some point . Comment : thanks Timo Mukari so for a commercial scenario I cannot use fiware lab", "Question : Create Blueprint Templates functionality : In the creation of a new Tier for my specific template I can t view and I can t select the POI data provider GE poi dp 3.3.3 in the right panel Software in Catalogue maybe I do something wrong Instead if I click the Open catalog button of Blueprint Templates I can see an existing template called poidataprovider with a Tier called poi dp 333 . thanks . Antonio . .. . Answer : The ready POI image is called MiWi-POI Server you can launch it directly via the Launch button on the Images folder . If you need to use the blueprint templates the template name is poidataprovider . Select it and from the Actions menu choose Clone Blueprint . Once you have cloned it you can launch it using the Actions menu again but before that it is wise to set a proper key-pair created in the Security section to your clone by opening it by clicking the clone name and then using the Pen -icon Edit tier option and maybe also add some other software . The use of the ready image launching above is much simpler and more reliable and you need to use blueprints only if you want to install several software components . Anyhow finally you need to have your own server somewhere and install the components manually using the installation instructions for commercial permanent purposes . Comment : Thanks Timo Mukari . Comment : But if I wanted to use my specific blueprint templates why the poidataprovider is not present in the list of software in the software catalog right panel when I try to create e new Tier for my specific template in this case I must start always from blueprint existing template poidataprovider and add other requested software as new Tiers Comment : I expected to find in the list of software for a new Tier a software called poi dp 333 like the one defined for the existing poidataprovider blueprint template Comment : Good question . I have no answer to this but I will try to find out why it is not shown there . Comment : At the moment the Filab seems not to find anything in the Software in Catalogue selection it just shows Loading items.. . forever . So this could also be some Filab issue the blueprint system has not been very reliable to my experience ." ] }
[ "yes-answer-long", "yes-answer-short" ]
fiware
UNK_RELATION
jboss7.x@server@48
jboss7.x -- version 7 of the jboss application @placeholder .
{ "confidence": [ 38.61084747314453, 38.358367919921875, 38.22137451171875, 36.56647491455078, 36.00493621826172, 35.509883880615234, 35.509883880615234, 34.76576232910156, 34.08823776245117, 33.907447814941406, 33.66374588012695, 33.54253005981445, 33.35736083984375, 32.804107666015625, 32.64204406738281, 32.204078674316406, 31.932300567626953, 31.815258026123047, 31.589031219482422, 31.4887638092041, 31.45197105407715, 31.447307586669922, 31.280818939208984, 31.24765396118164, 31.24765396118164, 31.093360900878906, 31.093360900878906, 30.454631805419922, 30.36400032043457, 30.36400032043457, 30.32299041748047, 30.32299041748047, 30.247520446777344, 30.247520446777344, 30.034812927246094, 29.987642288208008, 29.739315032958984, 29.732036590576172, 29.732036590576172, 29.732036590576172, 29.638761520385742, 29.51778793334961, 29.49820327758789, 29.49820327758789, 29.474857330322266, 29.474857330322266, 29.474857330322266, 29.16657257080078, 29.045764923095703, 29.045764923095703, 28.97734832763672, 28.957172393798828, 28.904335021972656, 28.904335021972656, 28.67770767211914, 28.544578552246094, 28.544578552246094, 28.544578552246094, 28.544578552246094, 28.544578552246094, 28.544578552246094, 28.498069763183594, 28.498069763183594, 28.44900131225586, 28.402446746826172, 28.402446746826172, 28.366300582885742, 28.272369384765625, 28.272369384765625, 28.239259719848633, 28.23819351196289, 28.090557098388672, 27.701858520507812, 27.687129974365234, 27.586097717285156, 27.561744689941406, 27.556774139404297, 27.556686401367188, 27.490564346313477, 27.490564346313477, 27.44601821899414, 27.40024185180664, 27.323881149291992, 27.323881149291992, 27.323881149291992, 27.321247100830078, 27.298572540283203, 27.242992401123047, 27.154884338378906, 27.154884338378906, 27.154884338378906, 27.154884338378906, 27.154884338378906, 27.154884338378906, 27.154884338378906, 27.154884338378906, 27.154884338378906, 27.154884338378906, 27.113872528076172, 27.113872528076172 ], "content": [ "What version of JBoss AS 7", "Should I download JBoss 7.x or the JBoss EAP 6.x", "JBoss AS 7.x is a community release that represents a potential enterprise version .", "This was working fine on JBoss 5.1 but simply seems to not work on JBoss 7.x .", "JBoss AS 7 is community and JBoss EAP 6 is the enterprise version .", "Jboss AS 7 is the community version and EAP is the enterprise .", "I want to work with jboss 7 version .", "jboss-7.x is non-sense .", "I understand you are using JBoss 7.x -- that s the same version in that thread .", "I am using JBoss 7 AS .", "Note 2 : Replace JBOSS PATH with your JBoss 7.x installation path .", "JBoss EAP 7 is JavaEE 7 .", "Or even better rename the jboss-7.x tag to jboss-as7 .", "JBoss AS7 is JBoss version 7.1 .", "I am migrating an application from Jboss 3 to Jboss 7 .", "Package scanning mechanism does not work correctly on JBoss 7.x .", "Refer to the following link for more information via the JBoss Application Server 7 community forums .", "we re currently in the process of porting some of our projects from JBoss 4.x to JBoss 7 .", "There are two versions : Jboss AS Application Server and JBoss EAP Enterprise Application Platform .", "I have an MDB in Jboss 7 application that acts as a consumer of a queue in ActiveMQ .", "Currently running some webapps on Jboss AS 4 5 and I am testing migration to jboss7 .", "docx4java.org forums jboss-f29 jboss-7-config-t1678.html .. .", "We have a fairly big application running on a JBoss 7 application server .", "JBoss AS 7 was a JEE6 implementation .", "This is working fine in JBoss 7 .", "JBoss AS is a community version .", "What version of JBoss AS or WildFly", "Entity beans 2.X are not supported in the lightweight configuration of JBoss AS 7 onwards .", "How to set up URIEncoding for JBoss AS 7", "The problem came from JBoss 7 and Postgre9 for me .", "I m using MANIFEST.MF file to define some JBoss 7.x dependencies but the compiler still ignores the libs .", "Chances are the libraries are getting picked up from what JBoss 7.x is generically providing .", "Classloading model changed in JBoss 7 .", "I m using JAAS with JBoss as 7 .", "The JBoss application server is the commercialized version of the community Wildfly application server .", "In JBoss 7 you programmatically register or use jboss-service.xml .", "There is already a tag to cover version 7.x of JBoss Application Server .", "after upgrading to JBoss AS 7 suddenly the POST request of the first login page of our application results in a ViewExpiredException .", "I am using Jboss 7 for my application development and there is a requirement to disable RC4 cipher .", "I am attempting to get SSL set up in JBoss Application Server 7 .", "For JBoss 7.2 version they released it as JBoss EAP 6.1 Alpha so that is the latest community version .", "Torquebox is basically a bunch of code on top of JBoss AS 7 which makes my effort kinda equivalent to making sendfile work on JBoss AS 7 .", "Server : jboss as 7 .", "Im using Jboss AS 7 .", "WildFly 8 is the next iteration of the JBoss application server after JBoss AS 7 EAP 6 .", "My application was designed to run with Jboss 4 but now I need it running on Jboss 7 .", "I m migrating an application to JBoss 7 where all dependencies were in JBOSS HOME server default lib JBoss 4 .", "JBoss Enterprise Application Server EAP x will also align to the Java EE spec .", "Now deploy the JDBC driver to JBoss AS 7 by putting it in the deployments folder or using the deploy command in jboss-cli .", "The only difference on the server is that it used to run jboss 6 and is now running jboss 7 .", "See if this thread helps : stackoverflow.com questions 16204635 http : stackoverflow.com questions 16204635 cannot-use-docx4j-inside-of-jboss-7 There is also a forum for this complete with JBoss 7 configuration instructions : docx4java.org forums jboss-f29 jboss-7-config-t1678.html http : www.docx4java.org forums jboss-f29 jboss-7-config-t1678.html", "It is have to use jboss EAP 6.2 version .", "I m migrating from JBoss AS 7 to Wildfly 9.0.2 .", "This file no longers works with JBoss 7 .. . 3 .", "When I query for the WSDL from the browser I get exceptions see below from the Jboss console log in Jboss 7 using 7.1.1.Final version but the query works perfectly in Jboss 6 .", "I m having troubles to deploy projects that use ObjectDB in Jboss AS 7 WildFly .", "Okay I figured it out after searching for Jboss 7 and https together .", "If it is jbossas.jboss.org faq http : jbossas.jboss.org faq please note that JBoss AS 7 is not EAP .", "However this doesn t seem to work in JBoss 7 as this.getclass.getresource.getpath is returning the wrong path .", "Then I applied the code to a huge project that run on the jboss 7 server .", "Is there a special way run docx4j library on the jboss 7 server .", "JBoss 7 is an implementation of JavaEE 6 .", "The below code is not working in JBoss 7 .", "I guess the same goes for JBoss7 .", "I suspect this is the reason JBoss AS 7 and EAP 6.x have this issue .", "Using JBoss EAP 6.4 AS 7.x I guess .", "My version was having a hard time accepting the -Dspring.profiles.active jboss7 value Invalid value error . .", "so i want to create a simple chat application using JBoss 7 server .", "I am using JBoss AS 7 and trying to connect to my application using the IP from a computer in the intranet .", "I am porting a WS application from Jboss6 Java 6 to Jboss7 Java7 combination .", "It seems that JBoss 7 just ignores the element inside jboss-web.xml .", "I am running an application in Openshift running on JBoss Application Server 7 Cartridge .", "You also don t need the org.jboss.resteasy : resteasy-servlet-initializer when running on WildFly JBoss AS 7.x or JBoss EAP 6.x .", "We have a jboss 7 instance running and hosting a web application .", "Our app was running in jboss 4 before we are looking for options to migrate to JBoss 7 or tomee .", "So if it is a very important project and you do not need JEE7 specs you may want to use JBoss EAP which is the productized version of JBoss AS 7 .", "Issue at line : .. . .. . The above code is working in standalone java code but not in JBoss : .. . .. . refer below for error-log : .. . .. . Note : Previously we were getting : .. . .. . No properties file : users.properties or defaults : defaultUsers.properties found .. . .. . We have solved this issue by doing some changes in standalone.xml file of Jboss by ref below link : https : developer.jboss.org blogs mukeshghildiyal 2012 01 09 enabling-the-users-and-roles-in-jboss7-and-adding-admin-console-restriction .. . .. . We need to know to solve the The user is not authenticated . Do we need to do some changes in jboss we are using jboss version 7", "All future JBoss AS as been renamed Wildfly and they do not correspond to a JBoss Enterprise Application Server release you ll notice that we skip version numbers as we see fit .", "You are seeing this error most probably because the keystore that your JBoss 6 had access to is not accessible to your JBoss 7 instance .", "In JBoss 4.3 it would ge exploded somewhere within the tmp folder but I am not able to find where it is getting exploded to in JBoss 7 .", "JBoss AS 7 is a dud .", "In JBoss 5 I could do the following : .. . .. . and override myWebService endpoint URL in jboss.xml : .. . .. . but in JBoss 7 jboss.xml is not used anymore and I can t find how to achieve the same with the new configuration file jboss-ejb3.xml .", "I have hosted a JBoss application in a server .", "We are not able to deploy our web application in JBoss .", "I have a java application running on JBoss 7.1 .", "Otherwise your annotations are not picked up and added to the annotation index by JBoss Application Server 7 resulting in them being completely and silently ignored .. . .. . See also : JBoss Modules https : docs.jboss.org author display JBWS JBoss+Modules JBossModules-UsingApacheCXF .. . .. . I hope this help .", "I am installing JBoss but I don t understand which version to choose .", "Note : I was unable to debug my application as I used older version for jboss tools .", "But the same code does not work in JBoss 7 .", "JBoss EAP 6 corresponds to Wildfly 7 .", "I am using jdk 1.6 and jboss as 7 .", "Does anyone know if this behavior is possible with JBoss 7", "I m working with RestEasy Jboss 7 and EJB 3.1 .", "I don t know if this is different for JBoss 7", "I m trying to get coverage of JBoss AS 7 .", "JBoss AS 7 will have many ways to be managed .", "I am using JBoss AS 7 with H2 database .", "How I can do the same in JBoss AS 7", "Even changing just the org.infinispan included with JBoss 7.x to be non-global and trying to reference that from MANIFEST.MF did not work .", "The thread can be found here http : zeroturnaround.com forums topic jrebel-jboss-as-7-x-sbt-exceptions-and-no-class-reloading" ] }
{ "confidence": [ 45.61132049560547, 44.927284240722656, 44.90646743774414, 44.222938537597656, 43.22990417480469, 42.09386444091797, 41.71505355834961, 41.6460075378418, 41.52882766723633, 41.45686340332031, 40.437320709228516, 40.437320709228516, 39.74624252319336, 39.74624252319336, 39.74624252319336, 37.946922302246094, 37.6885986328125, 37.31867980957031, 37.252098083496094, 37.162208557128906 ], "content": [ "Question : Issue at line : .. . .. . The above code is working in standalone java code but not in JBoss : .. . .. . refer below for error-log : .. . .. . Note : Previously we were getting : .. . .. . No properties file : users.properties or defaults : defaultUsers.properties found .. . .. . We have solved this issue by doing some changes in standalone.xml file of Jboss by ref below link : https : developer.jboss.org blogs mukeshghildiyal 2012 01 09 enabling-the-users-and-roles-in-jboss7-and-adding-admin-console-restriction .. . .. . We need to know to solve the The user is not authenticated . Do we need to do some changes in jboss we are using jboss version 7 log : .. . Answer : Try to invoke UserContext.get .pushSubject subject .. . .. . before you get OS instance .", "Question : Currently running some webapps on Jboss AS 4 5 and I am testing migration to jboss7 . When I try to deploy a jersey based webapp on JBoss AS 7 full profile with standalone-preview config file I get : .. . .. . I ve done a bit of hunting around on it and found that RestEasy is the default JAX-RS implementation embedded into Application Server . Posts like http : community.jboss.org message 579996 and https : issues.jboss.org browse JBAS-8830 mention that the RestEasy deployer takes over . In AS 6 it seems easier to remove the deployer whereas I have not seen any solutions for AS 7 . .. . Answer : Can we update the server-agnostic approach to include JBoss 7.1.1 and Servlet 3.0 context-param is invalid in a version 3.0 web-xml .", "Question : null .. . Answer : i have 2 jboss7 server instances in my machine Windows7 64 bit OS . i want to communicate between 2 instances through the JMS . Can anyone help me to JMS configuration in each instance Thanks in advance Comment : what kind of data you need to send to jboss instances Comment : I m a new to JBoss . so i want to create a simple chat application using JBoss 7 server . So please help me to configure in each instance", "Question : Currently running some webapps on Jboss AS 4 5 and I am testing migration to jboss7 . When I try to deploy a jersey based webapp on JBoss AS 7 full profile with standalone-preview config file I get : .. . .. . I ve done a bit of hunting around on it and found that RestEasy is the default JAX-RS implementation embedded into Application Server . Posts like http : community.jboss.org message 579996 and https : issues.jboss.org browse JBAS-8830 mention that the RestEasy deployer takes over . In AS 6 it seems easier to remove the deployer whereas I have not seen any solutions for AS 7 . .. . Answer : Ahother option : .. . .. . 1 . Edit standalone configuration standalone.xml and comments out all jaxrs entries . This will configure Jersey instead of RESTEasy . 2 . Remove jboss-web.xml from WEB-INF web.xml . This file no longers works with JBoss 7 .. . 3 . Edit web.xml add an init-param com.sun.jersey.config.property.packages configured to your resource s package like : .. . .. . init-param .. . param-name com.sun.jersey.config.property.packages param-name .. . param-value org.foo param-value .. . init-param .. . .. . .. . https : github.com Atmosphere atmosphere wiki Deploying-Atmosphere-Jersey-in-JBoss-7.1.x", "Question : I am installing JBoss but I don t understand which version to choose . Should I download JBoss 7.x or the JBoss EAP 6.x What is the difference .. . Answer : JBoss AS 7.x is a community release that represents a potential enterprise version . At Red Hat we do not use the JBoss AS names anymore because it adds to the confusion . All future JBoss AS as been renamed Wildfly and they do not correspond to a JBoss Enterprise Application Server release you ll notice that we skip version numbers as we see fit . JBoss Enterprise Application Server EAP x will also align to the Java EE spec . So JBoss EAP 6 is JavaEE 6 . JBoss EAP 7 is JavaEE 7 . Because EAP is the enterprise release it will always be the most mature harden product and will include fixes that are not available in the community version .", "Question : We are working on our new system which is built using Jboss Spring and Hibernate and at the moment we re in the progress of migrating from AS 7.1 to EAP 6.0 . For reasons unknown to us the deployment fails when deploying to the EAP 6.0 server but works perfectly fine under AS 7.1 both on our local machines and our local test-server . In short we get the following error : .. . .. . Furthermore we have the console log see below for further information . We ve found https : issues.jboss.org browse AS7-5222 and as far as we understand there is a fix included which gives more detailed error information alas we can t update upgrade at the moment . So my humble question is does anyone have an idea on how to solve this issue Updated : Here s some more log . Note that this is running OpenJDK 1.7 instead of the regular version . We ve tried both of them but the issue remains . Comment : From the log I cannot see any deployment related errors but the jboss server cannot start up properly . Comment : @Quincy The server starts just fine if there s no deployment available . The error occurs when I try to enable the deployment or from the management console or when adding the war file deployment folder . Either way it s the same issue . Comment : Porting from Jboss 7 to EAP 6 should not be hard . Have you checked if all the configuration you used in jboss 7 had been set on EAP 6 e.g . library modules Comment : I agree it should be a breeze . Yeah we ve made extensive comparisons between the configurations and the modules in order to make sure that everything is identical . Still no luck though . Comment : Hm.. . have you tried to use the full config file standalone-full.xml instead .. . Answer : We faced similar issue with JBoss AS 7.2.0 final and Spring 3.2.8 . In our case we missed the setting of spring s active profile to point to Jboss7 . Once we set this the context was resolved deployment was successful . Hope this helps . Comment : My version was having a hard time accepting the -Dspring.profiles.active jboss7 value Invalid value error . . So I found somewhere else on the net export SPRING PROFILES ACTIVE jboss7 and this works in-place of the JAVA OPTS if that errors on you .", "Question : Currently running some webapps on Jboss AS 4 5 and I am testing migration to jboss7 . When I try to deploy a jersey based webapp on JBoss AS 7 full profile with standalone-preview config file I get : .. . .. . I ve done a bit of hunting around on it and found that RestEasy is the default JAX-RS implementation embedded into Application Server . Posts like http : community.jboss.org message 579996 and https : issues.jboss.org browse JBAS-8830 mention that the RestEasy deployer takes over . In AS 6 it seems easier to remove the deployer whereas I have not seen any solutions for AS 7 . .. . Answer : I believe the correct approach is to use app server agnostic JAX-RS application deployment . No need to mess with any JBoss configuration . All you need is extend javax.ws.rs.core.Application http : jersey.java.net nonav apidocs latest jersey javax ws rs core Application.html in your JAX-RS web application . You can find an example here http : jersey.java.net nonav documentation latest jax-rs.html d4e188 . Then you need to put this in your web.xml . Package scanning mechanism does not work correctly on JBoss 7.x . I have tested this approach successfully in JBoss 7.0.2.Final and JBoss 7.1.1.Final . Comment : I m facing the same exception but my libraries are in EAR lib . How to turn off resteasy scanner for EAR lib", "Question : I am in the process of migrating to JBoss AS 7 and using maven build seems to me the maven-ear-plugin does not support JBoss AS 7 yet . By default it uses JBoss AS 4 . Does this cause problem I am also still trying to figure out as I go along how to structure my archives right now having issues related to the changes in the way JBoss AS 7 class loader works . .. . Answer : I don t think the maven-ear-plugin is JBoss specific . But you have to specify the JavaEE version 6 version in your configuration : .. . .. . To get a working example of a JBoss7 EAR you can create a new project using the following archetype : org.jboss.spec.archetypes : jboss-javaee6-ear-webapp : 7.0.2.CR1 The example shown above is taken from this archetype . Comment : Thanks - I was asking about the maven-ear-plugin because in configuration there s one for jboss and you can set version under it but up to 2.6 it only support jboss 5 . I cant seem to generate project with that archetype I am no expert in maven so I assume that archetype is for the -DartifcatId argument Comment : In Eclipse you can File - New - Other - Maven - Maven Project . Then you can choose an archetype . Comment : Cool thanks .. . I am gonna use that for reference and hopefully can get this up and running", "Question : I am installing JBoss but I don t understand which version to choose . Should I download JBoss 7.x or the JBoss EAP 6.x What is the difference .. . Answer : There are two versions : Jboss AS Application Server and JBoss EAP Enterprise Application Platform . JBoss AS is a community version . Personnaly I never used EAP but I never used JBoss in a production context. . it seams that EAP is designed to be more stable . There are informations here : http : docs.jboss.org jbossas docs Server Configuration Guide beta500 html ch01s01s01.html", "Question : Currently running some webapps on Jboss AS 4 5 and I am testing migration to jboss7 . When I try to deploy a jersey based webapp on JBoss AS 7 full profile with standalone-preview config file I get : .. . .. . I ve done a bit of hunting around on it and found that RestEasy is the default JAX-RS implementation embedded into Application Server . Posts like http : community.jboss.org message 579996 and https : issues.jboss.org browse JBAS-8830 mention that the RestEasy deployer takes over . In AS 6 it seems easier to remove the deployer whereas I have not seen any solutions for AS 7 . .. . Answer : Will do the trick works great with 7.3AS.ctomc just missed a tiny slash in the end to terminate the section . : -", "Question : Currently running some webapps on Jboss AS 4 5 and I am testing migration to jboss7 . When I try to deploy a jersey based webapp on JBoss AS 7 full profile with standalone-preview config file I get : .. . .. . I ve done a bit of hunting around on it and found that RestEasy is the default JAX-RS implementation embedded into Application Server . Posts like http : community.jboss.org message 579996 and https : issues.jboss.org browse JBAS-8830 mention that the RestEasy deployer takes over . In AS 6 it seems easier to remove the deployer whereas I have not seen any solutions for AS 7 . .. . Answer : Besides removing the entire jaxrs subsystem in standalone.xml as mentioned in the other posts excluding the RESTEasy modules in jboss-deployment-structure.xml may also work . Also check out .. . .. . JBoss Deployment Structure File https : docs.jboss.org author display AS7 Class+Loading+in+AS7 ClassLoadinginAS7-JBossDeploymentStructureFile .. . Implicit module dependencies for deployments https : docs.jboss.org author display AS7 Implicit+module+dependencies+for+deployments", "Question : Currently running some webapps on Jboss AS 4 5 and I am testing migration to jboss7 . When I try to deploy a jersey based webapp on JBoss AS 7 full profile with standalone-preview config file I get : .. . .. . I ve done a bit of hunting around on it and found that RestEasy is the default JAX-RS implementation embedded into Application Server . Posts like http : community.jboss.org message 579996 and https : issues.jboss.org browse JBAS-8830 mention that the RestEasy deployer takes over . In AS 6 it seems easier to remove the deployer whereas I have not seen any solutions for AS 7 . .. . Answer : I managed to run Jersey WS on my JBOSS AS7 . What i do for JBOSS is just remove everything related to jax-rs in standalone.xml .. . .. . My jersey sample code got from : http : www.ibm.com developerworks web library wa-aj-tomcat .. . .. . The only thing i do for the jersey is remove the init-param from web.xml and copy jersey lib to WebContent WEB-INF lib .", "Question : Currently running some webapps on Jboss AS 4 5 and I am testing migration to jboss7 . When I try to deploy a jersey based webapp on JBoss AS 7 full profile with standalone-preview config file I get : .. . .. . I ve done a bit of hunting around on it and found that RestEasy is the default JAX-RS implementation embedded into Application Server . Posts like http : community.jboss.org message 579996 and https : issues.jboss.org browse JBAS-8830 mention that the RestEasy deployer takes over . In AS 6 it seems easier to remove the deployer whereas I have not seen any solutions for AS 7 . .. . Answer : You can get past this in the standalone configuration by modifying configuration standalone.xml and removing references to jaxrs in the extensions and profile section . Note even though I commented those portions out in my standalone.xml JBoss will automagically remove those references altogether on next startup.. . Comment : If you mean that your edits didn t persist you need to shut the server down before making XML edits . Any changes made to the runtime will be overwritten at reboot . Changes made offline or via the Management Console or CLI will be persistent . This way you can create and load custom server profiles as required .", "Question : Currently running some webapps on Jboss AS 4 5 and I am testing migration to jboss7 . When I try to deploy a jersey based webapp on JBoss AS 7 full profile with standalone-preview config file I get : .. . .. . I ve done a bit of hunting around on it and found that RestEasy is the default JAX-RS implementation embedded into Application Server . Posts like http : community.jboss.org message 579996 and https : issues.jboss.org browse JBAS-8830 mention that the RestEasy deployer takes over . In AS 6 it seems easier to remove the deployer whereas I have not seen any solutions for AS 7 . .. . Answer : Here is what worked for me for JBoss 7.1.1 and Jersey 1.17.1 . No need to modify standalone.xml or domain.xml . Besides filtering restEasy in web.xml instruct Jersey to use Jackson . You can read about this configuration here https : jersey.java.net documentation 1.17 json.html . To save time in configuration guesses I am posting web.xml and pom.xml from test project . web.xml .. . .. . pom.xml", "Question : Currently running some webapps on Jboss AS 4 5 and I am testing migration to jboss7 . When I try to deploy a jersey based webapp on JBoss AS 7 full profile with standalone-preview config file I get : .. . .. . I ve done a bit of hunting around on it and found that RestEasy is the default JAX-RS implementation embedded into Application Server . Posts like http : community.jboss.org message 579996 and https : issues.jboss.org browse JBAS-8830 mention that the RestEasy deployer takes over . In AS 6 it seems easier to remove the deployer whereas I have not seen any solutions for AS 7 . .. . Answer : You should exclude jaxrs subsystem from being activated for your deployment add this into META-INF jboss-deployment-structure.xml .. . .. . or you can go to standalone.xml and remove subsystem there . To do so you need to remove .. . .. . part of configuration extension part of on top can stay it wont hurt either way . or you can connect to server with CLI and run .. . .. . Just a note exclude-subsystems functionality and deployment-strucure : 1.2 was added in 7.1.2 and as such will not work on on 7.1.1 .", "Question : I ve hit this error where the CPU usage goes to its limits and JBoss needs a restart java.lang.OutOfMemoryError : PermGen space . I found a solution for older JBoss version to increase the MaxPermSize . I guess the same goes for JBoss7 . Which value would be good enough in order not to face any problem again Is there any way to get permanently away from this problem like lets say use a different VM like JRockit Comment : This really shouldn t be happening on AS 7 unless you re deploying a lot of big classes . Because of its modular classloader JBoss AS 7 shouldn t suffer from classloader leaks https : blogs.oracle.com fkieviet entry classloader leaks the dreaded java which - combined with multiple redeploys during testing - are the most common cause of this problem on other servers . Do you get these errors only after lots of redeploys Under what circumstances Comment : we have been testing our applications and during this phase we had extensive redeploys . And out of nowhere this problem struck Comment : Interestingly enought I m running the JBoss 7.1.1 on my windows-server as a service . In this scenario after the deployment it s dead . Running the server from standalone.bat works solid as on my development-machine . .. . Answer : The VM parameter is : .. . .. . Just make it large enough that you don t hit the limit . Broadly speaking perm gen memory is used for objects associated with Classes and interned Strings . You shouldn t run out unless you have use lot of different classes . Comment : do you know the default-value of MaxPermSize for JBoss 7 Comment : While useful this won t help with a classloader leak only postpone the problem . Eventually you ll run out of Permen space . Comment : Out of curiosity what is considered a lot of different classes for a web application 100 1000 10000 Comment : By the way i do this in standalone.conf", "Question : Currently running some webapps on Jboss AS 4 5 and I am testing migration to jboss7 . When I try to deploy a jersey based webapp on JBoss AS 7 full profile with standalone-preview config file I get : .. . .. . I ve done a bit of hunting around on it and found that RestEasy is the default JAX-RS implementation embedded into Application Server . Posts like http : community.jboss.org message 579996 and https : issues.jboss.org browse JBAS-8830 mention that the RestEasy deployer takes over . In AS 6 it seems easier to remove the deployer whereas I have not seen any solutions for AS 7 . .. . Answer : it has already been mentioned in this post : https : community.jboss.org message 744530 744530 you can just ask the resteasy module to not scan for other JAX RS implementations in your webapp just add this to your web.xml : .. . .. . worked fine for me Comment : Worked Very simple and good answer Comment : Worked for me as well A bit sad the web.xml contains now some specific JBoss configuration . I preferred to get it working by modifying the jboss-deployment-structure.xml but that didn t work out . Comment : it sounds like a bug of jboss. . i also wouldnt like to modify my web.xml but seems that there is no other option Comment : Yes it works but maybe you are including additional and non needed artifacts in your deployable war . After adding the scope compile scope in the jersey-client and jersey-container-servlet dependencies the error is corrected and without the extra kbytes in the resulting war . Comment : @gersonZaragocin Yes but that only works if you don t use Jersey specific features because you end up using RESTEasy that comes with JBoss if you do that .", "Question : I am installing JBoss but I don t understand which version to choose . Should I download JBoss 7.x or the JBoss EAP 6.x What is the difference .. . Answer : JBoss EAP 6.x is not free without subscription fee for Test QA Production environments . For more details please look at this answer http : stackoverflow.com a 37728525 466677", "Question : I am installing JBoss but I don t understand which version to choose . Should I download JBoss 7.x or the JBoss EAP 6.x What is the difference .. . Answer : There are also source distributions available . Jboss 7.1.2 which I understand corresponds pretty exactly to EAP 6.0 and Jboss 7.1.3 which I believe corresponds to EAP6.1 .. . .. . They actually aren t too hard to compile yourself even on Windows", "Question : I am trying to migrate the deployment of some applications from tomcat 6 to jboss-as 7 . A single sign-on mechanism has been implemented for these projects which in order to work needs to have crossContext true set in the tomcat context.xml file and emptySessionPath true in the connector configuration found within server.xml . How can these settings be mimicked in jboss7 I know that jboss uses a modified tomcat as a servlet container but I have been unable to find any of these settings . .. . Answer : Servlet 3.0 specification supported by JBoss 7.1 allows specification of session cookie path in web.xml . Just put this fragment to all of your wars whose context you want to be shared :" ] }
[ "yes-answer-long", "yes-answer-short" ]
server
UNK_RELATION
pyv8@s@35
pyv8 -- python wrapper for google @placeholder v8 javascript engine .
{ "confidence": [ 38.08500671386719, 38.08500671386719, 38.08500671386719, 36.55995178222656, 35.37183380126953, 34.7292594909668, 34.16626739501953, 32.081451416015625, 31.756458282470703, 30.712894439697266, 30.64867401123047, 30.507293701171875, 30.265758514404297, 30.012653350830078, 29.23056983947754, 29.14645767211914, 29.042587280273438, 29.042587280273438, 27.91006851196289, 27.896053314208984, 27.611690521240234, 27.087228775024414, 27.070232391357422, 27.070232391357422, 26.86194610595703, 26.66295623779297, 26.66295623779297, 26.66295623779297, 26.006256103515625, 26.003463745117188, 25.877269744873047, 25.57202911376953, 25.57202911376953, 25.46218490600586, 25.46218490600586, 25.270145416259766, 25.268291473388672, 25.114500045776367, 25.04717254638672, 24.973670959472656, 24.973670959472656, 24.508224487304688, 24.43030548095703, 24.43030548095703, 24.080101013183594, 24.080101013183594, 24.03290557861328, 24.022865295410156, 23.77290153503418, 23.77290153503418, 23.77290153503418, 23.402122497558594, 23.23734474182129, 23.208351135253906, 22.92401123046875, 22.92401123046875, 22.879331588745117, 22.839120864868164, 22.796131134033203, 22.69821548461914, 22.69821548461914, 22.69821548461914, 22.69821548461914, 22.69821548461914, 22.69821548461914, 22.69821548461914, 22.69821548461914, 22.69821548461914, 22.64788246154785, 22.59375, 22.35841941833496, 22.33374786376953, 21.938596725463867, 21.79062271118164, 21.49744415283203, 21.49744415283203, 21.434616088867188, 21.305587768554688, 21.305587768554688, 21.305587768554688, 21.267955780029297, 20.766456604003906, 20.148902893066406, 20.104816436767578, 20.058290481567383, 20.058290481567383, 20.058290481567383, 20.003725051879883, 19.87476348876953, 19.745792388916016, 19.745792388916016, 19.745792388916016, 19.745792388916016, 19.622634887695312, 19.56568717956543, 18.947036743164062, 18.94178009033203, 18.740509033203125, 18.740509033203125, 18.699539184570312 ], "content": [ "I used this Guide for installing PyV8 : Importing PyV8 Engine into Python 2.7 the easy way http : www.wikisecure.net importing-pyv8-engine-into-python-v2-7-the-easy-way this is good for me :", "I used this Guide for installing PyV8 : Importing PyV8 Engine into Python 2.7 the easy way http : www.wikisecure.net importing-pyv8-engine-into-python-v2-7-the-easy-way this was good for me :", "I used this Guide for installing PyV8 : Importing PyV8 Engine into Python 2.7 the easy way http : www.wikisecure.net importing-pyv8-engine-into-python-v2-7-the-easy-way this is good for me :", "I ve forked a pyv8 implementation by flier the maintainer for the pyv8 pip package and I m working on changing it to use google s git repository chromium.googlesource.com v8 v8.git https : chromium.googlesource.com v8 v8.git", "Since IMO PyV8 is not well maintained it only really works with certain combinations of V8 builds and PyV8 builds .", "1 Loading JavaScript library in Python using PyV8 http : stackoverflow.com questions 23098477 loading-javascript-library-in-python-using-pyv8 23100907 23100907", "I had downloaded v8 from svn and then exported v8 homepath and tried to do a setup.py install on the pyv8 folder .", "I m using PyV8 and I d like to disallow assigning javascript-objects to my python objects because of a current memory leak bug with PyV8 https : code.google.com p pyv8 issues detail id 186 .", "Do you have any idea on how to profile in PyV8 without me having to rewrite the Python-to-JS wrapper", "Does node.js provide an external API similar to that of V8 such that one could modify PyV8 to wrap node.js", "The documents about pyv8 is not sufficiency .", "It s really a question about the V8 rendering engine .", "Some mild investigations shows that PyV8 has a preview build for Python 2.7 .", "Versions .. . .. . PyV8 Revision 557 built on same machine using PyV8 s setup.py .. . .. . V8 Revision 19632 built on same machine using PyV8 s setup.py .. . .. . OS : Ubuntu 12.04 .. . .. . Test Code .. . .. . Output", "I m using PyV8 and I d like to call a javascript function with undefined .", "This https : github.com v8 v8 blob 2fc2cb99f52974d0743610189213a94585c30ac6 src js macros.py L173 part of the v8 engine came to the point in the middle of another discussion .", "I really wish PyV8 would show the line numbers where the error happened in the python code called from the javascript code.. .", "Apparently PyV8 doesn t correctly convert python lists to Javascript arrays which leads my list.length to return undefined which is getting converted to None .", "The answer is to use PyV8.JSArray my list .", "So I am trying to install Pyv8 by following instruction from https : andrewwilkinson.wordpress.com 2012 01 23 integrating-python-and-javascript-with-pyv8 .. . .. . Error comes when running second last command about building the setup .", "It s just this : - python - javascript - python - javascript .", "You d have to load all the js sources provided there into PyV8 in the right order - note that this library only provides instructions for spidermonkey not V8 .", "I m trying to pass Python data lists dicts strings.. . arbitrarily nested to PyV8 .", "I am attempting to use JS Navigator from a Python script running pyv8 .", "I want to use pyv8 in my scrapy project but i don t know how to use that .. . .. . In my mind there should have three step to emulate browser : .. . .. . load HTML DOM .. . eval JS Code .. . .. . But After I read the article http : blog.dutchcoders.io using-scrapy-and-pyv8-to-scrape-inline-javascript http : blog.dutchcoders.io using-scrapy-and-pyv8-to-scrape-inline-javascript 5D I do not see where the code load HTML DOM .", "I m trying to install the pyv8 package on a virtualenv on Windows .", "Im trying to install PyV8 from source .", "I ve never used a global parameter this way in pyv8 .", "There s this javascript DOM implementation that might work in PyV8 : https : github.com andreasgal dom.js .", "I get the following error when installing PyV8 https : code.google.com archive p pyv8 using Python 2.7.10 on Windows : .. . .. . I ran .. . .. . with success as it was recommended in this http : stackoverflow.com questions 11425106 python-pip-install-fails-invalid-command-egg-info and other threads but no luck .", "Im getting a host of errors below .. . .. . .. . Can any body guide me to get pyv8 working .. . .. . Or If i can find a debian package for PyV8", "However I recommend using exactly the PyV8 V8 setup that I m using - I ve spent at least a week to figure out which combination doesn t lead to memory-leaks .", "To solve this I had to remove some of the Ubuntu packages I tried : .. . .. . Then checkout PyV8 from subversion .. . .. . The setup.py script took care of fetching and building the compatable version of V8 :", "I have a JS codebase running within PyV8 .", "profile.js .. . .. . my module 1.js .. . .. . PyV8 side .. . .. . Output", "Is kijiji s website incompatible with this PyV8 approach", "First of install python3.3 .. . .. . Then you have to download manually the package of PyV8 from https : raw.github.com emmetio pyv8-binaries master pyv8-linux64-p3.zip After you download you have to unzip the file and you wil have to copy the 2 files inside the new folder into your .config sublime-text3 Installed Packages PyV8 .. . .. . You have to create the folder PyV8 previously .", "Had the same issue failing on command python setup.py build but I was able to install pyv8 on fresh install of Ubuntu 16 by running :", "I want to translate the javascript to python .", "It s just PyV8 s poor error reporting at fault .", "Is there a reliable way to do the necessary conversion in PyV8 other than using JSON", "Does anyone can help me how to use scrapy + pyv8 to eval js code in html", "I m having an issue which seems to be related with the way Python PyV8 s garbage-collection interact .", "So I am wondering how can I call getPanoramaByLocation from python by using PyV8", "PyV8 does just about everything I want except provide a node.js-like environment that would allow me to use node.js modules in PyV8 so it seems like a good starting point .", "I recommend reading through the discussion and the JSContext fix here https : github.com taguchimail pyv8-linux-x64 issues 2 and here https : code.google.com p pyv8 issues detail id 229 sort -id .", "Edit2 : To extend a little bit on the previous point : What you get with PyV8 is a pure non-browser-based javascript runtime environment .", "I need to run a javascript code inside Python .", "And in order to execute JS commands in the code I am using PyV8 .", "But I am unable to load the leaflet.js library into PyV8 context .", "Note : not sure whether this works together with PyV8 you ll have to just try .", "The .py extension on that file is highly misleading there is only one line that may or may not contain actual Python syntax : .. . .. . The file is actually parsed by a Python script https : github.com v8 v8 blob 6413ef4e632e425195beb4ab0ceefe3b308c51e9 tools js2c.py so it is at best a custom domain-specific language .", "https : code.google.com p pyv8 issues detail id 229 sort -id https : code.google.com p pyv8 issues detail id 229 sort -id", "Somehow throw an exception into javascript so that V8 is the one that shows the error which will then include the line numbers .", "I m trying to run PyV8 installed by pip v1.0-dev with Flask v0.10.1 on python v2.7.3 but the application crashes on creating the Global context there is no way to know what went wrong because no exception is being caught .", "when trying to install PyV8 in ubuntu and type the command : .. . .. . python setup.py build .. . .. . then it display this error : .. . .. . error : command c++ failed with exit status 1 .. . .. . anybody have solution about this", "In an older trunk version of PyV8 https : code.google.com p pyv8 source browse trunk setup.py r 422 there are some options referencing the profiler but I don t find any documentation on it .", "I m sorry if not - but this is from v8 src js macros.py", "Unlike say the CPython interpreter or even the V8 JavaScript interpreter Node.js was not designed to be embedded has no interface for doing so and no serious plan to change that .", "I m using PyV8 and I get this error : .. . .. . I am indeed running multiple things at once .", "I don t fully understand how PyV8 works yet which makes me less able to ask a good question.. .", "I wonder if that wasn t the point of PyV8.JSLocker but it didn t seem to work well using only that class for the lock.. .", "There is actually an executable https : code.google.com p pyv8 downloads list that installs it for you on windows .", "If not is there a way to load the node.js environment into PyV8 so I can use node.js modules", "How do you know it crashes and isn t hanging on ctxt PyV8.JSContext g", "Had the same problem and this worked for me : .. . .. . Solution found in comments here - https : code.google.com p pyv8 wiki HowToBuild", "seems like you are not alone.. . see this http : code.google.com p pyv8 issues detail id 228 forum .", "when i build pyv8 in ubuntu i got this error have download all the dependence it seems still miss something", "The only thing I can think of would be to get down into the source and see how undefined and null are being tracked in the JavaScript v8 engine and trying to have that object return when you evaluate JavaScript statements with null or undefined results.. . but that s quite the daunting task .", "I ve temporarily solved the issue by disabling python s garbage-collection and calling gc.collect and PyV8.JSEngine.collect together every few seconds when no JavaScript is being run .", "I am trying to install PyV8 to debian I tried to ubuntu too according the steps here http : www.wikisecure.net importing-pyv8-engine-into-python-v2-7-the-easy-way .. . .. . However I always get ImportError : libboost python.so.1.41.0 : cannot open shared object file : No such file or directory .. . .. . I installed boost using apt-get install .", "Whatever I try with PyV8 I always get massive memory-leaks .", "These are targeted at a specific version of PyV8 however which is the only version I can recommend see discussion in the linked issues http : stackoverflow.com questions 28416300 error-installing-pyv8-from-source-on-ubuntu 28422675 28422675 so your results may vary if you use them as-is .", "The error I am being hit with is : .. . .. . I have tried the same code in JSFiddle and it works great I can only assume running the JS from a browser allows access to more functions that the V8 engine allows .", "rclark s server-side leaflet needs node.js specific extensions so it won t work in PyV8 .", "Try to somehow get a DOM into your PyV8 possibly using andreasgal and then use leaflet from there .", "Get the currently running javascript line number and include it in the python exception .", "I cannot check it but this http : code.google.com p pyv8 issues detail id 132 post suggests you could fix it by specifying a different version", "It seems that you downloaded wrong binary 32-bit 64 bit for PyV8 .. . .. . FOR 32-bit arch Use these steps : .. . .. . .. . .. . For 64 bit arch Use these steps :", "I can tell you my pip command is trying to install version 0.5 of pyv8 and I can t seem to force it to download 1.0", "This approach is documented in the following issue : .. . .. . https : code.google.com p pyv8 issues detail id 229 sort -id https : code.google.com p pyv8 issues detail id 229 sort -id .. . .. . If I d start over I would look into doing IPC between a node.js process and a python process to get the same functionality in a more stable and efficient manner .", "What I ended up doing was protecting the entry points into javascript processing from fresh python with a threading.Lock .", "I haven t managed to find any mention of this anywhere.. . the trouble with only running on .eval at a time is that I have javascript code calling python code which calls back into the javascript code.. .", "Sorry I ve had a closer look at the server-side-github - both it and its dependency jsdom require node.js so they re not compatible with PyV8 .", "The answer described in the following PyV8 ticket solved it for me - albeit the garbage-collection now takes up a lot of CPU time .", "To get around this I moved my PyV8 code into a celery worker and let it do the garbage-collection in the background .", "You d have to bridge both window and document somehow since these objects are not available in PyV8 .", "http : stackoverflow.com questions 3289601 null-object-in-python there is no null or undefined in Python just None .. . so you would only be able to represent undefined and null from JavaScript as None in Python .", "This is not Python .", "Here is my code : .. . .. . The output I m getting when firing a GET to this app before it crashes is : .. . .. . When I m trying to run an PyV8 without the Flask it works fine .", "In short support for PyV8 is almost non-existent - either you use it just as a toy or you follow exactly this recipe or you spend a significant amount of time and effort to fork the repo and make it better .", "I d just write this as ctx PyV8.JSContext ctx.enter ctx.locals.data a : 1 print ctx.eval data.length Could you try this as a hello world before doing something more complex", "To build from source using pip you can run : .. . .. . Or using flier https : github.com flier the author it seems s migrated github repository https : github.com flier pyv8 :", "The require function already being in JS context bypassed this lock whereas callbacks that went back out into Python and back into JavaScript went through the lock .", "You need to refer this thread stackoverflow.com questions 10136319 http : stackoverflow.com questions 10136319 executing-javascript-from-python", "It s possible to disable garbage-collection for good by changing the source code of V8 .", "This question already has an answer here : .. . .. . Executing Javascript from Python questions 10136319 executing-javascript-from-python 2 answers .. . .. . I have JS script that gets as a parameter another JS and unpack it from eval function packers .", "Python has no define statements .", "The line is not valid Python syntax .", "Now I d like to improve its performance but there don t seem to be any hooks to enable the V8 profiler ." ] }
{ "confidence": [ 50.01990509033203, 47.45909881591797, 47.30513000488281, 46.902923583984375, 44.58313751220703, 44.20713424682617, 43.5267448425293, 43.523406982421875, 42.92169189453125, 41.58396530151367, 40.72096252441406, 40.47737121582031, 40.117759704589844, 39.840450286865234, 39.09210205078125, 38.56798553466797, 38.45001220703125, 37.8775520324707, 37.46384048461914, 36.96094512939453 ], "content": [ "Question : Im trying to install PyV8 from source . I had downloaded v8 from svn and then exported v8 homepath and tried to do a setup.py install on the pyv8 folder . Im getting a host of errors below .. . .. . .. . Can any body guide me to get pyv8 working .. . .. . Or If i can find a debian package for PyV8 Comment : pip install also fails running build ext building PyV8 extension creating build temp.linux-i686-2.7 creating build temp.linux-i686-2.7 src gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DBOOST PYTHON STATIC LIB -Ilib python inc -Ilib boost inc -Ilib v8 inc -I usr include python2.7 -c src Exception.cpp -o build temp.linux-i686-2.7 src Exception.occ1plus : warning : command-line option -Wstrict-prototypes is valid for Ada C ObjC but not for C++ In file included from src Exception.cpp : 1 : src Exception.h : 6 : 16 : error : v8.h : No such file or directory .. . Answer : Since IMO PyV8 is not well maintained it only really works with certain combinations of V8 builds and PyV8 builds . Beware of memory-leaks as well I needed to wrap it with some very specific cleanup code to get something stable . This approach is documented in the following issue : .. . .. . https : code.google.com p pyv8 issues detail id 229 sort -id https : code.google.com p pyv8 issues detail id 229 sort -id .. . .. . If I d start over I would look into doing IPC between a node.js process and a python process to get the same functionality in a more stable and efficient manner . Comment : Ok im open for any approach . . It will be helpful if you can give me some info on how can i integrate node.js with python .My only aim is to generate javascript and get the output which i can use it in python for other process Thanks in advance : D : D", "Question : I have a JS codebase running within PyV8 . Now I d like to improve its performance but there don t seem to be any hooks to enable the V8 profiler . In an older trunk version of PyV8 https : code.google.com p pyv8 source browse trunk setup.py r 422 there are some options referencing the profiler but I don t find any documentation on it . Do you have any idea on how to profile in PyV8 without me having to rewrite the Python-to-JS wrapper Do you know of any JS-only-framework that uses monkey patching in order to generate a timing profile It s not a big deal if there is some overhead involved - better than not having a profile at all . .. . Answer : At the end I ve found the hint I needed in the book Pro Javascript Design Patterns : Use a closure together with func.apply to apply instrumentation on functions . Unfortunately the JS way of decorating functions is not quite as clean as Python s - but hey it works and I get the information I need to drill down into the code s performance characteristics . profile.js .. . .. . my module 1.js .. . .. . PyV8 side .. . .. . Output", "Question : I m using PyV8 and I d like to disallow assigning javascript-objects to my python objects because of a current memory leak bug with PyV8 https : code.google.com p pyv8 issues detail id 186 . I came upwith this code : .. . .. . However the traceback I get when I do this is not very helpful : .. . .. . Particularly it gives no information at all about which javascript file was running or what the line number was etc . I see two potential solutions : .. . .. . 1 . Get the currently running javascript line number and include it in the python exception . 2 . Somehow throw an exception into javascript so that V8 is the one that shows the error which will then include the line numbers . How would I go about doing either .. . Answer : Not sure if this is by design but for now raise TypeError from within Python causes a javascript exception to be raised and displayed along with line and column numbers . Great success", "Question : when trying to install PyV8 in ubuntu and type the command : .. . .. . python setup.py build .. . .. . then it display this error : .. . .. . error : command c++ failed with exit status 1 .. . .. . anybody have solution about this Comment : Can you add you full install error-log here Comment : I used this Guide for installing PyV8 : Importing PyV8 Engine into Python 2.7 the easy way http : www.wikisecure.net importing-pyv8-engine-into-python-v2-7-the-easy-way this is good for me : .. . Answer : Here is what I have in my Dockerfile . The following is tested and runs in production on Ubuntu 12.04 so it s possible that you need to change some dependency package names for more recent versions . However I recommend using exactly the PyV8 V8 setup that I m using - I ve spent at least a week to figure out which combination doesn t lead to memory-leaks . I recommend reading through the discussion and the JSContext fix here https : github.com taguchimail pyv8-linux-x64 issues 2 and here https : code.google.com p pyv8 issues detail id 229 sort -id . In short support for PyV8 is almost non-existent - either you use it just as a toy or you follow exactly this recipe or you spend a significant amount of time and effort to fork the repo and make it better . If starting fresh I recommend using Node-JS instead and communicate through some IPC method with Python .", "Question : I installed the libv8 and libboost-all-dev Ubuntu packages then ran .. . .. . And got : .. . .. . What s going wrong How can I fix it Comment : seems like you are not alone.. . see this http : code.google.com p pyv8 issues detail id 228 forum . I cannot check it but this http : code.google.com p pyv8 issues detail id 132 post suggests you could fix it by specifying a different version .. . Answer : To solve this I had to remove some of the Ubuntu packages I tried : .. . .. . Then checkout PyV8 from subversion .. . .. . The setup.py script took care of fetching and building the compatable version of V8 : Comment : The googlecode svn isn t working for me . I ve forked a pyv8 implementation by flier the maintainer for the pyv8 pip package and I m working on changing it to use google s git repository chromium.googlesource.com v8 v8.git https : chromium.googlesource.com v8 v8.git", "Question : I m using PyV8 and I d like to call a javascript function with undefined . It seems that evaluating both undefined and null return Python s None value : .. . .. . The problem of course is that they re not the same in javascript : .. . .. . Is there any nice way to go about doing this I d actually like to write a Python function callable from javascript which returns undefined in certain cases and null in other cases . EDIT for SSCCE http : sscce.org -ness : Comment : @bfavaretto : I meant that I d like to write a Python function which returns undefined instead of null Comment : I missed that sorry . .. . Answer : As you can see here : null object in Python http : stackoverflow.com questions 3289601 null-object-in-python there is no null or undefined in Python just None .. . so you would only be able to represent undefined and null from JavaScript as None in Python . JavaScript makes a distinction between the two for its own reasons and as far as I can tell from my own experiences undefined is fairly unique to JavaScript . The only thing I can think of would be to get down into the source and see how undefined and null are being tracked in the JavaScript v8 engine and trying to have that object return when you evaluate JavaScript statements with null or undefined results.. . but that s quite the daunting task .", "Question : I installed the libv8 and libboost-all-dev Ubuntu packages then ran .. . .. . And got : .. . .. . What s going wrong How can I fix it Comment : seems like you are not alone.. . see this http : code.google.com p pyv8 issues detail id 228 forum . I cannot check it but this http : code.google.com p pyv8 issues detail id 132 post suggests you could fix it by specifying a different version .. . Answer : I used this Guide for installing PyV8 : Importing PyV8 Engine into Python 2.7 the easy way http : www.wikisecure.net importing-pyv8-engine-into-python-v2-7-the-easy-way this was good for me :", "Question : I m having an issue which seems to be related with the way Python PyV8 s garbage-collection interact . I ve temporarily solved the issue by disabling python s garbage-collection and calling gc.collect and PyV8.JSEngine.collect together every few seconds when no JavaScript is being run . However this seems like a pretty hackish fix.. . in particular I m worried PyV8 might decide to collect at an inopportune time and cause problems anyway . Is there any way to disable PyV8 s automatic garbage-collection for good at least until I have a few days to spend figuring out exactly what is going on and thus to actually fix the issue Comment : You re having an issue.. . but what s the issue Comment : the issue is that javascript code will randomly stop executing . it used to segfault but after i did the above fix it no longer segfaults. . however sometimes the javascript simply doesn t run . Comment : the issue is irrelevant for the bounty the bounty will go to he who figures out how to conquer V8 s garbage-collection .. . Answer : It s possible to disable garbage-collection for good by changing the source code of V8 . In V8 s source edit src heap.cc and put a return statement in the beginning of Heap : : CollectGarbage . Other than that it s not possible AFAICT : V8 will always invoke garbage-collection when it s about to run out-of-memory . There is no configurable way to not have it do that . Comment : Ah I wondered if that was the case . It seems I d have to patch it myself to implement what I want.. . thanks for providing a good starting point for that Comment : In order for this to work I had to disable snapshotting like this : make x64.debug -j9 snapshot off", "Question : when trying to install PyV8 in ubuntu and type the command : .. . .. . python setup.py build .. . .. . then it display this error : .. . .. . error : command c++ failed with exit status 1 .. . .. . anybody have solution about this Comment : Can you add you full install error-log here Comment : I used this Guide for installing PyV8 : Importing PyV8 Engine into Python 2.7 the easy way http : www.wikisecure.net importing-pyv8-engine-into-python-v2-7-the-easy-way this is good for me : .. . Answer : Had the same problem and this worked for me : .. . .. . Solution found in comments here - https : code.google.com p pyv8 wiki HowToBuild 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 : Played around with formatting and it appears that links can be part of code-formatting . Fixed", "Question : I am looking at the option of embedding node.js into python to add node.js functionality to my existing python code . I know that it can be done the other way around as described in this post http : stackoverflow.com questions 10775351 combining-node-js-and-python . However I want to keep the as much of the existing Python project intact as possible which means allowing Python to manage execution . PyV8 does just about everything I want except provide a node.js-like environment that would allow me to use node.js modules in PyV8 so it seems like a good starting point . Does node.js provide an external API similar to that of V8 such that one could modify PyV8 to wrap node.js If not is there a way to load the node.js environment into PyV8 so I can use node.js modules Thanks Comment : what do you want to do that you can t just have a node service running side-by-side with your python script or just node by itself Comment : Instead of asking specifically about Python you should first ask whether Node can be embedded into a C or C++ application . If that s not possible embedding it in Python at least CPython which is what you probably want will not be possible if it is embedding it in Python will at worst be a matter of wrapping the C embedding in a Python C extension module or calling it via ctypes or cffi Comment : Meanwhile last I checked which was a while ago Node unlike CPython or for that matter V8 had no official embedding support and no plans to add any but there were various third-party wrappers like tacnode https : github.com ZECTBynmo tacnode that you can research . Comment : @bitoiu Good question . You may be right a service could be the solution . However given the choice I would prefer a tight integration with node.js for manageability and speed . wrt Speed Node.js will almost certainly be processor bound and spinning up a private instance will help a bit with that . wrt Manageability I would rather not add an additional interface to the system . Comment : it s an overhead but on the system-design contrary to the overhead you might be creating on maintaining a feature embedding which no one else will understand and that could give you further problems in the future . .. . Answer : What you want to do is not supported . Unlike say the CPython interpreter or even the V8 JavaScript interpreter Node.js was not designed to be embedded has no interface for doing so and no serious plan to change that . I can t find any official documentation on that but there are numerous threads like this one https : groups.google.com forum topic nodejs gJMhnTMWc Y that give the relevant information . But that doesn t mean it s impossible . The top layer of Node isn t that complicated and really you d just need to patch out a few parts of it to do different things . And in fact people have tried to do exactly that in projects like tacnode https : github.com ZECTBynmo tacnode . I don t know if any of them are ready for prime time or not but it may be worth looking at them especially if you re willing and able to contribute if they re incomplete . Of course that only gets you embedding in C or C++ you still need to embed in Python . But wrapping a C shared library so you can use it in Python well CPython and PyPy is a long-solved problem Python has had extension modules since almost the beginning as well as ctypes and cffi if you don t want to write any C code . And there are third-party projects like Cython to let you write almost-Python code that directly calls your shared library as-if it were native C and compiles to a Python extension module . So it s almost certainly doable but it s probably not going to be trivial or packaged and ready to go out of the box .", "Question : I am looking at the option of embedding node.js into python to add node.js functionality to my existing python code . I know that it can be done the other way around as described in this post http : stackoverflow.com questions 10775351 combining-node-js-and-python . However I want to keep the as much of the existing Python project intact as possible which means allowing Python to manage execution . PyV8 does just about everything I want except provide a node.js-like environment that would allow me to use node.js modules in PyV8 so it seems like a good starting point . Does node.js provide an external API similar to that of V8 such that one could modify PyV8 to wrap node.js If not is there a way to load the node.js environment into PyV8 so I can use node.js modules Thanks Comment : what do you want to do that you can t just have a node service running side-by-side with your python script or just node by itself Comment : Instead of asking specifically about Python you should first ask whether Node can be embedded into a C or C++ application . If that s not possible embedding it in Python at least CPython which is what you probably want will not be possible if it is embedding it in Python will at worst be a matter of wrapping the C embedding in a Python C extension module or calling it via ctypes or cffi Comment : Meanwhile last I checked which was a while ago Node unlike CPython or for that matter V8 had no official embedding support and no plans to add any but there were various third-party wrappers like tacnode https : github.com ZECTBynmo tacnode that you can research . Comment : @bitoiu Good question . You may be right a service could be the solution . However given the choice I would prefer a tight integration with node.js for manageability and speed . wrt Speed Node.js will almost certainly be processor bound and spinning up a private instance will help a bit with that . wrt Manageability I would rather not add an additional interface to the system . Comment : it s an overhead but on the system-design contrary to the overhead you might be creating on maintaining a feature embedding which no one else will understand and that could give you further problems in the future . .. . Answer : Don t embed . Instead have python and Node in two different processes and communicate between them . RabbitMQ as an example has clients for both Node and Python .", "Question : at the first I ran this : .. . .. . this message showed : .. . .. . I used this code for run python-Wappalyzer : .. . .. . error was : .. . .. . I installed lxml and Requests but not fixed . how can I fix this problem .I ran this code in ubuntu 14.4 and kali but had same problem . Comment : You can find some guidance towards the error you re getting here http : stackoverflow.com questions 5713731 what-does-this-error-mean-invalid-elf-header . Comment : I used this link http : stackoverflow.com questions 5713731 what-does-this-error-mean-invalid-elf-header lq 1 but not worked Comment : I used this Guide for installing PyV8 : Importing PyV8 Engine into Python 2.7 the easy way http : www.wikisecure.net importing-pyv8-engine-into-python-v2-7-the-easy-way this is good for me : .. . Answer : It seems that you downloaded wrong binary 32-bit 64 bit for PyV8 .. . .. . FOR 32-bit arch Use these steps : .. . .. . .. . .. . For 64 bit arch Use these steps :", "Question : I need to determine if a given location has street view or not . So getPanoramaByLocation js API is the only way I can use as far as i know . However I have a python script to handle all those location data . So I am wondering how can I call getPanoramaByLocation from python by using PyV8 Do I need to load https : maps.googleapis.com maps api js in python I am kinda new to this . So any hint and guide would be greatly appreciated . Thanks .. . Answer : Having had a quick look at the JS file you linked the following answer applies for the most part 1 . You d have to bridge both window and document somehow since these objects are not available in PyV8 . The difficulty doing this is rather high so if you re not very experienced in JS and python I d look for other solutions . I recommend using a python native library instead . A quick google https : encrypted.google.com search hl en q python 20google 20maps reveals quite a few options . 1 Loading JavaScript library in Python using PyV8 http : stackoverflow.com questions 23098477 loading-javascript-library-in-python-using-pyv8 23100907 23100907", "Question : Whatever I try with PyV8 I always get massive memory-leaks . Even when executing evals with empty strings it still seems to leak memory somehow . In the example posted below 10 Million executions of eval with an empty string generate 320MB of memory of which only 20MB gets collected when explicitly calling the garbage collector afterwards . Whether the context is reachable or not reachable anymore doesn t seem to make a difference for me . I ve tested my python itself with a similar test and it doesn t leak memory . Am I doing something wrong Versions .. . .. . PyV8 Revision 557 built on same machine using PyV8 s setup.py .. . .. . V8 Revision 19632 built on same machine using PyV8 s setup.py .. . .. . OS : Ubuntu 12.04 .. . .. . Test Code .. . .. . Output .. . Answer : The answer described in the following PyV8 ticket solved it for me - albeit the garbage-collection now takes up a lot of CPU time . To get around this I moved my PyV8 code into a celery worker and let it do the garbage-collection in the background . Ping me if you want to see the code for this right now I m really out of time to prepare sample code . https : code.google.com p pyv8 issues detail id 229 sort -id https : code.google.com p pyv8 issues detail id 229 sort -id", "Question : I am trying to use some features of the leaflet.js library in my Python code . And in order to execute JS commands in the code I am using PyV8 . But I am unable to load the leaflet.js library into PyV8 context . When I do this .. . .. . I get the error : .. . .. . I even tried to load the jquery library before thinking maybe leaflet is dependent on it . But then I get the error .. . .. . Is there a way I can successfully load JS library .. . Answer : You can only use libraries that are not depending on the DOM since it is obviously not available server-side . One example of such a universally usable library is mustache.js . Edit : Looks like there is a way apparently leaflet s can still be useful without the DOM - one simply has to somewhat recreate DOM first as this nice fellow shows here : https : github.com rclark server-side-leaflet . Note : not sure whether this works together with PyV8 you ll have to just try . Edit2 : To extend a little bit on the previous point : What you get with PyV8 is a pure non-browser-based javascript runtime environment . It has no idea about what window or document is since V8 is not concerned about UI . Leaflet needs the DOM to operate so it needs to think it lives inside a browser . rclark s server-side leaflet needs node.js specific extensions so it won t work in PyV8 . There s this javascript DOM implementation that might work in PyV8 : https : github.com andreasgal dom.js . You d have to load all the js sources provided there into PyV8 in the right order - note that this library only provides instructions for spidermonkey not V8 . I.e . this is going to be tricky to get right . So as I see it you have the following options in order of increasing complexity and or skill required : .. . .. . 1 . Someone has apparently solved this problem for python in the following thread but apparently using some rectangular approximation using OTR - see his github link in the comments to the accepted answer . I d check this out and decide whether the approximation is good enough . Lookup country for GPS coordinates without Internet access http : stackoverflow.com questions 3643929 lookup-country-for-gps-coordinates-without-internet-access .. . 2 . Switch to a browser based environment and use leaflet directly . 3 . Switch to node.js and use rclark s port . 4 . Try to somehow get a DOM into your PyV8 possibly using andreasgal and then use leaflet from there . 5 . Adapt leaflet for your needs such that it doesn t have any DOM dependencies anymore start with shielding anything using window and or document in something like if typeof window object window null .. . . If you get this working I d make a pull request to the leaflet project since many others might profit from your work . Comment : Could you please be clearer Does that mean I cannot load leaflet.js or is there a way Comment : See my edit apparently it is possible . Comment : Okay treat me like someone who s new to any kind of web development . The problem I just know basic JS and his instructions don t make sense to me . So can you please elaborate a bit Comment : Sorry I ve had a closer look at the server-side-github - both it and its dependency jsdom require node.js so they re not compatible with PyV8 . In the following SO thread they link-to another js-DOM-implementation that you could try to make work together with leaflet : stackoverflow.com questions 9833756 http : stackoverflow.com questions 9833756 how-to-load-a-nodejs-module-in-pyv8 . But I m afraid this isn t going to be a walk in the park especially if you don t have solid web developer experience . If I were you I d look for Python-native implementations of what leaflet does . Comment : It s a shame that so many JS libraries are being developed with a dependency on the DOM even when it s not necessary - this is the main reason why server-side javascript is still not a great ecosystem .", "Question : I m using PyV8 and I get this error : .. . .. . I am indeed running multiple things at once . How can I get around this limitation I haven t managed to find any mention of this anywhere.. . the trouble with only running on .eval at a time is that I have javascript code calling python code which calls back into the javascript code.. . Comment : Is it possible that you have some kind of infinite recursion from JS to Python and back If so you could easily run into this well before you run out of stack space recursion limit in either interpreter . Comment : @abarnert : good thinking but no this is a limited case . It s just this : - python - javascript - python - javascript . Specifically : I m running a JS script from python which calls a require python function which calls .eval on a script loaded from disk . Comment : Well I suspect you re either going to need to post an SSCCE http : sscce.org trace through the code starting in window.py or run it in a debugger because unless this is a more common problem than I think which it may well be it doesn t seem likely anyone will be able to help with just this info . Comment : @abarnert : I think you re right . I don t fully understand how PyV8 works yet which makes me less able to ask a good question.. . I ll likely figure it out in the process of asking a better question which is fine w me of course .. . Answer : Oh boy . It s just PyV8 s poor error reporting at fault . What happened is my app uses pygame and it was posting too many pygame events thus overflowing its queue before dealing with them . I really wish PyV8 would show the line numbers where the error happened in the python code called from the javascript code.. .", "Question : null .. . Answer : The documents about pyv8 is not sufficiency . I want to use pyv8 in my scrapy project but i don t know how to use that .. . .. . In my mind there should have three step to emulate browser : .. . .. . load HTML DOM .. . eval JS Code .. . .. . But After I read the article http : blog.dutchcoders.io using-scrapy-and-pyv8-to-scrape-inline-javascript http : blog.dutchcoders.io using-scrapy-and-pyv8-to-scrape-inline-javascript 5D I do not see where the code load HTML DOM . Does anyone can help me how to use scrapy + pyv8 to eval js code in html", "Question : I m trying to pass Python data lists dicts strings.. . arbitrarily nested to PyV8 . The code above prints None presumably because the data object is not transformed to a JSArray and thus data.length evaluates to undefined . Is there a reliable way to do the necessary conversion in PyV8 other than using JSON Comment : I ve never used a global parameter this way in pyv8 . I d just write this as ctx PyV8.JSContext ctx.enter ctx.locals.data a : 1 print ctx.eval data.length Could you try this as a hello world before doing something more complex Comment : Thanks but it s not any better . ctx.locals.x a : 1 ctx.eval x.length ctx.eval x 0 .a prints None and 1 . .. . Answer : Apparently PyV8 doesn t correctly convert python lists to Javascript arrays which leads my list.length to return undefined which is getting converted to None . The answer is to use PyV8.JSArray my list . I ve written the following helper functions for my project that deal with various little problems and make it easy to convert back and forth between python and js objects . These are targeted at a specific version of PyV8 however which is the only version I can recommend see discussion in the linked issues http : stackoverflow.com questions 28416300 error-installing-pyv8-from-source-on-ubuntu 28422675 28422675 so your results may vary if you use them as-is . Example usage : .. . .. . And here are the functions .", "Question : I m using PyV8 and I get this error : .. . .. . I am indeed running multiple things at once . How can I get around this limitation I haven t managed to find any mention of this anywhere.. . the trouble with only running on .eval at a time is that I have javascript code calling python code which calls back into the javascript code.. . Comment : Is it possible that you have some kind of infinite recursion from JS to Python and back If so you could easily run into this well before you run out of stack space recursion limit in either interpreter . Comment : @abarnert : good thinking but no this is a limited case . It s just this : - python - javascript - python - javascript . Specifically : I m running a JS script from python which calls a require python function which calls .eval on a script loaded from disk . Comment : Well I suspect you re either going to need to post an SSCCE http : sscce.org trace through the code starting in window.py or run it in a debugger because unless this is a more common problem than I think which it may well be it doesn t seem likely anyone will be able to help with just this info . Comment : @abarnert : I think you re right . I don t fully understand how PyV8 works yet which makes me less able to ask a good question.. . I ll likely figure it out in the process of asking a better question which is fine w me of course .. . Answer : What I ended up doing was protecting the entry points into javascript processing from fresh python with a threading.Lock . The require function already being in JS context bypassed this lock whereas callbacks that went back out into Python and back into JavaScript went through the lock . This seems to have done the trick for now . I wonder if that wasn t the point of PyV8.JSLocker but it didn t seem to work well using only that class for the lock.. . Comment : hmm this doesn t seem to work . still with only one thing processing at a time I m getting the error . time for more investigation.. .", "Question : I get the following error when installing PyV8 https : code.google.com archive p pyv8 using Python 2.7.10 on Windows : .. . .. . I ran .. . .. . with success as it was recommended in this http : stackoverflow.com questions 11425106 python-pip-install-fails-invalid-command-egg-info and other threads but no luck . Can anybody help .. . Answer : Some mild investigations shows that PyV8 has a preview build for Python 2.7 . It could be that pip is trying to install the Python 2.6 version I can tell you my pip command is trying to install version 0.5 of pyv8 and I can t seem to force it to download 1.0" ] }
[ "yes-answer-long", "yes-answer-short" ]
s
UNK_RELATION
angular-promise@https@123
angular-promise -- angular s q promises provide a powerful abstraction over flow-control - see the official documentation @placeholder : docs.angularjs.org api ng service q .
{ "confidence": [ 86.59527587890625, 84.72432708740234, 76.78986358642578, 74.4153823852539, 59.46812057495117, 56.055870056152344, 55.53729248046875, 53.69383239746094, 53.21300506591797, 52.84122848510742, 52.74644470214844, 52.600311279296875, 51.71052932739258, 51.71052932739258, 51.65545654296875, 50.95576858520508, 50.94845199584961, 50.3199348449707, 48.99059295654297, 48.66937255859375, 48.59097671508789, 48.5080451965332, 48.1724739074707, 47.63286590576172, 47.52806854248047, 47.0822868347168, 46.899009704589844, 46.704811096191406, 44.71725082397461, 44.48841857910156, 44.1562614440918, 43.9139289855957, 43.71677017211914, 43.61735916137695, 43.11357879638672, 42.4420166015625, 42.4085578918457, 42.07158279418945, 40.93927001953125, 40.785343170166016, 40.785343170166016, 40.713623046875, 40.67987060546875, 40.539798736572266, 40.497806549072266, 40.294944763183594, 40.2911491394043, 40.25057601928711, 40.05903625488281, 40.05903625488281, 39.8236083984375, 39.82212448120117, 39.808128356933594, 39.750858306884766, 39.32990264892578, 39.100582122802734, 38.83185577392578, 38.83185577392578, 38.57940673828125, 38.57940673828125, 38.5133171081543, 38.29998779296875, 38.02353286743164, 37.97494125366211, 37.3359375, 37.314605712890625, 37.29811096191406, 37.28336715698242, 37.1605110168457, 36.939483642578125, 36.939483642578125, 36.8034553527832, 36.663055419921875, 36.63920593261719, 36.0721321105957, 36.0526008605957, 35.9061393737793, 35.879638671875, 35.870113372802734, 35.77595520019531, 35.75153732299805, 35.68074417114258, 35.658592224121094, 35.60308837890625, 35.5557975769043, 35.45646286010742, 35.36690139770508, 35.3175163269043, 35.266048431396484, 35.10997772216797, 35.053916931152344, 34.94384765625, 34.719905853271484, 34.56365966796875, 34.515533447265625, 34.515533447265625, 34.515533447265625, 34.41802978515625, 34.31755828857422, 34.28511428833008 ], "content": [ "Docs are more absolute and there is a resolve . . docs.angularjs.org api ng service q https : docs.angularjs.org api ng service 24q", "https : docs.angularjs.org api ng service q .. . .. . Then inside of getLocation", "https : docs.angularjs.org api ng service q https : docs.angularjs.org api ng service 24q .. . .. . Calling resolve does not return a promise it only signals the promise that the promise is resolved so it can execute the then logic .", "I think Angular s deferred s are inspired by the Q library but they re missing a lot of the functionality of Q : docs.angularjs.org api ng service q https : docs.angularjs.org api ng service 24q .. . From what I ve seen those methods aren t available on Angular promises", "I m trying to create a promise in Angular with the q service .", "Read the documentation here docs.angularjs.org api ng . q http : docs.angularjs.org api ng . 24q .", "I m facing an issue to return promises using q all https : docs.angularjs.org api ng service 24q all method .", "On top of that the angular team decided not to implement an actual cancel api https : github.com angular angular.js pull 2452 on q promises .", "Angular q documentation specified deferred.. .", "@Artjom - In Angular 1.5.1 the doc https : docs.angularjs.org api ng service 24q resolve says that .resolve returns a promise .", "AngularJS docs say http : docs.angularjs.org api ng . 24q : .. . .. . q promises are recognized by the templating-engine in angular which means that in templates you can treat promises attached to a scope as-if they were the resulting values .", "q promises are synchronous and tied to Angular digests .", "For the latest version visit AngularJS q Service API Docs https : docs.angularjs.org api ng service 24q .", "Or specifically for AngularJS the AngularJS q Service API Reference https : docs.angularjs.org api ng service 24q .", "You could inject q service and return q.reject reason e.g : .. . .. . From q documentation https : docs.angularjs.org api ng service 24q : .. . .. . Creates a promise that is resolved as rejected with the specified reason .", "Have a question about synchronizing nested promises when using q in Angular .", "2 https : docs.angularjs.org api ng service 24q chaining-promises", "Angular docs : https : docs.angularjs.org api ng service 24http .. . .. . timeout number Promise timeout in milliseconds or promise that should abort the request when resolved .", "However the way Angular promises are built it is not simple to extend q promises .", "See Testing Promises https : docs.angularjs.org guide unit-testing testing-promises and Service Testing https : docs.angularjs.org api ng service 24q testing .", "-- AngularJS q Service API Reference -- q.all https : docs.angularjs.org api ng service 24q all", "The q service https : docs.angularjs.org api ng service 24q is very powerful in angularjs and make our life easier with asynchronous code .", "I ve found a new angular package which add the allSettled functionality to q in angular : .. . .. . https : github.com ohjames angular-promise-extras", "http : docs.angularjs.org api ng service q the-promise-api http : docs.angularjs.org api ng service 24q the-promise-api .. . .. . Because finally is a reserved word in JavaScript and reserved keywords are not supported as property names by ES3 you ll need to invoke the method like promise finally to make your code IE8 and Android 2.x compatible .", ".. . The Breeze Angular Service tells Breeze to use Angular s q for promises and to use Angular s http for ajax calls .", "check q on angular :", "You should add a list of promises in q not resolved promises like in your code which is a promise service .. . .. . Example :", "From the documentation https : docs.angularjs.org api ng service 24http : .. . .. . timeout number Promise timeout in milliseconds or promise that should abort the request when resolved .", "Remember q from Angular and Q by mage Kris Kowal are different albeit with confusingly similar names and the devils are in the details of the particular Promise implementation .", "allSettled is part of kriskowal s Q http : documentup.com kriskowal q but not part of the Angular q implementation .", "Exceptions from q promises are handled by exceptionHandler service and logged by default https : github.com angular angular.js blob v1.5.7 src ng exceptionHandler.js L49 even if they are caught with catch .", "docs.angularjs.org api ng service http deprecation-notice https : docs.angularjs.org api ng service 24http deprecation-notice", "See documentation of Q https : github.com kriskowal q .", "As getLayout is not an angular-promise this was the problem .", "You want to use q.all https : docs.angularjs.org api ng service 24q all which takes an array of promises .", "It might have something to do with Angular q .", "You just need to return a rejected promise with q.reject err : .. . .. . Documentation here https : docs.angularjs.org api ng service 24q reject .", "The semantics should be as so : .. . .. . The q documentation https : code.angularjs.org 1.2.28 docs api ng service 24q only mentions handling of rejected promises and furthermore only promises rejected in a certain way : .. . .. . defered.resolve value resolves the derived promise with the value .", "related : How to return a resolved promise from an AngularJS Service using q", ".. . On failure the promise is rejected with the http response https : docs.angularjs.org api ng service 24http object without the resource property .", "You have make use of promise https : docs.angularjs.org api ng service 24q .", "Do i have to update it manually inside the callback or the digest will be automatically invoked and update the rootScope like declared here https : docs.angularjs.org api ng service 24q differences-between-kris-kowal-s-q-and-q .. . 4 . mention at least one approach of updating the scope from within the promise callback .. . 5 .", "How can I do it using angular promises", "Angular is inspired by the Q library check out the source its actually not that scary .", "This data is returned in an angular-promise .", "The legacy http service creates a q promise L750 https : github.com angular angular.js blob v1.2.x src ng http.js L750 and subsequently attaches the buggy .success method L769 https : github.com angular angular.js blob v1.2.x src ng http.js L769 and the buggy .error method L776 https : github.com angular angular.js blob v1.2.x src ng http.js L776 .", "The problem is that in this case I have to wrap each ng service that returns q promises .", "However there s not public API for exposing status of an Angular promise I think .", "timeout https : docs.angularjs.org api ng service 24timeout already returns a promise so all you need to do here is to chain them :", "As described in the docs https : docs.angularjs.org api ng service 24http the promise callback receives a response object containing status headers data etc .", "What they say is that breeze uses Angular s own promises for promises rather than its own breeze.angular.q which uses Q promises which are more able but also much heavier than q promises which Angular uses .", "Angular doesnt know when the promise will be returned .", "https : www.jonathanfielding.com combining-promises-angular", "-- AngularJS ngResource API Reference https : docs.angularjs.org api ngResource service 24resource .. . .. . .. . .. . all promises .. . .. . Combines multiple promises into a single promise that is resolved when all of the input promises are resolved .", "I can see from these posts that to mimic promises Observables basically just use subscribe instead of then : .. . .. . Angular 1.x q to Angular 2.0 beta http : stackoverflow.com questions 34436429 angular-1-x-q-to-angular-2-0-beta .. . .. . But how do I wait for all invocations in the forEach loop to complete before my system can proceed", "q promises have a little documented feature of automatically wrapping anything returned inside a promise in a promise using q.when .", "You can do that with q.all https : docs.angularjs.org api ng service 24q .", "EDIT Just saw this on here https : docs.angularjs.org api ng service 24http .", "AngularJS uses q service promises with slightly different interface .", "Is there any way to use TypeScript async-await feature with q service promises", "The subject of the question is the q service and how i can force q promises to be resolved without using apply flush .", "@user2857125 see my answer - promises in Angular will recursively assimilate .", "In Angular promises resolve asynchronously and provide their guarantees by resolving via rootScope . evalAsync callback taken from here https : github.com angular angular.js blob master src ng q.js L175 .", "In the case of promises created by the http service the response object has these properties : 1 https : docs.angularjs.org api ng service 24http general-usage .. . .. . data string Object The response body transformed with the transform functions .", "But that would mean one condition returns a promise and the other returns an object .. . .. . So both conditions need to return a promise and we can use q for the first condition .. . .. . Be sure to inject q in service .", "My solution was to create a service function that creates an Angular Promise .. . .. . And in the controller i invoke that function", "Note : The angular documentation https : docs.angularjs.org api ng service 24q includes the following proviso Because finally is a reserved word in JavaScript and reserved keywords are not supported as property names by ES3 you ll need to invoke the method like promise finally callback to make your code IE8 and Android 2.x compatible .", "Is there some angular API-Function that i am missing or are there robust design-patterns or tricks with promise chaining or q.all to handle multiple promises that return the same data", "this wouldn t work because promises shouldn t be created with deferred but chained from promises that are returned from apis .. . .. . Note that this code will decorate every deferred and thus promise object which is created by the q service .", "When you have an async method that may return a promise or value use the q.when https : docs.angularjs.org api ng service 24q when method .", ".. . On success the promise https : docs.angularjs.org api ng service 24q is resolved with the same resource instance or collection object updated with data from server .", "However it s easy to add a state property to q using the provide https : docs.angularjs.org api auto object 24provide service s decorator function .", "github.com angular angular.js blob v1.4.3 src ng q.js L365 https : github.com angular angular.js blob v1.4.3 src ng q.js L365", "As a result I m chaining off of a jQuery promise and not an Angular promise .", "I tried using Angular with Bluebird promises : .. . .. . HTML : .. . .. . JS : .. . .. . Fiddle http : jsfiddle.net 5uMHh .. . .. . However no matter what I tried it kept staying q promises and did not update .", "How to simply return a pre-resolved promise in Angular .. . .. . Resolved promise : .. . .. . Rejected promise :", "enter image description here http : i.stack.imgur.com bXdVe.png .. . .. . From the other side if we look at the q source code https : github.com angular angular.js blob master src ng q.js .. . .. . We can see that there is no reference from a global point to any particular promise but only from a promise to its callbacks .", "AngularJS s q https : docs.angularjs.org api ng service 24q service will help you here .", "From the Q API Reference https : github.com kriskowal q wiki API-Reference .. . .. . To answer another part of your question : .. . .. . This makes it unclear if dfd.resolve promise is valid supported .", "The following code happens to be found in an Angular Service but that doesn t really matter that much it s mostly regards how to create a promise that will promise to throw a certain error .", "Explanation : .. . .. . From AngularJS docs https : docs.angularjs.org api ng service 24q : .. . .. . The then method : .. . .. . then successCallback errorCallback notifyCallback regardless of when the promise was or will be resolved or rejected then calls one of the success or error callbacks asynchronously as soon as the result is available .", "In order to promisify navigationMap use q.when https : docs.angularjs.org api ng service 24q when :", "Update : .. . .. . Due to refactoring of q this is now possible although not documented : .. . .. . Original : .. . .. . Unlike most promise libraries Bluebird Q when RSVP etc q does not expose a synchronous inspection API .", "Looks like q doesn t trigger a digest until the resolved promise is consumed .", "UPDATE .. . .. . How about creating an Angular Service https : docs.angularjs.org guide services for this GetGoogle function-call .", "yeah this is an Angular promise so I think it might be different. .", "But it should be quite easy to convert q promise into a++ promise something like this :", "Someone new to promises or like me familiar with promises but new to Angular could get totally the wrong end of the stick", "To make it clear the function resolve.user returns a q promise .", "The q service-reference cited by the OP is dated .", "It s not advised to use ngInit according the docs : docs.angularjs.org api ng directive ngInit https : docs.angularjs.org api ng directive ngInit", "This may be my lack of experience with q and promises in general but I am stuck .", "The deferred is an outdated and a really terrible way of constructing promises using the constructor solves this problem and more : .. . .. . I don t know if angular promises support the above if not you can do this : .. . .. . Usage is same as promise constructor :", "What you need to use is q.all http : docs.angularjs.org api ng . 24q methods all which combines a number of promises into one which is only resolved when all the promises are resolved .", "Also ES6-promises don t initiate angular-digest cycle .", "Promise.resolve is an ES6 standard and AFAIK it isn t applicable to Angular promises .", "@L1ghtk3ira - I m not sure you really understand Angular or promises .", "Chaining promises .. . .. . Because calling the then method of a promise returns a new derived promise it is easily possible to create a chain of promises .", "In my angular code I have a service that gets this schema : .. . .. . I would like to inject the schema object and not the promise into other services that depend on the schema .", "It is superseded by the Breeze Angular Service which more cleanly configures breeze for Angular development ." ] }
{ "confidence": [ 103.7664794921875, 87.54403686523438, 84.30901336669922, 81.89793395996094, 81.63473510742188, 81.26681518554688, 79.84476470947266, 74.82894897460938, 74.82191467285156, 73.15239715576172, 72.6509780883789, 72.41850280761719, 71.39393615722656, 70.872802734375, 69.99459075927734, 69.30989074707031, 69.08152770996094, 69.06121826171875, 68.93179321289062, 68.11229705810547 ], "content": [ "Question : With jQuery deferreds I m used to be able to check the current state like this : .. . .. . Is there a way to do the same for Angular deferreds or even better promises .. . Answer : Updated : .. . .. . Unfortunately this doesn t looks like its possible with q . You ll have to put this code inside your then method . Other : .. . .. . This is for the Q library not angular s q but similar . Angular is inspired by the Q library check out the source its actually not that scary . https : github.com kriskowal q blob v1 q.js .. . .. . You can use myPromise.inspect .state there are pending rejected fulfilled .. . .. . You also have : .. . .. . Check out this JSfiddle and open the console for logged results . http : jsfiddle.net S6LzP .. . .. . More granular Looking at the defer function on line 488 : .. . .. . Mostly notably the method at the very bottom deferred.notify . Example usage : Comment : I think Angular s deferred s are inspired by the Q library but they re missing a lot of the functionality of Q : docs.angularjs.org api ng service q https : docs.angularjs.org api ng service 24q .. . From what I ve seen those methods aren t available on Angular promises Comment : My mistake I ve quickly looked through the angular github github.com angular angular.js blob master src ng q.js https : github.com angular angular.js blob master src ng q.js and it looks like this isn t possible but you should still be able to use notify . :", "Question : My service is : .. . .. . I m calling this in my config file via : .. . .. . However it complains that then is not a function . Aren t I returning the resolved promise .. . Answer : Return your promise return deferred.promise . It is the promise API that has the then method . https : docs.angularjs.org api ng service q https : docs.angularjs.org api ng service 24q .. . .. . Calling resolve does not return a promise it only signals the promise that the promise is resolved so it can execute the then logic . Basic pattern as follows rinse and repeat .. . http : plnkr.co edit fJmmEP5xOrEMfLvLWy1h p preview Comment : How will the promise get resolved then The .then will never get triggered Comment : you resolve the deferred before you return deferred.promise . Comment : @Shamoon deferred.resolve is resolved in the moment you call it because there is no value given in . I would suggest instead of write deferred.resolve Hi just write deferred.resolve to get a resolved empty promise . But you could also use q.when to get a resolved thenable empty promise - . Comment : IMHO this is better than the accepted answer which by using timeout to generate a promise that will be resolved is failing to show the mechanics of manually creating and resolving promises .", "Question : The q service https : docs.angularjs.org api ng service 24q is very powerful in angularjs and make our life easier with asynchronous code . I am new to angular but using deferred API is not very new to me . I must say that I completely ok with the How to use part of documentation + there are very useful links for that within the docs + I checked out the source either . My question is more about the under the hood parts of deferred and promise API objects in angular . What are the exact phases in their life cycles and how are they interacts with rootScope.Scope s . My assumptions are that when the promise resolves - it invokes the digest loop yes no Can one provide a detailed answer with specific respect to the following list of aspects : .. . .. . 1 . What is the order of things that happen in each of your described steps phases .. . 2 . When new deferred object with a new promise instance created - who aware of it is it important 3 . How exactly the scope updated when promise object being resolved Do i have to update it manually inside the callback or the digest will be automatically invoked and update the rootScope like declared here https : docs.angularjs.org api ng service 24q differences-between-kris-kowal-s-q-and-q .. . 4 . mention at least one approach of updating the scope from within the promise callback .. . 5 . I assume there a lot of other useful aspects feel free to provide them all . I will appreciate and accept the most detailed answer with as much as possible references to docs or source that i couldn t find by myself . I can t find any previously discussion with this topic if there already was - please post links . ps : +1 for any one that will help by suggesting a better title for this question please add your suggestions in a comment . Cheers .. . Answer : Promises have three states .. . .. . Pending - this is how promises start . Fulfilled - this is what happens when you resolve a deferred or when the return-value from .then fulfills and it generally analogous to a standard return-value . Rejected - This is what happens when you reject a deferred when you throw from a .then handler or when you return a promise that unwraps to a rejection it is generally analogous to a standard exception thrown . In Angular promises resolve asynchronously and provide their guarantees by resolving via rootScope . evalAsync callback taken from here https : github.com angular angular.js blob master src ng q.js L175 . Since it is run via evalAsync we know that at least one digest cycle will happen after the promise resolves normally since it will schedule a new digest if one is not in progress . This is also why for example when you want to unit test promise code in Angular you need to run a digest loop generally on rootScope via rootScope.digest since evalAsync execution is part of the digest loop . Ok enough talk show me the code : .. . .. . Note : This shows the code paths from Angular 1.2 the code paths in Angular 1.x are all similar but in 1.3+ q has been refactored to use prototypical inheritance so this answer is not accurate in code but is in spirit for those versions . 1 When q is created it does this https : github.com angular angular.js blob master src ng q.js L173 : .. . .. . Which in turn does : .. . .. . And only resolves on nextTick passed as evalAsync inside resolve and notify : .. . .. . On the root scope evalAsync is defined as : .. . .. . Which as you can see indeed schedules a digest if we are not in one and no digest has previously been scheduled . Then it pushes the function to the asyncQueue . In turn inside digest during a cycle and before testing the watchers : .. . .. . So as we can see it runs on the asyncQueue until it s empty executing the code in your promise . So as we can see updating the scope is simply assigning to it a digest will run if it s not already running and if it is the code inside the promise run on evalAsync is called before the watchers are run . So a simple : .. . .. . Suffices keeping it simple . note angular distinguishes throws from rejections - throws are logged by default and rejections have to be logged explicitly Comment : Thanks And once again for revealing the relevant source parts I will definitely accept this answer completely perfect I feel that i can safely move on now Comment : @arty sure enjoy promises - they re truly a useful abstraction . Also it would be great if now that you understand how it works you could support this proposal : github.com angular angular.js issues 6697 https : github.com angular angular.js issues 6697 Comment : This answer explained a lot . We were using deferreds in our tests and it took quite a while for us to realise that we had to digest once until it was resolved .", "Question : I m experiencing a weird bug on IE8 while trying to catch a promise reject promise returned by a basic ngResource call : .. . .. . This code work with .then success fail syntax : .. . .. . but this one fails with .then success .catch fail syntax : .. . .. . and the IE error pointing to the .catch line is : .. . .. . Expected identifier .. . .. . Am I doing something wrong someone reproduce it or is it a common IE8 due to restricted keyword Thanks .. . Answer : http : docs.angularjs.org api ng service q the-promise-api http : docs.angularjs.org api ng service 24q the-promise-api .. . .. . Because finally is a reserved word in JavaScript and reserved keywords are not supported as property names by ES3 you ll need to invoke the method like promise finally to make your code IE8 and Android 2.x compatible . Same for catch .", "Question : I am fairly new to using promises I mostly stick to straight up callbacks . The following code happens to be found in an Angular Service but that doesn t really matter that much it s mostly regards how to create a promise that will promise to throw a certain error . So this is how it would happen with callbacks being incorporated which avoids the problem : .. . .. . ...but changing the above to use pure Promises I don t know what to do exactly : .. . .. . I know there are different ways to structure the code to avoid the problem at hand but I am curious if there is way to solve it directly . Comment : ES6 Promise you could use return Promise.reject error value Comment : yeah this is an Angular promise so I think it might be different. . Comment : See How to return a resolved promise from an AngularJS Service http : stackoverflow.com a 30779102 1048572 .. . Answer : You could inject q service and return q.reject reason e.g : .. . .. . From q documentation https : docs.angularjs.org api ng service 24q : .. . .. . Creates a promise that is resolved as rejected with the specified reason .", "Question : Given an unresolved deferred dfd and a then-able promise promise which may or may not be deferred is there a way to proxy the promise into the deferred The semantics should be as so : .. . .. . The q documentation https : code.angularjs.org 1.2.28 docs api ng service 24q only mentions handling of rejected promises and furthermore only promises rejected in a certain way : .. . .. . defered.resolve value resolves the derived promise with the value . If the value is a rejection constructed via q.reject the promise will be rejected instead . This makes it unclear if dfd.resolve promise is valid supported . Also I cannot use q.when which does take a then-able because the promise of the defered has already been returned . The Angular version is 1.2.x . .. . Answer : Yes deferred.resolve takes a promise . deferred.resolve value .. . .. . Calling resolve with a pending promise causes promise to wait on the passed promise becoming fulfilled with its fulfillment value or rejected with its rejection reason or staying pending forever if the passed promise does . Calling resolve with a rejected promise causes promise to be rejected with the passed promise s rejection reason . Calling resolve with a fulfilled promise causes promise to be fulfilled with the passed promise s fulfillment value . Calling resolve with a non-promise value causes promise to be fulfilled with that value . From the Q API Reference https : github.com kriskowal q wiki API-Reference .. . .. . To answer another part of your question : .. . .. . This makes it unclear if dfd.resolve promise is valid supported . Also I cannot use q.when which does take a then-able because the promise of the defered has already been returned . The promise created by deferred.promise can be given to more that one recipient . Each recipient can call the .then method on that promise . The promise can only be resolved once either to a value or an error . But the container can be read by more that one consumer . Think of a promise as a container for a value which you can get in the future by the .then .catch and .finally methods . You can visit the container more than once but its contents are immutable when it resolves . Deprecation of the .success and .error methods in the http service .. . .. . The AngularJS team in their new found wisdom have decided to deprecate the .success and .error methods . Those methods were buggy and I say good riddance . For more information on the deprecation or should I say failure of the .success and .error methods visit the latest AngularJS http Service API Docs https : docs.angularjs.org api ng service 24http . We should avoid the .success and .error methods and learn to use the .then .catch and .finally from now on . The q service-reference cited by the OP is dated . For the latest version visit AngularJS q Service API Docs https : docs.angularjs.org api ng service 24q . UPDATE for Legacy AngularJS v1.2 .. . .. . I did some spelunking in the AngularJS Github https : github.com angular angular.js blob v1.2.x src ng http.js L716 . The legacy http service creates a q promise L750 https : github.com angular angular.js blob v1.2.x src ng http.js L750 and subsequently attaches the buggy .success method L769 https : github.com angular angular.js blob v1.2.x src ng http.js L769 and the buggy .error method L776 https : github.com angular angular.js blob v1.2.x src ng http.js L776 . What this means is that people stuck with using the older version of AngularJS can start migrating to the .then .catch and .finally methods . An example with two consumers of the same http promise . Notice that the .then method returns data differently than the .success method . Also both consumers should check for errors . So even users of legacy AngularJS can start writing .success and .error free code . Comment : Remember q from Angular and Q by mage Kris Kowal are different albeit with confusingly similar names and the devils are in the details of the particular Promise implementation . Comment : AngularJS takes its q service from Kris Kowal s source . So this API reference is from the horse s mouth . Comment : Sadly we must support IE8 hence the dated Angular version specified and documentation link used . Comment : @user2864740 See the update for legacy AngularJS 1.2", "Question : I am getting the error Cannot read property of promise of undefined . .. . .. . Here is the code that is throwing it : .. . .. . the resolvePromise method : .. . .. . sharedDataService looks like this : .. . .. . finally the dataAccessService : .. . .. . the original promise is throwing an error . When I put breakpoints various places I can see my data is being returned sometimes . The functionality of sharedDataService is almost one of a chaching service . Why is my original promise returning undefined Comment : getData doesn t return anything when the if is false . A return inside a callback doesn t return to the outer function Comment : @charlietfl There is a line in there that says return storedData in the .then of the else statement Comment : That only returns to then .. . it does not return to getData . You are going to need to return a promise for both conditions of if Comment : @charlietfl I m don t fully understand : .. . Answer : Your getData method doesn t have a return when if is false . So you would need to return entitiyDataPromise . But that would mean one condition returns a promise and the other returns an object .. . .. . So both conditions need to return a promise and we can use q for the first condition .. . .. . Be sure to inject q in service . In controller would be : Comment : q is an object without resolve for me -- options are all defer reject and when Comment : not sure what you mean.. . it is a documented method Comment : this article was helpful : bennadel.com blog http : www.bennadel.com blog 2735-q-when-is-the-missing-q-resolve-method-in-angularjs.htm Comment : Docs are more absolute and there is a resolve . . docs.angularjs.org api ng service q https : docs.angularjs.org api ng service 24q Comment : var deferred q.deferred then deferred.resolve storedData", "Question : The q service https : docs.angularjs.org api ng service 24q is very powerful in angularjs and make our life easier with asynchronous code . I am new to angular but using deferred API is not very new to me . I must say that I completely ok with the How to use part of documentation + there are very useful links for that within the docs + I checked out the source either . My question is more about the under the hood parts of deferred and promise API objects in angular . What are the exact phases in their life cycles and how are they interacts with rootScope.Scope s . My assumptions are that when the promise resolves - it invokes the digest loop yes no Can one provide a detailed answer with specific respect to the following list of aspects : .. . .. . 1 . What is the order of things that happen in each of your described steps phases .. . 2 . When new deferred object with a new promise instance created - who aware of it is it important 3 . How exactly the scope updated when promise object being resolved Do i have to update it manually inside the callback or the digest will be automatically invoked and update the rootScope like declared here https : docs.angularjs.org api ng service 24q differences-between-kris-kowal-s-q-and-q .. . 4 . mention at least one approach of updating the scope from within the promise callback .. . 5 . I assume there a lot of other useful aspects feel free to provide them all . I will appreciate and accept the most detailed answer with as much as possible references to docs or source that i couldn t find by myself . I can t find any previously discussion with this topic if there already was - please post links . ps : +1 for any one that will help by suggesting a better title for this question please add your suggestions in a comment . Cheers .. . Answer : when the promise resolves - it invokes the digest loop Yes . You can test this by a simple template : .. . .. . and controller code that changes the scope.state variable after a delay : .. . .. . You can see this at http : plnkr.co edit fIfHYz9EYK14A5OS6NLd p preview . After a second the text in the HTML shows Resolved and digest cycle must have run . The call to setTimeout rather than timeout is deliberate to ensure that it must be resolve which ends up starting the digest loop . This is confirmed by looking in the source : resolve https : github.com angular angular.js blob g3 v1 2 src ng q.js L207 calls its callbacks via nextTick https : github.com angular angular.js blob g3 v1 2 src ng q.js L174 which is a function that passed the callbacks to rootScope . evalAsync which according to the evalAsync docs https : code.angularjs.org 1.2.16 docs api ng type 24rootScope.Scope 24evalAsync : .. . .. . at least one digest cycle will be performed after expression execution .. . .. . Those same docs https : code.angularjs.org 1.2.16 docs api ng type 24rootScope.Scope 24evalAsy also say : .. . .. . Note : if this function is called outside of a digest cycle a new digest cycle will be scheduled .. . .. . so whether the stack is already in the digest loop can change the exact order of events . .. . .. . 1 . What is the order of things that happen in each of your described steps phases .. . .. . Going into the previous example in detail : .. . .. . 1 . var d q.defer The deferred object s promise is in a pending state . At this point virtually nothing has happened you just have a deferred object with resolve reject notifiy and promise properties . Nothing has used or affected the digest loop .. . .. . 2 . d.promise.then function scope.state Resolved and digest cycle must have run .. . .. . The promise is still in a pending state but with a then success callback registered . Again nothing has used or affected the digest loop or any scope . 3 . window.setTimeout function d.resolve 1000 .. . .. . After 1 second d.resolve will be called . This passes the callback defined in Step 2 above to evalAsync via nextTick https : github.com angular angular.js blob g3 v1 2 src ng q.js L340 . 4 . evalAsync will call the callback .. . .. . 5 . evalAsync will then ensure one digest cycle will be called . .. . .. . 2 . When new deferred object with a new promise instance created - who aware of it is it important Only the caller of q.defer . Nothing happens with respect to any scope until resolved is called or indeed reject or notify . .. . .. . 3 . How exactly the scope updated promise object being resolved Do i have to update it manually inside the callback or the digest will be automatically invoked and update the rootScope like declared here .. . .. . As mentioned the digest loop will be automatically started by calling resolve if it s not in it already . .. . .. . 4 . mention at least one approach of updating the scope from within the promise callback .. . .. . The example above gives this . .. . .. . 5 . I assume there a lot of other useful aspects feel free to provide them all . Not that I can think of Comment : I m not really sure why you added another answer an hour later . Would you mind explaining what you think this answer explains that mine does not so I can better understand what you think mine is missing Sorry and thanks . Comment : @BenjaminGruenbaum I don t think my answer particularly explains anything yours doesn t . I wanted to given an answer that tried to be clearer and focused on different things by a Using a short example rather than the source of Angular with a working Plunker to see it working b addressing the OPs questions individually especially regarding the order of what happens when a promise is created - resolved c omitting the introducing about states of promises : the OP suggests this isn t required .", "Question : I m trying to create a promise in Angular with the q service . It returns an object retrieved from a web service . If the object is in the cache it returns it without calling the web service . The problem is that the two resolves are getting called . Maybe Am I using a promise anti-pattern Here is my code : .. . .. . Thank you Comment : Yes you are http : stackoverflow.com q 23803743 1048572 - good that you ve asked : - Comment : see also How to return an object in my case http : stackoverflow.com q 28057294 1048572 .. . Answer : You shouldn t need to wrap everything in the q call . In order to promisify navigationMap use q.when https : docs.angularjs.org api ng service 24q when :", "Question : If I understand correctly promises API is very confusing any error occurred in a promise is suppressed so the following code : .. . .. . is buggy as badData is not necessarily true if bad data is logged . The desired behaviour for me is to see a console error upon every real runtime-error and leave handling rejections to me . Am I missing something here What is the correct approach Checking if the error is Error on each catch block seems tedious . Comment : Other promise implementation are much better debuggable http : stackoverflow.com questions 25827234 how-to-debug-javascript-promises .. . Answer : Unless the rejection was explicitly constructed from Error class or its child rejections can be differentiated by their types . Exceptions from q promises are handled by exceptionHandler service and logged by default https : github.com angular angular.js blob v1.5.7 src ng exceptionHandler.js L49 even if they are caught with catch . Without error instanceof Error type check console.error error will result in logging them twice . Despite reject and throw are used interchangeably http : stackoverflow.com questions 33445415 javascript-promises-reject-vs-throw most of the times for q promises it makes sense to reject rejection reasons and throw errors as Error objects to keep this scheme working . Comment : In a jasmine test I m seeing errors suppressed not logged when there is a catch after then . It seems the link you provided is talking about angular expression errors i.e . in HTML templates . Comment : @Uri It talks about any kind of JS errors that may happen inside Angular app callbacks except SyntaxError that cannot be caught . The question doesn t touch upon Jasmine or testing . Any way this is not true . When ngMock is loaded it brings its own implementation of exceptionHandler https : docs.angularjs.org api ngMock provider 24exceptionHandlerProvider that rethrows exceptions from exceptionHandler to Jasmine . see here http : plnkr.co edit 9RkyIQ1KYuFQi5QEM9n9 p preview . This behaviour is configurable with exceptionHandlerProvider .", "Question : New TypeScript async-await feature uses ES6 promises . AngularJS uses q service promises with slightly different interface . Is there any way to use TypeScript async-await feature with q service promises Comment : And.. . did you try Comment : Yes . The first problem is that I have to convert every promise-response from ng-service to use await against it . The second problem is that ES6-promises generated by await expression don t start angular-digest cycle Comment : @Random : Have you solved the issue with the digest cycle Comment : Sorry forgot about the question . Yes I ve added wrapper for promise constructor . Details are in answer below . .. . Answer : I do not think you will be able to use them directly . But it should be quite easy to convert q promise into a++ promise something like this : Comment : The problem is that in this case I have to wrap each ng service that returns q promises . Also ES6-promises don t initiate angular-digest cycle . So in this case I have to call apply after each await", "Question : With jQuery deferreds I m used to be able to check the current state like this : .. . .. . Is there a way to do the same for Angular deferreds or even better promises .. . Answer : The answer to your question is : yes there is a way . The other answers nicely cover the built-in limitations of q . However it s easy to add a state property to q using the provide https : docs.angularjs.org api auto object 24provide service s decorator function . Put this decorator inside of a config block and all q -instantiated deferred and promise objects will have a state property with the value pending fulfilled or rejected . Check out this plunk http : plnkr.co edit 9y5TnQFCtiHoeidxpzfO p preview .. . .. . .. . .. . Skeptical you are effectively modifying q itself wrapping every deferred with another deferred .. . .. . Actually this is not the case . q s original defer constructor is called exactly one time . It is simply decorated with additional functionality by internally attaching an event handler via then . Note that an additional defer object is instantiated as a result-of the additional then callback which is automatically created with each deferred object.. . which is to be expected because this is how angular works internally . this wouldn t work because promises shouldn t be created with deferred but chained from promises that are returned from apis .. . .. . Note that this code will decorate every deferred and thus promise object which is created by the q service . This means that any API which utilizes q will be automatically decorated with the state property . So regardless of how you use q whether with some API or on it s own this solution decorates both the deferred object and the promise and I have provided the plunk http : plnkr.co edit 9y5TnQFCtiHoeidxpzfO p preview to prove it . .. . .. . Production-worthy This approach is unit testable it s guaranteed not to break any application already using q and it s flexible in the sense that you could later add additional decorators to q without modifying the old one s . Comment : Yes this wouldn t work because promises shouldn t be created with deferred but chained from promises that are returned from apis Comment : I ve responded to your comments in the answer . Comment : @GilBirman I know what a provider is : You are creating an extra deferred for every deferred fourth line . That said I give you points for creativity although I hope you don t actually do this in Angular production code . Comment : @NateBarbettini well - for one thing q went through several big changes over the lifespan of 1.2 a huge internal overhaul between 1.2 and 1.3 and almost underwent an even bigger overhaul . Today you d do this completely differently deferred and promises are prototype based - you could override .then directly without the overhead of this solution creating an overhead and allocating an extra closure for every single promise through Angular Promises are slow in Angular as it is getting better recently . Comment : I m curious to hear the use-case of promises where instantiating a closure and some simple objects per promise would create any perceptible performance difference .", "Question : I am using AngularJS leaflet to search for a location and obtain latitude and longitude coordinates . In my service I am calling my code to display map with within the service I wrote a callback which takes lat lng and make an HTTP requests to url to get data related to those coordinates . Ideally I would like to have created a function that returned an http-request and returns the promise in the controller . The problem is that getMarkets is a callback and I can not call .then on the function directly because it needs to be passed the coordinates first . It is returning the data and I would like to know how to pass the data I receive from http options to the controller so I can render response in the view . Comment : how do u call service function from ur controller u have not added this . .. . Answer : https : docs.angularjs.org api ng service q .. . .. . Then inside of getLocation Comment : Thanks . This returns the promise inside of the service . The problem I can not access getLocation . It is inside of this object : L.Control.Search L.Control.extend includes : L.Mixin.Events getLocation Inside the controller it does not recognize Control Comment : Please avoid deferred anti pattern and use return http opts", "Question : I am fairly new to using promises I mostly stick to straight up callbacks . The following code happens to be found in an Angular Service but that doesn t really matter that much it s mostly regards how to create a promise that will promise to throw a certain error . So this is how it would happen with callbacks being incorporated which avoids the problem : .. . .. . ...but changing the above to use pure Promises I don t know what to do exactly : .. . .. . I know there are different ways to structure the code to avoid the problem at hand but I am curious if there is way to solve it directly . Comment : ES6 Promise you could use return Promise.reject error value Comment : yeah this is an Angular promise so I think it might be different. . Comment : See How to return a resolved promise from an AngularJS Service http : stackoverflow.com a 30779102 1048572 .. . Answer : You just need to return a rejected promise with q.reject err : .. . .. . Documentation here https : docs.angularjs.org api ng service 24q reject .", "Question : AngularJS docs say http : docs.angularjs.org api ng . 24q : .. . .. . q promises are recognized by the templating-engine in angular which means that in templates you can treat promises attached to a scope as-if they were the resulting values . So could someone please explain the reason this fiddle http : jsfiddle.net RamanChodzka Rbg8C not working It s not possible to change text field value . But assigning promises that http service returns to a scope field works like a charm . Controller : .. . .. . Html : Comment : Could you show me how you assigned a promise returned by http which worked the way you wanted Comment : @Dogbert Here is pseudocode to illustrate what I was talking about : scope.item http method : post url : find my item .then function response return response.item Another example that uses resource approach can be found in this tutorial http : docs.angularjs.org tutorial step 11 . Starting from the line : Notice how in PhoneListCtrl we replaced .. . with scope.phones Phone.query Comment : Oops just created test example http : plnkr.co edit VP1Td3WtdM0E7n5HJH3W p preview and it appears not to work with any promise Comment : Hey guys to get it to work I had to use .success function .then function r if r.data my-result return r.data my-result .. . Answer : I believe the reason your first fiddle does not work is because you are essentially binding scope property item to a promise . When you attempt to alter the value by typing into the text field angular notices the activity and then reassigns resets the value of item to the result-of the promise which hasn t changed . The solution provided by @asgoth sets assigns the value of item once when the promise is resolved . There is no binding going on here i.e item is not bound to the promise so altering the value via the textbox does alter the value .", "Question : What happens with q.all when some calls work and others fail I have the following code : .. . .. . When all of the http calls work then the allResponses array is filled with data . When one fails the it s my understanding that the second function will be called and the error variable given details . However can someone help explain to me what happens if some of the responses work and others fail .. . Answer : I believe since the promise library is based on Q implementation as soon as the first promise gets rejected the reject callback is called with the error . It does not wait for other promises to resolved . See documentation of Q https : github.com kriskowal q . For Q.all this is what is mentioned .. . .. . The all function returns a promise for an array of values . When this promise is fulfilled the array contains the fulfillment values of the original promises in the same order as those promises . If one of the given promises is rejected the returned promise is immediately rejected not waiting for the rest of the batch . Comment : I think this might be a problem for me . My put requests return data with a new row version number . If that data is not available then the next time I try to do an update that update may fail : - Is there any way that you could think of how I could get around this problem Comment : Read the documentation here docs.angularjs.org api ng . q http : docs.angularjs.org api ng . 24q . See if finally can help you . Maybe you need to break promises down into groups .", "Question : In the following code an exception is caught by the catch function of the q promise : .. . .. . However when I look in the console log output I see the following : .. . .. . enter image description here http : i.stack.imgur.com hExUq.png .. . .. . The exception was caught in Angular but was also caught by the error-handling of the browser . This behavior does reproduce with Q library . Is it a bug How can I truly catch an exception with q .. . Answer : Is it a bug No . Looking in the source for q https : github.com angular angular.js blob g3 v1 2 src ng q.js L253 reveals that a deliberate try-catch block is created to respond to exceptions thrown in the callback by .. . .. . 1 . Rejecting the promise as through you had called deferred.reject .. . 2 . Calling the registered Angular exception hander . As can be seen in the exceptionHandler docs https : docs.angularjs.org api ng service 24exceptionHandler the default behaviour of this is to log it to the browser console as an error which is what you have observed . .. . was also caught by the error-handling of the browser .. . .. . To clarify the exception isn t handled directly by the browser but appears as an error because Angular has called console.error .. . .. . How can I truly catch an exception with q The callbacks are executed some time later when the current call stack has cleared so you won t be able to wrap the outer function in try-catch block . However you have 2 options : .. . .. . Put in try-catch block around the code that might throw the exception within the callback : .. . .. . f1 .then function data .. . try .. . return f2 .. . catch e .. . Might want convert exception to rejected promise .. . return q.reject e .. . .. . .. . .. . .. . Change how Angular s exceptionHandler service behaves like at How to override exceptionHandler implementation http : stackoverflow.com q 13595469 1319998 . You could potentially change it to do absolutely nothing so there would never be anything in the console s error-log but I don t think I would recommend that .", "Question : As the success and error functions are deprecated in AngularJS I am updating my codes replacing them with then . Now according to my understanding these two pieces of codes should behave identically : .. . .. . And .. . .. . But in some cases I am getting different behavior . Can you please explain to me why would that happen and more importantly what would be the way to guarantee the identical behavior using then functions .. . Answer : The .success and .error methods ignore return values . Consequently they are not suitable for chaining . On the otherhand the .then and .catch methods return a derived promise suitable for chaining from returned or throw values or from a new promise . Response Object vs Four Arguments .. . .. . Also notice that the http service provides four arguments data status headers config when it invokes the function provided to the .success and .error methods . The q service only provides one argument response to the functions provided to the .then or .catch methods . In the case of promises created by the http service the response object has these properties : 1 https : docs.angularjs.org api ng service 24http general-usage .. . .. . data string Object The response body transformed with the transform functions . status number HTTP status code of the response . headers function headerName Header getter function . config Object The configuration object that was used to generate the request . statusText string HTTP status text of the response . Chaining promises .. . .. . Because calling the then method of a promise returns a new derived promise it is easily possible to create a chain of promises . It is possible to create chains of any length and since a promise can be resolved with another promise which will defer its resolution further it is possible to pause defer resolution of the promises at any point in the chain . This makes it possible to implement powerful APIs . 2 https : docs.angularjs.org api ng service 24q chaining-promises", "Question : With jQuery deferreds I m used to be able to check the current state like this : .. . .. . Is there a way to do the same for Angular deferreds or even better promises .. . Answer : Update : .. . .. . Due to refactoring of q this is now possible although not documented : .. . .. . Original : .. . .. . Unlike most promise libraries Bluebird Q when RSVP etc q does not expose a synchronous inspection API . There is no way to achieve this from the outside . You have to call .then on the promise and code in that handler will run when the promise fulfills . Comment : how-do-i-use-bluebird-with-angular http : stackoverflow.com questions 23984471 how-do-i-use-bluebird-with-angular Comment : It looks like it was added to 1.3.0 - github.com angular angular.js blob v1.3.0 src ng q.js https : github.com angular angular.js blob v1.3.0 src ng q.js . I couldn t find any reference to state before that . Comment : status can also be -1 but I m not sure what it signifies github.com angular angular.js blob v1.4.3 src ng q.js L365 https : github.com angular angular.js blob v1.4.3 src ng q.js L365 Comment : Properties start with should be considered as private API and not used in your own code . However there s not public API for exposing status of an Angular promise I think . Comment : @muttonUp : -1 appears to be a second resolved case like 1 . It is used to signify when the resolved value is a function or if the value needs to be passed down a promise chain . I imagine -1 means something like so far so good but we have more code to run before the resolution is complete .", "Question : I have a list of objects . The objects are passed to a deferred function . I want to call the function with the next object only after the previous call is resolved . Is there any way I can do this .. . Answer : You can t use .forEach if you want to wait for a promise . Javascript and promises just don t work that way . 1 . You can chain multiple promises and make the promise infrastructure sequence them . 2 . You can iterate manually and advance the iteration only when the previous promise finishes . 3 . You can use a library like async or Bluebird that will sequence them for you . There are lots of different alternatives but .forEach will not do it for you . .. . .. . Here s an example of sequencing using chaining of promises with angular promises assuming objects is an array : .. . .. . And using standard ES6 promises this would be : .. . .. . .. . .. . Here s an example of manually sequencing assuming objects is an array though this does not report back completion or errors like the above option does : Comment : Your reduce solution is elegant but it doesn t quite work . q.defer .resolve resolves a promise but returns undefined so p is undefined for the first element . Comment : @AgDude - If you know what to suggest please propose an edit to my answer . I don t keep up with all the different proprietary promise libraries when there s an ES6 standard for all this now so if this isn t the correct way to create a resolved promise ion angularjs to start the chain then I m not sure what it should be. . Comment : elegant and clean solution Comment : the initial value q.dever .resolve did not work for me Angular 1.4.3 p was undefined on the first call . But this did work : q function resolve resolve Comment : @Artjom - In Angular 1.5.1 the doc https : docs.angularjs.org api ng service 24q resolve says that .resolve returns a promise . Perhaps this was added after 1.4.3 In any case your method works fine too . Also it needs to be q.defer .resolve - you spelled it differently in your comment . I think you could also use q.when true ." ] }
[ "yes-answer-long", "yes-answer-short" ]
https
UNK_RELATION
rockbox@firmware@42
rockbox -- rockbox is a free replacement @placeholder for digital music players .
{ "confidence": [ 46.193443298339844, 33.634124755859375, 24.038169860839844, 14.843320846557617, 14.843320846557617, 14.843320846557617, 14.843320846557617, 14.843320846557617, 14.843320846557617, 14.843320846557617, 14.843320846557617, 14.843320846557617, 14.843320846557617, 14.843320846557617, 14.843320846557617, 11.546462059020996, 11.546462059020996, 11.546462059020996, 11.546462059020996, 11.546462059020996, 11.546462059020996, 11.546462059020996, 11.546462059020996, 11.546462059020996, 11.546462059020996 ], "content": [ "I m using Rockbox on my iPod Classic .", "My cohorts and I at the Rockbox http : www.rockbox.org project have been reading with interest the announcement at the recent CES of the new SDXC standard for Secure Digital storage but we have been left a little mystified as to the technical differences between the SDHC http : en.wikipedia.org wiki Secure Digital SDHC standard and the new SDXC one .", "I base this on the Wikipedia article Secure Digital https : en.wikipedia.org wiki Secure Digital .", "As we understand it there are no technical limitations within SDHC that prevents card sizes of greater than 32 GB .", "The only limit is artificial that is it s written down in the standard .", "The technical limit of SDHC is the same as that announced as the official limit for SDXC which is 2 TB .", "Is SDXC just an official ratification of SDHC beyond 32 GB or is it actually a completely different implementation", "We re keen to make sure our SD drivers can read and write to these new cards but details on the standard are hard to find at the moment without signing an NDA with the SD organisation at any rate and we re not about to do that .", "From everything I ve read and no I m not privy to any NDA-covered info it looks to be a incompatible on a HW-level .", "Apparent Word of God http : www.sdcard.org consumers faq sdxc compat says nothing else than nya-nya you need all new devices to use SDXC .", "IMHO", "Many devices list a maximum size of memory cards of 32 GB based on the SDHC specifications while some devices in practice do work with 64 GB SDXC cards although they may have to be reformatted to FAT32 http : en.wikipedia.org wiki File Allocation Table FAT32 used on SDHC in stead of exFAT used on SDXC proprietary format .", "An example of devices that list as SDHC compatible but that accept 64 GB SDXC cards as well are certain Android smartphones http : forum.xda-developers.com showthread.php t 1389359 .", "The difference seems to be software based .", "An SDHC-compatible device may work with SDXC cards if the device s OS can handle volumes larger than 32 GB and it may be necessary to reformat the SDXC card to FAT32 .", "It supports showing embedded album art from MP3 files but only if those images have the JPG extension .", "Some of my embedded images have the PNG extension .", "The accompanying songs show up without the corresponding album art .", "I m looking for a script that will-change these embedded images to the JPG format so they will be showed correctly .", "This doesn t have to be a bash script - any programming language will do .", "Ok so this http : www.ehow.com how 5900790 convert-cover-art-jpg-png.html pragmatic solution using the Media Monkey shareware program would do what you want but it would not require any programming .", "However if you definetly want to do the conversion programatically and you may well do as this is probably why you posted the message on SO then this is not your answer", "AFAIK this will not work with images embedded in the MP3 file itself", "Ah I assumed that the PNG image was available .", "I ll remove this answer as it s not relevant and I ll look into a different solution ." ] }
{ "confidence": [ 46.1434440612793, 42.84284973144531, 36.37549591064453 ], "content": [ "Question : My cohorts and I at the Rockbox http : www.rockbox.org project have been reading with interest the announcement at the recent CES of the new SDXC standard for Secure Digital storage but we have been left a little mystified as to the technical differences between the SDHC http : en.wikipedia.org wiki Secure Digital SDHC standard and the new SDXC one . As we understand it there are no technical limitations within SDHC that prevents card sizes of greater than 32 GB . The only limit is artificial that is it s written down in the standard . The technical limit of SDHC is the same as that announced as the official limit for SDXC which is 2 TB . Is SDXC just an official ratification of SDHC beyond 32 GB or is it actually a completely different implementation We re keen to make sure our SD drivers can read and write to these new cards but details on the standard are hard to find at the moment without signing an NDA with the SD organisation at any rate and we re not about to do that . .. . Answer : From everything I ve read and no I m not privy to any NDA-covered info it looks to be a incompatible on a HW-level . Apparent Word of God http : www.sdcard.org consumers faq sdxc compat says nothing else than nya-nya you need all new devices to use SDXC . IMHO", "Question : My cohorts and I at the Rockbox http : www.rockbox.org project have been reading with interest the announcement at the recent CES of the new SDXC standard for Secure Digital storage but we have been left a little mystified as to the technical differences between the SDHC http : en.wikipedia.org wiki Secure Digital SDHC standard and the new SDXC one . As we understand it there are no technical limitations within SDHC that prevents card sizes of greater than 32 GB . The only limit is artificial that is it s written down in the standard . The technical limit of SDHC is the same as that announced as the official limit for SDXC which is 2 TB . Is SDXC just an official ratification of SDHC beyond 32 GB or is it actually a completely different implementation We re keen to make sure our SD drivers can read and write to these new cards but details on the standard are hard to find at the moment without signing an NDA with the SD organisation at any rate and we re not about to do that . .. . Answer : Many devices list a maximum size of memory cards of 32 GB based on the SDHC specifications while some devices in practice do work with 64 GB SDXC cards although they may have to be reformatted to FAT32 http : en.wikipedia.org wiki File Allocation Table FAT32 used on SDHC in stead of exFAT used on SDXC proprietary format . I base this on the Wikipedia article Secure Digital https : en.wikipedia.org wiki Secure Digital . An example of devices that list as SDHC compatible but that accept 64 GB SDXC cards as well are certain Android smartphones http : forum.xda-developers.com showthread.php t 1389359 . The difference seems to be software based . An SDHC-compatible device may work with SDXC cards if the device s OS can handle volumes larger than 32 GB and it may be necessary to reformat the SDXC card to FAT32 .", "Question : I m using Rockbox on my iPod Classic . It supports showing embedded album art from MP3 files but only if those images have the JPG extension . Some of my embedded images have the PNG extension . The accompanying songs show up without the corresponding album art . I m looking for a script that will-change these embedded images to the JPG format so they will be showed correctly . This doesn t have to be a bash script - any programming language will do . .. . Answer : Ok so this http : www.ehow.com how 5900790 convert-cover-art-jpg-png.html pragmatic solution using the Media Monkey shareware program would do what you want but it would not require any programming . However if you definetly want to do the conversion programatically and you may well do as this is probably why you posted the message on SO then this is not your answer Comment : AFAIK this will not work with images embedded in the MP3 file itself Comment : Ah I assumed that the PNG image was available . I ll remove this answer as it s not relevant and I ll look into a different solution ." ] }
[]
firmware
UNK_RELATION
google-apps-activity@google-apps-activity@97
google-apps-activity -- the apps activity api lets your app retrieve information about a user s @placeholder .
{ "confidence": [ 35.70920181274414, 34.513641357421875, 32.881629943847656, 27.019577026367188, 24.03041648864746, 22.43830108642578, 18.586843490600586, 17.644187927246094, 17.644187927246094, 17.644187927246094, 17.644187927246094, 17.644187927246094, 17.644187927246094, 17.175731658935547, 16.604381561279297, 14.080892562866211, 13.725227355957031, 13.725227355957031, 12.427295684814453, 11.917047500610352, 11.847185134887695, 10.923304557800293, 8.396681785583496, 8.396681785583496, 8.396681785583496, 8.396681785583496, 8.396681785583496, 8.396681785583496, 8.396681785583496, 8.396681785583496, 8.396681785583496 ], "content": [ "There s still uncertainty on my part but from what I understand the visibility of the result will depend on the permissions set by the object based on the Activity API overview https : developers.google.com google-apps activity api-overview .", "com.google.api.client.googleapis.json.GoogleJsonResponseException : 400 Bad Request code : 400 errors : domain : global message : Bad Request reason : invalidArgument message : Bad Request .. . .. . I am using service account to access activities using Google apps activity API .", "Activities API : https : developers.google.com google-apps activity .. . Drive API : https : developers.google.com drive v3 web about-sdk .. . .. . If you take a close look at the activity parameters https : developers.google.com google-apps activity v1 reference activities list parameters you can see this : .. . .. . drive.ancestorId : Identifies the Drive folder containing the items for which to return activities .", "As for the groupingStrategy https : developers.google.com google-apps activity v1 reference activities list parameters driveui will return a grouped action so that may be a key point for some events not being returned .", "I used the quickstart in the API site and I can already get php responses and access them like event activity- getCombinedEvent user event- getUser target event- getTarget but I need to get into a deeper level and can t get to access the objects that are lists .", "Getting similar exception even while trying it in Google s API explorer .", "First of all it s probably not the Google Drive API you are working with but the activities API .", "Getting the following error any help would be appreciated .", "The permissions are properly set .", "How to get around this problem", "Thanks", "Got answer from this post - Why I am getting 400 error on https : www.googleapis.com appsactivity v1 activities", "http : stackoverflow.com questions 29490333 why-i-am-getting-400-error-on-https-www-googleapis-com-appsactivity-v1-activit .. . .. . source and drive.fileId are mandatory .", "I m using this API to monitor the changes made in the accounts of my domain but I need to store some key actions like permissionChanges deletes etc .", "Ex : if strcmp event- getPrimaryEventType permissionChange 0 print r event modelData permissionChanges 0 addedPermissions 0 permissionId .. . .. . Any way to access modelData in a response made by the API with methods like you can get event or target", "hi drive.ancestorId is designed to retrieve all activities under given folder from whole subtree .", "I tried accesing them by direct reference to the array but this doesn t make the code dynamic and to be able to run by itself .", "Thanks", "EDIT .. . .. . Maybe these details will help to figure out where is the problem : .. . .. . service user : personC file owner : personA .. . .. . activity2 .. . .. . activity1 .. . .. . missing event in ancestor query .. . .. . Changing service user to personA or personB has no impact on result .", "Hi thanks for your comment .", "As you mention querying activities for each file can solve the problem however it will require more api calls even if batch requests are used .", "Your problem seems to be that you are looking at activities on the folder vs activities on the individual file .. . .. . How to solve this .. . If you query the folder for all files and loop through them if you combine all the fileId s activities you will have all activities on files in a folder .", "Is there any reason why activities queried by ancestorId does not return all activities for particular file", "When I use fileId to query activities I can see all singleEvents for given file .", "However when I use ancestorId to query activities I can not find some of them .", "If I change groupingStrategy from driveUi to none I can see the missing events in combinedEvents each event has own combinedEvent but why some of them are not included in singleEvents when using ancestor query along with driveUi when the are present in file query with driveUi", "I ve just checked persmissions of the file-not-found anything that can cause this problem .", "Also I m using the same settings to query by ancestorId and query by fileId - same useremail to initialize Appsactivity service same groupingStrategy driveUi .", "With fileId query I can see all the activities but when I exchange fileId by ancestorId some of the singleEvents are not returned .", "drive.fileId : Identifies the Drive item to return activities for .", "Im looking for answer why it does not behave like it should ." ] }
{ "confidence": [ 49.907562255859375, 42.85772705078125, 29.505279541015625 ], "content": [ "Question : Is there any reason why activities queried by ancestorId does not return all activities for particular file When I use fileId to query activities I can see all singleEvents for given file . However when I use ancestorId to query activities I can not find some of them . If I change groupingStrategy from driveUi to none I can see the missing events in combinedEvents each event has own combinedEvent but why some of them are not included in singleEvents when using ancestor query along with driveUi when the are present in file query with driveUi EDIT .. . .. . Maybe these details will help to figure out where is the problem : .. . .. . service user : personC file owner : personA .. . .. . activity2 .. . .. . activity1 .. . .. . missing event in ancestor query .. . .. . Changing service user to personA or personB has no impact on result . Comment : There s still uncertainty on my part but from what I understand the visibility of the result will depend on the permissions set by the object based on the Activity API overview https : developers.google.com google-apps activity api-overview . As for the groupingStrategy https : developers.google.com google-apps activity v1 reference activities list parameters driveui will return a grouped action so that may be a key point for some events not being returned . Comment : Hi thanks for your comment . I ve just checked persmissions of the file-not-found anything that can cause this problem . Also I m using the same settings to query by ancestorId and query by fileId - same useremail to initialize Appsactivity service same groupingStrategy driveUi . With fileId query I can see all the activities but when I exchange fileId by ancestorId some of the singleEvents are not returned . .. . Answer : First of all it s probably not the Google Drive API you are working with but the activities API . Activities API : https : developers.google.com google-apps activity .. . Drive API : https : developers.google.com drive v3 web about-sdk .. . .. . If you take a close look at the activity parameters https : developers.google.com google-apps activity v1 reference activities list parameters you can see this : .. . .. . drive.ancestorId : Identifies the Drive folder containing the items for which to return activities . drive.fileId : Identifies the Drive item to return activities for . Your problem seems to be that you are looking at activities on the folder vs activities on the individual file .. . .. . How to solve this .. . If you query the folder for all files and loop through them if you combine all the fileId s activities you will have all activities on files in a folder . Comment : hi drive.ancestorId is designed to retrieve all activities under given folder from whole subtree . As you mention querying activities for each file can solve the problem however it will require more api calls even if batch requests are used . Im looking for answer why it does not behave like it should .", "Question : Getting the following error any help would be appreciated . com.google.api.client.googleapis.json.GoogleJsonResponseException : 400 Bad Request code : 400 errors : domain : global message : Bad Request reason : invalidArgument message : Bad Request .. . .. . I am using service account to access activities using Google apps activity API . The permissions are properly set . How to get around this problem Getting similar exception even while trying it in Google s API explorer . Thanks .. . Answer : Got answer from this post - Why I am getting 400 error on https : www.googleapis.com appsactivity v1 activities http : stackoverflow.com questions 29490333 why-i-am-getting-400-error-on-https-www-googleapis-com-appsactivity-v1-activit .. . .. . source and drive.fileId are mandatory .", "Question : null .. . Answer : I m using this API to monitor the changes made in the accounts of my domain but I need to store some key actions like permissionChanges deletes etc . I used the quickstart in the API site and I can already get php responses and access them like event activity- getCombinedEvent user event- getUser target event- getTarget but I need to get into a deeper level and can t get to access the objects that are lists . I tried accesing them by direct reference to the array but this doesn t make the code dynamic and to be able to run by itself . Ex : if strcmp event- getPrimaryEventType permissionChange 0 print r event modelData permissionChanges 0 addedPermissions 0 permissionId .. . .. . Any way to access modelData in a response made by the API with methods like you can get event or target Thanks" ] }
[ "yes-answer-long", "yes-answer-short" ]
google-apps-activity
UNK_RELATION
fileconveyor@sync@83
fileconveyor -- file conveyor is a daemon written in python to detect process and @placeholder files .
{ "confidence": [ 33.58273696899414, 33.04118728637695, 30.23907470703125, 28.524120330810547, 26.758363723754883, 20.267574310302734, 19.642887115478516, 19.4716796875, 16.923912048339844, 16.923912048339844, 16.923912048339844, 16.923912048339844, 16.923912048339844, 16.923912048339844, 16.923912048339844, 16.923912048339844, 16.923912048339844, 16.923912048339844, 16.923912048339844, 16.923912048339844, 16.923912048339844, 16.923912048339844, 16.923912048339844, 16.923912048339844, 16.923912048339844, 16.923912048339844, 16.923912048339844, 16.923912048339844, 16.923912048339844 ], "content": [ "I just installed fileconveyor and created a simple config.xml but the system chokes on start up because it can t find the sftp transporter .", "module name TypeError : not enough arguments for format string root@af-server fileconveyor", "I got the same error when I installed fileconveyor followed the guide INSTALL.txt .", "I am using fileconvayor form https : github.com wimleers fileconveyor .. . .. . but when I run the script I get the following error .", "I ve verified the sftp transporter is there and has what I assume to be good permissions and ownership I m root the files are owned by root and 644 .", "What am I doing wrong", "When I replace this line I get this error Last login : Mon Mar 31 File arbitrator.py line 142 in init transporter class self . import transporter transporter name File arbitrator.py line 1162 in import transporter self.logger.error The Transporter module s was found but its Transporte r class s could not be found .", "Here is the code from arbitrator.py line 142 .. . .. . and the code from line 1162 .. . .. . Here is whole code form that file .. . .. . http : pastebin.com ctsLrckq", "It looks like there are some unresolved dependencies .", "Try solve it with : .. . .. . pip install django-cumulus 1.0.10", "The exception is catching an error two lines earlier than you thought : it is coming in the classname module.TRANSPORTER CLASS .", "Whatever module is it doesn t have a TRANSPORTER CLASS attribute so an exception is raised and classname is never defined .", "If you weren t swallowing the actual error message that would be clear .", "I must say though that this code makes very little sense .", "In that else clause you already have module so why are you reimporting it on the following line", "If he entered the second try clause then module is None .", "Note what the first try clause does .", "@Reef no : the second try is in the else clause of if not module so if he s in there he has a module .", "You are right .", "This code makes very little sense :", "Here is whole code .", "pastebin.com ctsLrckq http : pastebin.com ctsLrckq", "This line : .. . .. . throws an AttributeError exception because module doesn t have a TRANSPORTER CLASS attribute .", "This causes the interpreter to jump to the self.logger.error .. . line before the classname variable is defined .", "Formatting the log string fails when the logger line tries to use the undefined variable .", "In order to fix it you could replace the logger line with this one : .. . .. . Please note that import can raise ImportError which is not catched .", "I guess the author of this code meant to catch it .", "That s because you missed the just after module name and before the .", "Just copy the whole line ." ] }
{ "confidence": [ 42.95658493041992, 39.92724609375, 36.80996322631836, 31.16830062866211 ], "content": [ "Question : null .. . Answer : I just installed fileconveyor and created a simple config.xml but the system chokes on start up because it can t find the sftp transporter . I ve verified the sftp transporter is there and has what I assume to be good permissions and ownership I m root the files are owned by root and 644 . What am I doing wrong", "Question : I am using fileconvayor form https : github.com wimleers fileconveyor .. . .. . but when I run the script I get the following error . Here is the code from arbitrator.py line 142 .. . .. . and the code from line 1162 .. . .. . Here is whole code form that file .. . .. . http : pastebin.com ctsLrckq .. . Answer : I got the same error when I installed fileconveyor followed the guide INSTALL.txt . It looks like there are some unresolved dependencies . Try solve it with : .. . .. . pip install django-cumulus 1.0.10", "Question : I am using fileconvayor form https : github.com wimleers fileconveyor .. . .. . but when I run the script I get the following error . Here is the code from arbitrator.py line 142 .. . .. . and the code from line 1162 .. . .. . Here is whole code form that file .. . .. . http : pastebin.com ctsLrckq .. . Answer : This line : .. . .. . throws an AttributeError exception because module doesn t have a TRANSPORTER CLASS attribute . This causes the interpreter to jump to the self.logger.error .. . line before the classname variable is defined . Formatting the log string fails when the logger line tries to use the undefined variable . In order to fix it you could replace the logger line with this one : .. . .. . Please note that import can raise ImportError which is not catched . I guess the author of this code meant to catch it . Comment : When I replace this line I get this error Last login : Mon Mar 31 File arbitrator.py line 142 in init transporter class self . import transporter transporter name File arbitrator.py line 1162 in import transporter self.logger.error The Transporter module s was found but its Transporte r class s could not be found . module name TypeError : not enough arguments for format string root@af-server fileconveyor Comment : That s because you missed the just after module name and before the . Just copy the whole line .", "Question : I am using fileconvayor form https : github.com wimleers fileconveyor .. . .. . but when I run the script I get the following error . Here is the code from arbitrator.py line 142 .. . .. . and the code from line 1162 .. . .. . Here is whole code form that file .. . .. . http : pastebin.com ctsLrckq .. . Answer : The exception is catching an error two lines earlier than you thought : it is coming in the classname module.TRANSPORTER CLASS . Whatever module is it doesn t have a TRANSPORTER CLASS attribute so an exception is raised and classname is never defined . If you weren t swallowing the actual error message that would be clear . I must say though that this code makes very little sense . In that else clause you already have module so why are you reimporting it on the following line Comment : If he entered the second try clause then module is None . Note what the first try clause does . Comment : @Reef no : the second try is in the else clause of if not module so if he s in there he has a module . Comment : You are right . This code makes very little sense : Comment : Here is whole code . pastebin.com ctsLrckq http : pastebin.com ctsLrckq" ] }
[ "yes-answer-long", "yes-answer-short" ]
sync
UNK_RELATION
xdr@encoding@79
xdr -- xdr external data representation is a standard for the description and @placeholder of data .
{ "confidence": [ 54.97377395629883, 53.22795867919922, 49.38539123535156, 48.59288787841797, 46.916866302490234, 46.916866302490234, 45.22263717651367, 45.02532196044922, 42.70696258544922, 42.70696258544922, 42.70696258544922, 42.70696258544922, 41.612648010253906, 40.970542907714844, 40.970542907714844, 40.67344665527344, 40.67344665527344, 40.67344665527344, 40.67344665527344, 40.67344665527344, 40.67344665527344, 40.67344665527344, 40.67344665527344, 38.76002883911133, 38.638511657714844, 38.638511657714844, 38.638511657714844, 38.526039123535156, 38.526039123535156, 38.22894287109375, 37.52663040161133, 37.15567398071289, 37.15567398071289, 36.85234069824219, 36.85234069824219, 36.194007873535156, 36.194007873535156, 35.479652404785156, 35.479652404785156, 35.479652404785156, 35.479652404785156, 35.479652404785156, 35.479652404785156, 35.479652404785156, 35.479652404785156, 35.479652404785156, 35.479652404785156, 35.479652404785156, 35.479652404785156, 35.479652404785156, 35.193115234375, 35.193115234375, 34.80332946777344, 34.36777114868164, 34.36777114868164, 33.80873107910156, 33.03514862060547, 33.03514862060547, 33.03514862060547, 33.03514862060547, 33.03514862060547, 33.03514862060547, 33.03514862060547, 33.03514862060547, 32.90070343017578, 31.723251342773438, 31.364225387573242, 31.32210922241211, 31.224681854248047, 31.224681854248047, 31.224681854248047, 31.224681854248047, 31.224681854248047, 31.224681854248047, 31.224681854248047, 31.224681854248047, 31.224681854248047, 31.224681854248047, 31.224681854248047, 31.224681854248047, 31.224681854248047, 31.224681854248047, 31.224681854248047, 31.224681854248047, 30.11280059814453, 28.988582611083984, 28.78017807006836, 28.78017807006836, 28.78017807006836, 28.78017807006836, 28.78017807006836, 28.78017807006836, 28.78017807006836, 28.62055015563965, 28.62055015563965, 28.62055015563965, 27.5086669921875, 27.5086669921875, 27.359737396240234 ], "content": [ "XDR is a pretty raw data format .", "I have some data in XDR format .", "I m not very expert of XDR but I found a way that worked to receive data from XDR with a socket connection on TCP .", "I have a C socket server who receive XDR data .", "I want to send JSON data in XDR using the POST method .", "So the stubs use XDR to encapsulate data and send them through the net .", "Unfortunatly there is no error description for XDR errors .", "That is an XDR schema .", "Just use RPC with XDR .", "There is no other kind of XDR object .", "Below are some XDR specifications : .. . .. .", "XDR functions are not blocking .", "Here s my xdr format definition : .. . .. . I m using xdrstdio create that should automatically send the xdr stream after the conversion .", "The messages are encoded with XDR a binary format .", "What XDR library are you using", "Therefore the data format of multi-byte variables will be the same and really won t need to be transformed using XDR .", "I m trying to send chunks of data from a file using an array declared inside a structure through XDR .", "Here s my code : .. . .. . How can I provide the XDR- packed data to newFile.write function", "The binary string you get from p.get buffer is the XDR encoding of the data you ve fed to p .", "I was debugging ganglia http : ganglia.sourceforge.net and came through sending data using XDR through UDP channel .", "So my question is How data encoded into XDR format is being sent through UDP channel here", "I am reading the RFC 4506 http : tools.ietf.org html rfc4506 to understand the XDR data definition language .", "I Have some XDR data packets which are sent over a TCP socket .", "How can I send data with post by xdr : .. . .. . i try do this but not work : .. . .. . If data is set to an empty string or is null it works but if I want to send data it doesn t work .", "Is it possible to use RPC without XDR on linux", "As nos said go ahead and use XDR .", "The idea is to establish a client-server communication encoded with XDR .", "Will that work - C++ XDR -- Protobuf C", "Isn t XDR a C-only spec", "I have python dict : .. . .. . How to can I pack this dict to XDR data format", "is there any memory allocation used by RPC besides the XDR", "In case you want to see this is the xdr implementation im using :", "Does anyone know if there is a library for python who support the creation of xdr records", "Using Wireshark I see that my client correctly send an XDR message to the server BUT I don t see any data go from the server to the client .", "To understand how this XDR data is sent I tried to print the output of the content of msgbuf using fprintf but it always print nothing in spite of the fact that it is a character array .", "But the code below should debug any XDR problems :", "I don t know if it supports XDR schemas .", "I see where the second example is showing the use of XDR .", "The bytes needs to be serialize anyway might as well do it with XDR .", "Thanks to all but I don t know XDR and I have to use it .", "I m writing a server that send an XDR struct over a socket .", "I want to convert an array into xdr format and save it in binary format .", "Does it not like my implementation of my function defined in the XDR", "You helped when you found the xdr man page .", "And In case I have to prepend this myself is there a way to easily get the xdr size", "You just have to read when the XDR library asks you to read .", "The XDR xdr rec stream type deals with streams with length words in them .", "You just have to read when the XDR library asks you to read .", "Are you sure your remote call is indeed using XDR with XDR ENCODE mode", "And you should look at the source code of the XDR portion of libc .", "First you have to do recv to receive the data from your client then call xdrmem create that need the XDR structure that you ll use to the reading a buffer a string the return-value of recv and you have to use XDR DECODE because you re writing from XDR that s codified .", "After calling above function as xdrmem create x msgbuf GANGLIA MAX MESSAGE LEN XDR ENCODE in ganglia appropriate data in the ganglia s specific structure cb- msg is encoded to XDR format by calling the function xdr Ganglia value msg x cb- msg where x is an XDR type of variable .", "It would appear that XDR methods are thread safe : man7.org linux man-pages man3 xdr.3.html http : man7.org linux man-pages man3 xdr.3.html I think I ll just stick with single threads .", "The system utilises RPC and XDR as it s interface definition language .", "does it do anything if i use it for non-allocating XDR procedures", "I m doing the following to generate the stubs : .. . .. . Here s my XDR .. . .. . I don t get any errors compiling the .x file to create the client-server xdr marshalling code or the header .", "i am using XDR for cross-domain resource sharing in ie .", "If answer is no for both options you probably should fallback to JSONp instead of XDR .", "Why don t you use an xdr directly attached to the network stream", "All the resto of th eporject uses XDR so i have to stick to it", "It will execute the code further down the stack regardless of the xdr object completing or not .", "Did you set a timeout value on the XDR as described here", "So I ended up moving my XDR invocation e.g .", "In fact I don t know that .NET still supports XDR at all .", "I m trying to develop an XDR client in C for a file trasnfer application I m using rpcgen to autogenerate .c and .h files .", "I use XDR to read and modify NFS messages between them .. . .. . for example if i want to edit the file size for and get attributes reply i use the struct and function .. . .. . GETATTR3res .. . .. . bool t xdr GETATTR3res XDR xdrs GETATTR3res objp .. . .. . now i want to use the same method to modify replys for .. . .. . RPC : .. . .. . Program : NFSACL 100227 .. . .. . Program version : 3 .. . .. . Procedure : GETACL 1 and SETACL 2 .. . .. . i want to edit the fattr3 attributes field with xdr .. . .. . either a XDR function for NFSACL or even deconstructed XDR function for the fields NFSACL procedures have", "The XML document is using XDR inline schemas as required by the underlying FDT technology so I can t use DTD or W3C schemas and I have to stick to the old and obsolete XDR validation .", "I ve learned how to use FILE f fopen filename w create a header and use fwrite header sizeof int 1 filename then use fwrite ia- data sizeof int ia- len f to write the data to a binary xdr file .", "If I want a function declared that takes 3 shorts as arguments without using XDR Would I declare the function like this", "in the .h file there is extern bool t xdr Request XDR Request in the main I have to declarate something since in the .h file there is extern", "I prefer to do this instead of use fd open you ve only to create the xdr and call xdr Response .", "Unrelated to the XDR question I d suggest using a with-statement to take care of closing the file .", "The XDR libraries used are old and a modern version of the API probably would have used uint8 t instead of char .", "by doing printf 02X msgbuf i .. . .. . Read RFC4506 http : tools.ietf.org rfc rfc4506.txt to learn about the XDR encoding .", "The actual messages are described in an XDR language specification and run through a code generation tool e.g .", "Try to use a simple example first : .. . .. . The specification program is a part of RPCL but XDR language .", "I m assuming that xdr ensures that your server s-function and decoding and encoding can t be executed in parallel .", "Xdr type int IOW you should use hyper represents 32-bit integer .", "Here is the square.x .. . .. . and square xdr.c .. . .. . I m working in Ubuntu 14.04 LTS generating stubs and xdr code with rpcgen -a -M and compiling with gcc .", "You may need to rearchitect this as I suspect XDR is not thread safe--nor should it need to be .", "The main thread must do all the access to the socket and all XDR parsing encoding .", "From there on you just call whatever XDR routines you like and they call the read or write callbacks as appropriate .", "I find the problem in xdr you have to declare the char like a dynamic array of string .", "To transmit string to XDR you should use xdr string not xdr u char show us the .x file for rpcgen .. .", "I ve found that it doesn t hurt to use clnt freeres for any XDR procedure so I just use that to free allocated memory", "RFC 1831 http : tools.ietf.org html rfc1831 will give you a detailed description of how such a structure is serialize but here is what you need to know for your example : .. . .. . All number in XDR are encoded in big-endian order .", "I have a client and a server which communicate eache other with a socket using the XDR notation .", "I have multiple legacy devices with defined RPC interfaces written in C++ XDR .x files .", "Can the XDR .x files be converted to Proto2 or Proto3 .proto style of Protocol Buffers", "It has RPCgen implementation not perfect but operational PortMapper class and base classes for RPC XDR handling .", "I am serializing a packet over XDR but i do not understand how to provide vector of string .", "I had defined every event handler and the timeout property on these XDR objects and none of the handlers were being called .", "stackoverflow.com questions 5250256 http : stackoverflow.com questions 5250256 inconsistent-ajax-xdr-response-from-ie 5411144 5411144", "the strace http : linux.die.net man 1 strace command to help you trace system calls hopefully including the one made by your XDR functions .", "It is pretty much sure that I am not able to understand the XDR specifications because either I have consulted wrong sources or they are outdated .", "One of the XDR stream types deals with streams with length words in them but it s been over 20 years and I don t remember which .", "i m also using the same commands for .. . .. . NFSPROC3 GETATTTR .. . NFSPROC3 FSINFO .. . NFSPROC3 LOOKUP .. . .. . after using valgrind i ve found i have some leaks with the clnt xdr .", "I have found this list of structures that with smaller XDR function can be used to modify the attributes .. . .. . and using xdr post op attr to decode and enconde back", "Unfortunately XDR does not support setRequestHeader MSDN http : msdn.microsoft.com en-us library ie cc288060 28v vs.85 29.aspx shows XDR has a really poor abilities so you can t tell server you want JSON with Accept request header ." ] }
{ "confidence": [ 57.000911712646484, 54.765567779541016, 53.59358596801758, 53.36970520019531, 53.335060119628906, 52.01883316040039, 49.558006286621094, 48.609249114990234, 48.558990478515625, 48.1546516418457, 46.22710037231445, 45.8290901184082, 45.62558364868164, 45.57508087158203, 44.97815704345703, 44.91557693481445, 44.37102508544922, 43.966514587402344, 43.35975646972656, 42.739410400390625 ], "content": [ "Question : I want to convert an array into xdr format and save it in binary format . Here s my code : .. . .. . How can I provide the XDR- packed data to newFile.write function Thanks .. . Answer : XDR is a pretty raw data format . Its specification RFC 1832 http : tools.ietf.org html rfc1832.html doesn t specify any file headers or anything else beyond the encoding of various data types . The binary string you get from p.get buffer is the XDR encoding of the data you ve fed to p . There is no other kind of XDR object . I suspect that what you want is simply newFile.write p.get buffer . Unrelated to the XDR question I d suggest using a with-statement to take care of closing the file .", "Question : I was debugging ganglia http : ganglia.sourceforge.net and came through sending data using XDR through UDP channel . I found the second argument of the function xdrmem create xdrs addr size op strange . Where the syntax of the arguments are given as : .. . .. . The reference of this function is here http : ps-2.kev009.com wisclibrary aix51 usr share man info en US a doc lib libs commtrf1 xdrmem create.htm . As you can see the second argument xdrs of this function is a character array . And this is similarly declared in one of the ganglia s-function as char msgbuf GANGLIA MAX MESSAGE LEN . After calling above function as xdrmem create x msgbuf GANGLIA MAX MESSAGE LEN XDR ENCODE in ganglia appropriate data in the ganglia s specific structure cb- msg is encoded to XDR format by calling the function xdr Ganglia value msg x cb- msg where x is an XDR type of variable . Later to send the encoded data through UDP channel the function Ganglia udp send message udp send channels msgbuf len is called . To understand how this XDR data is sent I tried to print the output of the content of msgbuf using fprintf but it always print nothing in spite of the fact that it is a character array . And it is also evident that the encoded data is sent successfully . So my question is How data encoded into XDR format is being sent through UDP channel here I have pasted a part of code from ganglia here http : paste.bradleygill.com index.php paste id 178644 . You can see from the line 131 to 136 for your reference . Comment : Does this character array contain 0-bytes Comment : I had tried to print the length of msgbuf using strlen and it always returned zero . while sizeof returns 8 . .. . Answer : The messages are encoded with XDR a binary format . The XDR libraries used are old and a modern version of the API probably would have used uint8 t instead of char . Despite it using char it is binary-data - i.e . you cannot print the data as a string . If you want to print this data use a loop where you print each byte as hex e.g . by doing printf 02X msgbuf i .. . .. . Read RFC4506 http : tools.ietf.org rfc rfc4506.txt to learn about the XDR encoding . The actual messages are described in an XDR language specification and run through a code generation tool e.g . rpcgen http : linux.die.net man 1 rpcgen for C code to generate code for encoding decoding . See https : github.com fastly ganglia blob master lib gm protocol.x for the message definitions that Ganglia defines . Comment : Thanks @nos . This makes sense . :", "Question : I m writing a server that send an XDR struct over a socket . Using Wireshark I see that my client correctly send an XDR message to the server BUT I don t see any data go from the server to the client . But the code seems to be correct as it is the same used for the client . I have see that the problem is xdr Response . Is there any mistake on it Thanks to all .. . .. . with : Comment : You could use e.g . the strace http : linux.die.net man 1 strace command to help you trace system calls hopefully including the one made by your XDR functions . Then you can see things like failures . Comment : By the way can xdr Response return with some error-code Have you checked that Comment : Yes xdr Response return an error .. . Answer : I m not very expert of XDR but I found a way that worked to receive data from XDR with a socket connection on TCP . First you have to do recv to receive the data from your client then call xdrmem create that need the XDR structure that you ll use to the reading a buffer a string the return-value of recv and you have to use XDR DECODE because you re writing from XDR that s codified . You have to write something like this : .. . .. . and y should be filled in . Note that buffer is different from buff . I prefer to do this instead of use fd open you ve only to create the xdr and call xdr Response .", "Question : I m toying with the idea of using RPC remote procedure calls on Linux to communicate between two processes on the SAME server . Therefore the data format of multi-byte variables will be the same and really won t need to be transformed using XDR . Is it possible to use RPC without XDR on linux If so do any examples of this exist If I want a function declared that takes 3 shorts as arguments without using XDR Would I declare the function like this Thank you . .. . Answer : Yes that is possible . See the first example in the following rpcgen guide : http : docs.freebsd.org 44doc psd 22.rpcgen paper.pdf Comment : Thank you Matthias . I see where the second example is showing the use of XDR . However it s still unclear to me how I would go about writing the RPCGEN file to say declare a function that takes 3 shorts as arguments without having RPCGEN generate the XDR routines . Please forgive me for being ignorant of these matters I ve never worked with RPC s before . Comment : You shouldn t care . Just use RPC with XDR . It does not matter . The bytes needs to be serialize anyway might as well do it with XDR . Comment : As nos said go ahead and use XDR . The marshaling demarshaling time will be insignificant compared to the networking time .", "Question : null .. . Answer : I m trying to develop an XDR client in C for a file trasnfer application I m using rpcgen to autogenerate .c and .h files . Here s my xdr format definition : .. . .. . I m using xdrstdio create that should automatically send the xdr stream after the conversion . Here s the code : .. . .. . After some I O to get the name of the file to download that s what I do : .. . .. . I expected that after the xdr message function data would be sent to the server but I checked with wireshark and nothing is sent . In the auto generated types.h message is defined as follows : .. . .. . Do I have to fill the fdata field too What am I doing wrong", "Question : null .. . Answer : I have some data in XDR format . How can I unpack this data to any readable form using python Thx .", "Question : I Have some XDR data packets which are sent over a TCP socket . Here a snippet of my code : .. . .. . where the packet is serialized as follow : .. . .. . As a first test I am assuming the maximum packet size to be 2000 and I am always reading 2000 from the other side . As a first test this work fine but I would like to be able to send and receive less information when not required . Furthermore i do not want to have to recompile the client in case i increase the packet size on my server . I would like to know if there is a proper way to send and receive this stream without having to prepend the packet size myself . And In case I have to prepend this myself is there a way to easily get the xdr size Cheers .. . .. . ADDITION : I tried using a xdr rec buffer as follows : .. . .. . If i feed to it a correct buffer with 10 uint32 all works great . Now I tried to cut some bytes at the end of my buffer and I was expecting either xdrrec eof or xdrrec skiprecord to give me an error . This is what I wanted to use to detect that I did not have received all the data yet . What happens instead is that both return with success and the xdr uint32 t blocks the code execution . So what i now really still miss is a way to detect that i had received the full packet before start decoding it with xdr uint32 t . Any suggestion Comment : What XDR library are you using Comment : Hi I am on Linux and I simply include rpc rpc.h Comment : The packet size is irrelevant . You just have to read when the XDR library asks you to read . One of the XDR stream types deals with streams with length words in them but it s been over 20 years and I don t remember which . Comment : Are you suggesting to use xdrrec instead of xdrmem Comment : Yes it was xdr rec the one where you supply your own read and write functions . .. . Answer : The packet size is irrelevant . You just have to read when the XDR library asks you to read . The XDR xdr rec stream type deals with streams with length words in them . All you have to do is supply it with your own read and write functions . It s 22 years since I did this but it wasn t difficult . I don t understand why you think you need to receive a full packet before start ing decoding . You don t . xdr rec will call your read function as often as it needs to . The problem is that xdr uint32 t is blocking .. . .. . No . XDR functions are not blocking . Not one of them . Read the source . It is the read function that blocks . so if i have the read and the xdr uint32 t in the same thread and i run xdr uint32 t before having finished reading the whole stream .. . .. . That doesn t make sense . Read what I wrote above . You just have to read when the XDR library asks you to read . Not before . this risks to block the application . So probably i need to have the socket reading and the decoding in 2 separate threads . No . You don t seem to understand how xdr rec works . You create an xdr rec object and supply it with a read callback function and a write callback function . From there on you just call whatever XDR routines you like and they call the read or write callbacks as appropriate . You don t call them at all . There is no requirement to read the whole stream first . You should do all this in a single thread . Comment : thanks a lot . It all works now", "Question : I m trying to send chunks of data from a file using an array declared inside a structure through XDR . The idea is to establish a client-server communication encoded with XDR . I may have to use the following functions but i m not sure . If yes in which order Note : Am using C language in linux environment . Any help would be appreciated .. . Answer : You should use xdr xdrrec create providing your own read and write routines that read to write from the socket . You should then write or generate an xdr response method for your struct response that calls xdr array for the array and xdr bool for the boolean . Comment : Thank you Thanks great.. .", "Question : null .. . Answer : How can I send data with post by xdr : .. . .. . i try do this but not work : .. . .. . If data is set to an empty string or is null it works but if I want to send data it doesn t work . Comment : When you say doesn t work do you get an error", "Question : I have to ask the question below : .. . .. . I have to send the following XDR message : .. . .. . I know how to enconde array xdr array and bool xdr bool but how can I : .. . .. . 1 Encode the struct 2 Send the struct over a socket Thanks to all but I don t know XDR and I have to use it . Thanks again . N.b . : How title shows I refer to C language and Linux environment . Comment : What is please Comment : It means that this is a variable-length array with maximum 2 32-1 element on it Comment : You might want to read here : docs.oracle.com cd E19683-01 816-1435 6m7rrfn7f index.html http : docs.oracle.com cd E19683-01 816-1435 6m7rrfn7f index.html scroll down to Passing Complex Data Structures Comment : is not C . In C it would be and only be allowed for the last member in a strcut . .. . Answer : The most flexible solution would of course be to use the rpcgen tool to compile the XDR definition to C code which you can then compile and used in your C application . But if you do not want introduce this dependency into your project you can of course write the serialization code by hand . RFC 1831 http : tools.ietf.org html rfc1831 will give you a detailed description of how such a structure is serialize but here is what you need to know for your example : .. . .. . All number in XDR are encoded in big-endian order . All fields in a structure are aligned to 4 bytes and the fields are concatenated in the order they are declared . A float encodes a number as a 32-bit floating-point number . The variable-length array of floats is encoded as a 32-bit integer with containing the number of elements followed by the float numbers . A bool encodes a boolean value as a 32-bit integer where a true value is encoded as the number 1 and a false value is encoded as the number 0 . For example if your struct was filled with 3 floats and the value true you would get the following byte stream : .. . .. . Where the sequences of x y and z are the floating-point numbers .", "Question : I used rpcgen to generate the client and server stub for program I m developing . So the stubs use XDR to encapsulate data and send them through the net . When I execute this piece of code a segmentation-fault is thrown : .. . .. . Instead no problems if I modify it in this way : .. . .. . With GDB I found the segmentation-fault is generated in the xdr u char function called by my remote call . My question is : .. . .. . in the first case the Hello string is allocated in the .rodata section by compiler while in the second a part of heap is used to memorize the string . Might the segmentation-fault be generate because the xdr u char signature require explicitly .. . .. . and not a .. . .. . as you can see here http : publib.boulder.ibm.com infocenter iseries v5r4 index.jsp topic 2Fapis 2Fxdr u char.htm So in this case means that the xdr u char function changes my data .. . Answer : I believe it is changing data when it is receiving and not sending it . Are you sure your remote call is indeed using XDR with XDR ENCODE mode Comment : I think so because the server should print some infos when the corresponding server-side function is called . And no infos are printed .", "Question : null .. . Answer : I have an NFS server built on RPC and i m using clnt call to manually send some specific NFS messages to the server . i m also using the same commands for .. . .. . NFSPROC3 GETATTTR .. . NFSPROC3 FSINFO .. . NFSPROC3 LOOKUP .. . .. . after using valgrind i ve found i have some leaks with the clnt xdr . my question is when should i use clnt freeres does it do anything if i use it for non-allocating XDR procedures is there any memory allocation used by RPC besides the XDR Comment : I ve found that it doesn t hurt to use clnt freeres for any XDR procedure so I just use that to free allocated memory", "Question : I have a proxy server between the client and server . I use XDR to read and modify NFS messages between them .. . .. . for example if i want to edit the file size for and get attributes reply i use the struct and function .. . .. . GETATTR3res .. . .. . bool t xdr GETATTR3res XDR xdrs GETATTR3res objp .. . .. . now i want to use the same method to modify replys for .. . .. . RPC : .. . .. . Program : NFSACL 100227 .. . .. . Program version : 3 .. . .. . Procedure : GETACL 1 and SETACL 2 .. . .. . i want to edit the fattr3 attributes field with xdr .. . .. . either a XDR function for NFSACL or even deconstructed XDR function for the fields NFSACL procedures have Comment : Surely you can get this information more sensibly by running rpcgen on nfs prot.x http : www.opensource.apple.com source Librpcsvc Librpcsvc-19.2 nfs prot.x which contains the RPC definitions themselves .. . Answer : I have found this list of structures that with smaller XDR function can be used to modify the attributes .. . .. . and using xdr post op attr to decode and enconde back", "Question : I want to send JSON data in XDR using the POST method . I m able to send JSON data however the problem is . DOT symbols are converted into underscores . Here is the code : Comment : There was a problem in the server-side-scripting . After fixing that now its working perfectly fine . Comment : go ahead and put that as an answer and mark it correct so that this question as a correct answer . .. . Answer : May be your server-side-scripting is wrong. . this code seems to be correct... .", "Question : I used rpcgen to generate the client and server stub for program I m developing . So the stubs use XDR to encapsulate data and send them through the net . When I execute this piece of code a segmentation-fault is thrown : .. . .. . Instead no problems if I modify it in this way : .. . .. . With GDB I found the segmentation-fault is generated in the xdr u char function called by my remote call . My question is : .. . .. . in the first case the Hello string is allocated in the .rodata section by compiler while in the second a part of heap is used to memorize the string . Might the segmentation-fault be generate because the xdr u char signature require explicitly .. . .. . and not a .. . .. . as you can see here http : publib.boulder.ibm.com infocenter iseries v5r4 index.jsp topic 2Fapis 2Fxdr u char.htm So in this case means that the xdr u char function changes my data .. . Answer : To transmit string to XDR you should use xdr string not xdr u char show us the .x file for rpcgen .. . Comment : I know I know you re right but it was only an example . The problem is that the string I m handling are not NULL-terminated . I just wanted to understand the cause of segmentation-fault . Sorry I couldn t show the .x file it for my thesis and there re some legal constraints on . : Comment : You could debug using the debuggable variant of the libc on a Debian or Ubuntu system install the libc6-dbg package and set LD LIBRARY PATH appropriately . And you should look at the source code of the XDR portion of libc .", "Question : I have been looking through several websites on the Internet and actually wanted to know how do we write specification in a .x file to generate equivalent functions in .c file for RPC . Every site I visited suggested to use following kind of specification in .x file : .. . .. . So to understand practically I obtained gm protocol.x https : github.com fastly ganglia blob master lib gm protocol.x from an open-source project known as ganglia and generated equivalent C source code gm protocol xdr.c https : github.com simplegeo ganglia blob master lib gm protocol xdr.c and C header file gm protocol.h https : github.com simplegeo ganglia blob master lib gm protocol.h using rpcgen . To my surprise from what I have learned and understood gm protocol.x doesn t contain any such RPC specifications shown as code above but still it can generate too many functions in the file gm protocol xdr.c . It is pretty much sure that I am not able to understand the XDR specifications because either I have consulted wrong sources or they are outdated . I could not find any tutorial which could explain the way to generate functions Although I have found specifications to generate struct enum union etc . Please help to learn these specifications . .. . Answer : Typically from .x file you generate three groups of code : message xdr encoder decoder functions client stub and server stub well you can do it by hand as well but it s too much work to get it right . Run rpcgen with -a option too generate client-server sthus and an example implementation . Try to use a simple example first : .. . .. . The specification program is a part of RPCL but XDR language . If one puts above specifications in a test.x file and run it using rpcgen -C test.x then he she would just get .. . .. . test.h test svc.c test clnt.c .. . .. . If one doesn t need any server or client stubs and just need encoder and decoder functions of XDR then every specifications such as enum struct union etc in the file gm protocol.x would be generated into their equivalent C based declarations in gm protocol.h and their corresponding XDR encoder and decoder functions would be generated in gm protocol xdr.c which is the case specified in the question . Running rpcgen -a gm protocol.x would generate gm protocol svc.c and gm protocol clnt.c without any functions . Below are some XDR specifications : .. . .. . enter image description here http : i.stack.imgur.com u2Zmy.png .. . .. . Check the old SUN docu http : www.shrubbery.net solaris9ab SUNWdev ONCDG toc.html Comment : The link seems to be useful but this doesn t answer my question . My question is gm protocol.x doesn t contain any specification as program STLEN but still rpcgen can create gm protocol xdr.c file which contain functions . According to Unix Network Programming Vol 2 by Richard Stevens : The RPC specification RFC 1831 says that the RPC language sometimes called RPCL is identical to the XDR language which is defined in RFC 1832 except for the addition of a program definition which describes the program versions and procedures . So How are these functions created here Comment : rpcgen will generate an encoder decoder function for any struct and enum defined in the .x file.The XDR encoded message is an array of bytes and you need to convert them into corresponding types . Comment : This was what I thought earlier . So this means that there is no need of putting program STRLEN in the .x file to generate encoder decoder functions . +1 for this confirmation . I d edit your answer and add what makes the answer as complete . Thanks .", "Question : I have a C socket server who receive XDR data . I have wrote a C and a Java client . I am trying to write a Python client using xdrlib . When i decode this via the server data are different . This is because data are encoded as to be read via a xdrmem decoder . they do not have start and end of record . Does anyone know if there is a library for python who support the creation of xdr records In c this is done via xdrrec create and in Java this is called XdrTcpEncodingStream . Comment : Minimum packet length packet block size . Need create packet pattern for global use . Every packet contained a block definition . Don t communicate without header definition . Comment : sorry.. . can you rephrase your comment i did not get what you explained.. . .. . Answer : I mostly see xdrlib is the package mostly used . When you have processes that can be done in C or Java You can just run them in c java and use it in python by using and interface created by Swig . Let me know if my understanding doesn t suit the scenario . Comment : well.. . i used Swig in the past but if I use the C library xdrrec create uses different callbacks for retriving the data . I am afraid that this will not be so easy to map in python . I did not try to wrap around the Java version . If I can find a Python module that suit my needs I prefer otherwise I think I will simply stick to java to write my client or wrap the Java library in swig for python Comment : he is searching for a python-module . Swig is always a solution but not what he is asking for", "Question : I have python dict : .. . .. . How to can I pack this dict to XDR data format .. . Answer : This really depends on how you want it packed . As key-value pairs you could use the following : .. . .. . Which would display something like :", "Question : i am using XDR for cross-domain resource sharing in ie . It works perfectly . I need to know how to specify the return dataType in this . I need to get json as responseText . Here is my code .. . Answer : Unfortunately XDR does not support setRequestHeader MSDN http : msdn.microsoft.com en-us library ie cc288060 28v vs.85 29.aspx shows XDR has a really poor abilities so you can t tell server you want JSON with Accept request header . But you can provide query-string parameter that will tell server this info url + format json . Of course server must react on this param otherwise it will make no sense . If you maintain your server for yourself it will be easy task . If not check if your API documentation allows you to request different content-types . If answer is no for both options you probably should fallback to JSONp instead of XDR .", "Question : null .. . Answer : I have a client and a server which communicate eache other with a socket using the XDR notation . Unix environment . The server send a string to client correctly I checked the number of bytes sended it is correct the client receive the string but it is not correct because the printf print NULL . Code server : b is a char .. . .. . Instead this is the client code : .. . .. . Any idea Thank you in advice Comment : How is bf declared Comment : Why don t you use an xdr directly attached to the network stream You also can t read 8 bytes and try to decode it as an 8-byte length string xdr encoding uses length-string encoding ." ] }
[ "yes-answer-long", "yes-answer-short" ]
encoding
UNK_RELATION
acid3@javascript@204
acid3 -- testing specifications for web 2.0 dynamic web-applications from the web-standards project that checks a web browser s compliance with elements of various web-standards particularly the dom and @placeholder .
{ "confidence": [ 53.21566390991211, 50.57745361328125, 49.863868713378906, 47.80990219116211, 33.342506408691406, 33.00641632080078, 32.01811981201172, 26.650531768798828, 26.650531768798828, 26.636730194091797, 25.618133544921875, 23.093772888183594, 23.018325805664062, 23.018325805664062, 21.41262435913086, 19.64505386352539, 17.094675064086914, 17.0286922454834, 15.709306716918945, 15.32118034362793, 14.721410751342773, 13.709506034851074, 13.709506034851074, 13.709506034851074, 13.709506034851074, 13.709506034851074, 13.550294876098633, 10.66447925567627, 10.66447925567627, 10.66447925567627, 10.66447925567627, 10.66447925567627, 10.66447925567627, 10.66447925567627, 10.66447925567627, 10.66447925567627, 10.66447925567627, 10.66447925567627, 10.66447925567627, 10.66447925567627, 10.66447925567627, 10.66447925567627, 10.66447925567627, 10.66447925567627, 10.66447925567627, 10.66447925567627, 10.66447925567627, 10.66447925567627, 10.66447925567627, 10.66447925567627, 10.66447925567627, 10.66447925567627, 10.66447925567627, 10.66447925567627, 10.66447925567627, 10.66447925567627, 10.66447925567627, 10.66447925567627, 10.66447925567627, 10.66447925567627, 10.66447925567627, 10.66447925567627, 10.66447925567627, 10.66447925567627, 10.66447925567627, 10.66447925567627, 10.66447925567627, 10.66447925567627, 10.66447925567627, 10.66447925567627, 10.66447925567627, 10.66447925567627, 10.66447925567627 ], "content": [ "It s just as important to look at the overall compliance with web-standards and how well IE9 implements them .", "As far as I know 100 100 isn t a goal of IE9 but they do plan on improving IE s compliance with web-standards a lot which will directly translate into a higher Acid3 score .", "It s an indication of browser compliance to standards .", "As shown elsewhere Acid3 is no test to use to determine if a browser does well with standards .", "They say in your first link As we said at MIX10 we will continue to build standards support into the IE9 platform and as a byproduct our ACID3 score will increase .", "I thought the Acid3 test score of 95 for IE 9 might be a good index for seeing how well it supports HTML5 and CSS3 but then later found out that Acid3 s Wiki has little mentioning of HTML5 and CSS3 : http : en.wikipedia.org wiki Acid3 .. . .. . Is Acid3 score a good indicator for HTML5 and CSS3 support", "Acid3 doesn t tell you anything .", "ie 9 is live now here is their result : ie.microsoft.com testdrive benchmarks acid3 default.html http : ie.microsoft.com testdrive benchmarks acid3 default.html", "According to this wiki page http : en.wikipedia.org wiki Acid3 IE7 scores 14 100 whilst IE8 scores 20 100 on the Acid3 test .", "And IE9 is not going to be updated to meet any new standards it s only going to get security fixes which is standard when they are pushing a newer browser that is IE10 .", "The fourth IE9 Platform Preview gets 95 100 points on the Acid3 test .", "I would like to further add this link-to the IE blog where they discuss their goals on standards compliance and Acid 3 explicitly : blogs.msdn.com ie archive 2010 05 05 http : blogs.msdn.com ie archive 2010 05 05 html5-and-same-markup-second-ie9-platform-preview-available-for-developers.aspx", "Does anybody know if Microsoft is planning on having IE9 pass with 100 100 on the Acid 3 test http : acid3.acidtests.org", "As you ve pointed out with this excellent graphic IE9 fails the ACID3 test at the very least because it doesn t support text-shadow .", ": .. . .. . Update : I d like to back up my statement that Acid 3 is not designed to be comprehensive with this citation : From http : www.webstandards.org 2008 10 02 dowehaveawinner .. . .. . Acid3 was not meant to be the one and only indication of a browser s performance .", "The current version of IE9 gets a 68 100 on the test can be viewed here http : ie.microsoft.com testdrive benchmarks Acid3 Default.html main site here http : ie.microsoft.com testdrive .", "The HTML5 test - How well does your browser support HTML5 http : www.html5test.com .. . .. . or .. . .. . Modernizr http : www.modernizr.com is an open-source MIT-licensed JavaScript library that detects support for many HTML5 CSS3 features .", "ACID 3 is definitely not an indication of browser performance .", "IE7 : 14 100 .. . IE8 : 20 100 .. . IE9 : 100 100 .. . Firefox 3.6.3 : 94 100 .. . Safari 4 : 100 100 .. . Chrome 4 : 100 100 .. . Opera 10 : 100 100 .. . .. . See Wikipedia http : en.wikipedia.org wiki Acid3 or this page http : www.anomalousanomaly.com 2008 03 06 acid-3 for more information .", "That s almost certainly IE9 being set into in compatibility-mode where it renders with an earlier browser engine .", "In fact IE9 may not even use the canvas element which would be highly detrimental to Microsoft s attempt at making a modern browser for example .", "If not is there a score that gives a good index for them", "Use http : caniuse.com to see which technologies are available in browsers .", "but is there an index or score", "nice .", "know any one for CSS 3", "It is very safe to assume that anything before the latest release is not going to suddenly get better and get a higher score on any tests and you re better off focusing on either testing only with the newest release and assuming your users will upgrade they should be used to things not working if they haven t or if that s not an option using hacks .", "What did IE8 pass with", "What about IE7", "How does it compare to other modern browsers such as Safari Firefox and Chrome", "Well I can confirm that my copy of IE8 gets 12 100 and my copy of FF 3.6 gets 94 100 .", "@codeka - bloody hell .", "The Acid 3 test is old news as it doesn t focus on HTML5 support .", "Microsoft s position has been the same for a while now .", "They are focusing on meeting the needs of their users by attempting to fix the bugs that manifest themselves most often .", "Additionally they are trying to add support for the most requested features .", "and I have heard them say this elsewhere as well .", "They are NOT coding to the test .", "They are not going to attempt to fix the particular parts of the ACID 3 that are failing .", "Rather they are attempting to improve IE 9 as a whole by addressing the failures they see as most important .", "Only as a consequence of that will the ACID score improve .", "I think this is a good strategy .", "If it takes 1000 programmer-hours to fix an oddball rendering error in ACID 3 but that same amount of time could fix 2 or 3 really POPULAR bugs that ACID 3 does not address it s not designed to be comprehensive I would think their resources are better spent on those more popular bugs .", "Obviously what their priorities ought to be could be endlessly debated .", "As can the amount of success they are having .", "So let s not even go there .", "In fact many other test suites are far more important .", ".. . .. . and .. . .. . Many subtests are high on a developer s wish list : Full CSS 3 selectors support media-queries SVG fonts .", "Admittedly a few others test edge cases and more esoteric features but the test was supposed to be a significant challenge", ".. . .. . Although I am not an IE user it s better for us all if Microsoft sticks to improving the important stuff and skips the tests that check for esoteric features .", "@jeffamaphone - Good call .", "+1 to your comment .", "This is by far the best answer .", "thank you", "You re very welcome", "The score has been improving in each platform preview so I expect it to score a lot better by the time it gets released .", ".. . .. . Update : Internet Explorer 9 9.0.8112.16421 achieves 100 100 on acid 3 but the rendered page is not pixel perfect to the reference rendering drop shadows missing and some other sub-pixel junk : .. . .. .", "enter image description here http : i.stack.imgur.com Rf8a8.png", "It s frustrating that the 100 100 is only really an indication of the JavaScript element of the test not the rendering .", "IE9 scores 68 100 but is currently under development .", "I have not read anywhere that Microsoft wants IE9 to pass the Acid test but given their track record I would say that this is not high priority for them .", "Let s hope I m wrong .", "As a comparison the latest nightly-build at the time of this writing of Firefox scores 97 100 the version of Chrome that I m using 5.0.375.29 beta scores 100 100 and Safari scores the same .", "No surprises there the two browsers both use the WebKit rendering framework .", "I hope this is the useful answer you re looking for .", "Right now Microsoft is comparing IE9 to current browsers and trails in several areas but IE9 won t be out in almost two years so the other browsers will be moving forward too .", "Microsoft s track record is not good .", "Sometimes they speak of what they intend to do but those ideas become no-shows and while they show some great graphs and performance numbers its what they don t show that makes you wonder .", "The public beta will be released September 15 .", "We ll see :", "This is correct and 95 is the final score for IE9 .", "IE5 : Not testable .. . IE7 : Not testable .. . IE8 : 26 100 .. . IE9 : 100 100 .. . Firefox Chrome Maxthon Opera Chromium : 100 100 .. . Older versions of IE are tested by Maxthon .", "IE9 compatibility-mode only scores 13 on the ACID 3 test http : zorlac-realm.blogspot.com 2011 03 ie-9-still-fails-acid-3.html ." ] }
{ "confidence": [ 66.43328857421875, 59.875091552734375, 51.52400207519531, 49.798309326171875, 43.612892150878906, 42.81617736816406, 41.99262237548828, 40.18025207519531, 39.46405792236328 ], "content": [ "Question : Does anybody know if Microsoft is planning on having IE9 pass with 100 100 on the Acid 3 test http : acid3.acidtests.org The current version of IE9 gets a 68 100 on the test can be viewed here http : ie.microsoft.com testdrive benchmarks Acid3 Default.html main site here http : ie.microsoft.com testdrive . What did IE8 pass with What about IE7 How does it compare to other modern browsers such as Safari Firefox and Chrome Comment : Well I can confirm that my copy of IE8 gets 12 100 and my copy of FF 3.6 gets 94 100 . Comment : @codeka - bloody hell . Comment : The Acid 3 test is old news as it doesn t focus on HTML5 support . And IE9 is not going to be updated to meet any new standards it s only going to get security fixes which is standard when they are pushing a newer browser that is IE10 . It is very safe to assume that anything before the latest release is not going to suddenly get better and get a higher score on any tests and you re better off focusing on either testing only with the newest release and assuming your users will upgrade they should be used to things not working if they haven t or if that s not an option using hacks . .. . Answer : As shown elsewhere Acid3 is no test to use to determine if a browser does well with standards . In fact IE9 may not even use the canvas element which would be highly detrimental to Microsoft s attempt at making a modern browser for example . It s just as important to look at the overall compliance with web-standards and how well IE9 implements them . Right now Microsoft is comparing IE9 to current browsers and trails in several areas but IE9 won t be out in almost two years so the other browsers will be moving forward too . Microsoft s track record is not good . Sometimes they speak of what they intend to do but those ideas become no-shows and while they show some great graphs and performance numbers its what they don t show that makes you wonder .", "Question : Does anybody know if Microsoft is planning on having IE9 pass with 100 100 on the Acid 3 test http : acid3.acidtests.org The current version of IE9 gets a 68 100 on the test can be viewed here http : ie.microsoft.com testdrive benchmarks Acid3 Default.html main site here http : ie.microsoft.com testdrive . What did IE8 pass with What about IE7 How does it compare to other modern browsers such as Safari Firefox and Chrome Comment : Well I can confirm that my copy of IE8 gets 12 100 and my copy of FF 3.6 gets 94 100 . Comment : @codeka - bloody hell . Comment : The Acid 3 test is old news as it doesn t focus on HTML5 support . And IE9 is not going to be updated to meet any new standards it s only going to get security fixes which is standard when they are pushing a newer browser that is IE10 . It is very safe to assume that anything before the latest release is not going to suddenly get better and get a higher score on any tests and you re better off focusing on either testing only with the newest release and assuming your users will upgrade they should be used to things not working if they haven t or if that s not an option using hacks . .. . Answer : IE7 : 14 100 .. . IE8 : 20 100 .. . IE9 : 100 100 .. . Firefox 3.6.3 : 94 100 .. . Safari 4 : 100 100 .. . Chrome 4 : 100 100 .. . Opera 10 : 100 100 .. . .. . See Wikipedia http : en.wikipedia.org wiki Acid3 or this page http : www.anomalousanomaly.com 2008 03 06 acid-3 for more information . As far as I know 100 100 isn t a goal of IE9 but they do plan on improving IE s compliance with web-standards a lot which will directly translate into a higher Acid3 score . The score has been improving in each platform preview so I expect it to score a lot better by the time it gets released . .. . .. . Update : Internet Explorer 9 9.0.8112.16421 achieves 100 100 on acid 3 but the rendered page is not pixel perfect to the reference rendering drop shadows missing and some other sub-pixel junk : .. . .. . enter image description here http : i.stack.imgur.com Rf8a8.png Comment : It s frustrating that the 100 100 is only really an indication of the JavaScript element of the test not the rendering . As you ve pointed out with this excellent graphic IE9 fails the ACID3 test at the very least because it doesn t support text-shadow .", "Question : Does anybody know if Microsoft is planning on having IE9 pass with 100 100 on the Acid 3 test http : acid3.acidtests.org The current version of IE9 gets a 68 100 on the test can be viewed here http : ie.microsoft.com testdrive benchmarks Acid3 Default.html main site here http : ie.microsoft.com testdrive . What did IE8 pass with What about IE7 How does it compare to other modern browsers such as Safari Firefox and Chrome Comment : Well I can confirm that my copy of IE8 gets 12 100 and my copy of FF 3.6 gets 94 100 . Comment : @codeka - bloody hell . Comment : The Acid 3 test is old news as it doesn t focus on HTML5 support . And IE9 is not going to be updated to meet any new standards it s only going to get security fixes which is standard when they are pushing a newer browser that is IE10 . It is very safe to assume that anything before the latest release is not going to suddenly get better and get a higher score on any tests and you re better off focusing on either testing only with the newest release and assuming your users will upgrade they should be used to things not working if they haven t or if that s not an option using hacks . .. . Answer : IE9 compatibility-mode only scores 13 on the ACID 3 test http : zorlac-realm.blogspot.com 2011 03 ie-9-still-fails-acid-3.html . ACID 3 is definitely not an indication of browser performance . It s an indication of browser compliance to standards . Comment : That s almost certainly IE9 being set into in compatibility-mode where it renders with an earlier browser engine .", "Question : Does anybody know if Microsoft is planning on having IE9 pass with 100 100 on the Acid 3 test http : acid3.acidtests.org The current version of IE9 gets a 68 100 on the test can be viewed here http : ie.microsoft.com testdrive benchmarks Acid3 Default.html main site here http : ie.microsoft.com testdrive . What did IE8 pass with What about IE7 How does it compare to other modern browsers such as Safari Firefox and Chrome Comment : Well I can confirm that my copy of IE8 gets 12 100 and my copy of FF 3.6 gets 94 100 . Comment : @codeka - bloody hell . Comment : The Acid 3 test is old news as it doesn t focus on HTML5 support . And IE9 is not going to be updated to meet any new standards it s only going to get security fixes which is standard when they are pushing a newer browser that is IE10 . It is very safe to assume that anything before the latest release is not going to suddenly get better and get a higher score on any tests and you re better off focusing on either testing only with the newest release and assuming your users will upgrade they should be used to things not working if they haven t or if that s not an option using hacks . .. . Answer : Microsoft s position has been the same for a while now . They are focusing on meeting the needs of their users by attempting to fix the bugs that manifest themselves most often . Additionally they are trying to add support for the most requested features . They say in your first link As we said at MIX10 we will continue to build standards support into the IE9 platform and as a byproduct our ACID3 score will increase . and I have heard them say this elsewhere as well . They are NOT coding to the test . They are not going to attempt to fix the particular parts of the ACID 3 that are failing . Rather they are attempting to improve IE 9 as a whole by addressing the failures they see as most important . Only as a consequence of that will the ACID score improve . I think this is a good strategy . If it takes 1000 programmer-hours to fix an oddball rendering error in ACID 3 but that same amount of time could fix 2 or 3 really POPULAR bugs that ACID 3 does not address it s not designed to be comprehensive I would think their resources are better spent on those more popular bugs . Obviously what their priorities ought to be could be endlessly debated . As can the amount of success they are having . So let s not even go there . : .. . .. . Update : I d like to back up my statement that Acid 3 is not designed to be comprehensive with this citation : From http : www.webstandards.org 2008 10 02 dowehaveawinner .. . .. . Acid3 was not meant to be the one and only indication of a browser s performance . In fact many other test suites are far more important . .. . .. . and .. . .. . Many subtests are high on a developer s wish list : Full CSS 3 selectors support media-queries SVG fonts . Admittedly a few others test edge cases and more esoteric features but the test was supposed to be a significant challenge .. . .. . Although I am not an IE user it s better for us all if Microsoft sticks to improving the important stuff and skips the tests that check for esoteric features . Comment : I would like to further add this link-to the IE blog where they discuss their goals on standards compliance and Acid 3 explicitly : blogs.msdn.com ie archive 2010 05 05 http : blogs.msdn.com ie archive 2010 05 05 html5-and-same-markup-second-ie9-platform-preview-available-for-developers.aspx Comment : @jeffamaphone - Good call . +1 to your comment . Comment : This is by far the best answer . thank you Comment : You re very welcome Comment : ie 9 is live now here is their result : ie.microsoft.com testdrive benchmarks acid3 default.html http : ie.microsoft.com testdrive benchmarks acid3 default.html", "Question : Does anybody know if Microsoft is planning on having IE9 pass with 100 100 on the Acid 3 test http : acid3.acidtests.org The current version of IE9 gets a 68 100 on the test can be viewed here http : ie.microsoft.com testdrive benchmarks Acid3 Default.html main site here http : ie.microsoft.com testdrive . What did IE8 pass with What about IE7 How does it compare to other modern browsers such as Safari Firefox and Chrome Comment : Well I can confirm that my copy of IE8 gets 12 100 and my copy of FF 3.6 gets 94 100 . Comment : @codeka - bloody hell . Comment : The Acid 3 test is old news as it doesn t focus on HTML5 support . And IE9 is not going to be updated to meet any new standards it s only going to get security fixes which is standard when they are pushing a newer browser that is IE10 . It is very safe to assume that anything before the latest release is not going to suddenly get better and get a higher score on any tests and you re better off focusing on either testing only with the newest release and assuming your users will upgrade they should be used to things not working if they haven t or if that s not an option using hacks . .. . Answer : According to this wiki page http : en.wikipedia.org wiki Acid3 IE7 scores 14 100 whilst IE8 scores 20 100 on the Acid3 test . IE9 scores 68 100 but is currently under development . I have not read anywhere that Microsoft wants IE9 to pass the Acid test but given their track record I would say that this is not high priority for them . Let s hope I m wrong . As a comparison the latest nightly-build at the time of this writing of Firefox scores 97 100 the version of Chrome that I m using 5.0.375.29 beta scores 100 100 and Safari scores the same . No surprises there the two browsers both use the WebKit rendering framework . I hope this is the useful answer you re looking for .", "Question : I thought the Acid3 test score of 95 for IE 9 might be a good index for seeing how well it supports HTML5 and CSS3 but then later found out that Acid3 s Wiki has little mentioning of HTML5 and CSS3 : http : en.wikipedia.org wiki Acid3 .. . .. . Is Acid3 score a good indicator for HTML5 and CSS3 support If not is there a score that gives a good index for them .. . Answer : The HTML5 test - How well does your browser support HTML5 http : www.html5test.com .. . .. . or .. . .. . Modernizr http : www.modernizr.com is an open-source MIT-licensed JavaScript library that detects support for many HTML5 CSS3 features . Comment : nice . know any one for CSS 3", "Question : Does anybody know if Microsoft is planning on having IE9 pass with 100 100 on the Acid 3 test http : acid3.acidtests.org The current version of IE9 gets a 68 100 on the test can be viewed here http : ie.microsoft.com testdrive benchmarks Acid3 Default.html main site here http : ie.microsoft.com testdrive . What did IE8 pass with What about IE7 How does it compare to other modern browsers such as Safari Firefox and Chrome Comment : Well I can confirm that my copy of IE8 gets 12 100 and my copy of FF 3.6 gets 94 100 . Comment : @codeka - bloody hell . Comment : The Acid 3 test is old news as it doesn t focus on HTML5 support . And IE9 is not going to be updated to meet any new standards it s only going to get security fixes which is standard when they are pushing a newer browser that is IE10 . It is very safe to assume that anything before the latest release is not going to suddenly get better and get a higher score on any tests and you re better off focusing on either testing only with the newest release and assuming your users will upgrade they should be used to things not working if they haven t or if that s not an option using hacks . .. . Answer : The fourth IE9 Platform Preview gets 95 100 points on the Acid3 test . The public beta will be released September 15 . We ll see : Comment : This is correct and 95 is the final score for IE9 .", "Question : I thought the Acid3 test score of 95 for IE 9 might be a good index for seeing how well it supports HTML5 and CSS3 but then later found out that Acid3 s Wiki has little mentioning of HTML5 and CSS3 : http : en.wikipedia.org wiki Acid3 .. . .. . Is Acid3 score a good indicator for HTML5 and CSS3 support If not is there a score that gives a good index for them .. . Answer : Acid3 doesn t tell you anything . Use http : caniuse.com to see which technologies are available in browsers . Comment : but is there an index or score", "Question : Does anybody know if Microsoft is planning on having IE9 pass with 100 100 on the Acid 3 test http : acid3.acidtests.org The current version of IE9 gets a 68 100 on the test can be viewed here http : ie.microsoft.com testdrive benchmarks Acid3 Default.html main site here http : ie.microsoft.com testdrive . What did IE8 pass with What about IE7 How does it compare to other modern browsers such as Safari Firefox and Chrome Comment : Well I can confirm that my copy of IE8 gets 12 100 and my copy of FF 3.6 gets 94 100 . Comment : @codeka - bloody hell . Comment : The Acid 3 test is old news as it doesn t focus on HTML5 support . And IE9 is not going to be updated to meet any new standards it s only going to get security fixes which is standard when they are pushing a newer browser that is IE10 . It is very safe to assume that anything before the latest release is not going to suddenly get better and get a higher score on any tests and you re better off focusing on either testing only with the newest release and assuming your users will upgrade they should be used to things not working if they haven t or if that s not an option using hacks . .. . Answer : IE5 : Not testable .. . IE7 : Not testable .. . IE8 : 26 100 .. . IE9 : 100 100 .. . Firefox Chrome Maxthon Opera Chromium : 100 100 .. . Older versions of IE are tested by Maxthon ." ] }
[ "yes-answer-long", "yes-answer-short" ]
javascript
UNK_RELATION
openbsd@server@73
openbsd -- openbsd is an advanced unix-like operating-system for modern @placeholder desktop and embedded computer platforms .
{ "confidence": [ 43.36801528930664, 41.98328399658203, 41.14588928222656, 41.14588928222656, 40.05877685546875, 40.05877685546875, 39.481544494628906, 39.30181121826172, 38.885009765625, 38.75584030151367, 38.75584030151367, 38.49054718017578, 38.394432067871094, 38.33961868286133, 37.476806640625, 37.40343475341797, 37.24632263183594, 37.24632263183594, 36.27448654174805, 36.15920639038086, 36.15920639038086, 36.15920639038086, 36.15920639038086, 36.15920639038086, 36.15920639038086, 35.857269287109375, 35.857269287109375, 35.857269287109375, 35.3455810546875, 34.85626983642578, 34.85626983642578, 34.75100326538086, 34.50459289550781, 34.50459289550781, 34.21858215332031, 34.21858215332031, 34.21858215332031, 34.21858215332031, 34.21858215332031, 34.21858215332031, 34.21858215332031, 34.21858215332031, 34.21858215332031, 34.21858215332031, 34.21858215332031, 34.21858215332031, 34.21858215332031, 33.96411895751953, 33.1314697265625, 33.1314697265625, 33.1314697265625, 33.1314697265625, 33.1314697265625, 33.1314697265625, 33.1314697265625, 32.73681640625, 32.61701965332031, 31.828533172607422, 31.828533172607422, 31.828533172607422, 31.77892303466797, 31.77892303466797, 31.77892303466797, 31.77892303466797, 31.77892303466797, 30.25965118408203, 30.140235900878906, 30.140235900878906, 30.140235900878906, 30.140235900878906, 30.140235900878906, 30.140235900878906, 30.140235900878906, 30.140235900878906, 30.140235900878906, 30.140235900878906, 30.140235900878906, 30.140235900878906, 30.140235900878906, 30.140235900878906, 30.140235900878906, 29.282888412475586, 29.17253875732422, 29.064769744873047, 29.053123474121094, 29.053123474121094, 29.053123474121094, 29.053123474121094, 29.053123474121094, 29.053123474121094, 29.053123474121094, 29.053123474121094, 29.053123474121094, 29.053123474121094, 29.053123474121094, 29.053123474121094, 29.053123474121094, 29.053123474121094, 29.053123474121094, 29.053123474121094 ], "content": [ "Is this a bug in OpenBSD", "This write up is very old and doesn t cover a modern version of OpenBSD .", "It won t work on OpenBSD .", "OpenBSD doesn t support PAM .", "Or does OpenBSD just not support it", "This runs on OpenBSD 5.4 .", "Php-fpm is chrooted by default on OpenBSD .", "Note : my OpenBSD is running under vitualbox4.3 and host system is Fedora22", "http : ftp.openbsd.org pub OpenBSD 5.9 amd64", "rbenv might not be compatible with OpenBSD .", "The openbsd implementation cannot to this .", "It works well on Linux and OpenBSD on amd64 and x86 but when I run program on OpenBSD on ARM it does really magic things .", "There is no binary for Git on the OpenBSD packages repository .", "I can compile it like this with OpenBSD 5.9 .. . .. . gcc -std c99 shellparser.c main.c util.c errors.c -ledit -ltermcap .. . .. . IF I first generate the shellparser.c with Linux and copy the file to OpenBSD then the above works to build for OpenBSD .", "I ve checked the OpenBSD 5.9 patch list https : www.openbsd.org errata59.html the OpenBSD 5.9 -current changes log https : www.openbsd.org plus.html .", "Is it possible to correctly shutdown a openbsd 4.7 or 4.9 with .. . .. . The openbsd is under kvm qemu configured from libvirt .", "I have device with openBSD 5.6 installed .", "I am trying to run foswiki on OpenBSD .", "It looks like this might be a bug perhaps OpenBSD PowerPC related .", "I m beginning to think something is wrong with the OpenBSD port .", "library but where can I get it for OpenBSD", "I tried googling for where to find it for OpenBSD but it was not found .", "OpenBSD seems to also flush tmp with each reboot .", "On OpenBSD non-root partitions are mounted with nodev option .", "I am attempting to run foswiki on OpenBSD .", "Sadly there is no way to get the full path of the executed file in OpenBSD .", "I am using the most -current version of OpenBSD 2-Jun-2016 .", "Also contact Reyk Floeter reyk@openbsd.org the main author of OpenBSD httpd", "If you get the same error go ask on SuperUser or ServerFault or another general Unix or OpenBSD forum .", "I didn t know about compatibility with OpenBSD .", "I was unable to install therubyracer gem in OpenBSD .", "Here is a full but minimal golang code example that demonstrates the problem on OpenBSD 5.8 with go version go1.4.2 openbsd amd64 and OpenBSDs httpd with authenticate with restricted users in httpd.conf .", "You may want to try using a slightly older version of apr perhaps one from an OpenBSD packages site somewhere like this OpenBSD Packages site http : www.openbsd.org 4.6 packages i386.html", "Also your version of OpenBSD may make a difference for what package site would be best to use.. . the OpenBSD packages site above is just an example of what these sites may look like .", "Yesterday i tried to enable OSPF routing on OpenBSD 5.7 .", "I m attempting to compile CDE for OpenBSD and am running to an error in atoi pearson.C .", "How do I check the auto-negotiated speed of a network-interface on OpenBSD", "I use usr bin make from OpenBSD 5.8 .", "My question is : Is this normal behavior or is this maybe a bug in OpenBSD 5.7", "I will trying use wondershaper tool but i cannot install it on OpenBSD server .", "I am running a salt-minion on an OpenBSD 5.8 machine .", "i am trying to get gvfsd-fuse working on OpenBSD .", "This works well on Linux but on OpenBSD this does not work out of the box .", "I have installed the texlive-full package available in OpenBSD .", "I very much doubt that it s possible to use pyParallel on OpenBSD .", ": - Even with an old sed on OpenBSD 4.6 that had no -E option yet", "I am using OpenBSD installed with perl apache firefox gedit .", "The OpenBSD manual http : openbsd.org cgi-bin man.cgi OpenBSD-current man4 inet6.4 states : .. . .. . For security reasons OpenBSD does not route IPv4 traffic to an AF INET6 socket and does not support IPv4 mapped addresses http : ipuptime.net ipv4mapped.aspx where IPv4 traffic is seen as-if it comes from an IPv6 address like : : ffff : 10.1.1.1 .", "That does not work at least not in golang version 1.4.2 pgk of OpenBSD 5.8 .", "Now it compiles on Linux but on OpenBSD I get an error I don t understand .", "@MarcusM ller still looking for why it works to generate the code at Ubuntu and then run it with OpenBSD .", "Probably you will have to add include readline history.h to OpenBSD ifdef in main.c .", "Which are the file s that I need and which OpenBSD package contains them", "I do not know if there is anything special about the OpenBSD version that would prevent this .", "all programs mentioned are part of a base openbsd install and the above answer is correct .", "I am trying to get audio information like volume for a C program in OpenBSD .", "Simply choose the right way for you . .. . .. . https : github.com bobthecow git-flow-completion wiki Install-Bash-git-completion .. . .. . .. . .. . OpenBSD Script .. . .. . Here is a link-to the OpenBSD script which you can use .", "I want to use ruby-2.0.0-p247 in OpenBSD-5.2 that works on QEMU .", "Okay I installed rbenv and ruby-install into my OpenBSD-box .", "Then try it on openbsd using the absolute path to echo instead of relying on the shell builtin .", "we are migrating or monitoring from nagios to sensu and part of this is moving our openbsd servers to sensu .", "I am trying to build transparent proxy with squid on OpenBSD 5.7 with pf firewall .", "http : www.openbsd.org cgi-bin man.cgi OpenBSD-current man3 sysctl.3 query sysctl sec 3", "On the latest OpenBSD 5.9 amd64 at digitalocean.com I m able to start httpd without SSL using this httpd.conf file.. .", "You should perhaps try -stable or -release versions of OpenBSD may be you already tried which is supposed to work .", "Make sure to read related documentation for compatibility information too before making a decision about installing software on your VM Also your version of OpenBSD may make a difference for what package site would be best to use.. . the OpenBSD packages site above is just an example of what these sites may look like .", "I am using cwm on OpenBSD 5.6 and have got my scripts in my bin folder .", "On OpenBSD this is done using the built-in packet filter which also performs bandwidth control .", "I have problem that described in this http : stackoverflow.com questions 33108069 openbsd-limit-network-bandwidth topic .", "As my application works and I don t remember ever having such problems on 1.5.0 or 1.6.0 does it have something to do with OpenBSD", "I have created a bunch of .sls files for all of the packages I want to install under a directory called OpenBSD .", "I want to setup auto-completion for git commands in ksh and openBSD 5.8 5.9 .", "I am running Emacs 24.5.1 on OpenBSD 6.0 and running into an issue with exporting in org-mode to any format .", "Edit : As for OpenBSD pkg info you can find them in a filesystem friendly format in directories under var db pkg", "According to the home page OpenBSD for ARMv7 http : www.openbsd.org armv7.html the kernel does not support SMP .", "That said your Radeon GPU may need firmware whose license prevents OpenBSD from including it .", "This rule is not needed and does nothing but prevent clients on the local network accessing vpn server on the internet trough the OpenBSD firewall .", "Only port 1723 needs to opened for incoming connections and that only on the external interface ext if .. . .. . Below is the relevant pf.conf for openbsd NPPTP", "I am trying to run PyParallel on OpenBSD to control some relays via the parallel port .", "Maybe i m wrong but in the OpenBsd the apache is chrooted by default and the foswiki configuration calling external programs .", "and of course it want call perl - what is imho not allowed with a default OpenBSD apache config .", "see http : man.openbsd.org cgi-bin man.cgi OpenBSD-current man2 pledge.2 .. . .. . I think at this point you should contact misc@openbsd.org with the question .", "A more recent link than what you found yourself marc.info l openbsd-misc m 140454992125167 w 2 http : marc.info l openbsd-misc m 140454992125167 w 2 looks like it s not supported .", "whenever I m trying to run the sample script of pyroute2 module : .. . .. . I m getting the following error : .. . .. . The main platform I m trying to use pyroute2 is OpenBSD but the problem remains for other platforms like windows .", "shutdown should send an ACPI signal Power button pressed but my openbsd guest does not react to this .", "Also can I configure OpenBSD to really turn off power of virtual-machine when doing halt", "I did that in my openbsd machine logged through ssh and it works fine .", "I m trying to build Crypto++ http : www.cryptopp.com on OpenBSD 5.7 x86-64 with OpenMP support .", "See for example OpenMP with gcc4 http : openbsd-archive.7691.n7.nabble.com OpenMP-with-gcc4-td58791.html .", "I think the OpenBSD folks froze GCC due to licensing changes by GNU to combat Tivoization https : en.wikipedia.org wiki Tivoization .", "I m in the process of upgrading to OpenBSD 5.7 which switches to MariaDB 10.0.16 which AFAIK back-ports MySQL 5.6 features .", "To this end I built a little staging OpenBSD 5.7 MariaDB server so that I can test the upgrade .", "The code compiles fine with PC-BSD but with OpenBSD I get this error .. . .. . It is the editline library that is not found .", "My program used to compile fine with OpenBSD before I added the lemon parser .", "obviously knowing at least one or two of the lines where your compiler on openBSD fails would actually be helpful", "I haven t used OpenBSD but this could be caused by an ancient GCC 4.2.1 which was released 18 July 2007 .", "But I still can t generate the C from the grammar with OpenBSD there comes a compilation error .", "Also useful if slightly outdated is this http : www.phpbuilder.com manual en install.unix.openbsd.php link outlining some gotchas in chrooted PHP on OpenBSD .", "I am trying to find a binary install of Git for OpenBSD v5.2 running on a DEC VaxStation 4000 Model 90", "I was trying to install Emacs and Git on an OpenBSD v5.2 install on a DEC VaxStation 4000 model 90 ." ] }
{ "confidence": [ 45.5098991394043, 45.26805877685547, 43.778194427490234, 43.778194427490234, 43.47278594970703, 43.37564468383789, 43.13449478149414, 43.09214782714844, 42.79032897949219, 42.68465805053711, 42.295326232910156, 41.73857116699219, 41.70736312866211, 41.2609748840332, 41.03867721557617, 41.024078369140625, 41.024078369140625, 40.76664352416992, 40.5450439453125, 40.476470947265625 ], "content": [ "Question : I have been scratching my head for a while now and cannot find a way to make it work.. . I want to run some cgi scripts written in Python on my OpenBSD server . Since the web-server on OpenBSD runs in a jail I recreated the whole folder structure bin dev usr usr local lib etc . etc . but I m still getting 500 Server Internal Error when I m trying to import some Python modules that require access to dev urandom device . I have created the device special files using mknod . I got the following output .. . .. . and .. . .. . So I executed the following commands in the var www dev folder OpenBSD web-server runs in chroot -u www var www .. . .. . However Python still reports that the .. . .. . The same code works fine in a non-chroot-ed environment . Any help would be truly appreciated Comment : This is almost certainly a system configuration issue you didn t set up the jail right rather than a Python one . You can test that very easily by just seeing what happens when you run say head -c16 dev urandom or dd if dev urandom bs 16 count 1 from inside the jail . If you get the same error go ask on SuperUser or ServerFault or another general Unix or OpenBSD forum . Comment : Thanks for this dd command shows exactly the same result as Python . So it is definitely configuration issue . .. . Answer : On OpenBSD non-root partitions are mounted with nodev option . Look at your etc fstab . For example :", "Question : On VirtualBox VM OpenBSD : .. . .. . I was trying to build apr 1.5.1 in my attempt to build an apache 2.4 server WITHOUT packages ie . from source and when I ran make test testlock failed with : .. . .. . I have no idea what to do with it . What is the course of action for something like this Comment : This might be a known issue http : mononoco.com pukiwiki index.php CentOS 205.3 2FAPR .. . are you using CentOS Comment : @summea Looks like that s it but is there an English version of that page Comment : apr 1.5.1 the newest that apache has . Comment : Have you tried using a slightly older version of apr perhaps one from an OpenBSD package site somewhere like this http : www.openbsd.org 4.6 packages i386.html Note : any downloads and installations that you choose to make from sites like these are your decision . Make sure to read related documentation for compatibility information too before making a decision about installing software on your VM Also your version of OpenBSD may make a difference for what package site would be best to use.. . the OpenBSD packages site above is just an example of what these sites may look like . Comment : Post your comment as an answer it deserves the check .. . Answer : You may want to try using a slightly older version of apr perhaps one from an OpenBSD packages site somewhere like this OpenBSD Packages site http : www.openbsd.org 4.6 packages i386.html Note : any downloads and installations that you choose to make from sites like these are your decision . Please make sure to read related documentation for compatibility information too before making a decision about installing software in your environment Also your version of OpenBSD may make a difference for what package site would be best to use.. . the OpenBSD packages site above is just an example of what these sites may look like . For future reference you can find more information about these sort of packages in the OpenBSD packages and ports documentation http : www.openbsd.org faq faq15.html .", "Question : Is it possible to correctly shutdown a openbsd 4.7 or 4.9 with .. . .. . The openbsd is under kvm qemu configured from libvirt . shutdown should send an ACPI signal Power button pressed but my openbsd guest does not react to this . Also can I configure OpenBSD to really turn off power of virtual-machine when doing halt Now it asks user from console press any key to reboot and don t switch power off . .. . Answer : did you try I did that in my openbsd machine logged through ssh and it works fine . The machine is shutdown and virsh shows that too . Hope it helps .", "Question : Is it possible to correctly shutdown a openbsd 4.7 or 4.9 with .. . .. . The openbsd is under kvm qemu configured from libvirt . shutdown should send an ACPI signal Power button pressed but my openbsd guest does not react to this . Also can I configure OpenBSD to really turn off power of virtual-machine when doing halt Now it asks user from console press any key to reboot and don t switch power off . .. . Answer : You can use halt -p to power down the VM after the OS is halted . I have not been able to get OpenBSD 4.7 or 4.9 to respond to ACPI signals on KVM QEMU that ships with Ubuntu Jaunty 9.04 .", "Question : My program used to compile fine with OpenBSD before I added the lemon parser . Now it compiles on Linux but on OpenBSD I get an error I don t understand . Why is is happening and what can I do about it Did I forget to include a library My cmake file is .. . .. . On Ubuntu I can build it successfully : .. . .. . No matter what I do the error is there when I compile with OpenBSD . I tried everything . Comment : obviously knowing at least one or two of the lines where your compiler on openBSD fails would actually be helpful Comment : @MarcusM ller I finally could compile it if I use lemon from cmake and then make . Lemon will generate different shellparser.c from shellparser.y depending on how I invoke it . I m not sure of details but at least I can build the project now : - Comment : You re not really helping anyone but yourself if you don t add an answer you can self-answer questions it s very much appreciated on SO and explain what you did and actually show the files that are different Other than that your question bears no value for future readers : Comment : @MarcusM ller still looking for why it works to generate the code at Ubuntu and then run it with OpenBSD . But it works . Actually I did update the build instruction right away github.com montao openshell https : github.com montao openshell .. . Answer : I can compile it like this with OpenBSD 5.9 .. . .. . gcc -std c99 shellparser.c main.c util.c errors.c -ledit -ltermcap .. . .. . IF I first generate the shellparser.c with Linux and copy the file to OpenBSD then the above works to build for OpenBSD . But I still can t generate the C from the grammar with OpenBSD there comes a compilation error . I can recreate the compilation error on Ubuntu and I m still looking for what causes the diff in the generated C when I run lemon shellparser.y", "Question : null .. . Answer : When I try to create a new user I get an error on OpenBSD 5.8 .. . .. . useradd -m foo .. . .. . bin pax : invalid option -- e Try pax --help or pax --usage for more information . useradd : Warning can t system cd etc skel bin pax -rw -pe . home foo .. . .. . It looks like it is creating the user but it is not populating the home-directory with the needed skeleton files . Any help would be much appreciated .", "Question : null .. . Answer : I m trying to build Crypto++ http : www.cryptopp.com on OpenBSD 5.7 x86-64 with OpenMP support . The compile is failing with the error message : .. . .. . .. . g++ -DDEBUG -g3 -Os -fPIC -fopenmp -march native -DCRYPTOPP DISABLE SSS3 -c nbtheory.cpp .. . nbtheory.cpp : error : omp.h : No such file or directory .. . .. . .. . OpenBSD s compiler clearly supports the -fopenmp option another 150 files compile OK with the flag so I m not sure what I should do . I have the OpenSBD sources and ports installed but I m not able to find the header : .. . .. . I tried Googling but it turned up a bunch of evasive answers about OpenMP support . See for example OpenMP with gcc4 http : openbsd-archive.7691.n7.nabble.com OpenMP-with-gcc4-td58791.html . Do I need to install it from somewhere Or does OpenBSD just not support it If I need to compile install the library proper from somewhere where do I find it Comment : What is gcc -v on your machine Comment : @Jeff - gcc --version returns 4.2.1 20070719 . I think the OpenBSD folks froze GCC due to licensing changes by GNU to combat Tivoization https : en.wikipedia.org wiki Tivoization . Regardless gcc responds to -fopenmp which implicitly declares support for OpenMP . Using an option like -ffoobar results in a compile error . I m beginning to think something is wrong with the OpenBSD port . Comment : Just build GCC 4.9+ from source . I see no reason why this shouldn t work . Latest Clang LLVM supports OpenMP as well . Comment : A more recent link than what you found yourself marc.info l openbsd-misc m 140454992125167 w 2 http : marc.info l openbsd-misc m 140454992125167 w 2 looks like it s not supported . Comment : Thanks @ci . I filed a bug report because the compiler accepted -fopenmp and even defined OPENMP in response to the option : GCC cannot compile an OpenMP program https : marc.info l openbsd-bugs m 143436095812233 .", "Question : null .. . Answer : I m attempting to compile CDE for OpenBSD and am running to an error in atoi pearson.C . Any idea what to do Comment : There seems to be some effort to create a port for CDE have you had a look at this github.com jasperla openbsd-wip tree master x11 cde https : github.com jasperla openbsd-wip tree master x11 cde it s a bit old but may be a starting point . Comment : I tried that and got an error saying xorg.cf wasn t found", "Question : I want to setup auto-completion for git commands in ksh and openBSD 5.8 5.9 . Somehow it was installed previously and suddenly disappeared so I have to type or copy and paste large amounts of text . It should work as in OSX or Ubuntu where you type git-merge X.. . and press the tab key so it completes the rest of the branch name in terminal . .. . Answer : You will need to have a script for that . Unix git-bash are already have this script . Read about it here : https : git-scm.com book en v1 Git-Basics-Tips-and-Tricks https : git-scm.com book en v1 Git-Basics-Tips-and-Tricks Auto-Completion .. . .. . You have many options on how to install it . Simply choose the right way for you . .. . .. . https : github.com bobthecow git-flow-completion wiki Install-Bash-git-completion .. . .. . .. . .. . OpenBSD Script .. . .. . Here is a link-to the OpenBSD script which you can use . The file has header with all the instructions how to do it . http : www.ualberta.ca dept aict uts software openbsd ports 4.6 i386 obj git-1.7.0 git-1.7.0 contrib completion git-completion.bash .. . .. . .. . .. . The above script instructions : Comment : This one is for bash . I guess there s nothing for ksh Comment : Dont know im a bash sh zsh user . never used ksh Comment : Try this one - gist.github.com qbit 5483415 https : gist.github.com qbit 5483415 Comment : It doesn t work for ksh but your script works for bash . I will wait to find a ksh alternative and If there isn t any I will move to bash . Comment : Glad to help . if it helped you please be kind to accept and vote for the answer.appreciated .", "Question : Yesterday i tried to enable OSPF routing on OpenBSD 5.7 . so i created etc ospfd.conf and added this codes to it just for test .. . .. . but after type etc rc.d ospfd -fd start i got this logs in terminal .. . .. . can any body tell me why i got this Note : my OpenBSD is running under vitualbox4.3 and host system is Fedora22 Comment : thanks for all answers : D . finally i fixed my problem by this command chmod 600 etc ospfd.conf .. . Answer : etc ospfd.conf : group writable or world read writable .. . .. . means that you have not correct rights for file . must help .", "Question : I am attempting to run foswiki on OpenBSD . Things are installed and i am able to open bin Configure page of foswiki configuration screen . but the page reports few errors complaining that following files are either not found or outdated and new versions are required . The Files are : grep rcs ci co rlog rcsdiff .. . .. . I tried commands like pkg add -Uu to upgrade packages installed but it reports all packages are uptodate . I also tried pkg add rcs pkg add grep etc but non works . So my basic question is how to I update above files to their latest version required by foswiki . Regards .. . Answer : all programs mentioned are part of a base openbsd install and the above answer is correct . the openbsd documentation on chrooted apache http : www.openbsd.org faq faq10.html httpdchroot has more info . if you don t have to stick with foswiki you can try dokuwiki http : openports.se www dokuwiki instead which has package support on openbsd and installs easily in very much the same way you tried already : .. . .. . hope the process is pretty much self-descriptive . in addition the manpage for pkg add http : www.openbsd.org cgi-bin man.cgi query pkg add apropos 0 sektion 0 manpath OpenBSD+Current arch i386 format html is a good thing to read . good luck", "Question : On the latest OpenBSD 5.9 amd64 at digitalocean.com I m able to start httpd without SSL using this httpd.conf file.. . When I change the commented out lines like this.. . .. . .. . and restart httpd.. . I get the following error in the log files.. . I ve focused on these two errors.. . httpd could not parse macro definition TLS bsd httpd syscall 5 wpath .. . .. . I ve spent hours googeling and found only one mention that this may be a kernel bug . I ve checked the OpenBSD 5.9 patch list https : www.openbsd.org errata59.html the OpenBSD 5.9 -current changes log https : www.openbsd.org plus.html . I ve struck out seeking assistance.. . which is greatly appreciated Troy . .. . .. . UPDATE .. . .. . Based upon Guest s answer here is some notes.. . I do appreciate the help I did not know about the httpd -d and running the command directly . Looking at the etc rc.d httpd script it should have been obvious : I ll have to work with that some more . The server.crt server.key in the appropriate directories are correct . There was a set of commands I found someplace else that generated hashes that did compare theoretically proving that the two should work . I even copied them into the chrooted directory which did nothing : .. . .. . httpd -n returned configuration OK .. . I did make some changes to the etc rc.config.local file setting a parm of -DSSL . Seeing the SSL macro parse errors above I replaced with -DTLS just to see the error would replace with TLS rather than SSL . It continued with SSL in the error . After the debug statement it changed to TLS so I removed the -DTLS from the local config.. . and that fixed the parse-error . All that remain are the crash and wpath errors . I am using the most -current version of OpenBSD 2-Jun-2016 . UPDATE .. . .. . I created this script to check the certificate.. . Ran it with the following results . Comment : I can t replicate this at at all . I tried 5.9-release and -current a few days old . Even registered for Digitalocean and tried it there to see if there was something weird going on there . Can you run ktrace -i httpd -vvd hopefully it will crash and then run kdump and post the last 20-30 lines or so Just be careful with that as the kdump output may include your TLS certificate keys . Comment : Just to clarify the problem is a pledge failure . It shouldn t be happening even if there was a problem with your keys . There is almost certainly a bug somewhere . The ktrace output should show what file it s attempting to open for writing before it gets killed which will help point to the cause . Comment : Nevermind I figured it out . You need to remove the password from your private key . httpd doesn t support that . I was hoping for an obscure corner-case deep in libssl but reality is never that interesting : - .. . Answer : I see the same error on -current I guess this could be due to recent changes in pledge system calls pledge changes in httpd . You should perhaps try -stable or -release versions of OpenBSD may be you already tried which is supposed to work . http : ftp.openbsd.org pub OpenBSD 5.9 amd64", "Question : null .. . Answer : whenever I m trying to run the sample script of pyroute2 module : .. . .. . I m getting the following error : .. . .. . The main platform I m trying to use pyroute2 is OpenBSD but the problem remains for other platforms like windows . I tested this around both python3.5 and python2.7 in addition to python3.4 . Just don t know how to solve this problem . any idea thanks Comment : As main developer stated at github it s for linux and is not working on other platforms .", "Question : I have problem that described in this http : stackoverflow.com questions 33108069 openbsd-limit-network-bandwidth topic . But the proposed solutions are hard or not unsuitable for me . There are one more solution - use third-party tools . I will trying use wondershaper tool but i cannot install it on OpenBSD server . I found it as .deb http : www.filewatcher.com q wondershaper 20openbsd file or .tar.gz ftp : ftp.openbsd.dk .disk1 debian pool main w wondershaper archive . Search in google don t helped me . Somebody tell me please is it possible or not make this install this tool In advance thanks for help Comment : I found this kestas.kuliukas.com pf.conf NATQueueing http : kestas.kuliukas.com pf.conf NATQueueing topic but he a little complex . Tell me please it that what I need .. . Answer : wondershaper is a script which uses tc https : en.wikipedia.org wiki Tc 28Linux 29 which is a Linux command . It won t work on OpenBSD . You did found those .deb and .tar.gz files on a FTP-Server named OpenBSD because this are server which are mirrors for many software projects and are reachable under many different names . If you look closely at those files you will see that most of them have debian or ubuntu in their file path .", "Question : I m running OpenBSD 5.8 npppd mpath and have tried the same on 5.7 and 5.3 . npppd is works fine and clients can connect using windows pptp client . Client have the pptp connection set as default gateway and can access the internet trough the vpn gateway but cannot access the LAN network traffic arrives on the pppx0 interface but never get forwarded to the LAN ip-address . I have been looking and trying for over 2 weeks now and can t figure that one out . setting everything to pass in pf.conf and only enabling nat - still no result . Setup : OpenBSD 5.8 with npppd using pppx0 or tun0 and pf 2 WAN interfaces equal cost routing net.inet.ip.multipath 1 1 LAN interface .. . .. . sysctl.conf .. . .. . npptp.conf : .. . .. . pf.conf .. . .. . netstat -rn Routing tables .. . Answer : I m used to pf on FreeBSD it looks like that pf or kernel on OpenBSD sets a block all on any interface which have no roles defined in the pf.conf with using skip or pass rules which is a good thing because this closes unintended security holes . The machine is gateway to the internet and serves as VPN server and is load-balancing 2 leased lines . Another gotcha I found is the rule well mentioned on every tutorial on the net for NPPPD . I changed Change this to the below to make sure that any nat ed outgoing connections are not interfered with . This rule is not needed and does nothing but prevent clients on the local network accessing vpn server on the internet trough the OpenBSD firewall . GRE is negotiated between client and the vpn server software on the server and will be passes anyway . Only port 1723 needs to opened for incoming connections and that only on the external interface ext if .. . .. . Below is the relevant pf.conf for openbsd NPPTP", "Question : I am trying to run PyParallel on OpenBSD to control some relays via the parallel port . I downloaded it then installed it with the command sudo python setup.py install and it seemed to work . But now I am getting an error when I try to import it . I have searched the web for info on the file parallelioctl but to no avail . If anyone has ideas I would appreciate them Thanks in advance .. . Answer : I very much doubt that it s possible to use pyParallel on OpenBSD . According to the docs it supports Linux and Windows and when you look at the Linux section it talks about certain kernel modules that need to be loaded and unloaded and specific device drivers that are unlikely to be compatible with anything OpenBSD has . http : pyserial.sourceforge.net pyparallel.html", "Question : I have device with openBSD 5.6 installed . OpenSSH is integrated to this OS . As I understand from this topic http : www.openssh.com faq.html 3.15 to set up the PAM usage I have to do it at the build time . Is there any way to permanently enable PAM for this OS Also it might be a problem that even if I will enable it than sshd http : www.openbsd.org cgi-bin man.cgi OpenBSD-current man5 sshd config.5 query sshd config function has no UsePAM keyword . One more issue is that I need to use JAAS as PAM . Does anybody know how to set it up I didn t found any posts or documentation about it . .. . Answer : OpenBSD doesn t support PAM . The links contain information related to OpenSSH Portable i.e . the version of OpenSSH used on Linux .", "Question : The OpenBSD manual http : openbsd.org cgi-bin man.cgi OpenBSD-current man4 inet6.4 states : .. . .. . For security reasons OpenBSD does not route IPv4 traffic to an AF INET6 socket and does not support IPv4 mapped addresses http : ipuptime.net ipv4mapped.aspx where IPv4 traffic is seen as-if it comes from an IPv6 address like : : ffff : 10.1.1.1 . Where both IPv4 and IPv6 traffic need to be accepted listen on two sockets . However there is no explanation concerning these security reasons . What are they I can t think of any security problems related to that mapping . .. . Answer : As far as I know the main reason is to keep the IPv4 and IPv6 stacks separate . It s the hacks necessary to handle packets coming in on one stack but being handled by the other that cause the security risks .", "Question : My ssl bindings for R https : github.com cran openssl blob master src ssl.c compile on linux osx windows and solaris but on OpenBSD it fails when including resolv.h . Is this a bug in OpenBSD Should I not include some other header first Comment : 9K user should know that code have to be posted not linked.. . Comment : Try to include netinet in.h before resolv.h but it should be at the top of resolv.h . Comment : Thanks that did the job . .. . Answer : The correct answer was given in the comment :", "Question : null .. . Answer : For a school project I am working on we were given a OpenBSD VM and have to create a web app . We are using angularjs and node for the app but our immediate confusion is how to debug this thing . I am really unfamiliar with using VMs this operating-system and command-line use somewhat . I m running a sample server from a tutorial on the angular site but once it s launched and I need to look at local host is this even possible for me to see I can only interface with this box from command-line so is there a way to target my browser to that environment or launch a browser within the VM and see that someway" ] }
[ "yes-answer-long", "yes-answer-short" ]
server
UNK_RELATION
facesservlet@user-interface@167
facesservlet -- facesservlet is a servlet that manages the request processing lifecycle for web-applications that are utilizing javaserver faces jsf to construct the @placeholder .
{ "confidence": [ 54.939659118652344, 51.11871337890625, 42.127418518066406, 41.4149169921875, 39.41602325439453, 39.331478118896484, 38.799652099609375, 38.5965690612793, 38.5965690612793, 38.09036636352539, 37.14588928222656, 36.33590316772461, 35.886531829833984, 35.886531829833984, 35.03368377685547, 32.195621490478516, 31.560935974121094, 31.034500122070312, 30.69080352783203, 30.156566619873047, 29.267269134521484, 29.267269134521484, 29.267269134521484, 29.04665756225586, 28.784372329711914, 28.60401153564453, 27.534238815307617, 26.87582015991211, 26.59931755065918, 25.720348358154297, 25.240970611572266, 25.17988395690918, 25.177352905273438, 25.170982360839844, 24.98714828491211, 24.94207000732422, 24.713048934936523, 24.66912078857422, 24.39154815673828, 24.019771575927734, 23.432125091552734, 22.97213363647461, 22.579627990722656, 22.091232299804688, 21.785465240478516, 21.346967697143555, 21.247699737548828, 21.247699737548828, 20.39027214050293, 20.39027214050293, 20.213550567626953, 19.869590759277344, 19.75893783569336, 19.752445220947266, 19.57578468322754, 19.555469512939453, 19.555469512939453, 19.5340576171875, 19.128416061401367, 19.038814544677734, 18.980892181396484, 18.820558547973633, 18.820558547973633, 18.820558547973633, 18.63317108154297, 18.63317108154297, 18.393083572387695, 18.28156280517578, 18.030086517333984, 17.968017578125, 17.875164031982422, 17.85531234741211, 17.58789825439453, 17.58789825439453, 17.50351333618164, 17.50351333618164, 17.400508880615234, 17.276689529418945, 17.276689529418945, 17.226551055908203, 17.01347541809082, 16.90534782409668, 16.904651641845703, 16.64250373840332, 16.11052131652832, 16.11052131652832, 16.11052131652832, 15.92313289642334, 15.92313289642334, 15.879793167114258, 15.818161964416504, 15.770483016967773, 15.770483016967773, 15.643965721130371, 15.431671142578125, 15.16512680053711, 15.120211601257324, 15.120211601257324, 15.012118339538574, 14.819388389587402 ], "content": [ "When using JSF 2.0+ on a Servlet 3.0+ container and there s no explicit FacesServlet registration in webapp s own web.xml then the FacesServlet will during webapp s startup automatically be registered on URL patterns faces .faces and .jsf .", "Most JSF applications therefore only declare the FacesServlet .", "Specifically for JSF 2 we deal with the FacesServlet which leads me to my first question : is the FacesServlet the only servlet I need to provide mapping details for in my app and the only servlet I need period", "FacesContext.getCurrentInstance will be null if the request is not attended by FacesServlet which seems to be your case .", "I have two web-applications web-module1.war web-module2.war and I want to use a web fragment web-core.jar for common servlet declaration like FacesServlet .", "still having a faces-config.xml then your best bet is to explicitly register FacesServlet on .xhtml in webapp s own web.xml .", "Why is glassfish marking FacesServlet as unavailable", "We had the physical file main.xhtml which was requested by main.jsf where the FacesServlet was declared in web.xml with url-mapping .jsf .", "Now the question is : If it redirects .jsf to .jsp or .xhtml even when there is no FacesServlet in web.xml what is responsible for this redirections", "Since the release of JSF 2.0 if using a Servlet 3.x container the FacesServlet is automatically mapped for you so there is no requirement to adjust the web.xml configuration .", ".. . .. . Finally my main question : when a request comes in that matches the URL pattern for the FacesServlet how does the FacesServlet know which view file .xhtml to render", "Now the problem is that even if I remove FacesServlet from web.xml it still redirects the request for main.jsf to main.xhtml .", "Keep the FacesServlet mapping if you want to access your JSF pages using the .html extension .", "The FacesServlet mapping is required when you want to acess .xhtml JSF-pages via .html .", "So now when my bean gets called it keeps getting a null exception since I am not in the FacesServlet I m in some other servlet .", ".. . faces .. . .jsf .. . .faces .. . .. . JSF 2.3 will add .xhtml URL pattern to the set which is backported in Mojarra 2.2.11 .", "When I declare FacesServlet in web.xml no problem but when I move this declaration to web-fragment.xml I get this error : .. . .. . I don t have this problem with other servlet filter declaration", "From reading other questions on SO I understand that not all requests need to pass-through the FacesServlet so basically requests are divided into A requests for static content that shouldn t be processed by the FacesServlet and B requests for dynamic-content that need to be processed by the FacesServlet .", "Possible duplicate of java.lang.ClassFormatError : Absent Code attribute in method that is not native or abstract in class file javax faces webapp FacesServlet http : stackoverflow.com questions 8081234 java-lang-classformaterror-absent-code-attribute-in-method-that-is-not-native-o", "And JSF 1.x has the known bug feature that its FacesServlet would run in an infinite-loop when it s being mapped on same suffix URL pattern as the physical view file .", "However when I start defining and mapping the FacesServlet to .html and try to access home.html I get a NullPointerException .", "Not sure whether this should be a comment or an answer but you shouldn t setup CXFNonSpringJaxrsServlet and FacesServlet in your web.xml all that stuff is there and ready to go .", "The weird part is as soon as I uncomment the FacesServlet mapping in deployment desriptor everything works great and I do not get 404 .", "I was going through one of the books on JSF JavaSever Faces - Introduction by Example and I found the following excerpt .. . .. . Prior to JSF 2.0 in order to enable the JSF servlet to translate the XHTML page you needed to ensure that the web.xml file contained a servlet element indicating the javax.faces.webapp.FacesServlet class and its associated servlet-mapping URL .", "Just by having an incoming request in which the URL doesn t match the URL pattern for the FacesServlet but does match a real file location in the app file structure", "I ve been checking around and can t find an explanation of how the FacesServlet resolves a URL to a real file in the web app file structure .", "This would make sense because otherwise I don t know how else the FacesServlet would know which facelet to return .", ".. . A faces-config.xml file is found in WEB-INF .. . .. . A faces-config.xml file is found in the META-INF directory of a jar in the application s classpath .", "The gist is that if the Faces Servlet is mapped with a prefix mapping e.g .", "Well I could certainly do that but the book that I am using is just an year old publication amazon.com JavaServer-Faces-Introduction-Josh-Juneau dp http : www.amazon.com JavaServer-Faces-Introduction-Josh-Juneau dp 1484208390 ref sr 1 4 ie UTF8 qid 1440104511 sr 8-4 keywords javaserver+faces", "See also its javadoc http : docs.oracle.com javaee 7 api javax faces webapp FacesServlet.html : .. . .. . This servlet must automatically be mapped if it is not explicitly mapped in web.xml or web-fragment.xml and one or more of the following conditions are true .", "How the FacesServlet locates the definition of the view to use is defined in the JSF specification http : www.jcp.org en jsr detail id 344 in particular section 7.6.2 : .. . .. . The terms view identifier and viewId are used interchangeably below and mean the context relative-path to the web application resource that produces the view such as a JSP page or a Facelets page .", "The web-fragment.xml is in web-core.jar s META-INF folder as well as the faces-config.xml .", "So here is my code and when i type localhost : 8080 faces index.xhtml either the faces servlet does not get triggered or something else happens so that the xhtml page is not found .. . .. . 1-project structure : .. . .. .", "By the way I looked at this question http : stackoverflow.com questions 13284275 why-doesnt-facesservlet-find-xhtml-facelet which is related but doesn t have any answers .", "And make sure that your faces-config.xml root declaration conforms at least JSF 2.0 .", "faces the viewId is the part of the URL following the prefix and if the Faces Servlet is mapped with a suffix mapping e.g .", "I am using jsf 2.1 mojara with glassfish 3.1 and my web .xml looks like : .. . .. . I am getting this error .. . .. . 2015-03-11T21 : 40 : 15.054+0530 Warning : ApplicationDispatcher JSFProject PWC1231 : Servlet.service for servlet Faces Servlet threw exception javax.servlet.ServletException : PWC1232 : Exceeded maximum depth for nested request dispatches : 20 at org.apache.catalina.core.ApplicationDispatcher.doInvoke ApplicationDispatcher.java : 772", "Before IntelliJ I was able to develop jsf project with maven in Eclipse and they were working good but when i did the exact same things in the same order project from webapp archetype add dependencies to pom run maven add jsf servlet to web xml and deploy I got 404 error in return .", "GlassFish as being a full fledged Java EE container already ships with Servlet and JSF API impl out the box .", "For instance if the servlet is mapped to .jsf a request for the URL http : host context admin userlist.jsf would read the view definition from the file admin userlist.xhtml in the web application directory .", "I have a web application that originally was a JSF app but has been migrated to pure HTML JavaScript .", "jsf http : i.stack.imgur.com eYW4E.png", "Solutions tried so far : .. . .. . I thought about using a servlet mapped to Protected .xhtml while leaving the Faces Servlet deal with any other URL in my application .", "This problem suggests that you re using JSF 1.x not JSF 2.x .", "This JSF implementation works in Tomcat", "I want to see JSF page with tags in OSGI .", "We are now in the progress of eliminating JSF completely .", "Where is your faces-config.xml located", "Please post faces-config.xml as well .", "Under Project Structure makes sure you configured JSF : .. . .. .", "This is a problem in tooling not in JSF .", "javax.servlet.jar Servlet API already supplied by GlassFish", "Servlet mappings are in addition to this implicit servlet .", "Servlet 2.5 or lower .", ".. . A filename ending in .faces-config.xml is found in the META-INF directory of a jar in the application s classpath .", "In other words how exactly are you so sure that the URL localhost : 8080 faces index.xhtml is correct", "JSF 1.x uses JSP as default view technology whereas JSF 2.x uses Facelets as default view technology .", "IIRC in recent JSF implementations that servlet will even declare itself if its declaration is omitted so you don t even have to declare it explicitly .", "Yes there must be something like that but since i am new to intellij i dont know how to handle theese things : I ve just set a context path as pms and tried this url : localhost : 8080 pms faces index.xhtml http : localhost : 8080 pms faces index.xhtml .", "Even then you should not be mixing multiple JSF implementations in one webapp .", "My bundle name is LastTestWeb and my other bundle s list .. . .. . And i import some bundles for jsf tags are working .", "believe it or not but I had xercesImpl-2.6.2 xml-apis-1.3.02 that was causing my jsf to fail loading .", "In documentations they explained how to add jsf module which i tried but this did not work as well .", "But I am trying to use an AJAX call to update the page and the program uses a third party servlet to handle the AJAX calls .", ".. . If the runtime determines that the servlet must be automatically mapped it must be mapped to the following url-pattern entries .", "You just need your faces-config.xml or some @ManagedBean classes .", "Is Glassfish 4.x a Servlet 3.x container", "The easiest way to serve static content is outlined in the servlet specification http : download.oracle.com otndocs jcp servlet-3.0-fr-eval-oth-JSpec section 10.5 : .. . .. . A Web application exists as a structured hierarchy of directories .", "I am currently trying to learn java-ee basics and there is a simple jsf example project to get learn intelliJ idea as well .", ".. . The javax.faces.CONFIG FILES context-param is declared in web.xml or web-fragment.xml .", "src main webapp WEB-INF faces-config.xml .. . .. . Update - Solution .. . .. . Thanks to David Blevins for clarification and pointing me to a useful example .. . .. . Remove the CXF configuration part it is not required .", "jsf-api.jar Mojarra 1.x GlassFish already supplies Mojarra 2.x", "jsf-impl.jar Mojarra 1.x GlassFish already supplies Mojarra 2.x", "Rename home.html to home.xhtml since .xhtml is the javax.faces.DEFAULT SUFFIX for JSF pages .", "My example page showed up but didn t render JSF tags .", "I have the same problem as you and found out that change from servlet-api to javax.servlet.api will fix the problem .", "Thanks for you answer but I think that would call recursively my servlet .", "It will only work when your webapp runs in Servlet 3.0+ modus .", "You almost certainly failed to add a web facet and artifact to your project .", "Now if I change my Java code then Tomcat republishes as usual but if I try to refresh the page in browser via F5 then I get the following error : .. . .. . HTTP Status 503 - Servlet Faces Servlet is currently unavailable .. . .. . In Eclipse console the following appears : .. . .. . Now I have to restart Tomcat after every little change in Java source code in order to solve it .", "I just forwarded a request to a resource in question using an action method associated with a p : commandButton or p : commandLink such as return WEB-INF pages A.xhtml .", ".. . JSF implementations must provide a default ViewHandler implementation along with a default ViewDeclarationLanguageFactory implementation that vends ViewDeclarationLanguage implementations designed to support the rendering of JSP pages containing JSF components and Facelets pages containing JSF components .", "Are there any JARs in webapp s WEB-INF lib", "I m trying to setup a small example application FooTest that uses CXF JAX-RS and JSF .", "I might be wrong on the JSF part the FacesServet might be needed only for the purposes of getting xhtml enabled .", "You can definitely do it we just added an example today that does it but shouldn t be needed for JSF in general .", "Naturally if the creation of a servlet isn t the correct solution for my issues I will leave that track .", "My servlet is mapped also to protected A.xhtml to avoid the direct access to those pages from URL .", "For example for a Web application with the context path catalog in a Web container the index.html file at the base of the Web application hierarchy or in a JAR file inside WEB-INF lib that includes the index.html under META-INF resources directory can be served to satisfy a request from catalog index.html .", "I am trying to internationalize my web application so I am using a ResourceBundle and dynamically changing the locale using : .. . .. . Which worked fine at first .", "Is there a convention in working with JSF 2 that I need to follow to make it work", ".jsf the viewId is the part of the URL following the context path with replaced file extension .", "In src main webapp WEB-INF", "The web-core.jar is declared as a maven-dependency I can find it in the WEB-INF lib .", "This is web.xml : .. . .. . And web-fragment.xml : .. . .. . I m using Tomcat7", "Please note that I am using Juno Eclipse Tomcat 7 Dynamic Web Module 3.0 and JDK 1.7 .", "And indeed your WEB-INF lib contains among others the following JARs which absolutely do not belong there .", "If not then I don t get it because like I mentioned above in the case of a general servlet the URL could include a name that nas nothing to do with the real file name as long as it s mapped to the correct servlet in the web.xml file .", "these are the jars that are present : commons-codec-1.9.jar commons-el-1.0.jar commons-fileupload-1.2.2.jar commons-io-2.2.jar commons-logging-1.1.3.jar javax.servlet.jar jsf-api.jar jsf-impl.jar junit-4.12.jar log4j-1.2.17.jar myfaces-api-1.1.5.jar myfaces-impl-1.1.5.jar poi-3.12-beta1-20150228.jar poi-examples-3.12-beta1-20150228.jar poi-excelant-3.12-beta1-20150228.jar poi-ooxml-3.12-beta1-20150228.jar poi-ooxml-schemas-3.12-beta1-20150228.jar poi-scratchpad-3.12-beta1-20150228.jar xmlbeans-2.6.0.jar" ] }
{ "confidence": [ 81.97003936767578, 77.49151611328125, 70.44619750976562, 67.25804901123047, 56.95866394042969, 55.75879669189453, 51.616493225097656, 47.68693161010742, 45.41058349609375, 40.705928802490234, 40.705928802490234, 39.97433090209961, 39.80785369873047, 37.223594665527344, 35.097564697265625, 33.65081024169922, 28.310354232788086, 26.68207550048828, 21.39847183227539, 12.526605606079102 ], "content": [ "Question : I have a web application that originally was a JSF app but has been migrated to pure HTML JavaScript . We are now in the progress of eliminating JSF completely . We had the physical file main.xhtml which was requested by main.jsf where the FacesServlet was declared in web.xml with url-mapping .jsf . We have moved the content to main.html and put a meta-tag REFRESH in main.xhtml to redirect to main.html . Now the problem is that even if I remove FacesServlet from web.xml it still redirects the request for main.jsf to main.xhtml . If I rename the file main.xhtml to main.jsf requesting main.jsf gives a 404 and the server log says it cannot find a file main.jsp . Now the question is : If it redirects .jsf to .jsp or .xhtml even when there is no FacesServlet in web.xml what is responsible for this redirections I m using GlassFish 3.1.2.2 . .. . Answer : When using JSF 2.0+ on a Servlet 3.0+ container and there s no explicit FacesServlet registration in webapp s own web.xml then the FacesServlet will during webapp s startup automatically be registered on URL patterns faces .faces and .jsf . See also its javadoc http : docs.oracle.com javaee 7 api javax faces webapp FacesServlet.html : .. . .. . This servlet must automatically be mapped if it is not explicitly mapped in web.xml or web-fragment.xml and one or more of the following conditions are true . .. . A faces-config.xml file is found in WEB-INF .. . .. . A faces-config.xml file is found in the META-INF directory of a jar in the application s classpath . .. . A filename ending in .faces-config.xml is found in the META-INF directory of a jar in the application s classpath . .. . The javax.faces.CONFIG FILES context-param is declared in web.xml or web-fragment.xml . .. . The Set of classes passed to the onStartup method of the ServletContainerInitializer implementation is not empty . .. . If the runtime determines that the servlet must be automatically mapped it must be mapped to the following url-pattern entries . .. . faces .. . .jsf .. . .faces .. . .. . JSF 2.3 will add .xhtml URL pattern to the set which is backported in Mojarra 2.2.11 . If you want to stop this behavior and you can t eliminate the triggers e.g . still having a faces-config.xml then your best bet is to explicitly register FacesServlet on .xhtml in webapp s own web.xml . This will override the default auto registered URL patterns . Comment : Thanks for the clarification . Marked as accepted .", "Question : null .. . Answer : I was going through one of the books on JSF JavaSever Faces - Introduction by Example and I found the following excerpt .. . .. . Prior to JSF 2.0 in order to enable the JSF servlet to translate the XHTML page you needed to ensure that the web.xml file contained a servlet element indicating the javax.faces.webapp.FacesServlet class and its associated servlet-mapping URL . Since the release of JSF 2.0 if using a Servlet 3.x container the FacesServlet is automatically mapped for you so there is no requirement to adjust the web.xml configuration . I decided to try it out but did NOT work and getting 404 error . web.xml .. . .. . Prior to moving to Glassfish 4.x I already had this working on Tomcat 8 . The weird part is as soon as I uncomment the FacesServlet mapping in deployment desriptor everything works great and I do not get 404 . Is Glassfish 4.x a Servlet 3.x container Am I doing something wrong or are the book guidelines incorrect Comment : Well I could certainly do that but the book that I am using is just an year old publication amazon.com JavaServer-Faces-Introduction-Josh-Juneau dp http : www.amazon.com JavaServer-Faces-Introduction-Josh-Juneau dp 1484208390 ref sr 1 4 ie UTF8 qid 1440104511 sr 8-4 keywords javaserver+faces Comment : It will only work when your webapp runs in Servlet 3.0+ modus . Your problem suggests thar your web.xml is declared conform e.g . Servlet 2.5 or lower . The web-app version and all included DTD and XSD are relevent to determine this but this detail is missing in your question . Comment : @BalusC - I just checked and found that my webapp version is 3.1", "Question : I have two web-applications web-module1.war web-module2.war and I want to use a web fragment web-core.jar for common servlet declaration like FacesServlet . When I declare FacesServlet in web.xml no problem but when I move this declaration to web-fragment.xml I get this error : .. . .. . I don t have this problem with other servlet filter declaration The web-fragment.xml is in web-core.jar s META-INF folder as well as the faces-config.xml . The web-core.jar is declared as a maven-dependency I can find it in the WEB-INF lib . This is web.xml : .. . .. . And web-fragment.xml : .. . .. . I m using Tomcat7 .. . Answer : If you are using Apache Myfaces JSF implementation this is a known bug https : issues.apache.org jira browse MYFACES-3629 .. . .. . So u should change it use MOJARRA for example Comment : Yeh you re right with Mojarra it s working fine", "Question : I ve been checking around and can t find an explanation of how the FacesServlet resolves a URL to a real file in the web app file structure . Within the context of servlets my understanding is that a URL is just a made-up name that you want clients to use . In web.xml you then map specific servlets to URL patterns but the real name location of the servlet is hidden from the outside world...that s for servlets in general . Specifically for JSF 2 we deal with the FacesServlet which leads me to my first question : is the FacesServlet the only servlet I need to provide mapping details for in my app and the only servlet I need period It seems like the answer is yes but if there are situations where this wouldn t be the case please give an example . From reading other questions on SO I understand that not all requests need to pass-through the FacesServlet so basically requests are divided into A requests for static content that shouldn t be processed by the FacesServlet and B requests for dynamic-content that need to be processed by the FacesServlet . So how is the static content obtained Just by having an incoming request in which the URL doesn t match the URL pattern for the FacesServlet but does match a real file location in the app file structure .. . .. . Finally my main question : when a request comes in that matches the URL pattern for the FacesServlet how does the FacesServlet know which view file .xhtml to render Is there a convention in working with JSF 2 that I need to follow to make it work If not then I don t get it because like I mentioned above in the case of a general servlet the URL could include a name that nas nothing to do with the real file name as long as it s mapped to the correct servlet in the web.xml file . I feel like I m missing something obvious and important here . The only thing I can think of is that the URL should match a real file location or that there s another mapping table or something that associates URLs with view files . By the way I looked at this question http : stackoverflow.com questions 13284275 why-doesnt-facesservlet-find-xhtml-facelet which is related but doesn t have any answers . Thanks .. . Answer : The easiest way to serve static content is outlined in the servlet specification http : download.oracle.com otndocs jcp servlet-3.0-fr-eval-oth-JSpec section 10.5 : .. . .. . A Web application exists as a structured hierarchy of directories . The root of this hierarchy serves as the document root for files that are part of the application . For example for a Web application with the context path catalog in a Web container the index.html file at the base of the Web application hierarchy or in a JAR file inside WEB-INF lib that includes the index.html under META-INF resources directory can be served to satisfy a request from catalog index.html . If an index.html is present both in the root context and in the META-INF resources directory of a JAR file in the WEB-INF lib directory of the application then the file that is available in the root context MUST be used . The rules for matching URLs to context path are laid out in Chapter 12 Mapping Requests to Servlets . and .. . .. . A special directory exists within the application hierarchy named WEB-INF . This directory contains all things related to the application that aren t in the document root of the application . Most of the WEB-INF node is not part of the public document tree of the application . Except for static resources and JSPs packaged in the META- INF resources of a JAR file that resides in the WEB-INF lib directory no other files contained in the WEB-INF directory may be served directly to a client by the container . That is to serve static content it is sufficient to save the content in the appropriate directory of your web application . Servlet mappings are in addition to this implicit servlet . Most JSF applications therefore only declare the FacesServlet . IIRC in recent JSF implementations that servlet will even declare itself if its declaration is omitted so you don t even have to declare it explicitly . How the FacesServlet locates the definition of the view to use is defined in the JSF specification http : www.jcp.org en jsr detail id 344 in particular section 7.6.2 : .. . .. . The terms view identifier and viewId are used interchangeably below and mean the context relative-path to the web application resource that produces the view such as a JSP page or a Facelets page . In the JSP case this is a context relative-path to the jsp page representing the view such as foo.jsp . In the Facelets case this is a context relative-path to the XHTML page representing the view such as foo.xhtml . .. . JSF implementations must provide a default ViewHandler implementation along with a default ViewDeclarationLanguageFactory implementation that vends ViewDeclarationLanguage implementations designed to support the rendering of JSP pages containing JSF components and Facelets pages containing JSF components . The default implementation is specified in the following section 7.6.2.1 . I spare your the full quotation . The gist is that if the Faces Servlet is mapped with a prefix mapping e.g . faces the viewId is the part of the URL following the prefix and if the Faces Servlet is mapped with a suffix mapping e.g . .jsf the viewId is the part of the URL following the context path with replaced file extension . For instance if the servlet is mapped to .jsf a request for the URL http : host context admin userlist.jsf would read the view definition from the file admin userlist.xhtml in the web application directory . Comment : Thanks for the specs links . So if I m understanding correctly there is an implicit convention in JSF in that the viewId portion of the URL must match a real relative-path to a resource or else nothing will be found . Is this right This would make sense because otherwise I don t know how else the FacesServlet would know which facelet to return . Comment : Yes that is correct . Of course you could customize that convention or even load the view definitions from a totally different source the internal workings of JSF are quite customizable but usually one simply uses that convention . Comment : Great . Thanks for the help", "Question : I m trying to setup a small example application FooTest that uses CXF JAX-RS and JSF . I started with the CXF part implemented a simple service works and a small html page called home.html I can access it in my browser . The relevant code is as follows : .. . .. . web.xml .. . .. . FooService.java .. . .. . Now I can call http : localhost : 8080 FooTest rest foo and http : localhost : 8080 FooTest home.html . However when I start defining and mapping the FacesServlet to .html and try to access home.html I get a NullPointerException . New web.xml .. . .. . Leads to .. . .. . How can I fix this Update - More config info .. . .. . The application runs on the JAX-RS version of TomEE 1.5.2 . src main webapp WEB-INF faces-config.xml .. . .. . Update - Solution .. . .. . Thanks to David Blevins for clarification and pointing me to a useful example .. . .. . Remove the CXF configuration part it is not required . Rename home.html to home.xhtml since .xhtml is the javax.faces.DEFAULT SUFFIX for JSF pages . Keep the FacesServlet mapping if you want to access your JSF pages using the .html extension . This is sufficient : Comment : Where is your faces-config.xml located Comment : In src main webapp WEB-INF Comment : Please post faces-config.xml as well . .. . Answer : Not sure whether this should be a comment or an answer but you shouldn t setup CXFNonSpringJaxrsServlet and FacesServlet in your web.xml all that stuff is there and ready to go . The goal with TomEE is you can skip the server-building and proceed directly to app-building . CXF is fully integrated into Tomcat in TomEE to the point where even WS-Security works on Tomcat Realms . You just start using it by adding @ApplicationPath annotated components or EJBs annotated with @Path and they will be picked up and deployed automatically . MyFaces is good to go and fully integrated with CDI so even things like @ConversationScoped work out of the box . You just need your faces-config.xml or some @ManagedBean classes . Comment : Oh . I was just starting to hate CXF for its messy documentation and the configuration overhead inherited from its Spring nature . It took me some time to figure out what parts I actually need to make it work in the first place . But this is good news Just tried using an empty web.xml and now it works . I guess I have to rename my .xhtml files to .html .xhtml doesn t work but that s fine . Maybe you can explicitly mention this no-configuration-required-thing in the examples and documentation Anyway thanks a lot . Comment : I might be wrong on the JSF part the FacesServet might be needed only for the purposes of getting xhtml enabled . You can definitely do it we just added an example today that does it but shouldn t be needed for JSF in general . Help on the docs is always welcome All the pages have a little blue pencil icon in the upper right . Click that and you can edit the page and submit a kind of pull request Comment : And very glad it s working and welcome to StackOverflow : Comment : Okay I was a little too quick . My example page showed up but didn t render JSF tags . Actual solution : The CXF configuration is not required and had nothing to do with the problem which is good . The FacesServlet mapping is required when you want to acess .xhtml JSF-pages via .html . The problem with my example is that I named my page home.html but the javax.faces.DEFAULT SUFFIX is .xhtml . Unless you change the suffix you can t use .html .", "Question : null .. . Answer : I am trying to internationalize my web application so I am using a ResourceBundle and dynamically changing the locale using : .. . .. . Which worked fine at first . But I am trying to use an AJAX call to update the page and the program uses a third party servlet to handle the AJAX calls . So now when my bean gets called it keeps getting a null exception since I am not in the FacesServlet I m in some other servlet . The code to call the ajax looks like .. . .. . The managed-bean code : .. . .. . Any ideas Comment : FacesContext.getCurrentInstance will be null if the request is not attended by FacesServlet which seems to be your case . I would recommend not refreshing the page through ajax . Comment : @LuiggiMendoza yes I know why it is null but is there another way to refresh page without reloading Comment : No............ . Comment : .. . thanks for your help", "Question : I am using jsf 2.1 mojara with glassfish 3.1 and my web .xml looks like : .. . .. . I am getting this error .. . .. . 2015-03-11T21 : 40 : 15.054+0530 Warning : ApplicationDispatcher JSFProject PWC1231 : Servlet.service for servlet Faces Servlet threw exception javax.servlet.ServletException : PWC1232 : Exceeded maximum depth for nested request dispatches : 20 at org.apache.catalina.core.ApplicationDispatcher.doInvoke ApplicationDispatcher.java : 772 Comment : This particular error in combination with jsp tag on the question suggests that you re actually using JSP instead of Facelets XHTML . Is this true If not why exactly the jsp tag on the question then Comment : @BalusC : No i am not using jsp any where .. . But this error is frustrating ... . : Comment : Don t use jsp tag then . Are there any JARs in webapp s WEB-INF lib If so which Comment : these are the jars that are present : commons-codec-1.9.jar commons-el-1.0.jar commons-fileupload-1.2.2.jar commons-io-2.2.jar commons-logging-1.1.3.jar javax.servlet.jar jsf-api.jar jsf-impl.jar junit-4.12.jar log4j-1.2.17.jar myfaces-api-1.1.5.jar myfaces-impl-1.1.5.jar poi-3.12-beta1-20150228.jar poi-examples-3.12-beta1-20150228.jar poi-excelant-3.12-beta1-20150228.jar poi-ooxml-3.12-beta1-20150228.jar poi-ooxml-schemas-3.12-beta1-20150228.jar poi-scratchpad-3.12-beta1-20150228.jar xmlbeans-2.6.0.jar Comment : Where did you read learn that you should be adding those JARs .. . Answer : This problem suggests that you re using JSF 1.x not JSF 2.x . JSF 1.x uses JSP as default view technology whereas JSF 2.x uses Facelets as default view technology . And JSF 1.x has the known bug feature that its FacesServlet would run in an infinite-loop when it s being mapped on same suffix URL pattern as the physical view file . And indeed your WEB-INF lib contains among others the following JARs which absolutely do not belong there . GlassFish as being a full fledged Java EE container already ships with Servlet and JSF API impl out the box . javax.servlet.jar Servlet API already supplied by GlassFish jsf-api.jar Mojarra 1.x GlassFish already supplies Mojarra 2.x jsf-impl.jar Mojarra 1.x GlassFish already supplies Mojarra 2.x myfaces-api-1.1.5.jar MyFaces 1.x GlassFish already supplies Mojarra 2.x myfaces-impl-1.1.5.jar MyFaces 1.x GlassFish already supplies Mojarra 2.x Get rid of them . Even then you should not be mixing multiple JSF implementations in one webapp . Comment : Even getting the same error now Comment : Clean rebuild redeploy restart . And make sure that your faces-config.xml root declaration conforms at least JSF 2.0 . Comment : got it . . tomahawk20-1.1.10 jar mismatch ...now its working thanks a lot @BalusC Comment : You re welcome .", "Question : I want to use Mojarra 2.1 with Tomcat 7 so I added following dependencies in my pom file : .. . .. . However when I tried to start Tomcat I got following exception : .. . .. . How is this caused and how can I solve it Here s my web.xml file which may contain the cause of the problem : Comment : You may want to track this topic : stackoverflow.com questions 7806986 http : stackoverflow.com questions 7806986 maven-dependecies-for-mojarra-2-1 Someone else is today also having the same problem with Maven and classpath pollution . Comment : Possible duplicate of java.lang.ClassFormatError : Absent Code attribute in method that is not native or abstract in class file javax faces webapp FacesServlet http : stackoverflow.com questions 8081234 java-lang-classformaterror-absent-code-attribute-in-method-that-is-not-native-o .. . Answer : Change : .. . .. . To : Comment : Me too.. . This JSF implementation works in Tomcat", "Question : I want to use Mojarra 2.1 with Tomcat 7 so I added following dependencies in my pom file : .. . .. . However when I tried to start Tomcat I got following exception : .. . .. . How is this caused and how can I solve it Here s my web.xml file which may contain the cause of the problem : Comment : You may want to track this topic : stackoverflow.com questions 7806986 http : stackoverflow.com questions 7806986 maven-dependecies-for-mojarra-2-1 Someone else is today also having the same problem with Maven and classpath pollution . Comment : Possible duplicate of java.lang.ClassFormatError : Absent Code attribute in method that is not native or abstract in class file javax faces webapp FacesServlet http : stackoverflow.com questions 8081234 java-lang-classformaterror-absent-code-attribute-in-method-that-is-not-native-o .. . Answer : I have the same problem as you and found out that change from servlet-api to javax.servlet.api will fix the problem . Hope this help . Please note that I am using Juno Eclipse Tomcat 7 Dynamic Web Module 3.0 and JDK 1.7 .", "Question : I want to use Mojarra 2.1 with Tomcat 7 so I added following dependencies in my pom file : .. . .. . However when I tried to start Tomcat I got following exception : .. . .. . How is this caused and how can I solve it Here s my web.xml file which may contain the cause of the problem : Comment : You may want to track this topic : stackoverflow.com questions 7806986 http : stackoverflow.com questions 7806986 maven-dependecies-for-mojarra-2-1 Someone else is today also having the same problem with Maven and classpath pollution . Comment : Possible duplicate of java.lang.ClassFormatError : Absent Code attribute in method that is not native or abstract in class file javax faces webapp FacesServlet http : stackoverflow.com questions 8081234 java-lang-classformaterror-absent-code-attribute-in-method-that-is-not-native-o .. . Answer : This workaround fixed it for me : http : www.ninthavenue.com.au java-lang-classformaterror-exception-with-eclipselink-static-weaving-solved", "Question : I want to use Mojarra 2.1 with Tomcat 7 so I added following dependencies in my pom file : .. . .. . However when I tried to start Tomcat I got following exception : .. . .. . How is this caused and how can I solve it Here s my web.xml file which may contain the cause of the problem : Comment : You may want to track this topic : stackoverflow.com questions 7806986 http : stackoverflow.com questions 7806986 maven-dependecies-for-mojarra-2-1 Someone else is today also having the same problem with Maven and classpath pollution . Comment : Possible duplicate of java.lang.ClassFormatError : Absent Code attribute in method that is not native or abstract in class file javax faces webapp FacesServlet http : stackoverflow.com questions 8081234 java-lang-classformaterror-absent-code-attribute-in-method-that-is-not-native-o .. . Answer : I traded to glassfish-embedded-all and resolved this .", "Question : I am currently trying to learn java-ee basics and there is a simple jsf example project to get learn intelliJ idea as well . Before IntelliJ I was able to develop jsf project with maven in Eclipse and they were working good but when i did the exact same things in the same order project from webapp archetype add dependencies to pom run maven add jsf servlet to web xml and deploy I got 404 error in return . Don t know if it arrises from some config must be done in intellij or something independent from intellij . So here is my code and when i type localhost : 8080 faces index.xhtml either the faces servlet does not get triggered or something else happens so that the xhtml page is not found .. . .. . 1-project structure : .. . .. . enter image description here http : i.stack.imgur.com JhpEQ.png .. . .. . 2-web.xml : .. . .. . Most probably these two can explain the issue . Thanks for any help : Comment : So the webapp is deployed without context path By default at least in Eclipse it s the project name which is afterwards configureable but you did nowhere mention that . In other words how exactly are you so sure that the URL localhost : 8080 faces index.xhtml is correct The 404 error clearly says it isn t . Comment : Yes there must be something like that but since i am new to intellij i dont know how to handle theese things : I ve just set a context path as pms and tried this url : localhost : 8080 pms faces index.xhtml http : localhost : 8080 pms faces index.xhtml . still 404 Comment : Server normally logs context path when webapp is successfully deployed . It also normally logs any deployment fails . Comment : I thing there is no fail on deployement . Logs says Deployement . . has finished and related stuff but not any deployement fail .. . Answer : I saw this post late but I hope it helps someone else . Under Project Structure makes sure you configured JSF : .. . .. . jsf http : i.stack.imgur.com eYW4E.png Comment : I am really sorry but I converted this app as an eclipse project and the same code worked with no error nothing. . So there is no way to check it if your solution works or not . I deleted intellij since i am not familiar with it and actually because of I don t like now using eclipse . As I said before even if this solution works I can not mark it as solved . But appreciated your help thank you : Comment : believe it or not but I had xercesImpl-2.6.2 xml-apis-1.3.02 that was causing my jsf to fail loading . Replacing it with newer version : xercesImpl-2.11.0 + xml-apis-1.4.01 fixed it . Comment : this is not believe or not decision . I cannot check it there is no project and ide anymore . Again thank you for effort", "Question : I am currently trying to learn java-ee basics and there is a simple jsf example project to get learn intelliJ idea as well . Before IntelliJ I was able to develop jsf project with maven in Eclipse and they were working good but when i did the exact same things in the same order project from webapp archetype add dependencies to pom run maven add jsf servlet to web xml and deploy I got 404 error in return . Don t know if it arrises from some config must be done in intellij or something independent from intellij . So here is my code and when i type localhost : 8080 faces index.xhtml either the faces servlet does not get triggered or something else happens so that the xhtml page is not found .. . .. . 1-project structure : .. . .. . enter image description here http : i.stack.imgur.com JhpEQ.png .. . .. . 2-web.xml : .. . .. . Most probably these two can explain the issue . Thanks for any help : Comment : So the webapp is deployed without context path By default at least in Eclipse it s the project name which is afterwards configureable but you did nowhere mention that . In other words how exactly are you so sure that the URL localhost : 8080 faces index.xhtml is correct The 404 error clearly says it isn t . Comment : Yes there must be something like that but since i am new to intellij i dont know how to handle theese things : I ve just set a context path as pms and tried this url : localhost : 8080 pms faces index.xhtml http : localhost : 8080 pms faces index.xhtml . still 404 Comment : Server normally logs context path when webapp is successfully deployed . It also normally logs any deployment fails . Comment : I thing there is no fail on deployement . Logs says Deployement . . has finished and related stuff but not any deployement fail .. . Answer : You almost certainly failed to add a web facet and artifact to your project . See the IntelliJ documentation . Comment : Searching trying but can t find anything valuable . In eclipse it works . Where am i wrong In documentations they explained how to add jsf module which i tried but this did not work as well . Can u explain a bit more plesa Comment : I have just tried this code on eclipse and it worked. . Seems i should work on eclipse till i get better to understand configrations then pass to intellij", "Question : I want to use Mojarra 2.1 with Tomcat 7 so I added following dependencies in my pom file : .. . .. . However when I tried to start Tomcat I got following exception : .. . .. . How is this caused and how can I solve it Here s my web.xml file which may contain the cause of the problem : Comment : You may want to track this topic : stackoverflow.com questions 7806986 http : stackoverflow.com questions 7806986 maven-dependecies-for-mojarra-2-1 Someone else is today also having the same problem with Maven and classpath pollution . Comment : Possible duplicate of java.lang.ClassFormatError : Absent Code attribute in method that is not native or abstract in class file javax faces webapp FacesServlet http : stackoverflow.com questions 8081234 java-lang-classformaterror-absent-code-attribute-in-method-that-is-not-native-o .. . Answer : I have the same problem and it seams somehow to .. . .. . or .. . .. . after setting them to scope provides or delete them at all when you start an server in maven test it starts working for me . @See this Blog : j ava.lang.ClassFormatError : Absent Code attribute in method that is not native or abstract in class file http : www.mkyong.com hibernate java-lang-classformaterror-absent-code-attribute-in-method-that-is-not-native-or-abstract-in-class-file - It discuss the problem for javax.persistence.GenerationType but I think you and I hit the same problem .", "Question : When I startup my Glassfish 2.1 server it seems to startup without problems but when I try to access its Admin console I get the error : .. . .. . On its console and server.log this is what I can see : .. . .. . The last 2 entries are logged when I access the Admin console for the first time . Why is glassfish marking FacesServlet as unavailable .. . Answer : It could be related to this bug : .. . .. . https : java.net jira browse GLASSFISH-14329 .. . .. . .. . which was fixed on on version 3.1 .", "Question : When I startup my Glassfish 2.1 server it seems to startup without problems but when I try to access its Admin console I get the error : .. . .. . On its console and server.log this is what I can see : .. . .. . The last 2 entries are logged when I access the Admin console for the first time . Why is glassfish marking FacesServlet as unavailable .. . Answer : I had Richfaces jars in my glassfish home lib ext directory that were somehow causing this problem . If I remove them I m able to use the Admin console again .", "Question : I m implementing an enterprise application with Java EE on Glassfish server . I need to my application to execute some logic to show the proper output for a specific subset of URLs . Problem description : .. . .. . My web pages folder has this structure : .. . .. . I want the user to access the URL : .. . .. . But the user must not be able to access the following URLs : .. . .. . When the URL Protected CorrectPage.xhtml is entered I want to execute some logic and depending on the outcome of this logic I want to show either A.xhtml or B.xhtml without any visible URL changes redirects . Solutions tried so far : .. . .. . I thought about using a servlet mapped to Protected .xhtml while leaving the Faces Servlet deal with any other URL in my application . and having : .. . .. . My issue is that I don t know how to implement the Show A.xhtml . I basically want to print to the client my xhtml page . I also thought about solving this last issue by using the response PrintWriter . But than again this doesn t solve my issue since I don t know how to print the xhtml file while also having the evaluation of the expression language contained in it . Conclusion .. . .. . Any help is extremely appreciated . Even if that means changing something in the structure I proposed . Naturally if the creation of a servlet isn t the correct solution for my issues I will leave that track . I m interested only in the outcome the user will experience . Thanks in advance Comment : Make those resources XHTML files - A.xhtml B.xhtml.. . available under WEB-INF and forward the request to them based on this depending on the outcome of this logic I want to show either A.xhtml or B.xhtml without any visible URL changes . make the associated action method return an appropriate navigation case outcome such as return WEB-INF pages A.xhtml . Comment : I want to show either A.xhtml or B.xhtml without any visible URL changes redirects you want the user to see a different page without changing the url how is it even possible Comment : I ll try that solution Tiny . I didn t thought about that . Comment : @Tiny I was able to do what you suggested and I m able to access those files using the servlet s logic . The problem I m experiencing is that for some reason the expression language contained in those files I put in WEB-INF isn t evaluated at all . Comment : I attempted this approach in my real application . I could see everything happening correctly . Evaluation of EL ui : include etc happened all correctly . I just forwarded a request to a resource in question using an action method associated with a p : commandButton or p : commandLink such as return WEB-INF pages A.xhtml . .. . Answer : You may use request.getRequestDispatcher protected page A B .forward request response Comment : Please note that page A B shall be read as a regular expression i.e . pageA or pageB Comment : Thanks for you answer but I think that would call recursively my servlet . My servlet is mapped also to protected A.xhtml to avoid the direct access to those pages from URL . Comment : I think you can simply include some code in the pages so to prevent direct invocation . Comment : Could you specify some I don t know what code are you talking about specifically but I think that would solve my issue . Comment : I am from a tablet at the moment so including code is difficult but :", "Question : null .. . Answer : I m using Mojarra 2.2 on Tomcat 8 and Eclipse 4.4.1 Build id : 20140925-1800 without any additional plugins and no Maven . Everything works fine but in last few days I have the following problem : .. . .. . I start Tomcat can navigate and submit data etc everything works correct . Now if I change my Java code then Tomcat republishes as usual but if I try to refresh the page in browser via F5 then I get the following error : .. . .. . HTTP Status 503 - Servlet Faces Servlet is currently unavailable .. . .. . In Eclipse console the following appears : .. . .. . Now I have to restart Tomcat after every little change in Java source code in order to solve it . I don t know since when I have this issue but I am sure I haven t it before . I changed many things in the project but I cannot figure out the cause of this problem . Here s a snippet of my web.xml : .. . .. . How is this caused and how can I solve it Comment : This is a problem in tooling not in JSF . You d better tell which tooling you re using IDE plugins etc Comment : I figured you re using Eclipse . Now yet the version plugins and the server config . Comment : @BalusC thx i updated the Question with Tooling Infos Comment : OK . There are for sure no recent plugins updates in Eclipse Now we can concentrate on Tomcat . Do you see any stack traces in Tomcat log You can look in Eclipse console but you d depending on exact Tomcat server configuration better also check logfiles in Tomcat installation folder . By the way those Eclipse-generated localizationContext and ConfigureListener entries in web.xml are unnecessary . I don t think they re causing the problem but you d better just remove them to reduce noise . Comment : @BalusC thank you for your help . after trying manythings in Tomcat and Eclipse Configurations Logging Cleaning...etc with no luck i just downloaded new Eclipse new Tomcat new Mojarra then imported my old Project and every thing works just fine . no Idea what causes the Problem .", "Question : null .. . Answer : I m new OSGI . I add necessery bundles in OSGI framework . I want to see JSF page with tags in OSGI . Page is working but tags are not working . For example my index.xhtml is .. . .. . i got Test JSF1232 but i dont see TEST and inside the body . My bundle name is LastTestWeb and my other bundle s list .. . .. . And i import some bundles for jsf tags are working . My manifest folder is .. . .. . and the last one . here is my web.xml .. . .. . why it didnt work i got this error : java.lang.ClassCastException : javax.faces.webapp.FacesServlet cannot be cast to javax.servlet.Servlet . Please help Comment : I don t do OSGI but whatever you do ensure that you re not providing your own java-ee libs . The container should be the one providing those", "Question : I would like the page generic.xhtml to be served in response to requests for specific1.xhtml specific2.xhtml etc.. . .. . .. . Is there some way to set up web.xml so that several requests map to a single file without doing a redirect The specific.xhtml name should always be displayed to the user . The specific names do not match a particular pattern such as starting with the word specific . I have a list of specific names that are all implemented with one page . This is equivalent to having generic.xhtml name specific1 except that the name parameter is the file name in the request . If this cannot be handled through web.xml or some other configuration file what is another approach Pages are served by Tomcat 7 . .. . Answer : I think you should use Tuckey s UrlRewriteFilter http : tuckey.org urlrewrite . It should be pretty easy for you to come up with rules to achieve what you want . Suppose users access your page at www.yourserver.com context subContext specificX.xhtml I think the following rule should achieve your goal you need to test though : P :" ] }
[ "yes-answer-long", "yes-answer-short" ]
user-interface
UNK_RELATION
binary-serialization@binary@91
binary-serialization -- the process of translating data-structures or object state into a @placeholder format .
{ "confidence": [ 35.805355072021484, 34.393577575683594, 33.845455169677734, 33.28334045410156, 33.17649841308594, 33.03873825073242, 30.59014129638672, 30.077796936035156, 29.292373657226562, 28.93239974975586, 28.93239974975586, 28.746383666992188, 28.71865463256836, 28.543285369873047, 28.155624389648438, 28.06664276123047, 27.98590850830078, 27.939552307128906, 27.758007049560547, 27.571308135986328, 27.56601333618164, 27.327980041503906, 27.193477630615234, 27.135156631469727, 26.930557250976562, 26.633636474609375, 26.590450286865234, 26.35784912109375, 26.326683044433594, 26.283157348632812, 26.27922821044922, 26.265392303466797, 25.806991577148438, 25.11388397216797, 25.095109939575195, 25.068462371826172, 25.025177001953125, 25.025177001953125, 25.025177001953125, 24.714054107666016, 24.700218200683594, 24.566173553466797, 24.50619888305664, 24.106700897216797, 24.093791961669922, 23.793182373046875, 23.719261169433594, 23.719261169433594, 23.719261169433594, 23.5552978515625, 23.466890335083008, 23.196556091308594, 23.071102142333984, 22.95039939880371, 22.90633773803711, 22.79783821105957, 22.742612838745117, 22.481510162353516, 22.276596069335938, 22.250120162963867, 22.194725036621094, 22.192827224731445, 22.17027473449707, 22.17027473449707, 22.17027473449707, 22.17027473449707, 22.160974502563477, 22.15408706665039, 22.15408706665039, 22.15408706665039, 22.15408706665039, 22.15408706665039, 22.15408706665039, 22.15408706665039, 22.15408706665039, 22.15408706665039, 22.001422882080078, 21.881343841552734, 21.721553802490234, 21.678791046142578, 21.651046752929688, 21.651046752929688, 21.369354248046875, 21.337905883789062, 21.3089656829834, 21.160446166992188, 21.160446166992188, 21.160446166992188, 21.13869857788086, 21.11355209350586, 21.11355209350586, 21.11355209350586, 21.108257293701172, 21.095792770385742, 20.995285034179688, 20.944204330444336, 20.944204330444336, 20.86435890197754, 20.86435890197754, 20.695507049560547 ], "content": [ "I have a data object that is deep-cloned using a binary-serialization .", "Looks like the binary format contains enough data .", "2 binary-serialization can often take place in the actual binary format that the variable has natively saving the need to convert to and from text .", "Binary serialization", "Serializing data to a binary format is not a safe way to store passwords .", "There s no documentation on the binary format .", "This will perform binary-serialization .", "Also binary-serialization stores too much meta data .", "However it is possible to take the strengths of each for example Google have open-sourced their own data-serialization format protocol-buffers .", "Binary serialization itself is fine - there are a number of perfectly good binary-serialization formats I m talking only about BinaryFormatter itself", "The short answer - do not use the .Net binary-serialization create your own binary-serialization mechanism .", "Use binary-serialization when you want binary", "You seem to have some highly specific assumptions about how Boost Serialization should serialize to it s proprietary non-portable binary format .", "Binary serialization is the worst choice as well as you can t use it to directly serialize state of complicated control like TreeView .", "What your talking about is Binary Serialization and Deserialization .", "You can then write the assemblies as binary-data into an object on serialization and load them into an AppDomain where you can use them to deserialize the rest of the object structure .", "IXmlSerializable doesn t apply to binary-serialization .", "Why binary files serialization is faster to serialize and capture relatively small amount of disk-space in compare to text-files serialization", "My point is if you can debug you can see the exact state of the serialization stream the object passed for serialization and its contents .", "Xml Binary Json...what type of serialization are you referring to", "We are talking about .NET binary-serialization not customized serialization .", "This record has the major and minor version of the format and the IDs of the top object and the headers .", "I m not sure whether anything else in .NET uses this same procedure the most likely candidates would be anything else that uses an object s binary in some format during serialization .", ".. . .. . I have based all my research on the .NET Remoting : Binary Format Data Structure https : msdn.microsoft.com en-us library cc236844.aspx specification .", "@MarshelAbraham I d fix my assumptions about Boost Serialization or spend the time writing serialization code that matches the expected required format", "-- I added the Binary Serialization tag to it thought it might be handy to specify the type of serialization already in the tags .", "Binary serialization is often customized by the class implementing ISerializable .", "Consider to : 1 use another serialization XmlSerializer json 2 to save state - convert data into something e.g .", "The contents of the serialize.txt file are as follows : .. . .. . If you want to do binary-serialization you can use the BinaryFormatter class : .. . .. . This will write the following to our serialization file : .. . .. .", "Here is an example of full serialization and deserialization using protobuf with a dynamic runtime configuration for the data object : .. . .. . This way you can use any object as your data object even if it doesn t have serialization attributes .", "Marshal isn t a good choice for persistent-storage the binary format depends on the specific Ruby version you re using .", "So the question is : how to make datacontract serialization with binary and not xml output", "I was wondering about binary-serialization since that seems to clone an object no matter how complicated in a fairly robust manner .", "If you deserialize the data you will end up with a complete working set of its data including objects A B and C . That s probably the primary benefit of binary-serialization as opposed to XML serialization .", "Note how security is an issue since an attacker could manipulate the serialized data and get your object into an inconsistent state state that is exploitable .", "I m confused - when should I be using XML Serialization and when should I be using Binary Serialization in the .NET framework", "I did the following refactoring : .. . .. . to .. . .. . As stated in in this article http : blog.reveille.org.uk 2009 11 dangers-of-binary-serialization this won t work .", "Binary serialization http : i.stack.imgur.com t4M7o.png .. . .. . We thus now know for sure that the enum value is used and not the key .", "@OphirYoktan Binary serialization is actually pretty vague should we assume that actually means BinaryFormatter", "i need to serialize deserialize its members to plaint binary format corresponding to uint8 t .", "I am using BinaryFormatter to do binary-serialization of some objects in C .", "Use the Data Contract Serializer http : msdn.microsoft.com en-us library ms731073.aspx and specify a binary format perhaps via CreateBinaryWriter http : msdn.microsoft.com en-us library system.xml.xmldictionarywriter.createbinarywriter.aspx .", "Runtime serialization the two formatters is totally different from XML Serialization which is very different from Data Contract serialization .", "Protobuf should allow custom serialization but I m not positive that it will fit your needs maybe you d be better off rethinking your data architecture or generating custom serialization code if your data architecture is regular enough i.e .", "If XML isn t working for you for some reason I d suggest trying a different textual data format such as JSON .", "if you are stuck with using BinaryFormatter you can still offload the work to protobuf-net but it will-change the format so won t be compatible with old data .", "I ve learned much more than I wanted to about binary-serialization today .", "I d like to be able to do the same thing but with Binary Serialization for the cases in which XML does not work .", "@RonBeyer the question is how to achieve binary-serialization deserialization without modifying the serialized classes .", "For fast serialization check out this post : stackoverflow.com questions 549128 http : stackoverflow.com questions 549128 fast-and-compact-object-serialization-in-net", "Binary serialization http : i.stack.imgur.com t4M7o.png .. . .. . To test if name or value is used we can rename the field and see if what gets written to file is different .", "I am trying to serialize and deserialize TCP binary-data in this case .", "You should look into Serialization http : msdn.microsoft.com en-us library 7ay27kt9 28VS.71 29.aspx it should be able to produce a binary or XML-representation of all the contents of the DataTable object .", "Does it also allow custom serialization", "You re better off using a generic format like JSON YAML XML .. .", "Thanks for the format edit posted from my phone", "I don t think that it is possible because deserialization process always creates new object from data .", "The reason a binary formatter is able to deserialize directly to an interface type is because when an object is originally serialized to a binary stream metadata containing type and assembly information is stuck in with the object data .", "Because it is maybe of interest for someone I decided to do this post about What does the binary format of serialized .NET objects look like and how can we interpret it correctly", "1 Text format only uses a subset of the storage capacity of each byte some character codes are reserved .", "SOAP doesn t support extraneous data tolerance .. . .. . So is there any way to take a binary-serialized object and transform it into it s SOAP equivalent just for the purpose of debugging", "We have a solution where we are storing a fairly large complex C object in our database as binary-data .", "Is there a better way to prevent serialization of an entire class", "Thank you for introducing me to the idea of serialization surrogates .", ".NET serialization can mean multiple things e.g .", "Use XML serialization or some kind of protocol-buffers .", "For Binary Serialization .. . .. . For more info take a look at BinaryFormatter https : msdn.microsoft.com ru-ru library system.runtime.serialization.formatters.binary.binaryformatter v vs.110 .aspx .", "The downside is binary-serialization can impact performance significantly but after benchmarking it doesn t appear to be the limiting factor for my particular situation .", "I assume you ve looked at the first Related Question on the right : How to analyse contents of binary-serialization stream", "To start with binary-serialization isn t as popular as XML JSON and other formats which are standardized and are supported virtually anywhere .", "The only hint of a solution I found was an archived webpage created by an enthusiast to understand binary-serialization .", "However I can t figure out how to get the binary-serialization in boost to work with that type .", "I have a client and a server application which communicate over .NET 2.0 Remoting using binary-serialization .", "Specific to .NET If you have two applications that are using the same type system than you can use binary-serialization .", "However there are a range of binary-serialization formats that are very much cross-platform - protobuf ASN.1 being prime examples .", "http : www.nablasoft.com alkampfer index.php 2008 10 31 binary-versus-xml-serialization-size", "If the serialization of each object is independant and is written to a unique file then you could simply use a parallel foreach loop but I would guess that the bottleneck is IO and not processing .", "Now the state that deserialisation is putting the object into may not correspond to that possible by any constructor .", "I would suggest looking at protobuf-net which has simpler conditional serialization using the standard patterns used by TypeDescriptor and XmlSerializer but is still binary output more efficient than BinaryFormatter actually .", "You can control serialization by implementing ISerializable and if you do you will know which serialization context is active remoting file etc .", "You cannot recover that from the binary-data .", "It is impossible to deserialize binary-data without knowing what s in it .", "Binary", "If he deserializes the changed onlyFoo again theBaz and theBar will have the same modified onlyFoo so if someone requests an object for example theBar he gets the full serialized object with all the referenced objects onlyFoo like the normal serialization process would return .", "I m using binary-serialization BinaryFormatter as a temporary mechanism to store state information in a file for a relatively complex game object structure the files are coming out much larger than I expect and my data structure includes recursive references - so I m wondering whether the BinaryFormatter is actually storing multiple copies of the same objects or whether my basic number of objects and values I should have arithmentic is way off-base or where else the excessive size is coming from .", "This data object supports property changed events for example PriceChanged .", "The requirement is to support the deep-cloning of a data object that is constantly evolving i.e .", "One data object takes 300-1000 bytes in memory .", "I think the cleaner way would be to implenment ISerializable Interface and mange yourself the serialization and the reverse process .", "The difference is that you would be customizing the serialization of the delegate not the class containing it .", "Most of the examples I ve seen deal with higher level serialization such as JSON .", "Net you can mark a field as non serializable and it will be skipped during serialization .", "xml-serialization is simply a categorisation XmlSerializer is a specific example of an API for xml-serialization .", "Any changes to the data-structures properties and fields of the class will cause you problems when trying to deserialize the data .", "Lets say I have the object line from class Line : .. . .. . line Line.new.. . .. . .. . How can I binary serialize the line object", "retrieve its BitsPerPixel and it tries to determine the bits per pixel for the invalid format you get an exception .", "So let s hope that the .ToString method of DataTable outputs a string in a format that contains all the contents of the DataTable instance but alas .", "Don t try to implement ISerializable - it is for custom serialization .", "Good thing I m migrating over to xml-serialization .", "This likely means my object is too heavy for text serialization it takes around 200Mb in memory but there are lots of elements in the array lots of properties in each of the element etc ." ] }
{ "confidence": [ 41.09271240234375, 37.76571273803711, 36.319698333740234, 35.93339920043945, 34.93415069580078, 34.75028991699219, 34.02616882324219, 33.73202133178711, 33.66367721557617, 33.50041198730469, 33.21210861206055, 32.344451904296875, 32.243263244628906, 32.04813766479492, 31.601503372192383, 31.52898406982422, 31.422279357910156, 31.112892150878906, 30.907318115234375, 30.849143981933594 ], "content": [ "Question : null .. . Answer : Why binary files serialization is faster to serialize and capture relatively small amount of disk-space in compare to text-files serialization Comment : 1 Text format only uses a subset of the storage capacity of each byte some character codes are reserved . 2 binary-serialization can often take place in the actual binary format that the variable has natively saving the need to convert to and from text . Comment : - also if you try to actually take a look at some examples of data serialized as XML the overhead should be fairly obvious . Depending on the data types involved it is not uncommon to see the size of the XML meta data tags attribute names and so on dwarf the actual payload size by factors of 3 or more .", "Question : I spent a good portion of time last week working on serialization . During that time I found many examples utilizing either the BinaryFormatter or XmlSerializer . Unfortunately what I did not find were any examples comprehensively detailing the differences between the two . The genesis of my curiosity lies in why the BinaryFormatter is able to deserialize directly to an interface whilst the XmlSerializer is not . Jon Skeet http : stackoverflow.com users 22656 jon-skeet in an answer to casting to multiple unknown types at runtime http : stackoverflow.com questions 619197 casting-to-multiple-unknown-types-at-runtime 619210 619210 provides an example of direct binary-serialization to an interface . Stan R . http : stackoverflow.com users 119929 stan-r provided me with the means of accomplishing my goal using the XmlSerializer in his answer to XML Object Deserialization to Interface http : stackoverflow.com questions 1145791 xml-object-deserialization-to-interface 1145800 1145800 . Beyond the obvious of the BinaryFormatter utilizes binary-serialization whilst the XmlSerializer uses XML I d like to more fully understand the fundamental differences . When to use one or the other and the pros and cons of each . .. . Answer : Just to weigh in.. . The obvious difference between the two is binary vs xml but it does go a lot deeper than that : .. . .. . fields BinaryFormatter bf vs public members typically properties XmlSerializer xs .. . type-metadata based bf vs contract-based xs .. . version-brittle bf vs version-tolerant xs .. . graph bf vs tree xs .. . .NET specific bf vs portable xs .. . opaque bf vs human-readable xs .. . .. . As a discussion of why BinaryFormatter can be brittle see here http : marcgravell.blogspot.com 2009 03 obfuscation-serialization-and.html . It is impossible to discuss which is bigger all the type metadata in BinaryFormatter can make it bigger . And XmlSerializer can work very with compression like gzip . However it is possible to take the strengths of each for example Google have open-sourced their own data-serialization format protocol-buffers . This is : .. . .. . contract-based .. . portable see list of implementations http : code.google.com p protobuf wiki ThirdPartyAddOns .. . version-tolerant .. . tree-based .. . opaque although there are tools to show data when combined with a .proto .. . typically contract-first http : code.google.com apis protocolbuffers docs proto.html but some implementations allow implicit contracts based on reflection .. . .. . But importantly it is very dense data no type metadata pure binary representation short tags tricks like variant-length base-7 encoding and very efficient to process no complex xml structure no strings to match to members etc . I might be a little biased I maintain one of the implementations including several suitable for C .NET but you ll note I haven t linked to any specific implementation the format stands under its own merits -p", "Question : I have a working XML Serializer which serializes a C object to an entity in AutoCAD . I d like to be able to do the same thing but with Binary Serialization for the cases in which XML does not work . So far my serialization method looks like this : .. . .. . It s heavily based on my XML Serializer except I have no idea how to get the serialized object into a resultbuffer to be added to the Xrecord of entityToWriteTo . Comment : I m just going to advise : I regularly see victims of BinaryFormatter - who due to some small refactor or revision cannot deserialize their data I can t think of very many scenarios when I would actually advise people to use BinaryFormatter . Binary serialization itself is fine - there are a number of perfectly good binary-serialization formats I m talking only about BinaryFormatter itself Comment : I m not sure if it would it would work and maybe @Marc Gravel could ring in on this . But i believe protobuf could handle this task . I believe it has the functionality to serialize external objects . Comment : @Trae yep protobuf-net will work for a lot of models - not all . I d have to see specifics to comment in more detail .. . Answer : If XML isn t working for you for some reason I d suggest trying a different textual data format such as JSON . The free and open-source JSON formatter Json.NET http : www.newtonsoft.com json has some support for situations that can trip up XmlSerializer including .. . .. . Dictionaries http : www.newtonsoft.com json help html SerializeDictionary.htm . Classes lacking default constructors http : www.newtonsoft.com json help html T Newtonsoft Json JsonConstructorAttribute.htm . polymorphic types http : www.newtonsoft.com json help html SerializeTypeNameHandling.htm . Complex data conversion and remapping http : www.newtonsoft.com json help html CustomJsonConverter.htm . Plus JSON is quite readable so you may be able to diagnose problems in your data by visual examination . That being said you can convert the output stream from BinaryFormatter to a base64 string using the following helper methods : .. . .. . The resulting string can then be stored in a ResultBuffer as you would store an XML string .", "Question : In . Net you can mark a field as non serializable and it will be skipped during serialization . I m looking for a simple method that will allow me to control in runtime whether a specific field should be serialized . Comment : .NET serialization can mean multiple things e.g . Xml Binary Json...what type of serialization are you referring to Comment : Binary serialization Comment : @OphirYoktan Binary serialization is actually pretty vague should we assume that actually means BinaryFormatter The two are not synonymous there are multiple binary serializers for .NET both in the framework for example NetDataContractSerializer and as external libraries protobuf-net msgpack etc .. . Answer : You are referring to mark a field as non serializable so I assume you are using BinaryFormatter and NonSerialized . If so the only way to do conditional serialization is by implementing ISerializable and adding a similar constructor and putting the logic in the GetObjectData implementation . This is tedious and error prone though . I would suggest looking at protobuf-net which has simpler conditional serialization using the standard patterns used by TypeDescriptor and XmlSerializer but is still binary output more efficient than BinaryFormatter actually . Specifically : .. . .. . This ShouldSerialize is a standard name-based convention - nothing specific to this serializer . Here s the same via ISerializable : .. . .. . Lots more to maintain in particular you have to take responsibility for all members when using ISerializable - however if you just use protobuf-net you can handle each on a case-by-case basis . Actually you can mix-and-match too i.e . if you are stuck with using BinaryFormatter you can still offload the work to protobuf-net but it will-change the format so won t be compatible with old data . For example : Comment : Thanks . Very good answer .", "Question : I m using binary-serialization BinaryFormatter as a temporary mechanism to store state information in a file for a relatively complex game object structure the files are coming out much larger than I expect and my data structure includes recursive references - so I m wondering whether the BinaryFormatter is actually storing multiple copies of the same objects or whether my basic number of objects and values I should have arithmentic is way off-base or where else the excessive size is coming from . Searching on stack-overflow I was able to find the specification for Microsoft s binary remoting format : http : msdn.microsoft.com en-us library cc236844 PROT.10 .aspx .. . .. . What I can t find is any existing viewer that enables you to peek into the contents of a binaryformatter output file - get object counts and total bytes for different object types in the file etc .. . .. . I feel like this must be my google-fu failing me what little I have - can anyone help This must have been done before right .. . .. . UPDATE : I could not find it and got no answers so I put something relatively quick together link-to downloadable project below I can confirm the BinaryFormatter does not store multiple copies of the same object but it does print quite a lot of metadata to the stream . If you need efficient storage build your own custom serialization methods . .. . Answer : Maybe you could run your program in debug mode and try adding a control point . If that is impossible due to the size of the game or other dependencies you can always coade a simple small app that includes the deserialization code and peek from the debug mode there . Comment : Sorry I don t understand what you mean.. . I can debug and look at the resulting deserialized object in VS but that doesn t tell me anything about how many objects of what type were in the serialized stream what was duplicated etc or does it Am I missing something Comment : My point is if you can debug you can see the exact state of the serialization stream the object passed for serialization and its contents . Comment : I m sorry if I m being dull here or missing some major feature of VS but as I don t have access to the internals of the BinaryFormatter adding a breakpoint will simply allow be to see the stream and then see the deserialized object of course I have the contents of the stream as a file and I had the object before I even serialized it so this doesn t give me anything useful . My problem is not being able to explore the object itself through the VS IDE I d like to understand the structure of the stream data and space usage within it . Comment : I m sorry I really did understand wrongly your question . I assume there s not such major feature . My bad .", "Question : I m using binary-serialization BinaryFormatter as a temporary mechanism to store state information in a file for a relatively complex game object structure the files are coming out much larger than I expect and my data structure includes recursive references - so I m wondering whether the BinaryFormatter is actually storing multiple copies of the same objects or whether my basic number of objects and values I should have arithmentic is way off-base or where else the excessive size is coming from . Searching on stack-overflow I was able to find the specification for Microsoft s binary remoting format : http : msdn.microsoft.com en-us library cc236844 PROT.10 .aspx .. . .. . What I can t find is any existing viewer that enables you to peek into the contents of a binaryformatter output file - get object counts and total bytes for different object types in the file etc .. . .. . I feel like this must be my google-fu failing me what little I have - can anyone help This must have been done before right .. . .. . UPDATE : I could not find it and got no answers so I put something relatively quick together link-to downloadable project below I can confirm the BinaryFormatter does not store multiple copies of the same object but it does print quite a lot of metadata to the stream . If you need efficient storage build your own custom serialization methods . .. . Answer : Our application operates massive data . It can take up to 1-2 GB of RAM like your game . We met same storing multiple copies of the same objects problem . Also binary-serialization stores too much meta data . When it was first implemented the serialized file took about 1-2 GB . Nowadays I managed to decrease the value - 50-100 MB . What did we do . The short answer - do not use the .Net binary-serialization create your own binary-serialization mechanism . We have own BinaryFormatter class and ISerializable interface with two methods Serialize Deserialize . Same object should not be serialized more than once . We save it s unique ID and restore the object from cache . I can share some code if you ask . EDIT : It seems you are correct . See the following code - it proves I was wrong . Looks like BinaryFormatter uses object.Equals to find same objects . Have you ever looked inside the generated files If you open temp-file0.txt and temp-file1.txt from the code example you ll see it has lots of meta data . That s why I recommended you to create your own serialization mechanism . Sorry for being cofusing . Comment : thanks - I will ultimately use XML serialization probably because human-readability is pretty important to me - but really my goal question right now is how is to understand what the BinaryFormatter class is actually storing so that I can determine whether to focus on implementing my own serialization OR address some other design issue in the data structure itself . I d like to know what s in the file : Comment : Sure BinaryFormatter stores multiple copies of the same objects . I checked that some time ago . It really does . Comment : Fair enough I ll hold out for a couple of days to see whether anyone finds knows of a way to view stats on the contents of the stream as I intended and otherwise will look into building something . Comment : Sorry just one more note on this topic - as far as I could tell in a hierarchical structure with backreferences a few thousand objects of various types summing to 10MB serialized BinaryFormatter does NOT store multiple copies of the same object I d be interested to see any evidence to the contrary.. . Comment : I ve published some code to prove I was wrong .", "Question : I am trying to Serialize a class . Class definition : .. . .. . serializedRequest.str.size provides me a length of 87 .. . .. . Actually it should provide me 65 bytes . I ve counted u can figure that out from the constructor .. . .. . I suspect it is appending lengths in between . I have tried using text archive also it doesnt work . What I need is to just plain serialize class-members as it is . I guess i need to use some traits or wrappers . Please let me know .. . .. . Thanks Comment : what is your question Comment : updated question Comment : How do you define incorrect here You seem to have a very specific idea of how the correct format should work--what is it Also there s no way to characterize the number of bytes even given a spec because you re not showing any types in your question . Comment : added class defenition . I calculated the bytes from the data type and strlen . Comment : actually on my 64bit box with boost 1 56 the size is 107 instead of 87 . .. . Answer : You seem to have some highly specific assumptions about how Boost Serialization should serialize to it s proprietary non-portable binary format . Boost serialization is much more highlevel more or less specifically designed to deal with non-POD data . If you insist you should be able to serialize an array of your POD type directly . In your question though the class is not at all POD and hence not bitwise serializable anyway . For portable archives see EOS Portable Archive . Boost Archives have optional flags that suppress the format header : .. . .. . See Archive Models http : www.boost.org doc libs 1 56 0 libs serialization doc archives.html archive models .. . .. . Here s a backgrounder to see what introduces overhead over simple bitwise serialization : .. . .. . Boost C++ Serialization overhead http : stackoverflow.com questions 22459726 boost-c-serialization-overhead 22464553 22464553 .. . how to do performance test using the boost library for a custom library http : stackoverflow.com questions 23571355 how-to-do-performance-test-using-the-boost-library-for-a-custom-library 23572674 23572674 Comment : thanks for the help so what would you suggest me : I have a whole lot of classess . i need to serialize deserialize its members to plaint binary format corresponding to uint8 t . I thought Boost Serialization would be smart and do it for me : What would you suggest. . I have added some more code in my question Comment : @MarshelAbraham I d fix my assumptions about Boost Serialization or spend the time writing serialization code that matches the expected required format Comment : I ve seen a nice talk on using Boost Fusion toi generate the serialization code on CppCon 2014 . This is what I d consider for large numbers of classes . Comment : I m trying to figure out Boost fusion omg its heavy and I doubt if it supports classes am worried about my code redablity too . Would love to get it done by the Boost Serialization . I think the size of bytes are getting appended what does the no codecvt mean thanks Comment : If you doubt it supports classes then what part of Fusion did you look at Anyways yes this would lead to some 200 lines of library code to avoid having to write repetitious code elsewhere . This was in response to I have a whole lot of classes .", "Question : I m confused - when should I be using XML Serialization and when should I be using Binary Serialization in the .NET framework Comment : Use binary-serialization when you want binary Where s the confusion Comment : Just want or any Should circumstance .. . Answer : Both of the existing answers focus on cross-platform but that is an unrelated issue . The point they are making there is don t use BinaryFormatter if you are doing cross-platform - which I entirely support . However there are a range of binary-serialization formats that are very much cross-platform - protobuf ASN.1 being prime examples . So let s look instead at what each has to offer .. . .. . Binary is typically smaller typically faster to process at both ends and not easily human-readable editable .. . Text formats xml json tend to be more verbose than binary although often compresses well but are pretty easy to work with by hand but all that text-processing an mapping tends to make them slower .. . xml is very common is web-services and benefits from gooling support such as xsd xslt and robust xml editors .. . json is the main player in browser-based comms although it is also used in web-services - tends to be less formal but still very effective .. . .. . Notice how interoperability is neither a strength nor weakness of either as long as you choose an appropriate binary format Here s an answer http : stackoverflow.com questions 3790728 performance-tests-of-serializations-used-by-wcf-bindings 3793091 3793091 that compares the serialization time deserialization and space metrics of most of the .NET serializers for your reference . Comment : Kinda curious how do you find your old answers Just today i tried to track down one of my recent answers to some related question and i had a hard time finding it . Comment : @H.B . usually via google for example http : www.google.com search sourceid chrome ie UTF-8 q 2B 22ok+i ll+bite 22+ 2Bgravell+site : stackoverflow.com", "Question : I m using binary-serialization BinaryFormatter as a temporary mechanism to store state information in a file for a relatively complex game object structure the files are coming out much larger than I expect and my data structure includes recursive references - so I m wondering whether the BinaryFormatter is actually storing multiple copies of the same objects or whether my basic number of objects and values I should have arithmentic is way off-base or where else the excessive size is coming from . Searching on stack-overflow I was able to find the specification for Microsoft s binary remoting format : http : msdn.microsoft.com en-us library cc236844 PROT.10 .aspx .. . .. . What I can t find is any existing viewer that enables you to peek into the contents of a binaryformatter output file - get object counts and total bytes for different object types in the file etc .. . .. . I feel like this must be my google-fu failing me what little I have - can anyone help This must have been done before right .. . .. . UPDATE : I could not find it and got no answers so I put something relatively quick together link-to downloadable project below I can confirm the BinaryFormatter does not store multiple copies of the same object but it does print quite a lot of metadata to the stream . If you need efficient storage build your own custom serialization methods . .. . Answer : Vasiliy is right in that I will ultimately need to implement my own formatter serialization process to better handle versioning and to output a much more compact stream before compression . I did want to understand what was happening in the stream however so I wrote up a relatively quick class that does what I wanted : .. . .. . parses its way through the stream building a collections of object names counts and sizes .. . once done outputs a quick summary of what it found - classes counts and total sizes in the stream .. . .. . It s not useful enough for me to put it somewhere visible like codeproject so I just dumped the project in a zip file on my website : http : www.architectshack.com BinarySerializationAnalysis.ashx .. . .. . In my specific case it turns out that the problem was twofold : .. . .. . The BinaryFormatter is VERY verbose this is known I just didn t realize the extent .. . I did have issues in my class it turned out I was storing objects that I didn t want .. . .. . Hope this helps someone at some point .. . .. . Update : Ian Wright contacted me with a problem with the original code where it crashed when the source object s contained decimal values . This is now corrected and I ve used the occasion to move the code to GitHub and give it a permissive BSD license . Comment : Make all your enums as bytes public MyEnumName : byte - you ll save some more space . Comment : thx didn t know about that", "Question : im trying to convert a tree view to a byte array and then back again . so far when the form loads it will load the structure of my documents . Then as far as i know it will convert it to a byte array and back but im not sure how to convert the byte array back to the tree view . Here is my code .. . .. . So the bit thats giving me the error at the moment is treeView2 list as i Cannot implicitly convert type System.collections.generic.List to System.Windows.Forms.TreeView . anyone have any ideas Comment : im trying to convert a tree view to a byte array and then back again - this is called serialization . Binary serialization is the worst choice as well as you can t use it to directly serialize state of complicated control like TreeView . Consider to : 1 use another serialization XmlSerializer json 2 to save state - convert data into something e.g . TreeView.Nodes - hierarchical List Item and serialize that to restore - first read something and then add items one by one . Comment : All visual stuff like TreeNode isn t a good choice for any persistence as like as BinaryFormatter isn t a good choice for implementing persistence using serialization deserialization . It is better to have your own DTO model classes which can be easily serialized deserialized by any API that provides portable format XML JSON etc . Comment : i probably should of said im not a good programmer and i dont really understand any of what was just said lol i didnt make the code but thats the only code i could find . im not looking for 100 effective full proof way just something that works for now if you have that Comment : also i know u said binary is the worst but eventually its going to be sent over tcp so i think it has to be .. . Answer : In your DeSerilizeQueryFilters method you should be able to just call .AddRange on your TreeView s Nodes collection and add all the nodes from your list . .. . .. . EDIT : .. . .. . Also in your SerilizeQueryFilters method you re currently only adding the first TreeNode to your list . To add all of the nodes simply replace : .. . .. . with : Comment : thanks its working perfectly now Comment : @RachelDockter : You re welcome . :", "Question : I saved an object of type DataTable into SQL 2005 database in a field of type varbinary . I want to retrieve it back but I wasn t able to type cast it . This is how i saved it . The dt is the DataTable object instance . .. . Answer : I m afraid I ll have to disappoint you at least until you tell us that you ve created an extension method for the StreamWriter class that handles data tables . The only overload of the Write method that accepts a DataTable instance is the one that takes an object and per the MSDN documentation http : msdn.microsoft.com en-us library dfc2b8zk.aspx it only saves the text representation of the object . So let s hope that the .ToString method of DataTable outputs a string in a format that contains all the contents of the DataTable instance but alas . The .ToString method only returns the contents of the TableName property http : msdn.microsoft.com en-us library system.data.datatable.tostring.aspx and a display expression if one is present . So what you ve saved is not the contents of the DataTable instance all only the name of the table . You should look into Serialization http : msdn.microsoft.com en-us library 7ay27kt9 28VS.71 29.aspx it should be able to produce a binary or XML-representation of all the contents of the DataTable object .", "Question : I need to serialize deserialize a class with subclasses in which a member is a dictionary . Another member is a class storing passwords so it can t be XML but binary . Have found that very nice solution which might be easy and issue-free . http : theburningmonk.com 2010 05 net-tips-xml-serialize-or-deserialize-dictionary-in-csharp .. . .. . But this example and all the others I have found have an xml output which is not the right solution for my problem . So the question is : how to make datacontract serialization with binary and not xml output Thanx in advance .. . .. . ---ADD--- Even using a filestream with that class : .. . .. . and doing .. . .. . the output is XML . Comment : DataContractSerializer.WriteObject has an overload that accepts a binary writer which you aren t using - see msdn.microsoft.com en-us library ms752244 v vs.110 .aspx https : msdn.microsoft.com en-us library ms752244 v vs.110 .aspx . Serializing data to a binary format is not a safe way to store passwords . Comment : Thanks working fine . Why not posting it as a solution .. . Answer : Like Preston Guillot already mentioned in his comment . The DataContractSerializer.WriteObject also accepts a binary writer . Here is an example just for the sake of completeness .", "Question : A week ago I got in a situation where I had to read a binary serialized object made by another application made by somebody else . I only had the someSerializedData.bin file so I tried to manually recreate the class definition for the unknown object and I was able to do so because of the metadata in the serialized file . Oddly I couldn t find any tool on google . Q1 : Why is there no tool that recreates the class definition from a binary serialized file data .. . .. . And it leads to my second question .. . .. . Q2 : Is there such case-when it s impossible to restore the class definition from the serialized data Assuming it s no encrypted or obfuscated in any way I m interested in cases involving the default .net Binaryserializer properties to disable type information and metadata included Comment : Please don t just downvote tell me what s wrong so I can improve the question . Comment : i think what u are looking for is called reflection taking machine code and reverse it back to C am i right Comment : Do you have a copy of the app that made the .bin file If so you can de-comple it and look at the code . See dotPeak : jetbrains.com decompiler http : www.jetbrains.com decompiler Comment : May be this link can help you . msdn.microsoft.com en-us library cc236844.aspx http : msdn.microsoft.com en-us library cc236844.aspx Comment : Binary serialization is often customized by the class implementing ISerializable . Lots of .NET classes to this for example . You cannot recover that from the binary-data . .. . Answer : Q1 : Why is there no tool that recreates the class definition from a binary serialized file data My guess is that very few people need this . To start with binary-serialization isn t as popular as XML JSON and other formats which are standardized and are supported virtually anywhere . There s no documentation on the binary format . One needs to dig into .NET Framework sources to understand it . It s not fun . Q2 : Is there such case-when it s impossible to restore the class definition from the serialized data Looks like the binary format contains enough data . If you absolutely need a tool to reverse engineer original classes and their fields from the serializied files you can start with reading sources of System.Runtime.Serialization.Formatters.Binary.BinaryFormatter System.Runtime.Serialization.Formatters.Binary.ObjectReader and other classes from mscorlib . However if the application which produced the files isn t obfuscated I suggest trying to decompile it first . It will likely be much easier . P.S . Don t forget to consult your lawyer . Comment : Athari What do you mean by Don t forget to consult your lawyer . : P Comment : @Casual Decompiling software you don t own is illegal in many countries . And by owning commercial software I mean actual owning not having bought a copy for use as many EULAs disallow decompiling . There re some countries including Australia and Russia which always allow decompiling for specific purposes overriding all EULAs . I m not sure about reverse-engineering file formats and protocols . On the whole if you re not sure it s a good idea to consult a lawyer . P.S . It s @ not . And notifications about comments are always sent to the question s and answer s authors .", "Question : If you have an object instance A that references other objects for example instances B and C and you binary serialize A to a file what happens Do you now have serialized data that includes A B and C How does it work exactly What will I get if I deserialize the data A B and C Feel free to include internal workings explanations as well . .. . Answer : All of the references to other objects will be serialized as well . If you deserialize the data you will end up with a complete working set of its data including objects A B and C . That s probably the primary benefit of binary-serialization as opposed to XML serialization . If any of the other classes your object holds a reference to are not marked with the Serializable attribute http : msdn.microsoft.com en-us library system.serializableattribute.aspx you ll get a SerializationException http : msdn.microsoft.com en-us library system.runtime.serialization.serializationexception.aspx at run-time the image of which was shamelessly stolen from the web run-time errors don t even look like this anymore in the current versions of VS : .. . .. . Example of an unhandled SerializationException http : i.stack.imgur.com 2DZkk.jpg .. . .. . Further than that I m not really sure what internal things you were hoping to understand . Serialization uses reflection http : msdn.microsoft.com en-us library f7ykdhsy.aspx to walk through the public and private fields of objects converting them to a stream of bytes which are ultimately written out to a data-stream . During deserialization the inverse happens : a stream of bytes is read in from the data-stream which is used to synthesize an exact replicate of the object along with type information . All of the fields in the object have the same values that they held before the constructor is not called when an object is deserialized . The easiest way to think about it is that you re simply taking a snapshot-in-place of the object that you can restore to its original state at will . The class that is responsible for the actual serialization and deserialization is called a formatter it always inherits from the IFormatter interface http : msdn.microsoft.com en-us library system.runtime.serialization.iformatter.aspx . It s job is to generate an object graph which is a generalized tree containing the object that is being serialized deserialized as its root . As mentioned above the formatter uses reflection to walk through this object graph serializing deserializing all object references contained by that object . The formatter is also intelligent enough to know not to serialize any object in the graph more than once . If two object references actually point to the same object this will be detected and that object will only be serialized once . This and other logic prevents entering an infinite-loop . Of course it s easy to have a good general understanding of how this process works . It s much harder to actually write the code that implements it yourself . Fortunately that s already been done for you . Part of the point of the .NET Framework is that all this complicated serialization logic is built-in leaving you free from worrying about it . I don t claim to understand all of it myself and you certainly don t need to either to take full advantage of the functionality it offers . Years of writing all that code by hand are finally over . You should be rejoicing rather than worrying about implementation details . : - Comment : Thanks Cody exactly what I was looking for . The reason I ask for the interal workings of things is that I don t really understand and get the ah ha unless I do . I have to visualize everything in order to get it and remember it . Thanks again for the great answer . Comment : @Richard : Of course . I understand how that goes because I m much the same way myself . I wasn t so much trying to get across that you shouldn t try to understand it . Rather that it gets incredibly complicated from here and that little bit of extra knowledge isn t worth understanding to have an appreciation of how it works . Anyway you re welcome .", "Question : As we all know and mentioned in MSDN https : msdn.microsoft.com en-us library ms973893.aspx f 255 site : .. . .. . The serialization architecture provided with the .NET Framework correctly handles object graphs and circular references automatically . The only requirement placed on object graphs is that all objects referenced by the object that is being serialized must also be marked as Serializable . If this is not done an exception will be thrown when the serializer attempts to serialize the unmarked object . My question is why this constraint is applied If this is a constraint - Comment : It is because BinaryFormatter explicitly check presence of this attribute and throw exception if it absent . Comment : @PetSerAl That s not the question . question is why this constraint is applied If this is a constraint - Comment : Binary serialisation will serialise private fields too . This might have unintended consequences in some objects . There are some library s you can use if you need to overcome this . This isn t necessarily the answer to the question . Just a comment . .. . Answer : BinaryFormatter has very unusual powers nothing else resembles what it does . It can create an object of your class without running its constructor . And it can give a value to your properties without running the property setter accessor methods . Otherwise nothing particular magical about this it simply persists the values of the fields of your class object . And restores them when the object is deserialized . Not every class is suitable to be treated like this either because of security concerns or because field values depend on runtime state too much . Note how security is an issue since an attacker could manipulate the serialized data and get your object into an inconsistent state state that is exploitable . Say an IsAdministrator property . A good example of critical runtime state is the Control.Handle property it can never have the same value when you deserialize . These are practical constraints that the BinaryFormatter class can not figure out by itself . It needs help an explicit okay that it is safe to do this . This cannot be a formal okay when you write the code to de serialize the object that would be easy but it in practice you don t know enough about the class since you did not write it . The class author needs to do this he does so by giving it the Serializable attribute .", "Question : null .. . Answer : I have tried to serialized a big class with a lot of strings by binary formatter using C : .. . .. . The speed of read and write is a little faster than the original XML S L method . However when I opened the binary file by notepad though most of them are unreadable the value of the string is still as the original one and looks like not-be-serialized at all like : .. . .. . My friend told me that this still can be improved . He said when the string being serialized the entire binary file is totally unreadable and the loading speed can be further increased . Is that true Is there still anyway I can do with this serialized file Comment : Default BinaryFormatter produces binary-data as you have seen - strings are not encoded typenames also . Comment : For fast serialization check out this post : stackoverflow.com questions 549128 http : stackoverflow.com questions 549128 fast-and-compact-object-serialization-in-net", "Question : Are Enums binary serialized as numbers or as text - I want to rename them . Example : Comment : I believe that byte is used to serialize enum . Comment : @PatrickHofman enum are whichever numeric type they are based on defaulting to int if none is specified . That in the question is byte . .. . Answer : It depends on the serializer you are using . Here is code that uses the DataContractSerializer .. . .. . This will serialize the data as XML which uses the enum s name and not the value . The contents of the serialize.txt file are as follows : .. . .. . If you want to do binary-serialization you can use the BinaryFormatter class : .. . .. . This will write the following to our serialization file : .. . .. . Binary serialization http : i.stack.imgur.com t4M7o.png .. . .. . To test if name or value is used we can rename the field and see if what gets written to file is different . First we rename the enum field : .. . .. . Now if we examine the data that was written to file we can see that the contents are the same : .. . .. . Binary serialization http : i.stack.imgur.com t4M7o.png .. . .. . We thus now know for sure that the enum value is used and not the key .", "Question : Lets say I have the object line from class Line : .. . .. . line Line.new.. . .. . .. . How can I binary serialize the line object I tried with : .. . .. . but it created file and didn t add anything . I read the Class : IO documentation but I couldn t really get it . Comment : Marshal isn t a good choice for persistent-storage the binary format depends on the specific Ruby version you re using . You re better off using a generic format like JSON YAML XML .. . .. . Answer : Like this : .. . .. . Save line : .. . .. . Retrieve into line1 : .. . .. . Confirm it works :", "Question : When BinaryFormatter deserializes a stream into objects it appears to create new objects without calling constructors . How is it doing this And why Is there anything else in .NET that does this Here s a demo : .. . .. . Output : .. . .. . Cars constructed : 1 .. . But there are actually two . Comment : Good question . To work around this you will need to do some pointer reference fixups during deserialization which might be hard or even impossible . Note the fact that new Car was only called once . You might want to try this in 2 processes . Comment : possible duplicate of DataContractSerializer doesn t call my constructor http : stackoverflow.com questions 1076730 datacontractserializer-doesnt-call-my-constructor Comment : Note : The other question I linked to is about DataContractSerializer but the explanation is the same for BinaryFormatter Comment : @Thomas : Thanks that answers it . FormatterServices.GetUninitializedObject is bizarre . .. . Answer : The thing is BinaryFormatter isn t really making your particular object . It s putting an object graph back into memory . The object graph is basically the representation of your object in memory this was created when the object is serialized . Then the deserialize call basically just sticks that graph back in memory as an object at an open pointer and then it gets casted to what it actually is by the code . If it s casted wrong then an exception is thrown . As to your particular example you are only really constructing one car you are just making an exact duplicate of that car . When you serialize it off into the stream you store an exact binary copy of it . When you deserialize it you don t have to construct anything . It just sticks the graph in memory at some pointer value as an object and lets you do whatever you want with it . Your comparison of car1 car2 is true because of that different pointer location since Car is a reference-type . Why Frankly it s easy to just go pull the binary representation rather than having to go and pull each property and all that . I m not sure whether anything else in .NET uses this same procedure the most likely candidates would be anything else that uses an object s binary in some format during serialization .", "Question : I have a data object that is deep-cloned using a binary-serialization . This data object supports property changed events for example PriceChanged . Let s say I attached a handler to PriceChanged . When the code attempts to serialize PriceChanged it throws an exception that the handler isn t marked as serializable . My alternatives : .. . .. . I can t easily remove all handlers from the event before serialization .. . I don t want to mark the handler as serializable because I d have to recursively mark all the handlers dependencies as well . I don t want to mark PriceChanged as NonSerialized - there are tens of events like this that could potentially have handlers . EDIT : Another reason why I can t do this is because the data classes and hence the events are generated and I don t have direct control over the generation code . Ideally the generation code would just mark all events as NonSerialized . Ideally I d like .NET to just stop going down the object graph at that point and make that a leaf . So why doesn t .NET allow an entire class to be marked as NonSerialized .. . .. . -- .. . .. . I finally worked around this problem by making the handler implement ISerializable and doing nothing in the serialize constructor GetDataObject method . But the handler still is serialized just with all its dependencies set to null - so I had to account for that as well . Is there a better way to prevent serialization of an entire class That is one that doesn t require accounting for the null dependencies .. . Answer : While I tend to disagree with the approach I would simply mark the events as NonSerialized regardless of how many there are you could probably do this using serialization surrogates . The idea is that you create an object that implements ISerializationSurrogate and basically does what you re already doing - nothing in the GetObjectData and SetObjectData methods . The difference is that you would be customizing the serialization of the delegate not the class containing it . Something like : .. . .. . Then you register this with the formatter using the procedures outlined in this MSDN column http : msdn.microsoft.com en-us magazine cc188950.aspx . Then whenever the formatter encounters a delegate it uses the surrogate instead of serializating the delegate directly . Comment : Thank you for introducing me to the idea of serialization surrogates . I like it - at least I don t have to pollute the original data class . One thing though - I haven t tried it yet but I suspect that I ll still have the null dependencies problem Comment : I wouldn t think so . Since you would be intercepting the serialization of delegates and effectively cancelling it the handlers would not be serialized at all ." ] }
[ "yes-answer-long", "yes-answer-short" ]
binary
UNK_RELATION
erb@ruby@46
erb -- erb is a simple templating system for @placeholder embedding code in any plain-text document .
{ "confidence": [ 46.376739501953125, 44.37843322753906, 43.08161926269531, 41.334922790527344, 39.76116943359375, 39.40083312988281, 38.55560302734375, 37.90510559082031, 36.905181884765625, 36.87092590332031, 36.87092590332031, 36.87092590332031, 36.73075866699219, 35.90667724609375, 35.90667724609375, 35.905574798583984, 35.766510009765625, 35.72420120239258, 35.69637680053711, 35.37412643432617, 35.37412643432617, 35.37412643432617, 35.37412643432617, 35.13395690917969, 34.78917694091797, 34.78917694091797, 34.759952545166016, 34.750999450683594, 34.750999450683594, 34.750999450683594, 34.750999450683594, 34.750999450683594, 34.750999450683594, 34.48289108276367, 34.48289108276367, 34.48289108276367, 34.48289108276367, 34.40987777709961, 34.40987777709961, 34.24369812011719, 34.08625411987305, 33.62727355957031, 33.622928619384766, 33.51864242553711, 33.51864242553711, 33.51864242553711, 33.51864242553711, 33.51864242553711, 33.46013641357422, 33.39533233642578, 33.363914489746094, 33.363914489746094, 33.363914489746094, 33.363914489746094, 33.363914489746094, 33.363914489746094, 33.363914489746094, 33.363914489746094, 33.363914489746094, 33.363914489746094, 33.25419998168945, 32.54679489135742, 32.39966583251953, 32.39966583251953, 32.39966583251953, 32.39966583251953, 32.39966583251953, 32.39966583251953, 32.39966583251953, 32.39966583251953, 32.3851318359375, 32.36296463012695, 32.36296463012695, 32.36296463012695, 32.282997131347656, 32.09747314453125, 32.09747314453125, 32.09747314453125, 32.09747314453125, 32.09747314453125, 32.09747314453125, 31.537731170654297, 31.503002166748047, 31.397167205810547, 31.243988037109375, 31.243988037109375, 31.243988037109375, 31.243988037109375, 31.243988037109375, 31.172653198242188, 30.995264053344727, 30.991479873657227, 30.821624755859375, 30.64097023010254, 30.64097023010254, 30.64097023010254, 30.64097023010254, 30.64097023010254, 30.64097023010254, 30.64097023010254 ], "content": [ "I need ERB Ruby s templating system for templating of non-HTML files .", "This is a good basic article - http : rrn.dk rubys-erb-templating-system And one more - http : www.stuartellis.eu articles erb", "ERB is the templating language used to generate HTML .", "erb files will simply output text .", "From Stuart Ellis s An Introduction to ERB Templating http : www.stuartellis.eu articles erb : .. . .. . ERB Embedded RuBy is a feature of Ruby that enables you to conveniently generate any kind of text in any quantity from templates .", "EDIT : windows has erb.bat and just plain erb .", "I can t find any way to get ERB within ERB using any kind of syntax .", "Is it impossible in erb", "Is it possible to compile these ERB code in the assets", "What does erb mean", "erb stands for Embedded RuBy .", "Logically this utility is called erb .", "In ERB : The signify that there is Ruby code here to be interpreted .", "Is there a way to access the erb comments", "Prints something into erb file .", "Chaining ERB .jst.ejs.erb does not work because the EJS syntax conflicts with ERB .", "I have code which is working in erb - where is it", "Eg I m working with a system that has some Erb templates in the database .", "from template-format http : www.stuartellis.eu articles erb template-format A file that contains an ERB template may have any name but it is the convention that the name of file should end with the .erb extension .", "erb is a part of Ruby std lib .", "What s the difference between eruby and erb", "Is it possible to store erb templates in database", ".. . ERB is part of the Ruby standard-library .", "Any other ways to escape characters strings in ERB", "It s the gem that handles templating in Sinatra and it provides ERB yields along with many other nice features .", "ERB is templating Class in Ruby and is often used in .rhtml or .erb.html HTML with embedded Ruby in rails .", "I have a system that filters template files through erb .", "Then use it in your ERB file :", "Puppet should read the ERB .", "Erb Haml or Slim", "Is there a converter for slim to erb", "JSP s got nothin on ERB .", "EDIT example of erb -x :", "So I have created a custom erb generator and templates directory in my application in lib generators erb scaffold .", "note the difference of ERB tags http : stackoverflow.com questions 7996695 what-is-the-difference-between-and-in-erb-in-rails in general .", "So the problem isn t just interpolation you have an ERB-within-ERB problem mixed in too", "I create a bindings class .. . .. . and pass an instance to ERB .. . .. . The .erb template file looks like this :", "Maybe it s a different flavour of ERB .", "Also what would be the ERB binding", ".. . .. . Of course none of that stuff will work with embedded ERB like this : .. . .. . because the ERB parser will see the first as the closing delimiter for the outer code.. . part .", "This suggests that any object or set of objects may be passed in to the erb from Ruby .", "ruby-doc.org stdlib libdoc erb rdoc classes ERB.html http : www.ruby-doc.org stdlib libdoc erb rdoc classes ERB.html If it didn t work on their PC they either had a typo or they weren t using real ERB .", "Then you can call in controller code like this to render that ERB .", "Putting the metadata in an erb comment seems good -- it will be automatically ignored by erb but I m not sure how to access the comment data .", "A lot of my templates do a bunch of erb stuff but I could run erb in a separate step if it makes the rest easier .", "In your terminal type : .. . .. . And inside your project folder use : .. . .. . All erb files will be converted to slim and the erb files will be renamed .", "Visit Ruby Doc http : ruby-doc.org stdlib-1.9.3 libdoc erb rdoc ERB.html for more infos about ERB .", "You can replace the dirname fname basename fname .haml .erb with fname .haml .erb .", "If you can switch ERB to Erubis your problem solving is as simple as :", "And the erb works fine .", "If I put above ERB in layout it works fine .", "In general Erb errors tell you where they occurred .", "What is the difference Between .erb .rhtml and .html.erb", "You cannot serve .erb files out of public .", "How does ERB know that it should be rendering a in the yield", "Added : To get a list of the variables used by an .erb file :", "Unlike a scripting-language escape there is no default output for erb .", "It s one of only a few supported ERB tags .", "As @Chowlett mentioned before erb stands for Embedded Ruby .", "REF : http : stoneship.org essays erb-and-the-context-object", "The short answer is as a beginner use ERB .", "possible duplicate of What s the difference between code and code in Rails erb", "Fyi HTML isn t executed server-side ERB is .", "The title is rendered in the layout erb as h1 @title h1 .", "Also note that Haml is often a superior alternative to ERb .", "Yes it is much easier to deal with than ERb", "As .erb tags are similar to jsp I used it for the view .", "I want to perform it using Erb not javascript", "Example : .. . .. . In the erb template : .. . .. . The HTML generated is escaped :", "I want to change html style to erb .", "very simple .. . .. . in your Gemfile add .. . .. . then run bundle install .. . .. . for Converting .erb to .haml keeping original files do : .. . .. . for Converting .erb to .haml replacing original files do : .. . .. . it ll search all the erb files in project and convert to haml .", "possible duplicate of Disable HTML escaping in erb templates http : stackoverflow.com questions 4699497 disable-html-escaping-in-erb-templates", "This would be what you would use to print out an erb-style JST ie underscore within a a rails erb file .", "sprockets sass partial erb extension http : stackoverflow.com questions 9268515 sprockets-sass-partial-erb-extension rq 1 .", "Also to clear up any confusion this code belongs in the controller not another ERB file .", "Like this .. . .. . Pony ruby sinatra didn t like putting the erb : emailhtml direct into the options hash and the layout file needed to be set before the erb method .", "If you pass local vars erb : index : locals .. . and you need to pass those local vars along you can then call erb : controls locals", "So is there a way to specify a string that contains a ERB end-delimiter in an ERB string or am I stuck using the slightly clunkier file-read method", "erb http : www.ruby-doc.org stdlib libdoc erb rdoc classes ERB.html M000301 has two method to evaluate inline ruby expressions .", "@meagar ruby-doc.org stdlib libdoc erb rdoc classes ERB.html http : www.ruby-doc.org stdlib libdoc erb rdoc classes ERB.html", "If you want erb in the .coffee files IN YOUR VIEW folder leave your file named as yourfilename.js.coffee and Rails will still process the ERB oddly enough .", "According to this http : nestacms.com docs design templating-engines .erb templates seem fully supported though they only describe how to apply them for individual routes .", "Or how to translate this code to rails erb only one single file : .. . .. . result :", "I have some simple erb code in one of my views in a rails project .", "I have no experience with them only erb .", "What s the best way to return erb from an enumerable", "Is there anything erb can do that haml can t", "I see that it supposedly beats erb and eruby now.. .", "The ERB issue on SASS files remained untouched .", "Embedded Ruby also called ERb is the primary template system for including dynamic-content in web pages .", "Since erb is simply a function and given a template and binding will return a variable it returns the values of text and functions recursively .", "I would prefer to make this work by specifying the code in a variable as above but I can t seem to get an ERB delimiter to work inside of a string inside of an erb block .", "ERB is good mainly if you have a web designer that will work on plain HTML and does not know either haml or slim .", "lib templates erb scaffold is the correct path for rails scaffold .", "How can I insert empty ERB tags and put cursor inside it", "Can you count more than two or in a line of your erb view", "For instance here your error is on line 6 of the erb file .", "Can you post more information about your error and the erb that caused it", "So with file.html.erb the content-type is html and the template-engine is ERb .", "You can t as far as I m aware define classes within erb ." ] }
{ "confidence": [ 53.76702880859375, 52.768089294433594, 52.52994918823242, 52.12717056274414, 51.45640563964844, 48.95707702636719, 48.68939971923828, 48.406982421875, 47.971771240234375, 47.911537170410156, 45.86520767211914, 45.67360305786133, 44.60421371459961, 44.60421371459961, 44.39291000366211, 43.34712600708008, 43.340206146240234, 41.98448944091797, 41.730804443359375, 41.482975006103516 ], "content": [ "Question : How can I use yield for template inheritance in erb I want to use erb in a plain ruby CGI script and want to use a base template and subtemplate like it Rails with the application template does . .. . Answer : I don t think you can - Rails provides that infrastructure as part of actionpack . What you may be able to do is take actionpack and add it into your script . Alternatively you could roll a lightweight templating system yourself . Alternatively alternatively use Rails or Merb or Sinatra . Comment : Despite the down-votes the layouts and template inheritance is part of Rails not ERB itself .", "Question : I need ERB Ruby s templating system for templating of non-HTML files . Instead I want to use it for source files such as .java .cs .. . .. . .. . How do I execute Ruby templates from command-line .. . Answer : You should have everything you need in your ruby bin directory . On my WinXP Ruby 1.8.6 system I have ruby bin erb.bat .. . .. . so erb your erb file.erb should write the result to STDOUT . EDIT : windows has erb.bat and just plain erb . The .bat file is just a wrapper for erb which I guess should make the same command work pretty much the same on any OS .. . .. . See the prag prog book http : www.ruby-doc.org docs ProgrammingRuby html web.html discussion starts about half-way down the page . Note also that Jack Herrington wrote a whole book http : rads.stackoverflow.com amzn click 1930110979 about code generation that uses Ruby ERB . Comment : Great I was trying to run erb without knowing if it s correct but failed so I thought that it can t be done directly but need some external library instead . After your reply I realized that I only had a custom ruby installed which wasn t in system s path Thank you Comment : I need it for an ant script it has to run on all platforms . I noticed that here under linux I have erb without extension but you ve mentioned erb.bat so I assume under windows you don t have erb without extension . Can you suggest me how to start erb in a multi-platform way Comment : This and you can inject variables like a boss : erb echo -n somevar yay cat your.erb", "Question : I need ERB Ruby s templating system for templating of non-HTML files . Instead I want to use it for source files such as .java .cs .. . .. . .. . How do I execute Ruby templates from command-line .. . Answer : If you can switch ERB to Erubis your problem solving is as simple as :", "Question : How can I use yield for template inheritance in erb I want to use erb in a plain ruby CGI script and want to use a base template and subtemplate like it Rails with the application template does . .. . Answer : Check out Tilt http : github.com rtomayko tilt . It s the gem that handles templating in Sinatra and it provides ERB yields along with many other nice features .", "Question : I need ERB Ruby s templating system for templating of non-HTML files . Instead I want to use it for source files such as .java .cs .. . .. . .. . How do I execute Ruby templates from command-line .. . Answer : This is a good basic article - http : rrn.dk rubys-erb-templating-system And one more - http : www.stuartellis.eu articles erb", "Question : Why is the view of Rails application in the format .erb.html What does erb mean .. . Answer : From Stuart Ellis s An Introduction to ERB Templating http : www.stuartellis.eu articles erb : .. . .. . ERB Embedded RuBy is a feature of Ruby that enables you to conveniently generate any kind of text in any quantity from templates . The templates themselves combine plain text with Ruby code for variable substitution and flow-control which makes them easy to write and maintain . .. . Although ERB is most commonly seen generating Web pages it is also used to produce XML documents RSS feeds source code and other forms of structured-text file . It can be extremely valuable when you need to create files which include many repetitions of a standard pattern such as unit test suites . .. . The main component of ERB is a library which you can call within your Ruby applications and Rake tasks . This library accepts any string as a template and imposes no limitations on the source of the template . You may define a template entirely within your code or store it in an external location and load it as required . This means that you can keep templates in files SQL databases or any other kind of storage that you want to use . .. . Ruby distributions also include a command-line utility that enables you to process templates that are held in files without writing any additional code . Logically this utility is called erb . .. . ERB is part of the Ruby standard-library . You do not need to install any other software to use it . .. . .. . The original article contains more detail and a short guide to using ERB . You can also read the official docs http : ruby-doc.org stdlib-2.2.3 libdoc erb rdoc ERB.html . .. . .. . Note : the quoted block above was previously posted as an answer by another user without linking to An Introduction to ERB Templating or acknowledging that it was not that user s work . That post was rightly deleted for plagiarism . However I thought it was a useful answer so I ve reposted the quote giving proper attribution to Stuart Ellis the original author .", "Question : I need ERB Ruby s templating system for templating of non-HTML files . Instead I want to use it for source files such as .java .cs .. . .. . .. . How do I execute Ruby templates from command-line .. . Answer : Another option would be to use ruby -e since ERB itslef is so simple . Something like : .. . .. . However I assume you have a context you want to render the template in . How are you expecting to get that context As an example check out : .. . .. . which will print out hello world using the top-level where you defined the hello variable as the binding .", "Question : I need ERB Ruby s templating system for templating of non-HTML files . Instead I want to use it for source files such as .java .cs .. . .. . .. . How do I execute Ruby templates from command-line .. . Answer : Write a ruby script that does it . The API documentation is here : http : www.ruby-doc.org stdlib libdoc erb rdoc .. . .. . For example : .. . .. . Where binding is a binding with the @vars that the template needs . Comment : Warning - some Ruby versions do not support various features of Rails ERB e.g . omit blank lines endings .", "Question : I have a system that filters template files through erb . Using convention over configuration the output files get created in a file hierarchy that mirrors the input files . Many of the files have the same names and I was able to use the directories to differentiate them . That plan worked until I needed to associate additional info with each file . So I created a YAML file in each directory with the metadata . Now I have both convention and configuration . Yuck . Then I learned Webby http : webby.rubyforge.org and the way it includes a YAML metadata section at the top of each template file . They look like this : .. . .. . If I could implement a header like that I could ditch my hierarchy and the separate YAML files . The Webby implementation is very generic implementing a new MetaFile class that separates the header from the real text but it seems more complicated than I need . Putting the metadata in an erb comment seems good -- it will be automatically ignored by erb but I m not sure how to access the comment data . Is there a way to access the erb comments Or maybe a different approach A lot of my templates do a bunch of erb stuff but I could run erb in a separate step if it makes the rest easier . .. . Answer : How about if you dump your content as YAML too . Presumably the metadata is simply a Hash dumped to YAML . You could just append the content as string in a second YAML document in the same file : - .. . .. . Dumping is as simple as : - .. . .. . Loading is as simple as : - .. . .. . Note that the pipe character appears in the YAML so that newlines in the content string are preserved http : www.yaml.org YAML for ruby.html single ending newline . Comment : I like this approach nicer for human viewing than the erb comment . Some of my content might already include yaml but I think I m safe if I escape any document separators ---", "Question : Why is the view of Rails application in the format .erb.html What does erb mean .. . Answer : ERB is templating Class in Ruby and is often used in .rhtml or .erb.html HTML with embedded Ruby in rails . Here is a nice detail on the Ruby docs . http : ruby-doc.org stdlib-1.9.3 libdoc erb rdoc ERB.html", "Question : null .. . Answer : I m choosing a templating system for a gem so I was thinking to use Erubis which it seems to be faster than ERB http : www.kuwata-lab.com erubis but the last released version is from 2011 https : rubygems.org gems erubis versions . As ERB is integrated into the ruby stdlib I guess their performance has been improved these last three years but I don t know if has been improved enought to surpass to Erubis . Comment : You can find answer here : stackoverflow.com questions 27620228 http : stackoverflow.com questions 27620228 ruby-2-1-with-erubis-template-engine 27690911", "Question : Why is the view of Rails application in the format .erb.html What does erb mean .. . Answer : from template-format http : www.stuartellis.eu articles erb template-format A file that contains an ERB template may have any name but it is the convention that the name of file should end with the .erb extension . Rails requires template files to have the extension of the output type followed by .erb so that a name like layout.html.erb indicates a HTML template . erb files will simply output text . Nothing more . What text is depending on the mix of static text and ruby code inside the file . You can use erb to generate html which default usage in Rails because that s what browsers need to display a page . In ruby there are certain defaults One default is that a controller will render a html page . But you can easily make it respond with .xml or .json or .csv if you write a web-api for it .. . .. . Erb is a library class that generates text . Nothing more . It expects a file that contains static text and ruby code mixed . It will run the ruby code and write the result to another file which in case for your controllers is html", "Question : How can I use yield for template inheritance in erb I want to use erb in a plain ruby CGI script and want to use a base template and subtemplate like it Rails with the application template does . .. . Answer : It s important that the call to Kernel binding be inside a method that way the context includes the block ERB result won t take a block . Comment : I wasn t able to get this to work . How does ERB know that it should be rendering a in the yield", "Question : How can I use yield for template inheritance in erb I want to use erb in a plain ruby CGI script and want to use a base template and subtemplate like it Rails with the application template does . .. . Answer : You can use Tilt but if you don t want to add an extra dependency here s a better example on how you can yield in erb : .. . .. . I found the answer here http : nuclearsquid.com writings yielding-in-erb-templates .", "Question : Im sending like this : .. . .. . Its working really well except the plain text email arrives full of the layout html .. . .. . How do i tell it to not use the layout just the email.erb template .. . Answer : Like this .. . .. . Pony ruby sinatra didn t like putting the erb : emailhtml direct into the options hash and the layout file needed to be set before the erb method . yay .", "Question : null .. . Answer : I m trying to get Nesta http : nestacms.com to use .erb templates for layout and page templates but confused as to how to go about it . With partials it s easy : .. . .. . becomes : .. . .. . However I can t figure out how to have all my pages point to a layout.erb file instead of a layout.haml file . According to this http : nestacms.com docs design templating-engines .erb templates seem fully supported though they only describe how to apply them for individual routes . While confusingly in this post http : nestacms.com blog version-0-9-13 it says that features include support for Erb templates in the views folder only not for pages Does anyone have a better understanding of this", "Question : How can I use yield for template inheritance in erb I want to use erb in a plain ruby CGI script and want to use a base template and subtemplate like it Rails with the application template does . .. . Answer : I wrote about adding this to the Standard Library s ERB here http : hostiledeveloper.com 2015 05 28 working-with-templates-in-ruby-erb.html .. . .. . It s surprisingly a pain in the butt .", "Question : I have a rails project the views only consist with HTML.ERB files my client wants to convert ERB to HAML . I have too many views file . It s taking a huge amount of time to convert file by file . So that any simply way I can convert HTML to haml I installed haml plugin under my project . .. . Answer : very simple .. . .. . in your Gemfile add .. . .. . then run bundle install .. . .. . for Converting .erb to .haml keeping original files do : .. . .. . for Converting .erb to .haml replacing original files do : .. . .. . it ll search all the erb files in project and convert to haml .", "Question : I need ERB Ruby s templating system for templating of non-HTML files . Instead I want to use it for source files such as .java .cs .. . .. . .. . How do I execute Ruby templates from command-line .. . Answer : I tried to comment on this but comments link not available . I m using this : .. . .. . From the posting above : and I found what I think it might be a problem : .. . .. . I m creating DOS BATCH files like : .. . .. . And I found weird thing problem - I get this when I run with the code above : .. . .. . I tried the following and got round my particular problem - not sure if this is the right answer for everybody .. .", "Question : I have many html.slim files that I would like to convert into html.erb files since I am not familiar with the slim syntax . Is there a converter for slim to erb I found a converter for html to slim that has the functionality I am looking for but it does not do slim to erb . http : html2slim.herokuapp.com .. . Answer : They are both templating engines and they have different functionality . There will never be any kind of converter because there are so few cases one should need such tool . Such tool would need to support both language functions but they are not fully compatible there are stuff that exists in one and is not available in another and visa-versa . To answer your original question how you can convert slim to erb my answer is that you need to learn both languages and do it manually . My suggestion is that you learn the one you are planning to use and stick with it My suggestion would be ERB . If you are newbie don t jump on different engines stick with one learn it to the bone and then after years of experience try doing the same or doing better with other engines . Comment : Conceptually I believe this answer is accurate however using the ERBConverter as suggested by Peter was a more actionable answer . Thank you for the help . That is great advice and I will take it" ] }
[ "yes-answer-long", "yes-answer-short" ]
ruby
UNK_RELATION
dropzone.js@drag-and-drop@65
dropzone.js -- an open-source javascript library which provides @placeholder file uploads with image previews .
{ "confidence": [ 37.00237274169922, 32.2510871887207, 31.43463897705078, 29.403079986572266, 29.20771026611328, 28.95346450805664, 27.83199691772461, 27.257776260375977, 26.867778778076172, 26.701499938964844, 26.701499938964844, 26.574499130249023, 26.53682518005371, 25.406330108642578, 25.346572875976562, 25.346572875976562, 25.343721389770508, 25.343721389770508, 24.782440185546875, 24.612529754638672, 24.213226318359375, 24.05139923095703, 24.015724182128906, 23.651945114135742, 23.651945114135742, 23.233867645263672, 23.14035415649414, 22.858295440673828, 22.419296264648438, 22.419296264648438, 22.297016143798828, 22.297016143798828, 21.47899627685547, 21.288799285888672, 21.288799285888672, 20.776893615722656, 20.724353790283203, 20.70762062072754, 20.348499298095703, 20.18756103515625, 19.98518180847168, 19.93387222290039, 19.93387222290039, 19.859962463378906, 19.842506408691406, 19.27507781982422, 19.262248992919922, 19.262248992919922, 19.212738037109375, 18.846561431884766, 18.80001449584961, 18.73961639404297, 18.62788963317871, 18.48757553100586, 18.25939178466797, 18.25939178466797, 18.22260284423828, 17.949260711669922, 17.872169494628906, 17.620370864868164, 17.493993759155273, 17.492774963378906, 17.489463806152344, 17.465843200683594, 17.260717391967773, 17.128894805908203, 16.867671966552734, 16.781503677368164, 16.756839752197266, 16.756839752197266, 16.756839752197266, 16.588573455810547, 16.433971405029297, 16.100393295288086, 16.07634925842285, 16.060779571533203, 15.875589370727539, 15.818540573120117, 15.756895065307617, 15.756895065307617, 15.727472305297852, 15.698844909667969, 15.698844909667969, 15.640700340270996, 15.640700340270996, 15.46030044555664, 15.445098876953125, 15.429401397705078, 15.374541282653809, 15.374541282653809, 15.374541282653809, 15.186784744262695, 15.118124008178711, 15.009679794311523, 14.98006534576416, 14.98006534576416, 14.974283218383789, 14.962911605834961, 14.962911605834961, 14.962911605834961 ], "content": [ "I am using JQuery and Dropzone.js to accept video file uploads .", "This function is present in dropzone.js file .", "The first from dropzone.js which stored the image in a tmp directory .", "I am using dropzone.js to implement file uploading .", "I m using Dropzone.js on a webform to upload image files .", "Dropzone.js was the issue .", "HTML .. . .. . dropzone.js .. . .. . can t get value .", "http : stackoverflow.com a 19432731 3113858 .. . .. . Here is dropzone.js script https : raw.githubusercontent.com enyo dropzone master downloads dropzone.js for reference", "This form contains the file paths which were put there in hidden fields by dropzone.js .", "I m encountering the same problem with Dropzone.js .", "I am using Laravel and Dropzone.js .", "I ve made a dropzone.js that allows visitors to my Wordpress hosted site to upload a large image which displays a thumbnail on successful upload .", "On the client-side I m using dropzone.js .", "Rename your dropzone.js to dropzone-struts2.js .. . 2 .", "I m trying to use dropzone.js with django .", "But the ajax call from the dropzone.js is not working .", "How can I set my sails.js application in order to upload a file using dropzone.js on the client and sails+formidable on the server", "I m looking to write a test to upload a file using Fluentlenium and DropZone.js http : www.dropzonejs.com .", "Dropzone.js works in a modal and then you can drag-and-drop or upload the normal way .", "the upload is working with meteor-uploads https : github.com tomitrescak meteor-uploads .", "I am trying to implement multiple-file-upload with Dropzone.js and my backend is Sails v0.10.0-rc8 .", "I am customizing the dropzone.js using browse link .", "Index.php .. . .. . Upload.php .. . .. . Just to confirm I am looking to get the answers to : .. . .. . Getting dropzone.js to show current images in the file .. . Getting dropzone.js to allow user to delete images if needed .. . Rename the image file to something random .. . .. . Any help would be appreciated .", "I am new in jQuery and have used dropzone.js for drag-and-drop images .", "I m working in a project with angularJS and Laravel and I m using Dropzone.js to upload images .", "From what I have read so far people keep mentioning using inline formsets for multiple image uploads - is that the same case-when using dropzone.js", "Solution .. . .. . Instead of messing with custom Interceptors and Converters do a simple adjustment on the dropzone.js library you use for your Struts2 projects : .. . .. . 1 .", "Do anyone know why dropzone.js doesn t return mimtype of .flv file on chrome .", "I have a dropzone.js instance on a web page with the following options : .. . .. . It is programmatically instantiated as it is part of a larger form .", ".. . .. . I know this question is an old one but in the new release 4.3.0 of dropzone.js this functionality is included with the renameFilename option .", "where to put this code inside dropzone.js or html codes where form placed", "I m new to using dropzone.js and still getting my head around the implementation .", "I ve found many posts getting this to work in Selenium using things like : .. . .. . I however cannot sendKeys to anything because their isn t even an input-type-file when using DropZone.js .", "I am using DropZone.js .. . .. . My configuration is .. . .. . This code is working perfectly with my local host .", "The first handles details of the product while the second is a dropzone using dropzone.js allowing them to upload photos .", "I found something in the random html codes it says Image source not readable . .", "This has one required parameter image and if we only want anonymous uploads all we need is a registered app https : api.imgur.com oauth2 register .", "I want to upload multiple pictures to each blog post using dropzone.js .", "When you use dropzone.js http : www.dropzonejs.com toc 6 instead the filename will be altered to handle the multiple input client-side by appending to it : .. . .. . paramName : The name of the file param that gets transferred .", "Is there a way in Javascript or JQuery to check if an attached file is ProRes compression formatted", "Bottle stores file uploads in request.files as FileUpload http : bottlepy.org docs dev api.html bottle.FileUpload instances along with some metadata about the upload .", "Depending on the use-case how do I constrain the number of files that dropzone.js will allow", "Can anyone help me to debug i have an issue on how to load all files from server using dropzone.js .", "+ n + : .. . .. . .. . Now it is Struts2 compliant and will work with multiple uploads .", "I use this directive to render Dropzone.js in page : .. . .. . and in my controller use this code : .. . .. . In Dropzone to show files already stored on server use mockFile and this.emit for this .", "I m trying to use the Dropzone js plugin.. . the drop area works i drop an image there and the image thumbnail appears but it seems the form doesn t recognize any file to be selected when i try to submit it", "Please help me i m tring to create file uploading with dropzone.js and php but when i try to upload large-files like 4mb or more my script doesn t work but in case with small files it s worked prefect why", "Use Following code in your index file .. . .. . Upload.php .. . .. . delete temp files.php .. . .. . Hope this will be helpful for uploading images using ajax and delete using ajax : .. . .. . I have found from following references : .. . .. . Dropzone.js- How to delete files from server", "I want to have a template with a form-for the user to input the post title and description and then have a form below it for the dropzone.js which allows them to drag-and-drop their images into .", "Open the file and search + n + line 866 in latest version .. . 3 .", "I need to support file uploads in IE9 so any help will be greatly appreciated .", "UPDATE .. . .. . Forgot to mention I am also using Dropzone for the uploads .", "http : stackoverflow.com questions 17452662 dropzone-js-how-to-delete-files-from-server 17457380 17457380 Dropzone.js remove button with php http : stackoverflow.com questions 17400470 dropzone-js-remove-button-with-php 17427379 17427379 .. . .. . Also add following code in your dropzone.js file after line 1110 for preventing user to upload duplicate files with same name : .. . .. . Dropzone.prototype.addFile function file .. . .. . Reference Link : https : www.bountysource.com issues 2993843-dropzone-did-not-check-the-duplicate-file-on-addfile utm campaign plugin utm content tracker 2F283989 utm medium issues utm source github https : www.bountysource.com issues 2993843-dropzone-did-not-check-the-duplicate-file-on-addfile utm campaign plugin utm content tracker 2F283989 utm medium issues utm source github", "I have a view with the dropbox called index.ctp : .. . .. . In my controller VouchersController.php is the upload function als follows : .. . .. . It seems that the dropzone.js works correctly .", "Javascript code is mine .", "I am no javascript genius .", "What I want is to enable user to drag-and-drop any attachment from their gmail or if possible any other email-client to upload directly to a php upload form and if possibly use dropzone.js for drag-and-drop functionality .", "I m building a Website with PHP and would like to use Dropzone.js to upload the users pictures this is how I m using Dropzone.js I followed a guiding example .. . .. . Now on the parser.php .. . .. . The thing is that I m coding the project on Codeanywhere not really sure why the pictures aren t loading if I echo my directory I get .. . .. . home cabox workspace xxxxxxxx img .. . .. . So it should work any advice working on this with Codeanywhere", "Where is the mistake in javascript first of all", "Currently I am using dropzone to upload a file and I would like to send this file to Lumenworks to open and read so that I can parse it .", ".. . .. . We re using the Imgur image upload API endpoint https : api.imgur.com endpoints image image-upload .", "OR is there any way so that i can use PHP functions like file-get-contents in .js file and in JavaScript function", "Thanks but I don t know how to determine first image so what should I check in file parameter to check that this is first image", "I have one image uploaded in my site and when I want to replace it I save it correctly but when I open the page again the preview is the old image .", "enter image description here http : i.stack.imgur.com 06yPm.png .. . .. . I have tried : .. . .. . In my page level script-tag : .. . .. . I ve disabled the dropzone clickable in my dropzone.js : .. . .. . Now what my problem is Browse link is not working even after setting clickable : false .", "I am new to JavaScript .", "I m using jQuery dropzone.js to upload the video and I can upload videos fine but I can t complete the process so the videos always remain in a processing uploading state .", "What s the value of the image name in the request", ".. . .. . ...... . .. . Content-Disposition : form-data name file filename bar.jpg .. . Content-Type : image jpeg .. . ... . .. . .", ".. . Content-Disposition : form-data name file 0 filename foo.jpg .. . Content-Type : image jpeg .. . .......... . .. . .", ".. . .. . ...... . .. . Content-Disposition : form-data name file 1 filename bar.jpg .. . Content-Type : image jpeg .. . ... . .. . .", "when I preload a image using this method there still is a progress-bar in the image using default css .", "Dropzone is doing it s upload nice the file is stored on the server .", "Problem .. . .. . When you use .. . .. . the files will all be sent with name file eg : .. . .. . .. . Content-Disposition : form-data name file filename foo.jpg .. . Content-Type : image jpeg .. . .......... . .. . .", "I do see the file size and file name appear just as the file gets dropped in .", "I am using DropzoneJS http : www.dropzonejs.com script for uploading images with drag drop but now I m looking for a solution for how to add current timestamps with file name before uploading to the server folder because I am not able to upload the same image if the file already exists in the folder .", "If I call the action uploads directly in my browser it is working - a new entry in the Voucher table is there only for test purposes .", "HTML Page Profile2 : .. . .. . In The JS File for Profile2 i wrote this : .. . .. . But i don t see something in the console.log output .", "Here s a script that uses Imagick PHP to add a profile to an image .", "I would like to upload multiple image files to my server .", "Find those lines in dropzone source and add toLowerCase", "my JavaScript on example.com can access whatever it likes on example.com but it s not allowed to read anything from demonstration.com example.net or api.example.com .", ".. . .. . There s an example project for using the Imgur API from JavaScript available on Github here https : github.com eirikb gifie .", "After consulting the documentation I can see that move uploaded file checks to see whether the file was uploaded using HTTP POST which it was .", "All other fields are accessible on server-side except file which always comes null .", "It acts as overwriting the file which was the user-experience I was going for here .", "You ll probably be most interested in the latter Imgur sends back an id and a link parameter on success https : api.imgur.com models image that you can use to show the user their newly-uploaded image .", "PHP code : .. . .. . 2 Now you can use the response to display the uploaded files.Write the below code inside the dropzone init function .. . Javascript Code : .. . .. . Note : don t take the whole file url path in filename just take the filename itself thats it .", "I have max file as 1 and when I try to upload new one it accepts the file .", "If you really want to upload a file you look into AJAX file-upload handling Google it .", "My requirement is to rename file before upload and also show new renamed file name in preview .", "Have you tried increasing the file chunk size", "When you run your example with Chrome s Developer Tools opened to the Console tab what javascript errors do you see", "The upload method lets us send a simple URL to an image for upload so let s try making an AJAX request to Imgur : .. . .. . The next step is to try using the Filereader API https : developer.mozilla.org en-US docs Web API FileReader to read the file from the form and send that .", "Defaults to file .", "The name of the file", "Maybe this helps : stackoverflow.com questions 12049004 wamp-uploading-large-file http : stackoverflow.com questions 12049004 wamp-uploading-large-file", "Is there a good way to implement this so that the already-there items don t get re-uploaded when they submit their changes to the image list", "I am using addedfile event add remove button and also attached delete image functionality .", "I tried to use jQuery Dropzone to upload an image to Imgur or any other domain but that s not working ." ] }
{ "confidence": [ 40.66522216796875, 40.40546417236328, 35.863868713378906, 33.23731231689453, 32.58983612060547, 32.51904296875, 32.095611572265625, 31.997026443481445, 31.93437957763672, 31.05022621154785, 30.39663314819336, 30.28639030456543, 29.61198616027832, 29.36181640625, 27.852209091186523, 27.66472816467285, 27.359508514404297, 26.83164405822754, 26.492046356201172, 26.093013763427734 ], "content": [ "Question : null .. . Answer : I am using JQuery and Dropzone.js to accept video file uploads . I can specify the MIME type with the parameter acceptedFiles : video quicktime . This works great for regular .mov files but it also accepts ProRes compressed videos https : en.wikipedia.org wiki Apple ProRes which I can t handle . Is there a way in Javascript or JQuery to check if an attached file is ProRes compression formatted", "Question : I am using DropZone.js .. . .. . My configuration is .. . .. . This code is working perfectly with my local host . I am uploading files to UploadImages url . I have entered one message in that url method that is working properly . My problem is I am not getting which name should i use to get the content in server . Like what is name of imageFile variable imageName variable imageContent Type that should i access in my server-side implementation . Edit : Server side implementation of DropZone http : www.dropzonejs.com .. . .. . Dropzone does not provide the server-side implementation of handling the files but the way files are uploaded is identical to simple file-upload forms like this : .. . .. . I got it includes .. . .. . automatically in form so we can access it using file .. . .. . If .. . .. . then we can access it using file in server-side I tried .. . .. . It is printing Inside Image upload . How to make access fields of file on Action class . .. . Answer : Problem .. . .. . When you use .. . .. . the files will all be sent with name file eg : .. . .. . .. . Content-Disposition : form-data name file filename foo.jpg .. . Content-Type : image jpeg .. . .......... . .. . . .. . .. . ...... . .. . Content-Disposition : form-data name file filename bar.jpg .. . Content-Type : image jpeg .. . ... . .. . . . . .. . ...... . .. . .. . .. . and this is the right parameter Struts2 FileUpload Interceptor is expecting to receive to work with a List File and the related List String for fileName and contentType . When you use dropzone.js http : www.dropzonejs.com toc 6 instead the filename will be altered to handle the multiple input client-side by appending to it : .. . .. . paramName : The name of the file param that gets transferred . Defaults to file . NOTE : If you have the option uploadMultiple set to true then Dropzone will append to the name . .. . .. . eg . .. . Content-Disposition : form-data name file 0 filename foo.jpg .. . Content-Type : image jpeg .. . .......... . .. . . .. . .. . ...... . .. . Content-Disposition : form-data name file 1 filename bar.jpg .. . Content-Type : image jpeg .. . ... . .. . . . . .. . ...... . .. . .. . .. . Struts2 doesn t like it at all . Solution .. . .. . Instead of messing with custom Interceptors and Converters do a simple adjustment on the dropzone.js library you use for your Struts2 projects : .. . .. . 1 . Rename your dropzone.js to dropzone-struts2.js .. . 2 . Open the file and search + n + line 866 in latest version .. . 3 . Change this line .. . .. . return + this.options.paramName + this.options.uploadMultiple + n + : .. . .. . .. . to this one .. . .. . return + this.options.paramName + this.options.uploadMultiple + n + : .. . .. . .. . Now it is Struts2 compliant and will work with multiple uploads . Comment : showing java.lang.NullPointerException social.action.ImageAction.insertToDir ImageAction.java : 48 it is for File f : file Comment : Any example or tutorial Comment : Inside loop it is printing first two statements then it is showing java.lang.NullPointerException social.action.ImageAction.insertToDir ImageAction.java : 51 for System.out.print name : + getFileFileName .get i Comment : added maxFilesize : 2 now it is working . Comment : This answer is very helpfull for me . :", "Question : null .. . Answer : I want to upload multiple pictures to each blog post using dropzone.js . I want to have a template with a form-for the user to input the post title and description and then have a form below it for the dropzone.js which allows them to drag-and-drop their images into . Ideally I would have one button which would then submit both forms . From what I have read so far people keep mentioning using inline formsets for multiple image uploads - is that the same case-when using dropzone.js How would I also pass 2 models to my generic view Once the user presses upload I then want the user to be able to write a description under each picture and to be able to rearrange the order of the pictures . What is the best practice to do this Any help would be much appreciated My models currently looks like this :", "Question : I have a view with the dropbox called index.ctp : .. . .. . In my controller VouchersController.php is the upload function als follows : .. . .. . It seems that the dropzone.js works correctly . Files appears to uploaded and a checkmark is setted in the preview . If I change the url from the Form- create then it appears an error in the preview . This says me that the url to the controller is working . If I call the action uploads directly in my browser it is working - a new entry in the Voucher table is there only for test purposes . I will implement the file saving when the action is working so far . But the ajax call from the dropzone.js is not working . Nothing happens in my database . I think the upload action is not called because no db entry is there after dropping files to my dropzone . Thank you for any help in this case . Please leave a reply if any information is missing for your help . Ivo .. . Answer : I found the error by myself . I had to add the following line in beforeFilter : .. . .. . This disables SecurityComponent for action .", "Question : null .. . Answer : I m working in a project with angularJS and Laravel and I m using Dropzone.js to upload images . I have one image uploaded in my site and when I want to replace it I save it correctly but when I open the page again the preview is the old image . To see the correct one I have to go to the link via browser CNTR+F5 close open the web again and then is correct . I need to fix this cache problem . I added a header to control this but is not working . This is my config of Dropzone :", "Question : null .. . Answer : I m looking to write a test to upload a file using Fluentlenium and DropZone.js http : www.dropzonejs.com . Dropzone.js works in a modal and then you can drag-and-drop or upload the normal way . As soon as you click to upload the test crashes because your no longer in the browser . I ve found many posts getting this to work in Selenium using things like : .. . .. . I however cannot sendKeys to anything because their isn t even an input-type-file when using DropZone.js . The only input types I m seeing are all type hidden . We re also using Amazon Web Server to upload the documents too it seems like everything is working off the below script : .. . .. . Which is located on my page . I m not seeing anything helpful on https : github.com FluentLenium FluentLenium driver for this . Do I need to somehow send the file to the key hash in the above script Any thoughts", "Question : I am using DropzoneJS http : www.dropzonejs.com script for uploading images with drag drop but now I m looking for a solution for how to add current timestamps with file name before uploading to the server folder because I am not able to upload the same image if the file already exists in the folder . I have also referred below stackoverflow link but I m confused where to implement this . 1 . http : stackoverflow.com a 23805488 3113858 .. . 2 . http : stackoverflow.com a 19432731 3113858 .. . .. . Here is dropzone.js script https : raw.githubusercontent.com enyo dropzone master downloads dropzone.js for reference Comment : Hello Did you find any solution for this issue . if yes then could you please share it . if possible with an example code . thank you Comment : @JasbirBhinder Not found any solution . Comment : Ok . And are you using dropzone with asp.net . I am trying to call webmethod from dropzone url but it is not working . Dropzone Returning html response back page . Comment : I have used dropzone with PHP . Comment : you can change the name on server-side and return it after success on upload and use jquery trick to replace the old name with new returned name .. . Answer : Please check following code I have implemented using PHP . Use Following code in your index file .. . .. . Upload.php .. . .. . delete temp files.php .. . .. . Hope this will be helpful for uploading images using ajax and delete using ajax : .. . .. . I have found from following references : .. . .. . Dropzone.js- How to delete files from server http : stackoverflow.com questions 17452662 dropzone-js-how-to-delete-files-from-server 17457380 17457380 Dropzone.js remove button with php http : stackoverflow.com questions 17400470 dropzone-js-remove-button-with-php 17427379 17427379 .. . .. . Also add following code in your dropzone.js file after line 1110 for preventing user to upload duplicate files with same name : .. . .. . Dropzone.prototype.addFile function file .. . .. . Reference Link : https : www.bountysource.com issues 2993843-dropzone-did-not-check-the-duplicate-file-on-addfile utm campaign plugin utm content tracker 2F283989 utm medium issues utm source github https : www.bountysource.com issues 2993843-dropzone-did-not-check-the-duplicate-file-on-addfile utm campaign plugin utm content tracker 2F283989 utm medium issues utm source github Comment : This works perfect for me . Thanks : Comment : @Mr.Happy Where is it adding timestamp My requirement is to rename file before upload and also show new renamed file name in preview .", "Question : I have a page which allows users to post an advert on my website . This page allows them to upload multiple photos of the product in question . I currently have two forms . The first handles details of the product while the second is a dropzone using dropzone.js allowing them to upload photos . I am keen to keep these forms split as the photos could potentially be very large and I would prefer them to upload instantly rather than waiting for the user to press submit . This should save time overall . Therefore when the photos are put into dropzone they are uploaded to a tmp directory in case the user does not post the entire advert . Once the user submits the first form I am using move uploaded file to move the file to its permanent location . This is the code I am using : .. . .. . However move uploaded file is not working . After consulting the documentation I can see that move uploaded file checks to see whether the file was uploaded using HTTP POST which it was . To be sure I ran a quick test to see whether is uploaded file returned TRUE on my uploaded file but it didn t . How does is uploaded file determine whether a file was uploaded or not I was wondering whether by the time I come to move the file php has forgotten it has been uploaded Is there any other reason my file would not pass this Many thanks Comment : What is form-data Where does it come from FILES Comment : @jakenoble : See the comment - form-data is an array of POST data and contains the file path of the image in the tmp dir Comment : As an extra.. . form-data contains all the data from the first form as described in the question . This form contains the file paths which were put there in hidden fields by dropzone.js . .. . Answer : I think Ive got to the bottom of this.. . .. . .. . move uploaded file only seems to work in the function that the POST data is sent to . In my case I had two separate POST requests sent . The first from dropzone.js which stored the image in a tmp directory . If I had run the is uploaded file in the function that received that POST request it returned TRUE . However once uploaded to a tmp directory I then inserted paths in hidden fields in the second form . I was trying to run move uploaded file which in turn uses is uploaded file in the function which receives the POST data from the second form . However as the file was not part of this POST data just the path to the tmp dir is uploaded file then returned false . I hope that helps someone.. . Comment : I m encountering the same problem with Dropzone.js . How did you solve it", "Question : null .. . Answer : I ve made a dropzone.js that allows visitors to my Wordpress hosted site to upload a large image which displays a thumbnail on successful upload . I followed this handy guide by @soderlind to begin with https : soderlind.no dropzonejs-wordpress-rest-api .. . .. . I wonder if its possible to create a script to apply pre-defined ICC profiles to that thumbnail not the original image . To emulate for the visitor different colour profiles . The visitor should be shown a list of ICC Profile names on selection they become active applied to the thumbnail . On the same page without reloading or navigating elsewhere . I am no javascript genius . PHP code does exist to apply ICC profiles see below but displaying the desired selection on the fly is proving difficult for me . Here s a script that uses Imagick PHP to add a profile to an image . via http : php.net manual en imagick.profileimage.php .. . .. . Any ideas", "Question : null .. . Answer : I am customizing the dropzone.js using browse link . This is my layout : enter image description here http : i.stack.imgur.com 06yPm.png .. . .. . I have tried : .. . .. . In my page level script-tag : .. . .. . I ve disabled the dropzone clickable in my dropzone.js : .. . .. . Now what my problem is Browse link is not working even after setting clickable : false . That is when I click the Browse link it is not opening the file-upload dialog . The reason is Browse link is inside the dropzone area . But if I place that div outside the dropzone area then uploaded file is not shown in the Dropzone preview template . How can I fix this problem", "Question : I am using DropzoneJS http : www.dropzonejs.com script for uploading images with drag drop but now I m looking for a solution for how to add current timestamps with file name before uploading to the server folder because I am not able to upload the same image if the file already exists in the folder . I have also referred below stackoverflow link but I m confused where to implement this . 1 . http : stackoverflow.com a 23805488 3113858 .. . 2 . http : stackoverflow.com a 19432731 3113858 .. . .. . Here is dropzone.js script https : raw.githubusercontent.com enyo dropzone master downloads dropzone.js for reference Comment : Hello Did you find any solution for this issue . if yes then could you please share it . if possible with an example code . thank you Comment : @JasbirBhinder Not found any solution . Comment : Ok . And are you using dropzone with asp.net . I am trying to call webmethod from dropzone url but it is not working . Dropzone Returning html response back page . Comment : I have used dropzone with PHP . Comment : you can change the name on server-side and return it after success on upload and use jquery trick to replace the old name with new returned name .. . Answer : DropzoneJS v4.3.0 is here and brings the solution .. . .. . I know this question is an old one but in the new release 4.3.0 of dropzone.js this functionality is included with the renameFilename option . To prefix the filename with a timestamp each time before upload do something like this : .. . .. . Happy coding Kalasch Comment : Note that this also appears to rename the filename on init for preloaded images from your server as well . @Kalaschni - do you know if there s a way to only implement a file-rename on upload", "Question : null .. . Answer : I m new to using dropzone.js and still getting my head around the implementation . I am looking for the users to have the following limitations : .. . .. . Only Images can be uploaded .. . Maximum of 10 files .. . Maximum individual file sizes of 200KB .. . .. . I also want them to be able to see what current photos are uploaded and have the option to delete them if needed . The files that are uploaded also need to be renamed to a random string currently they re being saved under what the user has named them . Here is the code I have so far . It will upload the images fine if they are below 200KB but I cant seem to get it to show files already in the folder and give them the option to delete them . Index.php .. . .. . Upload.php .. . .. . Just to confirm I am looking to get the answers to : .. . .. . Getting dropzone.js to show current images in the file .. . Getting dropzone.js to allow user to delete images if needed .. . Rename the image file to something random .. . .. . Any help would be appreciated . If you could let me know the code and explain it so I understand it that would be perfect . Thanks .. . .. . CyrilWalrus", "Question : I have a dropzone.js instance on a web page with the following options : .. . .. . It is programmatically instantiated as it is part of a larger form . I have it rigged up to process the queue when the form is submitted . The goal is for my users to be able to use the dropzone to manage images for an item so when I load my edit update view for an item I d like to preload the dropzone with the images that had previously been uploaded for that item . Is there a good way to implement this so that the already-there items don t get re-uploaded when they submit their changes to the image list .. . Answer : Dropzone is so strong and awesome that you can do anything on it . Steps to Follow -- .. . .. . 1 First of all you will have to create a server-side script which will get all the filenames and its size and send it as json response . PHP code : .. . .. . 2 Now you can use the response to display the uploaded files.Write the below code inside the dropzone init function .. . Javascript Code : .. . .. . Note : don t take the whole file url path in filename just take the filename itself thats it . This works Comment : Thanks that works . It should be noted though that calling the addedfile and thumbnail functions directly like that bypasses the corresponding events which is fine for my purposes . Another quirk : I had to generate thumbnails on the server-side to use in the thumbnail call as using the image directly bypasses dropzone s client-side thumbnail generation and just sticks the full-size image into the preview element without cropping so rectangular images would be squashed . Comment : when I preload a image using this method there still is a progress-bar in the image using default css . How do I remove this bar Comment : Also it doesnt follow maxFiles when adding files like this . I have max file as 1 and when I try to upload new one it accepts the file . Comment : thanks alot really helped Comment : you can remove the progress-bar by adding thisDropzone.emit complete mockFile However I cant not resize the thumbnail to fit the box", "Question : I am using dropzone.js to implement file uploading . I am new to JavaScript . Can anyone tell me what does the variable file store here The name of the file Moreover I want to display the content of the file to the text area having id editor . Ihave used file.text and also the readAsText but both of them are showing undefined in the text area . Is there any other easy way to do it This function is present in dropzone.js file . OR is there any way so that i can use PHP functions like file-get-contents in .js file and in JavaScript function .. . Answer : The file parameter is an object - Just use console.log to check what data the object returns . If you are uploading your file through PHP and want to return the URL of the uploaded file to display in the text area try this instead - .. . .. . Where file is the object and data is the server response You could return the URL of the uploaded file in PHP after passing the data to it as you would a regular form . I noticed you also tagged PHP so I assume this is the intended purpose . See http : www.dropzonejs.com configuration for usage of accept . Edit : .. . .. . To display the contents of a text file try this with your code - Comment : but i want to display the contents of the file in the textarea . I think this can be done without originally uploading the file to the server . What i want to do is to drag-and-drop the file and the contents of the file will display on the textarea . the supported files types are .txt .cpp .c etc . Comment : I ve edited my answer for you - Sorry I misunderstood the initial question Hopefully it works if not let me know . Comment : thank you so much . it worked Comment : but its not working when i am using ace-editor in the textarea . Comment : That s because ace-editor has its own method for inserting text into the editor - Instead of editor.innerText reader.result you should use editor.setValue reader.result", "Question : null .. . Answer : I would like to upload multiple image files to my server . On the client-side I m using dropzone.js . My back-end server is sails.js and I would like to use formidable in order to update the client with a progress-bar I am fairly new to sails.js and node.js .. . .. . This is my controller written with typescript .. . .. . .. . export var upload function req : express.Request res : express.Response next .. . .. . var form new formidable.IncomingForm .. . .. . form.parse req function err fields files .. . .. . .. . form.on progress function bytesReceived bytesExpected .. . calculating perscent and logging progress message .. . .. . .. . form.on error function err .. . console.error err -- here I get Request aborted .. . .. . .. . form.on end function fields files .. . here I save files to disk with fs-extra and I .. . send back to client appropriate status .. . .. . .. . .. . I keep getting Request aborted in the error handler . I have made a few search on stackoverflow and on google without findind a clear answer . The problem seems to be related to multi-part form-data and the appropriate express middleware to use in order to parse the body . How can I set my sails.js application in order to upload a file using dropzone.js on the client and sails+formidable on the server Any help will be greatly appreciate Comment : I m not familiar enough with typescript but usually in sails.js you just pass fn req res next in your controllers . I m not sure what res : express.Response means Comment : Don t worry . They are remove by the typescript compiler during the build-process so that the actual output .js file used in the application is as you would expect : fn req res next ... .", "Question : null .. . Answer : I m building a Website with PHP and would like to use Dropzone.js to upload the users pictures this is how I m using Dropzone.js I followed a guiding example .. . .. . Now on the parser.php .. . .. . The thing is that I m coding the project on Codeanywhere not really sure why the pictures aren t loading if I echo my directory I get .. . .. . home cabox workspace xxxxxxxx img .. . .. . So it should work any advice working on this with Codeanywhere", "Question : null .. . Answer : I am new in jQuery and have used dropzone.js for drag-and-drop images . Initially I am able to drag n drop images but not able to get those images at server-side . All other fields are accessible on server-side except file which always comes null . Please have a look below given the screenshot and my code : .. . .. . screenshot http : i.stack.imgur.com iUmob.png .. . .. . Jquery and css .. . .. . Aspx Form .. . .. . Controller Code", "Question : Depending on the use-case how do I constrain the number of files that dropzone.js will allow For example I might need to only allow 1 2 or 4 files uploaded . It s not uploadMultiple . Unfortunately uploadMultiple only applies to the number of files handled per request . Comment : Use maxFiles . That will help .. . Answer : I achieved this a slightly different way . I just remove the old dropped file any time a new file is added . It acts as overwriting the file which was the user-experience I was going for here . Comment : This works really well . The other answers don t . You can also do the same work right within the accept function . this.files exists there as well . This would shorten the code a bit . Comment : where to put this code inside dropzone.js or html codes where form placed Comment : This is a great answer to a different question How to overwrite a previously uploaded file . Comment : After trying the other answers the is the only one that worked exactly how I wanted . Should be accepted answer imho .", "Question : HTML .. . .. . dropzone.js .. . .. . can t get value . But value the undefined . I try document.getElementById maxFileUpload .value It doesn t work . Do not know what to do .. . Answer : try updating the dz object on change assuming the user can change", "Question : Please help me i m tring to create file uploading with dropzone.js and php but when i try to upload large-files like 4mb or more my script doesn t work but in case with small files it s worked prefect why that is my code .. . .. . index.php .. . .. . upload.php .. . .. . I changed my php.ini file but no success : .. . Answer : This sounds like a bad server config . Changing your php.ini might not be enough since normally there is a system wide limitation . Depending on your server eg . : apache you have to lookup the corresponding settings . Comment : I m using wamp server Comment : Maybe this helps : stackoverflow.com questions 12049004 wamp-uploading-large-file http : stackoverflow.com questions 12049004 wamp-uploading-large-file Comment : thank you very much Enyo it s really worked" ] }
[ "yes-answer-long", "yes-answer-short" ]
drag-and-drop
UNK_RELATION
indieweb@web@75
indieweb -- the indieweb is a people-focused alternative to the corporate @placeholder .
{ "confidence": [ 11.733668327331543, 10.934883117675781, 10.913662910461426, 10.913662910461426, 10.913662910461426, 10.913662910461426, 10.913662910461426, 10.913662910461426, 10.913662910461426, 8.92091178894043, 8.92091178894043, 8.92091178894043, 8.92091178894043, 8.92091178894043, 8.92091178894043, 8.92091178894043, 8.92091178894043, 8.92091178894043, 8.92091178894043, 8.92091178894043, 8.92091178894043, 8.92091178894043, 8.92091178894043, 8.92091178894043, 8.92091178894043, 8.92091178894043, 8.92091178894043, 8.92091178894043, 8.92091178894043, 8.92091178894043, 8.92091178894043, 8.92091178894043, 8.92091178894043, 8.92091178894043, 8.92091178894043, 8.92091178894043, 8.92091178894043, 8.92091178894043, 8.92091178894043, 8.92091178894043, 8.92091178894043, 8.92091178894043, 8.92091178894043, 8.92091178894043, 8.92091178894043, 8.92091178894043, 8.92091178894043, 8.92091178894043, 8.92091178894043, 8.92091178894043, 8.92091178894043, 8.92091178894043, 8.92091178894043 ], "content": [ "And after April 30 2015 your app will not be able any more to ask people for any permission besides the ones for user-profile friends and email without your app undergoing review by FB first and read stream will not be granted to any app on a platform for which an official FB client exists .", "According to developers.facebook.com docs graph-api reference v2.2 user feed https : developers.facebook.com docs graph-api reference v2.2 user feed only posts by people that have granted your app read stream will be visible to your app when requesting a user s feed which would be the user s own posts and posts made by others on the user s timeline .", "Typically when an application publishes to Facebook via the Graph API Facebook includes a little link at the top of the news item indicating which application posted it linking to the application s website .", "I noticed recently that when Instagram shares a photo to Facebook the Instagram link at the top of the item points to the actual photo permalink instagram.com p whatever instead of just instagram.com .", "Is it possible to set a custom URL per-post when publishing via the Graph API", "Or some other mechanism", "Or is this a special insider configuration for IG only", "Instagram photo shared to FB http : i.stack.imgur.com l2Uli.png", "This is a custom configuration for Instagram .", "Given the URL of a public Facebook post how can one find the post object in the FB Graph API", "secondarily why are so many user feeds empty or nearly empty when accessed through the API", "We would like to be able to comment on https : developers.facebook.com docs graph-api reference v2.2 object comments or like https : developers.facebook.com docs graph-api reference v2.2 object likes a post via the v2.x Graph API given the post s URL .", "Doing so requires the post s object ID which we can make some educated guesses about but accessing the actual object through the API has proven unreliable works for some posts but not others .", "v2 of the API introduced app-scoped user IDs https : developers.facebook.com docs apps upgrading upgrading v2 0 user ids and post IDs generally seem to be of the form app-scoped user id unique post id .", "Here are the details of some attempts to find posts in the API with various combinations of these IDs global user id app-scoped user id and post id .", "Starting with a simple example : https : www.facebook.com evan.prodromou posts 10153023417510505 .", "Key characteristics are that it s public it s not a share of another post and most importantly it has no photo s which add extra ids and URLs for the individual photo s and photo set .", "Evan s profile is also public i.e .", "https : www.facebook.com evan.prodromou doesn t show the generic This content is currently unavailable .. . .. . Trying the bare post id from that URL v1.0 10153023417510505 https : developers.facebook.com tools explorer 256884317673197 method GET path v1.0 10153023417510505 version unversioned and v2.2 10153023417510505 https : developers.facebook.com tools explorer 256884317673197 method GET path v2.2 10153023417510505 version unversioned both give the Unsupported get request code 100 error .", "Evan s global user id is 525575504 .", "Attaching that as a prefix v1.0 525575504 10153023417510505 https : developers.facebook.com tools explorer 256884317673197 method GET path v1.0 525575504 10153023417510505 version unversioned and v2.2 525575504 10153023417510505 https : developers.facebook.com tools explorer 256884317673197 method GET path v2.2 525575504 10153023417510505 version unversioned still both give the same Unsupported get request error .", "Same error using his app-scoped user id instead v2.2 10152350676805505 10153023417510505 https : developers.facebook.com tools explorer 256884317673197 method GET path v2.2 10152350676805505 10153023417510505 version unversioned .", "OK let s try the other direction .", "We ll page through the user s feed until we find the post in question .", "It feels like this is more the expected use-case for the API.. . .. . .. . Both the global v2.2 525575504 posts https : developers.facebook.com tools explorer 256884317673197 method GET path v2.2 525575504 posts version unversioned and app-scoped v2.2 10152350676805505 posts https : developers.facebook.com tools explorer 256884317673197 method GET path 10152350676805505 2Fposts version v2.2 return nothing but v1.0 525575504 posts https : developers.facebook.com tools explorer 256884317673197 method GET path v1.0 525575504 posts version unversioned returns two recent posts this like https : www.facebook.com evan.prodromou posts 10153045879215505 and this post https : www.facebook.com 525575504 posts 351575675029953 .", "Not sure why only those two even though has plenty of other recent public posts .", "The like is fetchable via its id field in both api versions i.e .", "v1.0 525575504 10153045879215505 https : developers.facebook.com tools explorer 256884317673197 method GET path v1.0 525575504 10153045879215505 version unversioned and v2.2 10152350676805505 10153045879215505 https : developers.facebook.com tools explorer 256884317673197 method GET path v2.2 10152350676805505 10153045879215505 version unversioned but both API versions return the Unsupported get request error when fetching the post via its id field e.g .", "v1.0 525575504 351575675029953 https : developers.facebook.com tools explorer 256884317673197 method GET path v1.0 525575504 351575675029953 version unversioned and v2.2 10152350676805505 351575675029953 https : developers.facebook.com tools explorer 256884317673197 method GET path v2.2 10152350676805505 351575675029953 version unversioned .. . .. . Trying another public post this one with pictures : https : www.facebook.com andigalpern posts 678121182314631 .", "v1.0 100003502653187 678121182314631 https : developers.facebook.com tools explorer 256884317673197 method GET path v1.0 100003502653187 678121182314631 version unversioned v2.2 100003502653187 678121182314631 https : developers.facebook.com tools explorer 256884317673197 method GET path v2.2 100003502653187 678121182314631 version unversioned and v2.2 499657186827699 678121182314631 https : developers.facebook.com tools explorer 256884317673197 method GET path v2.2 499657186827699 678121182314631 version unversioned all error .", "v1.0 100003502653187 posts https : developers.facebook.com tools explorer 256884317673197 method GET path v1.0 100003502653187 posts version unversioned only includes one post a like and v2.2 100003502653187 posts https : developers.facebook.com tools explorer 256884317673197 method GET path v2.2 100003502653187 posts version unversioned is empty .", "For reference here is the GitHub issue https : github.com snarfed bridgy issues 350 where we have been tracking this problem .", "Correct is that with API v2 there is no username field any more and your app will not be allowed to use the global user id to request user details any more either only the app-scoped user id .", "What I am wondering here is why is there a need to request post details based on a post URL in the first place", "Normally your app should work with data that it requested via API before already so external URLs like this would not come into play in the first place .", "The goal is for someone to post a reply to or like of a FB status on their own personal website and then use an app to publish it to Facebook .", "More details here : brid.gy about publishing https : www.brid.gy about publishing .", "try my answer maybe it will put you in right direction", "Basically you would need read stream for this which your app will not get granted .", "And yes even though the post is public you still need read stream to be able to get read access to all kinds of posts .", "You can easily play around with this in Graph API Explorer .", "First give your app read stream permission to get ids of items in your feed that will give you ids of the form app-scoped user id underscore post id .", "Then remove read stream by clicking Get Access Token again and using the Clear button and try several of the user-permissions and you will see that for most of your posts even the public ones you will still only get Unsupported get request which just means you are not allowed to read that object .", "F.e . I have a public post where shared a video post from another page on my timeline the type is video and status type is shared story but neither user status nor user videos allow me to read this post only when I grant read stream again my app can read that post .", "Same with another public post of type status and status type mobile status update readable with read stream not with any of the user-permissions .", "In short : What you want to achieve is not possible any more with API v2 and the restriction that read stream will only be granted to apps on platforms where no official FB client exists .", "Thanks for the response I m going to go ahead and send you the bounty because it s expiring otherwise .", "So I actually think our app was grandfathered in on read stream it seems to have it at least for now .", "Do you know if that should that let me see all posts or just my friends posts or just my own", "yup this is basically the same conclusion we came to in github.com snarfed activitystreams-unofficial issues 26 https : github.com snarfed activitystreams-unofficial issues 26 .", "sigh .", ":", "A one proposition is to make api calls to write facebook posts since those return valid post id that you could use .. . .. . Second When you try https : developers.facebook.com tools explorer 256884317673197 method GET path 525575504 2Fposts version v2.0 https : developers.facebook.com tools explorer 256884317673197 method GET path 525575504 2Fposts version v2.0 .. . .. . You can see that his posts ID s are not starting with his public id as you wrote 525575504 .. . .. . but they still put unsupported get request .. . .. . https : developers.facebook.com tools explorer 256884317673197 method GET path 10152853212485505 351575675029953 version v2.0 https : developers.facebook.com tools explorer 256884317673197 method GET path 10152853212485505 351575675029953 version v2.0 .. . .. . Third since above doesnt work are those posts public for sure" ] }
{ "confidence": [ 11.028704643249512, 10.765761375427246, 8.99145793914795 ], "content": [ "Question : null .. . Answer : Typically when an application publishes to Facebook via the Graph API Facebook includes a little link at the top of the news item indicating which application posted it linking to the application s website . I noticed recently that when Instagram shares a photo to Facebook the Instagram link at the top of the item points to the actual photo permalink instagram.com p whatever instead of just instagram.com . Is it possible to set a custom URL per-post when publishing via the Graph API Or some other mechanism Or is this a special insider configuration for IG only Instagram photo shared to FB http : i.stack.imgur.com l2Uli.png Comment : This is a custom configuration for Instagram .", "Question : Given the URL of a public Facebook post how can one find the post object in the FB Graph API secondarily why are so many user feeds empty or nearly empty when accessed through the API We would like to be able to comment on https : developers.facebook.com docs graph-api reference v2.2 object comments or like https : developers.facebook.com docs graph-api reference v2.2 object likes a post via the v2.x Graph API given the post s URL . Doing so requires the post s object ID which we can make some educated guesses about but accessing the actual object through the API has proven unreliable works for some posts but not others . v2 of the API introduced app-scoped user IDs https : developers.facebook.com docs apps upgrading upgrading v2 0 user ids and post IDs generally seem to be of the form app-scoped user id unique post id . Here are the details of some attempts to find posts in the API with various combinations of these IDs global user id app-scoped user id and post id . Starting with a simple example : https : www.facebook.com evan.prodromou posts 10153023417510505 . Key characteristics are that it s public it s not a share of another post and most importantly it has no photo s which add extra ids and URLs for the individual photo s and photo set . Evan s profile is also public i.e . https : www.facebook.com evan.prodromou doesn t show the generic This content is currently unavailable .. . .. . Trying the bare post id from that URL v1.0 10153023417510505 https : developers.facebook.com tools explorer 256884317673197 method GET path v1.0 10153023417510505 version unversioned and v2.2 10153023417510505 https : developers.facebook.com tools explorer 256884317673197 method GET path v2.2 10153023417510505 version unversioned both give the Unsupported get request code 100 error . Evan s global user id is 525575504 . Attaching that as a prefix v1.0 525575504 10153023417510505 https : developers.facebook.com tools explorer 256884317673197 method GET path v1.0 525575504 10153023417510505 version unversioned and v2.2 525575504 10153023417510505 https : developers.facebook.com tools explorer 256884317673197 method GET path v2.2 525575504 10153023417510505 version unversioned still both give the same Unsupported get request error . Same error using his app-scoped user id instead v2.2 10152350676805505 10153023417510505 https : developers.facebook.com tools explorer 256884317673197 method GET path v2.2 10152350676805505 10153023417510505 version unversioned . OK let s try the other direction . We ll page through the user s feed until we find the post in question . It feels like this is more the expected use-case for the API.. . .. . .. . Both the global v2.2 525575504 posts https : developers.facebook.com tools explorer 256884317673197 method GET path v2.2 525575504 posts version unversioned and app-scoped v2.2 10152350676805505 posts https : developers.facebook.com tools explorer 256884317673197 method GET path 10152350676805505 2Fposts version v2.2 return nothing but v1.0 525575504 posts https : developers.facebook.com tools explorer 256884317673197 method GET path v1.0 525575504 posts version unversioned returns two recent posts this like https : www.facebook.com evan.prodromou posts 10153045879215505 and this post https : www.facebook.com 525575504 posts 351575675029953 . Not sure why only those two even though has plenty of other recent public posts . The like is fetchable via its id field in both api versions i.e . v1.0 525575504 10153045879215505 https : developers.facebook.com tools explorer 256884317673197 method GET path v1.0 525575504 10153045879215505 version unversioned and v2.2 10152350676805505 10153045879215505 https : developers.facebook.com tools explorer 256884317673197 method GET path v2.2 10152350676805505 10153045879215505 version unversioned but both API versions return the Unsupported get request error when fetching the post via its id field e.g . v1.0 525575504 351575675029953 https : developers.facebook.com tools explorer 256884317673197 method GET path v1.0 525575504 351575675029953 version unversioned and v2.2 10152350676805505 351575675029953 https : developers.facebook.com tools explorer 256884317673197 method GET path v2.2 10152350676805505 351575675029953 version unversioned .. . .. . Trying another public post this one with pictures : https : www.facebook.com andigalpern posts 678121182314631 . v1.0 100003502653187 678121182314631 https : developers.facebook.com tools explorer 256884317673197 method GET path v1.0 100003502653187 678121182314631 version unversioned v2.2 100003502653187 678121182314631 https : developers.facebook.com tools explorer 256884317673197 method GET path v2.2 100003502653187 678121182314631 version unversioned and v2.2 499657186827699 678121182314631 https : developers.facebook.com tools explorer 256884317673197 method GET path v2.2 499657186827699 678121182314631 version unversioned all error . v1.0 100003502653187 posts https : developers.facebook.com tools explorer 256884317673197 method GET path v1.0 100003502653187 posts version unversioned only includes one post a like and v2.2 100003502653187 posts https : developers.facebook.com tools explorer 256884317673197 method GET path v2.2 100003502653187 posts version unversioned is empty . For reference here is the GitHub issue https : github.com snarfed bridgy issues 350 where we have been tracking this problem . Comment : Correct is that with API v2 there is no username field any more and your app will not be allowed to use the global user id to request user details any more either only the app-scoped user id . What I am wondering here is why is there a need to request post details based on a post URL in the first place Normally your app should work with data that it requested via API before already so external URLs like this would not come into play in the first place . Comment : The goal is for someone to post a reply to or like of a FB status on their own personal website and then use an app to publish it to Facebook . More details here : brid.gy about publishing https : www.brid.gy about publishing . Comment : try my answer maybe it will put you in right direction .. . Answer : Basically you would need read stream for this which your app will not get granted . And yes even though the post is public you still need read stream to be able to get read access to all kinds of posts . You can easily play around with this in Graph API Explorer . First give your app read stream permission to get ids of items in your feed that will give you ids of the form app-scoped user id underscore post id . Then remove read stream by clicking Get Access Token again and using the Clear button and try several of the user-permissions and you will see that for most of your posts even the public ones you will still only get Unsupported get request which just means you are not allowed to read that object . F.e . I have a public post where shared a video post from another page on my timeline the type is video and status type is shared story but neither user status nor user videos allow me to read this post only when I grant read stream again my app can read that post . Same with another public post of type status and status type mobile status update readable with read stream not with any of the user-permissions . In short : What you want to achieve is not possible any more with API v2 and the restriction that read stream will only be granted to apps on platforms where no official FB client exists . Comment : Thanks for the response I m going to go ahead and send you the bounty because it s expiring otherwise . So I actually think our app was grandfathered in on read stream it seems to have it at least for now . Do you know if that should that let me see all posts or just my friends posts or just my own Comment : According to developers.facebook.com docs graph-api reference v2.2 user feed https : developers.facebook.com docs graph-api reference v2.2 user feed only posts by people that have granted your app read stream will be visible to your app when requesting a user s feed which would be the user s own posts and posts made by others on the user s timeline . And after April 30 2015 your app will not be able any more to ask people for any permission besides the ones for user-profile friends and email without your app undergoing review by FB first and read stream will not be granted to any app on a platform for which an official FB client exists . Comment : yup this is basically the same conclusion we came to in github.com snarfed activitystreams-unofficial issues 26 https : github.com snarfed activitystreams-unofficial issues 26 . sigh . :", "Question : Given the URL of a public Facebook post how can one find the post object in the FB Graph API secondarily why are so many user feeds empty or nearly empty when accessed through the API We would like to be able to comment on https : developers.facebook.com docs graph-api reference v2.2 object comments or like https : developers.facebook.com docs graph-api reference v2.2 object likes a post via the v2.x Graph API given the post s URL . Doing so requires the post s object ID which we can make some educated guesses about but accessing the actual object through the API has proven unreliable works for some posts but not others . v2 of the API introduced app-scoped user IDs https : developers.facebook.com docs apps upgrading upgrading v2 0 user ids and post IDs generally seem to be of the form app-scoped user id unique post id . Here are the details of some attempts to find posts in the API with various combinations of these IDs global user id app-scoped user id and post id . Starting with a simple example : https : www.facebook.com evan.prodromou posts 10153023417510505 . Key characteristics are that it s public it s not a share of another post and most importantly it has no photo s which add extra ids and URLs for the individual photo s and photo set . Evan s profile is also public i.e . https : www.facebook.com evan.prodromou doesn t show the generic This content is currently unavailable .. . .. . Trying the bare post id from that URL v1.0 10153023417510505 https : developers.facebook.com tools explorer 256884317673197 method GET path v1.0 10153023417510505 version unversioned and v2.2 10153023417510505 https : developers.facebook.com tools explorer 256884317673197 method GET path v2.2 10153023417510505 version unversioned both give the Unsupported get request code 100 error . Evan s global user id is 525575504 . Attaching that as a prefix v1.0 525575504 10153023417510505 https : developers.facebook.com tools explorer 256884317673197 method GET path v1.0 525575504 10153023417510505 version unversioned and v2.2 525575504 10153023417510505 https : developers.facebook.com tools explorer 256884317673197 method GET path v2.2 525575504 10153023417510505 version unversioned still both give the same Unsupported get request error . Same error using his app-scoped user id instead v2.2 10152350676805505 10153023417510505 https : developers.facebook.com tools explorer 256884317673197 method GET path v2.2 10152350676805505 10153023417510505 version unversioned . OK let s try the other direction . We ll page through the user s feed until we find the post in question . It feels like this is more the expected use-case for the API.. . .. . .. . Both the global v2.2 525575504 posts https : developers.facebook.com tools explorer 256884317673197 method GET path v2.2 525575504 posts version unversioned and app-scoped v2.2 10152350676805505 posts https : developers.facebook.com tools explorer 256884317673197 method GET path 10152350676805505 2Fposts version v2.2 return nothing but v1.0 525575504 posts https : developers.facebook.com tools explorer 256884317673197 method GET path v1.0 525575504 posts version unversioned returns two recent posts this like https : www.facebook.com evan.prodromou posts 10153045879215505 and this post https : www.facebook.com 525575504 posts 351575675029953 . Not sure why only those two even though has plenty of other recent public posts . The like is fetchable via its id field in both api versions i.e . v1.0 525575504 10153045879215505 https : developers.facebook.com tools explorer 256884317673197 method GET path v1.0 525575504 10153045879215505 version unversioned and v2.2 10152350676805505 10153045879215505 https : developers.facebook.com tools explorer 256884317673197 method GET path v2.2 10152350676805505 10153045879215505 version unversioned but both API versions return the Unsupported get request error when fetching the post via its id field e.g . v1.0 525575504 351575675029953 https : developers.facebook.com tools explorer 256884317673197 method GET path v1.0 525575504 351575675029953 version unversioned and v2.2 10152350676805505 351575675029953 https : developers.facebook.com tools explorer 256884317673197 method GET path v2.2 10152350676805505 351575675029953 version unversioned .. . .. . Trying another public post this one with pictures : https : www.facebook.com andigalpern posts 678121182314631 . v1.0 100003502653187 678121182314631 https : developers.facebook.com tools explorer 256884317673197 method GET path v1.0 100003502653187 678121182314631 version unversioned v2.2 100003502653187 678121182314631 https : developers.facebook.com tools explorer 256884317673197 method GET path v2.2 100003502653187 678121182314631 version unversioned and v2.2 499657186827699 678121182314631 https : developers.facebook.com tools explorer 256884317673197 method GET path v2.2 499657186827699 678121182314631 version unversioned all error . v1.0 100003502653187 posts https : developers.facebook.com tools explorer 256884317673197 method GET path v1.0 100003502653187 posts version unversioned only includes one post a like and v2.2 100003502653187 posts https : developers.facebook.com tools explorer 256884317673197 method GET path v2.2 100003502653187 posts version unversioned is empty . For reference here is the GitHub issue https : github.com snarfed bridgy issues 350 where we have been tracking this problem . Comment : Correct is that with API v2 there is no username field any more and your app will not be allowed to use the global user id to request user details any more either only the app-scoped user id . What I am wondering here is why is there a need to request post details based on a post URL in the first place Normally your app should work with data that it requested via API before already so external URLs like this would not come into play in the first place . Comment : The goal is for someone to post a reply to or like of a FB status on their own personal website and then use an app to publish it to Facebook . More details here : brid.gy about publishing https : www.brid.gy about publishing . Comment : try my answer maybe it will put you in right direction .. . Answer : A one proposition is to make api calls to write facebook posts since those return valid post id that you could use .. . .. . Second When you try https : developers.facebook.com tools explorer 256884317673197 method GET path 525575504 2Fposts version v2.0 https : developers.facebook.com tools explorer 256884317673197 method GET path 525575504 2Fposts version v2.0 .. . .. . You can see that his posts ID s are not starting with his public id as you wrote 525575504 .. . .. . but they still put unsupported get request .. . .. . https : developers.facebook.com tools explorer 256884317673197 method GET path 10152853212485505 351575675029953 version v2.0 https : developers.facebook.com tools explorer 256884317673197 method GET path 10152853212485505 351575675029953 version v2.0 .. . .. . Third since above doesnt work are those posts public for sure" ] }
[ "yes-answer-long", "yes-answer-short" ]
web
UNK_RELATION
jaxp@implementation@182
jaxp -- the java-api for xml processing jaxp enables applications to parse transform validate and query xml documents using an api that is independent of a particular xml processor @placeholder .
{ "confidence": [ 66.9857406616211, 61.813499450683594, 61.40691375732422, 60.654842376708984, 59.378173828125, 56.45271301269531, 56.348655700683594, 55.56438446044922, 51.467552185058594, 50.94584655761719, 50.720542907714844, 50.42352294921875, 50.29602813720703, 49.65534591674805, 49.314788818359375, 49.22876739501953, 48.331871032714844, 48.26738357543945, 47.20976257324219, 46.73976516723633, 45.837867736816406, 45.54588317871094, 44.99089813232422, 44.480743408203125, 44.480743408203125, 44.2425422668457, 44.01207733154297, 44.01207733154297, 44.01207733154297, 43.72691345214844, 43.496002197265625, 43.27762985229492, 43.199581146240234, 43.199581146240234, 43.112125396728516, 42.94688034057617, 42.64903259277344, 41.168724060058594, 41.12858581542969, 40.75415802001953, 40.63154602050781, 40.44090270996094, 40.41064453125, 40.41064453125, 40.16283416748047, 39.7965202331543, 39.75019836425781, 39.5179443359375, 39.40245819091797, 38.859493255615234, 38.856407165527344, 38.716346740722656, 38.193336486816406, 37.804195404052734, 37.70751190185547, 37.579742431640625, 37.56867218017578, 37.50608444213867, 37.50608444213867, 37.50608444213867, 37.371002197265625, 37.21380615234375, 36.84196853637695, 36.734588623046875, 36.440887451171875, 36.440887451171875, 36.440887451171875, 36.20990753173828, 35.851470947265625, 35.822288513183594, 35.80567169189453, 35.701568603515625, 35.54090118408203, 35.259429931640625, 35.164222717285156, 35.164222717285156, 35.05708312988281, 34.980587005615234, 34.933258056640625, 34.637474060058594, 34.423851013183594, 34.272544860839844, 34.10637664794922, 33.99188995361328, 33.99188995361328, 33.95563507080078, 33.82704162597656, 33.645835876464844, 33.50079345703125, 33.50079345703125, 33.35865783691406, 33.35865783691406, 33.35865783691406, 33.35865783691406, 33.20734786987305, 33.076595306396484, 33.01187515258789, 32.985450744628906 ], "content": [ "I would like to validate XML documents using RELAX NG schemata and I would like to use the JAXP validation API https : jaxp-sources.dev.java.net nonav docs api javax xml-validation package-summary.html .", "I m using JAXP XSLT APIs javax.xml.transform to transform xml file .", "I need API for XML Processing or JAXP that transforms XML and XSL to another output .", "As for JAXP it s just an old term Java Api for XML Processing to refer to the SAX DOM StAX parsers .", "And of course there are also other XSLT processors than Saxon that plug into the Java API for XML Processing JAXP .", "I know JAXP is for XML parsing but is it possible to achieve xml binding with the help of JAXP", "The SAXParserFactory defines a factory API that enables applications to configure and obtain a SAX based parser to parse XML documents .", "JAXP apparently only works on well formed XML .", "One of the applications that I ve developed is loading an incorrect implementation of the DocumentBuilderFactory http : download.oracle.com javase 6 docs api javax xml parsers DocumentBuilderFactory.html class of JAXP .", "Jaxp is for java means Jaxp is for Jython too .", "A specially-crafted XML input could cause a Java application using JAXP to use an excessive amount of CPU time by e.g .", "JAXP XML properties are listed here https : docs.oracle.com javase tutorial jaxp limits limits.html .", "Are there elements in the HTML5 specification which can not be created with a XML library such as JAXP", "I already have the Java objects and I want to write them down to a valid XML file using JAXP .", "Is there any specification in JAXP DOM that gives assurance that a particular XML element will always be represented by the same instance of org.w3c.dom.Element", "JAXP is a set of interfaces covering XML parsing XSLT transformation and XML schema validation .", "SAXParserFactory is JAXP whereas XMLReaderFactory is the official SAX API .", "As far as I can tell JAXP by default supports W3C XML Schema and RelaxNG from Java 6 http : java.sun.com javase 6 docs api javax xml-validation SchemaFactory.html .", "@hamena314 I wouldn t describe JAXP specifically the XML parsing part of JAXP as containing DOM SAX services more as a kind of router that enables you to find a supplier of DOM SAX services .", "You can able to parse the XML stuffs using Java XML Parsers .", "CVE-2015-4893 It was discovered that the JAXP component of OpenJDK did not enforce the maximum XML name limit jdk.xml.MaxXMLNameLimit when parsing XML files .", "A specially crafted XML document could cause a Java application using JAXP to consume an excessive amount of memory and CPU time when parsed .", "CVE-2015-4803 It was discovered that the JAXP component of OpenJDK did not use efficient data-structures to store data from parsed XML documents .", "I removed xml-apis-1.0.b2.jar and that solved the JAXP problem and then I removed validation-api-1.1.0.Final.jar and it deployed with no problems .", "I removed xml-apis-1.0.b2.jar and that solved the JAXP problem and then I removed validation-api-1.1.0.Final.jar and it deployed and starts up with no problems .", "The documentation http : docs.oracle.com javase 7 docs api javax xml transform TransformerFactory.html setAttribute 28java.lang.String 20java.lang.Object 29 lists .. . .. . All implementations that implement JAXP 1.5 or newer are required to support the XMLConstants.ACCESS EXTERNAL DTD and XMLConstants.ACCESS EXTERNAL STYLESHEET properties .", "As per my understanding Java7 has the JAXP 1.4 API .", "As for JAXP I don t know whether BaseX or eXist expose that API .", "Commons-Configuration in turn uses the javax.xml.transform JAXP API to accomplish this .", "I m increasingly trying to encourage users to use the s9api API in preference to JAXP for XPath processing .", "CVE-2015-4893 : It was discovered that the JAXP component of OpenJDK did not enforce the maximum XML name limit jdk.xml.MaxXMLNameLimit when parsing XML files .", "This one http : www.javablog.fr javaxml-validating-xml-with-dtd-document-type-definition-or-xsd-xml-schema-definition-with-jaxp-sax-dom-standard-apis.html shows how to validate xml file with dtd that is outside or inside xml file .", "JAXP requires support only for W3C XML Schema for other schema languages you need to check to see if the implementation supports that .", "So JAXP is some sort of box that contains DOM SAX XML Parsing XSLT .. .", "I ve read about parsers in general here on stackoverflow http : stackoverflow.com questions 373833 best-xml-parser-for-java JAXP-Tutorial from Oracle https : docs.oracle.com javase tutorial jaxp intro index.html XML-Parsing in general https : docs.oracle.com cd B28359 01 appdev.111 b28394 adx j parser.htm and so on .", "JAXP is just an API and it does not require support for Relax NG from an implementation .", "CVE-2015-4803 : It was discovered that the JAXP component of OpenJDK did not use efficient data-structures to store data from parsed XML documents .", "I followed the tutorial http : www.developer.com java other article.php 3099751 Java-API-for-XML-Processing-JAXP-Getting-Started.htm here : .. . .. . and my classes are one.java and oneWriter.java .. . .. . When I run one.java my jar gets installed for some reason : .. . .. .", "Is there an approach on validating schematron in Java that s complete efficient and can be used with the JAXP API", "Some searching around brought me to Kohsuke Kawaguchi s Blog http : weblogs.java.net blog 2006 02 10 validate-xml-using-relax-ng-and-jaxp-13 who should know given his work on JAXP Sun s Multi Schema Validator isorelax and other stuff .", "Java and JAXP noob getting to grips with the basics here .", "See the JAXP FAQ https : jaxp.dev.java.net 1.4 JAXP-FAQ.html pluggability .", "It ll be the Transformer class in jaxp .", "I prefered JAXP is powerful .", "And if I use DOM SAX directly I am indirectly using JAXP as DOM and SAX originate from JAXP", "What is the advantage of using JAXP in layman s-terms", "I have an applet that needs to call JAXP specifically SAXParserFactory http : download.oracle.com javase 1.5.0 docs api javax xml parsers SAXParserFactory.html newInstance 28 29 .", "JAXP is an interface not an implementation and it embraces schema processing and XPath processing as well as XSLT processing .", "Please help me understand the following lines from this link http : docs.oracle.com javase 1.5.0 docs guide xml jaxp JAXP-Compatibility 150.html .. . .. . The solution in the JAXP 1.3 reference name is to change the package names of the Apache libraries used in the implementation .", "I m a newbie of XML programming I m trying to write some java objects to a well formed and valid XML file with respect to a DTD file .. . .. . I found out that I can do this kind of things using JAXP with Java .", "That way you can see exactly what the translation looks like whilst getting full advantage of the XML Schema support of JAXP .", "You can t really use JAXP .", "additional edit : .. . .. . which of these property names should be used when setting from JaxP API", "From the Official JAXP FAQ https : jaxp.java.net 1.4 JAXP-FAQ.html pluggability Question 14 : .. . .. . When an application wants to create a new JAXP DocumentBuilderFactory instance it calls the staic method DocumentBuilderFactory.newInstance .", "This may helps you jaxp.java.net 1.4 JAXP-FAQ.html https : jaxp.java.net 1.4 JAXP-FAQ.html", "I would like to know what is JAXP XML property corresponding to CXF property org.apache.cxf.stax.maxElementCount listed here http : cxf.apache.org docs security.html Security-ControllingLargeRequestPayloads .", "1.xml .. . .. . 2.xml", "Where as Xerces 2.7 implements JAXP 1.3 specification .", "Its JAXP implementation only supports XPath 2.0 .", "The main JAXP APIs are defined in the javax.xml.parsers package .", "If you re using JAXP you re also using SAX and or DOM .", "I am attempting to validate my XML using XSD in Java by using DOM validator .", "I have tried Saxon 9.7 HE and JAXP XPath with some sample expressions using XPath 3.0 and 3.1 features like or let or json-to-xml and they work fine .", "Adding to this complexity each individual JAXP factory can have an independent implementation specified .", "I suggest persevering with the isorelax-jaxp-bridge project .", "Sun s own JAXP 1.4 Java6+ certainly doesn t .", "SAX JDOM XSLT XPATH JAXP etc .", "When the code starts to actually use the JAXP implementation which is Xerces in your specific case it finds itself incompatible with the version of the JAXP API currently in runtime classpath and hence this exception .", "Exception suggests WAR bundles a JAXP api or impl incompatible with one provided by server .", "It just coincidentally occurred for the first time there because it needed to parse the faces-config.xml file using JAXP .", "Based on the JAXP 1.4 specification I see that the secure processing feature is turned on by default for DocumentBuilderFactory SAXParserFactory and SchemaFactory .", "http : stackoverflow.com questions 6787015 how-can-i-install-various-python-libraries-in-jython .. . .. . A person commented there that Jaxp should be used since jython doesnt support lxml but from what I understand Jaxp is for java .", "Problem .. . .. . NullPointerException when running almost the same program in Stackoverflow Split 1GB Xml file using Java http : stackoverflow.com questions 5169978 split-1gb-xml-file-using-java to split the XML file having xmlns as in W3C specification https : www.w3.org TR xml-names11 defaulting .", "So with this one you can use an XML String using a StringReader or a BufferedReader http : download.oracle.com javase 6 docs api java-io BufferedReader.html .", "It is regarding JAXP vulnerabilities found in jdk8u51 and earlier versions .", "is there a way to update only the JAXP libaries in jdk", "Or we can use .. . .. . or even the default implementation 1 from com.sun.org.apache.xalan.internal.xsltc.trax .. . .. . Designed to be flexible JAXP allows you to use any XML-compliant parser from within your application .", "I have spent some time searching but there s not much left out there on Java 1.4 JAXP 1.1 processing and even when things are found links within the documents are often dead .", "docs.oracle.com javase tutorial jaxp limits limits.html https : docs.oracle.com javase tutorial jaxp limits limits.html", "The Java 5 http : docs.oracle.com javase 1.5.0 docs api javax xml parsers DocumentBuilderFactory.html and Java 6 http : docs.oracle.com javase 6 docs api javax xml parsers DocumentBuilderFactory.html docs however say nothing of the kind .", "I want to set a jaxP security properties because of vuln .", "The properties to be set : .. . .. . The questions are : .. . .. . 1 Which one of these APIs is the best way to set the jaxP properties via Java code", "I can t help you with the JAXP validation API but Nux http : acs.lbl.gov nux provides a class that can validate virtually every type of schema known to man .", "There is a confusing amount of different technologies for different needs : .. . .. . W3C-DOM .. . XOM .. . jDom .. . JAXP .. . JAXB .. . DOM .. . SAX .. . StAX .. . TrAX .. . Woodstox .. . dom4j .. . Crimson .. . VTD-XML .. . Xerces-J .. . Castor .. . XStream .. . .. . .. . .. . Just to name a few .", "DOM and SAX seem to be a low-level way for parsing and working on XML so I decided to focus on the ones that get mentioned the most in different sources and are low-level : .. . .. . DOM SAX JAXP .", "I want to validate XML file against an external XSD description .", "The answer to Strip whitespace and newlines from XML in Java http : stackoverflow.com questions 11703635 strip-whitespace-and-newlines-from-xml-in-java fixed it for me .", "There s currently an XML expansion limit processing bug in Oracle and OpenJDK s Java that results in a shared counter hitting the default upper bound when parsing multiple XML documents .", "It will not create an XML schema but you can still use JAXB to generate XML from Java Object .", "It s basically the same way to convert Java Object to XML with JAXBContext and Marshaller with an addition of validation the XML validation with DTD .", ".. . .. . .. . To the best of my knowledge there is no JAXP implementation that supported RELAX NG out of the box .", "I have debugged and profiled my test-case and Xalan JAXP in general .", "I disabled jaxp validation and am getting much further .", "Is it recommended to cache those objects or do the JAXP implementations already cache them", "You might going to use Java Dom Parser JDOM Parser SAX parser StAX Parser or JAXP .", "See also the 2009 blog post scn.sap.com community java blog 2009 12 04 http : scn.sap.com community java blog 2009 12 04 performance-improvements-in-nw-java-applications-with-xml-processing", "See also java.sun.com developer technicalArticles xml jaxp1-3 http : java.sun.com developer technicalArticles xml jaxp1-3 Validate 20XML 20against 20any 20schema", "I m simply trying to apply an XSLT stylesheet to an XML file in this case SPARQL query results formatted as XML but any other XML file gives the same result ." ] }
{ "confidence": [ 81.45028686523438, 76.99681854248047, 75.07034301757812, 75.06815338134766, 74.40995025634766, 72.42972564697266, 71.83770751953125, 70.37203216552734, 70.36677551269531, 69.98239135742188, 69.66768646240234, 68.08020782470703, 66.40751647949219, 66.21559143066406, 66.0015640258789, 65.98202514648438, 65.68399810791016, 65.62849426269531, 64.5876235961914, 64.260986328125 ], "content": [ "Question : Both of them seem to have the same purpose create a XMLReader . Some Tutorials contain the one some the other . SAXParserFactory : .. . .. . http : docs.oracle.com javase 7 docs api javax xml parsers SAXParserFactory.html .. . seems to be more configurable .. . more boiler-plate code .. . officially supported api .. . .. . example code : .. . .. . XMLReaderFactory : .. . .. . http : docs.oracle.com javase 7 docs api org xml sax helpers XMLReaderFactory.html .. . two lines less code .. . less configurable .. . comunity supported and comes with no waranty .. . .. . example code : .. . .. . question : .. . .. . Are these the main differences or are there some i ve overseen . Which one should you choose Comment : SAXParserFactory is JAXP whereas XMLReaderFactory is the official SAX API . I remember the old SAX2 book from O Reilly recommending the official API due to the way in which it handled namespaces . I don t know if this is relevant anymore . But I guess I would use XMLReaderFactory unless I needed JAXP for some reason . Maybe someone else can provide some more current input . .. . Answer : The main JAXP APIs are defined in the javax.xml.parsers package . That package contains vendor-neutral factory classes like the SAXParserFactory which give you a S AXParser . The SAXParserFactory defines a factory API that enables applications to configure and obtain a SAX based parser to parse XML documents . The SAXParser defines the API that wraps an XMLReader implementation class . The Package org.xml.sax defines the basic SAX APIs . The Java Runtime comes with a default implementation XMLReader .. . .. . The SAXParserFactory hides details of which SAX1 ParserFactory SAX2 XMLReaderFactory .. . from you . If you want to be able to replace the default JAXP Parser by a different JAXP Parser there may be a known incomapatibilty bug in the default implementation implementation you should use the vendor neutral SAXParserFactory . If you know that your application will allways use a SAX2 XMLReader you may use the XMLReaderFactory .", "Question : I would like to validate XML documents using RELAX NG schemata and I would like to use the JAXP validation API https : jaxp-sources.dev.java.net nonav docs api javax xml-validation package-summary.html . From Googling around it appeared that I could use Jing http : www.thaiopensource.com relaxng jing.html and the ISO RELAX JARV to JAXP Bridge https : isorelax-jaxp-bridge.dev.java.net . Unfortunately after adding both to my classpath I can t get it to work . SchemaFactory is just throwing an IllegalArgumentException as soon as it tries to instantiate a factory I looked inside SchemaFactory apparently SchemaFactoryFinder is returning a null result . So I d appreciate answers to either question : .. . .. . How can I make this work with Jing and this bridge Is there a better different set of libraries I should try I need this to work with Java 5 and Java 6 . Thanks Comment : I suggest persevering with the isorelax-jaxp-bridge project . It s co-written by the guy who wrote JAXB so it very likely works it might just need a bit of encouragement . Comment : @skaffman thanks for the suggestion I ll try to do that . .. . Answer : I resolved this very error on Java 1.6 with the following line : .. . .. . This allows me to use Jing to validate an XML document against a Compact RELAX NG schema . Full example below . I didn t use the bridge or anything else . The runtime classpath only has jing.jar 20091111 and my own Validator class . Once again I ve only tested this ion Java 1.6 . Comment : Replace at System.setProperty line : com.thaiopensource.relaxng.jaxp.CompactSyntaxSchemaFactory with com.thaiopensource.relaxng.jaxp.XMLSyntaxSchemaFactory to validate against an XML-based RelaxNG schema . Thank you for the sample works like a charm Comment : This code works great for validating OPDS feeds . If you re using Maven then jing is all you need : dependency groupId com.thaiopensource groupId artifactId jing artifactId version 20091111 version dependency", "Question : As far as I can tell JAXP by default supports W3C XML Schema and RelaxNG from Java 6 http : java.sun.com javase 6 docs api javax xml-validation SchemaFactory.html . I can see a few APIs mostly experimental or incomplete on the schematron.com links page http : www.schematron.com links.html . Is there an approach on validating schematron in Java that s complete efficient and can be used with the JAXP API Comment : Either JAXP doesn t support RelaxNG very well or I must be doing something wrong when I try to use it . Comment : Haven t tried RelaxNG tbh just WXS Comment : Not quite a dupe but see also Where can I find a Java implementation of an ISO Schematron validator http : stackoverflow.com questions 10126256 where-can-i-find-a-java-implementation-of-an-iso-schematron-validator .. . Answer : Jing http : code.google.com p jing-trang supports pre-ISO Schematron validation note that Jing s implementation is based also on XSLT . There are also XSLT implementations that can be very easily invoked from Java . You need to decide what version of Schematron you are interested in and then get the corresponding stylesheet - all of them should be available from schematron.com . The process is very simple simple involving basically 2 steps : .. . .. . apply the skeleton XSLT on your Schematron schema to get a new XSLT stylesheet that represents your Schematron schema in XSLT .. . apply the obtained XSLT on your instance document or documents to validate them .. . .. . JAXP is just an API and it does not require support for Relax NG from an implementation . You need to check the specific implementation that you use to see if that supports Relax NG or not . Comment : JAXP is just an API and it does not require support for Relax NG from an implementation . The word not in this sentence is a mistake right You mean it does require support right Comment : No it is not a mistake . JAXP requires support only for W3C XML Schema for other schema languages you need to check to see if the implementation supports that . See also java.sun.com developer technicalArticles xml jaxp1-3 http : java.sun.com developer technicalArticles xml jaxp1-3 Validate 20XML 20against 20any 20schema", "Question : I would like to validate XML documents using RELAX NG schemata and I would like to use the JAXP validation API https : jaxp-sources.dev.java.net nonav docs api javax xml-validation package-summary.html . From Googling around it appeared that I could use Jing http : www.thaiopensource.com relaxng jing.html and the ISO RELAX JARV to JAXP Bridge https : isorelax-jaxp-bridge.dev.java.net . Unfortunately after adding both to my classpath I can t get it to work . SchemaFactory is just throwing an IllegalArgumentException as soon as it tries to instantiate a factory I looked inside SchemaFactory apparently SchemaFactoryFinder is returning a null result . So I d appreciate answers to either question : .. . .. . How can I make this work with Jing and this bridge Is there a better different set of libraries I should try I need this to work with Java 5 and Java 6 . Thanks Comment : I suggest persevering with the isorelax-jaxp-bridge project . It s co-written by the guy who wrote JAXB so it very likely works it might just need a bit of encouragement . Comment : @skaffman thanks for the suggestion I ll try to do that . .. . Answer : Another option is Trang http : www.thaiopensource.com relaxng trang.html which is a RelaxNG-to-XMLSchema translator . I believe it s designed to be used as a build tool rather than a runtime library but your best option might be to convert your schema to XMLSchema using Trang at build time and then validate against that instead . That way you can see exactly what the translation looks like whilst getting full advantage of the XML Schema support of JAXP . Comment : Interesting creative idea thanks", "Question : I would like to validate XML documents using RELAX NG schemata and I would like to use the JAXP validation API https : jaxp-sources.dev.java.net nonav docs api javax xml-validation package-summary.html . From Googling around it appeared that I could use Jing http : www.thaiopensource.com relaxng jing.html and the ISO RELAX JARV to JAXP Bridge https : isorelax-jaxp-bridge.dev.java.net . Unfortunately after adding both to my classpath I can t get it to work . SchemaFactory is just throwing an IllegalArgumentException as soon as it tries to instantiate a factory I looked inside SchemaFactory apparently SchemaFactoryFinder is returning a null result . So I d appreciate answers to either question : .. . .. . How can I make this work with Jing and this bridge Is there a better different set of libraries I should try I need this to work with Java 5 and Java 6 . Thanks Comment : I suggest persevering with the isorelax-jaxp-bridge project . It s co-written by the guy who wrote JAXB so it very likely works it might just need a bit of encouragement . Comment : @skaffman thanks for the suggestion I ll try to do that . .. . Answer : I can t help you with the JAXP validation API but Nux http : acs.lbl.gov nux provides a class that can validate virtually every type of schema known to man . Regarding RELAX NG schemata use this factory-method http : acs.lbl.gov nux api nux xom pool BuilderFactory.html createMSVBuilder 28java.io.InputStream 20java.net.URI 29 to create the relevant validator object . Comment : Useful thank you", "Question : From what I understand SAXON is the only library which supports XPath 3.0 in Java . Its JAXP implementation only supports XPath 2.0 . Its XPath 3.0 implementation should be called this way http : www.saxonica.com documentation index.html xpath-api s9api-xpath and requires me to build the document in the first place with its own API rather than using a JAXP-compliant API like DOM4J . This is a pain because I d been careful to abstract away everything that uses XPath to a proxy interface taking a JAXP node and xpath string as parameters but this seems pointless if I have to refactor everything to use SAXON nodes from the top down . Am I misunderstanding something Is there a less painful way Comment : There are various XQuery 3.0 implementations in Java and XPath 3.0 is a subset of XQuery 3.0 . As for JAXP I don t know whether BaseX or eXist expose that API . As for Saxon why do you think that XPath 2.0 is possible with Saxon and JAXP but XPath 3.0 not I think both versions can end up with results that JAXP can t handle but in general I don t see a restriction to XPath 2.0 . JAXP is pretty much geared towards XPath 1.0 that is all that makes having sequences of atomic-values of a rich type system and of nodes difficult with an API that wants to return a node set or a single primitive val Comment : saxonica.com html documentation9.6 conformance jaxp.html http : www.saxonica.com html documentation9.6 conformance jaxp.html Comment : I have tried Saxon 9.7 HE and JAXP XPath with some sample expressions using XPath 3.0 and 3.1 features like or let or json-to-xml and they work fine . Some features like higher-order-functions or inline-functions are not supported in HE but work in EE . .. . Answer : I m increasingly trying to encourage users to use the s9api API in preference to JAXP for XPath processing . There are a variety of reasons : the JAXP interface only gives very half-hearted support to tree models other than DOM it really struggles with the extended type system of XPath 2.0 and now 3.0 and in the case of Saxon it doesn t interoperate at all well with other XML technologies and APIs . However Saxon continues to support the JAXP XPath API with all its limitations both against its own tree model and against third-party tree models such as DOM4J . One thing that we have dropped is support for the XPath services interface whereby an application using the XPathFactory.newInstance method will pick up Saxon if it s on the classpath . The reason for that is that you really need to know when you re writing an application whether you want an XPath 1.0 or 2.0 processor and the JAXP mechanism gives you no way of saying which you want or discovering which you have been given . The result was that a lot of applications were experiencing hard-to-diagnose failures when deployed with an incorrect classpath . If you want Saxon as your JAXP XPath provider you now have to ask for it explicitly . It would be useful if you could be more specific about what you are trying to do and how it is failing .", "Question : Both of them seem to have the same purpose create a XMLReader . Some Tutorials contain the one some the other . SAXParserFactory : .. . .. . http : docs.oracle.com javase 7 docs api javax xml parsers SAXParserFactory.html .. . seems to be more configurable .. . more boiler-plate code .. . officially supported api .. . .. . example code : .. . .. . XMLReaderFactory : .. . .. . http : docs.oracle.com javase 7 docs api org xml sax helpers XMLReaderFactory.html .. . two lines less code .. . less configurable .. . comunity supported and comes with no waranty .. . .. . example code : .. . .. . question : .. . .. . Are these the main differences or are there some i ve overseen . Which one should you choose Comment : SAXParserFactory is JAXP whereas XMLReaderFactory is the official SAX API . I remember the old SAX2 book from O Reilly recommending the official API due to the way in which it handled namespaces . I don t know if this is relevant anymore . But I guess I would use XMLReaderFactory unless I needed JAXP for some reason . Maybe someone else can provide some more current input . .. . Answer : Elliotte Rusty Harold who has written a book on XML processing in Java once wrote : .. . .. . I wouldn t actually go that far and if I did I would try and make it grammatical . Like a lot of JAXP it s not the most wonderful piece of design but I do use it as the default way of getting a parser instance if only because it s consistent with other parts of JAXP . Historically the two were developed in parallel . JAXP originally tried to add missing functionality to SAX1 but in parallel SAX2 was coming along and filled in some of the gaps so this particular gap got filled twice .", "Question : null .. . Answer : we are dealing with these vulnerabilities these are issues with XML parser from JDK . Our product uses both JDK supplied parsers and some jboss APIS to process the xml data . How do we know if we need to upgrade jboss supported xml libraries to mitigate these vulnerabilities or these vulnerabilities does not affect jboss supported xml parsers CVE-2015-4893 It was discovered that the JAXP component of OpenJDK did not enforce the maximum XML name limit jdk.xml.MaxXMLNameLimit when parsing XML files . A specially crafted XML document could cause a Java application using JAXP to consume an excessive amount of memory and CPU time when parsed . CVE-2015-4803 It was discovered that the JAXP component of OpenJDK did not use efficient data-structures to store data from parsed XML documents . A specially-crafted XML input could cause a Java application using JAXP to use an excessive amount of CPU time by e.g . triggering hash collisions .", "Question : null .. . Answer : It is regarding JAXP vulnerabilities found in jdk8u51 and earlier versions . I am using maven based j2ee project running on JDK7 and Jboss 6 . How do I evaluate if these two vulnerabilities applicable or not CVE-2015-4893 : It was discovered that the JAXP component of OpenJDK did not enforce the maximum XML name limit jdk.xml.MaxXMLNameLimit when parsing XML files . A specially crafted XML document could cause a Java application using JAXP to consume an excessive amount of memory and CPU time when parsed . CVE-2015-4803 : It was discovered that the JAXP component of OpenJDK did not use efficient data-structures to store data from parsed XML documents . A specially-crafted XML input could cause a Java application using JAXP to use an excessive amount of CPU time by e.g . triggering hash collisions . While running on jboss I notice stax.jar and xml-api.jar being used which are downloaded by maven during build . I am not sure if it uses JDK supplied jaxp libraries . is there a way to dump all the jars being used by application in Jboss is there a way to update only the JAXP libaries in jdk", "Question : I work with Java . I have a bunch of long XML files . I have to filter the documents by several fields then I have to extract other fields and then create an java object based on these fields . How should I do this SAX JDOM XSLT XPATH JAXP etc . Sorry I m not familiar with XML technologies . Can you give me a general architecture for my use-case Comment : checkout xStream library . It was provided by CodeHause but now it is available on github . Comment : can you provide some code examples or xml examples also the state of art in xml processing is vtd-xml this paper is something that you may wan t to read : sdiwc.us digitlib journal paper.php paper 00000582.pdf http : sdiwc.us digitlib journal paper.php paper 00000582.pdf .. . Answer : You are asking about XML Parsing and you also in the Java platform . It s looking pretty cool . You can able to parse the XML stuffs using Java XML Parsers . There are many XML Parsers are available . You might going to use Java Dom Parser JDOM Parser SAX parser StAX Parser or JAXP . I prefered JAXP is powerful . It s speciallity comparing with DOM parsers . It load the part of the document when it needs . Better you follow this site to understand the concepts . Java XML Parsers - Tutorials Point http : www.tutorialspoint.com java xml java xml parsers.htm", "Question : I would like to validate XML documents using RELAX NG schemata and I would like to use the JAXP validation API https : jaxp-sources.dev.java.net nonav docs api javax xml-validation package-summary.html . From Googling around it appeared that I could use Jing http : www.thaiopensource.com relaxng jing.html and the ISO RELAX JARV to JAXP Bridge https : isorelax-jaxp-bridge.dev.java.net . Unfortunately after adding both to my classpath I can t get it to work . SchemaFactory is just throwing an IllegalArgumentException as soon as it tries to instantiate a factory I looked inside SchemaFactory apparently SchemaFactoryFinder is returning a null result . So I d appreciate answers to either question : .. . .. . How can I make this work with Jing and this bridge Is there a better different set of libraries I should try I need this to work with Java 5 and Java 6 . Thanks Comment : I suggest persevering with the isorelax-jaxp-bridge project . It s co-written by the guy who wrote JAXB so it very likely works it might just need a bit of encouragement . Comment : @skaffman thanks for the suggestion I ll try to do that . .. . Answer : .. . IllegalArgumentException as soon as it tries to instantiate a factory .. . .. . Means the schema language isn t recognized there could be a few causes . Since the Sun JDK doesn t include a RELAX NG validator by default it could be that it s not being found . It could be that you ve made an error in the schema language identifier .", "Question : Being new to XML parsing I m trying to understand the different technologies . There is a confusing amount of different technologies for different needs : .. . .. . W3C-DOM .. . XOM .. . jDom .. . JAXP .. . JAXB .. . DOM .. . SAX .. . StAX .. . TrAX .. . Woodstox .. . dom4j .. . Crimson .. . VTD-XML .. . Xerces-J .. . Castor .. . XStream .. . .. . .. . .. . Just to name a few . DOM and SAX seem to be a low-level way for parsing and working on XML so I decided to focus on the ones that get mentioned the most in different sources and are low-level : .. . .. . DOM SAX JAXP . I ve read about parsers in general here on stackoverflow http : stackoverflow.com questions 373833 best-xml-parser-for-java JAXP-Tutorial from Oracle https : docs.oracle.com javase tutorial jaxp intro index.html XML-Parsing in general https : docs.oracle.com cd B28359 01 appdev.111 b28394 adx j parser.htm and so on . I ve also tried some tutorials like this german one http : www.torsten-horn.de techdocs java-xml.htm and others . I m grasping a little bit about DOM and SAX now but the reason to use JAXP is still beyond me . It seems to be more of an interface to use DOM SAX .. . internally but why not use DOM or SAX directly What is the advantage of using JAXP in layman s-terms Comment : When I m working with manipulating creating xml i m always using DOM but that s just my personal opinion I think it works quite well and provides all the features you need . Comment : This may helps you jaxp.java.net 1.4 JAXP-FAQ.html https : jaxp.java.net 1.4 JAXP-FAQ.html Comment : ParkerHalo : DOM seems to be a very intuitive way to work with XML . The main reason to not use DOM is often stated as the size of a document but people only say if the document is too big use SAX instead of DOM while never defining what big means - lines-of-code document size in MB number of xml-objects .. . and at which number this occurs . Are 20 000 lines considered big or 1 000 000 and so on . Comment : @hamena314 You ll notice what s big when you run out-of-memory which won t take that much time with DOM . As for JAXP it s just an old term Java Api for XML Processing to refer to the SAX DOM StAX parsers . You can t really use JAXP . Comment : @Kayman Is it something I HAVE to notice as the environment is different each time I use a parser or are there rules of thumb i.e . more than X MB more than Y lines-of-code etc . Because noticing after doing all of the implementation seems to be too late . .. . Answer : Although you haven t said so explicitly your question seems to relate exclusively to the Java world and this answer reflects that . JAXP is a set of interfaces covering XML parsing XSLT transformation and XML schema validation . If we just focus on the XML parsing side its main contribution is to provide a mechanism for locating an XML parser implementation so your source code isn t locked into a particular product . Frankly that s of limited value these days the only two SAX DOM parsers in common use are the one embedded in the JDK and Apache Xerces . Apache Xerces is better in every respect except that you need to download it separately . As for the other parsing interfaces they break down into two categories : event-based APIs and tree-based APIs . Tree-based APIs are much easier to work with but can use a lot of memory when handling large documents . The two dominant event-based APIs are SAX push and StAX pull . Pull parsing is something many programmers find easier because you can use the program stack to maintain state information unfortunately though the StAX API is a bit buggy - different implementations have fixed its gaps in different ways . The most complete and reliable implementation of StAX is the Woodstox parser the most complete and reliable implementation of SAX is Apache Xerces . But don t attempt to use an event-based parsing approach unless your application really needs that level of performance and unless you have the level of experience needed to avoid losing all the performance gains at the application level . For tree-based APIs the DOM remains dominant solely because it was defined by W3C and is implemented in the JDK and is therefore perceived as standard also it s the one mentioned in all the books on the subject . However of all the tree models it is unquestionably the worst designed mainly because it predates the introduction of namespaces . Alternatives include JDOM2 DOM4J XOM and AXIOM . I tend to recommend JDOM2 or XOM . Comment : You re right I have changed my title in order to have Java in it . So JAXP is some sort of box that contains DOM SAX XML Parsing XSLT .. . And if I use DOM SAX directly I am indirectly using JAXP as DOM and SAX originate from JAXP I ve read some reviews about XOM and it seems to be quite good but the licence LGPL might make it hard for me to use in my projects . But I have to read more about that . Comment : Note that the SAX DOM implementation in the JDK is based on Apache Xerces and it is actually better maintained than the original . Comment : @AndreasVeithen Yes it is a fork of the original . But it has some very serious bugs which have been known for donkey s years well at least since 2009 and have never been fixed . You don t even get any kind of acknowledgement when you report them they just go into a black hole . Comment : @hamena314 I wouldn t describe JAXP specifically the XML parsing part of JAXP as containing DOM SAX services more as a kind of router that enables you to find a supplier of DOM SAX services . The distinction is that if you know the class name of the DOM SAX implementation you want to use and you don t want portability across different implementations then you can usually bypass the JAXP search mechanism . Comment : @AndreasVeithen for an example of such a bug see bugs.java.com bugdatabase view bug.do bug id 8145969 http : bugs.java.com bugdatabase view bug.do bug id 8145969 . Although this was reported recently it is a very old bug and I reported it at least five years ago though I cannot find my previous reports in the Oracle database only an email from me to a customer telling them I had reported it .", "Question : Being new to XML parsing I m trying to understand the different technologies . There is a confusing amount of different technologies for different needs : .. . .. . W3C-DOM .. . XOM .. . jDom .. . JAXP .. . JAXB .. . DOM .. . SAX .. . StAX .. . TrAX .. . Woodstox .. . dom4j .. . Crimson .. . VTD-XML .. . Xerces-J .. . Castor .. . XStream .. . .. . .. . .. . Just to name a few . DOM and SAX seem to be a low-level way for parsing and working on XML so I decided to focus on the ones that get mentioned the most in different sources and are low-level : .. . .. . DOM SAX JAXP . I ve read about parsers in general here on stackoverflow http : stackoverflow.com questions 373833 best-xml-parser-for-java JAXP-Tutorial from Oracle https : docs.oracle.com javase tutorial jaxp intro index.html XML-Parsing in general https : docs.oracle.com cd B28359 01 appdev.111 b28394 adx j parser.htm and so on . I ve also tried some tutorials like this german one http : www.torsten-horn.de techdocs java-xml.htm and others . I m grasping a little bit about DOM and SAX now but the reason to use JAXP is still beyond me . It seems to be more of an interface to use DOM SAX .. . internally but why not use DOM or SAX directly What is the advantage of using JAXP in layman s-terms Comment : When I m working with manipulating creating xml i m always using DOM but that s just my personal opinion I think it works quite well and provides all the features you need . Comment : This may helps you jaxp.java.net 1.4 JAXP-FAQ.html https : jaxp.java.net 1.4 JAXP-FAQ.html Comment : ParkerHalo : DOM seems to be a very intuitive way to work with XML . The main reason to not use DOM is often stated as the size of a document but people only say if the document is too big use SAX instead of DOM while never defining what big means - lines-of-code document size in MB number of xml-objects .. . and at which number this occurs . Are 20 000 lines considered big or 1 000 000 and so on . Comment : @hamena314 You ll notice what s big when you run out-of-memory which won t take that much time with DOM . As for JAXP it s just an old term Java Api for XML Processing to refer to the SAX DOM StAX parsers . You can t really use JAXP . Comment : @Kayman Is it something I HAVE to notice as the environment is different each time I use a parser or are there rules of thumb i.e . more than X MB more than Y lines-of-code etc . Because noticing after doing all of the implementation seems to be too late . .. . Answer : JAXP is just Sun s now Oracle s name for a collection of SAX and DOM classes they bundle with the JDK . If you re using JAXP you re also using SAX and or DOM . It s not a different thing . JAXP also adds a few helper classes in the javax.xml.parsers package that fill gaps in SAX 1 and DOM 1 i.e . old versions of these libraries from 15+ years ago . However these are not necessary with SAX2 DOM3 that are used today . Worse yet javax.xml.parsers classes such as DocumentBuilderFactory and SAXParserFactory are designed in a confusing way they re not namespace aware by default so they are almost always used incorrectly . Then developers come here to ask why their program doesn t do what they think it should . Just ignore these classes and use XMLReaderFactory SAX 2 or DOMImplementationLS DOM 3 instead . Comment : Namespace aware means that in an XML document a company might have an XML-element named adress and later in the document a employee might have an XML-element named also adress Is that what you are refering to And despite using differeng Factory classes like DOMImplementationLS instead of DocumentBuilderFactory are there any other differences in usage Comment : @ElliotteRustyHarold I have always taken the view that JAXP is an interface but when you say that Oracle Sun use the name to refer to a collection of SAX and DOM classes that is a specific implementation I think you are right . They have a very bad track record at confusing the interface with their specific implementation . Comment : @hamena314 Besides the builder and factory classes there are NO differences in usage between JAXP SAX and regular SAX . They are the same classes . They are just bundled with the JDK . Same answer for DOM . Namespace aware in this context has to do with how the parser passes local and qualified names to which methods . You always want this turned on and the javax.xml.parsers classes turn this off by default . : -", "Question : I m tring to transform an xsl : fo into xslt for HTML output . Then I would apply xslt instead of xsl : fo obtaining the HTML output instead of a PDF . How can do this I need API for XML Processing or JAXP that transforms XML and XSL to another output . So I tried to write the xslt template : .. . .. . I obtain something like .. . .. . But it delete all xsl : choose xsl : when and other tags like I need all these tags because i need to pass xml data in second pass using Jaxp and producing html. . I would obtain .. . .. . How can get the XSL nodes like text node Comment : Just to be clear .. . I believe you are trying to create an XSL that would convert an XSL designed to produce XSL FO into an XSL that will produce HTML correct Meaning you want to map all the constructs like fo : block to p and fo : table to table and so on Comment : You don t have access to the XML that was used as the input for the FO transformation If you do that would be an easier starting point . .. . Answer : i put xsl : code between CDATA .. . .. . .. . anyway using another namespace", "Question : I would like to validate XML documents using RELAX NG schemata and I would like to use the JAXP validation API https : jaxp-sources.dev.java.net nonav docs api javax xml-validation package-summary.html . From Googling around it appeared that I could use Jing http : www.thaiopensource.com relaxng jing.html and the ISO RELAX JARV to JAXP Bridge https : isorelax-jaxp-bridge.dev.java.net . Unfortunately after adding both to my classpath I can t get it to work . SchemaFactory is just throwing an IllegalArgumentException as soon as it tries to instantiate a factory I looked inside SchemaFactory apparently SchemaFactoryFinder is returning a null result . So I d appreciate answers to either question : .. . .. . How can I make this work with Jing and this bridge Is there a better different set of libraries I should try I need this to work with Java 5 and Java 6 . Thanks Comment : I suggest persevering with the isorelax-jaxp-bridge project . It s co-written by the guy who wrote JAXB so it very likely works it might just need a bit of encouragement . Comment : @skaffman thanks for the suggestion I ll try to do that . .. . Answer : See Stefan Bodewig s Weblog written on March 7 2008 titled RELAX NG Validation in XMLUnit http : stefan.samaflost.de blog en oss XMLUnit relax 5Fng 5Fvalidation 5Fin 5Fxmlunit.html : .. . .. . Since last night XMLUnit s trunk contains a new Validator class that is based on javax.xml.validation which is part of JAXP 1.3 i.e . Java5+ . .. . .. . .. . To the best of my knowledge there is no JAXP implementation that supported RELAX NG out of the box . Sun s own JAXP 1.4 Java6+ certainly doesn t . Some searching around brought me to Kohsuke Kawaguchi s Blog http : weblogs.java.net blog 2006 02 10 validate-xml-using-relax-ng-and-jaxp-13 who should know given his work on JAXP Sun s Multi Schema Validator isorelax and other stuff . .. . Using his isorelax-bridge https : isorelax-jaxp-bridge.dev.java.net and Jing http : www.thaiopensource.com relaxng jing.html didn t get me anywhere on Java6 . I went back to Kohsuke Kawaguchi s article and read the comments : the bridge doesn t work with Java6 since they changed the SchemaFactory lookup algorithm . OK tried Java5 instead - progress I now get a NullPointerException somewhere inside of Jing so at least it is loading the factory . Next I replaced Jing with MSV which is here https : msv.dev.java.net now no matter how many links out there lead you to the WebServices stack page at Sun so much for good URLs never change and really my simplistic tests pass . .. . So you may have to jump through some hoops to get RELAX NG support into your JAXP setup - in my case Java5 MSV and Kawaguchi s bridge worked but the comments indicate it should be doable with Java6 as well - but once you manage to configure everything correctly XMLUnit will now be there to let you assert your document s validity in Unit tests . It seems that it doesn t work for compact syntax though . To read the comments on Kohsuke Kawaguchi s blog you have to use archive.org http : web.archive.org web 20080420131311 http 3A weblogs.java.net blog kohsuke archive 2006 02 validate 5Fxml 5Fus.html because somehow they are all gone now : .. . .. . Java 5 interprets the Service Provider file as a list of key-value pairs which is a violation to the Java 5 6 JAR file specification but happens to match your example . .. . Java 6 parses the Service Provider file as specified ie . as a list of fully qualified class names but thus fails to instantiate your adapter s SchemaFactory as the Service Provider file s contents are invalid . .. . To be compatible with both Java 5 and Java 6 without having to change the JAXP-JARV-adapter JAR file one can simply add another JAR file containing a correct javax.xml.validation.SchemaFactory Service Provider file . Comment : Very very useful thanks", "Question : I m tring to transform an xsl : fo into xslt for HTML output . Then I would apply xslt instead of xsl : fo obtaining the HTML output instead of a PDF . How can do this I need API for XML Processing or JAXP that transforms XML and XSL to another output . So I tried to write the xslt template : .. . .. . I obtain something like .. . .. . But it delete all xsl : choose xsl : when and other tags like I need all these tags because i need to pass xml data in second pass using Jaxp and producing html. . I would obtain .. . .. . How can get the XSL nodes like text node Comment : Just to be clear .. . I believe you are trying to create an XSL that would convert an XSL designed to produce XSL FO into an XSL that will produce HTML correct Meaning you want to map all the constructs like fo : block to p and fo : table to table and so on Comment : You don t have access to the XML that was used as the input for the FO transformation If you do that would be an easier starting point . .. . Answer : If you want to use XSLT to output XSLT elements i.e . elements in the XSLT namespace then you need to use a namespace alias as shown in http : www.w3.org TR xslt literal-result-element :", "Question : In its current form Netbeans only supports XSLT 1.0 and does not support XSLT 2.0 . How do we use XSLT 2.0 with Netbeans 7 Comment : What library would you use to get XSLT 2.0 support Comment : @Thorbj rn Ravn Andersen . I don t get your question. . its because i can t find XSLT 2.0 support in netbeans that s why I m asking if there is one . Comment : There is an XSLT 1.0 interpreter in the standard Java runtime . I do not believe there is support for XSLT 2.0 in Java or Netbeans . Thirdparty implementations like Saxon exist though . Comment : @Thorbj rn Ravn Andersen . hence this question. . in case someone manages to integrate Netbeans with a Saxon plugin or something .. . Answer : How to make Saxon the JRE-installation-default XSLT Processor : .. . .. . So not only for Netbeans other Java applications might be impacted as well . 1 . Get Saxon for Java http : saxon.sourceforge.net there are different editions pick the one suitable for you and copy saxonXYZ.jar to the jre lib ext dir . 2 . In the jre lib dir create a jaxp.properties file with following content : .. . .. . javax.xml.transform.TransformerFactory net.sf.saxon.TransformerFactoryImpl .. . .. . 3 . Restart Netbeans . Check success by doing an XSL Transformation : If Saxon has been used the XSLT Processor output will contain Using net.sf.saxon.Controller XSLT processor from file .. . .. . .. . Tested with NetBeans 7.3.1 Saxon-HE 9.4.0 JRE 1.7.0 17 .. . .. . There are other ways of configuring the TransformerFactory used in a Java application . See the JAXP FAQ https : jaxp.dev.java.net 1.4 JAXP-FAQ.html pluggability . And of course there are also other XSLT processors than Saxon that plug into the Java API for XML Processing JAXP .", "Question : 1 . I d like to know which objects can be reused in the same or different document when using the Java API for XML processing JAXP : .. . .. . DocumentBuilderFactory .. . DocumentBuilder .. . XPath .. . Node .. . strike ErrorHandler strike EDIT : I forgot that this has to be implemented in my own code sorry .. . 2 . Is it recommended to cache those objects or do the JAXP implementations already cache them 3 . Is the re use of those objects thread-safe .. . Answer : Reuse .. . .. . In the same thread those objects can and should be reused . For example you can use the DocumentBuilder to parse multiple documents . Thread Safety .. . .. . DocumentBuilderFactory used to explicity state it was not thread safe I believe this is still true : .. . .. . An implementation of the DocumentBuilderFactory class is NOT guaranteed to be thread safe . It is up to the user application to make sure about the use of the DocumentBuilderFactory from more than one thread . http : download.oracle.com javase 1.4.2 docs api javax xml parsers DocumentBuilderFactory.html .. . .. . From Stack Overflow DocumentBuilder does not appear to be thread safe either . However in Java SE 5 a reset method was added to allow you to reuse DocumentBuilders : .. . .. . http : stackoverflow.com questions 56737 is-documentbuilder-parse-thread-safe .. . http : download-llnw.oracle.com javase 6 docs api javax xml parsers DocumentBuilder.html reset .. . http : www.junlu.com msg 289939.html about DocumentBuilder.reset .. . .. . XPath is not thread safe from the Javadoc .. . .. . An XPath object is not thread-safe and not reentrant . In other words it is the application s responsibility to make sure that one XPath object is not used from more than one thread at any given time and while the evaluate method is invoked applications may not recursively call the evaluate method . http : download-llnw.oracle.com javase 6 docs api javax xml xpath XPath.html .. . .. . Node is not thread safe from Xerces website .. . .. . Is Xerces DOM implementation thread-safe No . DOM does not require implementations to be thread safe . If you need to access the DOM from multiple threads you are required to add the appropriate locks to your application code . http : xerces.apache.org xerces2-j faq-dom.html faq-1 .. . .. . ErrorHandler is an interface so it is up to your implementation of that interface to ensure thread-safety . For pointers on thread-safety you could start here : .. . .. . http : en.wikipedia.org wiki Thread safety Comment : What about caching reusing thread-safety of Node objects Comment : DOM nodes are not guaranteed to be thread-safe . Comment : Where is this specified Comment : This is from the Xerces web site xerces.apache.org xerces2-j faq-dom.html faq-1 http : xerces.apache.org xerces2-j faq-dom.html faq-1", "Question : As far as I can tell JAXP by default supports W3C XML Schema and RelaxNG from Java 6 http : java.sun.com javase 6 docs api javax xml-validation SchemaFactory.html . I can see a few APIs mostly experimental or incomplete on the schematron.com links page http : www.schematron.com links.html . Is there an approach on validating schematron in Java that s complete efficient and can be used with the JAXP API Comment : Either JAXP doesn t support RelaxNG very well or I must be doing something wrong when I try to use it . Comment : Haven t tried RelaxNG tbh just WXS Comment : Not quite a dupe but see also Where can I find a Java implementation of an ISO Schematron validator http : stackoverflow.com questions 10126256 where-can-i-find-a-java-implementation-of-an-iso-schematron-validator .. . Answer : You can check out SchematronAssert https : github.com j-maly SchematronAssert disclosure : my code . It is meant primarily for unit-testing but you may use it for normal code too . It is implemented using XSLT . Unit testing example : .. . .. . Standalone validation example : .. . .. . Work with an object representation of SVRL :", "Question : As far as I can tell JAXP by default supports W3C XML Schema and RelaxNG from Java 6 http : java.sun.com javase 6 docs api javax xml-validation SchemaFactory.html . I can see a few APIs mostly experimental or incomplete on the schematron.com links page http : www.schematron.com links.html . Is there an approach on validating schematron in Java that s complete efficient and can be used with the JAXP API Comment : Either JAXP doesn t support RelaxNG very well or I must be doing something wrong when I try to use it . Comment : Haven t tried RelaxNG tbh just WXS Comment : Not quite a dupe but see also Where can I find a Java implementation of an ISO Schematron validator http : stackoverflow.com questions 10126256 where-can-i-find-a-java-implementation-of-an-iso-schematron-validator .. . Answer : A pure Java Schematron implementation is located at https : github.com phax ph-schematron It brings support for both the XSLT approach and the pure Java approach ." ] }
[ "yes-answer-long", "yes-answer-short" ]
implementation
UNK_RELATION
jail@virtualization@83
jail -- the freebsd jail mechanism is an implementation of operating system-level @placeholder that allows administrators to partition a freebsd-based computer system into several independent mini-systems called jails.source : http : en.wikipedia.org wiki freebsd jail .
{ "confidence": [ 88.42523193359375, 77.26480102539062, 76.35374450683594, 66.66136169433594, 64.98867797851562, 64.66818237304688, 63.33583450317383, 60.92213821411133, 60.74131774902344, 60.14960479736328, 59.21444320678711, 57.81154251098633, 56.432098388671875, 55.636741638183594, 55.25189208984375, 54.96641540527344, 54.527076721191406, 54.23773956298828, 54.058738708496094, 53.85675048828125, 53.85675048828125, 53.20756530761719, 53.16135787963867, 52.54480743408203, 52.097900390625, 51.915103912353516, 51.75066375732422, 51.74980926513672, 51.594154357910156, 51.33216857910156, 51.33216857910156, 50.64099884033203, 50.64099884033203, 50.64099884033203, 49.92147445678711, 49.92147445678711, 49.92147445678711, 49.92147445678711, 49.92147445678711, 49.92147445678711, 49.52389907836914, 49.31103515625, 49.24232482910156, 49.221336364746094, 48.81180953979492, 48.81180953979492, 48.796234130859375, 48.54779052734375, 47.481849670410156, 47.481849670410156, 47.14295959472656, 47.14295959472656, 47.14295959472656, 47.14295959472656, 47.14295959472656, 47.14295959472656, 47.14295959472656, 46.88097381591797, 46.763824462890625, 46.741554260253906, 45.85346221923828, 45.85346221923828, 45.470279693603516, 45.470279693603516, 45.470279693603516, 45.470279693603516, 45.470279693603516, 45.470279693603516, 45.470279693603516, 45.470279693603516, 45.470279693603516, 44.743797302246094, 44.36061477661133, 44.36061477661133, 44.36061477661133, 44.03584289550781, 43.5130729675293, 43.13350296020508, 43.115760803222656, 43.09317398071289, 43.03065490722656, 43.03065490722656, 43.03065490722656, 43.03065490722656, 43.03065490722656, 43.03065490722656, 42.88983154296875, 42.012550354003906, 41.867305755615234, 41.867305755615234, 41.14722442626953, 41.14722442626953, 41.14722442626953, 41.14722442626953, 41.14722442626953, 40.75764083862305, 40.529014587402344, 39.672218322753906, 39.474544525146484, 39.474544525146484 ], "content": [ "What s the difference between a Linux chroot jail and a FreeBSD jail", "A FreeBSD jail on the other hand is more like a virtual-machine than a Linux chroot jail .", "There is a problem when I init a PostgreSQL database in a FreeBSD jail .", "I d try jail -c test but I don t have a FreeBSD machine handy to try it myself .", "I can t resolve my problem with time in FreeBSD JAIL : .. . .. . I have set my timezone correctly .", "There is the link : PostgreSQL in jail http : www.freebsddiary.org jail-multiple.php .", "I have a question regarding the following warning when using Ezjail-3.4.1 on FreeBSD 10.2 etc rc.d jail : WARNING : Per-jail configuration via jail var enter code here iables is obsolete .", "This is the message when I restart the jail : .. . .. . Or when I run sysctl manually : on jail .. . .. . .. . .. . Freebsd version : FreeBSD xxxxxxx 9.1-PRERELEASE FreeBSD 9.1-PRERELEASE .. . .. . postgreSQL version : postgresql-server-9.1.4 .. . .. . Error Message : .. . .. . .. . .. . Update : .. . .. . in host machine etc sysctl.conf : security.jail.sysvipc allowed 1 etc rc.conf : jail sysvipc allow YES .. . .. . In Jail server there is no extra jail sysvipc configuration .", "I m trying to start jail in FreeBSD 9 .. . .. . configs : .. . .. . etc rc.conf : .. . .. . After this I m trying to start it : .. . .. . or mybsd jail start test But both commands return such error : .. . .. . Please advise how to start jail in new-style command", "My system required modding etc rc.conf before restarting the jail otherwise it would set both host and jail to 0 .", "You may also experience this if you re entered the jail via the jail command .", "Also in the jail", "So either you have the jail user restricted to Jail or not .", "Consider doing the git-pull on the host system not inside the jail .", "The jail 8 manpage describes this near the following paragraph : .. . .. . It is important that only appropriate device nodes in devfs be exposed to a jail access to disk devices in the jail may permit processes in the jail to bypass the jail sandboxing by modifying files outside of the jail .", "The root user inside the jail only has administrative access to other objects in the jail it cannot access anything outside of its jail .", "I m setting up an sshd jail for some users on my system archlinux .", "I ve a question concerning the Jail explained later : .. . .. . User to be jailed : foo .. . Jail Directory : mnt foo-jail .. . Home directory of foo : mnt foo-jail foo-home .. . .. . Everything is ok .", "But currently am facing a problem in running gcc g++ inside Jail. . Any easy way to bring all the system files inside the jail", "I need to invoke scripts.py of home ubuntu in the jail with restricted jail user .. . .. . You said that scripts.py is located in home ubuntu online judge which is NOT in the Jail .", "ln home ubuntu online judge scripts.py Jail scripts.py now the restricted jail user has access to scripts.py via Jail scripts.py .", "Outside of the jail everything works perfectly .", "If you wanted to put an impact outside chroot jail by executing command inside chroot jail that s not possible .", "I read about jail the solution sound great for Server Systems .", "Jail is up and the user is connecting correctly .", "Update almost a year later : .. . .. . If you upgrade to FreeBSD 8 or higher you can also use epair 4 to create a virtual-network interface between two jail instances .", "There are some new features for jail in special granularity we need allow change sysvipc allowed for each jail put this in etc rc.conf :", "Have a look at the name resolution mechanism in the jail : like the local", "The devfs filesystem is probably not mounted in your jail .", "sudo chroot opt jail command does it :", "opt jail isn t your jailed root directory", "I have created a jail in linux to control access to a new program which will be executing in the jail .", "I need to invoke scripts.py of home ubuntu in the jail with restricted jail user compile the code and run the binary .", "If the restricted jail user should execute online judge scripts.py you d have to make it accessible somewhere under Jail .", "I read some things about chroot or jail .", "Are you having issues starting Pg up in a jail", "The sysctl security.jail.sysvipc allowed has to be set on the host not in the jail .", "So I m missing some stuff to put in to the jail .", "As I said this all works fine outside of the jail .", "running the Java that is added in the jail works fine .", "When I try to connect through SSH from inside the JAIL I get this error : .. . .. . Outside JAIL everythng is working properly .", "Totally decouple your web-app from the jail for example there should be no need for the jail to have network access and so on .", "When he connects to my server he is redirected to mnt foo-jail his Jail and not in his Home mnt foo-jail foo-home where he can write .. . .. . How can I resolv this problem", "The problem is that every bot runs from it s own jail and I can t get scala to run from the jail Linux system btw because I get an error saying the executable is not found .", "This would be sort of a jail within the Python VM .", "All these components working fine in their own jail .", "Which FreeBSD version are you using", "Jails in FreeBSD are named .", "They are chosen by the admin upon setting up the jail .", "Notes about setting up a python jail .", "If you start up the jail and SSH into it you should have better luck .", "So at this stage I have setup a Jail via - jailkit .", "The specific user is then placed in the jail and given the bash shell as a shell .", "Just add aliases to lo0 and give each jail an address in 127 8 .", "2 Joachim Isaksson : jail -c test told that test is unknown parameter", "As far as how to start the jail try : .. . .. . That should start all the jails .", "So the warning is generated by rc.d jail .. . .. . Regards Mr-Hill", "Is it possible to execute a command inside the jail and get the output from outside", "This is almost certainly a system configuration issue you didn t set up the jail right rather than a Python one .", "On my rc.conf I only have : .. . .. . Then with the command : .. . .. . I create the mysql jail and automatically ip 172.16.1.2 brings up on lo1 when the jail is started .", "I m quite new to freeBSD switching from Linux .", "I m setting up a FreeBSD server with five jails .", "I have a jail-shell access on my web server .", "One jail for mysql one for nginx and one for php-fpm .", "Do you just want to improve inter-jail isolation", "Then on the host issue : .. . .. . jail -m jid 3 allow.sysvipc 1", "It would be great to for instance run Arch Linux within a chroot jail etc. .", "Here s the script that creates everything that s needed inside of the jail .", "The scala executable references usr bin env which resides outside the jail .", "Run the program outside of jail under strace look which files it opens .", "I was now thinking about running the git server in his own jail .", "I created two jails in one FreeBSD host .", "I ve installed an npm package script in a JAIL on FreeNAS 9.10 .", "However I need this to be auto-starting when the jail starts .", "I installed PHP Apache in one jail and MySQL Server in another .", "From usr src UPDATING https : github.com freebsd freebsd blob stable 10 UPDATING L281-L298 : .. . .. . ezjail was never updated to use this new method http : erdgeist.org arts software ezjail version-history but that s ok : FreeBSD still accepts the previous method .", "Also for easy jail usage I strongly recommend : http : people.virginia.edu ll2bf docs nix freebsd jail.html", "This is also why you should not nullfs http : www.freebsd.org cgi man.cgi query mount nullfs apropos 0 sektion 0 manpath FreeBSD 208.2-RELEASE format html your php code onto the webserver jail if you plan to separate as it would defeat it s advantage .", "What I ve done : .. . .. . I edited etc rc.conf on the host machine and added the line jail sysvipc allow YES .. . In the jail machine s etc sysctl.conf I add line security.jail.sysvipc allowed 1 .. . .. . I restarted the jail machine multiple times .", "Please consider to migrate to etc jail.conf enter code here It is my understanding that this has changed in FreeBSD 9.0 but since 10.2 the new way is the default-method and that warning is being generated.I haven t been able to find any information about this on google a lot of users mentioning the errors but ignoring them because their jails still work.AFAIK in 10.0 the rc.d jail script converts the old-style jail variables into a temporary jail.conf to handle the jail .", "I previously wanted to jail a Specific User to its home .", "You have to modify ssh configuration file to jail root the users .", "What i really wanna know is : .. . .. . HOW TO JAIL A SPECIFIC USER ONLY", "However : .. . .. . The cheapest in every sense option would be a chroot jail .", "Iff you re careful you can do it with a simple chroot jail .", "Have the jail solely as a disposable arena in which to run the codes .", "I can t work out a way to daemonise a node script on FreeNAS FreeBSD none of the forever type solutions seem to work on FreeBSD", "I am creating chroot jail in linux but i do not have access to any system file like ls cd gcc g++ .", "Same problem here with FreeBSD-9.1 compiled two days ago. .", "I am using FreeBSD 10.3-BETA with Apache-2.4.18 MPM Prefork .", "Does your jail root have a populated dev filesystem through a devfs mount", "See devfs 8 for information on how to use devfs rules to limit access to entries in the per-jail devfs .", "The next step would be to remove all the commands in the jail bin directories etc so that they are not able to execute any commands .", "I don t think this is the whole problem but you have a mismatch between : .. . .. . and .. . .. . Is the jail on em0 or re0", "on the server-side on my debian8 the commands were run : .. . .. . On the client-side .. . .. . Why can t set chroot jail on the home user1", "I am trying PHP Apache MySQL stack on FreeBSD .", "I could not find any MaxWorkersPerUser -like directive in ApacheMPM documentation so I m trying to limit it via FreeBSD limiting system .", "FreeBSD based It works perfectly if I run npm start in the directory where the scripts are installed .", "I need to jail each user in their own home-directory so they can t see and access parent folders .", "How can I jail each user in their own home-directory so they can t see and access parent folders" ] }
{ "confidence": [ 115.44879913330078, 110.86831665039062, 109.55139923095703, 109.02933502197266, 108.42169952392578, 103.72026824951172, 102.55033111572266, 100.35482788085938, 99.25997161865234, 96.77566528320312, 89.43291473388672, 88.88853454589844, 86.6094741821289, 80.88191986083984, 80.7486801147461, 79.67407989501953, 73.11106872558594, 72.6689453125, 69.81070709228516, 67.84931182861328 ], "content": [ "Question : What s the difference between a Linux chroot jail and a FreeBSD jail Are they synonyms in modern systems Is one more secure than the other Is one more flexible .. . Answer : Actually they have almost nothing in common . A Linux chroot environment is just what resolves to for a single process . Anything the process can do with access to that tree it can do . So in general it can e.g . enumerate other processes on the system and if it is a root process it can still take over the machine . A FreeBSD jail on the other hand is more like a virtual-machine than a Linux chroot jail . It is a partition of the system with its own file system user accounts etc . The root user inside the jail only has administrative access to other objects in the jail it cannot access anything outside of its jail . I will not respond to the more secure or more flexible questions since those are weasel words . The mechanisms are just completely different by design that s all .", "Question : There is a problem when I init a PostgreSQL database in a FreeBSD jail . I found an article about the problem . I tried its advice but I didn t have any luck and I don t know why . There is the link : PostgreSQL in jail http : www.freebsddiary.org jail-multiple.php . I also read the PostgreSQL documentation on kernel resources http : www.postgresql.org docs 9.1 static kernel-resources.html : .. . .. . If running in FreeBSD jails by enabling sysctl s security.jail.sysvipc allowed postmasters running in different jails should be run by different operating-system users . This improves security because it prevents non-root users from interfering with shared-memory or semaphores in different jails and it allows the PostgreSQL IPC cleanup code to function properly . In FreeBSD 6.0 and later the IPC cleanup code does not properly detect processes in other jails preventing the running of postmasters on the same port in different jails . What I ve done : .. . .. . I edited etc rc.conf on the host machine and added the line jail sysvipc allow YES .. . In the jail machine s etc sysctl.conf I add line security.jail.sysvipc allowed 1 .. . .. . I restarted the jail machine multiple times . I haven t restarted the host machine and don t want to . Hope someone can give me a solution or some advice . Thanks so much . This is the message when I restart the jail : .. . .. . Or when I run sysctl manually : on jail .. . .. . .. . .. . Freebsd version : FreeBSD xxxxxxx 9.1-PRERELEASE FreeBSD 9.1-PRERELEASE .. . .. . postgreSQL version : postgresql-server-9.1.4 .. . .. . Error Message : .. . .. . .. . .. . Update : .. . .. . in host machine etc sysctl.conf : security.jail.sysvipc allowed 1 etc rc.conf : jail sysvipc allow YES .. . .. . In Jail server there is no extra jail sysvipc configuration . sysctl value in host machine : .. . .. . I still get the same error message as I got before . In additional I am wondering if there is anything with security.jail.param.allow.sysvipc Because in host machine I was not allowed to set it . security.jail.param.allow.sysvipc 0- 0 Comment : Which FreeBSD version are you using Which PostgreSQL version Comment : Also is this causing you a specific problem Do you just want to improve inter-jail isolation Are you having issues starting Pg up in a jail What s the background Include the commands you run and the errors they produce just like you have for the attempted solution you ve written about . Please update your question . Comment : Same problem here with FreeBSD-9.1 compiled two days ago. . Comment : Mau be you hit this bug : freebsd.org cgi query-pr.cgi pr bin 173469 http : www.freebsd.org cgi query-pr.cgi pr bin 173469 .. . Answer : My system required modding etc rc.conf before restarting the jail otherwise it would set both host and jail to 0 . I did not need to set security.jail.sysvipc allowed 1 in etc sysctl.conf .", "Question : There is a problem when I init a PostgreSQL database in a FreeBSD jail . I found an article about the problem . I tried its advice but I didn t have any luck and I don t know why . There is the link : PostgreSQL in jail http : www.freebsddiary.org jail-multiple.php . I also read the PostgreSQL documentation on kernel resources http : www.postgresql.org docs 9.1 static kernel-resources.html : .. . .. . If running in FreeBSD jails by enabling sysctl s security.jail.sysvipc allowed postmasters running in different jails should be run by different operating-system users . This improves security because it prevents non-root users from interfering with shared-memory or semaphores in different jails and it allows the PostgreSQL IPC cleanup code to function properly . In FreeBSD 6.0 and later the IPC cleanup code does not properly detect processes in other jails preventing the running of postmasters on the same port in different jails . What I ve done : .. . .. . I edited etc rc.conf on the host machine and added the line jail sysvipc allow YES .. . In the jail machine s etc sysctl.conf I add line security.jail.sysvipc allowed 1 .. . .. . I restarted the jail machine multiple times . I haven t restarted the host machine and don t want to . Hope someone can give me a solution or some advice . Thanks so much . This is the message when I restart the jail : .. . .. . Or when I run sysctl manually : on jail .. . .. . .. . .. . Freebsd version : FreeBSD xxxxxxx 9.1-PRERELEASE FreeBSD 9.1-PRERELEASE .. . .. . postgreSQL version : postgresql-server-9.1.4 .. . .. . Error Message : .. . .. . .. . .. . Update : .. . .. . in host machine etc sysctl.conf : security.jail.sysvipc allowed 1 etc rc.conf : jail sysvipc allow YES .. . .. . In Jail server there is no extra jail sysvipc configuration . sysctl value in host machine : .. . .. . I still get the same error message as I got before . In additional I am wondering if there is anything with security.jail.param.allow.sysvipc Because in host machine I was not allowed to set it . security.jail.param.allow.sysvipc 0- 0 Comment : Which FreeBSD version are you using Which PostgreSQL version Comment : Also is this causing you a specific problem Do you just want to improve inter-jail isolation Are you having issues starting Pg up in a jail What s the background Include the commands you run and the errors they produce just like you have for the attempted solution you ve written about . Please update your question . Comment : Same problem here with FreeBSD-9.1 compiled two days ago. . Comment : Mau be you hit this bug : freebsd.org cgi query-pr.cgi pr bin 173469 http : www.freebsd.org cgi query-pr.cgi pr bin 173469 .. . Answer : I found the problem after my teammate s help . Because I use etc jail.conf I have to add a line allow.sysvipc to enable system share memory . in host machine", "Question : There is a problem when I init a PostgreSQL database in a FreeBSD jail . I found an article about the problem . I tried its advice but I didn t have any luck and I don t know why . There is the link : PostgreSQL in jail http : www.freebsddiary.org jail-multiple.php . I also read the PostgreSQL documentation on kernel resources http : www.postgresql.org docs 9.1 static kernel-resources.html : .. . .. . If running in FreeBSD jails by enabling sysctl s security.jail.sysvipc allowed postmasters running in different jails should be run by different operating-system users . This improves security because it prevents non-root users from interfering with shared-memory or semaphores in different jails and it allows the PostgreSQL IPC cleanup code to function properly . In FreeBSD 6.0 and later the IPC cleanup code does not properly detect processes in other jails preventing the running of postmasters on the same port in different jails . What I ve done : .. . .. . I edited etc rc.conf on the host machine and added the line jail sysvipc allow YES .. . In the jail machine s etc sysctl.conf I add line security.jail.sysvipc allowed 1 .. . .. . I restarted the jail machine multiple times . I haven t restarted the host machine and don t want to . Hope someone can give me a solution or some advice . Thanks so much . This is the message when I restart the jail : .. . .. . Or when I run sysctl manually : on jail .. . .. . .. . .. . Freebsd version : FreeBSD xxxxxxx 9.1-PRERELEASE FreeBSD 9.1-PRERELEASE .. . .. . postgreSQL version : postgresql-server-9.1.4 .. . .. . Error Message : .. . .. . .. . .. . Update : .. . .. . in host machine etc sysctl.conf : security.jail.sysvipc allowed 1 etc rc.conf : jail sysvipc allow YES .. . .. . In Jail server there is no extra jail sysvipc configuration . sysctl value in host machine : .. . .. . I still get the same error message as I got before . In additional I am wondering if there is anything with security.jail.param.allow.sysvipc Because in host machine I was not allowed to set it . security.jail.param.allow.sysvipc 0- 0 Comment : Which FreeBSD version are you using Which PostgreSQL version Comment : Also is this causing you a specific problem Do you just want to improve inter-jail isolation Are you having issues starting Pg up in a jail What s the background Include the commands you run and the errors they produce just like you have for the attempted solution you ve written about . Please update your question . Comment : Same problem here with FreeBSD-9.1 compiled two days ago. . Comment : Mau be you hit this bug : freebsd.org cgi query-pr.cgi pr bin 173469 http : www.freebsd.org cgi query-pr.cgi pr bin 173469 .. . Answer : There are some new features for jail in special granularity we need allow change sysvipc allowed for each jail put this in etc rc.conf :", "Question : There is a problem when I init a PostgreSQL database in a FreeBSD jail . I found an article about the problem . I tried its advice but I didn t have any luck and I don t know why . There is the link : PostgreSQL in jail http : www.freebsddiary.org jail-multiple.php . I also read the PostgreSQL documentation on kernel resources http : www.postgresql.org docs 9.1 static kernel-resources.html : .. . .. . If running in FreeBSD jails by enabling sysctl s security.jail.sysvipc allowed postmasters running in different jails should be run by different operating-system users . This improves security because it prevents non-root users from interfering with shared-memory or semaphores in different jails and it allows the PostgreSQL IPC cleanup code to function properly . In FreeBSD 6.0 and later the IPC cleanup code does not properly detect processes in other jails preventing the running of postmasters on the same port in different jails . What I ve done : .. . .. . I edited etc rc.conf on the host machine and added the line jail sysvipc allow YES .. . In the jail machine s etc sysctl.conf I add line security.jail.sysvipc allowed 1 .. . .. . I restarted the jail machine multiple times . I haven t restarted the host machine and don t want to . Hope someone can give me a solution or some advice . Thanks so much . This is the message when I restart the jail : .. . .. . Or when I run sysctl manually : on jail .. . .. . .. . .. . Freebsd version : FreeBSD xxxxxxx 9.1-PRERELEASE FreeBSD 9.1-PRERELEASE .. . .. . postgreSQL version : postgresql-server-9.1.4 .. . .. . Error Message : .. . .. . .. . .. . Update : .. . .. . in host machine etc sysctl.conf : security.jail.sysvipc allowed 1 etc rc.conf : jail sysvipc allow YES .. . .. . In Jail server there is no extra jail sysvipc configuration . sysctl value in host machine : .. . .. . I still get the same error message as I got before . In additional I am wondering if there is anything with security.jail.param.allow.sysvipc Because in host machine I was not allowed to set it . security.jail.param.allow.sysvipc 0- 0 Comment : Which FreeBSD version are you using Which PostgreSQL version Comment : Also is this causing you a specific problem Do you just want to improve inter-jail isolation Are you having issues starting Pg up in a jail What s the background Include the commands you run and the errors they produce just like you have for the attempted solution you ve written about . Please update your question . Comment : Same problem here with FreeBSD-9.1 compiled two days ago. . Comment : Mau be you hit this bug : freebsd.org cgi query-pr.cgi pr bin 173469 http : www.freebsd.org cgi query-pr.cgi pr bin 173469 .. . Answer : Solution found . The following does work for me . On the host do : .. . .. . Find the correct JID 3 in my example . Then on the host issue : .. . .. . jail -m jid 3 allow.sysvipc 1", "Question : There is a problem when I init a PostgreSQL database in a FreeBSD jail . I found an article about the problem . I tried its advice but I didn t have any luck and I don t know why . There is the link : PostgreSQL in jail http : www.freebsddiary.org jail-multiple.php . I also read the PostgreSQL documentation on kernel resources http : www.postgresql.org docs 9.1 static kernel-resources.html : .. . .. . If running in FreeBSD jails by enabling sysctl s security.jail.sysvipc allowed postmasters running in different jails should be run by different operating-system users . This improves security because it prevents non-root users from interfering with shared-memory or semaphores in different jails and it allows the PostgreSQL IPC cleanup code to function properly . In FreeBSD 6.0 and later the IPC cleanup code does not properly detect processes in other jails preventing the running of postmasters on the same port in different jails . What I ve done : .. . .. . I edited etc rc.conf on the host machine and added the line jail sysvipc allow YES .. . In the jail machine s etc sysctl.conf I add line security.jail.sysvipc allowed 1 .. . .. . I restarted the jail machine multiple times . I haven t restarted the host machine and don t want to . Hope someone can give me a solution or some advice . Thanks so much . This is the message when I restart the jail : .. . .. . Or when I run sysctl manually : on jail .. . .. . .. . .. . Freebsd version : FreeBSD xxxxxxx 9.1-PRERELEASE FreeBSD 9.1-PRERELEASE .. . .. . postgreSQL version : postgresql-server-9.1.4 .. . .. . Error Message : .. . .. . .. . .. . Update : .. . .. . in host machine etc sysctl.conf : security.jail.sysvipc allowed 1 etc rc.conf : jail sysvipc allow YES .. . .. . In Jail server there is no extra jail sysvipc configuration . sysctl value in host machine : .. . .. . I still get the same error message as I got before . In additional I am wondering if there is anything with security.jail.param.allow.sysvipc Because in host machine I was not allowed to set it . security.jail.param.allow.sysvipc 0- 0 Comment : Which FreeBSD version are you using Which PostgreSQL version Comment : Also is this causing you a specific problem Do you just want to improve inter-jail isolation Are you having issues starting Pg up in a jail What s the background Include the commands you run and the errors they produce just like you have for the attempted solution you ve written about . Please update your question . Comment : Same problem here with FreeBSD-9.1 compiled two days ago. . Comment : Mau be you hit this bug : freebsd.org cgi query-pr.cgi pr bin 173469 http : www.freebsd.org cgi query-pr.cgi pr bin 173469 .. . Answer : The sysctl security.jail.sysvipc allowed has to be set on the host not in the jail . But if you set jail sysvipc allow YES in the host s rc.conf that should set it for you see etc rc.d jail . You should check on the host if the value of security.jail.sysvipc allowed changes to 1 if you start the jail . If not there is probably something wrong in your rc.conf . Try setting security.jail.sysvipc allowed manually on the host .", "Question : I m trying to start jail in FreeBSD 9 .. . .. . configs : .. . .. . etc rc.conf : .. . .. . After this I m trying to start it : .. . .. . or mybsd jail start test But both commands return such error : .. . .. . Please advise how to start jail in new-style command Thanks a lot Comment : I d try jail -c test but I don t have a FreeBSD machine handy to try it myself . Comment : Please post uname -a . Comment : uname -a : FreeBSD pcbsd-7104 9.0-RELEASE-p3 FreeBSD 9.0-RELEASE-p3 0 : Tue Jun 12 02 : 52 : 29 UTC 2012 root@amd64-builder.daemonology.net : usr obj usr src sys GENERIC amd64 Comment : 2 Joachim Isaksson : jail -c test told that test is unknown parameter .. . Answer : does not seem necessary . Also for easy jail usage I strongly recommend : http : people.virginia.edu ll2bf docs nix freebsd jail.html", "Question : I have a question regarding the following warning when using Ezjail-3.4.1 on FreeBSD 10.2 etc rc.d jail : WARNING : Per-jail configuration via jail var enter code here iables is obsolete . Please consider to migrate to etc jail.conf enter code here It is my understanding that this has changed in FreeBSD 9.0 but since 10.2 the new way is the default-method and that warning is being generated.I haven t been able to find any information about this on google a lot of users mentioning the errors but ignoring them because their jails still work.AFAIK in 10.0 the rc.d jail script converts the old-style jail variables into a temporary jail.conf to handle the jail . So the warning is generated by rc.d jail .. . .. . Regards Mr-Hill Comment : That seems to be reasonably correct . What is your question .. . Answer : As you found out jails on FreeBSD 10.x use a new configuration method . From usr src UPDATING https : github.com freebsd freebsd blob stable 10 UPDATING L281-L298 : .. . .. . ezjail was never updated to use this new method http : erdgeist.org arts software ezjail version-history but that s ok : FreeBSD still accepts the previous method . You can ignore this warning .", "Question : I m trying to start jail in FreeBSD 9 .. . .. . configs : .. . .. . etc rc.conf : .. . .. . After this I m trying to start it : .. . .. . or mybsd jail start test But both commands return such error : .. . .. . Please advise how to start jail in new-style command Thanks a lot Comment : I d try jail -c test but I don t have a FreeBSD machine handy to try it myself . Comment : Please post uname -a . Comment : uname -a : FreeBSD pcbsd-7104 9.0-RELEASE-p3 FreeBSD 9.0-RELEASE-p3 0 : Tue Jun 12 02 : 52 : 29 UTC 2012 root@amd64-builder.daemonology.net : usr obj usr src sys GENERIC amd64 Comment : 2 Joachim Isaksson : jail -c test told that test is unknown parameter .. . Answer : I don t think this is the whole problem but you have a mismatch between : .. . .. . and .. . .. . Is the jail on em0 or re0 As far as how to start the jail try : .. . .. . That should start all the jails . Also I d suggest trying ezjail . It makes things a little simpler to manage .", "Question : I am trying PHP Apache MySQL stack on FreeBSD . I created two jails in one FreeBSD host . I installed PHP Apache in one jail and MySQL Server in another . All these components working fine in their own jail . My target is to host a PHP application which will communication with MySQL which located in another jail . For these I need to establish connection between these jails . Following is my etc rc.conf - .. . .. . And my etc pf.conf is - .. . .. . Need idea to connect one jail to another jails MySQL server . .. . Answer : On my rc.conf I only have : .. . .. . Then with the command : .. . .. . I create the mysql jail and automatically ip 172.16.1.2 brings up on lo1 when the jail is started . On my pf.con i don t filter on the cloned interface : .. . .. . FreeBsd HandBook ejzail https : www.freebsd.org doc handbook jails-ezjail.html", "Question : I m quite new to freeBSD switching from Linux . I read about jail the solution sound great for Server Systems . So my idea for my webserver was to create 3 jails . One jail for mysql one for nginx and one for php-fpm . Now the jails have to communicate with each other . How do I do that Over IP It would be a big overhead but secure . Here is an example : .. . .. . CLIENT .. . - TCP IP - NGINX .. . - TCP IP - PHP-FPM .. . - TCP IP - MYSQL .. . - TCP IP - PHP-FPM .. . - TCP IP - NGINX .. . - TCP IP - CLIENT .. . .. . With Sockets : That would be a security los. . .. . .. . create a directories on the host system .. . create a directories in the jails .. . merge the directories .. . .. . Which solution do you use Or do you have better solutions .. . Answer : I would not separate php-fpm but it s possible . The overhead for IP communication is not that big these days and not that important considering the processing that the database and php processor need to make is far bigger . Especially since there is no actual wire involved . The packets are routed through the interface via a loopback construct and don t hit the wire . The advantage of separation is that you can move the jail to another physical machine if need be and moving jails is a breeze . To clarify why not to move php-fpm in a separate jail is that modifying the website becomes a two-task process for static content images and dynamic-content php files . The advantage is that a breach in the webserver software is not able to modify php code . This is also why you should not nullfs http : www.freebsd.org cgi man.cgi query mount nullfs apropos 0 sektion 0 manpath FreeBSD 208.2-RELEASE format html your php code onto the webserver jail if you plan to separate as it would defeat it s advantage .", "Question : I ve installed an npm package script in a JAIL on FreeNAS 9.10 . FreeBSD based It works perfectly if I run npm start in the directory where the scripts are installed . However I need this to be auto-starting when the jail starts . I don t know now to do that . Do I need to create an rc script Basically all I need to do is give the npm start in the correct directory on start up . How do I do that thanks .. . Answer : Yes you can place an rc script within the jail and enable it using the jail s etc rc.conf file . But for a quick and dirty solution you could create a etc rc.local script also within the jail s environment and put your startup commands in there . See the manual page here https : www.freebsd.org cgi man.cgi query rc.local . Comment : Don t think that works with npm commands unfortunately it doesn t daemonise Comment : I can t work out a way to daemonise a node script on FreeNAS FreeBSD none of the forever type solutions seem to work on FreeBSD Comment : Ok it worked like this using etc rc.local : usr local bin node path to server.js", "Question : null .. . Answer : I m setting up a FreeBSD server with five jails . some of them are web server with web apps . Some of those apps should be updated using git . I was now thinking about running the git server in his own jail . But would there be any way to keep the git server and the web apps in sync or would this solution just create overhead Comment : This is more a question for serverfault.com . Consider doing the git-pull on the host system not inside the jail . Comment : I might think about doing this thanks @arved Comment : Why do you think you need to run a git server Comment : I would like to keep the web app jails updated via one single fit jail . Would there be another way I m missing", "Question : I am fond of mosh http : mosh.mit.edu but I have problem connecting via two-level ssh . Consider this scenario : .. . .. . host machine running FreeBSD which has closed all ports from outside .. . first jail having ssh port 2222 open from the outside is on public IP let s say door.example.com .. . second jail with private IP address named DEV.example.com that can be ssh-ed from door.example.com on port 2222 as well .. . redirection is set up to forward udp port 60000 from door.example.com to DEV.example.com .. . .. . There is generaly some problem with ttys and jails but I am able to connect this way : .. . .. . being asked for both password to door.example.com and DEV.example.com afterwards . I have tried this mosh command also tried all variations with and without -t -t params : .. . .. . but I always get hanging on password authentication to the second jail with no password prompt . Funny thing is that from android mosh-flavored irssi connect bot http : dan.drown.org android mosh this works when I set up mosh port to 60000 and as mosh server I fill in ssh -t -t -p2222 DEV.example.com mosh-server .. . .. . I know there are ways to set-up ssh proxy but I don t want to have things like netcat on the door jail . This should work somehow especially because it already works from my phone . Comment : Ah it seems that on linux only the password prompt is not displayed - I entered the second password and the request goes successfully through . But on Mac OS X I cannot go through - so problem is probably on Mac OS X ssh.. . Comment : On Mac OS X I updated the openssh from homebrew and still the request can t go through the second ssh . So I m still stuck . Comment : Have you tried the verbose options of ssh Comment : of course I did - both in --ssh and --server and combinations . It hangs on the authentication . Comment : see serverfault.com q 390916 80866 http : serverfault.com q 390916 80866 .. . Answer : Is there a reason the mosh-server needs to be at the end point dev rather than at the entry door I use something like : .. . .. . For my setup at home . FWIW I use something like this for irssi : .. . .. . Both my servers are FreeBSD and clients are either MacBook Air or a laptop running Ubuntu . I had gone with a dmz host with host based firewall to overcome the limited forwards available on my current router . Comment : I don t want to install any software in the entry jail so that is not a solution for me .", "Question : null .. . Answer : I can t resolve my problem with time in FreeBSD JAIL : .. . .. . I have set my timezone correctly . And I have commented this line : .. . .. . Here is my cron log : Comment : Resolved . My cron proccess on the host machine was running twice . Comment : Then please close the question .", "Question : I have inherited an environment with multiple FreeBSD6.1 machines running jails . Due to IP exhaustion on the local network I want to change the jails so that there is 1 routable IP on the physical network and another non-routable virtual-network between the jails . Is this actually achievable My research so far indicates that a jail has it s own address bound to a network-interface on the host I haven t been able to find any information on virtual-network interfaces . I want to ensure that there is no ARP traffic for my jail IP addresses as all access to the jails will be via SSH on the host or netcat ssh proxying via the host . Any guidance on implementing this would be greatly appreciated . Comment : Why not just use IPv6 .. . Answer : Just add aliases to lo0 and give each jail an address in 127 8 . For example 127.0.0.2 127.0.0.3 .. . 127.255.255.254 . You can then proxy or do NAT as required . Update almost a year later : .. . .. . If you upgrade to FreeBSD 8 or higher you can also use epair 4 to create a virtual-network interface between two jail instances . You can combine this with if bridge to create a virtual-network exactly as you are trying to do .", "Question : Looking for a script what will show all logged users sorted by FreeBSD jails where they re logged in . So need run the who command in all currently running FreeBSD jails and in the main host too . I make this : .. . .. . but the jexec need root execution and i m logging in usually as non-root and make su everytime is painfull.. . .. . .. . Is here any other simple way .. . Answer : The who command in FreeBSD knows a file argument from where read informations about the logged-in users the default is var run utx.active - and the file is usually world-readable.. . Probably will be enough the next script : .. . .. . example output : .. . .. . steps : .. . .. . show the path to root filesystem for all running jails .. . run the who for the var run utx.active for the given jail .. . skip the header line from the jls - so the 1st output will be the host . Maybe someone know much simpler solution e.g . by sorting the ps output or something like.. . .. . .. . Comments : you usually don t want to use constructions like command while read - the pipe forks new shell and you losing values of the variables set inside of the loop the done commands is usually better.. .", "Question : In order to deploy into FreeBSD jails I need my commands to look like this : .. . .. . Note that though technically possible I want to avoid activating SSH in the jails directly .. . .. . So how can I have Capistrano operate like this Note that I am mostly asking in reference to amending the default cap tasks . .. . Answer : Got chainsaw One part that needs clarification is who determines if it is web jail or db jail Is that the role with jail appended to it The place I would hack into is Capistrano : : Command.replace placeholders . You could use an alias method chain to hook in . The original is in lib capistrano command.rb . You might be able to do some fancy footwork with the shell variable but that would seem pretty hard to do . Since you have two people watching this may be a good addition to submit to the Capistrano folks . Comment : Jails in FreeBSD are named . web jail and db jail are those names . They are chosen by the admin upon setting up the jail .", "Question : I m quite new to freeBSD switching from Linux . I read about jail the solution sound great for Server Systems . So my idea for my webserver was to create 3 jails . One jail for mysql one for nginx and one for php-fpm . Now the jails have to communicate with each other . How do I do that Over IP It would be a big overhead but secure . Here is an example : .. . .. . CLIENT .. . - TCP IP - NGINX .. . - TCP IP - PHP-FPM .. . - TCP IP - MYSQL .. . - TCP IP - PHP-FPM .. . - TCP IP - NGINX .. . - TCP IP - CLIENT .. . .. . With Sockets : That would be a security los. . .. . .. . create a directories on the host system .. . create a directories in the jails .. . merge the directories .. . .. . Which solution do you use Or do you have better solutions .. . Answer : I really don t know if it s the best solution but if you can use Unix domain sockets you can share a mount between the three jails . The namespace is isolated they can t create a socket outside the shared mount point and they should be able to communicate . To create the shared mount you can use a nullfs mount . A nice rather advanced guide about jails http : www.freebsd.org doc en US.ISO8859-1 books handbook jails-application.html also speaks about nullfs mounts . Of course this mount point should be used only for the sockets the other files should stay separate . Again I don t know if those applications can communicate over Unix sockets but if they can you re probably set .", "Question : I am writing an online coding jude site like spoj.pl and i am creating a jail for compiling and executing the program . I wrote a script which takes c c++ source code compile and run the code . I need to execute this program in a jail created by debootstrap but i have to restrict permissions to my script and allow the binary to read only the - input output files present in the original home ubuntu system . Is it possible I need to invoke scripts.py of home ubuntu in the jail with restricted jail user compile the code and run the binary . The Jail user should never be able to access any of the home ubuntu files except input output input txt which i can give then execute permission .. . Answer : I need to invoke scripts.py of home ubuntu in the jail with restricted jail user .. . .. . You said that scripts.py is located in home ubuntu online judge which is NOT in the Jail . So either you have the jail user restricted to Jail or not . If the restricted jail user should execute online judge scripts.py you d have to make it accessible somewhere under Jail . The Jail user should never be able to access any of the home ubuntu files except input output input txt which i can give then execute permission .. . .. . Hardlinks may help e.g . ln home ubuntu online judge scripts.py Jail scripts.py now the restricted jail user has access to scripts.py via Jail scripts.py . Be sure to restrict write-access to that file otherwise s he would modify both copies . Comment : Thanks am clear about this . But currently am facing a problem in running gcc g++ inside Jail. . Any easy way to bring all the system files inside the jail Comment : Since the question is tagged with Ubuntu apt-cache search jail has some helper tools to set up Linux jails or chroot environments jails is really a BSD term IIRC" ] }
[ "yes-answer-long", "yes-answer-short" ]
virtualization
UNK_RELATION
jenkins-job-builder@json@97
jenkins-job-builder -- jenkins-job-builder takes simple descriptions of jenkins jobs in yaml or @placeholder format and uses them to configure jenkins .
{ "confidence": [ 112.91830444335938, 99.99860382080078, 96.16033935546875, 95.26298522949219, 93.6710205078125, 91.46480560302734, 91.23944091796875, 89.42018127441406, 86.80001831054688, 83.60710144042969, 83.56796264648438, 81.75267028808594, 81.71018981933594, 80.60377502441406, 80.39846801757812, 78.23626708984375, 77.75425720214844, 76.6224365234375, 74.65247344970703, 74.39152526855469, 73.20294189453125, 72.35913848876953, 72.0399169921875, 72.0399169921875, 71.72003173828125, 68.21147918701172, 67.73196411132812, 67.40621948242188, 66.64576721191406, 66.10234832763672, 65.57405090332031, 65.57405090332031, 63.92879867553711, 63.66551208496094, 63.36783218383789, 62.761474609375, 62.35575485229492, 62.35575485229492, 62.094200134277344, 61.40433120727539, 61.40433120727539, 61.11559295654297, 59.318565368652344, 59.318565368652344, 59.25396728515625, 59.078365325927734, 58.52696228027344, 58.43013000488281, 56.772850036621094, 56.68543243408203, 56.576263427734375, 56.02820587158203, 54.99507522583008, 54.871089935302734, 54.29194641113281, 54.22517013549805, 53.67652893066406, 53.522701263427734, 53.08869934082031, 52.37562942504883, 52.28495407104492, 51.725830078125, 51.725830078125, 51.36634826660156, 51.36634826660156, 50.4803581237793, 50.4803581237793, 49.482383728027344, 49.482383728027344, 49.482383728027344, 49.482383728027344, 49.482383728027344, 47.26383590698242, 46.38059997558594, 45.22572326660156, 45.22572326660156, 43.83289337158203, 43.83289337158203, 43.83289337158203, 43.83289337158203, 43.43733215332031, 43.21410369873047, 41.946922302246094, 40.731109619140625, 40.731109619140625, 40.5312614440918, 40.37528991699219, 38.708465576171875, 37.90725326538086, 37.688262939453125, 37.522117614746094, 37.273502349853516, 36.914405822753906, 36.50264358520508, 36.50264358520508, 36.37287521362305, 36.27520751953125, 36.11772155761719, 34.99961471557617, 34.08393096923828 ], "content": [ "JJB : It allows you to create Jenkins jobs in YAML or JSON format and uses them to configure Jenkins .", "jenkins-job-builder http : ci.openstack.org jenkins-job-builder is a nice tool to help me to maintain jobs in YAML files .", "I am investigating using Jenkins Job-Builder http : ci.openstack.org jenkins-job-builder from OpenStack as our means of managing jenkins job configurations .", "Part I : Jenkins Job Builder http : www.jeeatwork.com p 182 .. . .. . Jenkins Job Builder and Jenkins DSL Plugin compared .", "docs.openstack.org infra jenkins-job-builder http : docs.openstack.org infra jenkins-job-builder definition.html variable-references .", "I am using jenkins-job-builder http : ci.openstack.org jenkins-job-builder to create my pipeline project .", "I need to tick checkboxes in Jenkins using Jenkins Job builder yaml projects .", "We have got a Jenkins setup at the moment not managed with the Jenkins Job Builder where every web project has 5 very similar Jenkins jobs .", "Using jenkins-job-builder http : docs.openstack.org infra jenkins-job-builder index.html I want to push my job s artifacts to S3 .", "I am trying to build my config.xml files for pushing into Jenkins using the Jenkins Job Builder and I face an error .", "Today i discovered there is something called as Jenkins Job Wrecker which can convert a Jenkins XML to a YAML file which I can use along with Jenkins Job Builder to modify my jobs and push into my Jenkins server .", "Seems like there s only some minimal global config http : docs.openstack.org infra jenkins-job-builder execution.html jenkins-section you can configure .", "Jenkins-jobs takes a path argument which can be a directory holding your files job-template.yaml job-1.yaml and job-2.yaml .", "the Jenkins job foo-lorem .", "Perhaps updating your version of Jenkins Job Builder might help", "I have also created a Jenkins job to generate Jenkins validation job .", "Jenkins Job Builder configuration http : i.stack.imgur.com Pv3X9.png", "How do I indicate through Jenkins Job Builder that the downstream connection to job foo-two needs to be automated", "see example in configuration http : ci.openstack.org jenkins-job-builder configuration.html chapter .", "Now I had lots of old jenkins jobs it will be nice to have a python script xml2yaml to convert the existing jenkins job config.xml to YAML file-format .", "there is another tool similar to JJB : Jenkins Job DSL Plugin https : wiki.jenkins-ci.org display JENKINS Job+DSL+Plugin .. . .. . Here is a nice post explaiing and comapring JJB and DSL - .. . .. . Jenkins Job Builder and Jenkins DSL Plugin compared .", "I came across SCM Sync configuration plugin https : wiki.jenkins-ci.org display JENKINS SCM+Sync+configuration+plugin and Jenkins Job Builder http : docs.openstack.org infra jenkins-job-builder and having a hard time figuring whether these solutions are suitable for me and what are the differences between them .", "Question is how can I declare the S3 profile through jenkins-job-builder", "Could not figure out how to resolve the issue using Jenkins Job Builder publisher pipeline tag .", "I don t need it to be used in jenkins-job-builder directly just can be converted it into YAML for reference .", "Jenkins job generator for Gerrit http : i.stack.imgur.com 63OiR.png", "Currently in Jenkins Job Builder I can specify downstream jobs through the publishers option like this : .. . .. . When the foo-one job is created the downstream connection exists within Jenkins but the Build other projects entry is Build other projects Manual Step .", "This is a simplified Jenkins Job Builder yaml file which could work for our needs : .. . .. . This yaml file results in 15 Jenkins jobs - all are NOT disabled : .. . .. . foo-lorem .. . foo-ipsum .. . foo-dolor .. . foo-sit .. . foo-amet .. . bar-lorem .. . bar-ipsum .. . bar-dolor .. . bar-sit .. . bar-amet .. . baz-lorem .. . baz-ipsum .. . baz-dolor .. . baz-sit .. . baz-amet .. . .. . Is it possible with this kind of setup to disable a specific Jenkins job", "Now want to automatically create Jenkins jobs using Jenkins jobgenerator https : wiki.jenkins-ci.org display JENKINS Job+Generator+Plugin plugin when a new repository is created in Gerrit .", "There s also the Jobcopy Builder plugin https : wiki.jenkins-ci.org display JENKINS Jobcopy+Builder+plugin : .. . .. . This plugin adds Copy Job as a build step .", "I took a look at : http : docs.openstack.org infra jenkins-job-builder definition.html highlight default defaults and I did not see any mechanism .", "Also I would like to know if there is any documentation with respect to Jenkins job builder and wrecker which will explain to a layman what it is all about .", "Attached is the snapshot from Jenkins .. . .. .", "It can dynamically query a Jenkins server and translate all the jobs to YAML .", "I found out that Jenkins Job Builder version 0.9.0-0.2 does not propagate the value but for me version 1.3.0+2015.12.15.git136.959eb4b909-1 did .", "In short it allows you to create Jenkins jobs programmatically .", "Part II : Jenkins Job DSL Plugin http : www.jeeatwork.com p 194", "As mentioned above the parameter are declared in my Jenkins Job what s wrong", "https : github.com ktdreyer jenkins-job-wrecker .. . .. . Right now it works for very simple jobs .", "I have Jenkins set up with all the appropriate plugins S3 set up and I can configure this through the Jenkins GUI .", "My Jenkins instance is a Docker container so it will be constantly torn down and rebuilt I don t want to go configure the Jenkins GUI every time .", "I am trying to create a job that will run .groovy files to generate other jobs on my jenkins server .", "Infact we would need to have the possibility to be able to override any attribute of any Jenkins job if needed .", "Configuring the foo-one job within Jenkins to kick off foo-two when foo-one completed successfully .. . 2 .", "I want to run my maven project with Jenkins job with real system .", "CI SKIP in jenkins is not working. .", "If I do this through the Jenkins GUI it all works .", "I have configured Jenkins gerrit-trigger https : wiki.jenkins-ci.org display JENKINS Gerrit+Trigger plugin so Gerrit changes are validated by Jenkins .", "I have setup Gerrit and Jenkins .", "The thread How to schedule Jenkins job every Hour for the next 12 hours http : stackoverflow.com questions 27837243 how-to-schedule-jenkins-job-every-hour-for-the-next-12-hours rq 1 had this example H 9-21 which i have changed to H 1-23 to cater for my example .", "The XML Jenkins creates var lib jenkins hudson.plugins.s3.S3BucketPublisher.xml looks like the following : .. . .. . Should I just drop this XML into place on the file system", "I have the following jenkins config in JJB format for the job which build master and from which a release is generated :", "Well I should have RTFM properly : .. . .. . Jenkins jobgenerator https : wiki.jenkins-ci.org display JENKINS Job+Generator+Plugin plugin has it s own kind of parameter : Generator Parameter and Generator Choice .", "I am waiting for Jenkins team to respond on Jenkins JIRA ticket but haven t heard any thing back from them from past 1 month. .", "Using the Jenkins Job Builder xml and publisher tags : .. . .. . - job-template : .. . name : foo-one .. . project-type : freestyle .. . disabled : false .. . .. . .. . publishers : .. . - raw : .. . xml : .. . hudson.tasks.BuildTrigger .. . childProjects foo-two childProjects .. . threshold .. . name SUCCESS name .. . ordinal 0 ordinal .. . completeBuild true completeBuild .. . threshold .. . hudson.tasks.BuildTrigger", "In particular I need to declare an S3 profile under Manage Jenkins Configure System Amazon S3 profiles .", "I have configured JENKINS on my local machine .", "It is my project configuration : .. . .. . And here is my job-template http : ci.openstack.org jenkins-job-builder configuration.html job-template : .. . .. . Ok now when I run this configuration in jenkins and I check the job s construction it says : .. . .. . Why the line : pipeline-next : name -nfr-smoke-tests doesn t propagates the value of variable name and just used it as a literal string", "I can configure Git-Repo with Jenkins for latest code .", "You can select how to retrieve choices including the way to share choices among all jobs . .. . .. . And there s also a page how to Extend Jenkins https : wiki.jenkins-ci.org display JENKINS Extend+Jenkins with a Developing Plugins section .", "I was trying to get the job configuration done for Jenkins using JJB but seems I could not find text-finder support with JJB s current build .", "Enabled ci skip on Jenkins UI and submitted a commit with git-commit -m testing ci skip - I could see jenkins is still building .", "If you want to build your code with Jenkins Jenkins will always need to clone your code even if your code is on the same machine .", "I am currently using your Jenkins Job Wrecker but i get the following error : hudson.plugins.git.extensions.impl.SubmoduleOption not supported .", "Ive been using Jenkins for only a week now and i was able to successfully create a post build ftp job .", "I am looking for possible solutions for maintaining Jenkins jobs and plugins configuration in Git .", "The main benefit of JJB is templating you can have a common template and create multiple Jenkins jobs from that template .", "files present in a repository so as soon as you update you Jenkins configs .", "Jenkins parameters types http : i.stack.imgur.com 8UCMR.png .. . .. . So this work :", "I could see enable CI skip is checked in Jenkins UI page .", "Here s an example of local git-repo that you can use for Jenkins on Windows :", "https : wiki.jenkins-ci.org display JENKINS File+System+SCM", "My motivation is easy perhaps automated backup of changes made on the Jenkins instance as well as a fast recovery in case I need to set-up a new Jenkins instance revert to a previous version of the configuration .", "How to make Jenkins run tests only during every second build", "@Aditya : You can do this using wrappers : Below is the code I have used to enable ci-skip and maks-passwords in Jenkins UI .", "wrappers : - ci-skip - mask-passwords .. . .. . The above code will tick the checkbox besides enable ci-skip and mask-passwords in Jenkins UI .", "Every Jenkins plugin I m aware of has a page at https : wiki.jenkins-ci.org with a link-to its source code .", "There s the page for the Sidebar-Link Plugin https : wiki.jenkins-ci.org display JENKINS Sidebar-Link+Plugin .", "Could you please let me know how to skip jenkins build with ci skip in commit-message .", "There is a plugin for jenkins that allows you to just use a folder rather than git or svn or another scm .", "config.xml segment looks like : .. . .. . The yaml output could be : .. . .. . If you are not familiar with config.xml in jenkins you can check infra backend-merge-all-repo job https : ci.jenkins-ci.org view Infrastructure job infra backend-merge-all-repo config.xml in https : ci.jenkins-ci.org", "I have a Jenkins job which I would like to run from 01 : 00 1 AM till 23 : 00 11PM but skip midnight 00 : 00 and resume again from 01 : 00 on a daily basis .", "But when I simulate the hook manually with JENKINS URL http : 127.0.0.1 : 8081 jenkins java -jar jenkins-cli.jar -i .ssh id rsa build puppet creator -p PROJECT foo BRANCH bar .. . .. . I get the error : PROJECT is not a valid parameter .", "https : wiki.jenkins-ci.org display JENKINS Conditional+BuildStep+Plugin .. . .. . I think it can do what you re looking for .", "If I look at the directory structure in Jenkins workspace following 100 I can see that other changes that were made in 101 are not there .", "If you only installed CI Skip in Jenkins and did not do any config changes then you should be aware that you ll need to configure your project s Build Environment to enable CI Skip .", "I could see Build is triggered and failed. . As per plugin details when I use ci skip in commit-message Jenkins should not trigger a build .", "I would like to get the following to work instead : .. . .. . job-template.yml .. . .. . job-1.yml .. . .. . The latter unfortunately results in a yaml parse-error on the - project : line : .. . .. . yaml.scanner.ScannerError : mapping values are not allowed here in job-1.yml line 3 column 10 .. . .. . Is there way to get the entire template definition into the template file", "So when this file is supplied to a job it will generate other jobs .", "So you can write : .. . .. . job-template.yaml .. . .. . job1.yaml .. . .. . job2.yaml .. . .. . That will generates two jobs with the following shell commands : .. . .. . pre-build-my-other-proj-my-other-repo : .. . .. . pre-build-my-proj-my-repo : .. . .. . Assuming the files are in a directory config you can generate them all with : .. . .. . Or use the name argument to filter the jobs that will be realized :", "In the job template you want to add a disabled property which takes its value from a parameter .", "This caused jenkins to build and release gerrit ID 100 and the code previously released from gerrit ID 101 was no longer the latest release .", "Append the following lines : .. . .. . The purpose of a project is to collect related jobs together and provide values for the variables in a Job Template .", "Maybe bit too late but I will still add an answer to get the ball rolling - .. . .. . SCM : Its just a plug-in which keeps your Jenkins configuration in sync with config .", "fix broken link in readme ci skip Setting status of e2742998080844a437d49e9f7de7ad2044f38471 to FAILURE with url some url and message : Build failed Using context : jenkins x86-64 Finished : NOT BUILT", "For the last job a more specific value is passed to the mydeadproject .", "So far I have gotten this to work : .. . .. . job-template.yml .. . .. . job-1.yml .. . .. . .. . .. . This seem wrong because the template definition gets split across both files and require needless duplication of the -job-template : line in every job file .", "The reason I ask is that the yaml script that contains these JJB jobs can be used to define TEST QA and PROD .", "So I installed it along with the other required packages and when i tried to convert an existing Job xml to YAML i received the following error : .. . .. . Does it mean that it will not convert my xml to yaml because my xml contains references to sub-modules in my project", "The snippet above generates two jobs : .. . .. . build-mydeadproject disabled .. . build-myproject enabled .. . .. . You can reuse the same trick in your example template : .. . .. . You can then pass prevent run : true on a per job basis : .. . .. . That disable all jobs having foo for the value of jobNameFirstSegment ." ] }
{ "confidence": [ 136.2572479248047, 114.78269958496094, 114.4741439819336, 114.23905944824219, 111.93276977539062, 108.03500366210938, 107.79924774169922, 106.57815551757812, 104.3624496459961, 101.8015365600586, 101.62104034423828, 99.64844512939453, 93.72087097167969, 93.4911880493164, 92.38690185546875, 90.01908874511719, 75.4625473022461, 67.713623046875, 64.42207336425781, 62.64849853515625 ], "content": [ "Question : I am looking for possible solutions for maintaining Jenkins jobs and plugins configuration in Git . My motivation is easy perhaps automated backup of changes made on the Jenkins instance as well as a fast recovery in case I need to set-up a new Jenkins instance revert to a previous version of the configuration . I came across SCM Sync configuration plugin https : wiki.jenkins-ci.org display JENKINS SCM+Sync+configuration+plugin and Jenkins Job Builder http : docs.openstack.org infra jenkins-job-builder and having a hard time figuring whether these solutions are suitable for me and what are the differences between them . Any information to help me determine the differences and choose the appropriate fit for my needs .. . Answer : Maybe bit too late but I will still add an answer to get the ball rolling - .. . .. . SCM : Its just a plug-in which keeps your Jenkins configuration in sync with config . files present in a repository so as soon as you update you Jenkins configs . this plug-in can automatically check-in these changes to configured SCm . JJB : It allows you to create Jenkins jobs in YAML or JSON format and uses them to configure Jenkins . The main benefit of JJB is templating you can have a common template and create multiple Jenkins jobs from that template . In short it allows you to create Jenkins jobs programmatically . there is another tool similar to JJB : Jenkins Job DSL Plugin https : wiki.jenkins-ci.org display JENKINS Job+DSL+Plugin .. . .. . Here is a nice post explaiing and comapring JJB and DSL - .. . .. . Jenkins Job Builder and Jenkins DSL Plugin compared . Part I : Jenkins Job Builder http : www.jeeatwork.com p 182 .. . .. . Jenkins Job Builder and Jenkins DSL Plugin compared . Part II : Jenkins Job DSL Plugin http : www.jeeatwork.com p 194", "Question : null .. . Answer : Today i discovered there is something called as Jenkins Job Wrecker which can convert a Jenkins XML to a YAML file which I can use along with Jenkins Job Builder to modify my jobs and push into my Jenkins server . So I installed it along with the other required packages and when i tried to convert an existing Job xml to YAML i received the following error : .. . .. . Does it mean that it will not convert my xml to yaml because my xml contains references to sub-modules in my project Also I would like to know if there is any documentation with respect to Jenkins job builder and wrecker which will explain to a layman what it is all about . I am a beginner in Python and YAML . And i use a bash shell on a Linux Redhat machine .", "Question : jenkins-job-builder http : ci.openstack.org jenkins-job-builder is a nice tool to help me to maintain jobs in YAML files . see example in configuration http : ci.openstack.org jenkins-job-builder configuration.html chapter . Now I had lots of old jenkins jobs it will be nice to have a python script xml2yaml to convert the existing jenkins job config.xml to YAML file-format . Do you any suggestions to had a quick solution in python I don t need it to be used in jenkins-job-builder directly just can be converted it into YAML for reference . For the convert some part can be ignored like namespace . config.xml segment looks like : .. . .. . The yaml output could be : .. . .. . If you are not familiar with config.xml in jenkins you can check infra backend-merge-all-repo job https : ci.jenkins-ci.org view Infrastructure job infra backend-merge-all-repo config.xml in https : ci.jenkins-ci.org .. . Answer : I m writing a program that does this conversion from XML to YAML . It can dynamically query a Jenkins server and translate all the jobs to YAML . https : github.com ktdreyer jenkins-job-wrecker .. . .. . Right now it works for very simple jobs . I ve taken a safe pessimistic approach and the program will bail if it encounters XML that it cannot yet translate . Comment : I am currently using your Jenkins Job Wrecker but i get the following error : hudson.plugins.git.extensions.impl.SubmoduleOption not supported . Any idea why this is the case", "Question : We have got a Jenkins setup at the moment not managed with the Jenkins Job Builder where every web project has 5 very similar Jenkins jobs . This is a simplified Jenkins Job Builder yaml file which could work for our needs : .. . .. . This yaml file results in 15 Jenkins jobs - all are NOT disabled : .. . .. . foo-lorem .. . foo-ipsum .. . foo-dolor .. . foo-sit .. . foo-amet .. . bar-lorem .. . bar-ipsum .. . bar-dolor .. . bar-sit .. . bar-amet .. . baz-lorem .. . baz-ipsum .. . baz-dolor .. . baz-sit .. . baz-amet .. . .. . Is it possible with this kind of setup to disable a specific Jenkins job I could not find out how to override the disabled attribute for e.g . the Jenkins job foo-lorem . How can this be achieved Infact we would need to have the possibility to be able to override any attribute of any Jenkins job if needed . Is this doable How Comment : this could be useful for you . docs.openstack.org infra jenkins-job-builder http : docs.openstack.org infra jenkins-job-builder definition.html variable-references . passing a variable reference for that instance cane be helpful .. . Answer : In the job template you want to add a disabled property which takes its value from a parameter . Parameters default-value can be set at the defaults and project level . So in theory you could pass the disabled value at the job level : .. . .. . Note obj : prefix is to pass the boolean as is . Turns out there is an issue in JJB specific to the disabled parameter so you need to use a different variable I named it prevent run below : .. . .. . In the global default the variable prevent run is set to false and is passed to projects and job templates . For the last job a more specific value is passed to the mydeadproject . The snippet above generates two jobs : .. . .. . build-mydeadproject disabled .. . build-myproject enabled .. . .. . You can reuse the same trick in your example template : .. . .. . You can then pass prevent run : true on a per job basis : .. . .. . That disable all jobs having foo for the value of jobNameFirstSegment . I . e . it disables the jobs : .. . .. . foo-amet .. . foo-dolor .. . foo-ipsum .. . foo-lorem .. . foo-sit .. . .. . When a project is realized a cartesian products of the variables is created to generate the jobs . There is no way here to pass a parameter to a specific couple of values .", "Question : I am investigating using Jenkins Job-Builder http : ci.openstack.org jenkins-job-builder from OpenStack as our means of managing jenkins job configurations . In doing so I am trying to figure out the right best way to include a job-template from an external file using the include custom tag . In the current use-case we will basically have one template that is going to be used by a LOT of job . Each job is going to need to exist in its own file for reason that are out of scope here . So far I have gotten this to work : .. . .. . job-template.yml .. . .. . job-1.yml .. . .. . .. . .. . This seem wrong because the template definition gets split across both files and require needless duplication of the -job-template : line in every job file . I would like to get the following to work instead : .. . .. . job-template.yml .. . .. . job-1.yml .. . .. . The latter unfortunately results in a yaml parse-error on the - project : line : .. . .. . yaml.scanner.ScannerError : mapping values are not allowed here in job-1.yml line 3 column 10 .. . .. . Is there way to get the entire template definition into the template file This will become particularly annoying if ever we need to pull in multiple templates from multiple-files . .. . Answer : Jenkins-jobs takes a path argument which can be a directory holding your files job-template.yaml job-1.yaml and job-2.yaml . It will assemble them as a single YAML document so you do not need to use include . So you can write : .. . .. . job-template.yaml .. . .. . job1.yaml .. . .. . job2.yaml .. . .. . That will generates two jobs with the following shell commands : .. . .. . pre-build-my-other-proj-my-other-repo : .. . .. . pre-build-my-proj-my-repo : .. . .. . Assuming the files are in a directory config you can generate them all with : .. . .. . Or use the name argument to filter the jobs that will be realized :", "Question : jenkins-job-builder http : ci.openstack.org jenkins-job-builder is a nice tool to help me to maintain jobs in YAML files . see example in configuration http : ci.openstack.org jenkins-job-builder configuration.html chapter . Now I had lots of old jenkins jobs it will be nice to have a python script xml2yaml to convert the existing jenkins job config.xml to YAML file-format . Do you any suggestions to had a quick solution in python I don t need it to be used in jenkins-job-builder directly just can be converted it into YAML for reference . For the convert some part can be ignored like namespace . config.xml segment looks like : .. . .. . The yaml output could be : .. . .. . If you are not familiar with config.xml in jenkins you can check infra backend-merge-all-repo job https : ci.jenkins-ci.org view Infrastructure job infra backend-merge-all-repo config.xml in https : ci.jenkins-ci.org .. . Answer : It s hard to tell from your question exactly what you re looking for here but assuming you re looking for the basic structure : .. . .. . Python has good support on most platforms for XML Parsing . Chances are you ll want to use something simple and easy to use like minidom . See the XML Processing Modules in the python docs for your version of python . Once you ve opened the file looking for project and then parsing down from there and using a simple mapping should work pretty well given the simplicity of the yaml format . This snippet will print just a few lines of the eventual configuration file but it puts you in the right direction for a simple translator . Based on what I ve seen there s not much room for an automatic translation scheme due to naming differences . You could streamline the code as you iterate for more options and to be table driven but that s just a matter of programming this will at least get you started with the DOM parsers in python . Comment : this is very useful suggestion almost fits for my need just try to reuse the xml2json github.com hay xml2json https : github.com hay xml2json code to load into json and manipulate the json internal format then dump into yaml . Comment : I m not sure what you would get from xml2json that isn t in this example . Since the yaml and XML formats do not use the same keywords in many cases you can t just walk the tree and do a format conversion hence my suggestion for how you could implement such a conversion with minimal repetition . Comment : good enough for this case .", "Question : null .. . Answer : Using jenkins-job-builder http : docs.openstack.org infra jenkins-job-builder index.html I want to push my job s artifacts to S3 . I have Jenkins set up with all the appropriate plugins S3 set up and I can configure this through the Jenkins GUI . In particular I need to declare an S3 profile under Manage Jenkins Configure System Amazon S3 profiles . If I do this through the Jenkins GUI it all works . Question is how can I declare the S3 profile through jenkins-job-builder Seems like there s only some minimal global config http : docs.openstack.org infra jenkins-job-builder execution.html jenkins-section you can configure . My Jenkins instance is a Docker container so it will be constantly torn down and rebuilt I don t want to go configure the Jenkins GUI every time . The XML Jenkins creates var lib jenkins hudson.plugins.s3.S3BucketPublisher.xml looks like the following : .. . .. . Should I just drop this XML into place on the file system Thanks .", "Question : jenkins-job-builder http : ci.openstack.org jenkins-job-builder is a nice tool to help me to maintain jobs in YAML files . see example in configuration http : ci.openstack.org jenkins-job-builder configuration.html chapter . Now I had lots of old jenkins jobs it will be nice to have a python script xml2yaml to convert the existing jenkins job config.xml to YAML file-format . Do you any suggestions to had a quick solution in python I don t need it to be used in jenkins-job-builder directly just can be converted it into YAML for reference . For the convert some part can be ignored like namespace . config.xml segment looks like : .. . .. . The yaml output could be : .. . .. . If you are not familiar with config.xml in jenkins you can check infra backend-merge-all-repo job https : ci.jenkins-ci.org view Infrastructure job infra backend-merge-all-repo config.xml in https : ci.jenkins-ci.org .. . Answer : I suggest querying and accessing the xml questions tagged xml with xpath questions tagged xpath expressions using xmlstarlet questions tagged xmlstarlet on the command-line and in shell scripts . No trouble with low-level programmatical access to XML . XMLStarlet is an XPath swiss-army knife on the command-line . xmlstarlet el shows you the element structure of the entire XML as XPath expressions . xmlstarlet sel -t -c XPath-expression will extract exactly what you want . Maybe you want to spend an hour or two on freshing up your XPath know-how in advance . You will shed a couple of tears once you recognize how much time you spent with programming XML access before you used XMLStarlet .", "Question : Currently in Jenkins Job Builder I can specify downstream jobs through the publishers option like this : .. . .. . When the foo-one job is created the downstream connection exists within Jenkins but the Build other projects entry is Build other projects Manual Step . How do I indicate through Jenkins Job Builder that the downstream connection to job foo-two needs to be automated .. . Answer : Could not figure out how to resolve the issue using Jenkins Job Builder publisher pipeline tag . So ended up : .. . .. . 1 . Configuring the foo-one job within Jenkins to kick off foo-two when foo-one completed successfully .. . 2 . Retrieve the foo-one job s config.xml file through : curl -O http : localhost : 8080 job foo-one config.xml .. . 3 . Extracted the relevant XML from the config.xml file that controlled the downstream kickoff logic . 4 . Using the Jenkins Job Builder xml and publisher tags : .. . .. . - job-template : .. . name : foo-one .. . project-type : freestyle .. . disabled : false .. . .. . .. . publishers : .. . - raw : .. . xml : .. . hudson.tasks.BuildTrigger .. . childProjects foo-two childProjects .. . threshold .. . name SUCCESS name .. . ordinal 0 ordinal .. . completeBuild true completeBuild .. . threshold .. . hudson.tasks.BuildTrigger", "Question : I need to tick checkboxes in Jenkins using Jenkins Job builder yaml projects . Attached is the snapshot from Jenkins .. . .. . enter image description here http : i.stack.imgur.com B4ynG.png .. . .. . I need to put a tick in the checkbox and also select project Rule option in the radio-button . How to do it in yaml .. . Answer : @Aditya : You can do this using wrappers : Below is the code I have used to enable ci-skip and maks-passwords in Jenkins UI . wrappers : - ci-skip - mask-passwords .. . .. . The above code will tick the checkbox besides enable ci-skip and mask-passwords in Jenkins UI .", "Question : I am using jenkins-job-builder http : ci.openstack.org jenkins-job-builder to create my pipeline project . But I have a problem with the variables values when I am trying to reuse or propagating . It is my project configuration : .. . .. . And here is my job-template http : ci.openstack.org jenkins-job-builder configuration.html job-template : .. . .. . Ok now when I run this configuration in jenkins and I check the job s construction it says : .. . .. . Why the line : pipeline-next : name -nfr-smoke-tests doesn t propagates the value of variable name and just used it as a literal string I am missing something . .. . Answer : You are missing name under project section in your job-template . Append the following lines : .. . .. . The purpose of a project is to collect related jobs together and provide values for the variables in a Job Template .", "Question : I am using jenkins-job-builder http : ci.openstack.org jenkins-job-builder to create my pipeline project . But I have a problem with the variables values when I am trying to reuse or propagating . It is my project configuration : .. . .. . And here is my job-template http : ci.openstack.org jenkins-job-builder configuration.html job-template : .. . .. . Ok now when I run this configuration in jenkins and I check the job s construction it says : .. . .. . Why the line : pipeline-next : name -nfr-smoke-tests doesn t propagates the value of variable name and just used it as a literal string I am missing something . .. . Answer : I found out that Jenkins Job Builder version 0.9.0-0.2 does not propagate the value but for me version 1.3.0+2015.12.15.git136.959eb4b909-1 did . Perhaps updating your version of Jenkins Job Builder might help", "Question : I am trying to create a job that will run .groovy files to generate other jobs on my jenkins server . As of Now I know that shell maps to execute shell command but how do I figure out what s the groovy equivalent for plugin specific block Like I have side bar plugin installed and I don t know th groovy equivalent of the same . How do I get that Is there some documentation in each plugin that specifies its groovy equivalent Is there centralized documentation for this .. . Answer : Every Jenkins plugin I m aware of has a page at https : wiki.jenkins-ci.org with a link-to its source code . There s the page for the Sidebar-Link Plugin https : wiki.jenkins-ci.org display JENKINS Sidebar-Link+Plugin . There s also the Jobcopy Builder plugin https : wiki.jenkins-ci.org display JENKINS Jobcopy+Builder+plugin : .. . .. . This plugin adds Copy Job as a build step . You can select how to retrieve choices including the way to share choices among all jobs . .. . .. . And there s also a page how to Extend Jenkins https : wiki.jenkins-ci.org display JENKINS Extend+Jenkins with a Developing Plugins section . Comment : I am sorry I don t understand . How am I suppose to get the groovy equivalent of the plugin here Please help understand Comment : @RonakAgrawal What do you exactly mean by the groovy equivalent of the plugin Comment : I am using .groovy file to encode the job detail . So when this file is supplied to a job it will generate other jobs . I know a couple of groovy commands that map to build events but I am not sure how do I add others . Comment : By groovy equivalent I mean the code block that when added to groovy file will add that event action to the job generated . Like shell echo hi will add an action- execute a shell command - echo hi to the generated job . Comment : @RonakAgrawal Have you read the Developing Plugins section I linked to Have you looked into the source codes of plugins that you know are doing what you want to achieve", "Question : null .. . Answer : Within JJB you can define project-level variables like this : .. . .. . My question must I hardcode the value of git url at the default level or can I use some JJB mechanism to bring that in at job load execution The reason I ask is that the yaml script that contains these JJB jobs can be used to define TEST QA and PROD . It would be nice to just point at a properties file that contains the value for git url and any other global variable values . I took a look at : http : docs.openstack.org infra jenkins-job-builder definition.html highlight default defaults and I did not see any mechanism .", "Question : I have setup Gerrit and Jenkins . I have configured Jenkins gerrit-trigger https : wiki.jenkins-ci.org display JENKINS Gerrit+Trigger plugin so Gerrit changes are validated by Jenkins . Now want to automatically create Jenkins jobs using Jenkins jobgenerator https : wiki.jenkins-ci.org display JENKINS Job+Generator+Plugin plugin when a new repository is created in Gerrit . Therefore I want to create a Gerrit hook file . hooks project-created . I have also created a Jenkins job to generate Jenkins validation job . But when I simulate the hook manually with JENKINS URL http : 127.0.0.1 : 8081 jenkins java -jar jenkins-cli.jar -i .ssh id rsa build puppet creator -p PROJECT foo BRANCH bar .. . .. . I get the error : PROJECT is not a valid parameter . Did you mean null As mentioned above the parameter are declared in my Jenkins Job what s wrong I have tried both String and Text parameter types . Jenkins Job Builder configuration http : i.stack.imgur.com Pv3X9.png .. . Answer : Well I should have RTFM properly : .. . .. . Jenkins jobgenerator https : wiki.jenkins-ci.org display JENKINS Job+Generator+Plugin plugin has it s own kind of parameter : Generator Parameter and Generator Choice . One must use those instead of usual string Choice Parameter : .. . .. . Jenkins parameters types http : i.stack.imgur.com 8UCMR.png .. . .. . So this work : Jenkins job generator for Gerrit http : i.stack.imgur.com 63OiR.png", "Question : null .. . Answer : I am trying to build my config.xml files for pushing into Jenkins using the Jenkins Job Builder and I face an error . Shown below is the project.yml file : .. . .. . I get an error as TypeError : cannot serialize repo : None type dict . Why is repo None I have declared it above .", "Question : I have a Jenkins job which I would like to run from 01 : 00 1 AM till 23 : 00 11PM but skip midnight 00 : 00 and resume again from 01 : 00 on a daily basis . The thread How to schedule Jenkins job every Hour for the next 12 hours http : stackoverflow.com questions 27837243 how-to-schedule-jenkins-job-every-hour-for-the-next-12-hours rq 1 had this example H 9-21 which i have changed to H 1-23 to cater for my example . Am I on the right track perhaps with using H 1-23 Comment : yes your cron expression is right . Comment : Worked indeed thank you - .. . Answer : Yes that should work . There is a cron tester you can look that will show you the cron version of that and for Jenkins you just replace the 0 with the H . .. . .. . http : cron.schlitt.info index.php cron 0+1-23+ + + + iterations 50 test Test http : cron.schlitt.info index.php cron 0 201-23 20 20 20 20 iterations 50 test Test Comment : Thanks for this @hobo loafers it worked perfectly fine .", "Question : Enabled ci skip on Jenkins UI and submitted a commit with git-commit -m testing ci skip - I could see jenkins is still building . Could you please let me know how to skip jenkins build with ci skip in commit-message . Thank you . enter image description here http : i.stack.imgur.com LwONc.png .. . Answer : If you only installed CI Skip in Jenkins and did not do any config changes then you should be aware that you ll need to configure your project s Build Environment to enable CI Skip . Comment : I have written wrapper for this in my JJB script . I could see enable CI skip is checked in Jenkins UI page . wrappers : - timestamps - ssh-agent-credentials : users : - ssh-credentials - ci-skip - mask-passwords Comment : CI SKIP in jenkins is not working. . I am still searching for an answer to this question. . I am waiting for Jenkins team to respond on Jenkins JIRA ticket but haven t heard any thing back from them from past 1 month. . Comment : @RBT : what version-control system are you using I had to patch the code to make it work with Mercurial but asides from that everything now works as expected . Comment : I am using github as Version control system. . I could see Build is triggered and failed. . As per plugin details when I use ci skip in commit-message Jenkins should not trigger a build . IT should work like in Travis . Below is the log details . fix broken link in readme ci skip Setting status of e2742998080844a437d49e9f7de7ad2044f38471 to FAILURE with url some url and message : Build failed Using context : jenkins x86-64 Finished : NOT BUILT", "Question : null .. . Answer : I can configure Git-Repo with Jenkins for latest code . I want to run my maven project with Jenkins job with real system . I have tried with xvfb and headless browser.But it is not giving any visual and also not run java script action . How can I do this things Please answer exact step . Used Technology : .. . .. . Pom.xml Maven compiler Jenikins GitHub . A dedicated system in network for Javascript .. . .. . Not used : .. . .. . TestNg.xml for run script xvfb or any headless-browser . Comment : Sharing your research helps everyone . Tell us what you ve tried and why it didn t meet your needs . This demonstrates that you ve taken the time to try to help yourself it saves us from reiterating obvious answers and most of all it helps you get a more specific and relevant answer Also see how to ask http : stackoverflow.com questions how-to-ask", "Question : null .. . Answer : I was trying to get the job configuration done for Jenkins using JJB but seems I could not find text-finder support with JJB s current build . I had workaround to manipulate the config.xml but that too is not reflecting and might need a restart . There is a few more plugin I came across and had same issues . Conditional-Step Multiple - Text Finder .. . Editable Email Notification .. . .. . Any one of you faced similar issues or got any working solution" ] }
[ "yes-answer-long", "yes-answer-short" ]
json
UNK_RELATION
debian@open-source@82
debian -- debian is a universal operating-system composed of over 29000 free and @placeholder software packages .
{ "confidence": [ 37.14055633544922, 37.14055633544922, 37.076194763183594, 36.75030517578125, 35.882564544677734, 35.17084884643555, 34.86603927612305, 34.86603927612305, 34.86324691772461, 34.06643295288086, 34.06643295288086, 34.06643295288086, 34.06643295288086, 33.74186706542969, 33.675533294677734, 33.675533294677734, 33.41289138793945, 33.260372161865234, 33.10808181762695, 33.04962921142578, 33.04962921142578, 32.725341796875, 32.64417266845703, 32.47243881225586, 32.122623443603516, 31.992034912109375, 31.966167449951172, 31.79322624206543, 31.79322624206543, 31.79322624206543, 31.79322624206543, 31.78508186340332, 31.78508186340332, 31.78508186340332, 31.78508186340332, 31.438867568969727, 31.371265411376953, 31.303550720214844, 31.10610008239746, 31.10610008239746, 31.10610008239746, 31.10610008239746, 31.09555435180664, 30.9854736328125, 30.9854736328125, 30.9854736328125, 30.967384338378906, 30.953126907348633, 30.639259338378906, 30.639259338378906, 30.503116607666016, 30.362966537475586, 30.362966537475586, 30.176315307617188, 30.176315307617188, 30.176315307617188, 30.176315307617188, 30.176315307617188, 30.176315307617188, 30.176315307617188, 30.16596031188965, 30.16596031188965, 30.16596031188965, 30.16596031188965, 30.16596031188965, 30.16596031188965, 30.16596031188965, 30.16596031188965, 30.16596031188965, 30.16596031188965, 30.16596031188965, 30.16596031188965, 30.16596031188965, 30.16596031188965, 30.16596031188965, 30.16596031188965, 30.16596031188965, 30.16596031188965, 30.16596031188965, 30.1524658203125, 30.1524658203125, 30.041976928710938, 30.027124404907227, 30.027124404907227, 30.027124404907227, 30.017192840576172, 29.99938201904297, 29.955291748046875, 29.937664031982422, 29.92839241027832, 29.869239807128906, 29.63815689086914, 29.61054039001465, 29.376708984375, 29.376708984375, 29.366352081298828, 29.366352081298828, 29.366352081298828, 29.366352081298828, 29.366352081298828 ], "content": [ "Debian uses apt to install packages .", "In general and when building Debian packages .", "There are packages in Debian Ubuntu and Fedora .", "In your .tmux.conf on the Debian system :", "I use Debhelper to create Debian packages .", "I m running Debian 8 system .", "The purpose of the pbuilder --create invocation is not to build Debian packages .", "in debian it is forbidden for two packages to install the same file .", "Since it makes no difference then if you like let us suppose a Debian distro exists consisting exclusively of that subset of Debian packages specifically intended for software development .", "I will do a backup and try the Debian packages .", "I couldn t find minwg32 in debian packages.. .", "Is there a list of debian packages that are needed to compile the gosu gem", ".. . .. . In 2016 Debian has tens of thousands of packages .", "I tried to install MySQL workbench in Debian Operating System by using workbench for linux distribution but its not working .", "I build a simple software in my Debian VM .", "I m packaging a software neko http : nekovm.org for Debian .", "I m using PHP on Debian system .", "My debian in running on a VM over windows .", "slapt-get won t install Debian packages in Slackware .", "I have Debian GNU Linux system .", "I m running a Debian Etch system with eclipse .", "I m trying to get Chirp to run under Maemo5 a debian-based mobile operating-system .", "software-properties-common is another package related to Debian and apt .", "When using debian you really need to keep with the debian structures or later system updates will leave you with a broken system .", "To deploy files and directories I use the debian install and debian dirs files .", "I have build a Debian package out of a Python project which depends on a bunch of Debian packages to work .", "However old packages can be found in the archives : deb http : archive.debian.org debian lenny contrib main non-free", "This is debian 7.9 .", "This not work in debian .", "debian rules :", "It is specific to debian .", "I m using Debian Wheezy 7 and installing packages with the distro package manager .", "I am using debuild to build my debian packages .", "In Debian the names for those packages are libglib-2.0 and libglib-2.0-dev .", "Asked another way how do I write relocatable Debian packages", "It is a piece of software unrelated to Debian which you will find ONLY on Github .", "GNU Linux Debian 6", "Feel free to post on the r-sig-debian list or even on r-help .", "EDIT : Debian OS : debian-8.3.0-i386 Rsyslog : rsyslogd 8.4.2", "and it the source is listed there as deb http.debian.net debian http : http.debian.net debian sqeeze main .", "Here is my debian control file : .. . .. . Here is my debian rules file :", "If you know how to use the Debian source do a local Debian build .", "There are only Fedora Ubuntu Versions and though Ubuntu is based on Debian as far as I know its not that much of a great idea to install Ubuntu Packages on Debian .", "in contrast Debian testing kind of guarantees that only packages with resolvable dependencies are available .", "I am running php on Debian 6 with mod-fcgid with DotDeb packages .", "Old-style Debian packages were based on the existence of a pristine upstram tarball .", "I have to install pcsc-lite 1.8.13 on my debian-sid operating-system .", "@Prakash each debian repo may host a different version see here https : wiki.debian.org DebianReleases for debian versioning .", "Following the Debian documentation for routing the software refuses to route from wlan0 to a bridge .", "I am building a Debian .deb package for our proprietary software .", "If you are entirely new to building Debian packages I suggest that you look at the Debian New Maintainers Guide http : www.debian.org doc maint-guide and use the Debian Developer s Reference http : www.debian.org doc developers-reference as reference .", "You should not add quilt patches over debian files .", "You should add quilt patches over debian files .", "The system I m working on is Debian GNU Linux 5.0 debarm embedded .", "It looks like the Debian build-system is getting confused by this unexpected circumstance .", "The repository you probably talk about is the Debian package management system .", "It s weird because documentation tells about any Debian-based system", "I m currently on a Debian Wheezy 7.4.0 which uses that system .", "I m compiling some code which uses libcurl on a Debian Linux system .", "I am trying to create a service on my Debian Wheezy system .", "Such as debian-deluged ftp .", "Debian 8 virtual-machine .", "I m using Debian 8.2 .", "This is totally unrelated to Debian .", "YouCompleteMe is NOT a Debian package .", "Also works for Debian .", "linux debian command-line :", "Debian 8.3 with Lxqt .", "The compilation and debian construction is successfull .", "Is it possible to install pygsl in Debian", "Tested on Debian squeeze .", "the OS is debian 8.4.0 .", "Or of course try the Debian backports :", "My server is Debian .", "Which version of Debian", "version of eclipse and Debian please", "Using Debian Stretch with GNOME .", "That s how Debian works .", "My OS is Debian Jessie .", "Ipk s and debian files are really similar .", "the contents of debian or a link-to the packaging repo", "Topic .. . .. . I have Debian 8 now .", "I assumed that something this obvious occurs to people that are building debian packages .", "How do others test integration of Python modules with other Debian packages", "How do others test integration of Python modules with other Debian packages", "You can search the contents of Debian packages here https : www.debian.org distrib packages search contents", "This would give me full control over the operating-system as a whole but might be less efficient and confusingly complex for the non-initiated.. . .. . .. . An actual question : Could I piggyback on the Debian build-system pbuilder https : wiki.debian.org PbuilderTricks", "So I need to scp debian-install.sig to my online system to generate debian-install.zip and then upload this zip file back to the offline system to finish the installation", "@Satish RedHat is not Debian in fact they handle runlevels differently because IIRC RH is based on System V runlevels while Debian is based on BSD runlevels .", "The MIRROR refers to the APT software repository usually a mirror of Debian maintained one to save bandwidth and downloading time for live-build to retrieve software components to make the live system from .", "a testing or an instable Debian distribution or even some non-Debian but Debian compatible thing like Mint or Ubuntu .", "Debian 5 was discontinued you need to use the archive repo server : .. . .. . deb http : archive.debian.org debian lenny main non-free contrib .. . .. . deb-src http : archive.debian.org debian lenny main non-free contrib .. . .. . deb http : archive.debian.org debian-security lenny updates main contrib non-free .. . .. . deb-src http : archive.debian.org debian-security lenny updates main contrib non-free .. . .. . deb http : archive.debian.org debian-volatile lenny volatile main contrib non-free .. . .. . deb-src http : archive.debian.org debian-volatile lenny volatile main contrib non-free .. . .. . deb http : archive.debian.org debian-backports lenny-backports main contrib non-free", ".. . .. . The old archive : http : archive.debian.org debian-archive debian pool .. . .. . horde 1 http : archive.debian.org debian-archive debian pool main h horde .. . .. . horde2 http : archive.debian.org debian-archive debian pool main h horde2 .. . .. . horde3 http : archive.debian.org debian-archive debian pool main h horde3 .. . .. . Installing a downloaded package : gdebi package.deb .. . .. .", "I have 3 ACR122U devices plugged into a Linux debian system .", "I have installed emacs on a clean reinstalled debian system .", "this is expecially true for Debian stable .", "I m using debian etch .", "I m using Debian 6 .", "Has to be in Debian .. . 2 .", "But expat-devel is not in Debian repository ." ] }
{ "confidence": [ 44.59574890136719, 43.963706970214844, 43.28749084472656, 41.0088996887207, 40.598934173583984, 39.205326080322266, 39.171016693115234, 39.144012451171875, 38.55268478393555, 38.479225158691406, 38.231170654296875, 37.31259536743164, 36.98359298706055, 36.98359298706055, 36.773624420166016, 36.749855041503906, 36.42350769042969, 36.36744689941406, 36.25197982788086, 36.135990142822266 ], "content": [ "Question : I know that apt-get is meant to be a packaging manager for Debian . But I d like to learn if this software can be also ported to different operating systems especially to Slackware . I am the author of Slax a Slackware-based operating-system so I know lots of the internals of a working OS library dependencies and so on . From my point of view installing a debian package to Slackware or other distribution is fairly possible if both the distros share similar libraries which most Linuxes do nowadays . Slackware despite it s focus on stability is usually using recent libraries as like Debian . As far as I understand apt it s just an application which tracks dependencies and has a list of mirrors from which to download packages . Unpacking the deb packages is a matter of .. . .. . Most init scripts will be the same if the Sys-V init style is supported . Some of the Debian packages may not work out of the box especially those which are deeply system-related like udev for example but majority of the APPLICATIONS should install and work OK on Slackware in my opinion . I tried Google s official Chrome Browser package for Debian and it works just fine on Slackware . Are there any drawbacks in porting apt-get to Slackware or other Linux Did anybody attempt to port it already Thank you .. . Answer : The package slapt-get is the Slackware implementations of apt-get . slapt-get install whatever-package .. . .. . Any way you should be able to compile it on any OS . Of course you might have to do some small changes to the source if the repos structure and files to download are very different . Comment : slapt-get won t install Debian packages in Slackware . It only serves for the purpose of installing official Slackware packages this won t help me . I wish to use the huge Debian repository of packages not just the official Slackware ones . Comment : Sorry I did not understand . Since both distros got apart things should have changed a lot internally . So you have high or very high chances that your packages dependencies installations are going to break other things . Is the same with Ubuntu and debian . You could compile apt and use it but as a matter of fact is not advisable to do it . Maybe you could also try to configure slapt-get to go to a Debian . I have done something like that with Ubuntu and I have managed to break a few systems like that in the past but in this last one I am just speculating . Any way is not advisable .", "Question : I tried to install MySQL workbench in Debian Operating System by using workbench for linux distribution but its not working . Comment : What is your error message What is not working What have you tried Please provide more information .. . Answer : A common method is to use the operating-system s package system . For Debian MySQL recommends installing the official APT repository http : dev.mysql.com downloads repo apt and then use apt-get as you would normally . The official repositories contain most MySQL products and typically they are newer versions than the versions provided by vendors such as Debian Ubuntu Fedora CentOS Ubuntu and so on . So for Debian download the appropriate APT file and then execute something like the following The mysql-apt-config 0.3.5-1debian8 all.deb file name that you download might be different so adjust that accordingly : .. . .. . cd Downloads sudo dpkg -i mysql-apt-config 0.3.5-1debian8 all.deb sudo apt-get update sudo apt-get install mysql-workbench-community .. . .. . You might notice that both mysql-workbench and mysql-workbench-community packages will be available via apt-get but mysql-workbench-community is the package you want . Use apt-cache show insert package name here on both packages to see the difference . Installing the package file mysql-apt-config 0.3.5-1debian8 all.deb above is a one time deal so feel free to skip this step when updating Workbench or installing other MySQL products .", "Question : null .. . Answer : Note : this Q is from curiosity not any practical need or intention . Debian is used as an example but the Q applies to Red Hat or any distro or OS with a packaging system that maps out package conflicts . .. . .. . In 2016 Debian has tens of thousands of packages . dglob from the debian-goodies package is handy for getting a quick count : .. . .. . Some packages conflict so it s impossible to install all available packages at once . So what s the maximum possible number of installable packages for a given system Presumably a brute-force trial and error method would be far too time consuming i.e . make a gazillion lists of every possible combination of package names and run apt-get install on each list then sort for the longest conflict free list but maybe there s a more abstract yet feasible method . Various related questions follow from that such as.. . given a package foo how to find the maximum number of installable packages that don t conflict with foo For all possible foo packages which has the smallest such maximum making it the most quarrelsome package Answers for Red Hat etc . or even other OSes would be fine too . Comment : Questions about general software are off-topic since every package isn t focused on tools for software development . Your question might be a better fit for the Unix and Linux http : unix.stackexchange.com stackexchange site . However how many mp3 players do you really need to install Comment : Oddly enough for this question the contents of the packages are wholly irrelevant . Since it makes no difference then if you like let us suppose a Debian distro exists consisting exclusively of that subset of Debian packages specifically intended for software development . The question of how to feasibly find a maximum number of installable packages would be unchanged . Also see the first line of the OP which begins with Note : .. . where your question about mp3 players was anticipated and in part answered . Comment : The question of how to feasibly find a maximum number of installable packages would be unchanged And still entirely general use . Comment : Think of it as more of a graph-theory and logical problem which maps to a given package dataset and whether or not the problem can be solved with the programming tools at hand . It s not a strictly Debian puzzle it could be asked of Red Hat .rpm files or any distro s packaging system or on any OS with a conflicting package tree and any platform whatsoever . Solve one in the abstract solve them all . Perhaps this question needs clarifying with regards to that.. .", "Question : I m new to Linux Debian world . Irssi requires GLib so I installed 2.6.6 version . When trying . configure Irssi it gives : .. . .. . Can someone enlighten what s the deal Comment : Did you install glib version 2.6.6 from a source tarball .. . Answer : Packages for libraries are split into at least two packages--one for the shared library itself which is what you need in order to run software which uses the library and another for the extra stuff necessary to compile software which depends on that library . In Debian the names for those packages are libglib-2.0 and libglib-2.0-dev . You had version 2.32.2 of libglib-2.0 installed but in order to compile software like irssi you need libglib-2.0-dev . The right thing to do would be to install that package : .. . .. . Unfortunately installing an ancient version of glib like you did 2.6.6 was released on 2005-08-01 may have broken your system pretty badly since it is likely other software depends on a much newer version of glib . If you didn t pass any arguments to . configure it probably installed into usr local which would be good because it may not have overwritten anything you needed in usr which is where the packaged version gets installed . So you may be able to just go into the directory you compiled 2.6.6 in and run : .. . .. . You ll probably also want reinstall the package from Debian too : .. . .. . I don t know what you re trying to do with irssi but instead of installing it from the tarball you may want to just use the Debian package : .. . .. . Unless you re actually modifying the code you almost never want to install from tarballs or git for that matter . I suggest you find whatever graphical package manager you have installed--what that package is depends on the version of Debian as well as which desktop environment you chose but likely choices are GNOME Software Center or Synaptic . Comment : Very great and detailed answer Thank You for your time . I managed to install it .", "Question : I m getting started preparing an installation script for a software package onto an Ubuntu server . I would like to write a script as a .deb package that is aware of dependencies that must be installed beforehand a database web server etc . . Can you recommend any tutorials resources to help a newbie developer get started writing deb packages Update : Canonical has a thorough Packaging Guide https : wiki.ubuntu.com PackagingGuide which explains the process very well . .. . Answer : If you are entirely new to building Debian packages I suggest that you look at the Debian New Maintainers Guide http : www.debian.org doc maint-guide and use the Debian Developer s Reference http : www.debian.org doc developers-reference as reference . As a starting point dh make from the dh-make package should give you a good template to work with . Comment : Thank you . This is exactly what I was looking for .", "Question : I m getting started preparing an installation script for a software package onto an Ubuntu server . I would like to write a script as a .deb package that is aware of dependencies that must be installed beforehand a database web server etc . . Can you recommend any tutorials resources to help a newbie developer get started writing deb packages Update : Canonical has a thorough Packaging Guide https : wiki.ubuntu.com PackagingGuide which explains the process very well . .. . Answer : Earlier question at stackoverflow : .. . How to build a Debian Ubuntu package from source http : stackoverflow.com questions 130894 how-to-build-a-debian-ubuntu-package-from-source .. . .. . The HOWTO http : tldp.org HOWTO html 5Fsingle Debian-Binary-Package-Building-HOWTO .. . another article http : users.telenet.be mydotcom howto linux package.htm . Creating packages for personal use https : help.ubuntu.com community PythonRecipes DebianPackage not for repositories .. . UbuntuForum discussion on creating static packages http : swiss.ubuntuforums.org showthread.php p 7609692", "Question : I need to install Debian Lenny i386 as a VM in VMWare . The problem is that when searching for Archive Mirrors I always get the error message .. . .. . Bad archive mirror .. . .. . The specified Debian archive mirror is either not available or does not have a valid Release file on it .. . .. . I tried like 20 different mirrors all with the same result . A few steps earlier in the installation progress the network is set up and I do net get any error messages . Also when I finish the installation without an archive mirror I can successfully ping stuff . So the network seems to be fine . I also tried to set http : httpredir.debian.org in the sources.list so if I understood correctly debian should automatically choose a mirror . But I still can t do stuff like apt-get update . Is it possible that Lenny is so old it s simply not supported Or is there some trick to get it running as VM Comment : This is a question for super-user instead of stackoverflow . However old packages can be found in the archives : deb http : archive.debian.org debian lenny contrib main non-free .. . Answer : Debian 5 was discontinued you need to use the archive repo server : .. . .. . deb http : archive.debian.org debian lenny main non-free contrib .. . .. . deb-src http : archive.debian.org debian lenny main non-free contrib .. . .. . deb http : archive.debian.org debian-security lenny updates main contrib non-free .. . .. . deb-src http : archive.debian.org debian-security lenny updates main contrib non-free .. . .. . deb http : archive.debian.org debian-volatile lenny volatile main contrib non-free .. . .. . deb-src http : archive.debian.org debian-volatile lenny volatile main contrib non-free .. . .. . deb http : archive.debian.org debian-backports lenny-backports main contrib non-free Comment : Thank you very much for the answer despite that not being the best place to ask the question . It worked to use those", "Question : I downloaded the building scripts and some needed files to build debian cd image from the following link .. . .. . Debian CD https : code.launchpad.net ubuntu-cdimage debian-cd ubuntu .. . .. . In the README it mentions I should edit the PATHs for the mirror . At CONF.sh .. . .. . I am not really sure what does the mirror refer to and how to set the path correctly Any advice will be appreciated . .. . Answer : The MIRROR refers to the APT software repository usually a mirror of Debian maintained one to save bandwidth and downloading time for live-build to retrieve software components to make the live system from . It s usually in the following form take ubuntu as an example but the url is slightly different : .. . .. . http : tw.archive.ubuntu.com ubuntu .. . .. . So in my case just modify the CONF.sh s .. . .. . export MIRROR MIRROR : - CDIMAGE ROOT ftp .. . .. . to .. . .. . export MIRROR http : tw.archive.ubuntu.com ubuntu .. . .. . You can find out the urls required by checking out the software mirror section on the Debian s site .", "Question : is there a proper way to use the Synology Cloud Station Client on Debian There are only Fedora Ubuntu Versions and though Ubuntu is based on Debian as far as I know its not that much of a great idea to install Ubuntu Packages on Debian . I really want to change to Debian but I want to continue using my Cloud as well : .. . .. . Would be awesome if someone knows a solution Thanks Tonio .. . Answer : I used the Ubuntu package for over 3 months now and there were no complications so I guess its no problem", "Question : I m creating a Debian package using DebHelper under the latest stable version of Debian . The debian control file comprises these lines : .. . .. . The dependencies are thus automatically set in the created package . However the version required of libstdc++ is too strict . The package requires libstdc++6 4.9 and I want it to be set as libstdc++6 4.8 . For this purpose and at the reading of this page http : manpages.ubuntu.com manpages hardy man1 dh makeshlibs.1.html and this page http : manpages.ubuntu.com manpages precise man1 dh.1.html I edited the debian rules file which now looks like : .. . .. . The last two lines however did not make the job . Has anyone already did this kind of customization on a Debian package Thanks Comment : I ve read the documentation and your proposed solution seems valid . When you inspect the resulting DEBIAN control file does it contain any particular version You said you re building the packge for the latest Debian stable I assume jessie which packages libstdc++6 4.9.2 . Is it necessary under these conditions to relax the version requirement In other words wouldn t package targeted for different distribution work better Comment : The resulting DEBIAN control is what I check after the package is done . I have Jessie which packages lidstdc++4.9.2 as you said . I don t know if it s a good idea but other people said that the software can be built with the version 4.8 so I could relax the version in the package . The package would be thus compatible with other debian-based distributions . .. . Answer : In general debhelper does a very good job at detecting dependencies . If it says that your packages requires libstdc++6 4.9 than your package most likely does require this specific version and will fail with e.g . libstdc++6-4.8 . If you don t believe me try it out force-install your package on a system that has only libstdc++6-4.8 installed and see whether everything works .. . .. . If some people claim that it can be build with libstd++6-4.8 or rather gcc-4.8 then I see to possibilities : .. . .. . either those people are mistaken .. . OR the binary in your package will be slightly different depending on whether it was built against libstdc++6-4.8 or 4.9 .. . .. . Most likely the second point is the case . This can have numerous reasons e.g . : - your package automatically enables features if it detects libstdc++6-4.9 - some implementation detail in libstdc++6 has changed which makes the resulting binaries incompatible or at least : not backwards compatible .. . .. . If you want a package that can be used with libstdc++6 4.8 than you should use libstdc++6-4.8 or most likely : the entire g++4.8 toolchain for building the package .", "Question : For eg : is there an alpine package corresponding to apt-transport-https or software-properties-common .. . Answer : apt-transport-https as the name suggests is some extension to apt Debian s package tool . Alpine is not any mere Debian derivate it doesn t use apt so it doesn t make any sense to install apt-transport-https on Alpine . software-properties-common is another package related to Debian and apt . Why do you think that you need these packages on Alpine Comment : I have an ansible script that installs these dependencies or packages on ubuntu to setup an environment and I need to write tasks which will setup the same environment on alpine os Comment : Alpine is not Ubuntu nor Debian it s very different linux distribution . So you can t setup exactly the same environment . However I m quite sure that this exactly the same debian environment is not what you actually need . Comment : Another example is say l have installed libmozjs185-1.0 on ubuntu and want to install a similar package on alpine. . how do I do that", "Question : I need install old version Horde webmail on Debian Wheezy apt-get install is no more avaible and be pear is installed Horde 5 . It s a fresh install Debian 7 please only old versions I don t want install Horde 5 . Where are horde3 packages or how can I do to install it .. . Answer : Where are horde3 packages or how can I do to install it .. . .. . The old archive : http : archive.debian.org debian-archive debian pool .. . .. . horde 1 http : archive.debian.org debian-archive debian pool main h horde .. . .. . horde2 http : archive.debian.org debian-archive debian pool main h horde2 .. . .. . horde3 http : archive.debian.org debian-archive debian pool main h horde3 .. . .. . Installing a downloaded package : gdebi package.deb .. . .. .", "Question : When I open files with emacs it adds 12 rgb : 1c1c 1c1c 1c1c on the top . How can I prevent this I have installed emacs on a clean reinstalled debian system . Emacs : GNU Emacs 24.4.1 .. . .. . Terminal Emulator : MobaXterm Personal Edition v7.7 .. . .. . System local : Windows 7 Ultimate .. . .. . System remote : Debian 8.0 jessie stable Comment : Which terminal-emulator are you using Comment : And what operating-system You say that you have installed emacs cleanly how did you do this Comment : Sry I forgot that . @minitech : I m using MobaXterm Personal Edition v7.7 @Chris : I m using debian 8.0 jessie stable I also installed emacs on a new clean reinstalled system . Comment : SOLVED IN MOBAXTERM VERSION 8.2 .. . Answer : SOLVED IN MOBAXTERM VERSION 8.2", "Question : When I open files with emacs it adds 12 rgb : 1c1c 1c1c 1c1c on the top . How can I prevent this I have installed emacs on a clean reinstalled debian system . Emacs : GNU Emacs 24.4.1 .. . .. . Terminal Emulator : MobaXterm Personal Edition v7.7 .. . .. . System local : Windows 7 Ultimate .. . .. . System remote : Debian 8.0 jessie stable Comment : Which terminal-emulator are you using Comment : And what operating-system You say that you have installed emacs cleanly how did you do this Comment : Sry I forgot that . @minitech : I m using MobaXterm Personal Edition v7.7 @Chris : I m using debian 8.0 jessie stable I also installed emacs on a new clean reinstalled system . Comment : SOLVED IN MOBAXTERM VERSION 8.2 .. . Answer : VT220 works fine Edit Session Terminal Settings Type : vt220", "Question : We have some C++ applications which are developed specifically and only for Debian stable x86 . Currently development of these application is also done using a Debian stable x86 system so the developer has all the same library versions as on the target system . Occasionally I also need to work on these components and it keeps bugging me that I m stuck with a very outdated version of KDevelop 4.0.1 vs . the latest 4.4.1 . I d like to use a more up-to-date system for development like the latest Ubuntu or Debian testing but how can I create binaries suitable for the target system Is there some simple way I can tell the compiler linker to use the library versions which are available on the target-platform only I looked at Emdebian http : www.emdebian.org and their cross-compiling packages but I don t think this would work for me . They seem to have only packages for targetting other architectures like ARM . .. . Answer : You can : .. . .. . 1 . Install Debian testing on your workstation .. . 2 . Create a chroot jail . 3 . Install Debian stable into chroot jail .. . 4 . Compile your project from within the jail .", "Question : I have 2 physically separate servers . First on Debian web server and the second on win2008r2 oracle database 11.0.2.0.4 . I installed the client on debian but there is no listener command not found . In the folder bin no lsnrctl . Php apache2 oci8 libao1 olready installed oracle home tns admin installed To oracle database connected successfully from other PC Comment : A client does not need a listener . Everything is OK . .. . Answer : I installed the client on debian but there is no listener .. . .. . A client-only install will not install a listener . If you want to have a listener on your machine you need to do a database install . Probably a software only install would do the work without creating the database . Listener won t be on the client machine it is generally on the database server . Comment : on windows listener on server and on client.... . Comment : Sorry I couldn t understand . Can you please elaborate . Comment : Sorry my English is bad . If you use a client oracle on windows then the listener Must be used on both the client and the server . Comment : You need listener only on the database server . In your applicatiin server you just need to install client . You don t need listener . Please mark it as answered would help others . Comment : @tandem : that s wrong . An Oracle client installation never needs or has a listener installation - regardless of the operating-system .", "Question : According to this article https : val.markovic.io articles youcompleteme-a-fast-as-you-type-fuzzy-search-code-completion-engine-for-vim code-completion should work for any language with youcompleteme plugin . I set it up as follows in Debian Jessie : .. . .. . installed vim from repository .. . installed youcompleteme from repository .. . issued vam install youcompleteme in cli .. . .. . After the last step vim start significantly slower which means that it is loading the plugin . However completion does not work . The output of .. . .. . Is there anything else I have to do to get youcompleteme working Comment : You didn t give any details about which language isn t working or whether running : YcmDiag in vim gives any additional information . Comment : When I issue : YcmDiag I get : Native filetype completion not supported for current file cannot force recompilation . I tried to edit a java file . I also tried editing a c++ which also did not work . Comment : You still haven t specified which language . Comment : What exactly do you mean by language I tried as previously stated Java and C++ . Or do you mean which locale settings I use in my Terminal .. . Answer : You should follow the installation instructions https : github.com Valloric YouCompleteMe ubuntu-linux-x64-installation for YCM including how to compile it : .. . .. . Install development tools and CMake : sudo apt-get install build-essential cmake .. . .. . Make sure you have Python headers installed : sudo apt-get install python-dev . .. . Compiling YCM with semantic support for C-family languages : .. . .. . cd .vim bundle YouCompleteMe . install.py --clang-completer .. . .. . Compiling YCM without semantic support for C-family languages : .. . .. . cd .vim bundle YouCompleteMe . install.py .. . .. . Also I would give you the tip to use vim-plug https : github.com junegunn vim-plug for handling plugins . Comment : I do not want to compile it . That is the whole point of using a distro like Debian in the first place . I want the version in the repositories to work . If it does not and unless i missed something then I will file a bug . Comment : This is totally unrelated to Debian . If you want to use YouCompleteMe a Vim plugin unrelated to any operating-system you need to compile it to get it to work . This is not a bug and will not change . The reason you need to compile it is that in order to be very fast the plugin uses C C++ code which only runs when compiled . This is different from many other Vim plugins written in pure Vimscript or Python which don t need to be compileD . Comment : Then what is the point of having the package youcompleteme in the repository Comment : I think you understand something wrong here . The repository you probably talk about is the Debian package management system . It includes lots of things you can install via apt-get install programname . The packages in this repository don t need to be compiled they work out of the box for you . YouCompleteMe is NOT a Debian package . It is a piece of software unrelated to Debian which you will find ONLY on Github . Github is a place where people have their source code which sometimes needs to be compiled sometimes works out of the box . You cannot install YCM via apt-get install . Comment : @cbaumhardt no . There is a Debian package for youcompleteme which has the compiled library included . The OP has a different problem .", "Question : I am trying to install VM tools in Debian linux which is having trouble finding the gcc binaries . I am trying to install the binaries as shown in selected answer on this page : .. . .. . installing vmware-tools : location of GCC binary http : stackoverflow.com questions 18804819 installing-vmware-tools-location-of-gcc-binary .. . .. . However in these commands : .. . .. . the system is asking me to insert the Official amd64 binary in the CDROM and then press enter . My debian in running on a VM over windows . Not sure where to get this thing and fix this problem . Please advise . .. . Answer : Debian uses apt to install packages . apt-get or aptitude are front-ends to the apt systems . whenever you ask the system to install a given package it will first need the actual package files . now apt can fetch the requested packages from a number of different places including read-only media like CDROMs or DVDs or the internet via http or ftp . these places can be configured in the etc apt sources.list file . if you have installed Debian from the set of CDROMs then your sources.list will tell apt that it can get package files from the cdrom-drive . obviously you need to have the correct CDROM inserted in your drive . on a virtual-machine you will find that you can use ISO-images of the files and tell your virtualization software vmware to make a given ISO available to the client . however the usual way is to add an internet ressource to sources.list so you don t need to juggle with CDROM images and you will always get any bugfixes . obviously your machine will need to be online for this to work . add an official online debian repository to your sources . the following uses http : http.debian.net which should automatically use a mirror that is physically close to your machine : .. . .. . then update the cache .. . .. . and install the required package s Comment : Thanks for the answer . I m able to install build essential but not the linux-headers . It says Couldn t find any package by regex gcc-4.7 Comment : why do you want to install gcc-4.7 if you want to compile kernel-modules why else would you need linux-headers it is sufficient to install linux-headers- uname -r as this will depend on the correct version of gcc . Comment : Now its asking me for the CDROM again if I try to install linux headers . Interestingly I tried reinstalling build-essential and its asking for the CDROM again . I checked the sources.list file . and it the source is listed there as deb http.debian.net debian http : http.debian.net debian sqeeze main . Should I manually add change the source s . Can you suggest something Comment : if there is a line in your sources.list that references the CDROM just remove it or comment it out then run aptitude update again Comment : Thanks . I installed these successfully . However my root problem is not really solved because I actually need to enter the gcc location in the vmware-tools installation process . I don t really have the location for the gcc binaries . Can you help me a bit on where to get that", "Question : My Debian 7 armel embedded system currently has g++ 4.6 and I d like to upgrade to g++ 4.9 to use new C++11 features . How do I do that My current sources.list contents is : .. . .. . A simple apt-get install of the package does not work : Comment : sudo apt-get install g++-4.9 Comment : You may need jessie for that . Comment : A simple apt-get install does not work alas . Comment : You might want to try to add the testing repository to your sources.list : deb http : http.us.debian.org debian testing contrib main you could add the non-free subbranch as well I m pretty sure this isn t needed for gcc though . Comment : Look at the Debian package search https : packages.debian.org search keywords gcc-4.9 there is no gcc-4.9 for wheezy . You can get crosstool-ng http : crosstool-ng.org and build your own compiler . Otherwise someone needs to point you to a .deb for 4.9 it may exist some time in the future . .. . Answer : Instead of using the jessie packages it would be better to check to see if it s been back-ported to wheezy . Add this to your etc apt sources.list : .. . .. . deb http : http.debian.net debian wheezy-backports main .. . .. . and do an apt-get update and see if you can install it then .", "Question : We have some C++ applications which are developed specifically and only for Debian stable x86 . Currently development of these application is also done using a Debian stable x86 system so the developer has all the same library versions as on the target system . Occasionally I also need to work on these components and it keeps bugging me that I m stuck with a very outdated version of KDevelop 4.0.1 vs . the latest 4.4.1 . I d like to use a more up-to-date system for development like the latest Ubuntu or Debian testing but how can I create binaries suitable for the target system Is there some simple way I can tell the compiler linker to use the library versions which are available on the target-platform only I looked at Emdebian http : www.emdebian.org and their cross-compiling packages but I don t think this would work for me . They seem to have only packages for targetting other architectures like ARM . .. . Answer : A simple solution for that would be to install a stable chroot -ed Debian distribution under e.g . a testing or an instable Debian distribution or even some non-Debian but Debian compatible thing like Mint or Ubuntu . You want to use the debootstrap http : wiki.debian.org Debootstrap utility to install the chrooted distribution and you ll need to bind-mount https : fermilinux.fnal.gov documentation tips mount-bind-chroot pseudofile systems like proc dev sys and perhaps your home . Then use schroot to go into your stable Debian and compile inside it ." ] }
[]
open-source
UNK_RELATION
yadcf@https@53
yadcf -- yet another datatables column filter yadcf @placeholder : github.com vedmack yadcf .
{ "confidence": [ 128.49264526367188, 118.4183120727539, 110.96511840820312, 104.18714141845703, 99.09525299072266, 98.52117156982422, 97.49064636230469, 93.22988891601562, 91.94566345214844, 90.5438003540039, 89.3473892211914, 89.3473892211914, 89.3473892211914, 89.3473892211914, 88.79782104492188, 87.6395263671875, 84.18193817138672, 84.15079498291016, 80.01921844482422, 79.82583618164062, 79.24777221679688, 79.24777221679688, 79.24777221679688, 77.50179290771484, 71.11478424072266, 67.35895538330078, 67.34935760498047, 66.97917938232422, 66.97917938232422, 65.60337829589844, 65.60337829589844, 65.60337829589844, 65.60337829589844, 65.60337829589844, 65.60337829589844, 64.60803985595703, 64.52407836914062, 63.770626068115234, 63.75636672973633, 63.33415603637695, 63.14417266845703, 63.056846618652344, 62.86323547363281, 62.35734939575195, 62.14289093017578, 61.43547821044922, 60.69795227050781, 59.74721908569336, 59.50497055053711, 59.414520263671875, 59.414520263671875, 58.73564529418945, 58.256229400634766, 58.001243591308594, 58.001243591308594, 57.7551155090332, 57.00041580200195, 56.842952728271484, 56.59572982788086, 56.395545959472656, 56.12551498413086, 56.12551498413086, 56.12551498413086, 56.12551498413086, 56.12551498413086, 55.43425750732422, 55.14498519897461, 54.75261306762695, 54.594764709472656, 54.379539489746094, 54.379539489746094, 54.055355072021484, 54.04010772705078, 53.8298454284668, 53.8298454284668, 53.8298454284668, 53.8298454284668, 53.399009704589844, 52.966148376464844, 52.824127197265625, 52.71695327758789, 52.38460159301758, 52.09785079956055, 51.833003997802734, 51.833003997802734, 51.57919692993164, 51.2197151184082, 51.2197151184082, 51.2197151184082, 51.19443130493164, 51.07815170288086, 51.07815170288086, 51.07815170288086, 50.60464859008789, 49.47373962402344, 49.47373962402344, 49.47373962402344, 49.30009078979492, 48.84136199951172, 48.31544876098633 ], "content": [ "https : github.com vedmack yadcf", "Filed an NFR : github.com vedmack yadcf issues 272 https : github.com vedmack yadcf issues 272", "I found exception was fixed in a 0.8.9.beta.10 based on github.com vedmack yadcf issues 220 https : github.com vedmack yadcf issues 220 .", "I m using YADCF https : github.com vedmack yadcf plugin for datatables http : datatables.net .", "yadcf is only for filtering its sits on top of datatables for filtering only sorting of columns and all other features are implemented in datatables itself read yadcf description https : github.com vedmack yadcf description", "I am using jQuery plugin yadcf plugin https : github.com vedmack yadcf .", "I m using YADCF https : github.com vedmack yadcf plugin for datatables http : datatables.net and I m using exResetAllFilters to reset all column filters but it doesn t work .", "I used official from github.com vedmack yadcf releases https : github.com vedmack yadcf releases 0.8.9 but i thought the over version was better cause of Version : 0.9.0.beta.20 .", "you should debug the xhr.dt event kistener in yadcf and try to figure out waht happens there maybe its being overriden for some reason see code here github.com vedmack yadcf blob master https : github.com vedmack yadcf blob master jquery.dataTables.yadcf.js L3332", "I am looking at https : github.com vedmack yadcf and don t see any obvious reference to a CDN which reposes yadcf great package by the way .", "isDOMSource oTable https : github.com vedmack yadcf blob master jquery.dataTables.yadcf.js L3302 is true in my case .", "Added support for this in 0.9.0.beta.1 https : github.com vedmack yadcf blob 36dd5e2a7e2713cf9983ce475e71e73d6b47ef4c jquery.dataTables.yadcf.js so it should work now", "Go grab 0.9.0.beta.7 https : github.com vedmack yadcf blob ea86d926de4616fb924e3821643c2da9caa8592e jquery.dataTables.yadcf.js should work now .", "Next time you get an error in browser console feel free to open an issue https : github.com vedmack yadcf issues", "I am tying to use the YADCF https : github.com vedmack yadcf extension so that I can sort the data in my table by it s status .", "Note I am using yadcf 0.8.8+ through commit https : github.com vedmack yadcf commit 4b778d7747c5c1cd4f362e6a6154c172f4a88ad3 .. . .. . html shown below .. . .. . js shown below", "Sounds like a new feature : .. . .. . So since 0.9.0.beta.9 https : github.com vedmack yadcf blob a510f78dfa0246c4897938d4b2e56a9bdbad6743 jquery.dataTables.yadcf.js you can use the ommit default label https : github.com vedmack yadcf blob a510f78dfa0246c4897938d4b2e56a9bdbad6743 jquery.dataTables.yadcf.js L125 option see your codepen in action http : codepen.io anon pen BKyEgr", "Not yet : there is an open issue https : github.com vedmack yadcf issues 154 about that you can subscribe to it in order to get updated a PR is welcome :", "You should use sort as : none for that filter read docs https : github.com vedmack yadcf blob 3e9081a722f827ce50275d26a840ab5f98779e06 jquery.dataTables.yadcf.js L144 for more.. .", "I ve added enhancement to 0.9.0.beta.11 https : github.com vedmack yadcf blob 5342cdded1e9274a152929dd884b5e0ddd04d976 jquery.dataTables.yadcf.js to the custom func https : github.com vedmack yadcf blob 5342cdded1e9274a152929dd884b5e0ddd04d976 jquery.dataTables.yadcf.js L40 - 4 th argument - it holds the html DOM of the table row .", "try the latest version of yadcf grab from github https : github.com vedmack yadcf blob master jquery.dataTables.yadcf.js if the issue still remains - then provide a link-to your test case with detailed steps to reproduce", "Since you are holding your data wrapped inside html element you should use column data type https : github.com vedmack yadcf blob master jquery.dataTables.yadcf.js L72 in your yadcf setup so it looks like this :", "Please try the latest yadcf beta version from github https : github.com vedmack yadcf blob master jquery.dataTables.yadcf.js and let me know what is the error line and even better provide a jsbin sample", "I hope I will be able to look and think about your issue in the near future busy recently .. . .. . p.s I m the author of yadcf https : github.com vedmack yadcf", ".. . .. . Having debugged the problem for a while I found that function appendFilters .. . is called after each grid refresh from this YADCF line : .. . .. . https : github.com vedmack yadcf blob master jquery.dataTables.yadcf.js L3332 .. . .. . which in turn is fired by DataTables draw event .", "I added a fix to yadcf and fixed your code as well .. . .. . Grab the latest 0.9.0.beta.23 https : github.com vedmack yadcf blob 7839bfbf2be5d93624660acbf28d90489091062d jquery.dataTables.yadcf.js and note that column number values are zero based first column should have column number : 0 and so on .. . .. . See it working here http : live.datatables.net betupena 3 edit", "EDIT : .. . .. . DataTables config array : .. . .. . YADCF INIT :", "1 data https : github.com vedmack yadcf blob master jquery.dataTables.yadcf.js L48 is mostly usefull for case in which you want to populate your filter with predifined set of values unless you use the append data to table data https : github.com vedmack yadcf blob master jquery.dataTables.yadcf.js L63 as to the delimiter it seems that you are using the between your values of the td without a link-to a working sample I wont be able to help you .", "Grab the 0.9.0.beta.12 https : github.com vedmack yadcf blob 77b1c8cae2b18c3451ea6811a6f03453ad24d83d jquery.dataTables.yadcf.js and use column data type : rendered html for the filter see docs https : github.com vedmack yadcf blob master jquery.dataTables.yadcf.js L73 .. . .. . As to your range slider - the following setup should be used notice the ignore char filter plugin options .. . .. . see working jsfiddle https : jsfiddle.net m52cqoom 9 .. . .. . If that won t help provide a jsbin sample with your issue", "I am having an issue with the yadcf datatables plugin .", "I am trying to use Yadcf with DataTables 1.10+ .", "Has anyone successfully done this with YADCF or DataTables solo", "i am using jquery-datatables plugin and yadcf .", "This time I wanted to integrate Yadcf in Angular-Datatables .", "The dropdown is generated by yadcf which is a plugin for jquery-datatables .", "I ve a little issue with Datatables YADCF and Button Colvis : I can t use in the same table the property visible : false a filter container id and yadcf .", "I am looking at this YADCF example : .. . .. . http : yadcf-showcase.appspot.com server-side source.html .. . .. . 1 .", "I have yadcf working on DataTables in a jqueryUI tabbed environment .", "Go grab 0.9.0.beta.5 https : github.com vedmack yadcf blob fb44de31cd3d995f9d94599d4b1fb05d8d4c45c1 jquery.dataTables.yadcf.js it works now see live sample https : jsfiddle.net 7gtps9n5 15 .", "In case that you want to trigger yadcf filter you better use yadcf api .. . .. . I suggest you to replace .. . .. . and .. . .. . with something like this .. . .. . and .. . .. . .. . .. . In case that you want to filter multiple values you can add more to the array like this .. . .. . read more about exFilterColumn api https : github.com vedmack yadcf blob master jquery.dataTables.yadcf.js L175 .. . .. . note that the third true argument should be used when filtering am ajax sourced datatable that was already loaded no docs for that yet", "I am using yadcf on datatables.js to populate and filter a column Select e.g .", "I created a table with DataTables and Yadcf plugins .", "See third column filter on showcase yadcf-showcase.appspot.com DOM source.html http : yadcf-showcase.appspot.com DOM source.html and what about the custom function select filter", "I am using datables with yadcf .", "Since dataTables mostly supports column name for maintainability is column name an option for yadcf as well", "I would like to be able to filter that data with Yadcf .", "This is the bright future of the yadcf plugins .", "p.s I m the author of yadcf", "I see http : yadcf-showcase.appspot.com server-side source.html which uses column index .", "I have worked with jQuery Datatables and Yadcf in previous projects .", "What s I want to know is the right way to integrate Yadcf to angular-datatables .", "The demo is now using your dropbox yadcf .", "The template list is loaded via ajax in DataTables and yadcf is added for fancy filtering .", "I have a problem with datatable and yadcf .", "The yadcf plugin crash and not display anything .", "It written in the showcase page and on github page too date input - make use of the jQuery UI Datepicker widget with some enhancements also you can use Bootstrap datepicker eonasdan-bootstrap-datetimepicker read docs on how - datepicker type https : github.com vedmack yadcf blob 8e071af195106fa702f942373c65164b89ca40ff jquery.dataTables.yadcf.js L244", "If you want to perform an exclude https : github.com vedmack yadcf blob master jquery.dataTables.yadcf.js L180 filering on a column with the exFilterColumn api call you should add a exclude prefix to the query for example : .. . .. . where the query-string itself is b value the only issue that still need to be fixed in yadcf is to make the exclude checkbox to appear checked in when such exFilterColumn is being called", "I use YADCF for my filters .", "Also note that if you use slider type yadcf filter or certain other type yadcf CSS does have some width properties defined for them .", "The debugger showed that Yadcf gets called but the whole Yadcf stuff doesn t get applied to the table .", "if its inside the table itself then its not related to yadcf .", "Is there a way to achieve this within yadcf itself i.e .", "its the language url that doing the problems to the yadcf", "Does anyone know how to do it using Yadcf .", "grab latest yadcf version and read updated answer.. .", "I am about to get started with server-side dataTables yadcf for a large table .", "You can grab the 0.8.9.beta.33 https : github.com vedmack yadcf blob 9ea72417dc805efa4ca667335c68c98839462f3f jquery.dataTables.yadcf.js in this version the text and auto complete filtes will ignore the arrow keys if someone want more key to be igore he can send a PR with modified keyCodes", "Your should add a filter for that column and make it hidden and add several buttons spans etc with onclick event that will call yadcf external api exFilterColumn https : github.com vedmack yadcf blob master jquery.dataTables.yadcf.js L267 .. . .. . See the following quick jsbin sample I made http : jsbin.com rixikoleqi edit html js output .. . .. . code-snippets :", "b.t.w you can provide the needed input for select2 along with your datatables data source as described on the showcase yadcf-showcase.appspot.com server-side source.html http : yadcf-showcase.appspot.com server-side source.html", "I try to use the yadcf datatable JS .", "I ve grab the latest version and yadcf do the job .", "Using : .. . .. . SharePoint 2010 .. . jQuery 1.7.2 from master site which I can t access .. . DataTables 1.10.12 .. . YADCF 0.8.9 .. . select type : select2 .. . filter type : multi-select custom func .. . Select2 4.0.1 .. . Chosen 1.5.1 .. . .. . YADCF filters work .", "You can populate the select with any kind of values and do your own filter logic in it see first column yadcf-showcase.appspot.com DOM source.html http : yadcf-showcase.appspot.com DOM source.html", "I am upgrading the yadcf version on my site from 0.6.9 to 0.8.8 .", "First of all thank you so much for your support of YADCF .", "I m using the YADCF 0.8.8 table on DOM Source small d .", "I develop an application and I used my DataTable and Yadcf .", "if my answer solved you question mark it as accepted as to the style.. . best thing is to send a PR just like someone did a few days ago see this PR https : github.com vedmack yadcf pull 337 because I wont be able to do it in the near future", "Its surely not related to yadcf but I think its not even related to datatables as well but rather to your table layout itself its up to you to arrange your table and its tr and td the way you want it to.. . B.t.w yadcf can handle multiple values per cell thanks to the text data delimiter option see 4 th column in the showcase yadcf-showcase.appspot.com DOM source.html http : yadcf-showcase.appspot.com DOM source.html", "Using yadcf 0.8.9 and datatables 1.10.10 I have a DataTable with sorting options for Product as seen at https : sharepointupdates.com Patches .", "I am using the jQuery YADCF plugin to filter out a column of dates formatted mm-dd-yyyy .", "I am trying to remove a select option from an external filter select field using yadcf 0.8.9 .", "You can achieve at least what you can see in the showcase yadcf-showcase.appspot.com DOM source select2.html http : yadcf-showcase.appspot.com DOM source select2.html", "It only happens when the YADCF filters are manipulated .", "So there must be a fix for the YADCF or Select2 code .", "You have to understand that the moment you add a wide r element some of your table headers that used to be thinner your table width will become bigger and its fine .. . .. . I can suggest the following solutions : .. . .. . 1 Reduce the width of yadcf filters apply width attribute to the .yadcf-filter class .. . .. . 2 Using scrollX https : datatables.net reference option scrollX .. . .. . 3 Place the filters outside the table by using the filter container id https : github.com vedmack yadcf blob master lab jquery.dataTables.yadcf.js L92 property .. . .. . .. . .. . p.s in order to overcome the breaking of your headers text you can use the following css", "Looking at the YADCF source I could not find an appropriate spot .", "YADCF is using a Select2 that s grabbing options using AJAX call .. . 3 .", "I ve an issue with the option ScrollY in the two plugins YADCF 0.8.9 and DataTable 1.10 .", "I think It may be DataTables instead as I comment out the Yadcf code and it throws an error Tech Note 1 for datatables invalid JSON data", "This is simple JQuery DataTables with YADCF.. . no extra css classes added.. . Just trying to understand why the filters makes a resize to the columns.. .", "I ve set the widths for DataTables columns but YADCF overrides these widths and makes all the columns an identical width .", "Is there any way you can make YADCF inherit the widths set in the DataTables API", "I think I could use something like https : raw.githubusercontent.com vedmack yadcf 0.8.9 jquery.dataTables.yadcf.js but .. . .. . 1 . is it kosher to use github as a cdn", "I am using the YADCF plugin for an online index I have created .", "I am using the datatables.net and the yadcf plugin in my angular application .", "I didn t use YADCF this time but great to know it s out there .", "What s the reason YADCF re-inits column filters after each grid redraw", "Just an idea .. . .. . Listen to the column-visibility.dt event of datatables if you are using the responsive plugin for datatables or just to re-size of the window itself and try to init yadcf with filter container id usage for certain column", "Would you entertain a pull request for native yadcf selectize support" ] }
{ "confidence": [ 147.5682373046875, 147.4371795654297, 140.13804626464844, 139.5879669189453, 138.2327880859375, 132.00625610351562, 129.9757537841797, 129.8076934814453, 129.03970336914062, 128.80760192871094, 128.70843505859375, 128.47317504882812, 126.90349578857422, 126.2947006225586, 126.184814453125, 125.08964538574219, 124.86380004882812, 124.6907730102539, 120.80585479736328, 120.05288696289062 ], "content": [ "Question : I m using server-side processing and trying to populate select filter . I m using a custom datatables fnServerData function modified version of elastic-datatables https : github.com pidupuis elastic-datatables in order to use elastic search . My fnCallback function looks like this : .. . .. . For now I m just using dummy values taken from your example response also tried the simpler option of string list instead of value label objects but the select filter still has 0 value to choose from column index is correct . Any idea how custom callback could mess things up You can see the whole function without my modifications here https : github.com pidupuis elastic-datatables blob master src jquery.elastic-datatables.js .. . .. . Datatables setup : Comment : yadcf can listen to datatables events https : datatables.net reference event so the yadcf data XYZ values are being processed only at the xhr https : datatables.net reference event xhr event I don t know how to listen to the fnCallback if there is a way let me know . Comment : I just checked xhr event with .on xhr.dt fun.. . and the json object does contain yadcf data 2 along with all the other info I gave to callback . Still nothing though . Comment : you should debug the xhr.dt event kistener in yadcf and try to figure out waht happens there maybe its being overriden for some reason see code here github.com vedmack yadcf blob master https : github.com vedmack yadcf blob master jquery.dataTables.yadcf.js L3332 Comment : isDOMSource oTable https : github.com vedmack yadcf blob master jquery.dataTables.yadcf.js L3302 is true in my case . Not sure what it means but my table sure is in initial dom . Comment : It means that I m not listening to xhr event because lack of serverSide : true . Will see how to detect you case . Plz post ur datatables setup .. . Answer : Added support for this in 0.9.0.beta.1 https : github.com vedmack yadcf blob 36dd5e2a7e2713cf9983ce475e71e73d6b47ef4c jquery.dataTables.yadcf.js so it should work now Comment : Thanks . It works but ever since version 0.8.9 the yadcf has given me an error on startup so I have used older version 0.8.8.beta5 . I took a screenshot . Not sure what it breaks but for example pagination doesn t work . Screenshot http : pasteboard.co 1zxpdWt8.png Comment : please open an issue on github with the relevant data screenshot line code sample if possible dt setup yadcf setup", "Question : I am looking at this YADCF example : .. . .. . http : yadcf-showcase.appspot.com server-side source.html .. . .. . 1 . Position cursor inside Browser column filter field .. . 2 . Press LEFT ARROW key .. . .. . In Firebug you will notice an outgoing request to pull the data . Question . How can I prevent submission of search context if arrow keys are pressed Looking at the YADCF source I could not find an appropriate spot . function textKeyUP is triggered by inline JS events and does not know anything about Javascript Event object . Thanks Comment : Filed an NFR : github.com vedmack yadcf issues 272 https : github.com vedmack yadcf issues 272 .. . Answer : You can grab the 0.8.9.beta.33 https : github.com vedmack yadcf blob 9ea72417dc805efa4ca667335c68c98839462f3f jquery.dataTables.yadcf.js in this version the text and auto complete filtes will ignore the arrow keys if someone want more key to be igore he can send a PR with modified keyCodes", "Question : I am using jQuery plugin yadcf plugin https : github.com vedmack yadcf . first I ve defined an array all serve products NOS URS NVS NBS CNS NEFS the filter working fine except that its order are changed . Is there any way to keep the options of filter show the original order of array enter image description here http : i.stack.imgur.com ENiCV.png .. . Answer : You should use sort as : none for that filter read docs https : github.com vedmack yadcf blob 3e9081a722f827ce50275d26a840ab5f98779e06 jquery.dataTables.yadcf.js L144 for more.. .", "Question : null .. . Answer : I am using datables with yadcf . I am trying to implement a custom sort for some of my columns that always sorts first by a different column . For example clicking on the header for Column B should always sort first by Column A then Column B . As far as I can tell providing a custom sort function won t work for this . Any ideas Comment : yadcf is only for filtering its sits on top of datatables for filtering only sorting of columns and all other features are implemented in datatables itself read yadcf description https : github.com vedmack yadcf description Comment : Hi Daniel thanks for the fast response . I misunderstood and thought the sort parameters related to sorting of the data not the filter values . Thanks also for the plugin it s been very useful to me .", "Question : I am about to get started with server-side dataTables yadcf for a large table . I see http : yadcf-showcase.appspot.com server-side source.html which uses column index . Since dataTables mostly supports column name for maintainability is column name an option for yadcf as well To be clear I am talking about using name on the server-client interface e.g . something like .. . .. . instead of .. . .. . I can probably kludge something if this is not available but seems like this is normal need so I am thinking it might already exist . .. . Answer : Not yet : there is an open issue https : github.com vedmack yadcf issues 154 about that you can subscribe to it in order to get updated a PR is welcome :", "Question : I am trying to use Yadcf with DataTables 1.10+ . My situation is each row in my data table has a column with 4 radio buttons . I would like to be able to filter that data with Yadcf . I couldn t find any way to do this without utilizing a custom function . You can see on column 5 i call a custom function called statusfilter .. . .. . it is passing the filterVal correctly but the columnVal is empty thus throwing my alert and returning . I tried to look through the code a bit and see that yadcf sees the aData for column 5 has empty . I am not sure why . Does anyone have any ideas how I can make this work . Thanks Comment : you might need to update datatables model upon selecting radio on that row but without an example jsbin jsfiddle I can t really help you can modify the following jsbin jsbin.com mexemavusu edit js output http : jsbin.com mexemavusu edit js output Comment : i updated that jsbin . jsbin.com dudulapobe edit js output http : jsbin.com dudulapobe edit js output it does pass a column value . Unfortunately it passes all the radio buttons as column values . I am guessing the reason mine is blank is because its loaded through Ajax but this seems like an issue as well . .. . Answer : I ve added enhancement to 0.9.0.beta.11 https : github.com vedmack yadcf blob 5342cdded1e9274a152929dd884b5e0ddd04d976 jquery.dataTables.yadcf.js to the custom func https : github.com vedmack yadcf blob 5342cdded1e9274a152929dd884b5e0ddd04d976 jquery.dataTables.yadcf.js L40 - 4 th argument - it holds the html DOM of the table row . see jsbin sample http : jsbin.com quzidijahi 1 edit js output and inspect how I used it . The thing is that you have to find a way to update your DOM on mouse readio button selection so the filter will see the new value being checked - let me know how you did it eventually - maybe using jquery or updating datatables model", "Question : I ve a little issue with Datatables YADCF and Button Colvis : I can t use in the same table the property visible : false a filter container id and yadcf . The yadcf plugin crash and not display anything . This is an cleaned-up version of my datatable initialisation : Comment : yadcf doesn t play well with FixedColumns try to see how it works without it and try to move the yadcf init out of the initComplete if still dont work - provide a link-to a test case Comment : Sorry this one is better : live.datatables.net betupena 2 edit http : live.datatables.net betupena 2 edit .. . Answer : I added a fix to yadcf and fixed your code as well .. . .. . Grab the latest 0.9.0.beta.23 https : github.com vedmack yadcf blob 7839bfbf2be5d93624660acbf28d90489091062d jquery.dataTables.yadcf.js and note that column number values are zero based first column should have column number : 0 and so on .. . .. . See it working here http : live.datatables.net betupena 3 edit Comment : Hi thanks for the commit I ve grab the latest version and yadcf do the job . One more question : how coul d I add a class to a range date filter or range number width button colvis without it s easy with a few lines of JS but not with colvis.. . I ve seen the option style class to the other filters . For bootstrap integration I need to add input-group on the wrapper and form-control input-sm class on inputs . Comment : if my answer solved you question mark it as accepted as to the style.. . best thing is to send a PR just like someone did a few days ago see this PR https : github.com vedmack yadcf pull 337 because I wont be able to do it in the near future", "Question : I am tying to use the YADCF https : github.com vedmack yadcf extension so that I can sort the data in my table by it s status . I want to be able to click a button bootstrap pills and for that to then be the trigger for filtering the data however I can t figure out how to do so . Below you can see an example from WHMCS http : demo.whmcs.com this is what I wish to happen enter image description here http : i.stack.imgur.com iJlVD.gif .. . .. . Currently I have been able to filter the data but only by using a select drop down . As you can see below this is how my table and buttons look including the added Select element from YADCF enter image description here http : i.stack.imgur.com MdtpL.gif .. . .. . I was able to have the Select element work fully but what I am asking is : how can I get each individual button pill trigger a filter for each type of status This is the code I have for the table so far .. . .. . Any help at all would be greatly appreciated . .. . Answer : If all you want to achieve is custom pills you don t need to use my yadcf plugin at all you can use the simple Datatables api alone see the following jsbin sample http : jsbin.com pojimukijo 1 edit html js output and see code snippet : .. . .. . .. . .. . But if you want to use the yadcf plugin.. . Your should add a filter for that column and make it hidden and add several buttons spans etc with onclick event that will call yadcf external api exFilterColumn https : github.com vedmack yadcf blob master jquery.dataTables.yadcf.js L267 .. . .. . See the following quick jsbin sample I made http : jsbin.com rixikoleqi edit html js output .. . .. . code-snippets : Comment : I have used your first example as something to work off and I must say that in the end it has worked very well I appreciate the quick reply and very detailed documentation and examples . You helped me a lot .", "Question : Working with AngularJS I have a DataTable working in serverSide mode using the YADCF filters . Is it possible to use the multi-select filter whith chosen or select2 while working on ServerSide Can I manually introduce the parameters of search In this case I want to use that filter on the column 6 estado that means The state of a proccess . The code from the myApp.controller .. . .. . When I filter the first time because its server-side it only have access to the proccess with that state so it s impossible to chose one or more states.. . .. . Answer : In case that you want to trigger yadcf filter you better use yadcf api .. . .. . I suggest you to replace .. . .. . and .. . .. . with something like this .. . .. . and .. . .. . .. . .. . In case that you want to filter multiple values you can add more to the array like this .. . .. . read more about exFilterColumn api https : github.com vedmack yadcf blob master jquery.dataTables.yadcf.js L175 .. . .. . note that the third true argument should be used when filtering am ajax sourced datatable that was already loaded no docs for that yet Comment : Just have to update the WebApi to receive multiple values in the field . Thanks Comment : Could you take a look to this question http : stackoverflow.com questions 27862386 how-to-stop-yadcf-filters-in-datatables-to-mess-with-the-headers-cell-width", "Question : null .. . Answer : Is there a way to capture the filter query I need to send the filter query to the server so that when the user exports the data it is honored there as well and the user sees the same file as the report on the web . Comment : exGetColumnFilterVal https : github.com vedmack yadcf Comment : Do you have more information than a link-to the home page of the project Comment : yadcf does not broadcast any events but it listening to events that are being broadcast by datatables if you will explain your flow and provide your datatable init code I migth help you more", "Question : null .. . Answer : I have a DataTable 1.10 which uses the YADCF Plugin I had some data from a table that loaded in fine I ve now change the table to another table with an identical structure . I am getting the error : .. . .. . In Chrome : .. . .. . and In FireFox : .. . .. . Does anyone know whats going on here and why the two tables with identical structure just different records are throwing this error Comment : Please try the latest yadcf beta version from github https : github.com vedmack yadcf blob master jquery.dataTables.yadcf.js and let me know what is the error line and even better provide a jsbin sample Comment : I think It may be DataTables instead as I comment out the Yadcf code and it throws an error Tech Note 1 for datatables invalid JSON data", "Question : I have yadcf working on DataTables in a jqueryUI tabbed environment . When you first load the page it works correctly . However when you click away to another tab then come back to the previous tab DataTables blows up and sends the error : .. . .. . TypeError : settingsDt is undefined from line 438 in jquery.dataTables.yadcf.js if settingsDt.oSavedState undefined settingsDt.oSavedState.ColReorder undefined .. . .. . .. . I have a demo up for you to look at : www.novobpm.com yadcf .. . .. . Click on the Part Master tab it works . Then click on Part Alerts . All is OK . .. . .. . Now go back to Part Master and it ll blow up . The error is in the console . Interestingly if you now click on Part Alerts again that table is blown up . Comment : I m checking this issue will update soon hopefully .. . Answer : Go grab 0.9.0.beta.7 https : github.com vedmack yadcf blob ea86d926de4616fb924e3821643c2da9caa8592e jquery.dataTables.yadcf.js should work now . Next time you get an error in browser console feel free to open an issue https : github.com vedmack yadcf issues Comment : Thanks for your help Daniel I uploaded the new js and now I m getting a different error : TypeError : oTable.fnSettings .. . is null if oTable.fnSettings .oFeatures.bStateSave true Table.fnSettings .oLo.. . You can see it live on the demo I put up for you . Comment : The demo is now using your dropbox yadcf . I can t see anything different.. . Comment : should work now updated answer Comment : Excellent thanks Strangely enough I installed 0.9.0.beta.7 on my localhost version to get it working - then I went back to the demo I published for you and it was also working with 0.9.0.beta.5 still on it I didn t change anything...I don t know how it started working . Comment : It beacause your demo is pointing to my local dropbox version of yadcf which I fixed thanks to your demo", "Question : am using yadcf with Datatable .. . .. . javaScript : code .. . .. . but When i type any data in the text box its not searching it . I also tried Select filtering type that also not working select box stays empty apart from default label . anyone knows whats the Problem .. . Answer : Grab the 0.9.0.beta.12 https : github.com vedmack yadcf blob 77b1c8cae2b18c3451ea6811a6f03453ad24d83d jquery.dataTables.yadcf.js and use column data type : rendered html for the filter see docs https : github.com vedmack yadcf blob master jquery.dataTables.yadcf.js L73 .. . .. . As to your range slider - the following setup should be used notice the ignore char filter plugin options .. . .. . see working jsfiddle https : jsfiddle.net m52cqoom 9 .. . .. . If that won t help provide a jsbin sample with your issue Comment : here is the working example sir jsfiddel https : jsfiddle.net m52cqoom 4 . Comment : while in browser console its says Uncaught Error : Syntax error unrecognized expression : Ms . Rithu Rabin Dhanki Comment : grab latest yadcf version and read updated answer.. . Comment : ohh.. . thank You so much Sir you made my Day . what was the problem in the auto complete sir Comment : Sir one more question can we make the slider by default in 0 to 100 range and according to that the data will filter .", "Question : null .. . Answer : I m using YADCF https : github.com vedmack yadcf plugin for datatables http : datatables.net . In version 0.8.9 is possible use datetimepicker http : eonasdan.github.io bootstrap-datetimepicker . In my code : .. . .. . But when I try to filter using Date I see this error using Firebug datetimepicker component should be placed within a relative positioned container .. . .. . I ve read this error in other question http : stackoverflow.com questions 28293960 datetimepicker-component-not-in-right-place but I can t use div because the box for date is generated by YADCF . Any solution using Datetimepicker Or a solution using Datepicker Comment : Not sure what version of the datepicker you are using On my showcase yadcf-showcase.appspot.com dom bootstrap.html http : yadcf-showcase.appspot.com dom bootstrap.html I use the 4.14 and it works fine try it too and if it still wont work you will have to post a link-to jsbin sample that reproduces that issue.. .", "Question : When i am trying to export to pdf my datatable with a filter yadcf the header show always every case from my filter how can i hide that my javascript is : .. . .. . Here is the problem : enter image description here http : i.stack.imgur.com ePkh6.png .. . .. . i m using : .. . .. . Thanks Comment : use the rawgit url to yadcf js and don t post personal users dropbox urls Also I think that this can be fixed with the datatables api Comment : I used official from github.com vedmack yadcf releases https : github.com vedmack yadcf releases 0.8.9 but i thought the over version was better cause of Version : 0.9.0.beta.20 . Nevermind i ve tried with columnFilter and i ve the same issue so i think the problem is not from yadcf .. . Comment : as I said I think remember other complained solved it with datatables api alone - you might ask it on datatables forum https : datatables.net forums Comment : Ok i am doing it do you know how can i size the range bar for range number slider filter I am looking to modify my jquery.ui but maybe there is an easier solution Comment : Read docs google-play with css - thats the best answer you can get .. . Answer : Ok i did it but i think it s very weird : .. . .. . I don t know if is it to me to patch that or maybe there is a bug but the point is that it works works http : i.stack.imgur.com BPU3Q.png", "Question : I use exFilterColumn to get pre-selected filters but now I m trying to achieve something else . Basically I want my external buttons to filter the table in a query like .. . Answer : If you want to perform an exclude https : github.com vedmack yadcf blob master jquery.dataTables.yadcf.js L180 filering on a column with the exFilterColumn api call you should add a exclude prefix to the query for example : .. . .. . where the query-string itself is b value the only issue that still need to be fixed in yadcf is to make the exclude checkbox to appear checked in when such exFilterColumn is being called", "Question : null .. . Answer : I am looking at https : github.com vedmack yadcf and don t see any obvious reference to a CDN which reposes yadcf great package by the way . I think I could use something like https : raw.githubusercontent.com vedmack yadcf 0.8.9 jquery.dataTables.yadcf.js but .. . .. . 1 . is it kosher to use github as a cdn 2 . it would be nice to have a place to find the minimized package as well as the full Comment : Just host the code yourself Comment : you can try adding it to jsdelivr.com https : www.jsdelivr.com or cdnjs.com https : cdnjs.com use the Request a lib if my help will be needed feel free to open an issue on yadcf github", "Question : I am using the latest version to filter a date-range . My data rows look like this : .. . .. . The filter from and to works fine but when I select the date it does not filter anything . My filter column is setup like this : .. . .. . Any help is appreciated . .. . Answer : Since you are holding your data wrapped inside html element you should use column data type https : github.com vedmack yadcf blob master jquery.dataTables.yadcf.js L72 in your yadcf setup so it looks like this : Comment : Ah . Let me try that . The span was really important for the angular tooltip . Thanks", "Question : I am using yadcf on datatables.js to populate and filter a column Select e.g . a list of Countries . The select contains unique values for country such as : .. . .. . Austria .. . .. . France .. . .. . Italy .. . .. . USA .. . .. . UK .. . .. . A record can have multiple values for Country . For example a record might have USA and UK . The countries display in the cell like this : .. . .. . USA UK .. . .. . I want the values for Country to display on separate lines within the cell like this : .. . .. . USA .. . .. . UK .. . .. . Is it possible to do that Comment : You want to split the values inside the table cell or inside the filter select input cell if its inside the table itself then its not related to yadcf . Comment : Yes inside the table cell . So presumably it would be done within datatables.js Comment : Its surely not related to yadcf but I think its not even related to datatables as well but rather to your table layout itself its up to you to arrange your table and its tr and td the way you want it to.. . B.t.w yadcf can handle multiple values per cell thanks to the text data delimiter option see 4 th column in the showcase yadcf-showcase.appspot.com DOM source.html http : yadcf-showcase.appspot.com DOM source.html Comment : Yes I played around with text data delimiter I read about it in the notes inside the yadcf javascript file . - I thought I could use br as a delimiter and split the content that way but I couldn t get it to work even replacing with ++ as a test . Would a br work in there Comment : No but its ok alredy did a little setup of my own see it working jsbin.com facuxeluya edit html js output http : jsbin.com facuxeluya edit html js output I suspec tthat you have white spaces in your cell and not WordOne br WordTwo and thats why text data delimiter : br does not work for you . .. . Answer : You could use the text data delimiter : br just make sure you got no white spaces in yout td cell see live sample here http : jsbin.com facuxeluya edit html js output .. . .. . Code snippets : .. . .. . HTML : Comment : Hi I can t get this to work . Am I missing something in my configuration column number : 3 data : uniqueListNames select type : Select text data delimiter : br filter default label : Filter By List filter reset button text : false This is the contents of my td td List1 List2 td Comment : 1 data https : github.com vedmack yadcf blob master jquery.dataTables.yadcf.js L48 is mostly usefull for case in which you want to populate your filter with predifined set of values unless you use the append data to table data https : github.com vedmack yadcf blob master jquery.dataTables.yadcf.js L63 as to the delimiter it seems that you are using the between your values of the td without a link-to a working sample I wont be able to help you . Comment : I m using underscore.js uniq to create an array of unique list names and passing that to the data element : uniqueListNames .uniq fullNamesList yadcf.init cTbl column number : 3 text data delimiter : br data : uniqueListNames select type : Select filter default label : Filter By List filter reset button text : false text data delimiter doesn t work for any characters . Comment : By using the data you are telling yadcf not to populate the filter from the table column but rather from the data array on which the text data delimiter has no effect see jsbin for example : jsbin.com joceyesibu edit html js output http : jsbin.com joceyesibu edit html js output Comment : OK got it . So I have repeating data in my rows but want the Select to display only the unique values . Is there a way to achieve this within yadcf itself i.e . so I can split the values in the TD", "Question : When I add some YADCF filter to the datatable the resizing of the columns get messed up as seen in te pictures . Is it possible to prevent this No Filters No Filters http : i.stack.imgur.com pk6dV.jpg .. . .. . With Filters With Filters http : i.stack.imgur.com szZ0h.jpg .. . .. . --------------- EDIT ----------------- .. . .. . As sugested by Daniel here s the result : .. . .. . nowrap class no-wrap http : i.stack.imgur.com YXB8Z.jpg .. . .. . As you can see it s not good yet.. . Why does the yadcf filters increase the size of the TH Comment : Can you not just set a width on the inputs to prevent them resizing the columns Comment : I want it to be dynamic not fixed.. . So if I set a width it won t resize.. . .. . Answer : You have to understand that the moment you add a wide r element some of your table headers that used to be thinner your table width will become bigger and its fine .. . .. . I can suggest the following solutions : .. . .. . 1 Reduce the width of yadcf filters apply width attribute to the .yadcf-filter class .. . .. . 2 Using scrollX https : datatables.net reference option scrollX .. . .. . 3 Place the filters outside the table by using the filter container id https : github.com vedmack yadcf blob master lab jquery.dataTables.yadcf.js L92 property .. . .. . .. . .. . p.s in order to overcome the breaking of your headers text you can use the following css Comment : Added min width usage try playing with it . It s hard to help without seeing live sample Comment : What code do you need This is simple JQuery DataTables with YADCF.. . no extra css classes added.. . Just trying to understand why the filters makes a resize to the columns.. . Comment : just you current setup in a jsbin so I someone else can easily play with it Comment : @Daniel I m having the same issue . I ve set the widths for DataTables columns but YADCF overrides these widths and makes all the columns an identical width . Is there any way you can make YADCF inherit the widths set in the DataTables API Comment : @eclipsis updated my answer" ] }
[ "yes-answer-long", "yes-answer-short" ]
https
UNK_RELATION
openjms@implementation@38
openjms -- openjms is an open-source @placeholder of sun microsystems s java message service api 1.1 specification .
{ "confidence": [ 49.68532180786133, 49.68532180786133, 46.7972526550293, 44.90419387817383, 43.085044860839844, 43.085044860839844, 43.085044860839844, 43.085044860839844, 43.085044860839844, 42.085166931152344, 41.191986083984375, 40.192108154296875, 39.23799133300781, 38.084720611572266, 38.084720611572266, 36.1916618347168, 36.1916618347168, 36.1916618347168, 34.5048713684082, 33.43061065673828, 33.43061065673828, 33.13135528564453, 33.13135528564453, 33.13135528564453, 30.370304107666016, 29.703704833984375, 29.703704833984375, 26.94265365600586, 23.89076042175293, 20.733619689941406, 20.697601318359375, 18.466548919677734, 18.37570571899414, 18.32448387145996, 18.31069564819336, 18.31069564819336, 18.300687789916992, 18.09815788269043, 17.678146362304688, 17.638551712036133, 17.638551712036133, 17.27330207824707, 17.27330207824707, 17.059593200683594, 16.73317527770996, 16.73317527770996, 16.73317527770996, 16.73317527770996, 16.391599655151367, 16.179065704345703, 15.889132499694824, 15.881484031677246, 15.825858116149902, 15.558442115783691, 15.558442115783691, 15.310135841369629, 15.175561904907227, 14.88463306427002, 14.3240385055542, 14.3240385055542, 14.3240385055542, 14.3240385055542, 14.3240385055542, 14.3240385055542, 14.3240385055542, 14.3240385055542, 14.3240385055542, 14.3240385055542, 14.3240385055542, 14.3240385055542, 14.3240385055542, 14.3240385055542, 14.3240385055542, 14.3240385055542, 14.3240385055542, 14.3240385055542, 14.3240385055542, 14.3240385055542, 14.3240385055542, 14.3240385055542, 13.972122192382812, 13.972122192382812, 13.972122192382812, 13.972122192382812, 13.817160606384277, 13.418012619018555, 12.79738998413086, 12.79738998413086, 12.430980682373047, 12.430980682373047, 12.430980682373047, 12.430980682373047, 12.430980682373047, 12.430980682373047, 12.430980682373047, 12.430980682373047, 12.430980682373047, 12.430980682373047, 12.430980682373047, 12.430980682373047 ], "content": [ "This was a problem with OpenJMS and not with Websphere .", "Is the case only with Openjms", "I am using OpenJMS with NetBeans 6.9.1 .", "I have to join a jms server based on openJMS .", "at the moment I am playing around a little bit with openJMS .", "Is it possible - and how - to add queues dynamically while openJMS is running", "The class is located in same JAR file used by both the code and openJMS server .", "So I would like to start within the same JVM the OpenJMS server .", "I know with HornetQ it is very simple but we want to remain with OpenJMS .", "I don t know if openJMS server is using a compiler other than my Java SE compiler installed on my computer .", "i have installed openJMS on my system and make it up .", "Openjms requires a substrate for holding messages - this is where mysql comes into the picture - MySQL has no functionality to call java create messages .", "I want to put a message out of PL SQL directly into a running Queue which runs on the OpenJMS Server .", "I have started my openjms-0.7.7-beta using its startup.bat file .", "Secondly I can t explicitly assign serial id to the exception causing class becuase it is in openJMS library and not my own class .", "The bean is defined as : .. . .. . I have the JMS lib in class path and the openjms server is running .", "I have seen that we can configure openjms with mysql but how to we use it to call the JMS APIs", "For example since our server is using TIBCO EMS would I be able to connect to it using OpenJMS or WeblogicJMS", "The code worked perfectly in a simple java application but in this configuration it fails on the line .. . .. . Here is the Exeception .. . .. . It appears to me that this client code sends an object of class org.exolab.jms.server.net.RemoteNamingProvider Proxy to the openJMS server .", "I have an openjms-0-7-7 instance running on my cloud machine .", "I could find no evidence that OpenJMS clients use specific port numbers when communicating with servers .", "In the TIBCO EMS case if you re connecting to a EMS you ll need tibjms.jar and possibly other of this jars you cannot use something from OpenJMS etc .", "Now i need to implement openJMS with c .So that i can receive JMS messages hosted on different application servers via tcp .", "enter image description here http : i.stack.imgur.com zTlNf.png .. . .. . I am getting this problem when I try to run FirstClient using OpenJMS .", "I m using OpenJMS .. . .. . For topics I can just add one consumer more and that s about it but with queues I haven t finished with a solution yet .", "I am trying to configure a JMS server OpenJMS into a Spring application and when I refer the resources using the notation jms I get a name not bound exception .", "It seems you either .. . .. . Didn t configured the OpenJMS to use the same JNDI tree the spring is looking at - have a look here http : openjms.sourceforge.net config jndi.html .. . Looking for the wrong path in the JNDI .", "With regards to the problem Bart is having in NAT router blocking JMS messages http : stackoverflow.com questions 13455209 nat-router-blocking-jms-messages I am trying to find the port-number that clients receive openJMS messages on .", "More information : .. . .. . 1 The database that I had connected to using DB Visualizer was based on the DB url configured in OpenJMS config file 2 I had looked up all the tables of the connected database and nothing seem to contain any reference to the data that was transmitted by my application 3 The queue s counter still stood at 1 so I am inclined to believe that the message still exists in the queue .. . .. . Trace : .. . .. .", "You need to implement some code most likely in Java to capture the event and create a message .", "Message ordering is not guaranteed and not mandated by the specification and Total JMS Message ordering http : www.devwebsphere.com devwebsphere 2005 06 total jms messa.html explains the details of why .", "I did try and connect to the database from DB Visualizer based on the database properties configured in openjms.xml but none of the tables present here seem to contain a message that was dropped into one of the server s queue using a Java Application .", "I have no problem to configure it to send a synchronous message but i can t find any way in the official documentation to configure the message to be consumed 15 minutes after the producer send a message and continue call the consumer if an error appears .", "However I am sure that NetBeans is using it Java SE compiler for this client code compilation .", "This then results in the message being removed from the queue .", "Even then how do we insert a message into the queue", "JMS standardizes the API but not the wire-protocol .", "Pages 46 and 65 in the pdf you quoted are useful for more information on this as is the api http : java.sun.com j2ee 1.4 docs api", "I m testing open MQ for send and receive messages in my project .", "And whatever it sendMessage does the message is always removed from the queue .", "Any search based on these two fields will be faster compared to other fields of a message .", "can you help me with this as I am new to Java EE and JMS .", "In any ways the URL to use won t point to a .java file", "More information about here http : www-01.ibm.com support knowledgecenter SSFKSJ 7.5.0 com.ibm.mq.dev.doc q026910 .htm .. . .. . Are There an open-source JMS Provider that bring this functionality", "The message is removed from the broker queue due to the fact that the session you are using is set to auto acknowledge .", "By calling acknowledge on the message msg.acknowledge inside your onMessage method within your listener .", "Although it would in principe be possible to insert directly into the message-queue using mysql this is a really bad idea .", "Perhaps the reason you didn t see any records is because your message-queue software deleted those records .", "Use the Kaazing WebSocket Gateway Android JMS Client API .. . .. . you can visit Kaazing official website for that .", "This will automatically send an acknowledgement to the broker that the listener has received a message for the consumer with which it is associated once the onMessage method has executed to completion .", "If you switch to Apache ActiveMQ http : activemq.apache.org which is a much better more popular open-source JMS provider which also fully supports JMS 1.1 and J2EE 1.4 you get a number of alternatives for monitoring and browsing queues http : activemq.apache.org how-can-i-monitor-activemq.html in particular you can just use the Web Console http : activemq.apache.org web-console.html or JMX http : activemq.apache.org jmx.html", "You could set up a server-side application using a more Android-friendly API to communicate with mobile clients and JMS to communicate with your actual server .", "Doesn t websphere MQ just send a new message to a trigger queue when there is a message in the main queue", "If you manually take over the acknowledgement process you can choose to only acknowledge the receipt of the message at a time of your choosing be that 15 minutes later or whatever criteria you have for the consuming client .", "I am using the following code taking me 18 hrs browsing 1 lac 100 000 message : I need it in minutes to complete How can i make it fast complete browsing in 30 mins", "So all JMS implementations are based on the same API interfaces but you will require different implementation libraries jar-files in your class-path that match the server you re connecting to .", "Worst case scenario : you can write a Java stored procedure that implements the messaging and then provide a PL SQL wrapper for it .", "offical documentation : http : dlc.sun.com pdf 819-7757 819-7757.pdf .. . .. . my method whom send a message .. . .. . My listener : .. . .. . So when i call mdbConn.start the sendMessage is called but i want to call 15 minutes after the call .", "I already got the examples working but in that cases I have to add edit the queues and topics in the admin-page .", "What I want to do is creating and destroying objects at runtime that can describe to the JMS and have their own point-to-point queue .", "Found the answer by my self it s rather good described on the official usersguide - why didn t I find it first", "http : openjms.sourceforge.net usersguide admin.html", "shall I delete the whole question as it s not more interesting or shall i let it stand out as is", "I know it s been a while since you posted this but the link you provided helped me finish my college assignment .", "Thanks a bunch", "I have created a simple NetBeans Platform Application and a module inside it .", "Now in the module the following code executes to start listening for messages on a topic .", "For some strange reason however compiler the class is having different serial ID on the server-side .", "I searched the internet for clues .", "Serial ids of a class can be different if we use different compilers .", "Any help will be appreciated .", "-Hadaytullah", "I have an application that needs to also be the JMS server broker .", "I have loosely read that this is possible but I could not find any examples or explanation on the http : openjms.sourceforge.net site or anywhere else for that matter .", "Has anyone done this how simple is it", "Thanks", "Yes in HornetQ you could start an embedded jms server with only two line of code and a configuration xml .", "Being that HornetQ is POJO based and opensource why don t you choose it", "Piero .", "You could also check more details on embedding HornetQ in the new HornetQ book .. . .. . www.amazon.com dp 1849518408 tag packtpubli-20 http : rads.stackoverflow.com amzn click 1849518408", "The order in which messages are delivered to the server however will be constrained by limitations like message priority persistent non persistent etc .", "In Websphere MQ I can configure a Queue to Trigger an Application when a message arrives .", "You could even have a trigger client generate a new trigger message in a new queue if that is absolutely necessary .", "The method onMessage needs to be implemented and serves as the callback function when any new message appears on the queue it is subscribed to .", "This is supplied by the client as the Source Port in the request and then used by the server as the destination port to send the reply .", "In that way I can have an Application that starts only if needs and I don t have to manage one daemon that wait for message in that queue .", "Will both of these messages be received in the same order in which I have added them or is there a chance for reverse ordering that is which ever the message is received first in the destination will be retrieved first .", "When arrives a message and myApplication is still in execution WMQ doen t launch it again it s supposed that the user application consume all messagges in the queue.Can I expect similar behavior", "Any clue what is missing", "In the web.xml we couldn t refer the as an interface javax.jms.Topic we had to use the exact class .", "Not allowed : .. . .. . allowed :", "As a hunch drop the jms from the jndiName .", "How can i keep the messagen in queue to be called later", "Thanks", "Setting the Session Session.CLIENT ACKNOWLEDGE will allow you to do this but then you will have to manually send an acknowledge in your consumer code .", "This will then acknowledge the receipt of messages consumed within that session and remove them from the queue .", "Currently i m working on android project .", "i ve not found any library anyone know how to implement JMS client on Android", "thx .", "I doubt it s possible ." ] }
{ "confidence": [ 59.250980377197266, 58.407833099365234, 52.74091720581055, 52.172821044921875, 51.68356704711914, 51.26036071777344, 48.25714874267578, 48.25714874267578, 45.989532470703125, 44.68271255493164, 42.19090270996094, 41.32630157470703, 37.379825592041016, 32.614891052246094, 32.614891052246094, 32.4260139465332, 30.64097785949707, 22.498897552490234, 19.632953643798828, 16.993879318237305 ], "content": [ "Question : null .. . Answer : I am using OpenJMS with NetBeans 6.9.1 . I have created a simple NetBeans Platform Application and a module inside it . I have started my openjms-0.7.7-beta using its startup.bat file . Now in the module the following code executes to start listening for messages on a topic . The code worked perfectly in a simple java application but in this configuration it fails on the line .. . .. . Here is the Exeception .. . .. . It appears to me that this client code sends an object of class org.exolab.jms.server.net.RemoteNamingProvider Proxy to the openJMS server . The class is located in same JAR file used by both the code and openJMS server . For some strange reason however compiler the class is having different serial ID on the server-side . I searched the internet for clues . Serial ids of a class can be different if we use different compilers . I don t know if openJMS server is using a compiler other than my Java SE compiler installed on my computer . However I am sure that NetBeans is using it Java SE compiler for this client code compilation . Secondly I can t explicitly assign serial id to the exception causing class becuase it is in openJMS library and not my own class . Any help will be appreciated . -Hadaytullah", "Question : I have an application using MySQL 5.5 db in a windows machine and a JVM running on a linux machine . I want to send JMS messages to the JVM from mysql when a value is inserted in one of the tables . I have seen that we can configure openjms with mysql but how to we use it to call the JMS APIs .. . Answer : Openjms requires a substrate for holding messages - this is where mysql comes into the picture - MySQL has no functionality to call java create messages . Although it would in principe be possible to insert directly into the message-queue using mysql this is a really bad idea . You need to implement some code most likely in Java to capture the event and create a message . Comment : Is the case only with Openjms What about using ActiveMQ with Mysql Even then how do we insert a message into the queue Using a procedure or something", "Question : I am trying to configure a JMS server OpenJMS into a Spring application and when I refer the resources using the notation jms I get a name not bound exception . Any clue what is missing The bean is defined as : .. . .. . I have the JMS lib in class path and the openjms server is running . .. . Answer : In the web.xml we couldn t refer the as an interface javax.jms.Topic we had to use the exact class . This was a problem with OpenJMS and not with Websphere . Not allowed : .. . .. . allowed :", "Question : For example since our server is using TIBCO EMS would I be able to connect to it using OpenJMS or WeblogicJMS .. . Answer : JMS standardizes the API but not the wire-protocol . So all JMS implementations are based on the same API interfaces but you will require different implementation libraries jar-files in your class-path that match the server you re connecting to . In the TIBCO EMS case if you re connecting to a EMS you ll need tibjms.jar and possibly other of this jars you cannot use something from OpenJMS etc . instead since they use different wire-protocols . JMS is pretty much the same as JDBC in this regard .", "Question : I am trying to configure a JMS server OpenJMS into a Spring application and when I refer the resources using the notation jms I get a name not bound exception . Any clue what is missing The bean is defined as : .. . .. . I have the JMS lib in class path and the openjms server is running . .. . Answer : It seems you either .. . .. . Didn t configured the OpenJMS to use the same JNDI tree the spring is looking at - have a look here http : openjms.sourceforge.net config jndi.html .. . Looking for the wrong path in the JNDI . As a hunch drop the jms from the jndiName .", "Question : null .. . Answer : i have installed openJMS on my system and make it up . Now i need to implement openJMS with c .So that i can receive JMS messages hosted on different application servers via tcp . please do the needful .", "Question : at the moment I am playing around a little bit with openJMS . I already got the examples working but in that cases I have to add edit the queues and topics in the admin-page . Is it possible - and how - to add queues dynamically while openJMS is running What I want to do is creating and destroying objects at runtime that can describe to the JMS and have their own point-to-point queue . .. . Answer : Found the answer by my self it s rather good described on the official usersguide - why didn t I find it first http : openjms.sourceforge.net usersguide admin.html Comment : shall I delete the whole question as it s not more interesting or shall i let it stand out as is Comment : I know it s been a while since you posted this but the link you provided helped me finish my college assignment . Thanks a bunch", "Question : I have an application that needs to also be the JMS server broker . So I would like to start within the same JVM the OpenJMS server . I have loosely read that this is possible but I could not find any examples or explanation on the http : openjms.sourceforge.net site or anywhere else for that matter . Has anyone done this how simple is it I know with HornetQ it is very simple but we want to remain with OpenJMS . Thanks .. . Answer : Yes in HornetQ you could start an embedded jms server with only two line of code and a configuration xml . Being that HornetQ is POJO based and opensource why don t you choose it Piero . You could also check more details on embedding HornetQ in the new HornetQ book .. . .. . www.amazon.com dp 1849518408 tag packtpubli-20 http : rads.stackoverflow.com amzn click 1849518408", "Question : I want to put a message out of PL SQL directly into a running Queue which runs on the OpenJMS Server . Is this possible I ve read the Oracle Advanced Queue section but I don t really get it . Could you add some code samples or snippets Thank you very much Regards flo Comment : Worst case scenario : you can write a Java stored procedure that implements the messaging and then provide a PL SQL wrapper for it . Comment : Sounds acceptable . I d mark it as correct answer if you want you d have to write one .. . Answer : Write an HTTP interface which does the job .", "Question : Currently i m working on android project . I have to join a jms server based on openJMS . i ve not found any library anyone know how to implement JMS client on Android thx . Comment : I doubt it s possible . There is no support for the javax . packages in Dalvik . Have you considered using a mediator You could set up a server-side application using a more Android-friendly API to communicate with mobile clients and JMS to communicate with your actual server . .. . Answer : Use the Kaazing WebSocket Gateway Android JMS Client API .. . .. . you can visit Kaazing official website for that . Thanks Comment : Link-only answers are deprecated", "Question : null .. . Answer : enter image description here http : i.stack.imgur.com zTlNf.png .. . .. . I am getting this problem when I try to run FirstClient using OpenJMS . I think it is some problem related to path . can you help me with this as I am new to Java EE and JMS . I am still in learning process . Please apologize me for stupid question . Here is the code image of ClientOne.java enter image description here http : i.stack.imgur.com JZX3F.png .. . .. . Here is the EventMessage.java enter image description here http : i.stack.imgur.com DDmdK.png .. . .. . Thanks Comment : You should have posted the code of your ClientOne file and your configuration instead of the screenshot which does not really help . In any ways the URL to use won t point to a .java file Comment : @bviale I have posted code image now . Thanks", "Question : Currently i m working on android project . I have to join a jms server based on openJMS . i ve not found any library anyone know how to implement JMS client on Android thx . Comment : I doubt it s possible . There is no support for the javax . packages in Dalvik . Have you considered using a mediator You could set up a server-side application using a more Android-friendly API to communicate with mobile clients and JMS to communicate with your actual server . .. . Answer : We have also faced same scenario . You can use the Kaazing WebSocket Gateway to connect Android and other clients to JMS over WebSocket .. . .. . Checklist : Build Android JMS Clients https : kaazing.com doc 5.0 jms client docs dev-android o dev android.html .", "Question : do you have idea if there would be some nice way to browse log JMS queues I m using OpenJMS .. . .. . For topics I can just add one consumer more and that s about it but with queues I haven t finished with a solution yet . I would like to log all the messages in certain queues and topics without popping them from the queue so that the logger counld browse queues invisible . With javax.jms.QueueBrowser i can get a snapshot of the queues but that doesn t seem to provide listener solution - reading all the messages on the queues on infinite-loop again and again and hoping that no messages happen to be both written and consumed before my snapshots - that didn t sound like a good solution . Another option would be to create two queues for each logical queue - one for logger and one for the actual use - logger would then forward the messages to the actual queue - that could maybe work but there could be better solution So if somebody has a solution to get all messages in a queue by an invisible logger or some nice other solution for the logging that d be cool . .. . Answer : If you switch to Apache ActiveMQ http : activemq.apache.org which is a much better more popular open-source JMS provider which also fully supports JMS 1.1 and J2EE 1.4 you get a number of alternatives for monitoring and browsing queues http : activemq.apache.org how-can-i-monitor-activemq.html in particular you can just use the Web Console http : activemq.apache.org web-console.html or JMX http : activemq.apache.org jmx.html Comment : Even though for this particular case this wasn t possible study assignment with JMS implementation restriction in general ActiveMQ seems to be better choise thanks . Comment : +1 for AMQ . I ve used it extensively and love it .", "Question : do you have idea if there would be some nice way to browse log JMS queues I m using OpenJMS .. . .. . For topics I can just add one consumer more and that s about it but with queues I haven t finished with a solution yet . I would like to log all the messages in certain queues and topics without popping them from the queue so that the logger counld browse queues invisible . With javax.jms.QueueBrowser i can get a snapshot of the queues but that doesn t seem to provide listener solution - reading all the messages on the queues on infinite-loop again and again and hoping that no messages happen to be both written and consumed before my snapshots - that didn t sound like a good solution . Another option would be to create two queues for each logical queue - one for logger and one for the actual use - logger would then forward the messages to the actual queue - that could maybe work but there could be better solution So if somebody has a solution to get all messages in a queue by an invisible logger or some nice other solution for the logging that d be cool . .. . Answer : I was also looking for a solution and I came across an OSS project called Hermes http : www.hermesjms.com confluence display HJMS Home . I cannot vouch for it but I am going to be trying it out . The home page makes mention of the ability to browse search queues .", "Question : I have an openjms-0-7-7 instance running on my cloud machine . The connection to the jms-topic happens over tcp . I run the client application on my personal computer at home and I am able to send messages to the topic which then get forwarded correctly to other listeners but I am unable to receive messages . My PC is connected to the internet through a NAT router . I have tried to reproduce this issue using my university network and it all worked fine there I am assigned my own external IP address - no NAT . Am I right thinking that the problem is my router blocking the messages How can I check this and also how can I fix this . Best regards .. . .. . Bart .. . Answer : Your router is most probably blocking incoming JMS messages as it does not know to which local client after NAT it belongs . You will have to configure port forwarding in your router . Please refer to its documentation for that . To know which ports to forward you will have to consult openjms s documentation to see how it assigns ports to clients .", "Question : With regards to the problem Bart is having in NAT router blocking JMS messages http : stackoverflow.com questions 13455209 nat-router-blocking-jms-messages I am trying to find the port-number that clients receive openJMS messages on . After searching for ages on the web I can only find information about the server ports nothing on the client . This is for a tcp connection . If anyone can point me in the right direction I would be very grateful . Thanks .. . Answer : In general the client port-number will be different for each new connection . I could find no evidence that OpenJMS clients use specific port numbers when communicating with servers . Here are a few explanations . 1 . Port Numbers http : publib.boulder.ibm.com infocenter cicsts v3r1 index.jsp topic com.ibm.cics.ts31.doc dfhtl topics dfhtl2d.htm .. . .. . When a client process first contacts a server process it may use a well-known port-number to initiate communication . Well-known port numbers are assigned to particular services throughout the Internet by IANA the Internet Assigned Numbers Authority . The well-known port numbers are in the range 0 through 1023 . .. . Well-known ports are used only to establish communication between client and server processes . When this has been done the server allocates an ephemeral port-number for subsequent use . Ephemeral port numbers are unique port numbers which are assigned dynamically when processes start communicating . They are released when communication is complete . 2 . TCP IP Client Ephemeral Ports and Client Server Application Port Use http : www.tcpipguide.com free t TCPIPClientEphemeralPortsandClientServerApplicatio.htm .. . .. . In contrast servers respond to clients they do not initiate contact with them . Thus the client doesn t need to use a reserved port-number . In fact this is really an understatement : a server shouldn t use a well-known or registered port-number to send responses back to clients . The reason is that it is possible for a particular device to have both client and server software of the same protocol running on the same machine . If a server received an HTTP request on port 80 of its machine and sent the reply back to port 80 on the client machine it would be sending the reply to the client machine s HTTP server process if present and not the client process that sent the initial request . .. . To know where to send the reply the server must know the port-number the client is using . This is supplied by the client as the Source Port in the request and then used by the server as the destination port to send the reply . Client processes don t use well-known or registered ports . Instead each client process is assigned a temporary port-number for its use . This is commonly called an ephemeral port-number . 3 . Similar answer on another question : How to decide on port-number between client and server communication on internet http : stackoverflow.com questions 9788636 how-to-decide-on-port-number-between-client-and-server-communication-on-internet : .. . .. . Also a client can connect to many servers on the same port . When the clients connect they will use a random port on there end . .. . Only the server needs to worry about using a free port and the clients need to know what this port is else they will not be able to connect to your server . Other possible help : .. . .. . How to find number of ephemeral ports in use http : stackoverflow.com questions 10237419 how-to-find-number-of-ephemeral-ports-in-use", "Question : null .. . Answer : With reference to the title I do know that the messages dropped into a queue are stored in a database and the default is Embedded Derby . I am trying to figure out if the messages dropped into a queue could be accessed directly using a DB tool such as DB Visualizer . I did try and connect to the database from DB Visualizer based on the database properties configured in openjms.xml but none of the tables present here seem to contain a message that was dropped into one of the server s queue using a Java Application . Any pointers will be very helpful . Thank you . More information : .. . .. . 1 The database that I had connected to using DB Visualizer was based on the DB url configured in OpenJMS config file 2 I had looked up all the tables of the connected database and nothing seem to contain any reference to the data that was transmitted by my application 3 The queue s counter still stood at 1 so I am inclined to believe that the message still exists in the queue .. . .. . Trace : .. . .. . Connection Properties from DB Visualizer http : i.stack.imgur.com k62sI.png Comment : Yes any JDBC-aware tool should be able to connect to your Derby database using the Derby JDBC driver . Perhaps the reason you didn t see any records is because you looked in the wrong table or the wrong schema . Perhaps the reason you didn t see any records is because your message-queue software deleted those records . Perhaps the reason you didn t see any records is because you didn t connect to the database that you thought you should connect to . If you can provide more information perhaps we can help you further . Comment : @BryanPendleton Thanks for your time I ve added to the case the details you had asked for . Comment : Can you find the derby.log which is associated with your database If so add -Dderby.language.logStatementText true to your application and run it again . Then look in the derby.log to see the SQL statements that are being executed against this Derby database . That will give you more clues about where and how your data is being stored . db.apache.org derby docs 10.11 ref rrefproper43517.html https : db.apache.org derby docs 10.11 ref rrefproper43517.html Comment : @BryanPendleton thanks for that tip . There was infact this command already present in the derby.properties file as a suggestion but commented out . I have enabled it and the produced log is added to the case . The log is quite confusing to me as it displays several commits and roll backs . The DB do not display a table messages at all which is seen in trace . I am also enclosing the connection properties of the database from DB Visualizer . Comment : Several common causes of no such table or table does not exist are described in this related question : stackoverflow.com questions 22996818 http : stackoverflow.com questions 22996818 is-it-necessary-to-create-tables-each-time-you-connect-the-derby-database 23051822 23051822", "Question : I m testing open MQ for send and receive messages in my project . I have no problem to configure it to send a synchronous message but i can t find any way in the official documentation to configure the message to be consumed 15 minutes after the producer send a message and continue call the consumer if an error appears . offical documentation : http : dlc.sun.com pdf 819-7757 819-7757.pdf .. . .. . my method whom send a message .. . .. . My listener : .. . .. . So when i call mdbConn.start the sendMessage is called but i want to call 15 minutes after the call . And whatever it sendMessage does the message is always removed from the queue . How can i keep the messagen in queue to be called later Thanks .. . Answer : The message is removed from the broker queue due to the fact that the session you are using is set to auto acknowledge . This will automatically send an acknowledgement to the broker that the listener has received a message for the consumer with which it is associated once the onMessage method has executed to completion . This then results in the message being removed from the queue . If you manually take over the acknowledgement process you can choose to only acknowledge the receipt of the message at a time of your choosing be that 15 minutes later or whatever criteria you have for the consuming client . Setting the Session Session.CLIENT ACKNOWLEDGE will allow you to do this but then you will have to manually send an acknowledge in your consumer code . By calling acknowledge on the message msg.acknowledge inside your onMessage method within your listener . This will then acknowledge the receipt of messages consumed within that session and remove them from the queue . Pages 46 and 65 in the pdf you quoted are useful for more information on this as is the api http : java.sun.com j2ee 1.4 docs api", "Question : I am adding two JMS messages in the same destination sequentially . Will both of these messages be received in the same order in which I have added them or is there a chance for reverse ordering that is which ever the message is received first in the destination will be retrieved first . I am adding into a destination as : .. . .. . Msg1 and Msg2 will be added sequentially in all the cases like network failures and latency . etc . .. . Answer : Message ordering is not guaranteed and not mandated by the specification and Total JMS Message ordering http : www.devwebsphere.com devwebsphere 2005 06 total jms messa.html explains the details of why . Also see the Stack Overflow post How to handle order of messages in JMS http : stackoverflow.com questions 2252085 how-to-handle-order-of-messages-in-jms .", "Question : In Websphere MQ I can configure a Queue to Trigger an Application when a message arrives . In that way I can have an Application that starts only if needs and I don t have to manage one daemon that wait for message in that queue . More information about here http : www-01.ibm.com support knowledgecenter SSFKSJ 7.5.0 com.ibm.mq.dev.doc q026910 .htm .. . .. . Are There an open-source JMS Provider that bring this functionality I tried ActiveMQ but it hasn t triggers . Comment : Suggest you tag your question so experts in other JMS providers see it as you ve only tagged it for websphere-MQ and you already know the answer for that one : - Comment : @MoragHughson Thanks I added those that exist. . Comment : Doesn t websphere MQ just send a new message to a trigger queue when there is a message in the main queue How is that different from starting your real application thread from the onMessage method of a trigger thread onMessage is part of JMS so all the JMS clients implement it . You could even have a trigger client generate a new trigger message in a new queue if that is absolutely necessary . Comment : @RaGe yes it s seems acceptable . Could you try to explain in an answer maybe with some reference When arrives a message and myApplication is still in execution WMQ doen t launch it again it s supposed that the user application consume all messagges in the queue.Can I expect similar behavior Or all messages call onMessage .. . Answer : qpid does not have a websphere-MQ like monitor trigger feature . I know ActiveMQ doesn t either and I suspect this may be true of other JMS providers as well . However it is possible to roll out your own monitor-trigger . A homebrew monitor-trigger would then become an application process albeit light-lightweight that you will have to manage though would you be better off managing an actual application thread itself .. . .. . To implement a monitor trigger in qpid : .. . .. . JMS spec defines an asynchronous delivery mode . See section 4.5.2 http : docs.oracle.com cd E19957-01 816-5904-10 816-5904-10.pdf . So you should be able to do this with any JMS provider . An asynchronous listener https : docs.oracle.com cd E19798-01 821-1841 bncfh index.html implements the javax.jms.MessageListener interface . The method onMessage needs to be implemented and serves as the callback function when any new message appears on the queue it is subscribed to . Suppose the main application queue is mainQ . You create a new MessageListener for mainQ in browse mode - so as to not actually consume any messages from mainQ .. . .. . In the onMessage function you can either create a new message in a separate triggerQ or you can skip this step and get right to starting up the application . See full working sample here : https : github.com foragerr qpid-trigger-demo" ] }
[ "yes-answer-long", "yes-answer-short" ]
implementation
UNK_RELATION
restkit@web-services@99
restkit -- restkit is an objective-c framework for ios that aims to make interacting with restful @placeholder simple fast and fun .
{ "confidence": [ 46.77728271484375, 46.254329681396484, 45.519020080566406, 45.04234313964844, 43.6710319519043, 42.858917236328125, 42.857051849365234, 42.541351318359375, 42.541351318359375, 42.29669189453125, 42.150489807128906, 42.06932830810547, 41.829994201660156, 41.17671585083008, 40.95686340332031, 40.76272964477539, 40.63636779785156, 40.496192932128906, 39.99412155151367, 39.72797393798828, 39.72797393798828, 39.52442932128906, 39.409446716308594, 39.313636779785156, 39.313636779785156, 39.088951110839844, 39.063880920410156, 38.65203857421875, 38.65203857421875, 38.65203857421875, 38.64101028442383, 38.64101028442383, 38.50431823730469, 38.48807144165039, 38.446876525878906, 38.16757583618164, 38.16757583618164, 37.94896697998047, 37.85905838012695, 37.7218017578125, 37.61397933959961, 37.551361083984375, 37.47927474975586, 37.45841598510742, 37.45841598510742, 37.45841598510742, 37.45841598510742, 37.45841598510742, 37.33125686645508, 37.33125686645508, 37.31321716308594, 37.28302764892578, 37.19226837158203, 37.09359359741211, 37.09359359741211, 37.09359359741211, 37.01075744628906, 37.01075744628906, 37.01075744628906, 37.01075744628906, 37.0037727355957, 36.96662139892578, 36.910072326660156, 36.845298767089844, 36.75718688964844, 36.63592529296875, 36.6163330078125, 36.60688400268555, 36.528175354003906, 36.528175354003906, 36.528175354003906, 36.37901306152344, 36.33404541015625, 36.172218322753906, 36.172218322753906, 36.172218322753906, 36.172218322753906, 36.172218322753906, 36.172218322753906, 36.172218322753906, 36.14603805541992, 36.140384674072266, 36.140384674072266, 36.0837516784668, 36.04554748535156, 36.0219841003418, 35.979835510253906, 35.9109992980957, 35.9109992980957, 35.9109992980957, 35.790122985839844, 35.74063491821289, 35.67290496826172, 35.64485168457031, 35.63898849487305, 35.5065803527832, 35.41326141357422, 35.41326141357422, 35.41326141357422 ], "content": [ "Restkit + RESTful API or TouchDB + CouchDB", "I already used Restkit in antoher Objective-C project but here I m not able to integrate Restkit in my framework .", "I am using Restkit framework for RESTFUL web service .", "There are two pull requests at the moment that might help - github.com RestKit RestKit pull 1537 https : github.com RestKit RestKit pull 1537 and github.com RestKit RestKit pull 1541 https : github.com RestKit RestKit pull 1541", "Finally Raywenderlich has updated tutorial for new RestKit http : www.raywenderlich.com 58682 introduction-restkit-tutorial .. . .. . RestKit 0.20 http : blog.alexedge.co.uk introduction-to-restkit-0-20 .. . .. . Reskit 0.20 tutorial https : github.com RestKit RKGist blob master TUTORIAL.md .. . .. . Developing RESTful iOS Apps with RestKit by Blake Watters http : code.tutsplus.com tutorials restkit ios-sdk--mobile-4524 http : code.tutsplus.com tutorials advanced-restkit-development iphone-sdk--mobile-5916 .. . .. . http : madeveloper.blogspot.com 2013 01 ios-restkit-tutorial-code-for-version.html .. . .. . finally always follow : https : github.com RestKit RestKit wiki .. . .. . NSScreen is a paid service but its codes are free - https : github.com subdigital nsscreencast .. . .. . NSScreencast tutorials - .. . .. . http : nsscreencast.com episodes 53-restkit-object-manager .. . .. . http : nsscreencast.com episodes 52-restkit-coredata .. . .. . http : nsscreencast.com episodes 51-intro-to-restkit-mapping", "I have used restkit http : restkit.org framework in ios .", "I am pretty new with RestKit and iOS", "As of RestKit 0.20.0-pre2 https : github.com RestKit RestKit wiki Object-mapping", "github.com RestKit https : github.com RestKit RestKit centralize-configuration-in-an-object-manager", "I m using RestKit 0.20.3 and RestKit Testing 0.20.3 .", "check out this site too restkit-tutorials.com http : restkit-tutorials.com", "I m looking at github.com RestKit RestKit issues 1286 https : github.com RestKit RestKit issues 1286 without success .", "EDIT : .. . .. . For more info solution : https : github.com RestKit RestKit issues 1290", "Check out the wiki here : github.com RestKit RestKit wiki Object-Mapping relationships https : github.com RestKit RestKit wiki Object-Mapping relationships .", "But it is integrated with Restkit 0.10.1 .", "Fixing the first link from alexedge : github.com RestKit RestKit issues 832 https : github.com RestKit RestKit issues 832 and then remove the script from the build phases", "Without a change to RestKit this is not possible .", "But in os x - restkit not including restkit coredata and restkit network .", "It is looks like your case : github.com RestKit RestKit wiki https : github.com RestKit RestKit wiki Object-mapping composing-relationships-with-the-nil-key-path", "restkit-tutorials.com code-organization-in-restkit-based-app http : restkit-tutorials.com code-organization-in-restkit-based-app -- I am coding according to this tutorial .", "here github.com RestKit RestKit issues 1719 https : github.com RestKit RestKit issues 1719 the second post actually describes the reason for the behavior .", "Is that possible with RESTKit", "i am learning restkit api .", "check this link github.com RestKit https : github.com RestKit RestKit post-an-object-with-a-file-attachment", "I have fixed this issue to change the Header Search Path .. . .. . Note : RestKit-RestKit-c19a500 this is my RestKit folder name .", "I m using Core Data with RestKit .", "if you want the response as an object use the RKObjectManager github.com RestKit RestKit wiki Object-mapping https : github.com RestKit RestKit wiki Object-mapping", "If not should i update RESTKit and are there any work arounds for using RESTKit with IPV6", "the restkit google group is a better place for restkit specific stuff .", ".. . .. . https : github.com AFNetworking AFNetworking .. . .. . https : github.com RestKit RestKit", "Has anything changed in restkit", "It s called RestKit Relationships .", "I have a iOS Restkit related question .", "I found a very good Raywenderlich http : www.raywenderlich.com 13097 intro-to-restkit-tutorial restkit tutorial .", "Update .. . .. . So I had a look through RKMappingTest.h https : github.com RestKit RestKit blob development Code Testing RKMappingTest.h and found the rootKeyPath https : github.com RestKit RestKit blob development Code Testing RKMappingTest.h L181 .", "Check the Mapping Values without Key Paths section here https : github.com RestKit RestKit wiki Object-mapping .", "See this https : github.com RestKit RestKit wiki Object-mapping mapping-values-without-key-paths reference .", "Ah I see It is this Pull Request that will fix it it is still open though : github.com RestKit RestKit pull 2434 https : github.com RestKit RestKit pull 2434", "I m inheriting the support of an existing iOS app using RestKit and I m new to RestKit .", "My restkit import looks like import RestKit RestKit.h", "I am using RestKit 0.26.0 in a mixed Swift Obj C project .", "this answer has nothing to do with restkit", "Is this possible with RestKit", "RestKit includes it. . AHTTPClient.h", "RestKit is open-source .", "This is a bug currently in RestKit .", "Select Restkit project .. . 2 .", "This works for Restkit 0.21.0 :", "And i want to learn a RestKit-0.20.0-pre6 .", "I found code below to work with RestKit 0.20 .", "I use cocoapods to install RestKit .", "Adapting your example it would give something like : .. . .. . If authentication works having a look at the RESTKit wiki should give you the next hints to build correct mappings : https : github.com RestKit RestKit wiki Object-mapping", "Is it removed in RestKit 0.2", "I am quite new to RestKit .", "What version of RestKit are you using", "Directly from Blake the creator of RestKit", "I want to know if there is any api in RestKit for this problem", "I am trying to migrate to RestKit 0.20-pre2 .", "RESTKit relies on AFNetworking for its network layer .", "RestKit does not use AFNetworking 2 just yet .", "I am using the Facebook iOS SDK the AWS iOS SDK and RestKit .", "I am learning iOS development and would like to experiment with RestKit .", "I had to upgrade the RestKit framework in a customer s app to the 0.2x version .", "Note : I also tried the artificial identifier attributes as per this issue : github.com RestKit RestKit issues 1604 https : github.com RestKit RestKit issues 1604 but it s not working as of 0.24.1 What happens is I end up with only one order-object and I get duplicates every new request .", "I know restKit have a property defaultHTTPEncoding in RKClient https : github.com RestKit RestKit commit 0ead8a922219ec42ec6dae6ebe59139a1fd589ae how can I use this and can it helps me", "I am using RestKit framework and i want to make a POST HTTP request .", "I am not an expert at Objective C Cocoapods or RestKit so looking to see if anyone has gotten this working and I am doing something wrong or if it requires a change made to RestKit .", "I checked RestKit RestKit just now and it doesn t look merged yet", "RestKit should have no impact .", "A specification for RestKit is available .", "I use RestKit CoreData .", "I m trying to make the magic happen with RestKit and Rails .", "After reading the Object Mapping-Guide on GitHub https : github.com RestKit RestKit wiki Object-mapping for RestKit my problem didn t disappear so perhaps somebody can say if RestKit could deal with the following idea .", "@GustavoBarbosa you might want to check out this https : github.com RestKit RestKit issues 1904 and the other issue linked on it .", "I am reviving an old project that originally used RestKit 0.10 and now am using RestKit 0.24 .", "In RestKit 0.10 properties without values were not sent to the server whereas it seems in RestKit 0.20 they are .", "Check this https : github.com RestKit RestKit wiki Object-mapping key-value-validation .", "Even the RestKit Class Reference http : cocoadocs.org docsets RestKit 0.21.0 Classes RKPropertyMapping.html says that I can set it .", "Plus isn t the RKValueTransformers project https : github.com RestKit RKValueTransformers just an extract of the value transformation feature already built into RestKit", "Disclaimer : I am the principal developer of RestKit .. . .. . First of all what version of RestKit are you using", "From the Wiki https : github.com RestKit RestKit wiki Using Multiple Base URLs and Multiple Object Managers https : github.com RestKit RestKit wiki Using-Multiple-Base-URLs- 28and-Multiple-Object-Managers 29 : .. . .. . The first object manager you create will be the shared singleton RestKit uses by default .", "I m totally new to RestKit and am struggling somewhat .", "I am using RestKit and realm.io together .", "If you just want to send a simple string and get a simple string in the response then you don t really need RestKit .", "I am relatively new to Objective-C and am attempting to use RestKit to receive a JSON response from a web service .", "A quick look here Restkit 0.20 basic operation http : stackoverflow.com questions 14737936 restkit-0-20-basic-operation 14769873 14769873", "I use RestKit in my App and need to link the Bump framework too .", "RestKit I use in my application .", "Restkit needs a connection to fully work .", "no RestKit will save after it completes the mapping .", "So I think this would work : .. . .. . RestKit is a modern Objective-C framework for implementing RESTful web-services clients on iOS and Mac OS X .", "I am fairly new to RestKit and in general with synching core-data with a RESTful web service .", "Im using RESTkit .. . .. . Like i say before im trying to do a JSON login post but the different examples doesnt work for me im looking for some simple way to do it on restkit 0.20 .", "How do I do this in RestKit", "This tutorial might also help : .. . .. . http : madeveloper.blogspot.com 2013 01 ios-restkit-tutorial-code-for-version.html", "See this RestKit article for more information about mapping in this type of situation : Mapping values without key paths https : github.com RestKit RestKit wiki Object-Mapping mapping-values-without-key-paths .. . .. . However -- if you have control over the JSON structure I recommend creating two new Objective C classes perhaps named HtmlAttribution and Type each with one property create mappings for those classes and set the relationships https : github.com RestKit RestKit wiki Object-Mapping relationships in RestKit .", "I m using RestKit 0.25", "This isn t a problem with RestKit .", "This is from the RestKit docs ." ] }
{ "confidence": [ 63.469383239746094, 58.95744705200195, 55.1892204284668, 51.392799377441406, 51.14932632446289, 50.99433898925781, 50.520965576171875, 50.00171661376953, 49.3133544921875, 48.726783752441406, 48.564884185791016, 48.27534103393555, 47.621864318847656, 47.39937973022461, 47.19318771362305, 46.76583480834961, 46.699066162109375, 46.689876556396484, 46.36831283569336, 46.18406677246094 ], "content": [ "Question : Im following the steps of this old answer . http : stackoverflow.com questions 9102262 do-a-simple-json-post-using-restkit The main issue is that RKObjectLoaderDelegate was removed and im cannot find any alternative that works for me . Im trying to connect to a server with mail password sending a post request to a json . Also i will be using json to get data from the database after i test this works correct . Someone can help me with this Im using RESTkit .. . .. . Like i say before im trying to do a JSON login post but the different examples doesnt work for me im looking for some simple way to do it on restkit 0.20 . I know how to do a GET but not a POST . Comment : Please give more details of the mail password . Are these specified as headers JSON parameters what Comment : Im sending that as a JSON parameters to test that the app is connecting to the server . Comment : Ok so what is the problem Show your current code and give details of the response what you expected but didn t get and errors seen . Comment : Like i say i was trying to do the same of this link http : stackoverflow.com questions 9102262 do-a-simple-json-post-using-restkit but RKObjectDelagate was removed and propierties like RKClient doesnt work . So im trying to do the login post in a way similiar to that example . Comment : Try finding a guide for the current version of RestKit not the old version . Look specifically at how blocks are used with RKObjectManager . .. . Answer : I guess Restkit has included the AFNetworking 2.0 Library . So I think this would work : .. . .. . RestKit is a modern Objective-C framework for implementing RESTful web-services clients on iOS and Mac OS X . It provides a powerful object mapping engine that seamlessly integrates with Core Data and a simple set of networking primitives for mapping HTTP requests and responses built on top of AFNetworking .. . .. . Post Example : Comment : RestKit does not use AFNetworking 2 just yet . Comment : the current version of RestKit 0.24.1 doesn t have the AFHTTPRequestOperationManager class . : l", "Question : i am learning restkit api . I found a very good Raywenderlich http : www.raywenderlich.com 13097 intro-to-restkit-tutorial restkit tutorial . But it is integrated with Restkit 0.10.1 . And i want to learn a RestKit-0.20.0-pre6 . If any one has good tutorial like this in iOS . Please share . Thanks in advance . .. . Answer : Finally Raywenderlich has updated tutorial for new RestKit http : www.raywenderlich.com 58682 introduction-restkit-tutorial .. . .. . RestKit 0.20 http : blog.alexedge.co.uk introduction-to-restkit-0-20 .. . .. . Reskit 0.20 tutorial https : github.com RestKit RKGist blob master TUTORIAL.md .. . .. . Developing RESTful iOS Apps with RestKit by Blake Watters http : code.tutsplus.com tutorials restkit ios-sdk--mobile-4524 http : code.tutsplus.com tutorials advanced-restkit-development iphone-sdk--mobile-5916 .. . .. . http : madeveloper.blogspot.com 2013 01 ios-restkit-tutorial-code-for-version.html .. . .. . finally always follow : https : github.com RestKit RestKit wiki .. . .. . NSScreen is a paid service but its codes are free - https : github.com subdigital nsscreencast .. . .. . NSScreencast tutorials - .. . .. . http : nsscreencast.com episodes 53-restkit-object-manager .. . .. . http : nsscreencast.com episodes 52-restkit-coredata .. . .. . http : nsscreencast.com episodes 51-intro-to-restkit-mapping Comment : Fixing the first link from alexedge : github.com RestKit RestKit issues 832 https : github.com RestKit RestKit issues 832 and then remove the script from the build phases Comment : check out this site too restkit-tutorials.com http : restkit-tutorials.com Comment : There is a brand new tutorial as of February 2015 on using RestKit with CoreData medium.com ios-os-x-development https : medium.com ios-os-x-development restkit-tutorial-how-to-fetch-data-from-an-api-into-core-data-9326af750e10", "Question : I have two projects which the RestKit framework http : restkit.org . One project works without problems but another project fails as soon as the RestKit framework is used . I found out that the failing code is this : .. . .. . The MD5 method is a category method and is imported like this : .. . .. . However in one project I keep getting the following error : .. . .. . I understand the basics of categories and that they can be loaded at runtime but I don t see why the category does not get loaded in this case . These are the files on github : NSString+MD5.m https : github.com RestKit RestKit blob master Code Network NSString+MD5.m NSString+MD5.h https : github.com RestKit RestKit blob master Code Network NSString+MD5.h .. . Answer : Make sure you have the -ObjC flag enabled . Or it will not link categories in a static library . Objective-C categories in static library http : stackoverflow.com questions 2567498 objective-c-categories-in-static-library", "Question : i am learning restkit api . I found a very good Raywenderlich http : www.raywenderlich.com 13097 intro-to-restkit-tutorial restkit tutorial . But it is integrated with Restkit 0.10.1 . And i want to learn a RestKit-0.20.0-pre6 . If any one has good tutorial like this in iOS . Please share . Thanks in advance . .. . Answer : I found code below to work with RestKit 0.20 . The other code found in RayWenderlich s tutorial for Location.m Location.m Venue.m and Venue.h should still be all right . This tutorial might also help : .. . .. . http : madeveloper.blogspot.com 2013 01 ios-restkit-tutorial-code-for-version.html Comment : Very nice tutorial . Thank you . Comment : cool .. . very helpful . . thanks so much .", "Question : i am learning restkit api . I found a very good Raywenderlich http : www.raywenderlich.com 13097 intro-to-restkit-tutorial restkit tutorial . But it is integrated with Restkit 0.10.1 . And i want to learn a RestKit-0.20.0-pre6 . If any one has good tutorial like this in iOS . Please share . Thanks in advance . .. . Answer : I asked a similar question and managed to work it out just as someone gave me the answer Typical A quick look here Restkit 0.20 basic operation http : stackoverflow.com questions 14737936 restkit-0-20-basic-operation 14769873 14769873", "Question : In my iOS app I am trying to get and post data from a RESTful server . I think for that both RestKit and AFIncrementalStore are good candidates . However I also need to be able to save data offline and push it to the server when the app is online . I am trying to understand which is a better framework to use for the application . Also from some of the online resources http : sealedabstract.com code nsincrementalstore-the-future-of-web-services-in-ios-mac-os-x it seems that using faulting on AFIncrementalStore could potentially cause the thread handling ManagedContext usually the mainThread to get stuck while furnishing the network request to get a property . Is it a big deal PS : Adding afnetworking tag since afincrementalstore tag is not available .. . Answer : AFIncrementalStore works within Core data sending back to your Web service . It uses the relatively new API Apple provides called NSIncrementalStore . RestKit works from outside Core Data binding HTTP requests to Core Data loosely using the object mapping architecture RK provides . Here are some pros cons for both : .. . .. . New RestKit version 0.2.x is ligther than the 0.1 version .. . RestKit now use the really good AFNetworking for all his HTTP request work just like AFIncrementalStore . ResKit has A LOT of test-coverage .. . AFIS is really light since it s built on NSIncrementalStore .. . AFIS give you a bit more flexibility since you re pretty much on your own .. . RestKit is pretty huge and can be scary at first .. . RestKit is a complete solution but takes time to fully wrap your head around all its concepts .. . .. . My final recommendation would be to take the time and try both . What I can confirm is you ll need to drop a bit more lines-of-code using AFIS since it does not take you by the hand as much as RestKit so it s really a matter of preference . Hope this will help you make the right choice Comment : Thanks for sharing your point of view . I ll start to try with RestKit since the advantage AFIncrementalStore brings to table is property faulting which is not high in my feature priority right now .", "Question : Is it possible use RestKit to POST a request to a server that expects a JSON list of dictionaries : .. . .. . The wiki : https : github.com RestKit RestKit wiki Object-Mapping mapping-without-kvc describes how this can be done on a response - mapping from JSON to objects - but not the other way around - objects to JSON . To complicate the problem I think the URL request is of the form http : www.example.com some-name upload - not very restful . Thanks for any help . Edit : .. . .. . Thanks Wain to force me to look deeper to find a solution - I wasn t sure it was possible . Based on RestKit issue 398 documented by blakewatters I solved the problem like this : .. . .. . I think key was to put myObject in an array and then set rootKeyPath and parameters to nil . .. . Answer : Sure it can it s basically the same thing mapping then use inverseMapping and a request descriptor instead of a response descriptor . You ll want a response descriptor anyway as you need to handle the response.. .", "Question : Im following the steps of this old answer . http : stackoverflow.com questions 9102262 do-a-simple-json-post-using-restkit The main issue is that RKObjectLoaderDelegate was removed and im cannot find any alternative that works for me . Im trying to connect to a server with mail password sending a post request to a json . Also i will be using json to get data from the database after i test this works correct . Someone can help me with this Im using RESTkit .. . .. . Like i say before im trying to do a JSON login post but the different examples doesnt work for me im looking for some simple way to do it on restkit 0.20 . I know how to do a GET but not a POST . Comment : Please give more details of the mail password . Are these specified as headers JSON parameters what Comment : Im sending that as a JSON parameters to test that the app is connecting to the server . Comment : Ok so what is the problem Show your current code and give details of the response what you expected but didn t get and errors seen . Comment : Like i say i was trying to do the same of this link http : stackoverflow.com questions 9102262 do-a-simple-json-post-using-restkit but RKObjectDelagate was removed and propierties like RKClient doesnt work . So im trying to do the login post in a way similiar to that example . Comment : Try finding a guide for the current version of RestKit not the old version . Look specifically at how blocks are used with RKObjectManager . .. . Answer : First i created a class called Login Request . LoginRequest.h .. . .. . LoginRequest.m .. . .. . Then i made a LoginManager class to do the connection . LoginManager.h .. . .. . LoginManager.m .. . .. . And finally i call the method on viewDidLoad on MasterViewController.m Comment : +1 but have a question : does it mean that I need to create a class like LoginRequest for each simple POST request That looks like overkill to me comparing to jQuery.. . . Is there a simpler way Can I just create simple NSDictionary with parameters send it to a server and then get a result into an object in Objective-C", "Question : null .. . Answer : I m developing an app with a Today Extension . To share code between these two projets I would like to use my own Cocoa Touch Framework . I have the following project structure in Xcode : .. . .. . Project for the app .. . Project for the today-extension .. . Project for shared code Cocoa touch framework .. . .. . To test my structure I created a swift class in the framework and I accessed it from the app and from the extension . Everything works fine . But now I would like to integrate Restkit into my framework . My goal is to have a framework which have a Core Data Model and which can retrieve data from a json webservice . I already used Restkit in antoher Objective-C project but here I m not able to integrate Restkit in my framework . I didn t find any good example on the internet for now . For now I just added Restkit in my project with CocoaPods .. . .. . Do you know how I can do it or where to start Do you have an example to integrate Restkit in a Swift framework Thanks for your help .", "Question : I have the prelease version of cocoapods installed 0.26 and trying to install the latest version of RestKit . In my podfile I ve turned on the use frameworks flag to force cocoapods to use dynamic frameworks . Putting import RestKit in my swift file causes a build failure : RKValueTransformers.h file-not-found . RestKit is set up to use a handful of other libraries and include their headers into the project AFNetworking RKValueTransformers TransitionKit etc . According to an article for cocoapod authors http : blog.cocoapods.org Pod-Authors-Guide-to-CocoaPods-Frameworks I believe the issue is that the way to import and include these libraries need to change to work with dynamic frameworks and cocoapods . Either the autogenerated umbrella file needs to import these files for use or RestKit needs to import these libraries using @import RKValueTransformers or import RKValueTransformers RKValueTransformers.h . I am not an expert at Objective C Cocoapods or RestKit so looking to see if anyone has gotten this working and I am doing something wrong or if it requires a change made to RestKit . Comment : Hey did you get succeed Comment : Leaving an answer below .. . Answer : This is a bug currently in RestKit . Sam Giddin https : github.com segiddins has an open PR https : github.com RestKit RestKit pull 2145 right now that fixes the issue . I made a fork of RestKit that I m using in my project with the commits from the PR to get around this issue until they merge in the fixes and make a new release . Comment : The PR you referenced appears to be exactly my problem but it does not work for me even pulling from development branch . Are you still using your fork Comment : Same for me pulling from dev branch doesnt solve the problem . Did you guys come up with something Comment : Its year old question I m trying using RESTkit latest version in swift but still facing same issue how can I fix it", "Question : I use AFNetworking to write a RESTful client . An then use JSONKit to parse the response data to a NSDictionary . Example : .. . .. . .. . .. . How can I use the benefit of RKObjectMapping from RESTKit as a standalone library to do the object-mapping Thanks in advance . Comment : Be specific about what your problem is and what you ve tried to fix your problem . Comment : I ve updated my question . Thanks . .. . Answer : If you use RestKit it will replace all of your current code . RestKit is built on top of AFNetworking so you would post your object from RestKit and map the resulting data back into that object . Whether this is useful depends on the purpose of your POST . What you have currently can be trimmed a little if you don t use RestKit by using AFJSONRequestOperation . In general the question boils down to : .. . .. . 1 . What is the data you re posting and expect to receive .. . 2 . How complicated is your mapping .. . .. . If the mapping isn t complex RestKit is probably overkill . From your code it looks like you re making a simple post so that should be fine and you would construct your mappings to update the object you re posting even though no data was actually taken from that object to make the request . Comment : I know RESTKit is build on top of AFNetworking . But RESTKit is too heavy for me to use . But I can t find a good-enough object-mapping library than RESTKit . So I m thinking only to use the Object-mapping benefit from RESTKit . And AFJSONRequestOperation does not do the object-mapping jobs . Comment : RestKit only adds mapping on top really if you want to use the mapping then the easiest approach is to directly use RestKit for everything than trying to do the download yourself and then push that data into RestKit which is contrived .", "Question : null .. . Answer : Edited : Removed initial extraneous information that was unrelated . I have inherited an Objective C project that includes two separate libraries . There are a set of dependencies that is causing errors of symbol duplication with samples shown below . duplicate symbol OBJC CLASS RKManagedObjectSeeder in : libs for device libs RESTKit Debug-iphoneos libRestKitCoreData.a RKManagedObjectSeeder.o libs WebServiceLibrary libWebServiceLibrary.a RKManagedObjectSeeder.o duplicate symbol OBJC IVAR RKManagedObjectSeeder . delegate in : libs for device libs RESTKit Debug-iphoneos libRestKitCoreData.a RKManagedObjectSeeder.o libs WebServiceLibrary libWebServiceLibrary.a RKManagedObjectSeeder.o duplicate symbol OBJC IVAR RKManagedObjectSeeder . manager in : libs for device libs RESTKit Debug-iphoneos libRestKitCoreData.a RKManagedObjectSeeder.o libs WebServiceLibrary libWebServiceLibrary.a RKManagedObjectSeeder.o .. . .. . This is the RESTKit Project target that had bitcode disabled same with the singular main target of the base project using RESTKit . These errors appeared after solving a bitcode issue by setting ENABLE BITCODE to No as suggested here : New warnings in iOS 9 http : stackoverflow.com questions 30848208 new-warnings-in-ios-9 I think that this is unreleated but I leave it here in case there is some correlation .. . .. . And about 200 more errors of identical nature . The setup is like this : .. . .. . Main project - Includes both RESTKit and WebServices libraries . WebServices project includes RESTKit .. . RESTKit project is built separately and included and referenced in BOTH main project like already stated but it s a separate library . I know the project was working at some time because the app is on the app-store but sparse comments and a lot of code are making it difficult to see how it ever did .", "Question : How should I use RestKit to fetch a JSON array of strings like this : .. . .. . I tried to make an object mapping but since there s no key path or attribute I don t know what to map . I don t even need a mapping the result could just be an array or a dictionary . Is there a way to achieve that EDIT : .. . .. . For more info solution : https : github.com RestKit RestKit issues 1290 .. . Answer : You need to create a mapping with a nil keypath . This instructs RestKit to directly map the string values into your destination objects . See this https : github.com RestKit RestKit wiki Object-mapping mapping-values-without-key-paths reference .", "Question : null .. . Answer : I have ios version of my app and start doing os x version . On ios all work good . But in os x - restkit not including restkit coredata and restkit network . In appDelegate.h I include core-data framework also I include core-data framework in .pch file . After I have this class : .. . .. . But xcode say that RKEntityMapping - expected a type . If I include or that works . But I think that it is incorrect . Similar problem in othes classes : RKManagedObjectStore RKManagedObjectRequestOperation . For example next prodblem with RKManagedObjectRequestOperation prodblem with RKManagedObjectRequestOperation http : i.stack.imgur.com Hm1tr.png .. . .. . All this code work in ios not contain specifix os x constructions but dont work and I dont understand why . What I doing incorrect Comment : It is a cocoa pods . I execute pod update on ios project and its not compiling with similar error . WTF Well so where backward compatibility :", "Question : I m using RestKit http : restkit.org api latest and i want to parse and save elements to core-data . I have two json files : .. . .. . First Category : .. . .. . And second Elements : .. . .. . So the basic idea is that every category have some elements inside . So this is my CoreData struct : enter image description here http : i.stack.imgur.com iHkHQ.png .. . .. . I ve download the restkit example and use TwitterCoreData sample . My code is : AppDelegeta.m .. . .. . and ViewController.m : .. . .. . And log for mapping show me the nil . How to save data from my first json category into core-data using restkit Rememnber that i don t have Elements list yet . When i use create new file to create NEManagedObject subclass i ve got Elements class . Comment : as a question : how about RestKit Is it really helpful for you .. . Answer : I used RESTKit until the .20 release a few months ago . In all honesty while this library has great intentions in my experience it ends up wasting far more time than it was ever meant to save me . I have used it with API s created with .NET MVC PHP python Django TastyPie and hacked it to do some stuff with Twitter . This all ended up being a very interesting academic exercise but in the end was little more than that . Both the old new versions of RESTKit assume ALOT about the way your API is going to be responding to requests . With the .10 release there was a fair amount of customizability through the use of Obj-C Blocks . I could intercept the request response of an RKRequest and pretty much override anything that RESTKit was going to do . This seemed fairly awesome . Now with the .20 release everything got very.. . clever clever code is usually not good . Instead of trying to remain generic and malleable RK now does all kinds of convenient things for you . This effectively takes away your ability to jam it into whatever non-idealized and realistic shape your API has taken . At this point I have gone back to writing all of my code using AFNetworking https : github.com AFNetworking AFNetworking . I d rather take the extra time to write my own parsing code and know that when my Unit Tests pass I m done . NOT spend hours trying to get RK to log out meaningful error messages . The other real problem with RK was that it does not account for being offline . It was designed with the assumption that your application is ALWAYS online and simply mirrors a persistant store in the sky . My applications all handle content-creation on an iOS device which MAY OR MAY NOT be online at the time of content-creation . This is the main reason I was customizing RK .10 . When I saw the changes in .20 I decided enough was enough and went back to doing things the old way . Maybe I ll just write my own CRUD RESTful framework cause I m starting to get tired of spending time using very specialized libraries that try to do everything with as little responsibility being left to the application developer as possible . Frameworks like this tend to be Swiss Army Knives . They look really awesome on paper THEY CAN DO ANYTHING then you actually try to cut something and the blade is too dull or breaks off . Good software does very few things very well and if it sounds too good to be true it probably is . Comment : I understand you point of view . This would deserve some debate . As an Objective-C beginner coming from python world I admit I haven t yet been able to do anything with RestKit . BUT trying to be the devil s advocate we can skip whatever suggested RK s smart layer we want and it seems to be designed also for offline content with his CoreData integration https : github.com RestKit RestKit wiki Object-mapping core-data isn t it I na vely tend to think that these upvotes are coming more from people discouraged by the complexity than from people understanding the whole stack . Comment : As a python programmer perhaps you are familiar with Django Django is a pretty large framework but it is EASY and very DRY . I love Django so at least for me personally the size of RESTKit has little to do with my issue . I have an issue with the overcomplicated design . I built my first Django App in about an hour with a working ORM . I built my first RESTKit service on a real API in just over 4 hours . And RESTKit is really a toolkit for one kind of problem while Django is a full application framework . I m talking about the simplicity of good design . Comment : And I should really say my first production RESTKit service took about 4 hours to get ANYTHING working . I worked on getting 6 different endpoints working with no mapping issues for over 2 weeks . Thats too much If I were smart I would have just written my own client like I have in all my other software before RK . Comment : I m indeed a Djangoist too my favorite framework by far . I try to avoid comparison between Django and Xcode or Python and Objective-C because I would be discouraged to quickly : I did noticed that I spend about 20x more time to do every little thing in Objective-C than in Python . And I think that RK sadly inherits from this verbosity and heaviness . Maybe RK is not as much customizable as it could but it seems also largely disadvantaged by the supporting language and Apple standards.. . Comment : Indeed please don t let what I ve said steer you away from Objective-C.. . its awesome lol . The verbosity of ObjC is made up for by the fact that when well-written which most is it is incredibly readable . Cocoa in general is an amazing example of strict design guidelines and a well thought out framework . Xcode also makes up for the verbosity with autocompletion . In Python land I am a ViM guy but I would only use Xcode for ObjC", "Question : I am having this problem with a brand new project . This problem happens with both RestKit and Facebook SDK . Strangely SwiftyJSON works just fine . I create a brand new swift project and a Podfile with : .. . .. . After creating that file I run pod install and reopen xcode with the test-fb-swift4.xcworkspace file . Now inside my controller I put a import RestKit and I get the error No such module RestKit . I have tried many different ways to format the Podfile even down to very simple versions like : .. . .. . I have tried adding and removing the use frameworks with and without the target . With and without the : inhibit warnings . I am running CocoaPods 0.36.4 and tried the latest rc build same deal . The Objective-C version from another project runs fine . This is my first project using Swift and I am stuck on this issue . Comment : Show how you re importing . .. . Answer : Your xcode is not updated to the version expected by the library framework", "Question : Apple from this June is forcing all applications to work on an IPV6 only network . Apple also does all their testing for the applications review process on IPV6 only networks . I am using RESTKit 0.24.0 to do the RESTFul interactions in my application and i wanted to know the following : .. . .. . 1.How do you check if an application will work on an IPV6 only network with a remote-server I have tried setting up a IPV-6 only network using internet sharing on my mac https : derflounder.wordpress.com 2015 10 05 enabling-an-ipv6-only-network-using-internet-sharing-on-el-capitan and the application works fine . Is this enough proof that the app will work on an IPV6 only network with a remote web server 2.Does RESTKit 0.24.0 support IPV6 networking . If not should i update RESTKit and are there any work arounds for using RESTKit with IPV6 Also i am from India where the adoption for IPV6 at this point is really poor . Comment : Just use latest iOS base SDK latest xcode . And your app has already supported IPV6 . If apple reviewers rejected your app because blah blah blah... . IPV6 . Just ask them double check and your app will pass . I tried it and success Good luck Comment : Yes i had a slight snag that our web servers werent working on IPV6 . Once i fixed that the app review passed and got accepted Thank you Comment : @user19342 : Your servers don t need to support IPv6 .. . Answer : How do you check if an application will work on an IPV6 only network with a remote-server .. . .. . Your solution seems fine Apple recommends a similar setup https : developer.apple.com library ios documentation NetworkingInternetWeb Conceptual NetworkingOverview UnderstandingandPreparingfortheIPv6Transition UnderstandingandPreparingfortheIPv6Transition.html apple ref doc uid TP40010220-CH213-SW16 . Does RESTKit 0.24.0 support IPV6 networking . RESTKit uses AFNetworking as its underlying network stack so it should not be affected by the transport characteristics of the underlying network . It appears that AFNetworking supports IPv6 although there is some forum chatter about the correctness of the reachability implementation and no official documentation that I could find that explicitly asserts support . Bottom line as long as you are using host name rather than address literals to retrieve your REST resources you should be fine--especially as your testing is working as expected . Comment : Thanks for the response . Our web servers weren t prepped to handle IPV6 once we fixed that the app got accepted . I did not have to change from RESTKit or upload a new binary Thanks for the response .", "Question : I am fairly new to RestKit and in general with synching core-data with a RESTful web service . To simplify this I have decided to use RestKit for only backing up the local store to our rails backend . So here are two questions that are currently on top of my list : .. . .. . 1 What is the best practice for using RestKit to backup core-data I was thinking to create a local context that my apps uses to do all the fetch create update delete operations locally and persist them on the persistent store Then in background allow RestKit via RKManagedObjectStore to do the backup using its own MOC every 5 minutes . 2 Does RestKit provides some handles methods to retry HTTP requests when offline How do I manage situations such as a local CREATE and a local EDIT on the same entity I was thinking to use Create Update Delete flags as suggested by Blake in one of his comments . Thanks a lot for your help .. . Answer : Directly from Blake the creator of RestKit Short answer : there is no ready solution for sync with RestKit when offline but Blake points at a small but very interesting starting point - if you have any other idea please feel free to suggest . I am still looking for the best way to do this . .. . .. . Blake Watters : .. . .. . 1 . I ve never done anything like this before . In theory you should be able to just upload the SQLite but I have no idea what kind of consistency guarantees you will have about the data . 2 . There is not any kind of built-in mechanism for implementing this as its very hard to generalize syncing behaviors to this kind of level . RestKit gives you the low-level components to implement something like this and there are some interesting open-source efforts underway trying to tackle the problem : https : github.com eric-horacek EHObjectSyncManager", "Question : I am using Restkit framework for RESTFUL web service . My Resoucemanager i e TaskManager and TaskDashboardCountManager are conflicting . When I call method .. . .. . I am getting the exception .. . .. . NSInvalidArgumentException reason : - TaskDashboardCountManager loadTask : failure : : .. . .. . loadTask is the method of TaskManager but it is getting called using TaskDashboardCountManger . how do i solve this Comment : What are they subclasses of RestKit already offers a shared instance so you could be colliding class methods Comment : @interface TaskManager : AKObjectManager Comment : restkit-tutorials.com code-organization-in-restkit-based-app http : restkit-tutorials.com code-organization-in-restkit-based-app -- I am coding according to this tutorial . when i call TaskDashboardCountManager sharedManager loadTaskCount : NSDictionary task this will execute fine but when i call TaskManager sharedManager load task Here i am getting exception . sharedManager holds instance of TaskDashboardCountManger . .. . Answer : You appear to have mixed up sharedInstance and sharedManager . There will be 1 sharedManager which will be the first one created then any other reference to sharedManager no matter which class it s from will return the same instance . At minimum you need to clean this up . It isn t really clear why AKObjectManager has a sharedManager method if it s subclassed then it s logical for the superclass to not be instantiable.. . .. . .. . You re better off not trying to use singletons so pervasively and instead create the instances explicitly and use dependency-injection . Comment : Ill send you the same demo project will you please help me dropbox.com s 8nbykv1nfk12u4h AKGithubClient-master.zip dl 0 https : www.dropbox.com s 8nbykv1nfk12u4h AKGithubClient-master.zip dl 0 Comment : 1.allows you to keep setup of required HTTP headers in one place do that once in AKObjectManager 2.easier to extend . For example if you want custom default behavior for all your HTTP requests you override methods in AKObjectManager . more flexible structure", "Question : null .. . Answer : it s my first post on StackOverflow : .. . .. . We re writing RESTful API backend using Spring Data Rest . To add association we re using the request : .. . .. . Request format is described here : http : docs.spring.io spring-data rest docs 2.5.1.RELEASE reference html post 2 .. . .. . Our iOS developer has problem sending this kind of request using RestKit https : github.com RestKit RestKit .. . .. . Any ideas how to use RestKit in this situation Or maybe we should use other REST client to handle this specific requests Thanks in advance Comment : Welcome . You need to give more details of what you tried how close you got what went wrong . What options you ve considered at least . Comment : I ve had to wait for my developer to describe situation in details and now.. . he solved it Sorry for trouble you and thanks for your response . Comment : Please delete the question or add more detail and an answer" ] }
[ "yes-answer-long", "yes-answer-short" ]
web-services
UNK_RELATION
post-build-event@macros@45
post-build-event -- an event to run scripts @placeholder or other custom actions after compilation .
{ "confidence": [ 42.03247833251953, 41.25918960571289, 40.59906005859375, 40.263641357421875, 39.85034942626953, 39.85034942626953, 39.85034942626953, 38.28639221191406, 38.07697677612305, 38.06678771972656, 37.92076110839844, 37.550777435302734, 37.28428268432617, 37.25936508178711, 36.413143157958984, 36.24269104003906, 36.24269104003906, 36.24269104003906, 35.60809326171875, 35.60809326171875, 35.60809326171875, 35.60809326171875, 35.60809326171875, 35.60809326171875, 35.60809326171875, 35.6058349609375, 35.6058349609375, 35.6058349609375, 34.68891525268555, 34.209381103515625, 34.034732818603516, 34.034732818603516, 33.82453155517578, 32.89522933959961, 32.89522933959961, 32.89522933959961, 32.89522933959961, 32.89522933959961, 32.89522933959961, 32.89522933959961, 32.89522933959961, 32.89522933959961, 32.89522933959961, 32.89522933959961, 32.89297103881836, 32.89297103881836, 32.7574348449707, 32.69552993774414, 32.500701904296875, 32.42829895019531, 32.194461822509766, 32.01057434082031, 32.00043869018555, 32.00043869018555, 32.00043869018555, 32.00043869018555, 32.00043869018555, 32.00043869018555, 32.00043869018555, 32.00043869018555, 32.00043869018555, 32.00043869018555, 32.00043869018555, 31.98751449584961, 31.936325073242188, 31.709796905517578, 31.709796905517578, 31.54987335205078, 31.483509063720703, 31.172077178955078, 31.11166763305664, 31.11166763305664, 31.072235107421875, 30.93600082397461, 30.9195556640625, 30.902240753173828, 30.796092987060547, 30.398380279541016, 30.208820343017578, 30.138996124267578, 30.109525680541992, 29.940410614013672, 29.940410614013672, 29.839969635009766, 29.839969635009766, 29.79248046875, 29.63214874267578, 29.596506118774414, 29.477684020996094, 29.345592498779297, 29.287574768066406, 29.287574768066406, 29.287574768066406, 29.287574768066406, 29.287574768066406, 29.287574768066406, 29.287574768066406, 29.287574768066406, 29.287574768066406 ], "content": [ "post-build-event is just a command you can have visual-studio run after it s finished - maybe to kick off tests or build an installer .", "I m working on a SharePoint solution and would like to run some PowerShell scripts in my Post-build event .", "CC.Net successfully builds the project if there is no post-build event .", "Do it at the top of the post-build event .", "I do not know what an sbr file is not a post-build event .", "What is a post-build-event and what are the implications causes of its failure", "You can simply update the post-build event like this :", "Unfortunately it currently overwrites the existing post-build-event .", "I would like to implement a post-build-event that performs the following actions .. . .. . 1 .", "That being said I often get the build error Post build event failed .", "CC.Netbuilds a C project with a post-build event : .. . .. . It succeeds in Visual Studio .", "I ve configured post-build-event .", "Is your post-build-event set to On succesful build", "I need to run an executable as a pre or post-build-event .", "In my project I have got following post-build Event : .. . .. . After the run has ended the program copies the files .", "I am trying to do a poor man integration with xUnit.Net from inside Visual Studio as a post-build-event .", "My Post Build event below : .. . .. . Any idea on how to get it so result.htm is displayed inside a browser and not in a modal mode", "For example the following post-build event : .. . .. . executes a batch-file PostBuild.cmd in the project-directory passing ConfigurationName as a parameter .", "Very simple thing worked for me in post build event-", "Is there a way to get the Site URL - Property from the project in the Post-build event", "Has anyone experienced similar issues with the copy command in a post-build event", "That is really tricky to do when editing the post-build-event script .", "I have come out with a post-build event that : .. . .. . 1 .", "Prefer the MsBuild Copy task in an AfterBuild target over a post-build event .", "Is there post-build event in IntelliJ IDEA 11 in my case", "Plus if you run devenv inside post-build-event you get exited with code 9009 message .", "It is not possible to run a PowerShell command that uses the NuGet Package Manager Console in a post-build-event .", "I have a Powershell script run by my NuGet package that adds a post-build-event to a user s Visual Studio project .", "Is there a way to force the build to fail given certain conditions in the post-build event", "I have created one build definition in TFS which is configured to run post-build powershell scripts .", "I set the post-build-event to something like this : .. . .. . In this case Visual Studio regains control immediately without waiting for the started process to complete .", "Of course you are free to use any configuration name whichever you prefer just update the post-build event as suggested by Rami A .", "I want to launch my specific code from post-build-event and see any error messages as build errors .", "Then in the post-build-event you can use these values for example :", "I thought that I could use it inside the post-build event .", "I am of course quite content with the post-build-event -", "I have a post-build event that runs some commands for a c project .", "@HansPassant - In your example is that post-build event on the executable target path", "However if I package for the Store the Post Build event does not seem to be firing .", "possible duplicate of Determine Assembly Version during a Post Build Event", "put those commands in the post-build event : .. . .. . This encrypt the file app.config properly .", "I would then declare a post-build event like this : .. . .. . That works just fine .", "Create the publisher policy on a Post build event of Visual Studio .", "Note that the post-build event is executed BEFORE the AfterBuild element of the csproj XML .", "In Visual Studio 2008 is it possible to force the Post-Build Event for a C++ project to run even if the project is up-to-date", "All I want to do this run an executable only when a constant is TRUE during the post-build event .", "I need to setup a post-build event on the dll so that it creates a folder called custom in the c : project executable directory and then copy the dll to this custom folder .", "in your build event .", "I want to execute this command in post built event .", "You create a file build MyNuGet.targets containing : .. . .. . This creates a custom target that is configured to run after the standard Build target .", "This allows us to do per-developer post-build batch scripts by excluding such scripts from source control then checking for their existence in the post-build event and executing them if they exist like so : .. . .. . Obviously the batch-file and post-build can later be expanded to pass more arguments as and when they are needed .", "If I do a Build without making any changes Visual Studio simply reports that the project is up-to-date and does nothing - the Post-Build Event is not run .", "Is there a way to get the startup project destination path as variable to post-build event of another projects in the solution", "How can I launch the process as post-build-event without waiting for it to end", "My .csproj defines the following post-build-event in the .csproj file that regenerates a symbolic link .", "one more thing when i delete the post-build-event then the program compiled without any error .", "This project has the following post-build event command lines : .. . .. . But this commands are just used when I create a debug or a release .", "I ll copy a exe into another folder with a post-build-event from visual-studio .", "I want to add-in a Post-build event commandline in my Visual Studio 2012 C project .", "I tried it with two files not related to the project on my desktop and that worked fine as a post-build event .", "Actually I figured out why my post-build event wasn t working .", "stackoverflow.com questions 5802304 http : stackoverflow.com questions 5802304 vs-post-build-event-command-line-equivalent-in-intellij-idea", "You can create a small program that creates your registry key and call that program in the post-build-event .", "especially in Post-Build events .. . .. . Scenario .. . .. . If TEST EDITION TRUE is defined I want to run an executable during the Post-Build event so if it s FALSE then I ll run something else .", "After that I need to create a post-build event that will build this .proj file and I ll get my desired output minified js css files .", "Can this be done using post build events or Power shell scripts", "Is the PublishedWebsite folder not getting created before the post-build scripts", "I tried this post but it didn t work : Setting post-build event commands", "I am new to RAD studio XE4 IDE I just wanted to run a vbs file after the build by using post-build-event command field in project options .", "There is no easy way to debug post-build scripts .", "Well one thing that might be a problem is that you want it as a Post-build event but it s set for the Pre-build command-line .", "re : A post-build event is always executed As a test I added echo HELLO WORLD to my Post-Build Event .", "I created a ticket on Microsoft connect : https : connect.microsoft.com VisualStudio feedback ViewFeedback.aspx FeedbackID 428898 .. . .. . Microsofts anwser : .. . .. . Hi .. . .. . In order to execute those post build actions you will need to put them in a batch-file and then add the appropiate command to invoke the batch-file in the post-build-event dialog .", "I enabled diagnostic build output and saw this : .. . .. . The pre-build event : .. . .. . The script file : .. . .. . Same problem with another project which contains post-build event which executes another powershell script .", "After my release build is finished I would like to run a script .", "You could achieve the same result without a post-build-event but with a custom tool that you would choose for your .log4net files .", "Is there a generic way I can get a post-build event to copy the built assembly and any .config and any .xml comments files to a folder usually solution relative without having to write a post-build event on each project in a solution", "I used Eazfuscator to protect my VS project - this means Eazfuscator added a post-build event to my project that looks like this : .. . .. . I m not sure why it s checking the ConfigurationName like that - I m trying to obfuscate a build where ConfigurationName ForPlayers so this check is getting in the way .", "In Jenkins if we use Post-Build Trigger to start another build .. . .. . What are ENVs available to the new build .", "Having a custom tool or MsBuild rule for this makes it less transparent for other programmers on the project or at least more complicated than using the post-build event I am currently using .", "Post build events are run by MSBuild so it needs to work when the build is run from the command-line .", "In the post-build event of my unit test project I run OpenCover and ReportGenerator to get a code-coverage report : .. . .. . The final step is to open the generated HTML report .", "However when I try to run this as a post-build event I get this output : .. . .. . I ve done some research and found that error-code 4 means that Initialization error occurred .", "http : stackoverflow.com questions 27016704 setting-post-build-event-commands", "Check Post Build Event command-line in the Project properties .", "Given a PreProcessor definition like the following : .. . .. . PreprocessorDefinitions PreprocessorDefinitions ENABLE DEBUGGING 1 PreProcessorDefinitions .. . .. . Is it possible to determine the value of ENABLE DEBUGGING during an MSBuild post-build event", "Scenario : .. . .. . We have an assembly which is distributed to 2 different customers and within the post-build-event I am copying TargetDir to 2 different directories which means TargetDir becomes redundant .", "The suggestion I ve found in places like this http : stackoverflow.com questions 4720937 post-build-events-in-qt-builder is to use a post-build step and build a batch-file but post-build steps are not shared between machines they are stored in the .pro.user file which is machine specific .", "You can execute a pre-build event either just before or just after a build operation and launching in the debugger is not a build operation .", "The project that generated the files I wanted to copy was built second but the project that was running the batch-file as a post-build event was built first so I simply attached the build event to the second project instead and it works just fine .", "If you are talking about a post-build event then you can do it by right clicking on the Project and going to Properties .", "I m using Post build event in Visual Studio to copy some .js files from a project to another using xcopy .", "It seems that just creating a batch-file that is called from the post-build event could do that .", "I have a post-build-event that based on the configuration copies a file into a specific file name under the AppX directory .", "But i prefer to do merge exactly in post-build event and do not change the exe filename .", "Is there a way to read the contents of an external file into a variable in a Visual Studio post-build event", "As far as I can tell you can t read an external file into a variable in a VS post-build event .", "http : stackoverflow.com questions 2243593 determine-assembly-version-during-a-post-build-event", "I have a command-line like this in my post-build event : .. . .. . But aspnet regiis is returning a failure because the tralling in the directory ." ] }
{ "confidence": [ 41.049781799316406, 40.472137451171875, 40.41147994995117, 40.17317581176758, 39.98159408569336, 39.95445251464844, 38.91666793823242, 38.91603088378906, 37.81940841674805, 37.510276794433594, 37.328914642333984, 36.62912368774414, 36.62912368774414, 36.417144775390625, 36.396392822265625, 36.36978530883789, 36.19404602050781, 36.19404602050781, 36.12116241455078, 36.00596618652344 ], "content": [ "Question : I have a Powershell script run by my NuGet package that adds a post-build-event to a user s Visual Studio project . Unfortunately it currently overwrites the existing post-build-event . How can I modify the Powershell script to append my build event if it does not already exist I ve never used Powershell before but I tried simply appending it inside the foreach but this didn t work : .. . .. . just gives : .. . .. . System . ComObject.Value xcopy ProjectDir MyFolder OutDir .. . Answer : I think editing the PostBuildEvent property is the wrong way to go about adding a post build action to a user s project . I believe the recommended way is to put your custom-action into a target that is then imported into the project file . As of NuGet 2.5 http : docs.nuget.org docs release-notes nuget-2.5 if you include a build folder in your package at the same level as content and tools and it contains a packageid .targets file or packageid .props file NuGet will automatically add an Import to the project file when you install the package . For example you have a package called MyNuGet . You create a file build MyNuGet.targets containing : .. . .. . This creates a custom target that is configured to run after the standard Build target . It will copy some files to the output directory . You do not need to do anything else in install.ps1 . When the user installs your package NuGet will automatically add an Import to the user s proj files and your target will run after the Build target is run . Comment : mike z is exactly right . This would be the Proper way to do it . Comment : @mike-z this is great . I didn t realise you could do this with NuGet it worked first time . Thanks Comment : @openshac Yea I didn t know this until I did a little research . Even better nuget will remove the Import automatically on uninstall . That is really tricky to do when editing the post-build-event script .", "Question : Is there a way to read the contents of an external file into a variable in a Visual Studio post-build event The reason I want to do this is that we re going to want a post-build event that every developer runs to copy a built assembly to a certain local UNC path but each developer will likely have a different UNC path . So we can t hardcode the path into the project file . If we could read fro an external file we could then ignore that in source control and just rely on setting the path value in that file . If reading in a file isn t possible is there any other way we could achieve this .. . Answer : As far as I can tell you can t read an external file into a variable in a VS post-build event . However you can run an external batch-file and provide it with arguments . This allows us to do per-developer post-build batch scripts by excluding such scripts from source control then checking for their existence in the post-build event and executing them if they exist like so : .. . .. . Obviously the batch-file and post-build can later be expanded to pass more arguments as and when they are needed . The batch-file postBuild.bat in the project dir then looks something like this :", "Question : Is there post-build event in IntelliJ IDEA 11 in my case Oddly I couldn t find it via googling . I want to perform binary enhancement for my OpenJPA entities before it builds output artifact . Comment : stackoverflow.com questions 5802304 http : stackoverflow.com questions 5802304 vs-post-build-event-command-line-equivalent-in-intellij-idea Comment : Yep . You re right . I m voting on closing this question . .. . Answer : Couldn t get enough votes to close : .. . .. . It works via Ant . Right click on the target in the Ant Panel and specify the condition After Compilation .", "Question : I am trying to use pre and post build in my Visual Studio 2015 TACO project . As outlined in PreBuildEvent and PostBuildEvent on Visual Studio 2015 Tools for Apache Cordova http : stackoverflow.com questions 31883604 prebuildevent-and-postbuildevent-on-visual-studio-2015-tools-for-apache-cordova I have added Target elements to my .jsproj file so that it now ends as shown : .. . .. . My problem is that both the BeforeBuild and AfterBuild events fire at the beginning of the build .. . .. . Can anybody shed some light on why this is or how I can get the post-build-event to run after the build has completed .. . Answer : After banging my head against a wall for a while I gave up on the Visual Studio AfterBuild event and used a hook for the Cordova after build one . It fires a bit earlier in the whole build-process but was good enough for my requirements . I ll post the gist of what it entails in case others need to do a similar thing . 1 . Find the config.xml in Solution Explorer right-click on it and select View Code .. . 2 . In the config.xml add a hook section as follows .. . .. . platform name android .. . hook type after build src scripts afterbuild-copy-to-drop.js .. . platform .. . .. . .. . Here I am hooking into the after build event for an Android build only . 3 . Now create a scripts folder at the root of the project ie the same level as the plugins and www folders . 4 . Create a JavaScript file in here with a name that matches the src attribute in the hook definition ie afterbuild-copy-to-drop.js . 5 . In this script file write the required code . Here is mine .. . .. . module.exports function ctx .. . console.log Executing custom + ctx.hook + hook for + ctx.opts.platforms .. . .. . var path ctx.requireCordovaModule path .. . shell ctx.requireCordovaModule shelljs .. . .. . make sure we are in a release build .. . var isRelease ctx.cmdLine.indexOf --configuration Release 0 .. . .. . var solutionRoot path.join ctx.opts.projectRoot . . . . .. . var dropRoot path.join solutionRoot . . . . Binaries Release Apps .. . .. . if isRelease .. . if ctx.opts.platforms android .. . .. . var platformRoot path.join ctx.opts.projectRoot platforms android .. . var apkFileLocation path.join platformRoot build outputs apk android-release.apk .. . .. . dropRoot path.join dropRoot Android .. . var dropApkFileLocation path.join dropRoot my-app.apk .. . .. . console.log ------ Making directory + dropRoot + .. . shell.mkdir -p dropRoot .. . .. . console.log ------ Copying + apkFileLocation + to + dropApkFileLocation + .. . shell.cp -f apkFileLocation dropApkFileLocation .. . .. . .. . .. . console.log Finished executing + ctx.hook + hook for + ctx.opts.platforms .. . .. . .. . .. . Further information on hooks can be found at https : cordova.apache.org docs en dev guide appdev hooks", "Question : null .. . Answer : I m working on a SharePoint solution and would like to run some PowerShell scripts in my Post-build event . Because I m not the only person working on this project and the project gets developed on different servers i would like to get the SharePoint-URL from the project properties and use them as parameters for the script . Is there a way to get the Site URL - Property from the project in the Post-build event Or any other project specific property because the Server Connection Status property would also be useful . I saw this http : stackoverflow.com questions 830271 link-to-all-visual-studio-variables question but we use Visual Studio 2012 and upwards and these kind of properties come with the office developer tools and are not in a default VS installation .", "Question : I am using Visual Studio 2008 to build my projects . I often take existing sample code and edit it and toy around with it as I am just learning and I d like to advance my skill. . it s nice to have a template to work with . That being said I often get the build error Post build event failed . This is often accompanied by a could not find xxx.sbr file or something . I do not know what an sbr file is not a post-build event . Re-building doesn t seem to help and clearing all the files out before tying another build does not help either . That being said the executable still always gets built . I was wondering : .. . .. . 1 . What is a post-build-event and what are the implications causes of its failure 2 . What is an sbr file I tried researching this a bit. . a Source Browse File This site seemed pretty informative : http : www.ehow.com facts 5657521 file-extension-sbr .html .. . .. . The problem is I don t understand why the compiler would complain about not finding this isn t it supposed to MAKE this and what EXACTLY it does enables Microsoft Visual Studio to access your source code - can t it do this anyway Thanks R .. . Answer : post-build-event is just a command you can have visual-studio run after it s finished - maybe to kick off tests or build an installer . It s in properties- build events in the menu - right-click on the project . The SBR file is used by visual-studio to browse sources and lookup which function is in which file . I have had problems where somehow it s internal list of dependencies gets screwed up and it always rebuilds one of them . Try a clean and rebuild then try quitting visual-studio and deleting the .ncb file", "Question : I am trying to do a poor man integration with xUnit.Net from inside Visual Studio as a post-build-event . What I want is when I press Shift+F6 Build the test project after a successful build it should run xUnit.Console.exe and output the result in an html file and afterward launch the html file inside the browser . Below is what I got so far and it work but not to my liking in that the browser will appear as a modal-dialog of sort and I can t switch back and forward toggle using Alt-Tab between Visual Studio and the browser . Right now I must close the browser for VS to gain focus again which kind of sucks . My Post Build event below : .. . .. . Any idea on how to get it so result.htm is displayed inside a browser and not in a modal mode After further test it seems that any shell command executed ran in modal mode . For example I tried simple cmd.exe to pop-up a Command shell . I tried using start C : Windows IE7 iexplore.exe TargetDir result.htm but that didn t work either.. . .. . Answer : This might be a bit round-about but using Windows power-shell to start the process seems to work . I set the post-build-event to something like this : .. . .. . In this case Visual Studio regains control immediately without waiting for the started process to complete . Comment : Cool I ll check it out .", "Question : null .. . Answer : I am new to RAD studio XE4 IDE I just wanted to run a vbs file after the build by using post-build-event command field in project options . The problem is the vb script file is executing every time a file is compiled in project although the expected behavior is it should be called after the complete build of whole project . although the same was working fine in Embarcadero RAD studio 2010 .. . .. . following is the command i put in post-build-event command field : .. . .. . In Embarcadero RAD studio 2010 i used this command in same field it is working fine while the above one failed : Comment : i tried but no success : Comment : Please define what you mean by every time a file is compiled Comment : By every time a file is compiled do you mean that you re doing a build or make and the post-build event is called for every .cpp file that s in the project ie as the build dialog shows a file the script is called too Comment : when I build All to build the project the script is called before builds and linking completes so it seems that scripts is being called for every .cpp file that is being compiled instead of waiting for whole proj to compile . Comment : @David : Thanks for the information .", "Question : I have a post-build event to copy a .dll from one project to another on successful build using the following command : .. . .. . copy TargetPath ... . MainProject bin .. . .. . This works fine on my local machine but it appears to be failing on the build-server because when building the MainProject I receive the following : .. . .. . warning MSB3245 : Could not resolve this reference . Could not locate the assembly Project2 . Check to make sure the assembly exists on disk . If this reference is required by your code you may get compilation errors . Has anyone experienced similar issues with the copy command in a post-build event .. . Answer : That warning isn t from the Copy task it is from the build of a project . Crank up the diagnostic level and log to a file fl flp : v diag logfile diag.txt to see where the warning is actually coming from .", "Question : Can we have something like this : .. . .. . I ve tried it but it doesn t work . The error-code is 255 . .. . Answer : If your post-build logic is getting complicated I d suggest moving it to an external file . For example the following post-build event : .. . .. . executes a batch-file PostBuild.cmd in the project-directory passing ConfigurationName as a parameter . You could also pass other parameters such as TargetPath . You can then implement whatever you want including multiple if statements and more importantly debug it without running a Visual Studio build .", "Question : I would like to implement a post-build-event that performs the following actions .. . .. . 1 . A relative-path copy of the DLL output 1 file not all the debug jazz .. . 2 . A register the output DLL to GAC .. . .. . How is this done .. . Answer : Does that do you want Entered into the field for post-build step under project properties Comment : On Microsoft Visual Studio 2010 this will fail with a 9009 error : you need to use the full path to regasm as follows : C : Windows Microsoft.NET Framework64 v4.0.30319 regasm.exe TargetPath", "Question : I would like to implement a post-build-event that performs the following actions .. . .. . 1 . A relative-path copy of the DLL output 1 file not all the debug jazz .. . 2 . A register the output DLL to GAC .. . .. . How is this done .. . Answer : Enter following into Project properties- Build events- Post build events command-line : .. . .. . or add following snippet to project e.g . csproj file .. . .. . Note that it is recommended to add around copy command arguments to avoid problems with paths containing whitespaces . Also note that multiple commands can be combined using", "Question : I would like to implement a post-build-event that performs the following actions .. . .. . 1 . A relative-path copy of the DLL output 1 file not all the debug jazz .. . 2 . A register the output DLL to GAC .. . .. . How is this done .. . Answer : you may want to look at MS Build . Its what we use here at work . CodeProject Link http : www.codeproject.com KB books msbuild.aspx MSDN Ref http : msdn.microsoft.com en-us library 0k6kkbsd.aspx Comment : Yes MSBuild is excellent for that . If you want to stay inside Visual Studio you could also enter post-build commands under project properties .", "Question : Is there a generic way I can get a post-build event to copy the built assembly and any .config and any .xml comments files to a folder usually solution relative without having to write a post-build event on each project in a solution The goal is to have a folder that contains the last successful build of an entire solution . It would be nice to use the same build solution over multiple solutions too possibly enabling disabling certain projects so don t copy unit tests etc . Thanks .. . Kieron .. . Answer : You can set common OutputPath to build all projects in Sln in one temp dir and copy required files to the latest build folder . In copy action you can set a filter to copy all dlls without test in its name . There exists more complicated and more flexible solution . You can setup a hook for build-process using CustomAfterMicrosoftCommonTargets . See this post http : sedodream.com 2010 10 22 MSBuildExtendingTheSolutionBuild.aspx for example . Sample targets file can be like that : .. . .. . In that targets file you can specify any actions you want . You can place it here C : Program Files MSBuild v4.0 Custom.After.Microsoft.Common.targets or here C : Program Files MSBuild 4.0 Microsoft.Common.targets ImportAfter PublishToLatest.targets . And third variant is to add to every project you want to publish import of custom targets . See How to : Use the Same Target in Multiple Project Files http : msdn.microsoft.com en-us library ms171464.aspx Comment : That looks idea I ll give it a go . Thanks Comment : Yeah I agree setting OutputPath is the recommend approach for this .", "Question : I have nuget-package manager command. . This command retrieves information about nuget-package install in project and creates a html file of it . I want to execute this command in post built event . .. . Answer : It is not possible to run a PowerShell command that uses the NuGet Package Manager Console in a post-build-event . Post build events are run by MSBuild so it needs to work when the build is run from the command-line . An alternative approach would be to write a console app that uses NuGet.Core.dll to do the same thing that the PowerShell script is doing .", "Question : I would like to implement a post-build-event that performs the following actions .. . .. . 1 . A relative-path copy of the DLL output 1 file not all the debug jazz .. . 2 . A register the output DLL to GAC .. . .. . How is this done .. . Answer : Are you sure you want to do this as part of a compile I would recommend using project references in solutions rather than the GAC if you can avoid it . Copying files is one thing but registering in the GAC is fairly intrusive and you may want to consider the other environments your code is compiled in . Things like other developers machines and test-environments build servers etc . If you have a build-server really you should be using something like NAnt with some sort of continuous-integration server .", "Question : I used Eazfuscator to protect my VS project - this means Eazfuscator added a post-build event to my project that looks like this : .. . .. . I m not sure why it s checking the ConfigurationName like that - I m trying to obfuscate a build where ConfigurationName ForPlayers so this check is getting in the way . Two questions : .. . .. . Why does Eazfuscator do this check Can I make it not not do it I could manually go into the project properties and remove it but that s not a good idea because I m doing this all from a script like this : .. . .. . . .. . Answer : This check is probably done so that Eazfuscator does not obfuscate assemblies used for debugging where you may need the pdb-files to step through your code etc . With Eazfuscator.NET v3 there are improvements made so that you can enable debugging obfuscated assemblies . You can simply update the post-build event like this :", "Question : I used Eazfuscator to protect my VS project - this means Eazfuscator added a post-build event to my project that looks like this : .. . .. . I m not sure why it s checking the ConfigurationName like that - I m trying to obfuscate a build where ConfigurationName ForPlayers so this check is getting in the way . Two questions : .. . .. . Why does Eazfuscator do this check Can I make it not not do it I could manually go into the project properties and remove it but that s not a good idea because I m doing this all from a script like this : .. . .. . . .. . Answer : Eazfuscator.NET does the check for Release configuration because this is the most common usage scenario . Most developers do builds in Release when they want to do a release . Of course you are free to use any configuration name whichever you prefer just update the post-build event as suggested by Rami A .", "Question : Is there anyway to use compiler constants in Build Events in Visual Studio - VB.NET especially in Post-Build events .. . .. . Scenario .. . .. . If TEST EDITION TRUE is defined I want to run an executable during the Post-Build event so if it s FALSE then I ll run something else . This can be used for creating different installers for different editions . P.S . Before someone suggests : No I don t want to use nant msbuild or something like that Comment : It would help if you d explain more about what you re trying to do . Comment : I m trying to write a conditional build-event based on the compiler constant Wasn t that clear -but I added an example to clear that up . .. . Answer : Yes the DefineConstants macro is available and can be tested in a build event . For example Project + Compile Advanced Compile Options Custom constants Test can be tested like this : .. . .. . More complicated custom constants like Test TRUE or compound constants need to be parsed differently . Admittedly I quickly gave up trying to figure out how to use the horrid FOR command . http : www.microsoft.com resources documentation windows-xp all proddocs en-us cmd.mspx mfr true Comment : awesome thanks .", "Question : One of the projects I work on need to read a registry key in order to determine some value . Usually the value will be written during installation . Because I want to run the project locally as well without installation I want to write that value after the build has finished . Is there a simple way I can do that .. . Answer : You can create a small program that creates your registry key and call that program in the post-build-event . Edit .. . If you can extract your registry settings to a file you can add this to you post-build-event : .. . regedit s ProjectDir test.reg .. . .. . s makes it silent . Comment : I know but I rather use a built-in windows utility" ] }
[ "yes-answer-long", "yes-answer-short" ]
macros
UNK_RELATION
rmiregistry@rmi@40
rmiregistry -- rmi registry is kind of @placeholder naming service a server application where remote objects could be registered under some string name so they could be found and accessed by other clients connecting the same registry .
{ "confidence": [ 54.12006378173828, 50.43408966064453, 49.183837890625, 48.169227600097656, 45.081268310546875, 44.84771728515625, 42.931636810302734, 42.858612060546875, 42.155670166015625, 42.120262145996094, 41.84173583984375, 41.09724807739258, 40.90427017211914, 40.847721099853516, 40.667476654052734, 40.667476654052734, 40.62787628173828, 40.14585876464844, 39.6756591796875, 39.6756591796875, 39.576454162597656, 39.37636184692383, 38.59376525878906, 38.59376525878906, 38.57859802246094, 38.54502487182617, 38.13554382324219, 37.995121002197266, 37.995121002197266, 37.73388671875, 37.423370361328125, 37.423370361328125, 37.12809371948242, 37.005470275878906, 36.84422302246094, 36.78429412841797, 36.36429977416992, 36.36429977416992, 36.36429977416992, 36.36429977416992, 36.31237030029297, 36.300045013427734, 36.300045013427734, 36.19921112060547, 36.17844009399414, 35.971866607666016, 35.73355484008789, 35.630653381347656, 35.45895767211914, 35.45895767211914, 35.282405853271484, 35.282405853271484, 35.282405853271484, 35.282405853271484, 34.61271286010742, 34.3770637512207, 34.3770637512207, 34.29271697998047, 34.2125244140625, 33.98572540283203, 33.803401947021484, 33.74467849731445, 33.53474426269531, 33.48823165893555, 33.252079010009766, 33.089439392089844, 33.074256896972656, 32.99959945678711, 32.93545150756836, 32.89057540893555, 32.688663482666016, 32.55876922607422, 32.247108459472656, 31.99236297607422, 31.962472915649414, 31.90392303466797, 31.90392303466797, 31.90392303466797, 31.75945281982422, 31.713897705078125, 31.668933868408203, 31.642993927001953, 31.641815185546875, 31.52831268310547, 31.26166534423828, 31.24756622314453, 30.855016708374023, 30.848674774169922, 30.801738739013672, 30.793228149414062, 30.793228149414062, 30.793228149414062, 30.793228149414062, 30.436330795288086, 30.4266357421875, 30.297718048095703 ], "content": [ "I have a requirement that the RMI client needs to get all remote objects registered in a remote RMI registry .", "I think this could be the same with RMI Registry .", "By calling Naming.list or Registry.list . .. . .. . I have a requirement that the RMI client needs to get all remote objects registered in a remote RMI registry .", "How can RMI client sees and get all dynamic remote objects registered in a registry", "When useCodebaseOnly is false the RMI Registry and RMI clients use the codebase that has been passed to them from the server .", "The RMI Registry participates in DGC where an LDAP server doesn t .", "I am trying Remote calls using RMI registry for the first time .", "Use the RMI Registry .", "but how to make this registry accept my rmi server", "There is no listener system defined for the RMI Registry .", "RMI is structured to allow you to run an RMI registry on your server .", "Well that is true from application point of view but if the registry service crashes and restarts any application previously registered will be cleaned up .", "Why it is allowed to the Client to unbind the Name in the remote Registry", "If i m creating the RMI registry from command-line the client has no problem in binding objects to the registry .", "How to start RMI registry through java code through Server", "I want RMI registry to be started when the server executes", "The above example shows how system property be set automatically only when rmi server rmi client and rmi registry can access the same filesystem .", "A program could look up objects in a remote Registry and bind them to the local Registry for example then the local Registry would contain references to servers running in remote hosts .", "I want to set heap size for RMI registry .", "There is no RMI Registry specific java class path .", "The registry and clients must either set their own codebase property to match that of the server or not recommended they could set useCodebaseOnly back to false .", "I have recently discovered the Java RMI API and I am using the Rmiregistry to store and get the remote objects .", "and not how can i create a rmi registry", "how to connect to the registry from the RMI box", "For example a client could lookup a remote Registry and bind the stubs retrieved into the local Registry .", "Is there way to persist the objects in RMIregistry service so that it reload on restart", "It seems that with the first procedure the RMI registry is ignoring the java.rmi.server.codebase property .. . .. . Thank you .. . .. . .. . .. . I am running .. . .. . The exception from the RMI registry", "You don t need the RMI Registry after the initial lookup with Activation .", "And I ve never seen an RMI Registry crash after using it since 1997 .", "You can lookup a remote Registry .", "When you attempt to bind an object in the RMI registry the registry downloads the class definition for that object .", "You can t have more than one Registry per JVM because the Registry has a fixed RMI object ID .", "The client uses the rmiregistry to get a remote reference to the server .", "NB Don t specify the codebase to the Registry or the client unless it exports remote callback objects : only to the server JVM", "The RMI Registry exists to solve the RMI bootstrap problem which is simply that you can only get a remote stub via a remote method call and to perform a remote method call you need a remote stub .", "Looking at stackoverflow.com questions 820719 using-single-rmi-registry http : stackoverflow.com questions 820719 using-single-rmi-registry it seem that you actually should use loopback for registry binding .", "But to run the program I need to start rmi registry manually", "It seems that with the first procedure the RMI registry is ignoring the java.rmi.server.codebase property .", "You can only bind to an RMI Registry that is running in the local host .", "You can only bind to an RMI Registry that is running in the local host .", "If the rmi registry is already using the port and you want to rebind a service without using another port .", "In my requirement the servers will dynamicly registered new objects in to registry and the client needs to get updated and access the new objects sooner .", "In my requirement the servers will dynamicly registered new objects in to registry and the client needs to get updated and access the new objects sooner .", "You can only bind an RMI server to a Registry running in the same host as the agent that is doing the bind .", "On one of them is running an RMI Registry - which was created from this code alone : .. . .. . The other computer has a server that is trying to register an Object on this registry however it gets an exception .", "I m now hitting Failed to start RMI naming service at 1099", "I found out that the Client after getting the RMI-Registry can execute successful the Registry.unbind method .", "You just can t bind to a remote Registry .", "I start a Java Main program and create a UnicastRemoteObject after that bind the object in the RMI registry server follow the tutorial .", "I start a Java Main program and create a UnicastRemoteObject after that bind the object in the RMI registry server follow the tutorial .", "However if i m starting the RMI registry using ProcessBuilder it s giving error .", "Do I need to check if the rmi registry is already running on 10.155.1.232", "Did you try to connect to the registry from the RMI box itself", "Presumably you have the rmi registry and not something else running on port 1099", "Aside from the port you will also expose the RMI Registry http : docs.oracle.com javase 8 docs api java rmi registry Registry.html port which by default is 1099 .", "But this seems not to work and I think it is because the server is bound to the RMI-Registry which probably holds a reference on it .", "I think it is because the server is bound to the RMI-Registry which probably holds a reference on it .", "Try running both the server and registry on the same host and use localhost as the hostname .", "I am resposible for rmiregistry service .", "Because normal RMI traffic doesn t go through the Registry at all .", "There are ways around it but .. . .. . .. . Or you can use an LDAP server instead and use JNDI for the binds and lookups instead of Naming Registry .", "Otherwise the RmiServiceExporter would not be started and got the exception ClassNotFoundException class not found : org.springframework.remoting.rmi.RmiInvocationWrapper Stub nested exception is : .. . .. . .. . If your rmi server rmi client and rmiregistry can access the same filesystem you may want the system property to be automatically configured to where the spring.jar can be found on the shared filesystem .", "As far as I understood the exception occurred on the rmi registry side because it couldn t find the class sun.jvmstat.monitor.remote.RemoteHost located inside tools.jar .", "Now that the default-value is true the registry and clients ignore the server s codebase property .", "But you cannot bind anything to a remote Registry .", "The download folder contains the remote interface for the client-server .. . .. . 3 I start the server passing the java.rmi.server.codebase property as suggested in the java RMI tutorial .. . .. . The RMI registry is not contacting the HTTP server and is throwing an exception see details after the question .", "UPDATE .. . .. . I have confirmed this is a server registry problem .", "For RMI on server-side do we need to start rmiregistry program or just call LocateRegistry.createRegistry", "In which case that s where the Registry is too not in the localhost .", "I m running RMI Regitry on a virtual-machine running Windows XP with IP : 192.168.133.2 and trying to bind an RMI server running on different vm XP IP : 192.168.133.3 by using this code : .. . .. . where .. . .. . but I get this exception : .. . .. . I figured that the RMI Registry don t accept any rmi server which isn t running on the same RMI Registry running machine .", "It starts without any errors but once an RMI client talks to it rmiregistry outputs this error : ERROR StatusLogger Log4j2 could not find a logging implementation .", "This is my code for creating rmiregistry using ProcessBuilder .. . .. . The error that i m getting for using ProcessBuilder when I m trying to bind to my own RMI registry .. . .. . node func is an interface .. . .. . Any ideas", "From the Javadoc http : docs.oracle.com javase 6 docs api java rmi registry Registry.html for Registry : .. . .. . A Registry implementation may choose to restrict access to some or all of its methods for example methods that mutate the registry s bindings may be restricted to calls originating from the local host .", "Can I register the client on the registry which is on the server", "RMI doesn t provide any sort of federated or distributed naming service .", "I ve read a lot of RMI registry problems and tried them to my problem but to no success .", "See javadoc http : docs.oracle.com javase 6 docs api java rmi registry LocateRegistry.html createRegistry 28int 29 .", "If you use Spring to export your RMI services it automatically starts a registry if one is not already running .", "Setting class path in the command-line -cp option when starting RMI server does not help because it does not affect rmiregistry classpath", "First you need execute in java bin folder start rmiregistry throught shell command-line create CLASSPATH system var to java class jar to the project to register in RMI Register RMI Registry need know their classes .", "Each host that exports remember the objects must have its own Registry .", "Or you could use LDAP instead of the Registry but you d still need Activation for it to make sense .", "Changed to Registry registry LocateRegistry.getRegistry host Doesn t work even now", "but I can t really find where is the RMI server that actually established and how many port it will occupy for the remote client invocation", "I found this document and resolved the problem by starting rmiregistry with : .. . .. . rmiregistry -Djava.rmi.server.useCodebaseOnly false .. . .. . Refer below http : docs.oracle.com javase 7 docs technotes guides rmi enhancements-7.html", "can one registry manage objects only on its own machine or on other machines as well", "Use RMI Activation serialize the stub obtained when you registered the activatable and distribute to all clients in a file along with the client application .", "Close the cmd window where the rmiregistry was initially started.In a fresh cmd go to the location where your project classfiles are located uptill bin and start the registry using the below command : .. . .. . rmiregistry -J-Djava.rmi.server.useCodebaseOnly false .. . .. . If you are using Eclipse Run the ServerSideProject and your ImplementationClass Instance gets bound to the URL specified .", "But when I call it with a wrong IP address or an IP address where no registry can be found the method gets stuck .", "Did you restart the Registry", "But how to restart the registry", "Most people use the Registry .", "The Registry isn t one of those .", "Unless you have the object that s bound in the Registry be only a kind of Login object that returns per-client Session instances that aren t bound in the registry .", "The client got a reference to the server before using the rmiregistry so the bootstrap is done .", "Actually my application monitors the list of resources that are bound to the registry : when the registry is empty or obviously not available it shuts down ." ] }
{ "confidence": [ 84.61367797851562, 76.54967498779297, 75.93216705322266, 72.57864379882812, 71.83932495117188, 70.37362670898438, 70.30686950683594, 69.43841552734375, 69.13662719726562, 66.07052612304688, 65.7872314453125, 65.33132934570312, 64.839599609375, 64.48106384277344, 64.38562774658203, 64.37899780273438, 63.499080657958984, 62.66949462890625, 62.453956604003906 ], "content": [ "Question : I m running RMI Regitry on a virtual-machine running Windows XP with IP : 192.168.133.2 and trying to bind an RMI server running on different vm XP IP : 192.168.133.3 by using this code : .. . .. . where .. . .. . but I get this exception : .. . .. . I figured that the RMI Registry don t accept any rmi server which isn t running on the same RMI Registry running machine . but how to make this registry accept my rmi server p.s : I m using JBuilder X as an IDE . I m trying to implement a mobile agent which will run on some rmi servers to do some work on them and return the results to the starting station so RMI servers implements the environment that hosts this agent to do its work and send it to the next station which it ll locate through the registry .. . Answer : RMI doesn t provide any sort of federated or distributed naming service . RMI is structured to allow you to run an RMI registry on your server . It hosts services that can be accessed across the network however the services run locally on that server . The service being provided must be started - and rebind - on the server - not on any client system . Local address only . Your clients should then reach out to that server.. . Comment : I m trying to implement a mobile agent which will run on some rmi servers to do some work on them and return the results to the starting station so RMI servers implements the environment that hosts this agent to do its work and send it to the next station which it ll locate through the registry. . so you say that I can t create a multi-hosts servers each server running on different machines but on the same network . right Comment : I m saying each server in your set of multi-hosts must individually run a local rmiregistry to which a local copy of your service is bound . If you want your client to be able to rotate to different RMI services that s a layer above what RMI provides you ll have to come up with some way to do that outside of RMI JNDI naming may be helpful here : - Comment : but if the agent is running on machine A and want to move to machine B how can it locate B if there is no united registry that contains all the services Comment : That s a great question and one for which RMI doesn t provide an answer . Comment : Your description is close enough to solve this problem but nevertheless inaccurate . The Registry will only accept bind rebind unbind requests from processes running in the local host but there is no requirement that the objects being bound are running in the local host . A program could look up objects in a remote Registry and bind them to the local Registry for example then the local Registry would contain references to servers running in remote hosts .", "Question : Is there way to persist the objects in RMIregistry service so that it reload on restart in latest version 1.7 Java rte . Example : corba naming service persists the bind service information and reloads in case it is restarted . .. . Answer : You ve just described RMI Activation . That s exactly what it does . EDIT This answer applies to the original version of the question . The answer to the current version is no unless you write something yourself which isn t hard . But it would also be pointless unless you also used Activation . Or you could use LDAP instead of the Registry but you d still need Activation for it to make sense . Comment : Please check my updated question . I am resposible for rmiregistry service . the one which holds the rmi data in cache . the service goes down the dependent applicition needs to rebind .i.e . restart . Comment : You don t need the RMI Registry after the initial lookup with Activation . Just persist the stub and it will resurrect itself on next usage . Comment : Well that is true from application point of view but if the registry service crashes and restarts any application previously registered will be cleaned up . And app will get object not bound exception on resolve . Comment : @VinayTiwari I can only repeat what I said . You don t need the Registry after the intial lookup . As a matter of fact you don t need it at all in Activation . You just persist the stub resulting from the intial setup and load it every time you start the application from wherever you persisted it . I don t know what true from the application point of view might mean as opposed to true . Comment : And I ve never seen an RMI Registry crash after using it since 1997 .", "Question : I have recently discovered the Java RMI API and I am using the Rmiregistry to store and get the remote objects . Then I saw that we can use LDAP to do this task . I was interseted by this approach but after some research I became a little bit confused between these two options . For now what I have understood is that : .. . .. . Both can be used to store and collect remote objects .. . LDAP is accessed by the JNDI API whereas the Rmiregistry is available directly .. . .. . What I would like to know is the pros and cons of each option and mainly when and why it is recommended to use one instead of the other . .. . Answer : Most people use the Registry . You might use LDAP if you already have an LDAP server but you wouldn t go to the trouble of installing an LDAP server just for RMI . The RMI Registry participates in DGC where an LDAP server doesn t . LDAP supports hierarchical namespaces where the RMI Registry s is flat . Other than that . I can t think of any major differences .", "Question : I am running a Hello World example for java RMI .. . .. . 1 I run the registry in an empty folder .. . .. . 2 I start the HTTP server to retrieve the classes at runtime . The download folder contains the remote interface for the client-server .. . .. . 3 I start the server passing the java.rmi.server.codebase property as suggested in the java RMI tutorial .. . .. . The RMI registry is not contacting the HTTP server and is throwing an exception see details after the question . But if I do the following .. . .. . 1 Start the rmi registry with the java.rmi.server.codebase property .. . .. . 2 Start the HTTP server as before .. . .. . 3 Start the server without any option .. . .. . it works but why It seems that with the first procedure the RMI registry is ignoring the java.rmi.server.codebase property .. . .. . Thank you .. . .. . .. . .. . I am running .. . .. . The exception from the RMI registry Comment : Very strange . Can you try it all again without the quotes around the codebase URL Comment : Hi EJP I have tried without quotes and the behavior is the same Comment : I am still working on that and It really looks like a bug . The above mentioned issue occurs in my Linux Mint VM while if I run the exact same code and configuration on my Windows machine everything goes fine . Comment : I confirm that in Windows I do not need to pass the codebase argument to the rmiregistry while in Linux Mint I need it I recorded everything and setup a repository with the example and instructions to run it github.com mottalrd RMITutorial https : github.com mottalrd RMITutorial Warehouse v1 set of projects Comment : Is it possible that in Linux you have a CLASSPATH environment variable that is set when you start the Registry and points to your server code .. . Answer : It seems that with the first procedure the RMI registry is ignoring the java.rmi.server.codebase property . That s correct . The reason is that as of JDK 7u21 the java.rmi.server.useCodebaseOnly property is true by default whereas in prior releases it was false by default . When useCodebaseOnly is false the RMI Registry and RMI clients use the codebase that has been passed to them from the server . Now that the default-value is true the registry and clients ignore the server s codebase property . The registry and clients must either set their own codebase property to match that of the server or not recommended they could set useCodebaseOnly back to false . See RMI Enhancements in JDK 7 http : docs.oracle.com javase 7 docs technotes guides rmi enhancements-7.html for further details . The RMI Tutorial http : docs.oracle.com javase tutorial rmi hasn t been updated to reflect this change . Sorry about that . I ll make sure it gets updated . Comment : Very very useful answer Thanks a lot you saved me a lot of time Anyway oracle sucks with this modification . First it has no justification event oracle didn t bother to provide one . Second as they write themselves : This change of default-value may cause RMI-based applications to break unexpectedly . Yes That s the oracle we so painfully know SUN we miss you so much Comment : @wrzasa : the justification could be this vulnerability https : cve.mitre.org cgi-bin cvename.cgi name CVE-2013-1537 . The other vendor mentioned is likely this one http : www-01.ibm.com support docview.wss uid swg21640058 . Comment : The RMI Tutorial does not yet mention the useCodebaseOnly property . Every little hint there would help people getting not confused why the sample is not working - just like me . Please update the tutorial to keep the high quality there . Comment : SIR very sorry to inform but the RMI code has still not been updated . It seems that you forgot your commitment @StuartMarks Comment : Tutorial still not updated for Java 8 . I just got it to run with this command rmiregistry -J-Djava.rmi.server.codebase file : path-to-remote-classes", "Question : I have a service object that can be connected to via RMI . Currently I m doing this : .. . .. . Server .. . .. . Client .. . .. . The registry on the server has only one use to link-to the single server object . I figured I might just as well do this on the server : .. . .. . But then how would I connect to the server object from the client .. . Answer : The RMI Registry exists to solve the RMI bootstrap problem which is simply that you can only get a remote stub via a remote method call and to perform a remote method call you need a remote stub . The Registry reference provided by LocateRegistry.getRegistry solves this problem and is used internally by Naming.lookup if you are using that API . Note that this stub isn t obtained via a remote method : it is synthethized locally using the host : port you provide . If they aren t correct you won t find out until you use the Registry stub . .. . .. . You have several choices to solve the RMI bootstrap problem : .. . .. . 1 . Use the RMI Registry . 2 . Use an LDAP server via JNDI with the LDAP provider . 3 . Use UnicastRemoteObject serialize the stub obtained when you export the object and use a shared file or a socket or sneakernet to make the stub available to clients . 4 . Use RMI Activation serialize the stub obtained when you registered the activatable and distribute to all clients in a file along with the client application . From the point of view of stub distribution this is a lot simpler than 3 because the stub remains constant for the life of the application whereas in 3 you have to redestribute the stub on every export . You can see that the Registry is certainly the simplest option . Note that you only have to use it to solve the bootstrap problem Once you have a stub your own application remote methods can return further objects : you don t need more than one remote object in the Registry . You can consider that as a remote object factory . Comment : I ve come upon this problem again stackoverflow.com questions 11399408 http : stackoverflow.com questions 11399408 simple-entry-point-for-single-rmi-service and this time can t use the registry . I could use method 3 but if the client has the interface and host port of the service can it maybe synthesize a stub itself Comment : @BartvanHeukelom In theory yes in practice not really . Why can t you use the Registry", "Question : I have a requirement that the RMI client needs to get all remote objects registered in a remote RMI registry . First question I know there is a method of registry.list that returns all names of the objects . However how do I get the objects of exactly the type I want implementing the interface that I want supposed that there are also other kinds of objects registered as well . Shall I traverse the names and use a try-catch statement trying to instanced each remote objects Second question how can a client gets noticed if a new object is registered In my requirement the servers will dynamicly registered new objects in to registry and the client needs to get updated and access the new objects sooner . Shall I just use a thread to periodically list all names to find out new objects Please note that the remote objects are to be exported from different nodes but not from a same node . I know if they are from the same node possibly I can use the call-back feature called from one of the instanced remote-object . .. . Answer : How can RMI client sees and get all dynamic remote objects registered in a registry By calling Naming.list or Registry.list . .. . .. . I have a requirement that the RMI client needs to get all remote objects registered in a remote RMI registry . See above . How do I get the objects of exactly the type I want implementing the interface that I want supposed that there are also other kinds of objects registered as well Shall I traverse the names and use a try-catch statement trying to instanced each remote objects Just traverse the names returned by list lookup each one and use instanceof to determine whether it is of a type you need . If the Registry contains stubs you don t have all the necessary classes for at the client you ll need to catch ClassNotFoundException . An easy way to do all this in fewer steps is via the JNDI listBindings http : docs.oracle.com javase 7 docs api javax naming Context.html listBindings java.lang.String method . Second question how can a client gets noticed if a new object is registered It can t . There is no listener system defined for the RMI Registry . The client will have to poll . In my requirement the servers will dynamicly registered new objects in to registry and the client needs to get updated and access the new objects sooner . Shall I just use a thread to periodically list all names to find out new objects Yes . Please note that the remote objects are to be exported from different nodes but not from a same node . You ll find that difficult to arrange as you can only call bind and friends from the same host as the Registry . You ll have to organize some intermediate remote objects to do the registering for each non-local node . I know if they are from the same node possibly I can use the call-back feature called from one of the instanced remote-object . Being from the same node isn t a precondition for that . You can do RMI callbacks in any topology where firewalls don t get in the way . Comment : Thank you for the clear answer . It helps Comment : An even easier way without the ClassCastExceptions is via javax.naming.Context.list method which returns an enumeration of pairs name class-name without retrieiving the objects . Comment : When I tried to look into the usage of javax.naming I found the following interface : javax.naming.event.NamingListener . From the description it looks like it can be used to listen to the event of naming changes like adding a name etc . Is this applicable to my requirement Comment : I tried javax.naming.Context.list but do not know the reason why the getClassName always return java.lang.object rather than the actual running class name.. . And if I tried listBindings it always return com.sun.proxy . Proxy where is a number... . Comment : I ended up with the solution of try-catch to catch the ClassCastException and ignore it . It does not look a good solution but I don t know why both Context.list and Context.listBindings do not return the real class name . Even if I tried the method of object.getClass .getName it returns the name of Proxy . I think I will post another question in detail of this and feel free to comment on that . Thank you any way", "Question : If i m creating the RMI registry from command-line the client has no problem in binding objects to the registry . However if i m starting the RMI registry using ProcessBuilder it s giving error . This is my code for creating rmiregistry using ProcessBuilder .. . .. . The error that i m getting for using ProcessBuilder when I m trying to bind to my own RMI registry .. . .. . node func is an interface .. . .. . Any ideas .. . Answer : The exception is occurring because the rmiregistry application doesn t know where to load classes from . When you attempt to bind an object in the RMI registry the registry downloads the class definition for that object . The correct way to handle the problem is to set the java.rmi.server.codebase property .. . .. . right-click on your project- run as- run configuration- Arguments- VM arguments . The property requires that a directory path be terminated with a forward slash like so : .. . .. . -Djava.rmi.server.codebase file : workspace location folder .. . .. . You may also be having trouble if the workspace location variable is a relative-path and the rmiregistry application was not started in the same directory so the relative-path is not correct for it . If you either make the path absolute or start the rmiregistry in the appropriate directory the ClassNotFoundException should go away . See the tutorial on the java.rmi.server.codebase http : docs.oracle.com javase 6 docs technotes guides rmi codebase.html property for a little more detailed information . Hope it helps . Credits to this guy http : stackoverflow.com questions 3629568 rmi-server-exception Comment : file : codebases only work properly if all clients are running in the local host as well . There are other ways to make the Registry work that don t involve the codebases for example specifying a CLASSPATH env var or classpath argument when running it . Comment : No that s not what I meant at all . What I said was there are other ways to make the Registry work that don t involve the codebase . Please don t attempt to translate on my behalf . Comment : Those methods have nothing to do with OP question which was something like i have this error how can i solve it and not how can i create a rmi registry otherwise my initial answer would be different . Comment : The OP s question is how to fix his Registry problem . He can do it with the CLASSPATH environment variable with -J-Dclasspath with the codebase feature or with Locate.Registry.createRegistry . These are all valid solutions to the OP s problem and none of them is excluded by anything in his question . The problem with your answer is that you presented only one of those methods as the correct way you didn t mention the issue with file : codebases that I raised you subsequently conflated nearly all of them as codebase features when they aren t and you misrepresented that as my comment . Comment : Codebase is actually for dynamic loading of remote resources i don t know where you get that codebase is for local clients but it s not like that you just said it you can define the codebase feature in the class path it s exactly what i said in response to your first comment it is still a codebase if you don t like it you can always add your own response thanks for your comments docs.oracle.com javase 6 docs technotes guides rmi http : docs.oracle.com javase 6 docs technotes guides rmi codebase.html", "Question : I am programming a simple client-server application using Java-RMI . I would like to know when all clients died in order to shut the server down . After having done some research on the web I found out that I could make my server implement the Unreferenced interface and define the unreferenced method . But this seems not to work and I think it is because the server is bound to the RMI-Registry which probably holds a reference on it . Does anybody have an idea of how I could get notified when all clients crashed in my case Thanks .. . Answer : I think it is because the server is bound to the RMI-Registry which probably holds a reference on it . You are correct the RMIRegistry also counts as a client for DGC Unreferenced purposes . Comment : So how would you check whether the clients have crashed in my case I am using a workaround which pings them at defined intervals but that is less reliable in my opinion since the client application may have crashed but the client host could still be running.. . Comment : That s the only way . Unless you have the object that s bound in the Registry be only a kind of Login object that returns per-client Session instances that aren t bound in the registry . When Session.unreferenced is called its only client has gone so it can do whatever it wants about that such as unexporting itself . You don t really care if the Login object has no clients . The distinction between client has crashed and client host has crashed doesn t seem relevant to me . What you are interested in is the health of the entire system including the client . Comment : Interesting . Your approach is really a smart way to do it . But I think will stick to my ping-based approach for this project . Thanks for clarification . Comment : @Jean Gauthier Sure . The Session approach has a lot of other things going for it such as automatic per-client state if you need that . But it s your design .", "Question : I write a simple RMI application . I found out that the Client after getting the RMI-Registry can execute successful the Registry.unbind method . This is in my opinion a security risk . Why it is allowed to the Client to unbind the Name in the remote Registry A evil person can do this with a modification of the Code and all my other Clients cann t connect to my Server because the binding was removed . Is there a possibility to deny this maybe in the Java policy .. . Answer : This can only happen if the client is running in the same host as the Registry . If you are having security problems wth your own clients you have a much bigger problem than anything RMI can solve for you .", "Question : So the problem is I have some server code that will allow a Client to call functions on it using rmiregistry . It should be noted I m running these commands on OS X terminal and I have two folders I m working within : .. . .. . RMI - which will call the rmiregistry and Server - which has all my server code in it .. . .. . So I open one terminal and enter this : .. . .. . All is well I get a port back . I then login to the Server folder that contains my server code to run my calculatorserver program . Now I ve been told to specify the codebase and the security policy : .. . .. . However I keep on getting this same error : .. . .. . I know the only reason I m getting this error is because the rmiregistry can t find the server object . Some guidance would be appreciated .. . Answer : That s not a real HTTP URL . It s a directory name with http : stuck in front of it . You need to use a real http : URL with a real HTTP server . Or FTP . You can use a file : URL but then you re more or less stuck within a single host in which case you don t actually need the codebase feature at all . And if you do use a file : URL it has to be intelligible to the Registry and the client which again means either they re all in the same host or it names a shared directory that the Registry and client can see . NB Don t specify the codebase to the Registry or the client unless it exports remote callback objects : only to the server JVM Comment : My mistake I had it down as a file : URL - pasted the wrong clipboard . Which is what I want . What exactly do mean by specifying the codebase to the server JVM Comment : Specifying the codebase -Djava.rmi.server.codebase .. . . You should only specify that argument to the server JVM or more generally to JVMs that export remote objects that need the codebase . The Registry isn t one of those .", "Question : Hi I m trying to run a java application that binds a class to the naming server but i constantly get a ClassNotFoundException .. . .. . First I start the registry : .. . .. . rmiregistry .. . .. . then from eclipse I try to execute the server but get this error .. . .. . java.rmi.ServerException : RemoteException occurred in server thread nested exception is : java.rmi.UnmarshalException : error unmarshalling arguments nested exception is : java.lang.ClassNotFoundException : progInternet2008.commons.NominabileFactory at sun.rmi.server.UnicastServerRef.oldDispatch UnicastServerRef.java : 396 at sun.rmi.server.UnicastServerRef.dispatch UnicastServerRef.java : 250 at sun.rmi.transport.Transport 1.run Transport.java : 159 at java.security.AccessController.doPrivileged Native Method at sun.rmi.transport.Transport.serviceCall Transport.java : 155 at sun.rmi.transport.tcp.TCPTransport.handleMessages TCPTransport.java : 535 at sun.rmi.transport.tcp.TCPTransport ConnectionHandler.run0 TCPTransport.java : 790 at sun.rmi.transport.tcp.TCPTransport ConnectionHandler.run TCPTransport.java : 649 at java.util.concurrent.ThreadPoolExecutor Worker.runTask ThreadPoolExecutor.java : 886 at java.util.concurrent.ThreadPoolExecutor Worker.run ThreadPoolExecutor.java : 908 at java.lang.Thread.run Thread.java : 619 at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer StreamRemoteCall.java : 255 at sun.rmi.transport.StreamRemoteCall.executeCall StreamRemoteCall.java : 233 at sun.rmi.server.UnicastRef.invoke UnicastRef.java : 359 at sun.rmi.registry.RegistryImpl Stub.rebind Unknown Source at progInternet2008.Pozzobon.tesi.Slave.main Slave.java : 54 Caused by : java.rmi.UnmarshalException : error unmarshalling arguments nested exception is : java.lang.ClassNotFoundException : progInternet2008.commons.NominabileFactory at sun.rmi.registry.RegistryImpl Skel.dispatch Unknown Source at sun.rmi.server.UnicastServerRef.oldDispatch UnicastServerRef.java : 386 at sun.rmi.server.UnicastServerRef.dispatch UnicastServerRef.java : 250 at sun.rmi.transport.Transport 1.run Transport.java : 159 at java.security.AccessController.doPrivileged Native Method at sun.rmi.transport.Transport.serviceCall Transport.java : 155 at sun.rmi.transport.tcp.TCPTransport.handleMessages TCPTransport.java : 535 at sun.rmi.transport.tcp.TCPTransport ConnectionHandler.run0 TCPTransport.java : 790 at sun.rmi.transport.tcp.TCPTransport ConnectionHandler.run TCPTransport.java : 649 at java.util.concurrent.ThreadPoolExecutor Worker.runTask ThreadPoolExecutor.java : 886 at java.util.concurrent.ThreadPoolExecutor Worker.run ThreadPoolExecutor.java : 908 at java.lang.Thread.run Thread.java : 619 Caused by : java.lang.ClassNotFoundException : progInternet2008.commons.NominabileFactory at java.net.URLClassLoader 1.run URLClassLoader.java : 200 at java.security.AccessController.doPrivileged Native Method at java.net.URLClassLoader.findClass URLClassLoader.java : 188 at java.lang.ClassLoader.loadClass ClassLoader.java : 307 at java.lang.ClassLoader.loadClass ClassLoader.java : 252 at java.lang.ClassLoader.loadClassInternal ClassLoader.java : 320 at java.lang.Class.forName0 Native Method at java.lang.Class.forName Class.java : 247 at sun.rmi.server.LoaderHandler.loadProxyInterfaces LoaderHandler.java : 711 at sun.rmi.server.LoaderHandler.loadProxyClass LoaderHandler.java : 655 at sun.rmi.server.LoaderHandler.loadProxyClass LoaderHandler.java : 592 at java.rmi.server.RMIClassLoader 2.loadProxyClass RMIClassLoader.java : 628 at java.rmi.server.RMIClassLoader.loadProxyClass RMIClassLoader.java : 294 at sun.rmi.server.MarshalInputStream.resolveProxyClass MarshalInputStream.java : 238 at java.io.ObjectInputStream.readProxyDesc ObjectInputStream.java : 1531 at java.io.ObjectInputStream.readClassDesc ObjectInputStream.java : 1493 at java.io.ObjectInputStream.readOrdinaryObject ObjectInputStream.java : 1732 at java.io.ObjectInputStream.readObject0 ObjectInputStream.java : 1329 at java.io.ObjectInputStream.readObject ObjectInputStream.java : 351 .. . 12 more .. . .. . I ve read the RMI Java tutorial but still could not get it working.. . .. . .. . As VM Arguments I ve set this : .. . .. . -Djava.rmi.server.codebase file : workspace loc progInternet2008 .. . .. . please help me .. . .. . I m using Java 6 Comment : Are you using Java 5 or 6 Comment : Did you end up fixing this problem Comment : A file : codebase URL is only going to work when client and server are on the same machine in which case you don t need the codebase feature at all or when it refers to a shared drive that looks the same from client and server which implies a LAN where again it is dubious whether you need the feature at all . .. . Answer : The exception is occurring because the rmiregistry application doesn t know where to load classes from . When you attempt to bind an object in the RMI registry the registry downloads the class definition for that object . Some of the other answers are telling you to get around this by setting the classpath for the rmiregistry app so that it has the class definitions when it is started and doesn t need to download anything but Sun s Java RMI tutorial explicitly says not to do this http : java.sun.com docs books tutorial rmi running.html . I suspect this has the potential to cause conflicts between the version of the class in the registry and the class on the server . The correct way to handle the problem is to set the java.rmi.server.codebase property as you were trying to do . The property requires that a directory path be terminated with a forward slash like so : .. . .. . You may also be having trouble if the workspace loc variable is a relative-path and the rmiregistry application was not started in the same directory so the relative-path is not correct for it . If you either make the path absolute or start the rmiregistry in the appropriate directory the ClassNotFoundException should go away . See the tutorial on the java.rmi.server.codebase property http : java.sun.com javase 6 docs technotes guides rmi codebase.html for a little more detailed information . Comment : The tutorial is only saying that because it is using the codebase feature and it breaks the codebase feature . It s not a issue otherwise .", "Question : Dear stack-overflow users . I ve read a lot of RMI registry problems and tried them to my problem but to no success . So here is my case and I hope someone can at least help me along a bit . I am building a multi player pacman for a school project . It is required to use the java RMI so I created 3 nice jar files . The server containing only a main class that publishes the thing to a remote-server and loads some stuff like a map etc . The client containing some swing junk that displays some nice forms . And third a library that contains all pacman code . Now when I start the server locally it starts a rmiregistry and binds the game to it after setup of course . Then I connect my client to it and can play nicely . All works and I can start a view client all connecting to my local rmiregistery and get the game object nicely . after that I booted up the registry independent of the server and ran the program success full again . Even through the IP of my laptop not 127.0.0.1 it worked fine . Note that I didn t set the classpath of the registry . So after that I moved the stuff to the server 2008 . I started the rmiregistry there without a classpath and tryed to connect my server.jar to it and failed . could not find ..spel class exeption so I fixed the classpath... . to no effect... . so I opened a new console started a new registry copied the pacman.jar to c : and ran the server.jar with the -Djava.rmi.server.codebase c : paramether... . to no effect.. . then I set a security manager.. . System.setSecurityManager new RMISecurityManager and made a policy containing : grant permission java.security.AllPermission and executed the server using server.jar -Djava.rmi.server.codebase c : -Djava.security.policy server.policy.. . with again no effect . I keep getting the same exception : .. . .. . Does any one has any clue to what the problem is and how to fix it Comment : o yes i tryed the -Djava.rmi.server.codebase file : c : packman.jar to. . to the same resulting error . .. . Answer : This http : download.oracle.com javase 1.4.2 docs guide rmi faq.html may also help . Take a look at A.2 . It seems that for what ever reason . A class classes can not be found at the url provided . Make sure that the url is formed correctly and all needed classes are on the classpath . When a remote object is marshalled by RMI whether as an argument to a remote call or as a return-value the codebase for the stub class is retrieved by RMI and used to annotate the serialized stub . When the stub is unmarshalled the codebase is used to load the stub classfile using the RMIClassLoader unless the class can already be found in the CLASSPATH or by the context classloader for the receiving object such as an applet codebase . If the Stub class was loaded by an RMIClassLoader then RMI already knows which codebase to use for its annotation . If the Stub class was loaded from the CLASSPATH then there is no obvious codebase and RMI consults the java.rmi.server.codebase system property to find the codebase . If the system property is not set then the stub is marshalled with a null codebase which means that it cannot be used unless the client has a matching copy of the Stub classfile in the client s CLASSPATH . Comment : The problem is that spel in this case is the interface to the remote object and its in the paths of both the server as the client present so there should be no loading from the rmiclassloader . Except for maybe the registery", "Question : I write a simple RMI application . I found out that the Client after getting the RMI-Registry can execute successful the Registry.unbind method . This is in my opinion a security risk . Why it is allowed to the Client to unbind the Name in the remote Registry A evil person can do this with a modification of the Code and all my other Clients cann t connect to my Server because the binding was removed . Is there a possibility to deny this maybe in the Java policy .. . Answer : From the Javadoc http : docs.oracle.com javase 6 docs api java rmi registry Registry.html for Registry : .. . .. . A Registry implementation may choose to restrict access to some or all of its methods for example methods that mutate the registry s bindings may be restricted to calls originating from the local host . If a Registry method chooses to deny access for a given invocation its implementation may throw AccessException which because it extends RemoteException will be wrapped in a ServerException when caught by a remote client . You have the option of preventing this behavior if you so choose its actually the default behavior for most registry implementations .", "Question : Dear stack-overflow users . I ve read a lot of RMI registry problems and tried them to my problem but to no success . So here is my case and I hope someone can at least help me along a bit . I am building a multi player pacman for a school project . It is required to use the java RMI so I created 3 nice jar files . The server containing only a main class that publishes the thing to a remote-server and loads some stuff like a map etc . The client containing some swing junk that displays some nice forms . And third a library that contains all pacman code . Now when I start the server locally it starts a rmiregistry and binds the game to it after setup of course . Then I connect my client to it and can play nicely . All works and I can start a view client all connecting to my local rmiregistery and get the game object nicely . after that I booted up the registry independent of the server and ran the program success full again . Even through the IP of my laptop not 127.0.0.1 it worked fine . Note that I didn t set the classpath of the registry . So after that I moved the stuff to the server 2008 . I started the rmiregistry there without a classpath and tryed to connect my server.jar to it and failed . could not find ..spel class exeption so I fixed the classpath... . to no effect... . so I opened a new console started a new registry copied the pacman.jar to c : and ran the server.jar with the -Djava.rmi.server.codebase c : paramether... . to no effect.. . then I set a security manager.. . System.setSecurityManager new RMISecurityManager and made a policy containing : grant permission java.security.AllPermission and executed the server using server.jar -Djava.rmi.server.codebase c : -Djava.security.policy server.policy.. . with again no effect . I keep getting the same exception : .. . .. . Does any one has any clue to what the problem is and how to fix it Comment : o yes i tryed the -Djava.rmi.server.codebase file : c : packman.jar to. . to the same resulting error . .. . Answer : Maybe this will help : Codebase info http : download.oracle.com javase 1.4.2 docs guide rmi codebase.html .. . .. . Scroll down to 6.1 If you encounter a problem running your RMI server", "Question : I want to setup two servers with jstatd running so I can monitoring my applications on the fly . The web server have been up and running but another server always get some exceptions like this . Could not bind JStatRemoteHost to RMI Registry java.rmi.ServerException : RemoteException occurred in server thread nested exception is : java.rmi.UnmarshalException : error unmarshalling arguments nested exception is : java.lang.ClassNotFoundException : sun.jvmstat.monitor.remote.RemoteHost no security manager : RMI class loader disabled at sun.rmi.server.UnicastServerRef.oldDispatch UnicastServerRef.java : 419 at sun.rmi.server.UnicastServerRef.dispatch UnicastServerRef.java : 267 at sun.rmi.transport.Transport 1.run Transport.java : 177 at sun.rmi.transport.Transport 1.run Transport.java : 174 at java.security.AccessController.doPrivileged Native Method at sun.rmi.transport.Transport.serviceCall Transport.java : 173 at sun.rmi.transport.tcp.TCPTransport.handleMessages TCPTransport.java : 553 at sun.rmi.transport.tcp.TCPTransport ConnectionHandler.run0 TCPTransport.java : 808 at sun.rmi.transport.tcp.TCPTransport ConnectionHandler.run TCPTransport.java : 667 at java.util.concurrent.ThreadPoolExecutor.runWorker ThreadPoolExecutor.java : 1145 at java.util.concurrent.ThreadPoolExecutor Worker.run ThreadPoolExecutor.java : 615 at java.lang.Thread.run Thread.java : 722 at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer StreamRemoteCall.java : 273 at sun.rmi.transport.StreamRemoteCall.executeCall StreamRemoteCall.java : 251 at sun.rmi.server.UnicastRef.invoke UnicastRef.java : 377 at sun.rmi.registry.RegistryImpl Stub.rebind Unknown Source at java.rmi.Naming.rebind Naming.java : 177 at sun.tools.jstatd.Jstatd.bind Jstatd.java : 57 at sun.tools.jstatd.Jstatd.main Jstatd.java : 143 Caused by : java.rmi.UnmarshalException : error unmarshalling arguments nested exception is : java.lang.ClassNotFoundException : sun.jvmstat.monitor.remote.RemoteHost no security manager : RMI class loader disabled at sun.rmi.registry.RegistryImpl Skel.dispatch Unknown Source at sun.rmi.server.UnicastServerRef.oldDispatch UnicastServerRef.java : 409 at sun.rmi.server.UnicastServerRef.dispatch UnicastServerRef.java : 267 at sun.rmi.transport.Transport 1.run Transport.java : 177 at sun.rmi.transport.Transport 1.run Transport.java : 174 at java.security.AccessController.doPrivileged Native Method at sun.rmi.transport.Transport.serviceCall Transport.java : 173 at sun.rmi.transport.tcp.TCPTransport.handleMessages TCPTransport.java : 553 at sun.rmi.transport.tcp.TCPTransport ConnectionHandler.run0 TCPTransport.java : 808 at sun.rmi.transport.tcp.TCPTransport ConnectionHandler.run TCPTransport.java : 667 at java.util.concurrent.ThreadPoolExecutor.runWorker ThreadPoolExecutor.java : 1145 at java.util.concurrent.ThreadPoolExecutor Worker.run ThreadPoolExecutor.java : 615 at java.lang.Thread.run Thread.java : 722 Caused by : java.lang.ClassNotFoundException : sun.jvmstat.monitor.remote.RemoteHost no security manager : RMI class loader disabled at sun.rmi.server.LoaderHandler.loadProxyClass LoaderHandler.java : 554 at java.rmi.server.RMIClassLoader 2.loadProxyClass RMIClassLoader.java : 646 at java.rmi.server.RMIClassLoader.loadProxyClass RMIClassLoader.java : 311 at sun.rmi.server.MarshalInputStream.resolveProxyClass MarshalInputStream.java : 263 at java.io.ObjectInputStream.readProxyDesc ObjectInputStream.java : 1556 at java.io.ObjectInputStream.readClassDesc ObjectInputStream.java : 1512 at java.io.ObjectInputStream.readOrdinaryObject ObjectInputStream.java : 1769 at java.io.ObjectInputStream.readObject0 ObjectInputStream.java : 1348 at java.io.ObjectInputStream.readObject ObjectInputStream.java : 370 .. . 13 more .. . .. . I am sure jstatd loaded the policy file which content is .. . .. . grant codebase file : java.home . . lib tools.jar permission java.security.AllPermission .. . .. . I cannot figure whats the problem come from please help . .. . Answer : I had the same problem as you . As far as I understood the exception occurred on the rmi registry side because it couldn t find the class sun.jvmstat.monitor.remote.RemoteHost located inside tools.jar . In my case the solution was to specify the java.rmi.server.codebase property when starting rmiregistry . After specifying the codebase property the problem gone . Please try to start the rmiregistry using the following command for Linux Solaris : .. . .. . rmiregistry -J-Djava.rmi.server.codebase file : java.home . . lib tools.jar .. . .. . or for Windows though I didn t test it fully .. . .. . start rmiregistry -J-Djava.rmi.server.codebase JAVA HOME . . lib tools.jar .. . .. . Hope it will help you . Comment : I m now hitting Failed to start RMI naming service at 1099", "Question : For RMI on server-side do we need to start rmiregistry program or just call LocateRegistry.createRegistry If both are possible what are the advantages and disadvantages .. . Answer : If we start rmiregistry first RmiServiceExporter would register itself to the running rmiregistry . In this case we have to set the system property java.rmi.server.codebase to where the org.springframework.remoting.rmi.RmiInvocationWrapper Stub class can be found . Otherwise the RmiServiceExporter would not be started and got the exception ClassNotFoundException class not found : org.springframework.remoting.rmi.RmiInvocationWrapper Stub nested exception is : .. . .. . .. . If your rmi server rmi client and rmiregistry can access the same filesystem you may want the system property to be automatically configured to where the spring.jar can be found on the shared filesystem . The following utility classes and spring configuration show how this can be achieved . The above example shows how system property be set automatically only when rmi server rmi client and rmi registry can access the same filesystem . If that is not true or spring codebase is shared via other method e.g . HTTP you may modify the CodeBaseResolver to fit your need .", "Question : So I was using LocateRegistry.createRegistry but this has a problem : namely it runs within the process that calls it so if I am using more than one JVM then a crash to the JVM that started the registry will take down the registry for all the JVMs . So it looks like I need to use rmiregistry or something to isolate the process that does RMI lookup binding from the server JVMs . I tried to do this and now I get this error when I try to do Registry.rebind : .. . .. . What am I doing wrong I googled this exception it has something to do with the RMI codebase but I m really lost here . If the problem is in the rmiregistry command what are the command-line options to tell it what to do If the problem is in my server JVM what do I need to do .. . Answer : What crash I haven t seen a JVM crash for years . Unless you have JNI the JVM containing your RMI servers is no more likely to crash than the standalone JVM started by the rmiregistry command . And using LocateRegistry.createRegistry solves your class path problems forever . Comment : My JVMs crash all the time because they use RxTx which has plenty of native-code problems . So I need to isolate them in a separate process . Comment : Anyway that s not my question . using LocateRegistry.createRegistry solves your class path problems forever . -- could you elaborate Comment : @Jason S : You have a ClassNotFoundException because the Registry couldn t find the class named because it wasn t on its classpath but if the Registry is in the same JVM it is on the classpath same as it is for the remote object and everything else in the JVM so you don t get that error as you already discovered .", "Question : If i m creating the RMI registry from command-line the client has no problem in binding objects to the registry . However if i m starting the RMI registry using ProcessBuilder it s giving error . This is my code for creating rmiregistry using ProcessBuilder .. . .. . The error that i m getting for using ProcessBuilder when I m trying to bind to my own RMI registry .. . .. . node func is an interface .. . .. . Any ideas .. . Answer : I don t see why you are starting a separate process when you could use LocateRegistry.createRegistry . If you did that this problem would disappear as well . Comment : Problem solved", "Question : I m running RMI Regitry on a virtual-machine running Windows XP with IP : 192.168.133.2 and trying to bind an RMI server running on different vm XP IP : 192.168.133.3 by using this code : .. . .. . where .. . .. . but I get this exception : .. . .. . I figured that the RMI Registry don t accept any rmi server which isn t running on the same RMI Registry running machine . but how to make this registry accept my rmi server p.s : I m using JBuilder X as an IDE . I m trying to implement a mobile agent which will run on some rmi servers to do some work on them and return the results to the starting station so RMI servers implements the environment that hosts this agent to do its work and send it to the next station which it ll locate through the registry .. . Answer : trying to bind an RMI server running on different vm XP IP : 192.168.133.3 .. . .. . Stop right there . You can t do that . You can only bind an RMI server to a Registry running in the same host as the agent that is doing the bind . Note that that does not necessarily mean the same host as the remote object itself is running in . For example a client could lookup a remote Registry and bind the stubs retrieved into the local Registry . But you cannot bind anything to a remote Registry . Comment : Thanks for that info" ] }
[ "yes-answer-long", "yes-answer-short" ]
rmi
UNK_RELATION
netbeans-platform@java@109
netbeans-platform -- the netbeans-platform is a cross-platform desktop application framework implemented in @placeholder .
{ "confidence": [ 60.119422912597656, 59.535377502441406, 58.722251892089844, 58.64830017089844, 58.64830017089844, 57.730350494384766, 56.9854736328125, 56.48516082763672, 56.48516082763672, 56.48121643066406, 55.700584411621094, 54.56311798095703, 54.29942321777344, 54.244449615478516, 54.17446517944336, 53.68212890625, 53.08012390136719, 52.91202926635742, 52.89851760864258, 52.89851760864258, 51.512901306152344, 51.249202728271484, 51.249202728271484, 51.249202728271484, 50.64809036254883, 50.0299072265625, 50.0299072265625, 49.89556884765625, 49.89556884765625, 49.89556884765625, 49.89556884765625, 49.260311126708984, 48.508174896240234, 48.054527282714844, 47.246612548828125, 47.246612548828125, 47.246612548828125, 47.246612548828125, 47.246612548828125, 47.16183090209961, 46.8453483581543, 46.8453483581543, 46.8453483581543, 46.391700744628906, 45.859222412109375, 45.859222412109375, 45.859222412109375, 44.894775390625, 44.743690490722656, 44.19639587402344, 43.60840606689453, 43.60840606689453, 43.60840606689453, 43.60840606689453, 43.60840606689453, 43.60840606689453, 43.60840606689453, 43.081031799316406, 42.930145263671875, 42.930145263671875, 42.930145263671875, 42.24582290649414, 42.22101593017578, 42.22101593017578, 42.22101593017578, 42.22101593017578, 41.032527923583984, 40.558189392089844, 40.558189392089844, 40.558189392089844, 40.558189392089844, 39.87992858886719, 39.87992858886719, 39.760528564453125, 39.611968994140625, 38.60761642456055, 38.373138427734375, 38.373138427734375, 38.095542907714844, 38.095542907714844, 37.10914993286133, 36.935508728027344, 36.93055725097656, 36.71031188964844, 36.71031188964844, 36.060264587402344, 35.450767517089844, 35.450767517089844, 35.25612258911133, 34.89434051513672, 34.86152267456055, 34.86152267456055, 34.794960021972656, 34.63304901123047, 34.06337356567383, 33.98430633544922, 33.59329605102539, 33.57257080078125, 33.57257080078125 ], "content": [ "Drombler FX has not been designed for integration in a NetBeans Platform Application and it does not support NetBeans Platform Modules out-of-the-box .", "I have an application that is written with the NetBeans Platform 5.5 .", "Using ANTLR4 and the Netbeans Platform I have created a grammar for which I have implemented syntax-highlighting in my Netbeans Platform application .", "We have an application developed in NetBeans based on the NetBeans platform .", "There s no such option on a NetBeans module project or on a NetBeans Platform Application -project .", "I can then use this platform to create a new NetBeans Platform application with the added platform as the base but when I try to create a NetBeans Application by going under the Maven category only various versions of NetBeans are available .", "I have a Netbeans platform application running which is developed in Netbeans v7.4 .", "I have Netbeans Platform Application project .", "I am building a netbeans-platform application .", "I followed intructions on NetBeans Platform Website and NetBeans Platform 7 Book but nothing seems to work .", "I am developing a desktop application in netbeans-platform netbeans module in which i have a desktoppane and a jscrollbar .", "As the NetBeans Platform supports OSGi at least to some degree", "Since my application is using the NetBeans Platform many of the menu choices change .", "nbs NetBeans Scripts Schliemann files are used to define languages on NetBeans Platform", "I am attempting to create a NetBeans Platform Application int NetBeans 8.1 that can use Maven but a different Platform from the regular Development IDE .", "I am looking for a JavaFX application framework to use in a NetBeans Platform based application .", "I am building a NetBeans RCP application using the NetBeans platform version 7.3 and the maven-nbm-plugin .", "My goal is to launch a NetBeans platform application without showing the main window .", "My question is there some way to create a Maven NetBeans Platform application with a third party Platform", "If not possible to do that how would one go about adding the third party platform to a Maven NetBeans Platform application", "I have a netbeans-platform based app .", "Info about application : packaged by maven used netbeans-platform 7.3.1 .", "I ve created a NetBeans Platform application that is launched using Java Web Start .", "My target is to use a self-written SubstanceSkin with my Netbeans Platform application .", "I m building a Netbeans platform maven application but it seams that the repository http : bits.netbeans.org nexus content groups netbeans that hosts Netbeans modules is down or something .", "I m working on a simple NetBeans platform 8.1 application basically wrapping a NetBeans file-type plugin for NITF .", "I am looking at the NetBeans Platform using NetBeans IDE to create a Swing UI application .", "How you embed JxBrowser library into this Netbeans Rich Client Platform as a TopComponent .", "Does Netbeans Rich Client Platform allow embedding heavyweight components .", "Also don t forget the NetBeans Platform Developer Mailing List - dev@platform.netbeans.org", "Hi I have problems with module design in Netbeans Platform .", "I ve already added the platform I wish to use by going to Tools - NetBeans Platforms - Add Platform and it registered correctly with the IDE .", "I have a Netbeans platform program that uses a custom DataEditorSupport and a custom ClonableEditor .", "This error occurs when I use Netbeans 8.1 IDE to start my Netbeans 8.1 Platform project .", "My NetBeans Platform application by default doesn t have a Plugins item in Tools menu .", "We have a custom file-type and custom editor in a netbeans-platform application which consists of several textfield and dropdowns .", "I m working with evaluation license of JxBrowser and I m trying to integrate it into a Java application based on the Netbeans Rich Client Platform as a TopComponent .", "So can anyone explain how a NetBeans Platform application with a custom configuration file can be built using maven", "I am writing a NetBeans Platform 7.4 based application and I have created a custom ProjecType and FileType .", "Just started a project that involves a rich client implemented in Netbeans Platform NBP Spring framework is chosen to implement business logic and for data-access .", "When i run the project through netbeans-platform 7.4. . it works properly .", "I assume the difference is his project isn t a NetBeans Platform one", "I am having a hard time customizing my menus in the NetBeans Platform .", "I m trying to add MP3 capabilities to my Netbeans Platform project in Netbeans 8.0 .", "I have bundled a netbeans-platform based application including a jre thanks geertjan", "I would like to have an image background in the main Toolbar in a Netbeans Platform application .", "I am writing a netbeans-platform application using nebteans 8.1 Java 1.8 under CentOS6.4 .", "Context : We are designing a Netbeans Platform RCP based Lua IDE .", "I m made Desktop App in netbeans-platform in java.now wwhen i run my app it will open by default size of netbeans-platform configuration.but i want full screen mode when i run or startup my app .", "I use the following code to create db connection .. . .. . The project was created in Netbeans-Platform-Application-Module .", "I m trying to create a mock menu for a module of my netbeans-platform project which I m starting .", "I have a custom java-help page help.html in a NetBeans platform app which contains links to an online documentation .", "I m working on a card game based on the NetBeans platform and I m struggling to get my head around dynamic images .", "agree 100 with the Geertjan comment his blog is a treasure trove of NetBeans platform information .", "I don t get that option for a NetBeans Platform project... . Would love if anyone could help with this .", "Here is a good tutorial http : platform.netbeans.org tutorials nbm-feedreader.html for setting up a Feed Reader on NetBeans Platform .", "from here http : tdamir.blogspot.com 2008 03 netbeans-platform-based-web-service.html .", "When you try to reinstall an application created with the Netbeans application platform you have to manually uninstall the previous version before reinstalling it again .", "In my NetBeans Platform based application I have two top components with default editor location : .. . .. . and I have explorer topcomponent : .. . .. . and the problem is that : .. . .. . 1 .", "Applications built on top of the NetBeans platform have a myappdir etc myapp .conf file determining among other things application JVM parameters .", "I m developing a NetBeans platform application and want to use lookup api to get implementations for specific interfaces still keeping everything loosely coupled .", "It was written using NetBeans Platform and uses the WebSphere application-client library to establish communication with the EJB s .", "However I ve been using http : repo.spring.io libs-release-remote as it has the netbeans-platform artifacts that I need .", "The NetBeans Platform is a highly threaded environment and EntityManagers are designed to only work on a single thread .", "And your script can be anything that can be executed in or by Java the NetBeans Platform does not constrain you in that manner", "Of course mantaining that software means that I m already experienced in Netbeans Platform while I m at Hello World level with Eclipse RCP .", "Changing the application from the Platform architecture is not an option .", "In Netbeans Platform I m having one module watch the xml filesystem and respond when it s changed by other modules .", "EDIT : .. . .. . Here actually my purpose is to update from netbeans-platform RELEASE802 to RELEASE81-BETA .", "I want to do it in code and also these sheets are automatically created by netbeans-platform and not in the GUI builder .", "I m converting a netbeans-platform build to maven and I m failing to identity the Maven artifact for org.netbeans.core.NbErrorManager .", "I have a Mavenized Netbeans Platform application and i have followed THIS https : platform.netbeans.org tutorials nbm-nbi.html guide for create an Installer of it .", "When I create a new NetBeans Module for a NeBbeans Platform Application NB creates a default folder structure for the module and registers the module .", "Solution to Open Close Re-Open a NetBeans Platform ProjectType http : comments.gmane.org gmane.comp.java.netbeans.modules.openide.devel 62890 .. . .. . The solution is to get a clone of the child nodes instead of just the delegate .", "forums.netbeans.org platform-users.html http : forums.netbeans.org platform-users.html", "I would recommend asking for possible suggestions where things can go wrong.. . on the NetBeans Platform Users forum .", "You could move your netbeans-platform project over to maven you will find that maven will package your build into a useful self-contained zip file .", "with maven based apps you don t deal with the Tools - NetBeans Platforms UI you declare platform artifact versions in the maven pom files .", "I want to switch language in my netbeans-platform application and I need to access to the text in all JMenu items .. . .. . I use this code : .. . .. . it Changes the item text but the display text does not change .", "The solution is to configure the nbm-maven-plugin like so in the application module pom : .. . .. . BTW if you need a second name with Geertjan you re not really a NetBeans platform developer .", "In the Platform Modules list expand the platform and check both the Auto Update Services and Auto Update UI nodes .", "I am working on a Desktop app with the Netbeans RCP .", "If you really want to use the SNAPSHOT versions of the current development please add a proxy to the following repo to your Maven Repository Manager such as Nexus : .. . .. . https : oss.sonatype.org content repositories snapshots .. . .. . I am looking for a JavaFX application framework to use in a NetBeans Platform based application .", "The examples I ve seen require you to have a Layer file which I don t believe I have in my NetBeans Platform Project .", "I have tried several java6update versions .. . I have tried upgrading netbeans-platform .. . None of my code is in the stacktrace when it is deadlocked .", "What exactly do you mean by platform", "There s a related question http : stackoverflow.com questions 9922179 creating-window-groups-on-netbeans-platform already answered but so much has changed since then with the use of annotations .", "You should read through Tweaking the User Interface from the NetBeans Platform HTML Editor tutorial http : platform.netbeans.org tutorials nbm-htmleditor.html tweakingthemenuitems to get a rough idea of what you will need to do .", "Before I continue I have to say that I ve been maintaining for almost a year our previous software which was written in Netbeans Platform but it has so many performance issues and so many bugs some of which it seems tied to the platform itself -- i.e .", "At run-time the platform module system", "I tried to start developing an NB platform application that holds a JFXPanel in a TopComponent .", "Included Common Palette in platform modules for a new requirement in same application .", "I m about to start a fairly big application for my company and since it HAS to be cross-platform we re pointing towards Java would have loved C but explored the Xamarin ecosystem and the Mac part seems to be quite behind the rest package.. . .. . .. . Now I m evaluating both Netbeans 8 and Eclipse 4 as RCP .", "There is an api to get you info about a NetBeans project http : bits.netbeans.org dev javadoc org-netbeans-modules-projectapi org netbeans api project ProjectInformation.html .", "plugins not updating with no apparen reason that both me and my company kinda lost faith in Netbeans Platform but on the other side I can t seem to figure out a good way to start digging in Eclipse RCP .", "I am developing a plugin for NetBeans 8.0 and I created a LookupProvider which is registered like that : .. . .. . I would like to know if there is the possibility to reference the project types from a constant which is already defined by the NetBeans platform or do I really have to declare them as strings like org-netbeans-modules-web-clientproject", "One way to do this in the NetBeans Platform is to register a Presenter.Menu http : bits.netbeans.org dev javadoc org-openide-util org openide util actions Presenter.Menu.html in the menu : .. . .. . When you register a Presenter.Menu in the menu the getMenuPresenter method is called by the platform to get the actual JMenuItem that is added to the menu .", "with the fabulous netbeans installer .", "Here is a netbeans forum post ." ] }
{ "confidence": [ 60.42766571044922, 59.78072738647461, 58.778873443603516, 57.3242301940918, 57.18722915649414, 57.16358947753906, 57.16358947753906, 57.16358947753906, 55.933109283447266, 55.333621978759766, 53.59256362915039, 53.53788757324219, 53.07166290283203, 53.05027770996094, 52.28089141845703, 52.14103698730469, 51.20799255371094, 50.455284118652344, 49.65751647949219, 49.03669738769531 ], "content": [ "Question : I am attempting to create a NetBeans Platform Application int NetBeans 8.1 that can use Maven but a different Platform from the regular Development IDE . I ve already added the platform I wish to use by going to Tools - NetBeans Platforms - Add Platform and it registered correctly with the IDE . I can then use this platform to create a new NetBeans Platform application with the added platform as the base but when I try to create a NetBeans Application by going under the Maven category only various versions of NetBeans are available . I m still getting used to the environment but I m pretty sure that it only shows these versions because it pulls those platforms from the repositories . My question is there some way to create a Maven NetBeans Platform application with a third party Platform If not possible to do that how would one go about adding the third party platform to a Maven NetBeans Platform application Comment : Rurouni could you format your post into paragraphs that would be appreciated : .. . Answer : with maven based apps you don t deal with the Tools - NetBeans Platforms UI you declare platform artifact versions in the maven pom files .", "Question : I m made Desktop App in netbeans-platform in java.now wwhen i run my app it will open by default size of netbeans-platform configuration.but i want full screen mode when i run or startup my app . so where and how to do that in my app .. . Answer : If you want you Application to be Full Screen..Use Toolkit .. .", "Question : I am looking for a JavaFX application framework to use in a NetBeans Platform based application . Would it be possible to use Drombler FX in it I looked at other alternatives mFx and eFX but seem abandoned and I would like to avoid the mixed look of Swing with JavaFX . I tried to run the sample application to get a better idea of its functionality but I got an error when I follow the get started instructions to generate it : .. . .. . Lastly is Drombler FX under active development .. . Answer : I m the main developer of Drombler FX . Lastly is Drombler FX under active development Yes Drombler FX is under active development . The desired archetype does not exist org.drombler.fx : drombler-fx-maven-archetype-application : 0.8-SNAPSHOT .. . .. . Please note that at the time of writing the latest released version is 0.7 . All artifacts of v0.7 have been deployed to Maven Central and should be available . You can find the Getting Started page of the v0.7 tutorial here http : www.drombler.org drombler-fx 0.7 docs tutorial getting-started.html gettingStarted . If you really want to use the SNAPSHOT versions of the current development please add a proxy to the following repo to your Maven Repository Manager such as Nexus : .. . .. . https : oss.sonatype.org content repositories snapshots .. . .. . I am looking for a JavaFX application framework to use in a NetBeans Platform based application . Would it be possible to use Drombler-FX in it I looked at other alternatives mFx and eFX but seem abandoned and I would like to avoid the mixed look of Swing with JavaFX . Drombler FX has not been designed for integration in a NetBeans Platform Application and it does not support NetBeans Platform Modules out-of-the-box . As the NetBeans Platform supports OSGi at least to some degree I guess you would have to find replacements at least for the bootstraping code which you can find here : .. . .. . https : github.com Drombler drombler-acp tree develop drombler-acp-startup-main .. . https : github.com Drombler drombler-fx tree develop drombler-fx-startup-main .. . .. . But even if you would manage it wouldn t you still have the mix of Swing and JavaFX you would like to avoid", "Question : I have an application that is written with the NetBeans Platform 5.5 . I m having trouble consuming a web service . If I create a Java SE application in NetBeans I can add a web service-reference without problem . Since my application is using the NetBeans Platform many of the menu choices change . So I cannot figure out how to add a reference to the web service . I ve googled this topic a number of ways but haven t found any pages that deal with consuming a service through the platform . They all talk about consuming a service with a Java SE application . Changing the application from the Platform architecture is not an option . Comment : Do you have a service in mind Can you tell us which one Are there any details to consumption over a simple get Comment : I m having the same problem with NetBeans 7.0.1 . Basically with a standard Java SE Project you can right-click select New Web Service Client.. . and add a webservice by specyfying the wsdl url . I don t get that option for a NetBeans Platform project... . Would love if anyone could help with this . .. . Answer : Here is a good tutorial http : platform.netbeans.org tutorials nbm-feedreader.html for setting up a Feed Reader on NetBeans Platform . It covers some of the configuration issues for using web-services .. . .. . Blog with an entry http : tdamir.blogspot.com 2008 03 netbeans-platform-based-web-service.html about making a web-services client .. . .. . I d be happy to try and give you a more specific answer if you can give information about the service you want to access .", "Question : I have an application that is written with the NetBeans Platform 5.5 . I m having trouble consuming a web service . If I create a Java SE application in NetBeans I can add a web service-reference without problem . Since my application is using the NetBeans Platform many of the menu choices change . So I cannot figure out how to add a reference to the web service . I ve googled this topic a number of ways but haven t found any pages that deal with consuming a service through the platform . They all talk about consuming a service with a Java SE application . Changing the application from the Platform architecture is not an option . Comment : Do you have a service in mind Can you tell us which one Are there any details to consumption over a simple get Comment : I m having the same problem with NetBeans 7.0.1 . Basically with a standard Java SE Project you can right-click select New Web Service Client.. . and add a webservice by specyfying the wsdl url . I don t get that option for a NetBeans Platform project... . Would love if anyone could help with this . .. . Answer : Found this : .. . .. . 1 . Create web service and client using this tutorial http : www.netbeans.org kb 60 websvc jax-ws.html .. . 2 . Create library wrapper module for web service client you don t need to include JAX-WS libs only your client jar .. . 3 . In your wrapper module add following dependencies important : .. . JAX-WS 2.1 API .. . JAX-WS 2.1 and JAXB 2.1 Library for this you have to check Show Non-API Modules in Add Module Dependency window .. . 4 . If you try to build module after these steps it will fail telling you that your module is not friend of path-to-netbeans java2 modules org-netbeans-modules-websvc-jaxws21.jar . Right click on JAX-WS 2.1 and JAXB 2.1 Library and choose Edit . Select Implementation Version . from here http : tdamir.blogspot.com 2008 03 netbeans-platform-based-web-service.html .", "Question : I m made Desktop App in netbeans-platform in java.now wwhen i run my app it will open by default size of netbeans-platform configuration.but i want full screen mode when i run or startup my app . so where and how to do that in my app .. . Answer : If you want to open the JFrame maximized by default in swing you can use JFrame . setExtendedState illusrated below : .. . .. . Also remember that you should not have JFrame.pack or JFrame.setMaximimumSize or JFrame.setSize in the same menthod here constructor .", "Question : I m made Desktop App in netbeans-platform in java.now wwhen i run my app it will open by default size of netbeans-platform configuration.but i want full screen mode when i run or startup my app . so where and how to do that in my app .. . Answer : Use this code on Constructor .", "Question : I m made Desktop App in netbeans-platform in java.now wwhen i run my app it will open by default size of netbeans-platform configuration.but i want full screen mode when i run or startup my app . so where and how to do that in my app .. . Answer : I guess you are using JFrames for your App .", "Question : I m about to start a fairly big application for my company and since it HAS to be cross-platform we re pointing towards Java would have loved C but explored the Xamarin ecosystem and the Mac part seems to be quite behind the rest package.. . .. . .. . Now I m evaluating both Netbeans 8 and Eclipse 4 as RCP . Before I continue I have to say that I ve been maintaining for almost a year our previous software which was written in Netbeans Platform but it has so many performance issues and so many bugs some of which it seems tied to the platform itself -- i.e . plugins not updating with no apparen reason that both me and my company kinda lost faith in Netbeans Platform but on the other side I can t seem to figure out a good way to start digging in Eclipse RCP . Of course mantaining that software means that I m already experienced in Netbeans Platform while I m at Hello World level with Eclipse RCP . On top of that I guess I m going to use JavaFX 8 which I have to learn as well since it seems it s the new de facto standard in Java GUI . Basically my software should handle a local SQLite or JavaDB or similar database of customers with various data to be sent via Ethernet to other devices . So has anyone experiences with one or the other And if someone s into Eclipse could gift me with some updated tutorials for Eclipse 4 RCP before I start buying books Thanks anyone . Comment : I am using eclipse4 on linux it s pretty good . Don t need to change if upgrade from eclipse3.5+ . Comment : Thanks for your comment . The project is a fresh start so I m going to pick the latest version anyway . .. . Answer : Depends on your choice of UI toolkit eclipse is SWT and netbeans is pure swing therefore pure java . I have not worked with eclipse but I have been doing Netbeans plugins for nearly three years . Netbeans modular programming is pure pleasure like no other I know . Which Rich Client Platform to use http : stackoverflow.com questions 579109 which-rich-client-platform-to-use .. . .. . JSR 296 has been postponed to Java 9 after being postponed from java-7 to Java 8 . So I wouldn t wait on that . Spring RCP is dead long time ago . The author of the above post seems to have preconceived notions about Netbeans RCP s approach . Netbeans has already implemented both JSR 296 JSR 277 long time ago and their implementation is time tested nearly 15 years now . At the end of the day it boils down to what you are trying to do . But Netbeans RCP is a great tool and is used by many customers . FedEx and US airforce are the ones that come to my mind . Listed below is netbeans showcase that lists all the existing users of the RCP . It may be a bit out of date IMO . https : platform.netbeans.org screenshots.html .. . .. . Update .. . .. . There was one more thing I wanted to write but found it hard to gather myself at the bar last night : . A while ago I tried to convert SquirrelSql to use JavaFX but as with all my other ideas I lost interest midway . I found it surprising that I could just use the JavaFx s sorta kinda MVC with JBoss weld CDI and I really liked programming MVC in Java Desktop UI world . I know you must have already made your decision but this with worth taking a look at i am sure it might come in handy for your future endeavours as you spend your time doing desktop apps for a living . Here is the code look into fw-fx directory . udutha-sql https : sourceforge.net p uduthasql code ci master tree sql12 Comment : Thanks for the detailed answer . However I decided to go on with a completely different path . However I m accepting your answer given the context you gave me . Comment : Really appreciate the update Comment : @Lorthirk what path have you chosen Comment : I have to say that my requirements changed quite a lot however I choosed to develop a web application based on Node.JS and I m really enjoying it . Comment : An addition : In Eclipse 4 you can switch the UI toolkit . You can stay with SWT go for Swing or use JavaFX . If you want you can even write up your own toolkit .", "Question : Applications built on top of the NetBeans platform have a myappdir etc myapp .conf file determining among other things application JVM parameters . Historically this file was a part of the NetBeans IDE installation as far as I could tell but starting with NB 6.9 custom files are now supported http : blogs.oracle.com geertjan entry support for custom configuration-files . I am having trouble packaging a custom configuration file using Maven to build the application . I imagine the app.conf property should have been set in the project s pom under project build pluginManagement plugins like so : .. . .. . The maven module representing my application contained no prior source so I created the src main nbm folder and placed myapp.conf in src main nbm . This isn t picked up by nbm-maven-plugin . and putting the conf file into src main resources doesn t make a difference . So can anyone explain how a NetBeans Platform application with a custom configuration file can be built using maven UPDATE : .. . .. . With Tim s prod in the right direction I found the answer documented on Geertjan s blog http : blogs.oracle.com geertjan entry nimbus look-and-feel for . The solution is to configure the nbm-maven-plugin like so in the application module pom : .. . .. . BTW if you need a second name with Geertjan you re not really a NetBeans platform developer . Comment : agree 100 with the Geertjan comment his blog is a treasure trove of NetBeans platform information . Also don t forget the NetBeans Platform Developer Mailing List - dev@platform.netbeans.org .. . Answer : Have a look at the documentation of the nbm : cluster-app http : mojo.codehaus.org nbm-maven-plugin cluster-app-mojo.html plugin specifically the part on the conf file http : mojo.codehaus.org nbm-maven-plugin cluster-app-mojo.html etcConfFile . As per my understanding that should allow you to replace the default one with a custom one that you create .", "Question : I have bundled a netbeans-platform based application including a jre thanks geertjan with the fabulous netbeans installer . When I run the installer on windows tested it on 7 the system asks me for admin rights . Some of my users won t have such rights am I stuck : .. . .. . Is this possible to run the installer without admin rights .. . Answer : You could move your netbeans-platform project over to maven you will find that maven will package your build into a useful self-contained zip file . Your users will be able to unzip the zip file anywhere and there will be a exe file for your application in the unzipped bin folder .", "Question : null .. . Answer : I have a Netbeans platform application running which is developed in Netbeans v7.4 . Included Common Palette in platform modules for a new requirement in same application . And I m using this Common Palette api in one of the modules of the application which runs fine while debugging and executing in Netbeans IDE . Released the updates as nbms . When trying to pull the updates through plugin in I get the following message .. . .. . enter image description here http : i.stack.imgur.com STsZ3.png .. . .. . Is there anyway to get the plugin updated", "Question : null .. . Answer : I m working with evaluation license of JxBrowser and I m trying to integrate it into a Java application based on the Netbeans Rich Client Platform as a TopComponent . The code compiles but the JxBrowser window comes up blank are there examples of such integration or diagnostics that can help since the JxBrowser library is not opensource and so it is hard to debug the behavior . Thanks . Comment : Could you please provide more details about the issue . How you embed JxBrowser library into this Netbeans Rich Client Platform as a TopComponent . I suppose you use default rendering mode which is heavyweight rendering mode . Does Netbeans Rich Client Platform allow embedding heavyweight components . To check this you can try embedding java.awt.Canvas and see if it works . If Netbeans doesn t support heavyweight controls then you can try lightweight rendering mode . Please check JxBrowser documentation at jxbrowser.support.teamdev.com support solutions articles https : jxbrowser.support.teamdev.com support solutions articles 9000013069 Comment : Thanks Vladimir for the link that solved the problem . I switched to lightweight rendering mode .", "Question : Using ANTLR4 and the Netbeans Platform I have created a grammar for which I have implemented syntax-highlighting in my Netbeans Platform application . Everything works fine up to the point when I try to alter my code . This grammar allows code like this : some string 20 . But when I try to alter my code i.e . some id 20 some other id 10 I receive an IllegalStateException : .. . .. . This happens right when I type the first for the token . It seems that Netbeans wants to parse my code and the lexer recognizes that this is not a valid token which is correct . If I simply copy and paste a it works fine and Netbeans doesn t throw an exception . So this seems to be coming from me typing in incomplete tokens . How can I resolve this .. . Answer : You need to ensure that tokens are created for all possible input sequences . The most straightforward way to do this is add an ERR CHAR rule to the end of your lexer . This allows the syntax highlighter to work and defers reporting of the error to the parsing phase . Comment : Works perfectly thanks", "Question : I use the following code to create db connection .. . .. . The project was created in Netbeans-Platform-Application-Module . When i run the project through netbeans-platform 7.4. . it works properly . But when i try to create a installer using netbeans and run. . the project opens but it also gives an exception .. . .. . ERROR 42Y07 : Schema projectDB does not exist .. . Answer : try fully pathing your DB in your url Comment : it works. . Thanks. . do u have any idea how to get the path while installing the s w which is created using the Netbeans 7.4", "Question : I m building a Netbeans platform maven application but it seams that the repository http : bits.netbeans.org nexus content groups netbeans that hosts Netbeans modules is down or something . I m getting this error when I try to build the project . as for today 20 04 2016 it shows this error .. . .. . An error occurred . .. . Sorry the page you are looking for is currently unavailable . Please try again later . .. . If you are the system administrator of this resource then you should check the error-log for details . .. . Faithfully yours nginx . Comment : bits.netbeans.org nexus http : bits.netbeans.org nexus is currently back up . .. . Answer : I can confirm it has been down for the past few days as well . However I ve been using http : repo.spring.io libs-release-remote as it has the netbeans-platform artifacts that I need . Comment : unfortunately it doesn t have the required artifacts for releases greater than RELEASE80", "Question : My NetBeans Platform application by default doesn t have a Plugins item in Tools menu . But I want to expand my application with plugins . How can I add this to my application .. . Answer : You ll need to add the Auto Update Services and Auto Update UI modules to your application . To do this right-click your NetBeans application project node and select the Properties menu item . In the properties panel select the Libraries category . In the Platform Modules list expand the platform and check both the Auto Update Services and Auto Update UI nodes . This will add the Plugins menu item and coresponding UI elements Plugins panel . After you ve completed the above you ll need to add an Update Center to one of your modules . An Update Center is just a layer file entry that points to an updates.xml file s URL for example http : example.com updates.xml . Once you ve added an Update Center to your application the Updates Available Plugins panel will show all of the modules registered in your Update Center .", "Question : I ve created a NetBeans Platform application that is launched using Java Web Start . I built the WAR file using the Build JNLP Application -command in Netbeans 6.8 . I ve added a desktop shortcut and menu item to the JNLP file but for some reason these are not created when the application is launched . However when I go to : .. . .. . Control Panel - Java - Temporary Internet Files - View - Select my application Click Install shortcuts to the selected application .. . .. . the desktop and menu shortcuts are created correctly . Also in the Java Console the Shortcut Creation option is set to the following the default I presume : .. . .. . Prompt user if hinted .. . .. . Below is a snippet of my JNLP file : .. . .. . I m stumped . Does anybody have an explanation for this Thanks .. . .. . PS This is on both Windows XP and Windows 7 . NetBeans version : 6.8 .. . Answer : I managed to resolve this by using the javax.jnlp.IntegrationService available since JDK 6.1.18 . This class can be found in the jnlp.jar found in the JDK samples directory : sample jnlp servlet jnlp.jar .. . .. . The following code ensures that the desktop shortcut and menu shortcut are created :", "Question : I ve created a NetBeans Platform application that is launched using Java Web Start . I built the WAR file using the Build JNLP Application -command in Netbeans 6.8 . I ve added a desktop shortcut and menu item to the JNLP file but for some reason these are not created when the application is launched . However when I go to : .. . .. . Control Panel - Java - Temporary Internet Files - View - Select my application Click Install shortcuts to the selected application .. . .. . the desktop and menu shortcuts are created correctly . Also in the Java Console the Shortcut Creation option is set to the following the default I presume : .. . .. . Prompt user if hinted .. . .. . Below is a snippet of my JNLP file : .. . .. . I m stumped . Does anybody have an explanation for this Thanks .. . .. . PS This is on both Windows XP and Windows 7 . NetBeans version : 6.8 .. . Answer : I have the same issue with Linux but it works as expected on OS-X . I have tested with both the Tomcat and the Jetty web container . So it s a fair chance that your code is actually correct .", "Question : i m trying to change the toolbars order . before netbeans-7 the order was set according to the layout.xml but in netBeans 7 it is all annotation . Comment : Wish I could help you . You might try your luck on the NetBean Platform Users forum . forums.netbeans.org platform-users.html http : forums.netbeans.org platform-users.html Comment : I ve answered a similar question in detail in this link . Generally it is as Tim pointed out . stackoverflow.com questions 15831496 http : stackoverflow.com questions 15831496 netbeans-7-3-customise-edit-toolbar-positions 17418566 17418566 . Hope it helps . .. . Answer : All the annotations will do is create a layer.xml file for you At runtime I think . You can still create your own layer.xml file and change the order of the toolbars in there . Just make sure that your layer file is being referenced in the manifest . At Runtime all the layers will be merged together - including the one that you manually create and the one derived from the annotations" ] }
[ "yes-answer-long", "yes-answer-short" ]
java
UNK_RELATION
komodo@xslt@94
komodo -- komodo edit is a code editor for several languages including php python javascript @placeholder xml xhtml and html which provides syntax-highlighting autocomplete ftp sftp support etc .
{ "confidence": [ 54.85595703125, 51.169525146484375, 49.32770538330078, 46.30039978027344, 46.30039978027344, 45.941139221191406, 45.941139221191406, 45.295799255371094, 45.23830032348633, 45.10422897338867, 45.06676483154297, 45.01536178588867, 44.773956298828125, 44.57204055786133, 44.34015655517578, 43.87437438964844, 42.5319709777832, 42.334651947021484, 42.26580810546875, 42.1671028137207, 42.141605377197266, 42.06680679321289, 41.70753860473633, 41.70753860473633, 41.70753860473633, 41.48100662231445, 41.48100662231445, 41.120819091796875, 41.120819091796875, 41.02873229980469, 40.843101501464844, 40.685508728027344, 40.64543914794922, 40.64543914794922, 40.64543914794922, 40.64543914794922, 40.64543914794922, 40.579708099365234, 40.579708099365234, 40.23512268066406, 39.8724365234375, 39.73175048828125, 39.7071533203125, 39.62258529663086, 39.37248229980469, 39.29048538208008, 39.1274528503418, 39.08350372314453, 38.891475677490234, 38.81792449951172, 38.81792449951172, 38.81792449951172, 38.81792449951172, 38.81440734863281, 38.696929931640625, 38.696929931640625, 38.476951599121094, 38.4158821105957, 38.36565017700195, 38.27145767211914, 38.27145767211914, 38.27145767211914, 38.14150619506836, 38.14150619506836, 38.14150619506836, 37.76780700683594, 37.712120056152344, 37.712120056152344, 37.712120056152344, 37.712120056152344, 37.712120056152344, 37.635353088378906, 37.54497146606445, 37.42217254638672, 37.33243179321289, 37.33243179321289, 37.33243179321289, 37.31367111206055, 37.31367111206055, 37.243629455566406, 37.20935821533203, 37.20935821533203, 37.20935821533203, 37.20935821533203, 37.17921447753906, 36.89635467529297, 36.874488830566406, 36.829734802246094, 36.66357421875, 36.64799880981445, 36.64799880981445, 36.551109313964844, 36.48481750488281, 36.3941650390625, 36.36187744140625, 36.35110855102539, 36.31696701049805, 36.29877471923828, 36.25157165527344 ], "content": [ "Code formatters including HTML are included with the paid version of Komodo KomodoIDE but not in the free version Komodo Edit .", "Komodo php autocomplete didn t work for me too .", "I used Komodo Edit for writing PHP scripts and have update Komodo Edit to 9.3 version .", "No that is not possible in Komodo Edit .", "This is not supported by Komodo Edit 10 .", "So is there a way to do it in Komodo Edit", "I am new to KOMODO EDIT .", "I haven t updated to latest version of Komodo Edit yet but in Komodo Edit version 9 on Windows 10 autocomplete works just fine .", "I use Komodo edit .", "Posting in the Komodo support forum may get more attention community.activestate.com forums komodo http : community.activestate.com forums komodo", "You may have a better chance of getting a response at the official Komodo forum : community.activestate.com forums komodo-support http : community.activestate.com forums komodo-support", "Komodo Edit doesn t have a Perl debugger and Komodo IDE is not free", "possible duplicate of Komodo Edit Function and Require autocompletion http : stackoverflow.com questions 10857062 komodo-edit-function-and-require-autocompletion", "Is there any way to configure Komodo Edit to use Django modules for autocomplete as well", "Is there any analog function in Komodo Edit", "I m working with Komodo 8.5", "You can use the Komodo interpolation feature : .. . .. . python F .. . .. . That tells Komodo to use the Python2 interpreter configured in your preferences and to run the currently active file in the editor .", "I m using Komodo IDE to debug PHP .", "You re running an older version of Komodo .", "If I have a xyz.vim file is there an easy way to have Komodo use that for syntax-highlighting or an easy way to import convert to a Komodo format so I don t have to reinvent the wheel", "Komodo has this functionality built-in Check Preferences Editor Smart Editing Variable highlighting .", "Apparently Komodo does not support node.js 12.. . yet .", "I m using Komodo Edit 9.0 to write codes .", "I m using Komodo Edit as an IDE for PERL .", "I am using Komodo Edit for website coding .", "Have you used Komodo", "Hi there Komodo dev here .", "yes Not within Komodo is outside Komodo is what I meant", "I m using Komodo IDE 9 Komodo 8.5 works just fine .", "From the guys at Komodo .. . .. . The problem is that Komodo doesn t know the context of the anonymous function-call - in other words Komodo is not smart enough to know that jQuery in this case .", "However Komodo doesn t let me step-through my PHP code instead it just runs through the code in a pane in the bottom-right of the Komodo window .", "I usually use Komodo Edit since it recognizes the file types of all my other languages .", "Komodo Edit http : www.activestate.com komodo edit is free .", "Try to mention your OS and version of Komodo Edit .", "I just downloaded and started using Komodo Edit .", "I use both Komodo Edit and Notepad++ .", "Komodo Edit 8.5.3 has a memory leak problem .", "I am using Komodo Edit 8 and its autocomplete feature is totally annoying .", "Komodo Edit 10 Autocomplete not show options list as notepad++ when I press ctrl+space .", "Goto Edit Preferences Languages then add the file paths under PHP http : docs.activestate.com komodo 4.4 prefs.html PHP or the relevant language .", "I am using arm komodo .", "I m trying to enable PerlCritic support in Komodo .", "I m using the Komodo IDE for Mac 10.10.5 and trying a simple code to run a youtube video via python .", "The nsIFile interface provides this : .. . .. . The Komodo preferences service would also be an option : .. . .. . References .. . .. . How do I get the path of the project folder http : community.activestate.com node 6535 .. . Getting Special Files https : developer.mozilla.org en-US Add-ons Code snippets File I O Getting special files .. . Komodo JS Macro - insert a relative-path from the current editor file http : code.activestate.com recipes 577306 .. . mruDirectory https : github.com Komodo KomodoEdit blob master src prefs prefs.p.xml L106 .. . XPCOM API Reference http : www-archive.mozilla.org projects xpcom book cxc html appB.html .. . Komodo Profile Structure http : community.activestate.com faq komodo-profile-structure .. . Where does Komodo Store File Preferences http : community.activestate.com forum where-does-komodo-store-file-preferences .. . Getting Setting a Komodo Preference http : community.activestate.com faq getting-setting-komodo-preference", "There is an add-on for this that was included with Komodo Edit 5.x by default .", "Is there any add-on which adds multirow tabs support to Komodo Edit environment something like the TooManyTabs add-on for Firefox", "Also try python -V in Run Command and confirm Komodo has found your Python install .", "Is there a keyboard shortcut or menu item I m not seeing somewhere to format my html in Komodo Edit", "You ll want to use the Komodo Editor SDK http : docs.komodoide.com SDK api commonjs editor .", "I work with Komodo .", "Komodo is truly cross-platform .", "Like Komodo better .", "Komodo Pros : Like it better .", "EDIT : I m using komodo edit version 10 and I m running on OSX", "When I open .php files my Komodo gives me this error .. . .. .", "I installed komodo IDE 8.5 to write and test php codes .", "I m using : .. . .. . Win7 Python 2.6 Komodo IDE 6.1.3 .. . .. . Thanks in advance", "I just work on the Komodo core code .", "This is the oldest one I can find for Komodo IDE 4.4 : docs.activestate.com komodo 4.4 debugperl.html http : docs.activestate.com komodo 4.4 debugperl.html", "I ve created a project with komodo IDE : .. . .. .", "and this is what the Komodo Error log shows : .. . .. .", "Thanks for the tip about Komodo 7 .", "I bet the developers of Komodo Edit don t use this feature .", "You don t need class attributes for Komodo Edit hinting .", "I use Komodo Edit 8.5 and I have problems with tabs .", "Is it possible to run a part of code in Komodo IDE 7 line by line", "looping a subtraction 10 times in assembly komodo .", "Komodo will scan them for information about your functions .", "Trying out komodo to build a jquery-ui widget. .", "Without it : .. . .. . Komodo knows both and jQuery as globals .", "This is currently not possible through native functionality in Komodo .", "Komodo has a macro API http : docs.activestate.com komodo 6.1 macroapi.html which can automate switching between the two patterns .", "I m using Komodo IDE .", "In 9.3 you can see this in View Tabs Sidebars Notifications and in Komodo X you can see this in the Go to Anything field at the top of the window it will tell you that Komodo is scanning your code .", "screenshots here : imgur.com a PylIB .. . .. . Komodo Edit version 8.5.4 build 14424 platform macosx .", "screenshots here : imgur.com a PylIB http : imgur.com a PylIB Komodo Edit version 8.5.4 build 14424 platform macosx .", "I am using Komodo Edit 9.3 to write some Ruby files for a project I am working on .", "The Komodo dev team monitors the Komodo forums if you want a quicker reply : http : forum.komodoide.com", "References .. . .. . ActiveState Komodo : Configuring Indentation http : docs.activestate.com komodo 8.5 prefs.html Indentation Features", "You have to tell Komodo Run Command that you re executing a Python file same as in the terminal .", "But I have no experience doing this in Komodo .", "Would it be possible to add and debug it in komodo", "I did also reinstall Komodo .", "I installed Komodo before php5 .", "Komodo used to show me tabs of open files but one day they disappeared .", "Update : .. . .. . I ve found a way to trick Komodo into doing this : .. . .. . This works at least on Komodo 5.2 and has no side effects but is sure to confuse whoever reads your code .", "Main advantages of Komodo Edit for programming Python : .. . .. . Manage groups of files as projects .. . Use custom commands to run files run nosetests pylint etc .", "Installing php wasn t good enough I had to also delete the config files in .komodo-edit or whatever folder it created .", "However rather than stepping through the code for that .php page and stopping at any breakpoints Komodo just runs through all of the code in the page in a pane towards the bottom-left of the Komodo window .", "I m using Notepad++ for python development and few days ago I found out about free Komodo Edit .", "To confirm this check your process list and you will see Komodo Edit main thread and Python child thread .", "I have worked a bit with Python programming for Google App Engine which I started out in Notepad++ and then recently shifted over to Komodo using two excellent startup tutorials - both of which are conveniently linked from this blog post http : blogs.activestate.com 2008 04 komodo-does-it direct : here http : abaditya.com 2008 04 19 a-pseudo-ide-for-google-app-engine-komodo-edit and here http : www.toddnemet.com using-komodo-edit-as-an-ide-for-google-app-engine .", "I ve always liked Komodo but I m starting to get annoyed by something : .. . .. . The autocomplete is way too slow buggy .", "I use Git and Komodo 9 but I suggest for SVN and older version of Komodo this should works also for version six please look at How to integrate FileMerge with Komodo 6 IDE http : stackoverflow.com a 4288753 3364871 .", "I ve setup komodo IDE together with xdebug to do remote debugging PHP .", "Update you post with Error logs Help Troubleshooting View Log File version of Komodo Help About Komodo and OS type and version .", "Ive been using komodo edit recently to go through a few django tutorials and ive been impressed with the level of code-completion it provides for the framework .", "Komodo IDE calls this feature code intelligence http : docs.activestate.com komodo 8.5 prefs.html code intel and here are a few unrelated questions on controlling it : .. . .. . Komodo Edit disable autocomple http : stackoverflow.com questions 15666599 1113772 .. . .. . Calltips Docstring while viewing function list", "I am looking for a Windows Perl IDE with debugger like Komodo http : www.activestate.com komodo but free ." ] }
{ "confidence": [ 71.55674743652344, 67.04389953613281, 61.81253433227539, 61.6064453125, 60.851036071777344, 60.41402816772461, 60.266387939453125, 60.087379455566406, 59.34934616088867, 58.8878173828125, 57.64251708984375, 57.19984436035156, 56.65464401245117, 56.452213287353516, 55.11812973022461, 54.64546203613281, 54.6318244934082, 54.29261016845703, 54.17267608642578, 54.0378303527832 ], "content": [ "Question : I write in a custom scripting-language a lot . I have a vim syntax file which is great for syntax-highlighting when editing in vim . I write in several languages throughout the day on an almost daily basis . I usually use Komodo Edit since it recognizes the file types of all my other languages . Unfortunately for my custom scripting-language Komodo just sets it as file-type Text . Is there a way I can tell Komodo that files with extension .xyz are of file-type XYZ If I have a xyz.vim file is there an easy way to have Komodo use that for syntax-highlighting or an easy way to import convert to a Komodo format so I don t have to reinvent the wheel Thanks .. . Answer : You can define a new language for Komodo using the wizard.. . .. . .. . Project New from template Create Komodo Language .. . .. . and just fill in the blanks like a list of your language s keywords and file name extension . The current code it generates to implement this is a little buggy though it still works ok . If you are using Komodo 9 may see a pop-up log warning box . In 8 the warning still occurs though you need to pull up the error-log yourself to see it Help Troubleshooting View log file . A fix is promised in the 9.2 version .", "Question : I ve been trying out Komodo IDE 6 for the last few days . I ve always liked Komodo but I m starting to get annoyed by something : .. . .. . The autocomplete is way too slow buggy . .. . .. . Certain variables just won t give any autocomplete tips . Sometimes you have to backspace the dot and try over and over again . It also has a hard time giving autocomplete info for an object that has been created using a class in a namespace . Has anyone else had any problems with these things Are there any better alternatives Comment : You may have a better chance of getting a response at the official Komodo forum : community.activestate.com forums komodo-support http : community.activestate.com forums komodo-support Comment : Same thing happens to me with eclipse . So annoying . .. . Answer : Use JSDoc http : community.activestate.com forum-topic getting-more-your-php-and-javascript-code to add custom autocomplete calltips . Comment : Adding JSDoc comments really helped . I even made a dummy file containing object layouts I could reference later on and Komodo would autocomplete them perfectly . A shame it doesn t do the same for node.js Comment : Cool . You can add it to the Komodo Edit wiki https : en.wikibooks.org wiki Komodo Edit for future reference .", "Question : I ve been using Komodo Edit for a small project in Django . The code-completion features seem to work pretty well for standard python modules however it doesn t know anything about Django modules . Is there any way to configure Komodo Edit to use Django modules for autocomplete as well .. . Answer : By sure Django is on your python path and Komodo should pick it up . Alternatively you can add the location of Django to where Komodo looks for its autocomplete . Comment : It was already on my python path could import django stuff via plain old python shell however komodo didn t know about it . Manually adding the dist-packages folder fixes it though . Comment : @TM - are you sure you have added the same Python which python in shell in Komodo s preferences as well Komodo internally uses that Python s sys.path which would obviously include dist-packages as well .", "Question : I got a real problem with Komodo Edit v8.5.3 : I use XAMPP XAMPP v1.8.3 PHP : 5.5.6 to provide a local hosted server for Komodo . .. . .. . After restarting I tested this feature : But no autocomplet and calltips syntax checking did sometimes work .. . If I wrote some code it began to scan the php directory of XAMPP for completing but this search got freezed everytime somewhere in the PEAR directory . I don t really understand what s wrong with Komodo and XAMPP . I did also reinstall Komodo . Komodo is great but withoutd this the most importent feature is impossible . .. . Answer : Komodo php autocomplete didn t work for me too . My situation might be different but I m sharing for the next Googler to visit . I installed Komodo before php5 . Whoops . Installing php wasn t good enough I had to also delete the config files in .komodo-edit or whatever folder it created . That still wasn t enough I also had to delete the .komodoproject file I was working on as well . Then I was awed by Komodo s awesomeness .", "Question : I ve been using komodo edit 10 for a while before I buy komodo ide to see if I like it or not especially after I heard about all the features it offers . I use Django a lot for backend web development and one thing I noticed is code intelligence and auto completing doesn t seem to be working . I ve been using Django 1.9.7 on Python 3.5.2 . I m not sure what s happening but any advice on fixing this issue is appreciated . EDIT : I m using komodo edit version 10 and I m running on OSX Comment : I haven t updated to latest version of Komodo Edit yet but in Komodo Edit version 9 on Windows 10 autocomplete works just fine . Try to mention your OS and version of Komodo Edit . .. . Answer : It s not clear what you ve tried or whats not working ie . what did you type and what did you expect to happen so I ll just explain how Komodo does it s thing : .. . .. . When you open your Django project root in Komodo Places View Tabs Sidebars Places Komodo should start scanning your project to include that code in Komodo s code intel database . You may need to trigger a code intel event Ctrl + J in the editor to start the scan . You ll see in the notifications View Tabs Sidebars Notifications that Komodo is scanning your code . While this is scanning you can continue to use Komodo but there will be no Code Intel suggestions at all . When it has finished scanning you will get completions for the Python code Komodo found in your project . The above assumes you keep your Django code in your project root . If you don t you must open Preferences Languages Python Python 3 depending on whether you re using Python 2 or 3 scroll to Additional Python Import Dirs and add the location of your Django source trigger a Completions event same as above and wait for scan to complete . So that s pretty much it . If you re not getting ANY completions then you have to wait for Komodo to finish scanning . If you re only missing Django completions you have to make sure Komodo knows about your Django source and where it s located . Comment : I tried your first suggestion and this is the output from notifications : imgur.com a TxCHR http : imgur.com a TxCHR I also tried your last suggestion and I m not too sure which part of my django folder I need to go to . Is there a specific directory in my django project I need to direct komodo to Comment : re : image . The first notification says it s done scanning . Komodo is giving those warnings becuase there is no known symbol to complete on based on what you ve typed . Re : Django dirs . Sorry I have no idea . I don t do Django development . I just work on the Komodo core code . I watched this video from one of our previous developers https : www.youtube.com watch v TZP5T3ag118 and it looks like there should be bin include and lib dirs in your project . Those likely contains the Django specific code . If it s still not working please provided an example of exactly what you re typing .", "Question : I m using Komodo Edit for Python http : en.wikipedia.org wiki Python 5F 28programming 5Flanguage 29 development and I want to get the best out of the auto complete . If I do this : .. . .. . I can see a list of members of A . But if I do this : .. . .. . It does not work . I want to be able to do this : .. . .. . So how can I tell the auto complete that b is of type A .. . Answer : This doesn t really answer your question but with Wing IDE http : en.wikipedia.org wiki Wing 5FIDE you can give hints to the type analyzer with assert isinstance b A . See here http : www.wingware.com doc edit helping-wing-analyze-code . I haven t found a way to do it with Komodo though apparently it s possible http : community.activestate.com forum-topic getting-more-your-php-and-javascript-code when writing PHP or JavaScript . Update : .. . .. . I ve found a way to trick Komodo into doing this : .. . .. . This works at least on Komodo 5.2 and has no side effects but is sure to confuse whoever reads your code . Comment : What a horrible hack I m just jealous that you found it first : I d +1 if I hadn t already . Comment : I think I m going to change to Wing IDE . The assert isinstance b A syntax works nicely . Comment : I am happy to find that it also works with my Emacs 24 + Jedi setup .", "Question : I am using Komodo Edit 8 and its autocomplete feature is totally annoying . As soon as I type for i it autofills in this : .. . .. . Now i have to delete it manually to continue typing . I tried to turn off Enable automatic autocomplete and calltips triggering when you type from Edit Prefrence Code Intelligence but the problem persists . What s the real way to turn it off .. . Answer : Try this : .. . .. . Edit Preferences Smart Editing Auto-Abbreviation Uncheck Enable Auto-Abbreviation with Trigger Characters Comment : Works for JavaScript too Thanks Comment : OMG...thank you This was driving me nuts Comment : Thank you I spent too much time searching for this option the JavaScript auto complete was too annoying Comment : in 8.5 smart editing is under editor within your preferences . Comment : I bet the developers of Komodo Edit don t use this feature . It s literally disgusting .", "Question : I m using Notepad++ for python development and few days ago I found out about free Komodo Edit . I need Pros and Cons for Python development between this two editors.. . Comment : They re both free so why not try them both and see which you prefer .. . Answer : I use both Komodo Edit and Notepad++ . Notepad++ is a lot quicker to launch and it s more lightweight so I often use it for quick one-off editing . I use Komodo Edit for major projects like my django and wxPython applications . KE is a full-featured IDE so it has a lot more features . Main advantages of Komodo Edit for programming Python : .. . .. . Manage groups of files as projects .. . Use custom commands to run files run nosetests pylint etc . Auto complete syntax checking .. . Mozilla extension system with several useful extensions available .. . Write macros in JavaScript or Python .. . Spell checking .. . .. . Some of the little things that Notepad++ is missing for Python development : .. . .. . Doesn t auto-indent after a colon .. . s You can t set tabs spaces on a file-type basis I like to use tabs for HTML s .. . s No code-completion or tooltips s .. . No on-the-fly syntax checking Comment : Notepad++ has a plugin menu from which you can add a spell checker and other tools . I use the NppExec plugin https : gist.github.com CTimmerman 3fc259d7867c38f6919e with scripts to process and run my Python files whose output is highlighted and linked in Notepad++. .", "Question : Is there a way for komodo to highlight variables that start with a dollarsign An example would be variables like this : var btn .. . I want to use these variables on javascript . .. . Answer : Komodo has this functionality built-in Check Preferences Editor Smart Editing Variable highlighting .", "Question : I got a real problem with Komodo Edit v8.5.3 : I use XAMPP XAMPP v1.8.3 PHP : 5.5.6 to provide a local hosted server for Komodo . .. . .. . After restarting I tested this feature : But no autocomplet and calltips syntax checking did sometimes work .. . If I wrote some code it began to scan the php directory of XAMPP for completing but this search got freezed everytime somewhere in the PEAR directory . I don t really understand what s wrong with Komodo and XAMPP . I did also reinstall Komodo . Komodo is great but withoutd this the most importent feature is impossible . .. . Answer : Komodo Edit 8.5.3 has a memory leak problem . To confirm this check your process list and you will see Komodo Edit main thread and Python child thread . Watch to see the memory-footprint of the Python thread as the scan progresses . If the memory is large for me is was over 1GB try upgrading to a later release . At time of writing this you can find version 8.5.4 here : .. . .. . http : downloads.activestate.com Komodo nightly komodoide latest", "Question : I m using Notepad++ for python development and few days ago I found out about free Komodo Edit . I need Pros and Cons for Python development between this two editors.. . Comment : They re both free so why not try them both and see which you prefer .. . Answer : I just downloaded and started using Komodo Edit . I ve been using Notepad++ for awhile . Here is what I think about some of the features : .. . .. . Komodo Edit Pros : .. . .. . You can jump to a function definition even if it s in another file I love this .. . There is a plugin that displays the list of classes functions and such for the current file on the side . Notepad++ used to have a plugin like this but it no longer works with the current version and hasn t been updated in a while . Notepad++ Pros : .. . .. . If you select a word it will highlight all of those words in the current document makes it easier to find misspellings without having to hit Ctrl+F . When working with HTML when the cursor is on in a tag the starting and ending tags are both highlighted .. . .. . Anyone know if either of those last 2 things is possible in Komodo Edit Comment : I m not sure I understand your first point . In Komodo hit Ctrl+F on the current word to search for it . That process will hightlight all matches in the file . Hit Esc to undo the highlighting . Comment : selecting a word is more handy then ctrl + F and type the word right Comment : Np++ has that two Komodo pros : TagsJump https : sourceforge.net projects tagsjump plugin allows to jump to a definition even it is in another file . Function list http : sourceforge.net projects npp-plugins files can list definitions in the current file for many programing languages .", "Question : Ive been using komodo edit recently to go through a few django tutorials and ive been impressed with the level of code-completion it provides for the framework . However what i really want it to do is provide code-completion for the current project so in effect my own views models etc . would work in the same way as the framework itself . Is there a way to temporarily modify the python path on a per project basis to get code-completion of my current project NB : Im not sure whether this is a Stack Overflow or a Super User question feel free to correct me . Comment : I get code-completion with my current project now so could you explain what is happening One thing that might help is sticking an empty init .py file into your package dirs . Comment : I get code-completion for the standard django library so i can write django.whatever and get associated classes . However i cant seem to get my own project to do the same so i cant do myproject.views models urls forms whatever it doesnt seem to recognise them . Comment : Posting in the Komodo support forum may get more attention community.activestate.com forums komodo http : community.activestate.com forums komodo .. . Answer : You can set per-project Python paths in Project Menu - Properties - Languages - Python - Additional Python Import Directories . See the official documentation http : docs.activestate.com komodo 6.0 prefs.html Python for more details .", "Question : Is there a keyboard shortcut or menu item I m not seeing somewhere to format my html in Komodo Edit I m mostly worried about indentation . I have about 1500 lines of jumbled mess from a client I need to clean up before I can start updating his page . .. . Answer : Code formatters including HTML are included with the paid version of Komodo KomodoIDE but not in the free version Komodo Edit .", "Question : I ve been using Komodo Edit for a small project in Django . The code-completion features seem to work pretty well for standard python modules however it doesn t know anything about Django modules . Is there any way to configure Komodo Edit to use Django modules for autocomplete as well .. . Answer : o to Edit Preferences . Expand the Languages group-by clicking the + symbol . Click Python . Click the little Add.. . button under Additional Python Import Directories . Add the directory ABOVE your project and you should have intellisense enabled . This has always worked for me for both Django and my individual projects . Comment : This allows me to see code-completion for my own project files but still no dice for django stuff . Comment : Ya you have to do it for Django as well as your project but it looks like you got it figured out .", "Question : I ve been using Komodo Edit for a small project in Django . The code-completion features seem to work pretty well for standard python modules however it doesn t know anything about Django modules . Is there any way to configure Komodo Edit to use Django modules for autocomplete as well .. . Answer : Hmmm . It s installed by default so my answer probably isn t the right solution . : - .. . .. . But here goes.. . .. . .. . You can install a Django extension in Komodo edit . I haven t tested it myself but you can test it . Tools - Add-ons - Extensions .. . .. . It s name is Django Language . Check if it works . Comment : This is for the Django Template Language", "Question : I m using Notepad++ for python development and few days ago I found out about free Komodo Edit . I need Pros and Cons for Python development between this two editors.. . Comment : They re both free so why not try them both and see which you prefer .. . Answer : I have worked a bit with Python programming for Google App Engine which I started out in Notepad++ and then recently shifted over to Komodo using two excellent startup tutorials - both of which are conveniently linked from this blog post http : blogs.activestate.com 2008 04 komodo-does-it direct : here http : abaditya.com 2008 04 19 a-pseudo-ide-for-google-app-engine-komodo-edit and here http : www.toddnemet.com using-komodo-edit-as-an-ide-for-google-app-engine . Komodo supports the basic organization of your work into Projects which Notepad++ does not apart from physical folder organization . The custom commands toolbar is useful to keep track of numerous frequently-used commands and even link-to URLs like online documentation and the like . It has a working if sometimes clunky code-completion mechanism . In short it s an IDE which provides all the benefits thereof . Notepad++ is simpler much MUCH faster to load and does support some basic configurable run commands it s a fine choice if you like doing all your execution and debugging right in the commandline or Python shell . My advice is to try both Comment : 404 at the link Comment : thanks fixed dead URL and added direct links", "Question : I am new to KOMODO EDIT . can anyone knows how to add intellisence to my own files . for example : myFirst.js that includes auto completion for objects or functions that were defined in mySecond.js Also how to add auto completion to my css file from my html file thanks . another example : in visual-studio i put this statment at the begining of file2.js : .. . .. . and then i had intellisence for file1.js inside file2.js Comment : Your question is kind of misleading . Your problem is that code intelligence is not working Comment : yes . what are the steps in order to gain intellisence with my own files Comment : Sorry if my question was unclear . Does code intelligence work at all With some other files that are not yours With builtin functions Do you get a combo if you type window . Comment : inside css file i have intelligence .inside html file i have intelligence for html but not for my css class that where referenced. . inside javascript file i have intelligence for javascript but not for jquery that was included in the html file . I need to know how to include intelligence of one file inside another file . Comment : possible duplicate of Komodo Edit Function and Require autocompletion http : stackoverflow.com questions 10857062 komodo-edit-function-and-require-autocompletion .. . Answer : Open Preferences- Languages- Javascript and specify directory with your source files . Komodo will scan them for information about your functions .", "Question : I am using Komodo Edit 8 and its autocomplete feature is totally annoying . As soon as I type for i it autofills in this : .. . .. . Now i have to delete it manually to continue typing . I tried to turn off Enable automatic autocomplete and calltips triggering when you type from Edit Prefrence Code Intelligence but the problem persists . What s the real way to turn it off .. . Answer : on mac it s under Preference - Editor - Smart Editing - Auto-Abbreviations", "Question : I have heard a lot about Komodo IDE . Does Komodo IDE have an extension or native support for Live preview Could Komodo IDE be extended to have some sort of live-preview when editing CSS and HTML I really want to try an IDE or editor with something like live-preview with good code hinting when editing CSS . I know Expresso has LivePreview but it is only for Mac and I am using Windows . Sublime Text with LiveReload is great but the code hinting is a little poor . Are there other editors IDE that offer this feature Comment : Live Preview of what exactly Comment : Live Preview of CSS and HTML So as I edit my CSS and HTML I get the see the preview on the browser . .. . Answer : There is a Komodo macro http : community.activestate.com forum shortcut-key-reload-browser-preview-tab which can be extended to auto reload all browser preview http : docs.activestate.com komodo 8.0 editor.html browser preview tabs using setInterval :", "Question : I m working on a KomodoIDE KomodoEdit extension that creates a new file and then opens it in a new editing tab using .. . .. . which works but I would also like it to set Komodo s default directory to the same directory where this file lives but I don t see a way to do that automatically . I found the doCommand.. . .. . .. . but this just launches a file dialog that asks the user to pick a directory . I d like to do something to set it programatically using something like.. . .. . .. . which I know doesn t work but is sort of the idea . .. . Answer : The nsIFile interface provides this : .. . .. . The Komodo preferences service would also be an option : .. . .. . References .. . .. . How do I get the path of the project folder http : community.activestate.com node 6535 .. . Getting Special Files https : developer.mozilla.org en-US Add-ons Code snippets File I O Getting special files .. . Komodo JS Macro - insert a relative-path from the current editor file http : code.activestate.com recipes 577306 .. . mruDirectory https : github.com Komodo KomodoEdit blob master src prefs prefs.p.xml L106 .. . XPCOM API Reference http : www-archive.mozilla.org projects xpcom book cxc html appB.html .. . Komodo Profile Structure http : community.activestate.com faq komodo-profile-structure .. . Where does Komodo Store File Preferences http : community.activestate.com forum where-does-komodo-store-file-preferences .. . Getting Setting a Komodo Preference http : community.activestate.com faq getting-setting-komodo-preference" ] }
[]
xslt
UNK_RELATION
xposed@android@101
xposed -- xposed is a framework allowing to hook into that is modify behavior of any function on an @placeholder device .
{ "confidence": [ 53.85633850097656, 49.244197845458984, 49.10373306274414, 48.85912322998047, 48.34392547607422, 47.982208251953125, 46.28658676147461, 45.909645080566406, 45.057594299316406, 44.0546875, 43.8140983581543, 43.51348876953125, 43.51348876953125, 42.966827392578125, 42.966827392578125, 42.966827392578125, 42.966827392578125, 42.966827392578125, 42.280330657958984, 42.280330657958984, 41.65955352783203, 41.34563064575195, 41.34563064575195, 41.31732177734375, 41.15492248535156, 41.07750701904297, 40.894264221191406, 40.72325897216797, 40.0874137878418, 39.836036682128906, 39.83332061767578, 39.78355407714844, 39.64136505126953, 39.633766174316406, 39.24410629272461, 38.55088424682617, 38.49810791015625, 38.49810791015625, 38.32767105102539, 38.143775939941406, 38.09989929199219, 37.986446380615234, 37.074180603027344, 36.98851776123047, 36.4820442199707, 36.38803482055664, 36.38803482055664, 36.38803482055664, 36.38803482055664, 36.38803482055664, 36.38803482055664, 36.383026123046875, 36.134605407714844, 35.89250946044922, 35.252376556396484, 35.252376556396484, 34.8926887512207, 34.8756103515625, 34.83320236206055, 34.83320236206055, 34.67116165161133, 33.91779708862305, 33.891258239746094, 33.891258239746094, 33.891258239746094, 33.891258239746094, 33.891258239746094, 33.891258239746094, 33.891258239746094, 33.79351806640625, 33.75702667236328, 33.72792053222656, 33.72792053222656, 33.72792053222656, 33.72792053222656, 33.581214904785156, 33.53550338745117, 33.53550338745117, 33.45979690551758, 33.45979690551758, 33.37939453125, 32.365570068359375, 32.016056060791016, 32.016056060791016, 32.016056060791016, 32.016056060791016, 32.016056060791016, 32.016056060791016, 32.016056060791016, 30.880395889282227, 30.880395889282227, 30.651451110839844, 29.84071159362793, 29.519277572631836, 29.519277572631836, 29.519277572631836, 29.519277572631836, 29.519277572631836, 29.519277572631836, 29.340309143066406 ], "content": [ "I have looked into rooting my device and using the Xposed framework .", "the xposed-framework has root permissions .", "I ve recently started using the Xposed Framework .", "I m using xposed-framework to hook a third party app .", "So I m trying to hook OnActivityResume using Xposed .", "Is it possible to hook a private method in another app using xposed", "Xposed-Framework version : 54 .. . .. . Android version : 4.2.2", "I tried to change IMEI by Xposed .", "Xposed can modify any part of android you d like .", "xposed-ril-wrapper https : github.com sokie xposed-ril-wrapper", "There s no context in Xposed in hooking .", "Have you tried to use the Xposed logging instead", "I need to make Hello world app for Xposed .", "When I hook method XXX xposed gave me ClassNotFound error .", "To hook the method XXX I need to change the default ClassLoader in xposed to DexClassLoader .", "how can I use Xposed to Hook the sender and receiver threads in RIL.java", "Is Xposed able to hook abstract methods and or methods defined in interfaces", "I m trying to hook a static method using Xposed but it s claiming NoSuchMethodError .", "Is it doable using XPOSED framework to add encryption per user", "I am trying you build an android app that works on xposed-framework .", "So I Must separate the Main Activity Xposed Module Activity Then Add What Xposed Module do in Xposed Activity And for Apply Switch it will be added in MainActivity is that correct", "Yes but Xposed class won t be extending Activity", "I m trying to develop Appliction that use Xposed Module .", "Example : .. . .. . in com.your.package.app.XModuleBridge .. . .. . in Xposed module .", "Here you are : Javadoc reference of the Xposed Framework API http : api.xposed.info reference packages.html", "Basically I am trying to write an xposed module .", "Anyone can write xposed modules .", "I am trying to hook into this method in NotificationManagerService using Xposed : .. . .. . For that I am using this hook : .. . .. . However this is giving me an error in the Xposed log that the method could not be found .", "I m trying to modify an Xposed module and I need to detect if the keyboard is open and usable .", "I ve made a simple Xposed module to change a color in SystemUI The problem is it s not working at all even though the code is right and follows the guide by Xposed developer .", "P.S : I don t have any activity in my xposed application .", "I am using Android Studio and developing an Xposed Framework module .", "I m developing a module in Xposed Framework which tries to access to Wifi p2p service to modify it .", "I am trying to make a Xposed module .", "I am trying to make an Xposed module to hook the function of the Android System where it tells the application A that it has gone to the background .", "According to xposed bridge source https : github.com rovo89 XposedBridge blob art app src main java de robv android xposed XposedHelpers.java findAndHookMethod calls getDeclaredMethod and set its result to be accessible .", "I m developing a xposed module to insert text in EditTexts .", "Everyone are free to write xposed modules right", "I am not at all familiar with the Xposed framework so I don t know what you can do or need to do .", "I am developing an Xposed module as an expansion of FatMinMin s minminHide module http : repo.xposed.info module tw.fatminmin.xposed.minminhide also it seems like a good dev exercise as well : The issue is that during boot when I check the xposed log i get the below : .. . .. . which means that Xposed was not able to load my module properly .. . .. . In the xposed init file I have the following : .. . .. . I also added the xposed bridge api in the dependency : .. . .. . This is The beginning of my Class java file : .. . .. . Can anyone please provide any form of advice on how to proceed I attempted to search for a solution but I could not find any nor did I find anything in the xposed documentation .. . .. . Thanks", "Be sure to change your assets xposed-init file to the new class", "I am using Xposed Frameworkto hook the method : onInterceptTouchEvent This code is running on the background and I am trying to hook every touch gesture in all applications on my Glaxy S4 device .", "I wonder is it possible to write an xposed module xposed-framework module that can completely remove the recent apps button from the navigation bar or all completely disable the recent apps selection activity", "More info : forum.xda-developers.com xposed modules http : forum.xda-developers.com xposed modules mod-xnotifications-control-notifications-t3243757 page76 post67022003", "I m trying to develop mi own Xposed module for the telegram app but when I try to hook the method called setOnClickListener Xposed show the following error : .. . .. . de.robv.android.xposed.XposedHelpers ClassNotFoundError : java.lang.ClassNotFoundException : Invalid name : org.telegram.ui.ProfileActivity .. . .. . My code looks like : .. . .. . anyone knows where is the method that I want to hook", "I m using Xposed to do some method hooking for now just for learning .", "I am in no way a security expert but I have some experience with Xposed .", "I try to show an AlertDialog within a hooked method with xposed .", "The xposed api provides a helper method for obtaining the current applications context AndroidAppHelper.currentApplication .", "I am creating an Android App Xposed module that disables applications packages .", "Is Xposed the way to go or are there other methods I can use", "I m new to Android Programming and started my first porject as Xposed Module This xposed module got an option when it s enabled it will-change a drawable file good for now", "Xposed question : .. . .. . I want to modify some static field in android.os.Build such as android.os.Build.BOARD android.os.Build.DEVICE android.os.Build.DISPLAY .", "I am trying to hook the constructor of a nested-class using Xposed but I m getting a ClassNotFoundException for the nested-class SettingsAdapter .", "Xposed already gives you the current hooked apps class loader .", "If this happens normally the app should also open inside Xposed .", "Note : When you need to get the current applications context in an xposed module you don t need to hook anything like attachBaseContext .", "I am trying to understand how Xposed do the hooking part and it provides the API s for user to hook any method very easily .", "Try put xposed api jar outside libs dir root of your project for example and fix gradle config file .", "The issue was with the instant run on android-studio it was installing the app in data local tmp and xposed was not finding the class in that path .", "i m pretty much a beginner in Xposed development and i wanted to ask how i can get for example a DrawerLayout defined in the app i m hooking and get it for editing in my findandhookmethod in my Xposed module .", "I am making a Xposed Module that would allow users to modify the message displayed when Wrong pattern pin or password is entered .", "Constructor names are always the class name and xposed doesn t expect you to pass it .", "This is the class and method to override : .. . .. . However Xposed cannot find the class .", "I m developing a Xposed module I ve searched and I haven t found the answer .", "Does Xposed provide a easy way to get views from my module", "I m newer to Java here s what I think XPosed works : .. . .. . 1 .", "I would get the users to reinstall xposed and start fresh if possible .", "When xposed was coping the jars over it may have done it incorrectly .", "I m quite new to xposed development and i m stuck : .. . .. . I hook a method check some stuff then i want to decide wheter i replace it with just return true or let it run .", "I m using the Xposed module to analyze an android app and I m trying to hook a constructor that s declared as private but it s unable to find the class .", "Don t mix the activity of your settings app with the actual module that is not how Xposed works .", "Just tested it out looked for Xposed Module sources and saw how they modified the class resources Annnnnnnd .. .", "Here s the code : .. . .. . Xposed : .. . .. . Hook.java : .. . .. . The log says error retrieving Resource ID 0x0 .", "I m working on an Xposed Module which uses hardware buttons like Power Volume Up etc to initiate some actions .", "My friend and I are trying to develop a module for Xposed Framework that hooks the method called when you press the home button and the screen wakes up .", "According to xposed bridge source https : github.com rovo89 XposedBridge blob art app src main java de robv android xposed XposedHelpers.java findAndHookConstructor calls getDeclaredConstructor and set its result to be accessible .", "It seems Xposed automatically detects if the app has launchable activity https : github.com rovo89 XposedInstaller blob cdb3f47895f5543eca0ff94861f5a98b343213c6 src de robv android xposed installer ModulesFragment.java L154 and just starts it .", "I have been using this http : www.java2s.com Code Java Collections-Data-Structure WeakIdentityMap.htm in a few Xposed projects .", "So specifically for the above case xposed module the answer was on xposed dev tutorial https : github.com rovo89 XposedBridge wiki Development-tutorial itself .", "I have Hook some method in RIL.java by using Xposed framework .. . .. . Then I got some Logs like : .. . .. . But these bytes can not by cast to meaningful String what does these byte mean", "I was wondering if there are any apps Xposed modules which can force an image to be seen by the camera .", "https : github.com rovo89 XposedBridge blob 13c9918eb449a4b851740c5e380057d6f0d23bd5 src de robv android xposed XC MethodHook.java", "The thing is This code is the same on some ROMs some devs made it out by adding it to the system itself not by Xposed using the same code .", "I Use A Xposed Module To Change Location In Order To Imitate A Location Change Path .", "How can I manipulate set variables inside my Xposed hooks from an outside application", "Is there an API to enable an Xposed module in Android from the shell using ADB and not through the device s UI .", "A simple google-search + overview of the XPosed documentation didn t yield anything worth while .", "I m trying to have an Xposed module check on hardware button press whether the phone screen is on or not .", "Xposed is throwing me a ClassNotFound error although I m hooking it just as I would for a public constructor .", "I wanted to know if it is possible to ignore certain touch on defined points via Xposed even if there is no actual module would it be possible", "I dont know if Xposed already supports this feature but it should be possible to place the .so in the apps native libraries folder or perhaps hook Android s DexClassLoader to load your library .", "I m trying to create my own first xposed module after completing the tutorial successfully What I m trying to do is to hook the getNotificationLongClicker from the class com.android.systemui.statusbar.BaseStatusBar .", "One thing I am not able to figure out is that how Xposed is hooking the processes and able to get the full control over it .", "My xposed module SnapColors does all this and is open-source you can take a look at the source .", "I want to invoke a system method at runtime from my app using Xposed .", "Same applies for Xposed hooks you can have a static method hooked for one application and not for others .", "I posted on XDA in the Xposed section and even though I was able to narrow it down I wasn t able to solve it .", "Also I have root access and xposed installed so using of these instruments is acceptable .", "I found the Xposed http : repo.xposed.info module de.robv.android.xposed.installer module which has enabled apps such as SideControl which might help with this - but am unsure ." ] }
{ "confidence": [ 62.02524948120117, 61.16533279418945, 58.49558639526367, 55.99483871459961, 55.69707489013672, 55.47956466674805, 55.37230682373047, 53.1300048828125, 52.70341110229492, 52.453670501708984, 52.42940902709961, 51.69546890258789, 51.59269332885742, 51.45388412475586, 51.16753387451172, 51.11109161376953, 50.470458984375, 50.37892150878906, 49.86058807373047, 49.8128662109375 ], "content": [ "Question : Is it possible to hook a private method in another app using xposed I have written this module .. . .. . it dose not throw any error saying the class is not found but when the method is called it dose not write any thing to the log.So I assumed this happens because the method is private but i am not sure . Comment : Have you tried to use the Xposed logging instead XposedBridge.log xyz .. . Answer : According to xposed bridge source https : github.com rovo89 XposedBridge blob art app src main java de robv android xposed XposedHelpers.java findAndHookMethod calls getDeclaredMethod and set its result to be accessible . That means the function should work on any method public or not . Can you hook a public-method of the same class", "Question : I am developing an Xposed module as an expansion of FatMinMin s minminHide module http : repo.xposed.info module tw.fatminmin.xposed.minminhide also it seems like a good dev exercise as well : The issue is that during boot when I check the xposed log i get the below : .. . .. . which means that Xposed was not able to load my module properly .. . .. . In the xposed init file I have the following : .. . .. . I also added the xposed bridge api in the dependency : .. . .. . This is The beginning of my Class java file : .. . .. . Can anyone please provide any form of advice on how to proceed I attempted to search for a solution but I could not find any nor did I find anything in the xposed documentation .. . .. . Thanks .. . Answer : Solved the Issue The issue was with the instant run on android-studio it was installing the app in data local tmp and xposed was not finding the class in that path . Now I push the apk to the device and install from storage", "Question : null .. . Answer : I am trying you build an android app that works on xposed-framework . I want to be able to hook an app that installed on the device and when the app is launched to get event . How can I do it Comment : Have a look at this link : forum.xda-developers.com showthread.php t 2709324 http : forum.xda-developers.com showthread.php t 2709324 Comment : github.com rovo89 XposedBridge wiki Development-tutorial https : github.com rovo89 XposedBridge wiki Development-tutorial", "Question : I wonder is it possible to write an xposed module xposed-framework module that can completely remove the recent apps button from the navigation bar or all completely disable the recent apps selection activity Everyone are free to write xposed modules right .. . Answer : Xposed can modify any part of android you d like . So yes you can completely remove the recent apps button and more . Anyone can write xposed modules . Comment : OK excellent . I actually managed to write a module that hides those buttons . The problem I had was of course that different Android versions having those buttons be a bit differently implemented but I believe I have made something that is fairly universal .", "Question : I try to show an AlertDialog within a hooked method with xposed . The problem is that the method is running in a threads and this thread is running in a thread etc.. . .. . .. . For example : Activity - thread - thread - .. . - function .. . .. . Is there a way to show my AlertDialog I have the Context but since the hooked function is not in the main thread it is useless . EDIT Some code : .. . .. . Thanks .. . Answer : Since you don t have access to an activity you could get the main looper and then post ui related tasks . Note : When you need to get the current applications context in an xposed module you don t need to hook anything like attachBaseContext . The xposed api provides a helper method for obtaining the current applications context AndroidAppHelper.currentApplication . Looper.getMainLooper documentation : http : developer.android.com reference android os Looper.html getMainLooper .. . .. . Handler.post documentation : http : developer.android.com reference android os Handler.html post java.lang.Runnable .. . .. . AndroidAppHelper.currentApplication Source code : https : github.com rovo89 XposedBridge blob art src android app AndroidAppHelper.java L143-L145 Comment : Thanks for your answer . But I have the following exception with your code : android.view.WindowManager BadTokenException : Unable to add window -- token null is not for an application Comment : P.S : I don t have any activity in my xposed application . I just want to show an alertdialog and a toast in the application I hook .", "Question : I m using the Xposed module to analyze an android app and I m trying to hook a constructor that s declared as private but it s unable to find the class . Is it because the constructor is private or is there another issue The constructor is : private CalendarContractCompat . My hook code is : .. . .. . Thanks in advance .. . Answer : According to xposed bridge source https : github.com rovo89 XposedBridge blob art app src main java de robv android xposed XposedHelpers.java findAndHookConstructor calls getDeclaredConstructor and set its result to be accessible . That means the function should work on any constructor public or not . Can you hook a public-method of the same class Comment : Are you able to hook private constructors Xposed is throwing me a ClassNotFound error although I m hooking it just as I would for a public constructor . Comment : Unfortunately the class I m analyzing only contains private constructors for the main class and two nested classes in terms of methods . The parent class is declared as final - would that make a difference The two nested classes are declared as static final .", "Question : I m trying to develop mi own Xposed module for the telegram app but when I try to hook the method called setOnClickListener Xposed show the following error : .. . .. . de.robv.android.xposed.XposedHelpers ClassNotFoundError : java.lang.ClassNotFoundException : Invalid name : org.telegram.ui.ProfileActivity .. . .. . My code looks like : .. . .. . anyone knows where is the method that I want to hook .. . Answer : The method you are trying to hook is ambiguous as there are two SetOnClickListner method present in your class . So you cannot hook it directly as it will cause ambiguity errors . I think you are trying to modify one of avatarImage.setOnClickListener or writeButton.setOnClickListener methods . So you have to hook the method in which avatarImage.setOnClickListener or writeButton.setOnClickListener resides . Looking into the source code of org.telegram.ui.ProfileActivity Class I think you have to hook createView Context context method from that class and perform the necessary modifications that you need to implement .", "Question : I am developing an Xposed module as an expansion of FatMinMin s minminHide module http : repo.xposed.info module tw.fatminmin.xposed.minminhide also it seems like a good dev exercise as well : The issue is that during boot when I check the xposed log i get the below : .. . .. . which means that Xposed was not able to load my module properly .. . .. . In the xposed init file I have the following : .. . .. . I also added the xposed bridge api in the dependency : .. . .. . This is The beginning of my Class java file : .. . .. . Can anyone please provide any form of advice on how to proceed I attempted to search for a solution but I could not find any nor did I find anything in the xposed documentation .. . .. . Thanks .. . Answer : Just disable Instant Run .. . .. . File - Settings - Build Execution Deployment - Instant Run .. . .. . Otherwise your classes aren t included directly in the APK but loaded via a stub application which Xposed can t handle .", "Question : The background is : .. . .. . 1 . I m using xposed-framework to hook a third party app . 2 . When I hook method XXX xposed gave me ClassNotFound error . I checked and found the method XXX is in a dex file and would be loaded by DexClassLoader on the run . 3 . To hook the method XXX I need to change the default ClassLoader in xposed to DexClassLoader . To get a DexClassLoader instance I need a Context instance of the third party app . 4 . Here comes the question : how to get the context instance I searched stackoverflow and found someone said you can hook the method in Activity or Receiver to retrieve their context . But I checked the Activity.class and found no method that return Context type value and only one method has Context type-parameter the onCreateView String name Context context AttributeSet attrs . Is there any way to get the Context .. . Answer : Xposed already gives you the current hooked apps class loader . As you can see lpparam.classLoader is the current apps class loader . I think you may just have typed something incorrectly are you able to post the code But you can get the current hooked apps application intense witch can be casted to context . Context context Context AndroidAppHelper.currentApplication .. . .. . Source : https : github.com rovo89 XposedBridge blob master src android app AndroidAppHelper.java L131 Source : https : github.com rovo89 XposedBridge wiki Development-tutorial", "Question : null .. . Answer : I m trying to hook a static method using Xposed but it s claiming NoSuchMethodError . I m trying to hook getContext . This is the code block : .. . .. . The code in Xposed I m using is findAndHookMethod me.kuehle.carreport.Application lpparam.classLoader getContext new XC MethodHook .. . .. . I m able to hook another public-method not static within this class but not a private not static method if anyone knows why that s not working please let me know . Thanks", "Question : I m trying to develop Appliction that use Xposed Module . In my project I take samples off Apps runing on the device I can choose which Apps . In the Xposed Module I can see if one of my Apps is started by a common list and I don t successed to start my sampling class because I don t have a context . I tried to do it through FileObserver the Module writing to a file that the FileObserver observe from boot service and still on the onEvent func in the FileObserver I don t have a context too and I don t know how can I start my sample class.. . Any solution Please .. . Answer : If you require the context within your Xposed application check this post http : stackoverflow.com questions 28059264 how-to-get-context-through-hooking-in-android 28635776 28635776 . If you require the context from an application you are hooking then a nice trick is to intercept the launching of new Activities in the application Activities extend Context . e.g . : .. . .. . Good luck", "Question : I am developing an Xposed module as an expansion of FatMinMin s minminHide module http : repo.xposed.info module tw.fatminmin.xposed.minminhide also it seems like a good dev exercise as well : The issue is that during boot when I check the xposed log i get the below : .. . .. . which means that Xposed was not able to load my module properly .. . .. . In the xposed init file I have the following : .. . .. . I also added the xposed bridge api in the dependency : .. . .. . This is The beginning of my Class java file : .. . .. . Can anyone please provide any form of advice on how to proceed I attempted to search for a solution but I could not find any nor did I find anything in the xposed documentation .. . .. . Thanks .. . Answer : Try put xposed api jar outside libs dir root of your project for example and fix gradle config file . Comment : Hello thanks for the time I tried it and unfortunately it did not work Comment : Do you use proguard Comment : I am pretty sure no but how to check just in case", "Question : null .. . Answer : I m trying to create my own first xposed module after completing the tutorial successfully What I m trying to do is to hook the getNotificationLongClicker from the class com.android.systemui.statusbar.BaseStatusBar . When I long-click on the notification it should display a log message but won t work . I also know that the class loading and method getting works fine but the before and after hooks are not called and not display.. . This is my module code : package com.example.lukakas.clock .. . .. . No erros from logcat . Comment : More info : forum.xda-developers.com xposed modules http : forum.xda-developers.com xposed modules mod-xnotifications-control-notifications-t3243757 page76 post67022003", "Question : I m new to Android Programming and started my first porject as Xposed Module This xposed module got an option when it s enabled it will-change a drawable file good for now The problem i m having is with using onCheckedChanged inside the public void handleInitPackageResources . I ve got a lot of errors and i can t understand why how to fix it Here s my code : .. . Answer : Don t mix the activity of your settings app with the actual module that is not how Xposed works . Your actual module doesn t work as part of the app you need to separate them and in the app save the drawable to a file and then access that file in the module .. . .. . To separate them make a new class for the actual module . Be sure to change your assets xposed-init file to the new class Comment : So I Must separate the Main Activity Xposed Module Activity Then Add What Xposed Module do in Xposed Activity And for Apply Switch it will be added in MainActivity is that correct Sorry for being noobie my skills in developing apps not the same as theming modding skills . Comment : Yes but Xposed class won t be extending Activity Comment : Just tested it out looked for Xposed Module sources and saw how they modified the class resources Annnnnnnd .. . I Made it with various features thanks a lot mate . Comment : @AboHani Nice . No problem .", "Question : The background is : .. . .. . 1 . I m using xposed-framework to hook a third party app . 2 . When I hook method XXX xposed gave me ClassNotFound error . I checked and found the method XXX is in a dex file and would be loaded by DexClassLoader on the run . 3 . To hook the method XXX I need to change the default ClassLoader in xposed to DexClassLoader . To get a DexClassLoader instance I need a Context instance of the third party app . 4 . Here comes the question : how to get the context instance I searched stackoverflow and found someone said you can hook the method in Activity or Receiver to retrieve their context . But I checked the Activity.class and found no method that return Context type value and only one method has Context type-parameter the onCreateView String name Context context AttributeSet attrs . Is there any way to get the Context .. . Answer : If your method XXX is in a class that is loaded during runtime using DexClassLoader then why don t you hook the DexClassLoader constructor That way you have the actual ClassLoader that contains your class and method . No need to get any context . Anyways regarding the actual question and addressing this part : .. . .. . I searched stackoverflow and found someone said you can hook the method in Activity or Receiver to retrieve their context . But I checked the Activity.class and found no method that return Context type value and only one method has Context type-parameter the onCreateView String name Context context AttributeSet attrs . The Activity extends Context so a simple cast works . You can get the current activity like this : .. . .. . Good luck Comment : Thank you so much You are right in my case just hooking DexClassLoader is all I need . Comment : can you accept my answer : P", "Question : null .. . Answer : I m building App that sample any Apps or Process that I choose I want to do it trough Xposed module that can tell me when the App is opened and closed the process of the App not the UI . I tried to Hook onCreate and onDestroy to know when i need to start sample the App that activated and when stop sampling it . But it s my hook isn t good because every App can have many onCreate and onDestroy funcs and it s not really tell me when the App process is runing.. . Someone can help me There is a way to Hook specific process from when it create until it shutdown Thanks.. . Comment : Does Xposed allow to catch only android.app.Application.onCreate and onDestroy instead of Activity.onCreate or can you check if intercepted call belongs-to Application and not to Activity and not to Service", "Question : I am trying to make an Xposed module to hook the function of the Android System where it tells the application A that it has gone to the background . In other words here is an example : We are using application A and then we press the home button or enter another app . The system will send a message to our application A to let it know that the focus has been changed and now it is in the background the user can no longer see it . The system does this so the application can run the onPause method and so on . I posted on XDA in the Xposed section and even though I was able to narrow it down I wasn t able to solve it . LINK http : forum.xda-developers.com xposed hook-onpause-app-to-redirect-to-onresume-t3137026 .. . .. . I also have been searching a lot in the Android repositories of github and grepcode but haven t been able to find which method does it . I m a little lost . These are the links I got : .. . .. . 1 . http : grepcode.com file repository.grepcode.com java ext com.google.android android 4.4.4 r1 android app Instrumentation.java 1234 .. . 2 . http : grepcode.com file repository.grepcode.com java ext com.google.android android 4.4.4 r1 android app Activity.java 5346 .. . 3 . https : github.com CyanogenMod android frameworks base blob 19a2266fed147ae051ba2df74f755cd7427c6eaa docs html guide topics ui ui-events.jd .. . .. . Thanks any help or suggestion is highly appreciated . .. . Answer : Yes it is possible and it makes lot of sense . But it takes lot s stuff to do for example . 1 . You need to make your app as boot start-up means whenever user restart mobile or device your app should automatically start s . 2 . Obviously you have to make app with no launcher mode as it s first activity and then call second activity as a service not as an activity . so basically you have to create something like this . .. . .. . and while calling service from your mainActivity define it like this . startService intent hideApp getApplicationContext .getPackageName .. . .. . hideApp use it outside the mainActivity . 3 . Then in manifest define this service as like below . Comment : Hi Meghal you got me wrong I don t want to create an application and then its service so it runs in the background . What I want to do is an Xposed module that all it does is hooking to the system method that tells the applications when they have gone to the background and injecting a code in it could be just a simple XC MethodReplacement so X applications don t get that message and they continue running as-if they were in the foreground . Take a look in the XDA link I posted if you need further explanation . Thanks Comment : nothing new : Comment : m Sorry i Forgotted this post that Time . .Will Find Time try to ans it perfectly : In 24 hrs Comment : cool thanks buddy . I m out of ideas", "Question : There are only tutorials available . https : github.com rovo89 XposedBridge wiki .. . Answer : Here you are : Javadoc reference of the Xposed Framework API http : api.xposed.info reference packages.html", "Question : null .. . Answer : I am using Xposed Frameworkto hook the method : onInterceptTouchEvent This code is running on the background and I am trying to hook every touch gesture in all applications on my Glaxy S4 device . I am trying to write to a file the data of the MotionEvent Object but when a touch gesture occure in the com.sec.android.app.launcher I am getting the Exception : open failed : EACCES Permission denied .. . .. . I tried to use synchronized class or put locks on the function but it does not help . I added uses-permission android : name android.permission.WRITE EXTERNAL STORAGE so it is not the problem .. . .. . Another question why onInterceptTouchEvent somteimes gets onlt ACTION DOWN Here is my code : Comment : I think you are trying to write to a file you may need this permission if you don t already have it uses-permission android : name android.permission.WRITE EXTERNAL STORAGE Comment : I added this line.. . it writes to file all other apps except when I am in com.sec.android.app.launcher", "Question : I am creating a module for Xposed it does what I want but I would like to provide users with a simple preferences screen to input two integer values . I mainly used the tutorial that can be found here on XDA http : forum.xda-developers.com showthread.php t 2709324 . The tutorial explains that one has to create an Activity to show and manage the preferences screen ok . But after that there s no explanation at all on how to link that to Xposed so that the user can click the module s name in the module s list and access the preferences screen instead I just get a message the module does not provide a user-interface . I did not find any documentation on how to do this . Can someone enlighten me about this please .. . Answer : I think I have found the culprit at least this fixed the issue for me . It seems Xposed automatically detects if the app has launchable activity https : github.com rovo89 XposedInstaller blob cdb3f47895f5543eca0ff94861f5a98b343213c6 src de robv android xposed installer ModulesFragment.java L154 and just starts it . There s no API . Source : Xposed sourcecode : .. . .. . Thus you just need to create an activity but I think that s not enough : you also have to make it a Launcher Activity in Eclipse or you can do that manually by adding the CATEGORY LAUNCHER intent filter . If it works when you push the app from eclipse to your testing phone the app will open automatically just like any other app . If this happens normally the app should also open inside Xposed . Here s for example what I have put inside my class https : github.com lrq3000 JitteryGyroFixForCardboard blob master SensorMedianFilter src net kajos median MedianFilterSettingsActivity.java : .. . .. . Then to use the prefs inside your hook in your main class :" ] }
[ "yes-answer-long", "yes-answer-short" ]
android
UNK_RELATION
safecracker@module@45
safecracker -- safecracker is a first-party @placeholder for expressionengine that makes it possible to add and edit entries from outside of the control panel using a stand-alone entry form saef .
{ "confidence": [ 63.32848358154297, 62.350467681884766, 58.3639030456543, 53.343563079833984, 52.61166763305664, 52.10078430175781, 50.92012405395508, 49.80387496948242, 49.345436096191406, 48.00965118408203, 47.65532684326172, 47.27342987060547, 46.87200927734375, 46.39032745361328, 46.17546844482422, 45.39794921875, 44.59610366821289, 44.30223846435547, 44.2233772277832, 43.86825180053711, 43.84148406982422, 43.34933090209961, 43.22639465332031, 42.352516174316406, 42.22840881347656, 42.042320251464844, 41.838993072509766, 41.19439697265625, 40.43342590332031, 39.277950286865234, 39.14434051513672, 39.14434051513672, 38.80665588378906, 38.58308029174805, 38.58308029174805, 38.58308029174805, 38.58308029174805, 38.58308029174805, 38.58308029174805, 38.58308029174805, 38.28980255126953, 38.28980255126953, 38.06903076171875, 37.72002410888672, 37.27321243286133, 36.669898986816406, 36.443389892578125, 36.355003356933594, 35.90837860107422, 35.824459075927734, 35.2652702331543, 35.08749771118164, 34.58687973022461, 34.16221237182617, 33.923500061035156, 33.923500061035156, 33.923500061035156, 33.923500061035156, 33.923500061035156, 33.923500061035156, 33.73781204223633, 33.21082305908203, 33.19007110595703, 32.865966796875, 32.819297790527344, 32.664546966552734, 32.62199783325195, 32.61663818359375, 32.36798858642578, 31.682586669921875, 31.071741104125977, 31.051729202270508, 30.593917846679688, 29.8697509765625, 29.645235061645508, 28.454837799072266, 27.87766456604004, 27.87766456604004, 27.86844253540039, 27.595748901367188, 27.518253326416016, 26.919269561767578, 26.90007781982422, 26.636737823486328, 26.1227970123291, 25.6763973236084, 24.48341178894043, 23.95494270324707, 23.293113708496094, 23.002134323120117, 22.14661979675293, 21.84696388244629, 21.69996452331543, 21.69996452331543, 21.69996452331543, 21.097248077392578, 20.853927612304688, 20.853927612304688, 20.29620933532715 ], "content": [ "I have an expressionengine template for frontend users using safecracker to create entries .", "I have a form built with SafeCracker in ExpressionEngine .", "I m trying to create a Safecracker form in ExpressionEngine to create a recipe .", "The template includes a safecracker form .", "Why are checkboxes getting cleared when I edit my entries in Safecracker", "To stop SafeCracker http : expressionengine.com downloads details safecracker from stripping all HTML from a given field open up the following file depending on which version of ExpressionEngine you re running : .. . .. . EE 2.1.3 or Earlier SafeCracker installed as Third-Party Add-On system expressionengine third party safecracker libraries safecracker lib.php .. . .. . .. . .. . EE 2.2.0 or Later SafeCracker installed as First-Party Module system expressionengine modules safecracker libraries safecracker lib.php .. . .. . Note : ExpressionEngine 2.2.0 bundles SafeCracker as a first-party module so your installation location will depend on what version you re running or have upgraded from . .. . .. . Scroll down to around Line 2371 for EE 2.1.3 or Line 2516 for EE 2.2 and look for the following : .. . .. . Here s where the fun begins .", "I have the safecracker form inside and if else statement so that if the url is group post title then the safecracker form loads an existing entry for editing .", "Then you can submit your Safecracker form in ajax .", "How can i control what is loaded with safecracker form .", "I have an embed in my safecracker form .", "In your SafeCracker tag ENTRY ID will be replaced with the actual entry ID of the new entry .", "Is it possible after submitting a safecracker form to send a thank you email to the guest", "I m using ExpressionEngine and Safecracker to build a simple Facebook app that runs inside of a FB page .", "I m running into an issue with Wygwam and Safecracker .", "Take a look around line 1281 of system expressionengine modules safecracker libraries safecracker lib.php you will see this : .. . .. . This array seems to be here specifically to help with your situation wanting to skip XSS filtering on safecracker fields .", "Does using safecracker in this way weaken the security of the site", "I ve used the following safecracker code :", "What if you display the same field via a Channel Entries tag instead of within a SafeCracker form", "I m building a form using Expression Engine s Safecracker module .", "I use a Safecracker form to enter the data and it renders the custom-fields beautifully : .. . .. .", "When the form is submitted and the entry is saved to the database SafeCracker strips out the inline CSS style .", "I m using 2.6.3 of Wygwam and EE 2.5.3 Safecracker 2.1 .", "this- EE- extensions- call safecracker submit entry start this .. . .. . http : ellislab.com expressionengine user-guide modules safecracker development.html", "I am using ExpressionEngine for my framework and Safecracker for my forms .. . .. . On Mac it seems the markup string is shown somewhere in the DOM and you can see it in the page .", "Well you can set datepicker no in your Safecracker tag http : expressionengine.com user guide modules safecracker index.html datepicker then add your javascript manually .", "Nesting channel : entries in safecracker is maybe not the best way .", "I m assuming this has changed since rjb s answer but SafeCracker provides two parameters I found helpful in drastically reducing page load-time : .. . .. . Relevant http : expressionengine.com user guide modules safecracker include-jquery documentation http : expressionengine.com user guide modules safecracker safecracker-head", "You can edit one of the hooks for Safecracker to perform an action send an email on form submission .", "Here s my code : .. . .. . For some reason the safecracker settings like require entry url title and author only are effecting the safecracker setup in the else block of the code .", "You are encountering namespace collision - title is populated first by your Channel Entries tag but then overwritten by SafeCracker as it s the outermost module tag .", "What I d like to do is have a link that s actually a safecracker submission that will add a member s name to the user s Playa field .", "Add the parameter preserve checkboxes yes .. . .. . http : expressionengine.com user guide modules safecracker index.html preserve-checkboxes", "As you ve shown you can disable jQuery from automatically being output by SafeCracker http : expressionengine.com user guide modules safecracker usage.html par include jquery say if you want to use a newer version that what s available from EE s Control Panel and can you disable the DatePicker but as far as I know you can t prevent the rest of the JavaScripts from being output without hacking the core SafeCracker library .", "The Short Answer : .. . .. . Sadly there s no way to disable many of the included SafeCracker JavaScripts .", "I was thinking safecracker had there own jQuery tags like EE does .", "I ve also searched the Safecracker documentation for how to configure it to search the ideal solution .", "I want to send name of the Tea with safecracker URL to next page .", "I read documents for safecracker and I tried entry id segment ... . but it did not work .", "All templates that use safecracker are only available to logged in members .", "there is no reason why safecracker should be less secure than the CP .", "I have an empty template with just a safecracker form consists of 2 custom field .", "If there is no title segment url is only group post then it loads a blank safecracker form to create a new post .", "Then use entry id segment 3 in your sthome blending template - though if you re using a standard Channel Entries or Safecracker tag on that page it should read the entry ID automatically since its the third segment .", "The Long Answer : .. . .. . SafeCracker is designed to be as general purpose as possible and to suit the needs of the largest audience .", "SafeCracker uses the built-in ExpressionEngine XSS Sanitization Method http : expressionengine.com user guide development guidelines security.html cross site scripting xss to clean user submitted input from Cross Site Scripting XSS and SQL Injection vulnerabilities .", "The solution is to put your above code into another template and embed that template http : expressionengine.com user guide templates embedding.html within your Safecracker form .", "I would be using a channel entries tag within a channel entries tag within a safecracker tag so it would require a lot of embeds but I think it would work .", "I will be loading jQuery UI directly from google so i don t need safecracker to load it .", "My issue is that I have to send safecracker form s entry id and the entry id created by embed : embed stembeds .blending select tea The emebed s code :", "Hi I am making a form in expression engine using safecracker and one of my fields called date-of-birth uses the date field type .", "I m using ExpressionEngine but I want to make some content-management templates that are very simple compared to the control panel .", "I have a project where I need a member group called Staff Admin slightly less privileges than Super Admin to be able to public entry data on behalf of a site Member via a Safecracker form .", "I m using jquery with expression engine to submit an ajax form utilizing the safe cracker module documented here : .. . .. . http : expressionengine.com user guide modules safecracker examples.html .. . .. . Basically my form allows logged in members to vote .", "When I extend the Wygwam configuration for a field such as adding font-color and then use that option on my field in Safecracker the HTML seems to be getting stripped out like so : .. . .. . Instead of this : .. . .. . I get this after submit : .. . .. . I m sure this is due to XSS filtering in Safecracker are there any good solutions to get around this issue", "I want to allow users to be able to submit HTML code and not have SafeCracker strip out the inline CSS style s .", "Is there something wrong with the way I m formatting this a better way to do so or is this potentially a bug in how the safecracker tags are being parsed", "If you can t it won t do me any good to develop an extension for safecracker I guess .", "Wouldn t coding it in SafeCracker force all Date field types to become a certain format", "My field is definitely a date field in EE but weather or not safeCracker passes it as a date I don t know .", "Make sure you have a text field in your blending log channel with the name selected tea - otherwise SafeCracker won t save that value .", "Hint : that extension hook gets passed a reference to the SafeCracker object which is not documented .. . so when you first test out the extension simply print the object so you can see what it contains : .. . .. . If you re unfamiliar with developing extensions and for ExpressionEngine using the database class etc that s a whole other thing .", "In any case i don t see anything mentioned in the safecracker user guide about utilizing and using those ui widgets and plugins in forms .", "Thankfully for us the Engineers at EllisLab have provided a secret undocumented way of whitelisting fieldtypes and field ids used in SafeCracker and exempting them from XSS filtering .", "You can use Safecracker too and create hidden-field for the Playa : .. . .. . You must use the Playa field name here not the field id .", "I m able to remove jQuery and datepicker from safecracker form by doing datepicker no include jquery no but what about removing other things mentioned in the url such as scrollable draggable thickbox and other things .", "The problem is that even though I have the Staff Admin group settings allow to edit and change authors on entries I m unable to do it on a Safecracker form and the specified author id is ignored and I m getting an error triggered for invalid author The selected author is invalid .", "Here s the answer http : expressionengine.com forums viewthread 216023 from the Expression Engine forums : .. . .. . The Safecracker tag already has built-in parsing to handle the edit new situation based on the value of url title or entry id .", ".. . .. . For the curious take a peak around Line 887 in the following file to see just how many jQuery UI Widgets are bundled in the SafeCracker tag pair . .. . .. . system expressionengine modules safecracker libraries safecracker lib.php .. . .. . .. . .. . Note : If you want to take matters into your own hands you can comment out some of the items in the js defaults and ui array which will remove the JavaScripts from being output .", "SafeCracker has an extension hook called safecracker submit entry end documentation http : expressionengine.com user guide modules safecracker development.html id3 so you can build an extension which uses that hook then in that hook s method do what you need to do .", "But I can t because the form has two fields like ExpressionEngine needs to write the entry : .. . .. . So where to go from here", "Nevertheless it s clearly a design decision that SafeCracker was built to include all of the JavaScripts it outputs since there isn t an approved way to remove them .", "With this tradeoff SafeCracker bundles jQuery jQuery UI Widgets jQuery Tools and various other jQuery Plugins and functions to facilitate client-side form validation and presentation of custom fieldtypes .", "Better yet avoid using javascript altogether and just use SafeCracker s dynamic title parameter http : expressionengine.com user guide modules safecracker index.html dynamic-title .", "It s much more powerful and will allow you to do exactly what you want in terms of your query - though you will have to build the form manually i.e . you won t get the SafeCracker-style simplicity of using field : field name to have your form fields output for you .", "This is the code : .. . .. . The embed is : embed stembeds .blending select tea .. . .. . This is the code in embed : .. . .. . I want to select tea from embed and I want to send the Tea name with safecracker URL : .. . .. . Please help me to solve this issue .", "Also am I possibly working too hard and Safecracker already has this function built-in similar to its live UrlTitle function", "In embed embed stembeds .blending select tea select a Tea type : option name title id entry id value url title title option With safecracker URL I want to append selected Tea s entry id .", "I ve been able to narrow it down to this piece of code : .. . .. . I m guessing that Safecracker is somehow violating what I can and can not do inside a FB page but I can t see what it is .", "Try entering a date via the control panel as well and see how that entry turns out .", "It seems the date-format function does not work within a safecracker tag http : devot-ee.com add-ons support zoo-visitor viewthread 7449 25153 so I installed this plugin http : devot-ee.com add-ons nice-date and used this code", "Is this possible using the automated form output", "Nothing displays within the channel entries tag let alone the conditional .", "Things I ve tried : .. . .. . hidden fields are allowed inside a FB page they work properly so they are not the cause of the problem .. . the scripts and other stuff that s generated by Safecracker works inside the FB page I ve hard-coded all of it and there seems to be no problem if hard coded .. . .. . You d say the solution is easy : hard code the form .", "I want to append entry id came from a selection box embedded to a safecracker URL .. . .. . This is the code : .. . .. . This is the embed : .. . .. . In embed line 4 I have id entry id .. . .. . I want to take entry id and append it to safecracker s URL like below : .. . .. . Because I want to use entry id in next page to retrieve some data in tea herbs channel using last segment .. . .. . Is this possible", "Naviagate to expressionengine - libraries - Cp.php and go to line 75 .", "I m using expressionengine and safecraker to create a web form-for a scheduling app that allows the user to select their desired shift time ex : 6am to 8pm .", "How did you master ExpressionEngine and all the relevant plugins etc", "It s really about whether the entries are displayed to other users not whether the form itself is visible to registered users .", "You might have better luck asking this on the ExpressionEngine StackExchange site .", "Now I am able to successfully set an author id on the form using a hidden input and a user logged in under the Super Admin group can successfully publish the new entry and have the specified author id set on the entry .", "After user creates an entry the entry can be edited by going to http : domain.com index.php create my entry where my entry is the entry user created .", "I have a recipe channel which can have many ingredients from an ingredients channel using the multi-relationship add-on from devot : ee .", "I have this entry form .. . .. . Challenge field dropdown returns entry id correctly but not the title .", "I have a safe cracker form that allows a logged in member to submit an entry a vote actually .", "instead of wrapping that around an entry form i ld suggest if total results 0 redirect already voted template", "May I suggest you post in the official EE support forums since SC is now a first-party module", "I want to append the screen name to the user s existing Playa field entries .", "Derek is right you need to embed your related entries .", "My question is can i provide the user an option to clone an entry ." ] }
{ "confidence": [ 85.57716369628906, 76.7934341430664, 75.65351104736328, 74.29256439208984, 69.93584442138672, 67.59847259521484, 67.58987426757812, 67.06111907958984, 67.04219818115234, 65.74810028076172, 64.28297424316406, 64.17353820800781, 63.37571716308594, 63.183631896972656, 63.079185485839844, 62.72735595703125, 62.287818908691406, 61.73191452026367, 61.04840850830078, 57.00697708129883 ], "content": [ "Question : I have a form built with SafeCracker in ExpressionEngine . One of the textarea fields is used to allow users to submit HTML code . Here s an example of the type of code they will be providing : .. . .. . div style left : 385px top : 137px class aaa div . When the form is submitted and the entry is saved to the database SafeCracker strips out the inline CSS style . The result-of what is actually saved to the database is : .. . .. . div class aaa div . As you can see the inline CSS style s are being removed but the rest of the HTML is maintained . I want to allow users to be able to submit HTML code and not have SafeCracker strip out the inline CSS style s . How can I accomplish this .. . Answer : SafeCracker uses the built-in ExpressionEngine XSS Sanitization Method http : expressionengine.com user guide development guidelines security.html cross site scripting xss to clean user submitted input from Cross Site Scripting XSS and SQL Injection vulnerabilities . Any front-side user input is sanitized by using this- EE- security- xss clean before being inserted into the database or output to the screen . Thankfully for us the Engineers at EllisLab have provided a secret undocumented way of whitelisting fieldtypes and field ids used in SafeCracker and exempting them from XSS filtering . To stop SafeCracker http : expressionengine.com downloads details safecracker from stripping all HTML from a given field open up the following file depending on which version of ExpressionEngine you re running : .. . .. . EE 2.1.3 or Earlier SafeCracker installed as Third-Party Add-On system expressionengine third party safecracker libraries safecracker lib.php .. . .. . .. . .. . EE 2.2.0 or Later SafeCracker installed as First-Party Module system expressionengine modules safecracker libraries safecracker lib.php .. . .. . Note : ExpressionEngine 2.2.0 bundles SafeCracker as a first-party module so your installation location will depend on what version you re running or have upgraded from . .. . .. . Scroll down to around Line 2371 for EE 2.1.3 or Line 2516 for EE 2.2 and look for the following : .. . .. . Here s where the fun begins . To whitelist a field from having the XSS Filter applied simply add the fieldtype or field id to either array . Here s an example : .. . .. . You can either specify a certain type of fieldtype textarea input etc . or the field id if you d rather be more explicit . The former way is more general while the latter is absolute and is more flexible if a custom field would to ever change its type . With these changes any field s you exempt from the XSS Sanitization Method will no longer have any filtering applied and allow any arbitrary HTML to be submitted into the database Keep in mind that any upgrades to ExpressionEngine may overwrite this file so you may want to change the permissions on the file or keep a backup handy . .. . .. . Cross Site Scripting should be taken very seriously as you would never want your site to be the source of an attack vector . Always err on the side of caution . Comment : @rjb Thanks for the detailed explanation . But how come this only happens in EE2.2 and not EE2.0 . I never had issue with inline styling being striped out in EE2.0 . That s only the case in 2.2 . Comment : The built-in XSS sanitization method is constantly being tweaked for improved security and performance so it may have changed between versions . You might also want to check your Channel Posting Preferences http : expressionengine.com user guide cp admin content admin channel edit preferences.html and verify you have Allow ALL HTML for the setting Default HTML Formatting in Channel Entries . Comment : Yes i already have Allow ALL HTML . Are you able to find out if there was in fact any different in XSS sanitization between the 2 versions . Comment : Also how would inline styling pose any xss risks . Comment : May I suggest you post in the official EE support forums since SC is now a first-party module", "Question : Is it possible after submitting a safecracker form to send a thank you email to the guest Comment : You might have better luck asking this on the ExpressionEngine StackExchange site . http : expressionengine.stackexchange.com .. . Answer : Would you be comfortable with writing in PHP to deliver this email You can edit one of the hooks for Safecracker to perform an action send an email on form submission . this- EE- extensions- call safecracker submit entry start this .. . .. . http : ellislab.com expressionengine user-guide modules safecracker development.html", "Question : I m using ExpressionEngine and Safecracker to build a simple Facebook app that runs inside of a FB page . My code functions properly outside of the Facebook page but inside the page it shows a blank screen . I ve been able to narrow it down to this piece of code : .. . .. . I m guessing that Safecracker is somehow violating what I can and can not do inside a FB page but I can t see what it is . Things I ve tried : .. . .. . hidden fields are allowed inside a FB page they work properly so they are not the cause of the problem .. . the scripts and other stuff that s generated by Safecracker works inside the FB page I ve hard-coded all of it and there seems to be no problem if hard coded .. . .. . You d say the solution is easy : hard code the form . But I can t because the form has two fields like ExpressionEngine needs to write the entry : .. . .. . So where to go from here What terms guidelines might I be violating .. . Answer : I submitted a ticket and did the following . Naviagate to expressionengine - libraries - Cp.php and go to line 75 . Ticket https : support.ellislab.com bugs detail 19663 .. . .. . Replace with", "Question : I have an empty template with just a safecracker form consists of 2 custom field . When i try to load it up in the browser it takes about 2-3 seconds to load . Looking in firebug i see the following GET .. . .. . I don t need to load most of the things showing in the url above . How can i control what is loaded with safecracker form . I will be loading jQuery UI directly from google so i don t need safecracker to load it . I m able to remove jQuery and datepicker from safecracker form by doing datepicker no include jquery no but what about removing other things mentioned in the url such as scrollable draggable thickbox and other things . enter image description here http : i.stack.imgur.com JP1ML.png .. . Answer : The Short Answer : .. . .. . Sadly there s no way to disable many of the included SafeCracker JavaScripts . The Long Answer : .. . .. . SafeCracker is designed to be as general purpose as possible and to suit the needs of the largest audience . With this tradeoff SafeCracker bundles jQuery jQuery UI Widgets jQuery Tools and various other jQuery Plugins and functions to facilitate client-side form validation and presentation of custom fieldtypes . As you ve shown you can disable jQuery from automatically being output by SafeCracker http : expressionengine.com user guide modules safecracker usage.html par include jquery say if you want to use a newer version that what s available from EE s Control Panel and can you disable the DatePicker but as far as I know you can t prevent the rest of the JavaScripts from being output without hacking the core SafeCracker library . Understandbly I m not a big fan of this include everything and the kitchen sink approach and hate seeing extraneous and bloated scripts being added to the page especially ones that I would never use in the first place . Nevertheless it s clearly a design decision that SafeCracker was built to include all of the JavaScripts it outputs since there isn t an approved way to remove them . So we re essentially stuck dealing with them for the unforeseen future . If you feel strongly about this I would suggest submitting a Feature Request to EllisLab http : expressionengine.com forums viewthread 151566 to allow more configurability to SafeCracker s sloppy way of outputting more JavaScripts that what s really necessary . .. . .. . For the curious take a peak around Line 887 in the following file to see just how many jQuery UI Widgets are bundled in the SafeCracker tag pair . .. . .. . system expressionengine modules safecracker libraries safecracker lib.php .. . .. . .. . .. . Note : If you want to take matters into your own hands you can comment out some of the items in the js defaults and ui array which will remove the JavaScripts from being output . However in doing so you assume all responsibility and risk for SafeCracker s operation . Comment : Good to know i can easily comment out the items from the lib file . I would rather load and use jQuery externally . In any case i don t see anything mentioned in the safecracker user guide about utilizing and using those ui widgets and plugins in forms . Where is this mentioned . Comment : I was thinking safecracker had there own jQuery tags like EE does . I think it just loads jQuery and we use it like we use jQuery outside . I m clear on that now .", "Question : I m running into an issue with Wygwam and Safecracker . When I extend the Wygwam configuration for a field such as adding font-color and then use that option on my field in Safecracker the HTML seems to be getting stripped out like so : .. . .. . Instead of this : .. . .. . I get this after submit : .. . .. . I m sure this is due to XSS filtering in Safecracker are there any good solutions to get around this issue I m using 2.6.3 of Wygwam and EE 2.5.3 Safecracker 2.1 . .. . Answer : Take a look around line 1281 of system expressionengine modules safecracker libraries safecracker lib.php you will see this : .. . .. . This array seems to be here specifically to help with your situation wanting to skip XSS filtering on safecracker fields . The array is initialized around line 2612 of the same file : .. . .. . Therefore you should simply be able to add your field IDs to this array to skip XSS filtering like so : .. . .. . Keep in mind this is a REALLY REALLY BAD IDEA . At this point users can now add any arbitrary javascript to their wygwam field and you have effectively opened your website up to XSS attacks http : en.wikipedia.org wiki Cross-site scripting malicious users could hijack other users sessions and do whatever they like . Comment : Thanks Adrian that worked . The form is visible to only registered users . So XSS is mitigated but definitely still a possibilty . I will advise my client Comment : It s really about whether the entries are displayed to other users not whether the form itself is visible to registered users . For example if I can insert javascript which other users will view run that s extremely bad .", "Question : I m using ExpressionEngine but I want to make some content-management templates that are very simple compared to the control panel . Assume the following : .. . .. . Only the admin can register new members . Members are trusted people . All templates that use safecracker are only available to logged in members . Does using safecracker in this way weaken the security of the site Would there be any reason not to do this Is this the best way to get a very custom look for the content-management .. . Answer : I think the key to any security in EE is the strength of your passwords . If all your members are using strong passwords and keeping their storage safe there is no reason why safecracker should be less secure than the CP . Aother alternative to simplify your content-management for users is to use zoo flexible admin . http : devot-ee.com add-ons zoo-flexible-admin I use it for a lot of sites . Comment : Thanks . I plan on increasing the security requirements on passwords . I m glad that can be done through some simple settings .", "Question : I have a template called post.html in group.group . The template includes a safecracker form . I have the safecracker form inside and if else statement so that if the url is group post title then the safecracker form loads an existing entry for editing . If there is no title segment url is only group post then it loads a blank safecracker form to create a new post . Here s my code : .. . .. . For some reason the safecracker settings like require entry url title and author only are effecting the safecracker setup in the else block of the code . So when I load a url without a third segment it s telling me no entry was provided . Is there something wrong with the way I m formatting this a better way to do so or is this potentially a bug in how the safecracker tags are being parsed .. . Answer : Here s the answer http : expressionengine.com forums viewthread 216023 from the Expression Engine forums : .. . .. . The Safecracker tag already has built-in parsing to handle the edit new situation based on the value of url title or entry id . So I could rewrite my code as :", "Question : I m trying to create a Safecracker form in ExpressionEngine to create a recipe . I have a recipe channel which can have many ingredients from an ingredients channel using the multi-relationship add-on from devot : ee . However I m having trouble listing the ingredients within my form . This is my mark-up : .. . .. . The problem is the actual EE tags are just getting output on my web page . I figure I m doing something fundamentally wrong so could someone point me in the right direction Thanks . .. . Answer : This is called variable collision - you re nesting entries which use the same variable tag names as those used by the parent tag in this case title and due to how EE s parse order http : expressionengine.com wiki Parse Order works the parent tag is winning every time . The solution is to put your above code into another template and embed that template http : expressionengine.com user guide templates embedding.html within your Safecracker form . Embeds are run at the very end of template processing after all of the other EE tags are parsed so you won t run into the same collision . Comment : Thanks Derek . This will be good to know for future development", "Question : I m using jquery with expression engine to submit an ajax form utilizing the safe cracker module documented here : .. . .. . http : expressionengine.com user guide modules safecracker examples.html .. . .. . Basically my form allows logged in members to vote . I want them to be able to vote only once though so I set up a custom profile data field called voted which I want to set to true once they submit the form . Is this possible If so how Comment : Where are you storing the votes Are you storing individual votes or just incrementing the tally If you store the votes in a votes table then you can store the member id of the voter as well . This has the additional benefit of allowing you to not have to add another custom member field every time you need to have another election contest . You may also wish to evaluate some of the voting add ons that exist for EE . At the very least you will learn how this sort of thing has been handled before . .. . Answer : SafeCracker has an extension hook called safecracker submit entry end documentation http : expressionengine.com user guide modules safecracker development.html id3 so you can build an extension which uses that hook then in that hook s method do what you need to do . Hint : that extension hook gets passed a reference to the SafeCracker object which is not documented .. . so when you first test out the extension simply print the object so you can see what it contains : .. . .. . If you re unfamiliar with developing extensions and for ExpressionEngine using the database class etc that s a whole other thing . I can post some links to get you started if that s the case . Comment : Thanks - that is helpful . I guess my question was more of a two parter and I think the question that needs to be answered first is whether or not you can set custom member field values or not . If you can t it won t do me any good to develop an extension for safecracker I guess . Comment : Setting custom member field values is as simple as updating the exp member data field . Very doable in an extension .", "Question : Why are checkboxes getting cleared when I edit my entries in Safecracker .. . Answer : Add the parameter preserve checkboxes yes .. . .. . http : expressionengine.com user guide modules safecracker index.html preserve-checkboxes", "Question : I m trying to create a Safecracker form in ExpressionEngine to create a recipe . I have a recipe channel which can have many ingredients from an ingredients channel using the multi-relationship add-on from devot : ee . However I m having trouble listing the ingredients within my form . This is my mark-up : .. . .. . The problem is the actual EE tags are just getting output on my web page . I figure I m doing something fundamentally wrong so could someone point me in the right direction Thanks . .. . Answer : Derek is right you need to embed your related entries . I ve got this working on my Toronto EE meetup site with this code . Simplified Template code : .. . .. . embedded-code : .. . .. . In the code I m using the Playa Module but the principle is the same . Hope this helps .. . .. . Sean", "Question : I have an expressionengine template for frontend users using safecracker to create entries . ex : http : domain.com index.php create . After user creates an entry the entry can be edited by going to http : domain.com index.php create my entry where my entry is the entry user created . My question is can i provide the user an option to clone an entry . What is the best way to clone . I can t think of an easy way to do this . .. . Answer : I haven t tried this but you could try creating a new template - say index.php clone - that you d link-to with the url title of the entry to be cloned after it e.g . index.php clone my entry . Then use a channel : entries tag with url title segment 2 to get the values of all the existing entry s fields and nest an exp : safecracker tag inside of it Worth a shot anyway . Comment : Thanks that s what i had in mind too .", "Question : I m building an artist directory and using Pixel Tonic s Playa to manage each member s fans . In each user s profile there is a multi-select Playa field that displays all of the members that user has fanned similar to like on Facebook . What I d like to do is have a link that s actually a safecracker submission that will add a member s name to the user s Playa field . Essentially it will be a form with hidden fields for the User s ID and the screen name of the member whose page is being viewed . I want to append the screen name to the user s existing Playa field entries . What s the best way to achieve this Thanks ty .. . Answer : You can use Safecracker too and create hidden-field for the Playa : .. . .. . You must use the Playa field name here not the field id . Then you can submit your Safecracker form in ajax .", "Question : I have an embed in my safecracker form . Embed has a select box and can select a name of a Tea . I want to send name of the Tea with safecracker URL to next page . This is the code : .. . .. . The embed is : embed stembeds .blending select tea .. . .. . This is the code in embed : .. . .. . I want to select tea from embed and I want to send the Tea name with safecracker URL : .. . .. . Please help me to solve this issue . Thank you very much .. . Answer : Make sure you have a text field in your blending log channel with the name selected tea - otherwise SafeCracker won t save that value . Your embed should look like this : Comment : Dear Derek Thanks again . I will check it and let you know . Comment : Wow It works . Thank you very much . Simply amazing . How did you master ExpressionEngine and all the relevant plugins etc Amazing . Thank you very much . If there is a way to give you points I will give highest points . Comment : Thanks a lot Derek . I will give highest points . Comment : Use the grey arrows next to an answer to up down vote .", "Question : I m running into an issue with Wygwam and Safecracker . When I extend the Wygwam configuration for a field such as adding font-color and then use that option on my field in Safecracker the HTML seems to be getting stripped out like so : .. . .. . Instead of this : .. . .. . I get this after submit : .. . .. . I m sure this is due to XSS filtering in Safecracker are there any good solutions to get around this issue I m using 2.6.3 of Wygwam and EE 2.5.3 Safecracker 2.1 . .. . Answer : Everything Adrian says is right . However if you are not allowing guests to post via this form and it s only for approved registered users the XSS threat is mitigated . In fact when you submit an entry in the CP fields are NOT passed to the XSS filter . Comment : Thanks Rob the form is only for registered users .", "Question : I have an empty template with just a safecracker form consists of 2 custom field . When i try to load it up in the browser it takes about 2-3 seconds to load . Looking in firebug i see the following GET .. . .. . I don t need to load most of the things showing in the url above . How can i control what is loaded with safecracker form . I will be loading jQuery UI directly from google so i don t need safecracker to load it . I m able to remove jQuery and datepicker from safecracker form by doing datepicker no include jquery no but what about removing other things mentioned in the url such as scrollable draggable thickbox and other things . enter image description here http : i.stack.imgur.com JP1ML.png .. . Answer : I m assuming this has changed since rjb s answer but SafeCracker provides two parameters I found helpful in drastically reducing page load-time : .. . .. . Relevant http : expressionengine.com user guide modules safecracker include-jquery documentation http : expressionengine.com user guide modules safecracker safecracker-head", "Question : I want to append entry id came from a selection box embedded to a safecracker URL .. . .. . This is the code : .. . .. . This is the embed : .. . .. . In embed line 4 I have id entry id .. . .. . I want to take entry id and append it to safecracker s URL like below : .. . .. . Because I want to use entry id in next page to retrieve some data in tea herbs channel using last segment .. . .. . Is this possible I read documents for safecracker and I tried entry id segment ... . but it did not work . May be I am using entry id segment ... . wrong way . Please help me to accomplish this task Comment : FYI : The EE focused SE site is now in public beta if you want to post future EE questions there : expressionengine.stackexchange.com http : expressionengine.stackexchange.com Comment : Thank you very much . .. . Answer : In your SafeCracker tag ENTRY ID will be replaced with the actual entry ID of the new entry . So just use return sthome blending ENTRY ID . This will redirect you to sthome blending 45 for example . Then use entry id segment 3 in your sthome blending template - though if you re using a standard Channel Entries or Safecracker tag on that page it should read the entry ID automatically since its the third segment . Comment : Thanks again Derek . My issue is that I have to send safecracker form s entry id and the entry id created by embed : embed stembeds .blending select tea The emebed s code : Comment : May be I did not explain well . In embed embed stembeds .blending select tea select a Tea type : option name title id entry id value url title title option With safecracker URL I want to append selected Tea s entry id . Like return sthome blending ENTRY ID Tea Entry id and then I want to use Tea Entry id to retrieve Tea channel s some data data in a Matrix Please help . Thank you Comment : May be I did not explain well . In embed embed stembeds .blending select tea select a Tea type : option name title id entry id value url title title option With safecracker URL I want to append selected Tea s entry id . Like return sthome blending ENTRY ID Tea Entry id and then I want to use Tea Entry id to retrieve Tea channel s some data data in a Matrix Please help . Thank you Comment : Dear Derek I found the answer . I use Javascript to retrieve the entry id and put into a hidden-field . I appreciate your kind help . You are simply amazing . I also want to be an expert like you . Thanks again Comment : Glad you sorted it .. . you should direct future questions to the new EE StackExchange site http : expressionengine.stackexchange.com - there are dozens of experts there", "Question : I have this entry form .. . .. . Challenge field dropdown returns entry id correctly but not the title . title params is blank . Any tips .. . Answer : You are encountering namespace collision - title is populated first by your Channel Entries tag but then overwritten by SafeCracker as it s the outermost module tag . entry id will also fail once you re editing an existing entry rather than creating a new one . Solve this by embedding http : expressionengine.com user guide templates embedding.html your Channel Entries tag a snippet as suggested by pvledoux will not help in this case .", "Question : I have a safe cracker form that allows a logged in member to submit an entry a vote actually . When they submit their vote I want to prevent them from ever being able to submit an entry to this channel again . Is that possible If so how Something automatic that either sets a member variable or searches some field to see if a member has submitted or something . .. . Answer : Couldn t you just wrap something like this .. . .. . around some or all of you voting form Comment : Actually that s pretty smart yeah . I would be using a channel entries tag within a channel entries tag within a safecracker tag so it would require a lot of embeds but I think it would work . Thanks Comment : instead of wrapping that around an entry form i ld suggest if total results 0 redirect already voted template Comment : for some reason that syntax isn t working for me . Nothing displays within the channel entries tag let alone the conditional . Am I missing something Comment : @mheavers : sorry didn t realize you already had a channel : entries loop . If the embeds are too ugly you could likely cookup some kind of simple has voted plugin without breaking your brain . Comment : you re using the correct channel of course I just made one up .", "Question : I m running into an issue with Wygwam and Safecracker . When I extend the Wygwam configuration for a field such as adding font-color and then use that option on my field in Safecracker the HTML seems to be getting stripped out like so : .. . .. . Instead of this : .. . .. . I get this after submit : .. . .. . I m sure this is due to XSS filtering in Safecracker are there any good solutions to get around this issue I m using 2.6.3 of Wygwam and EE 2.5.3 Safecracker 2.1 . .. . Answer : If you have the removeFormatAttributes setting applied to your Wygwam configuration it will strip out style attributes amongst others . Go to Add-ons - Modules - Wygwam and click on the config set you are using for the field in question . From there you can select various settings to affect how that set works . Comment : Hey foamcow that didn t fix my issue but thanks for telling me about the adv . config options to pass to the underlying CK Editor" ] }
[ "yes-answer-long", "yes-answer-short" ]
module
UNK_RELATION
geometry-shader@vertex-shader@64
geometry-shader -- geometry-shader should not be mixed up with @placeholder but are shader programs executed after vertex shaders .
{ "confidence": [ 85.02510833740234, 80.95962524414062, 77.81253051757812, 75.74917602539062, 74.75559997558594, 74.66136169433594, 74.34446716308594, 74.00582122802734, 73.28008270263672, 72.47430419921875, 71.32770538330078, 71.10050964355469, 70.27336120605469, 69.43717956542969, 68.04019927978516, 67.46636962890625, 67.22415161132812, 67.21537017822266, 65.99553680419922, 65.85892486572266, 65.7486343383789, 65.662353515625, 65.43916320800781, 64.95169067382812, 64.66984558105469, 64.52002716064453, 64.52002716064453, 64.52002716064453, 64.32567596435547, 63.92852020263672, 63.9047966003418, 63.43109893798828, 63.1290397644043, 63.1290397644043, 63.1290397644043, 63.1290397644043, 63.1290397644043, 63.1290397644043, 63.1290397644043, 63.1290397644043, 62.817909240722656, 62.549034118652344, 62.16461181640625, 61.905731201171875, 61.653526306152344, 61.653526306152344, 61.653526306152344, 61.653526306152344, 60.623321533203125, 60.228546142578125, 60.195274353027344, 59.88508605957031, 59.56277084350586, 58.896934509277344, 58.50537109375, 58.43547058105469, 57.81062316894531, 57.682090759277344, 57.682090759277344, 57.58197784423828, 57.58197784423828, 57.58197784423828, 57.305145263671875, 57.189266204833984, 57.12849044799805, 57.12849044799805, 56.948055267333984, 56.948055267333984, 56.593162536621094, 56.593162536621094, 56.593162536621094, 56.361083984375, 56.106468200683594, 56.106468200683594, 56.106468200683594, 56.106468200683594, 56.106468200683594, 56.106468200683594, 56.106468200683594, 56.106468200683594, 56.106468200683594, 56.106468200683594, 56.106468200683594, 56.106468200683594, 55.92100524902344, 55.91365051269531, 55.91365051269531, 55.892337799072266, 55.85791015625, 55.47254180908203, 55.47254180908203, 54.88557434082031, 54.647789001464844, 54.532554626464844, 54.41521453857422, 54.38240051269531, 54.38240051269531, 54.3380241394043, 54.3380241394043 ], "content": [ "Vertex Shader : .. . .. . Geometry Shader : .. . .. . Fragment Shader :", "Below is the code of my geometry-shader .. . .. . Vertex Shader", "Vertex shader : .. . .. . Geometry shader : .. . .. . Fragment Shader : .. . .. . The data I am passing :", "Here are my shaders : .. . .. . Vertex shader : .. . .. . Geometry Shader : .. . .. . Fragment Shader : .. . .. . I have tried multiple tutorials .", "Do you mean output variables from Vertex shader or the geometry-shader", "Geometry Shader .. . .. . Fragment Shader", "The geometry-shader .", "gl FragColor is only available in fragment shader not geometry shaders .", "The problem seems to be in the interface between vertex-shader and the geometry-shader .", "I draw vertex normals using geometry-shader .", "VertexShader .. . .. . This is my FragmentShader .. . .. . This is my Geometry Shader .. . .. . I just want that what ever was there earlier is passed from vertex-shader to fragment shader via geometry-shader so that I can manipulate the shader later .", "There is a geometry-shader .", "In your case the geometry-shader .", "The vertex-shader only passes the data through to the geometry-shader .", "As you can see there a 3 pixels present inside the vertex-shader but nothing after the geometry-shader .", "Vertex Shader .. . .. . Geometry Shader .. . .. . Everything goes fine with compile link but glGetAttribLocationARB fails for the vertex attribute .", "Is there a smart way to calculate this in the geometry-shader", "I m new to writing shaders and I m working on a practice geometry-shader .", "Add the offset in your vertex-shader or do the perspective projection in your geometry-shader .", "@AndonM.Coleman So the geometry-shader will invoke on every two vertex invocations", "What happens with the geometry-shader", "The snippet responsible for building the program : .. . .. . And here is the geometry-shader : .. . .. . This shader should be just a pass-through shader just for testing for now .", "Now obviously processing the geometry-shader after the fragment pixel-shader makes no sense but what I m wondering is why not put it before the vertex-shader", "When using layout points in in geometry-shader I can simply forward the data through the vertex-shader by suppling gl Position with a vec4 : .. . .. . And then I can access it with gl in 0 .gl Position in geometry-shader .", "vertex : .. . .. . geometry : .. . .. . fragment : .. . .. . So without the geometry-shader this works as vertex out whatever corresponds to fragment in whatever .", "Basically before the Geometry shader I d pass data from the Vertex Shader to the Fragment simply using in out qualifiers .", "Because the normals are only known from the Geometry Shader onward I can t do any lighting math in the Vertex Shader .", "Can I just attach the geometry-shader to the program just like the vertex and fragment shader", "GS geometry-shader is at least distinct from PS pixel-shader VS vertex-shader HS hull shader DS domain shader and CS compute shader .", "If I set the thickness in the geometry-shader it works fine but when I tried to pass it to shaders as a part of the vertex data I can t seem to access it in the geometry-shader .", "Should I use Geometry shader instead", "I would like to attach a geometry-shader to my existing and working vertex and fragment shaders .", "Note that your geometry-shader could be written branchless .", "Those vertices in-order will be the input to your geometry-shader .", "It looks like the error is here in your geometry-shader .", "Would a geometry-shader be the way to do it and if so - how", "The idea is to process groups of 4 elements in the geometry-shader .", "I cannot get my geometry-shader working .", "All Geometry Shader input variables are arrayed .", "Why are you performing skeletal posing in the geometry-shader", "VertexShader .. . .. . This is my FragemntShader .. . .. . This is my GeometryShader .. . .. . I just want that what ever was there earlier is passed from vertex-shader to fragment shader via geometry-shader so that I can manipulate the shader later .", "Geometry Shader .. . .. . Fragment Shader .. . .. . I have recently encountered streams for geometry-shader but cant find a decent example of how this can be done in my instance .", "GL INVALID OPERATION is generated if a geometry-shader is active and mode is incompatible with the input primitive type of the geometry-shader in the currently installed program object .", "Apologies the calculation is performed in the geometry-shader .", "There is no push constant limit specific to the geometry-shader .", "A third option is to not do this in the geometry-shader in the first place .", "I made single edit at geometry-shader .", "As a piece of advice geometry-shader are a bad idea .", "This is the geometry-shader i made which from my understanding should simply pass the 3 vertices on to the frag shader", "However with the geometry-shader I end up redifining whatever as both an in and an out .", "but I also know it needs to run after the geometry-shader as well so wouldn t it still make sense to run the vertex-shader between those stages", "Can you include the geometry-shader in question", "Those two shaders Fragment and Vertex shaders are used for Per Pixel Lighting calculation maybe there are bugs .. . .. . Fragment Shader .. . .. . Vertex Shader .. . .. . Based on that two shaders can someone show me how to write correctly geometry shaders .", "The simplest and most efficient way I have thought of for this is sending the 3D vertices to the vertex-shader then sending them to the geometry-shader and taking the cross sections there .", "I want to render an environment map into a cubemap framebuffer but I dislike the fact that I have to use the geometry-shader to set gl Layer because the geometry-shader would be a basic passthrough shader .", "Here are my shaders : .. . .. . Vertex shader : .. . .. . Geomerty shader : .. . .. . Fragment shader : .. . .. . Help me to figure out where I ve got it wrong .", "The geometry-shader calculates extra vertices based on a normal .", "Fragment Shader : .. . .. . So for the Geometry Shader would I have to do something like this to pass data", "I assume that there is no Pixel Shader present because the Geometry Shader isn t outputting anything is that right", "I m not sure you understand how the Geometry Shader works .", "That s how you need to access all of your Geometry Shader inputs .", "I cannot get my geometry-shader working proprly .", "GL INVALID OPERATION is generated by glDrawArrays if a geometry-shader is present transform feedback is active and the output primitive type of the geometry-shader does not match the transform feedback primitiveMode .", "tutorial1 http : vallentinsource.com blog show-normals-geometry-shader tutorial2 http : www.geeks3d.com 20130905 exploring-glsl-normal-visualizer-with-geometry-shaders-shader-library and a few more with out results .", "Want to calculate normals for light http : i.stack.imgur.com fSJGx.png .. . .. . My code looks like this : .. . .. . Geometry shader : .. . .. . And my vertex and fragment shader are as basic as it can get .", "These extra emitted vertices do not require a trip backwards in the pipeline to the vertex-shader stage - they are completely calculated during an invocation of the geometry-shader .", "You can either spend more time in the geometry-shader or spend more space storing the full vertex data .", "You can combine your 4 vertices to one big vertex and pass them as points to the geometry-shader .", "I m having some trouble passing data through my shaders notably the Geometry shader .", "Question : .. . .. . Is there a way for the geometry-shader to handle primitives of custom lengths similar to the patch primitives used in tessellation shaders", "Is there a way for the geometry-shader to handle primitives of custom lengths similar to the patch primitives used in tessellation shaders", "The only thing that can give a geometry-shader s input primitive any meaning is the geometry-shader itself .", ".. . .. . Here is a very simple example Geometry Shader that does what you want :", "and max vertices is how many vetrices are allowed to be output by the geometry-shader .", "Additionally a geometry-shader could stall the pipeline and decrease performance .", "Outputting fans in a Geometry Shader is very unnatural as you have discovered .", "What is the math needed to correctly calculate the light in the Geometry Shader", "I am passing a line to the geometry-shader and outputting a cuboid .", "When I set thickness vThickness 0 in the geometry-shader then nothing is drawn .", "This is my Geometry Shader : .. . .. . This is a screenshot of the Pipeline stages for the Draw call .", "I will still only be outputting triangles from the geometry-shader .", "The problem is that the geometry-shader code has no effect on the final processing of the vertices .", "So my questions are : .. . .. . How can I compile a geometry-shader on android", "The code I posted is fine this is how you add a geometry-shader .", "I know that in the vertex-shader you do it like this : .. . .. . What would be the equivalent for using instancedPosition in a geometry-shader Like when I wanna instance a model made of 1 vertex and for each instance to make a quad in the geometry-shader and set the quad s position to be that of the instancePosition of the corresponding instance in the instance buffer .", "My first pass is a simple surface shader but my second pass is the geometry-shader .", "I am trying to write a simple shader to draw 3D line with thickness just to learn geometry-shader in unity .", "Here is the code hopefully minimal enough : .. . .. . Vertex Shader : .. . .. . Geometry Shader : .. . .. . Fragment Shader : .. . .. . I can provide my LoadShaders function if necessary but I don t think the issue lies there .", "Posing is normally done in the vertex-shader .", "Because of limitations I have to calculate vertex normals inside my geometry-shader .", "I forgot to multiply the vertex positions out of the geometry-shader with my view projections matrix", "wireframe http : i.stack.imgur.com bJorY.png .. . .. . But if I disable the geometry-shader I get my geometry : .. . .. .", "Without the geometry-shader the rasterizer would have be taken the responsability to clip those primitives outside the view frustum but since I ve introduced the geometry-shader I need to compute those result by myself .", "Also do you think this could be used with primitive restart somehow or would the geometry-shader just get mixed up with the restart index beacuse of the adjacency", "So I have appended 1 at the end of those variable names those which will go out from geometry-shader to the fragment shader .", "fragment or vertex-shader no error occurs .", "Like I d have : .. . .. . Vertex Shader", "You can t switch what primitive type is emitted in a geometry-shader .", "It is basically because geometry-shader was a pretty stupid choice of words on Microsoft s part ." ] }
{ "confidence": [ 99.47683715820312, 97.1130599975586, 94.2777099609375, 93.00430297851562, 92.46817016601562, 91.66468048095703, 91.06709289550781, 88.84693145751953, 88.3681411743164, 87.41695404052734, 86.81126403808594, 86.6715087890625, 86.4921646118164, 86.11804962158203, 85.80223846435547, 85.46684265136719, 85.04508972167969, 84.79438018798828, 84.13719177246094, 83.50184631347656 ], "content": [ "Question : In both the OpenGL https : www.opengl.org wiki Rendering Pipeline Overview Pipeline and Direct3D https : msdn.microsoft.com en-us library windows desktop bb205123 28v vs.85 29.aspx rendering pipelines the geometry-shader is processed after the vertex-shader and before the fragment pixel-shader . Now obviously processing the geometry-shader after the fragment pixel-shader makes no sense but what I m wondering is why not put it before the vertex-shader From a software high-level perspective at least it seems to make more sense that way : first you run the geometry-shader to create all the vertices you want and dump any data only relevant to the geometry-shader then you run the vertex-shader on all the vertices thus created . There s an obvious drawback in that the vertex-shader now has to be run on each of the newly-created vertices but any logic that needs to be done there would in the current pipelines need to be run for each vertex in the geometry-shader presumably so there s not much of a performance hit there . I m assuming since the geometry-shader is in this position in both pipelines that there s either a hardware reason or a non-obvious pipeline reason that it makes more sense . I am aware that polygon linking needs to take place before running a geometry-shader possibly not if it takes single points as inputs but I also know it needs to run after the geometry-shader as well so wouldn t it still make sense to run the vertex-shader between those stages .. . Answer : It is basically because geometry-shader was a pretty stupid choice of words on Microsoft s part . It should have been called primitive shader . .. . .. . Geometry shaders make the primitive assembly stage programmable and you cannot assemble primitives before you have an input stream of vertices computed . There is some overlap in functionality since you can take one input primitive type and spit out a completely different type often requiring the calculation of extra vertices . These extra emitted vertices do not require a trip backwards in the pipeline to the vertex-shader stage - they are completely calculated during an invocation of the geometry-shader . This concept should not be too foreign because tessellation control and evaluation shaders also look very much like vertex shaders in form and function . There are a lot of stages of vertex transform and what we call vertex shaders are just the tip of the iceberg . In a modern application you can expect the output of a vertex-shader to go through multiple additional stages before you have a finalized vertex for rasterization and pixel shading which is also poorly named . Comment : Whether you like the name or not the problem with primitive shader is that the abbreviation PS would be ambiguous with pixel-shader . GS geometry-shader is at least distinct from PS pixel-shader VS vertex-shader HS hull shader DS domain shader and CS compute shader . Comment : @ChuckWalbourn : Yeah which brings me back to my conclusion. . if they d called Pixel Shaders fragment shaders we d be a lot better shape . OpenGL has a really nice property that each shader stage is named after the data it outputs with the exception of Geometry Shader but they were following Microsoft s lead . D3D names some shaders after their output some after their input others non-descriptively .", "Question : I have forked one OpenSourced project on GitHub and would like to add support for geometry shaders . This is my fragment code for OpenGL what I am using . Those two shaders Fragment and Vertex shaders are used for Per Pixel Lighting calculation maybe there are bugs .. . .. . Fragment Shader .. . .. . Vertex Shader .. . .. . Based on that two shaders can someone show me how to write correctly geometry shaders . I have tried something but I always get error from geometry-shader about gl FragColor .. . .. . I am absolute rookie here with geometry shaders and I never had worked with that in the past please keep that in mind . I would like that someone show me example of correct way with explanations how and what should be done . Thank you very much .. . Answer : gl FragColor is only available in fragment shader not geometry shaders . Comment : Thank you very much for your kind replay . I know that it is not supported but like I said I am rookie can you show me how it should geometry-shader be written Thanks Comment : Here s a tutorial I ve written about geometry shaders : ogldev.org www tutorial27 tutorial27.html http : www.ogldev.org www tutorial27 tutorial27.html I hope you find it useful .", "Question : I m trying to calculate per-face normals in geometry-shader using the following pipeline .. . .. . However I end up with very weird looking faces that keeps flickering I included a snapshot below . It occurred to me that it might be because I m using 8 vertices to represent 1 cell cube instead of 24 vertices But I m not quite sure if that is what is causing the problem . Left : Using Light Weighting NL Right : Without http : i.stack.imgur.com CRaZl.png Left : Using Light Weighting NL Right : Without .. . Answer : After every call to EmitVertex the contents of all output variables are made undefined https : www.opengl.org wiki Geometry Shader Outputs . Therefore if you want to output the same value to multiple vertices you must copy it to the output every time . Also note that each shader stage s outputs provide inputs only to the next stage . So if you have a GS and you want to pass a value from the VS to the FS you must have the GS explicitly pass that value through . Comment : Thanks for your timely reply would you please clarify more given my case for example Comment : Do you mean output variables from Vertex shader or the geometry-shader Comment : The geometry-shader . Vertex shaders can t call EmitVertex after all . And I m not sure how much more I can clarify without actually writing it for you . Comment : I tried setting the normal out variable before emitting each vertex The output is almost the same. . I know vertex shaders cant call EmitVertex but i have an output variable vert that will be used in the fragment shader will that also be undefined after each EmitVertex in the GS Comment : @MostafaWasat : I don t know how your shader is even compiling and linking properly then . Because the only input variables that your fragment shader receives are the ones produced by the last active vertex processing stage . In your case the geometry-shader . So if your GS does not output vert the FS won t get one . And that should have given you a linker-error .", "Question : null .. . Answer : I am trying to figure out how to switch outputs in the geometry-shader specifically these two outputs : .. . .. . I am doing a rendering of starclusters and have a dataset of 100 000+ stars using sprites generated in the geometry-shader . But the sprite halos are to only appear if we move closer to the target star . Geometry Shader .. . .. . Fragment Shader .. . .. . I have recently encountered streams for geometry-shader but cant find a decent example of how this can be done in my instance . Please let me know if more code needs to be posted . Comment : You can t switch what primitive type is emitted in a geometry-shader . ARB transform feedback3 allows you to set up multiple output streams when transform feedback but the output goes to a VBO and the only output mode is points . Comment : @ColonelThirtyTwo - So my only option is using a separate shader then There must be a more elegant solution than that though right Comment : Also is it possible to just have two different geometry shaders and switch those at runtime How Vertex Fragment shaders same always Comment : Yes you ll have to use two geometry shaders and either specify what geometry goes to which shaders via draw calls or just don t emit geometry in the shaders . I think ARB separate shader objects http : www.opengl.org registry specs ARB separate shader objects.txt will let you reuse shader objects in different programs but I haven t used it . Also remember that you can specify multiple-files to glShaderSource so you don t have to duplicate code between shaders .", "Question : I am passing a line to the geometry-shader and outputting a cuboid . I create 4 new points at each end of the line which was passed in by adding a constant thickness in the x or y direction . If I set the thickness in the geometry-shader it works fine but when I tried to pass it to shaders as a part of the vertex data I can t seem to access it in the geometry-shader . When I set thickness vThickness 0 in the geometry-shader then nothing is drawn . I can access the thickness data in the vertex-shader and it seems to be valid I set the output color to thickness and the cuboid was drawn white which is fine since it should be an integer 1 . The problem seems to be in the interface between vertex-shader and the geometry-shader . Vertex shader : .. . .. . Geometry shader : .. . .. . Fragment Shader : .. . .. . The data I am passing : Comment : I don t think this is related at all but you need to set the value of gColor after every EmitVertex .. . . Every out variable becomes undefined after EmitVertex is invoked you might get away with only setting it once on one GPU but on another it will behave completely different . Comment : Thanks I was not aware of that . .. . Answer : You are using the incorrect function to establish a vertex attribute pointer for thickness . Thickness has type int and you are using glVertexAttribPointer .. . . That function is designed to convert your vertex data to floating-point and is only suitable for float vec N and matrix data types . To correctly give your vertex attribute a data pointer you need to use glVertexAttribIPointer .. . . That will leave integer data alone and pass it directly to your shader it is appropriate for u int and i u vec N attributes . You will notice there is one less parameter in this function-call and that is because floating-point normalization is not an option for integer vertex attributes . Comment : Thanks you have really helped me . I would upvote your answer if I could : .", "Question : Im currently writing my own GLSL shaders and wanted to have smooth shading . The shading worked when i calculated the normals bevore sending them to a VBO but the problem here is when I implement animations with bone matricies the normals are not corect . I am using a geometry-shader to calculate the normals but i cant find out how to smooth them . Here is my geometry-shader : .. . .. . I need the faces next to the face that I calculate the normals for but i dont know how to get them . Comment : do you need to recalculate normals each frame Comment : Do the normals need to be unit length i.e . normalized Comment : Why are you performing skeletal posing in the geometry-shader Posing is normally done in the vertex-shader . Comment : @BrettHale I normalize them in the fragment shader . Comment : @datenwolf I have my bone matrices in my fragment shader . .. . Answer : The geometry-shader in OpenGL only has access to single triangles and not the whole mesh so the normal must be calculated from a single triangle . The usual solution to this problem is to calculate the normals once for each vertex and store them in vertex arrays for easy access . This turns out to be faster and simpler as you don t need to recalculate anything in shaders . Comment : There are adjacency primitive-types http : www.opengl.org wiki Primitive Adjacency Primitives that allow geometry shaders to access the vertices for adjacent lines triangles this information is pulled from the index stream so if you do not use glDrawElements .. . it will not work as expected . If you use one of these primitive-types and appropriate indices it is possible though as you point out the simpler solution for non-parametric geometry is to do this ahead of time . Comment : I know that i can access the neighbours with triangles adjacent but what i dont get is how i have to set up the elementbuffer and vertexbuffer when i use GL32.GL TRIANGLES ADJACENT as draw type in glDrawElements .", "Question : I m having some trouble passing data through my shaders notably the Geometry shader . I ve never used a Geometry Shader before so I m having a little trouble understanding the way it passes data . Basically before the Geometry shader I d pass data from the Vertex Shader to the Fragment simply using in out qualifiers . Like I d have : .. . .. . Vertex Shader Fragment Shader : .. . .. . So for the Geometry Shader would I have to do something like this to pass data My question is how do I pass data between each Shader properly Like is this the way to do it because it s not working for me .. . Answer : The unbounded arrays for the input are correct for a Geomtery Shader the size will be determined by input type in the layout qualifier but the output cannot be an array . You output vertices one at a time by writing values to all of the output variables and then calling EmitVertex .. . . Any output variable that is not written to between calls to EmitVertex .. . will be undefined . .. . .. . Here is a very simple example Geometry Shader that does what you want : Comment : and max vertices is how many vetrices are allowed to be output by the geometry-shader .", "Question : So I m just learning about geometry shaders and I have a use-case for one . For performance reasons I don t want to use the geometry-shader all the time even as a pass-through because most objects most of the time don t need it . However when I do want it the vertex and fragment shaders should do the same thing . Can I reuse my vertex and fragment shaders . IE . vertex : .. . .. . geometry : .. . .. . fragment : .. . .. . So without the geometry-shader this works as vertex out whatever corresponds to fragment in whatever . However with the geometry-shader I end up redifining whatever as both an in and an out . I read you can use : layout location 0 out whatever and then you don t need the same names but this doesn t work for me giving compilation error : ERROR : -1 : 65535 : : storage qualifier not valid with layout qualifier id . I think this is due to me not having a new enough opengl version to support that syntax . I also read you can use the extension : arb separate shader objects but failed to find any examples of it being used . Any suggestions Comment : I read you can use : layout location 0 out whatever Taht doesn t compile because you re using GLSL 3.30 . That functionality was added in GL 4.2 and is also a part of the ARB separate shader object specification . So you could use it with 3.30 but you would also need to explicitly request the use of that extension in your shader https : www.opengl.org wiki Core Language 28GLSL 29 Extensions . Comment : Thanks but your other answer seems like the better approach . .. . Answer : You can in fact do this . But you need interface blocks https : www.opengl.org wiki Interface Block 28GLSL 29 to do it . Indeed this is one of the primary problems input output interface blocks were created to solve : .. . .. . This is your vertex-shader using an interface block for its outputs . Vertex shader inputs cannot be aggregated into interface blocks . Notice that the vertex-shader calls the member of the interface block whatever . That will be important soon . In your fragment shader : .. . .. . The fragment shader now has a complementary input block declared . In order for this to work the block must use the same name as the corresponding output block from the previous stage . And it must declare all of the same variables as the corresponding output block in the same order . Note again that the fragment shader refers to the variable as whatever . This will be important presently . If you took these two shaders and linked them together either directly or indirectly with separate programs https : www.opengl.org wiki Shader Compilation Separate programs they would work fine . Now it s time to see what the Geometry Shader would have to look like to fit between them : .. . .. . OK a lot of stuff just happened . The first thing you ll note is that we seem to have declared the same interface block twice . No we have not input and output interface blocks are in different namespaces . So it s perfectly fine to declare an input interface block with the same block name as an output one . The input Data matches up with the output Data from the vertex-shader . The output Data matches up with the input Data for the fragment shader . So the interfaces match . Now you might notice that we declared these blocks differently . The input block has a tag vertex input while the output block has vertex output . This is not like a struct variable being declared after a struct declaration in C C++ . This name is what is known as the interface block s instance name https : www.opengl.org wiki Interface Block 28GLSL 29 Syntax . This is very important . Why Because it allows us to scope names of interface block members . Blocks declared without an instance name globally scope their members . This is why we could refer to whatever in the VS and FS with just that name . However since the GS needs to have two separate whatever variables we need some way to differentiate them . That s what the instance name is for . By giving the block an instance name we must prefix all references to that variable with that instance name . Note that the blocks across interfaces are matched by the block name . That is the input of the GS matches the output of the VS because they re both named Data . The instance name is only used within a shader to name-scope members . It does not affect interface matching . Lastly you ll notice that the GS s input variable is not an array . It is instead the instance name of the interface block which is arrayed . That s how interface blocks work in the GS and tessellation shaders that take arrayed inputs outputs . Given this definition you can slip this GS between the VS and FS without having to change any of them . So you don t have to modify the VS or FS code at all obviously besides the use of interface blocks . Comment : Perfect thanks . I had to add a to the in and out interface blocks in the vertex and fragment shaders although that was only a minor issue .", "Question : For instance if a glDraw call drawing GL TRIANGLES reads a set of VBOs that specify vertices A B C D E and F in that order then one would expect that in one invocation of the geometry-shader the following would be true : .. . .. . gl in 0 describes A .. . gl in 1 describes B .. . gl in 2 describes C .. . .. . And one would expect that in the other invocation the following would be true : .. . .. . gl in 0 describes D .. . gl in 1 describes E .. . gl in 2 describes F .. . .. . And so forth . But I don t see that being clearly guaranteed in any documentation I m finding . I suppose that if the vertices were arbitrarily reordered by OpenGL in a way that changed their CW CCW ordering then a lot of people s normal-finding code and other such things would probably be failing . But maybe something like this would be allowed for instance : .. . .. . gl in 0 describes B .. . gl in 1 describes C .. . gl in 2 describes A .. . .. . Can OpenGL do that reordering or is it guaranteed not to .. . Answer : I m using the OpenGL 4.5 core profile specification https : www.opengl.org registry doc glspec45.core.pdf here but what I say is basically true also for earlier versions . The exact wording and the locations of the statements might be different for earlier versions especially before 4.3 as the spec was totally reorganised in that version . From section 2.1 Execution Model my emphasis : .. . .. . Primitives are defined by a group of one or more vertices . A vertex defines a point an endpoint of a line segment or a corner of a polygon where two edges meet . Data such as positional coordinates colors normals texture coordinates etc . are associated with a vertex and each vertex is processed independently in order and in the same way . The only exception to this rule is if the group of vertices must be clipped so that the indicated primitive fits within a specified region in this case vertex data may be modified and new vertices created . The type of clipping .. . .. . This basically already guarantees that it can not re-order the vertices . However we can find more specific language for that . Let s concentrate on the example case of triangles for now . Section 10.1.8 Separate Triangles states .. . .. . Separate triangles are specified with mode TRIANGLES . In this case the 3i + 1st 3i + 2nd and 3i + 3rd vertices in that order determine a triangle for each i 0 1 .. . n - 1 where there are 3n + k vertices drawn . k is either 0 1 or 2 if k is not zero the final k vertices are ignored . For each triangle vertex A is vertex 3i and vertex B is vertex 3i + 1 . Otherwise separate triangles are the same as a triangle strip . So it is absoultely clear what order the vertices of a triangle are . So let s get to geomerty shaders in section 11.3 : .. . .. . After vertices are processed they are arranged into primitives as described in section 10.1 . The order defined above is completely relevant here . Now the part about triangles from section 11.3.1 Geometry Shader Input Primitives : .. . .. . Triangles triangles .. . .. . Geometry shaders that operate on triangles are valid for the TRIANGLES TRIANGLE STRIP and TRIANGLE FAN primitive-types . There are three vertices available for each program invocation . The first second and third vertices refer to attributes of the first second and third vertex of the triangle respectively . This together with the quote from section 10.1.8 makes it pefrectly clear that the exact order from the draw call is gauranteed to appear in each geometry-shader invocattion . However the order of different geometry-shader invocations is of course undefined as stated in section 7.12.1 Shader Memory Access Ordering : .. . .. . The relative order of invocations of the same shader type are undefined . A store issued by a shader when working on primitive B might complete prior to a store for primitive A even if primitive A is specified prior to primitive B . This applies even to fragment shaders while fragment shader outputs are always written to the framebuffer in primitive order stores executed by fragment shader invocations are not . But this is what s to be expected from a parallel architecture anyway so no surprises here .", "Question : I m stuck with geometry shaders in OpenGL - c++ programming . I want to create simple cube by repeating 6 times drawing one rotated wall . Here is my vertex-shader everyting has version 330 core in preamble : .. . .. . Now geometry-shader : .. . .. . And now fragment shader : .. . .. . Well there is some junk I wanted also put shading into my cube but I ve got a problem with sending coordinates . The main problem is - here I get my scaled square by MVP matrix I can even rotate it with basic interface ROT matrix but when I uncomment my +offset line I get some mess . What should I do to make clean 6-times repeating Comment : nothing personal but PLEASE INDENT YOUR CODE Comment : Lol even my friends say so . I have special script to DELETE all indents in my code i like it clean . Comment : For real This is everything but clean Comment : YOU JUST DON T UNDERSTAND MY WAYS : Comment : Really not sure if you re trolling now but probably yes . Try also removing all newlines it will be BEAUTIFUL . .. . Answer : It looks like the error is here in your geometry-shader . This adds an offset.. . but it adds the offset in clip space which is probably not what you want . Add the offset in your vertex-shader or do the perspective projection in your geometry-shader . Also I noticed something unusual in your vertex-shader . This is unusual because it is a linear transformation that directly follows a matrix-multiplication . It would probably be more straightforward to multiply your MVP matrix by the following matrix : .. . .. . This would achieve the same result with less shader code . Comment : I ll give you solved mark for now but I have to check this code . Thank you Comment : Ehm I guess it is only advice how to make my code more simple but I still wait for final soultion Comment : Also I found that resizing my vector can be done simply in vertex-shader by typing gl Position vec4 vertPos 1.5", "Question : null .. . Answer : When using layout points in in geometry-shader I can simply forward the data through the vertex-shader by suppling gl Position with a vec4 : .. . .. . And then I can access it with gl in 0 .gl Position in geometry-shader . But what if I wanted to instead take input into the geometry-shader using layout lines in Could this be done by forwarding values through vertex-shader or is there another way In short : How would one provide line data to the geometry-shader so that it can be accessed using gl in 0 .gl Position and gl in 1 .gl Position Comment : I m not sure you understand how the Geometry Shader works . It gets an input array of vertices from vertex-shader invocation s and can access up to n-many vertices at a time depending on the primitive type . For a line n would be 2 for line-adjacencey n would be 4 . The vertex-shader is evaluated at least once for each of those vertices before the GS runs . Comment : @AndonM.Coleman So the geometry-shader will invoke on every two vertex invocations Does that mean that my list of points is used as data for the lines Comment : Do you mean GL ELEMENT ARRAY BUFFER If so then yes . Those vertices in-order will be the input to your geometry-shader . Keep in mind there is a transform cache so if you share vertices in your lines like 0 1 2 1 2 0 the vertex-shader might only run 3 times later invocations of the GS will use the cached output for vertices 1 2 0 . Comment : @AndonM.Coleman Thank you This information was helpful", "Question : I am working on a project where and I am simplifying a little .. . .. . I need to calculate cross sections of 3-dimensional shapes and render them . For example I may have a list of tetrahedrons each tetrahedron consists of 4 vertices or a list of triangular prisms each triangular prism consists of 6 vertices or a list of n prisms each n prism consists of 2 n vertices etc . I want to calculate two-dimensional cross sections of them the two dimensional cross sections would be made up of triangles and render the cross sections . The simplest and most efficient way I have thought of for this is sending the 3D vertices to the vertex-shader then sending them to the geometry-shader and taking the cross sections there . However in order to do this the geometry-shader would need to take in primitives with 4 points or 6 points more than 3 points . This is a problem because to my knowledge the geometry-shader can only take in points lines and triangles and nothing with more points . I could solve this by storing the attributes of several 3D vertices in a single GLSL vertex but this would be very complicated and inelegant . Question : .. . .. . Is there a way for the geometry-shader to handle primitives of custom lengths similar to the patch primitives used in tessellation shaders I will still only be outputting triangles from the geometry-shader . Note : By the way I am kind of new to OpenGL so tell me if I got any of the terminology wrong . .. . .. . Edit : By cross section I mean any cross section along a plane that is not necessarily aligned with the bases of the prisms . There will therefor be a variable number of triangles resulting per cross section . For example a plane may intersect a tetrahedron at 0 3 or 4 points and the geometry-shader ideally would take in 4-point primitives and output either 0 1 or 2 triangles . Also my question has nothing to do with the actual cross section calculation . I am asking specifically whether there is a way to use a primitive with more than 3 points as an input to the geometry-shader . Finally this is the second question I have posted so I don t know whether I have formatted things properly . Sorry if I haven t Comment : What do you mean by cross section I think a diagram might help to understand what you mean . If your cross-sections are always across the prism then you re effectively just repeating the end geometry of the prism . .. . Answer : Is there a way for the geometry-shader to handle primitives of custom lengths similar to the patch primitives used in tessellation shaders If you want to work with a geometry-shader there are two straightforward ways to achieve this : .. . .. . 1 Use triangles adjacency as input primitive type instead of triangles which provides you with 6 vertices per geometry-shader invocation . Usually this is used to provide adjacency information at the three edges of the current triangle but you can provide whatever data you want via the element buffer . See here for a quick overview of geometry shaders . https : www.opengl.org wiki Geometry Shader .. . .. . 2 Use points or anything else for that matter as input primitive type and make use of the built-in variable gl PrimitiveIDIn . Create a shader-storage-buffer texture buffer or simply a texture to hold your geometry data and use this primitive ID to access the data for the current shape . If you have shapes with varying vertex count you can use an additional index-buffer that you access with the primitive id . Then you access the vertex-buffer at the offset you got from your index-buffer . The second solution is obviously the more flexible one . A third option is to not do this in the geometry-shader in the first place . You execute a compute shader say one invocation per shape you have bind writeable shader storage buffers for vertices and indices do your cross-section calculations in the shader as usual store the resulting geometry in the buffers and then draw the cross-section geometry as usual . This way you do not need to take the detour through the vertex-shader which transforms vertices you do not want to render .", "Question : I currently have some VAOs and an index list . The idea is to process groups of 4 elements in the geometry-shader . The way of picking the groups is if I have the list 1 2 3 4 5 6 7 8 .. . then the groups would be 1 2 3 4 5 6 7 8 .. . . After spending several hours of coding I realized that geometry shaders don t accept 4 vertex primitives . I would like to know if there is a way around it . Maybe choosing a provoking vertex and appending the other 3 to it as added properties in the vertex-shader stage I doubt that s possible though . Comment : You can combine your 4 vertices to one big vertex and pass them as points to the geometry-shader . Comment : I think that s easy when you don t have an index list . In that case I would just put the required values in the order that I want and set the VAOs to read bigger chunks . In the case of an indexed list which is necessary in this situation how would that be done .. . Answer : Geometry shaders do accept primitives with 4 vertices as input : GL LINES ADJACENCY . This primitive mode might be meant for lines where you need the two neighboring segments for each segments but it is not limited to any particular use-case - it just provides 4 vertices as input and can be used as such it could also be used to emulate the deprecated GL QUADS primitive mode with geometry shaders . Comment : Thank you I thought GL LINES ADJACENCY required some special properties of the rendered mesh . So after all it s just a simple 4 input vertex to the GS and the proper meaning of GL LINES ADJACENCY may be given in later stages of the pipline which is not my case since I m doing transform feedback . Comment : @Gonzalo : Actually there is no proper meaning later down the pipeline . The only thing that can give a geometry-shader s input primitive any meaning is the geometry-shader itself . The adjaceny meaning is only fulfilled if you actually supply the information of the neighboring vertices per input primitive . But the GL really won t care what exactly you put there and if some other primitive might share the data or not . If you really need adjacency this means that you have to redundantly specify such neighboring infos per input primitive . Comment : Oh right . I was thinking of lines arriving to the rasterizer but as you say geometry-shader can output something different from lines with adjacency . So the name GL LINES ADJACENCY is just a suggestion of how to use that primitive mode though not limited to adjacency purposes . Thank you Comment : @Gonzalo : The geometry-shader not only can output other primitives than lines with adjacency it also absolutely must do so . The rasterizer and further stages of the pipeline cannot handle adjacency primitives at all for obvious reasons . Adjacency primitves are only valid as input for the geometry shaders . It is also not possible to draw such primitives if no GS is in use . Comment : @Gonzalo : actually I might be wrong with my very last statement in the previous comment . It seems like one can draw adjacency primitives without a GS the adjacent vertices are just ignored .", "Question : I programming with C++ + SDL2 + GLEW + Opengl 4.1 a small voxel game a little bit like Minecraft . I am trying to optimize the voxel rendering where I can . I slide the world into chunks and this chunks into blocks . Each chunk contains 16x16x16 blocks . Now if a edit a chunk remove place a block I rebuild the complete chunk and the neighbor chunk and upload it with vao s and vbo s to the graphic card . Now to minimize the vertex data I have to transfer from the cpu to the gpu I use geometry shaders . First of all is that a good idea I mean every frame the geometry-shader has to calculate the primitive for each voxel face . However I programmed the vertex-shader so that I only have to pass one vertex for each block face . To make that possible I used a vec4 . The first 3 elements x y z I used for the block position and the 4 . Element w I used to indicate in which direction the face is showing . 0 means back 1 means front 2 means left 3 means right 4 means bottom 5 means top . Please ignore the UV and the normal for now . Further more I upload GLbyte s instead of GLfloat s . Is that a good idea What would be a better faster way Comment : Too bad you re not using 4.3 then you could run compute shaders to generate the chunks . Comment : Thanks I didn t knew the compute shader it seems to be another good approach . .. . Answer : You can test yourself but in general the geometry-shader will slow things down rather than speed things up . From what I understand AMD GPUs have a special case for geometry shaders which always output exactly 4 vertexes true in this case and the Intel GPUs can have fast geometry shaders relative to other GPUs but in general without the fixed output size optimization the different geometry shaders will have to be synchronized . So you may be hitting the fast cases here on some or many or most implementations but you would have to test . Consider that the vertex data might not be very large anyway : say 8 bytes per vertex or 32 bytes per face . You can even reuse the same index-buffer for all chunks e.g . 0 1 2 3 0xffff 4 5 6 7 0xffff . This transforms the problem into a very traditional time-vs-space tradeoff . You can either spend more time in the geometry-shader or spend more space storing the full vertex data . Is your program running into memory limits Or are you running into computation limits Test . Note that your geometry-shader could be written branchless . Instead of using if else you can just use an array to store the basis vectors for the output of faces in each direction .", "Question : I would like to attach a geometry-shader to my existing and working vertex and fragment shaders . The snippet responsible for building the program : .. . .. . And here is the geometry-shader : .. . .. . This shader should be just a pass-through shader just for testing for now . The problem is that the geometry-shader code has no effect on the final processing of the vertices . Even though I commented out important parts of the code it still works . Not to mention the missing semicolon . There are no errors logged even though I check them . So my questions are : .. . .. . How can I compile a geometry-shader on android Why are there no errors Can I just attach the geometry-shader to the program just like the vertex and fragment shader Comment : glGetShaderiv only takes 3 parameters . khronos.org opengles sdk docs man xhtml glGetShaderiv.xml https : www.khronos.org opengles sdk docs man xhtml glGetShaderiv.xml but you re calling it with 4 . Are you sure you re checking the error correctly Comment : @MuertoExcobito : I am sorry that I did not mention it but this is android java code not C++ . link developer.android.com reference android opengl http : developer.android.com reference android opengl GLES20.html glGetShaderiv int int int int .. . Answer : The code I posted is fine this is how you add a geometry-shader . My device does not support this extension that is the reason why it did not give any error logs . It turns out that android os version has nothing to do with the opengl versions and extensions 5.0 os and 3.0 opengl version .", "Question : I am using FragmentShader and VertexShader at present and works absolutely fine . I cannot get my geometry-shader working . I am absolutely new to it below is what I have tried . I am using VBO lighting and textures along with some geometry but it works fine before using GeometryShader . the only thing I have changed is the variable names as I had to get the input in the geometry-shader and give the output . So I have appended 1 at the end of those variable names those which will go out from geometry-shader to the fragment shader . Also I have added headers starting with which were earlier not there . I am using GL TRIANGLES to draw . VertexShader .. . .. . This is my FragemntShader .. . .. . This is my GeometryShader .. . .. . I just want that what ever was there earlier is passed from vertex-shader to fragment shader via geometry-shader so that I can manipulate the shader later . Currently the screen is just black .. . Answer : The core of your problem is that you didn t bother to check for compilation errors when you built your Geometry Shader . I know that because I see several syntax errors for it . In particular : .. . .. . Geometry Shader inputs https : www.opengl.org wiki Geometry Shader Inputs are always aggregated into arrays . Remember : a geometry-shader operates on primitives https : www.opengl.org wiki Primitive which are defined as a collection of one or more vertices . Each GS invocation therefore gets a set of per-vertex input values one for each vertex in the primitive type defined by your layout in qualifier https : www.opengl.org wiki Geometry Shader Primitive in.2Fout specification . Notice how you loop over the number of vertices in a primitive and use gl in i to get the input value for each vertex in the primitive . That s how you need to access all of your Geometry Shader inputs . And you need to write each one to its corresponding output variable then call EmitVertex . All in that loop . Comment : I have made some changes and it works but I have added pics there is a difference what I used to get and what I get now . Comment : @BhavyaArora : BTW You should read Stack Overflow policy on follow-up questions http : meta.stackoverflow.com questions 290746 follow-on-question-vs-edit-to-original-when-to-use-which . Comment : Thanks for letting me know I wasn t aware of this . I will follow up on the new one . I will be glad if you can help me in that . :", "Question : I know that in the vertex-shader you do it like this : .. . .. . What would be the equivalent for using instancedPosition in a geometry-shader Like when I wanna instance a model made of 1 vertex and for each instance to make a quad in the geometry-shader and set the quad s position to be that of the instancePosition of the corresponding instance in the instance buffer . .. . Answer : In order to pass the data in your geometry-shader you can simply pass in through from the VS to the GS so your VS output structure would be like : .. . .. . then in your vertex-shader pass trough the data directly in your geometry-shader untransformed .. . .. . After depending on your input primitive topology your geometry-shader will receive the data either as point line or full triangle since you mention you want to convert point to quad prototype would look like this", "Question : I m new to writing shaders and I m working on a practice geometry-shader . The goal of the shader is to make the normal pass produce transparent pixels such that the object is invisible while the geometry pass will take each triangle redraw in the same place as the original but colored black . Thus I expect the output to be the original object but black . However my geometry pass seems to not produce any output I can see : .. . .. . enter image description here http : i.stack.imgur.com fy8cb.png .. . .. . Here is the code I currently have for the shader . Since all I m doing is taking the same triangles I ve been given and appending them to the triangle stream I m not sure what I could be doing wrong to cause nothing to appear . Anyone know why this is happening .. . Answer : I notice that you don t call triStrem.RestartStrip after feeding in 3 vertices of a triangle in your geometry-shader . This informs the stream that a particular triangle strip has ended and a new triangle strip will begin . If you don t do this each single vertex passed to the stream will add-on to the existing triangle strip using the triangle strip pattern : https : en.wikipedia.org wiki Triangle strip .. . .. . I m fairly new to geo-shaders myself so I m not sure if this is your issue or not I don t THINK the RestartStrip function is called automatically at the end of each geomerty-shader but have not tested this . Rather I think it gets called automatically only when you you reach the maxvertexcount . For a single triangle I would set the maxvertexcount to 3 not the 12 you have now . I also know it can be tough to get ANY shader answers so figgured I d try to help . Comment : I actually really appreciate this . I m not sure this will fix it as I opted to move in a different direction to get the effect I wanted without a geometry-shader but that is a very important piece of information about triangles and I ll be sure to remember it in the future . Comment : didn t address that options but if your end-goal is I expect the output to be the original object but black . Why not just output float4 0 0 0 1 black from your fragment shader Comment : At the time I didn t realize that just by adding a second Pass to the shader could I generate another image . I thought I had to explicitly create a geometry-shader in order to create an additional image .", "Question : I am trying to build textured quads out of single vertices as POINT List inside the Geometry Shader . The problem i am unable to solve right now is that nothing gets rendered . I already tried to debug it with Visual Studios Graphics debugger and found out that the output of my geometry-shader is seemingly empty . This is my Geometry Shader : .. . .. . This is a screenshot of the Pipeline stages for the Draw call . As you can see there a 3 pixels present inside the vertex-shader but nothing after the geometry-shader . pipelinestage draw call http : i.stack.imgur.com 9EffF.png .. . .. . I already disabled all culling : .. . .. . And depth testing : .. . .. . While setting everything like this : .. . .. . What could be the problem here I assume that there is no Pixel Shader present because the Geometry Shader isn t outputting anything is that right Thank you .. . Answer : I fixed it on my own . I forgot to multiply the vertex positions out of the geometry-shader with my view projections matrix", "Question : I am using gl Layer gl InvocationID in a geometry-shader to render into a framebuffer with a 3D texture attached . This mostly works fine . Except every invocation of the shader also renders into layer 0 as well as the layer that I specify . How can I avoid this Is there something vital I m missing with setting up the framebuffer Perhaps with glFramebufferTexture Geometry Shader .. . .. . Fragment Shader Comment : Can you include the geometry-shader in question I m inclined to believe that it is to blame for this rather than your FBO setup or fragment shader though if you could include the fs as well that d help . Comment : Sure @Andon . I ve added them to the question . .. . Answer : EmitVertex invalidates all per-vertex outputs after it returns . The most obvious per-vertex outputs in this shader are : .. . .. . 1 . raster color .. . 2 . gl Position .. . .. . But you may not have realized that gl Layer is also per-vertex or which vertex this needs to be set for . .. . .. . gl Layer will be undefined for every vertex after the first in this shader . Some drivers will leave it untouched and simply work others will do anything they want with it and you cannot make any assumptions about gl Layer after EmitVertex .. . . You are playing with fire because it may not be the first vertex that defines a primitive s layer more on this later . .. . .. . To fix this re-write your geometry-shader this way : .. . .. . I would like to take this opportunity to point out that only 1 vertex in a primitive needs to have gl Layer set this vertex is called the Layer Provoking Vertex . Your shader assumes that the first vertex is the layer provoking vertex but this is implementation-specific . When in doubt the best solution is to cover all bases set gl Layer for all vertices . You need to check GL LAYER PROVOKING VERTEX at run-time to figure out which vertex defines your layer . If you do not want to do that you can write your shader the way I described above . Provoking vertex conventions are usually first or last but the way Geometry Shaders works leaves the possibility that any arbitrary vertex could define the layer GL UNDEFINED VERTEX and this is the case you should assume . Comment : See here https : www.opengl.org wiki Geometry Shader Which vertex for more details on this situation . It applies to viewport provoking vertices as well . Comment : I tried your code modifications to no avail I m afraid . But then I kept searching elsewhere and found the source was something far more mundane . A syntax-error in my texture parameters meant it wasn t clamping properly and the top layer was wrapping back around to the bottom when sampled . I understand per-vertex outputs far better now for future reference though . So thank you . Comment : @Andy : Ah gotcha . As I was writing this I had my doubts that it would fully explain your problem but it needed to be addressed . Understanding this may save you a lot of frustration down the line If you ve figured out a solution the best course of action would be to answer your own question . Even if it was something simple add the code that was problematic and an explanation of your fix and mark it accepted . This is how Stack Overflow is supposed to work . A huge searchable Q A database with verified solutions to problems ." ] }
[ "yes-answer-long", "yes-answer-short" ]
vertex-shader
UNK_RELATION
folly@dependencies@111
folly -- folly facebook open-source library is a c++ library of relatively low-level components with very few @placeholder developed by facebook .
{ "confidence": [ 60.10863494873047, 52.10855484008789, 50.52773666381836, 46.391544342041016, 42.14073181152344, 38.52256774902344, 36.501895904541016, 32.98912048339844, 31.40652084350586, 31.40652084350586, 30.041732788085938, 29.55006217956543, 28.67096710205078, 28.181659698486328, 26.32244873046875, 25.607044219970703, 25.607044219970703, 25.574657440185547, 23.619895935058594, 22.28055191040039, 21.932147979736328, 18.34093475341797, 16.762939453125, 15.670797348022461, 15.542518615722656, 15.29284954071045, 15.022016525268555, 14.851079940795898, 14.851079940795898, 14.314471244812012, 13.710251808166504, 13.435747146606445, 13.253922462463379, 13.07028865814209, 13.07028865814209, 13.07028865814209, 13.07028865814209, 13.07028865814209, 11.749836921691895, 11.749836921691895, 11.749836921691895, 11.749836921691895, 11.749836921691895, 11.749836921691895, 11.749836921691895, 11.749836921691895, 11.749836921691895, 11.749836921691895, 11.749836921691895, 11.749836921691895, 11.749836921691895, 11.749836921691895, 11.749836921691895, 11.749836921691895, 11.749836921691895, 11.749836921691895, 11.749836921691895, 11.749836921691895, 11.749836921691895, 10.16723918914795, 10.16723918914795, 10.16723918914795, 10.16723918914795, 10.16723918914795, 10.16723918914795, 10.16723918914795, 10.16723918914795, 10.16723918914795, 10.16723918914795, 10.16723918914795, 10.16723918914795, 10.16723918914795, 10.16723918914795, 10.16723918914795, 10.16723918914795, 10.16723918914795, 10.16723918914795, 10.16723918914795, 10.16723918914795, 10.16723918914795, 10.16723918914795, 10.16723918914795, 10.16723918914795, 10.16723918914795, 10.16723918914795, 10.16723918914795, 10.16723918914795, 10.16723918914795, 10.16723918914795, 10.16723918914795, 10.16723918914795, 10.16723918914795, 10.16723918914795, 10.16723918914795, 10.16723918914795, 10.16723918914795, 10.16723918914795, 10.16723918914795, 10.16723918914795 ], "content": [ "Nor does the folly Readme.md https : github.com facebook folly - nor do the folly sources for that matter .", "It has special optimizations for use with relocatable types and jemalloc https : github.com facebook folly blob master folly FBVector.h L21 .", "We can optimizing it and Facebook done this in folly-library FBVector is Facebook s drop-in implementation of std : : vector .", "The json library which i am using is part of Facebook s folly library .", "I think you are not supposed to use folly : : ScopeGuard g folly : : makeGuard close sock .", "I m trying build Facebook folly in Visual Studio 2015 RC loosely following the directions provided here : https : github.com jbandela folly tree vc11 .. . .. . I m hopeful that with 2015 s expanded C++11 support I may have an easier time than what was possible before .", "The program compiles links and works as I d expect when I compiles with clang on my mac with .. . .. . However if I try to link against Facebook s Folly https : github.com facebook folly like this : .. . .. . the program still compiles and links successfully .", "I am using folly scope guard it is working but it generates a warning saying that the variable is unused : .. . .. . The code : .. . .. . How to avoid such warning", "I believe folly is supposed to be operation-system agnostic your approach is Windows Linux-specific .", "What do I need to do in order to use SDL2 and folly together on Mac 10.11.5", "I noticed Andrei Alexandrescu has presented two versions of his ScopeGuard mechanism - one before C++11 one after and that the first version is part of the Loki library while the second is part of the folly library of Facebook s - which is where Alexandrescu has been employed until very recently http : forum.dlang.org thread xsqrdgwnzehdmfmvcznn@forum.dlang.org thank you @JerryCoffin for pointing that bit of news out .", "static bool deserializeHelper std : : string fieldName vector int structField const folly : : dynamic jsonObj ... .", "An occasional SDL2 contributor here : .. . .. . I m not seeing a crash when I run this despite linking with Folly and when using OSX 10.11.5 .", "lldb shows the following : .. . .. . My vague understanding is that SDL2 is dynamically linked and after reading this answer http : stackoverflow.com questions 34534136 why-does-linking-against-both-sdl2-and-udev-cause-a-segmentation-fault I assume that when I link against folly I m using a different implementation of some library than when I don t link against folly .", "when vector does not have enough memory to push-back new element then we allocate more memory but not in 2 times more in a different number of times : 1.3 - 1.5 times .. . .. . Description : https : github.com facebook folly blob master folly docs FBVector.md .. . .. . The graphical solver below reveals that choosing k 1.5 blue line allows memory reuse after 4 reallocations choosing k 1.45 red line allows memory reuse after 3 reallocations and choosing k 1.3 black line allows reuse after only 2 reallocations .", ".. . .. . The advantages of folly : : vector approach over the std : : vector : sometimes we do not need to allocate new memory but copying the old data into the new memory should always .", "I m also not sure if it s relevant but I was able to compile the code above and link against folly on my Ubuntu desktop and the resulting binary can be run without any problems .", "I then did homebrew install folly homebrew install sdl2 copied the c++ code from the stack-overflow post g++ -g -std c++0x -Wall main.cpp -o prog -framework opengl -lSDL2 -lfolly . prog and I still saw the same crash I d been seeing on OS X 10.11.5", "GCC library does allocate twice as much but Visual C++ does not .", "Here s the environment I set up along with the deps.sh command to install dependencies : .. . .. . That got me most of the way through building its folly dependency but I am getting an incomplete-type error : .. . .. . Has anyone tried or solved this", "enter image description here http : i.stack.imgur.com EWuzD.jpg .. . .. . But why do we need to use folly : : fbvector instead of std : : vector with our custom allocator which using VirtualAllocEx https : msdn.microsoft.com en-us library windows desktop aa366887 v vs.85 .aspx as shown here : For what do I need to use VirtualAlloc VirtualAllocEx", "Here s the top of the compile output with the first error : .. . .. . Here s the source it brings me to for the location of that error again in xstring in the std namespace : .. . .. . Another example of an error I m getting : .. . .. . The source : .. . .. . I m confused by how these and the other 219 errors can arise concerning the std library itself .", "See msdn https : msdn.microsoft.com en-us library windows desktop aa383745 28v vs.85 29.aspx setting winver or win32 winnt for details .", "An additional check would be to add std : : at the beginning of your library call just to make sure - that way you can easily test weather it s the dll or your spelling .", "http : stackoverflow.com questions 17513363 for-what-do-i-need-to-use-virtualalloc-virtualallocex or the same in linux http : stackoverflow.com a 2782910 1558037 where : .. . .. . std : : vector : : reserve - initially reserve large un-commited area of virtual address allocate WMA but doesn t allocate any PTE in PT for example allocate initially 16 GB of virtual area and each time the lack of memory to commit memory allocate PTEs - allocate physical area equal 1 x SIZE of vector .. . std : : vector : : resize - and then only commit a new batch of pages allocate only new PTE in PT without re-allocation of memory which already is used and without copying data from old memory to new .. . .. . Overall : .. . .. . The advantages of this approach with large un-commited area over the folly : : vector : always we allocate only new part of memory and never copying old data .", "It should be noted that C++17 seems to be getting a maybe unused attribute that would provide a standard-guaranteed way of declaring that a variable will be unusued .", "But why they did not add addition to K-optimization also very effective optimization for Win Linux very common operating systems - I do not understand .", "However when I run the program it crashes every time after a few seconds .", "A few observations : .. . .. . 1 . the brew install SDL2 command didn t install an SDL2 framework .", "Are you using an actual version of g++ and if so what version and from what source", "I would like to build Facebook s Proxygen c++ http libraries out of github with Ubuntu 16.04 .", "I followed this tutorial http : headerphile.com sdl2 opengl-part-1-sdl-opengl-awesome and set up a very simple opengl progam using SDL2 .", "Can you try creating a brand new Visual C++ Win32 project with precompiled-headers while making sure that stdafx.h or pch.h eventually imports xstring.h", "But the Loki website http : loki-lib.sourceforge.net index.php n Main.HomePage doesn t say anything about this connection nor does the Loki Wikipedia page https : en.wikipedia.org wiki Loki 28C 2B 2B 29 .", "So are the libraries related beyond what I described above", "Some of your information is obsolete http : forum.dlang.org thread xsqrdgwnzehdmfmvcznn@forum.dlang.org .", "LD LIBRARY PATH is set to usr local lib .. . .. . When I compile using .. . .. . I get this error message :", "Issue got resolved by adding -lfolly .", "You are supposed to use SCOPE EXIT close sock .", "See if that makes the warning go away .", "If it doesn t there is probably a way to hack a use into the definition .", "What compiler version", "If g s destructor actually does something then the compiler should not be warning about this it could be considered a bug and may have been fixed in later versions .", "@M.M : It is not unreasonable for compilers to warn about such variables even if they have destructors that do things .", "If you just declare a std : : string and accidentally forget to use it the compiler still ought to warn about it since you almost certainly meant to do something with it .", "@NicolBolas fair point", "You can disable this warnings by -Wno-unused-variable though this is a bit dangerous you loose all realy unused variables .", "One possible solution is to actually use the variable but do nothing with it .", "For example case it to void : .. . .. . which can be made into a macro : .. . .. . Alternatively you can use the boost aproach http : www.boost.org doc libs 1 57 0 libs core doc html core ignore unused.html : declare a templated function that does nothing and use it", "You can just label the variable as being unused : .. . .. . Or cast it to void : .. . .. . Neither is great imo but at least this lets you keep the warnings .", "The following program : .. . .. . gives this output : .. . .. . This is because lexical cast doesn t realise that fbstring is a string -like type and simply does it s usual stream in stream out for the conversion .", "But operator for strings stops at the first whitespace lexical cast detects that the whole input was not consumed and throws an exception .", "Is there any way to teach lexical cast about fbstring or more generally any string -like type", "From looking at the lexical cast documentation it appears that std : : string is explicitly the only string-like exception allowed to normal lexical-cast semantics to keep the meaning of the cast as straightforward as possible and catch as many possible conversion errors as can be caught .", "The documentation also says that for other cases to use alternatives such as std : : stringstream .", "In your case I think a to fbstring method would be perfect :", "Yep looks like you re right .", "The logic is buried in boost lexical cast detail converter lexical streams.hpp with no easy way to customize it .", "I ended up writing own lexical cast wrapper that delegates to boost : : lexical cast with a specialization for fbstring .", "I ve been working through issues at a decent clip but I m currently getting a set of compile errors that don t make sense to me .", "I usually build from Linux g++ so I m not familiar with the Visual Studio build environment .", "I may be doing something simple wrong .", "What can be the cause of errors like this", ".. . .. . Update 1 .. . .. . Adding more information .", "I reproduced this without boost so the Unknown compiler version warning goes away .", "I also got more output from the compilation : .. . .. . .. . .. . Update 2 .. . .. . These errors occur with and without the precompiled header option enabled .", "In the build output I noticed the error message Unknown compiler version.. . .", "Can you check your header-files what condition triggers this message", "Thanks for the comment .", "That message about the compiler version came from boost .", "I read online that this is innocuous but I reworked things in the project so it s not currently compiling with boost to get that message out of the picture .", "See my update below the horizontal line .", "Now that note goes away but I m still getting the error .", "What Windows version are you targeting", "Can you try adding D WIN32 WINNT 0x0601 to your command-line to target Windows 7", "At this point I m just trying to get it to compile .", "Any target would be fine .", "I added D WIN32 WINNT 0x0601 and I m still getting the same error .", "Let s see if that builds correctly... .", "This message : .. . .. . Unknown compiler version - please run the configure tests and report the results .. . .. . is emitted by one of the boost header-files .", "Boost requires a specific version of VC++ which is in this this case 11.0 which corresponds to VS 2012 .", "This is probably the reason why your are getting all of these errors .", "You have to download Visual Studio 2012 and then follow the instructions from the link you mentioned .", "As mentioned in the post see Update 1 I got these std errors even after removing boost from the picture .", "@firebush I know that .", "Still VS 2012 is required to successfully compile the code .", "Have you made sure the header dll s are the most recent they are often updated .", "I have experience this when running on multiple systems with the same build .", "Also please check if you are receiving v120 or v140 toolset error this indicates if you are incorrectly using a version of VS . .. . .. . Another method is to include the VC lib files as a local header ensuring at least the compiler connection .", "I hope that helps", "As known if we push-back elements to the std : : vector and if the whole memory allocated in the vector is occupied then std : : vector reserves 2X of current size of memory allocate new memory with 2X size resize vector and copy old data to the new memory .", "I.e .", "This is implementation-specific .", "I believe it uses 1.5 as well not sure though .", "Object moving from old vector to the new one should be not that terrible if you choose your types carefully - that is use std : : unique-ptr as a data type .", "VC may be using then golden ratio 1.61.. . which is the theoretical right ratio as the size grows large .", "See stackoverflow.com a 20481237 2587908 http : stackoverflow.com a 20481237 2587908 .", "No MSVC uses 1.5 .", "It has ever since Microsoft licensed the Dinkumware implementation ." ] }
{ "confidence": [ 68.26687622070312, 60.741241455078125, 56.284263610839844, 43.18208694458008, 42.82714080810547, 41.898826599121094, 40.141761779785156, 39.87657165527344, 37.69247055053711, 12.97544002532959, 11.642845153808594 ], "content": [ "Question : null .. . Answer : I noticed Andrei Alexandrescu has presented two versions of his ScopeGuard mechanism - one before C++11 one after and that the first version is part of the Loki library while the second is part of the folly library of Facebook s - which is where Alexandrescu has been employed until very recently http : forum.dlang.org thread xsqrdgwnzehdmfmvcznn@forum.dlang.org thank you @JerryCoffin for pointing that bit of news out . But the Loki website http : loki-lib.sourceforge.net index.php n Main.HomePage doesn t say anything about this connection nor does the Loki Wikipedia page https : en.wikipedia.org wiki Loki 28C 2B 2B 29 . Nor does the folly Readme.md https : github.com facebook folly - nor do the folly sources for that matter . So are the libraries related beyond what I described above Comment : Some of your information is obsolete http : forum.dlang.org thread xsqrdgwnzehdmfmvcznn@forum.dlang.org .", "Question : As known if we push-back elements to the std : : vector and if the whole memory allocated in the vector is occupied then std : : vector reserves 2X of current size of memory allocate new memory with 2X size resize vector and copy old data to the new memory . We can optimizing it and Facebook done this in folly-library FBVector is Facebook s drop-in implementation of std : : vector . It has special optimizations for use with relocatable types and jemalloc https : github.com facebook folly blob master folly FBVector.h L21 . I.e . when vector does not have enough memory to push-back new element then we allocate more memory but not in 2 times more in a different number of times : 1.3 - 1.5 times .. . .. . Description : https : github.com facebook folly blob master folly docs FBVector.md .. . .. . The graphical solver below reveals that choosing k 1.5 blue line allows memory reuse after 4 reallocations choosing k 1.45 red line allows memory reuse after 3 reallocations and choosing k 1.3 black line allows reuse after only 2 reallocations . enter image description here http : i.stack.imgur.com EWuzD.jpg .. . .. . But why do we need to use folly : : fbvector instead of std : : vector with our custom allocator which using VirtualAllocEx https : msdn.microsoft.com en-us library windows desktop aa366887 v vs.85 .aspx as shown here : For what do I need to use VirtualAlloc VirtualAllocEx http : stackoverflow.com questions 17513363 for-what-do-i-need-to-use-virtualalloc-virtualallocex or the same in linux http : stackoverflow.com a 2782910 1558037 where : .. . .. . std : : vector : : reserve - initially reserve large un-commited area of virtual address allocate WMA but doesn t allocate any PTE in PT for example allocate initially 16 GB of virtual area and each time the lack of memory to commit memory allocate PTEs - allocate physical area equal 1 x SIZE of vector .. . std : : vector : : resize - and then only commit a new batch of pages allocate only new PTE in PT without re-allocation of memory which already is used and without copying data from old memory to new .. . .. . Overall : .. . .. . The advantages of this approach with large un-commited area over the folly : : vector : always we allocate only new part of memory and never copying old data . .. . .. . The advantages of folly : : vector approach over the std : : vector : sometimes we do not need to allocate new memory but copying the old data into the new memory should always . .. . Answer : This is implementation-specific . GCC library does allocate twice as much but Visual C++ does not . I believe it uses 1.5 as well not sure though . I believe folly is supposed to be operation-system agnostic your approach is Windows Linux-specific . Object moving from old vector to the new one should be not that terrible if you choose your types carefully - that is use std : : unique-ptr as a data type . Comment : VC may be using then golden ratio 1.61.. . which is the theoretical right ratio as the size grows large . See stackoverflow.com a 20481237 2587908 http : stackoverflow.com a 20481237 2587908 . Comment : No MSVC uses 1.5 . It has ever since Microsoft licensed the Dinkumware implementation . @sfjac Comment : @SergeyA Thank you Yes most likely it is done for cross-platform and cross-hardware using . But why they did not add addition to K-optimization also very effective optimization for Win Linux very common operating systems - I do not understand . Smart pointers makes sense to use only for large objects but can not be a large number of large objects memory is limited - and problems with re-allocation of memory for vector array of pointers to large objects never happend .", "Question : I followed this tutorial http : headerphile.com sdl2 opengl-part-1-sdl-opengl-awesome and set up a very simple opengl progam using SDL2 . I removed parts of it for purposes of this question . The program opens a window sets the background-color to be red and loops until the escape key is pressed . The program compiles links and works as I d expect when I compiles with clang on my mac with .. . .. . However if I try to link against Facebook s Folly https : github.com facebook folly like this : .. . .. . the program still compiles and links successfully . However when I run the program it crashes every time after a few seconds . lldb shows the following : .. . .. . My vague understanding is that SDL2 is dynamically linked and after reading this answer http : stackoverflow.com questions 34534136 why-does-linking-against-both-sdl2-and-udev-cause-a-segmentation-fault I assume that when I link against folly I m using a different implementation of some library than when I don t link against folly . I m also not sure if it s relevant but I was able to compile the code above and link against folly on my Ubuntu desktop and the resulting binary can be run without any problems . What do I need to do in order to use SDL2 and folly together on Mac 10.11.5 Comment : I just deleted my hard drive and re-installed the os by holding command r while rebooting . The first and only things I did were to install the xcode command-line tools with xcode-select --install then installed homebrew with ruby -e curl -fsSL raw.githubusercontent.com Homebrew install master install quot https : raw.githubusercontent.com Homebrew install master install quot . I then did homebrew install folly homebrew install sdl2 copied the c++ code from the stack-overflow post g++ -g -std c++0x -Wall main.cpp -o prog -framework opengl -lSDL2 -lfolly . prog and I still saw the same crash I d been seeing on OS X 10.11.5 .. . Answer : An occasional SDL2 contributor here : .. . .. . I m not seeing a crash when I run this despite linking with Folly and when using OSX 10.11.5 . A few observations : .. . .. . 1 . the brew install SDL2 command didn t install an SDL2 framework . It look install a static lib libSDL2.a and a dynamic lib libSDL2.dylib into usr local but no .framework . Might you be using an SDL2.framework from a different non-brew install 2 . I had to add-in a -I usr local include and -L usr local lib to the g++ call in order to build . Might headers and or libraries be getting retrieved from elsewhere such as a separate SDL2 framework 3 . The copy of g++ I had on my system was in reality clang which was provided by Xcode v7.3.1 and which I presume Apple had just linked to usr bin g++ . Are you using an actual version of g++ and if so what version and from what source None of these are to say that they re causing the error I m mainly looking to see what s different about my dev environment and yours . : - Comment : Apologies for the multiple re-edits and putting these questions outside a comment . StackOverflow s formatting rules + quirks especially for comments which seems different than with answer-formatting is a bit foreign to me.. . : - Comment : Further discussion is ongoing at forums.libsdl.org viewtopic.php t 11932 http : forums.libsdl.org viewtopic.php t 11932", "Question : I am using folly scope guard it is working but it generates a warning saying that the variable is unused : .. . .. . The code : .. . .. . How to avoid such warning Comment : I think you are not supposed to use folly : : ScopeGuard g folly : : makeGuard close sock . You are supposed to use SCOPE EXIT close sock . See if that makes the warning go away . If it doesn t there is probably a way to hack a use into the definition . Comment : What compiler version If g s destructor actually does something then the compiler should not be warning about this it could be considered a bug and may have been fixed in later versions . Comment : It should be noted that C++17 seems to be getting a maybe unused attribute that would provide a standard-guaranteed way of declaring that a variable will be unusued . Comment : @M.M : It is not unreasonable for compilers to warn about such variables even if they have destructors that do things . If you just declare a std : : string and accidentally forget to use it the compiler still ought to warn about it since you almost certainly meant to do something with it . Comment : @NicolBolas fair point .. . Answer : You can just label the variable as being unused : .. . .. . Or cast it to void : .. . .. . Neither is great imo but at least this lets you keep the warnings .", "Question : I m trying build Facebook folly in Visual Studio 2015 RC loosely following the directions provided here : https : github.com jbandela folly tree vc11 .. . .. . I m hopeful that with 2015 s expanded C++11 support I may have an easier time than what was possible before . I ve been working through issues at a decent clip but I m currently getting a set of compile errors that don t make sense to me . Here s the top of the compile output with the first error : .. . .. . Here s the source it brings me to for the location of that error again in xstring in the std namespace : .. . .. . Another example of an error I m getting : .. . .. . The source : .. . .. . I m confused by how these and the other 219 errors can arise concerning the std library itself . I usually build from Linux g++ so I m not familiar with the Visual Studio build environment . I may be doing something simple wrong . What can be the cause of errors like this .. . .. . Update 1 .. . .. . Adding more information . I reproduced this without boost so the Unknown compiler version warning goes away . I also got more output from the compilation : .. . .. . .. . .. . Update 2 .. . .. . These errors occur with and without the precompiled header option enabled . Comment : In the build output I noticed the error message Unknown compiler version.. . . Can you check your header-files what condition triggers this message Comment : Thanks for the comment . That message about the compiler version came from boost . I read online that this is innocuous but I reworked things in the project so it s not currently compiling with boost to get that message out of the picture . See my update below the horizontal line . Now that note goes away but I m still getting the error . Comment : What Windows version are you targeting Can you try adding D WIN32 WINNT 0x0601 to your command-line to target Windows 7 See msdn https : msdn.microsoft.com en-us library windows desktop aa383745 28v vs.85 29.aspx setting winver or win32 winnt for details . Comment : At this point I m just trying to get it to compile . Any target would be fine . I added D WIN32 WINNT 0x0601 and I m still getting the same error . Comment : Can you try creating a brand new Visual C++ Win32 project with precompiled-headers while making sure that stdafx.h or pch.h eventually imports xstring.h Let s see if that builds correctly... . .. . Answer : Have you made sure the header dll s are the most recent they are often updated . I have experience this when running on multiple systems with the same build . An additional check would be to add std : : at the beginning of your library call just to make sure - that way you can easily test weather it s the dll or your spelling . Also please check if you are receiving v120 or v140 toolset error this indicates if you are incorrectly using a version of VS . .. . .. . Another method is to include the VC lib files as a local header ensuring at least the compiler connection . I hope that helps", "Question : I m trying build Facebook folly in Visual Studio 2015 RC loosely following the directions provided here : https : github.com jbandela folly tree vc11 .. . .. . I m hopeful that with 2015 s expanded C++11 support I may have an easier time than what was possible before . I ve been working through issues at a decent clip but I m currently getting a set of compile errors that don t make sense to me . Here s the top of the compile output with the first error : .. . .. . Here s the source it brings me to for the location of that error again in xstring in the std namespace : .. . .. . Another example of an error I m getting : .. . .. . The source : .. . .. . I m confused by how these and the other 219 errors can arise concerning the std library itself . I usually build from Linux g++ so I m not familiar with the Visual Studio build environment . I may be doing something simple wrong . What can be the cause of errors like this .. . .. . Update 1 .. . .. . Adding more information . I reproduced this without boost so the Unknown compiler version warning goes away . I also got more output from the compilation : .. . .. . .. . .. . Update 2 .. . .. . These errors occur with and without the precompiled header option enabled . Comment : In the build output I noticed the error message Unknown compiler version.. . . Can you check your header-files what condition triggers this message Comment : Thanks for the comment . That message about the compiler version came from boost . I read online that this is innocuous but I reworked things in the project so it s not currently compiling with boost to get that message out of the picture . See my update below the horizontal line . Now that note goes away but I m still getting the error . Comment : What Windows version are you targeting Can you try adding D WIN32 WINNT 0x0601 to your command-line to target Windows 7 See msdn https : msdn.microsoft.com en-us library windows desktop aa383745 28v vs.85 29.aspx setting winver or win32 winnt for details . Comment : At this point I m just trying to get it to compile . Any target would be fine . I added D WIN32 WINNT 0x0601 and I m still getting the same error . Comment : Can you try creating a brand new Visual C++ Win32 project with precompiled-headers while making sure that stdafx.h or pch.h eventually imports xstring.h Let s see if that builds correctly... . .. . Answer : This message : .. . .. . Unknown compiler version - please run the configure tests and report the results .. . .. . is emitted by one of the boost header-files . Boost requires a specific version of VC++ which is in this this case 11.0 which corresponds to VS 2012 . This is probably the reason why your are getting all of these errors . You have to download Visual Studio 2012 and then follow the instructions from the link you mentioned . Comment : As mentioned in the post see Update 1 I got these std errors even after removing boost from the picture . Comment : @firebush I know that . Still VS 2012 is required to successfully compile the code .", "Question : I want to write a function which deserialise a json representation of array into a std : : vector . The json library which i am using is part of Facebook s folly library . I would like to achieve somethings like the following but unfortunately it s not working : .. . .. . In the above code jsonField is a representation of array field . So the code just try to loop through the array then for each element it will try to push-back to generic vector : vector . The problem is that the code cannot be compiled because it will complain that it cannot cast from std : : string to int when T int .. . .. . I am not sure how to write a generic function like that without the need of implement 4 method-overloading functions . static bool deserializeHelper std : : string fieldName vector int structField const folly : : dynamic jsonObj ... . Thanks . Comment : Maybe using boost library s boost : : variant type instead of a std : : vector can help : boost.org doc libs 1 59 0 doc html variant.html http : www.boost.org doc libs 1 59 0 doc html variant.html .. . Answer : Seems that code like in the following works . I am just wondering is there any bottleneck overhead or the following works just fine : .. . .. . Basically it will try to cast to void first before doing another casting from void to T . I am wondering if anything could be improved . Thanks .", "Question : I am using folly scope guard it is working but it generates a warning saying that the variable is unused : .. . .. . The code : .. . .. . How to avoid such warning Comment : I think you are not supposed to use folly : : ScopeGuard g folly : : makeGuard close sock . You are supposed to use SCOPE EXIT close sock . See if that makes the warning go away . If it doesn t there is probably a way to hack a use into the definition . Comment : What compiler version If g s destructor actually does something then the compiler should not be warning about this it could be considered a bug and may have been fixed in later versions . Comment : It should be noted that C++17 seems to be getting a maybe unused attribute that would provide a standard-guaranteed way of declaring that a variable will be unusued . Comment : @M.M : It is not unreasonable for compilers to warn about such variables even if they have destructors that do things . If you just declare a std : : string and accidentally forget to use it the compiler still ought to warn about it since you almost certainly meant to do something with it . Comment : @NicolBolas fair point .. . Answer : You can disable this warnings by -Wno-unused-variable though this is a bit dangerous you loose all realy unused variables . One possible solution is to actually use the variable but do nothing with it . For example case it to void : .. . .. . which can be made into a macro : .. . .. . Alternatively you can use the boost aproach http : www.boost.org doc libs 1 57 0 libs core doc html core ignore unused.html : declare a templated function that does nothing and use it", "Question : null .. . Answer : I would like to build Facebook s Proxygen c++ http libraries out of github with Ubuntu 16.04 . Here s the environment I set up along with the deps.sh command to install dependencies : .. . .. . That got me most of the way through building its folly dependency but I am getting an incomplete-type error : .. . .. . Has anyone tried or solved this I m not familiar with the code base yet . Tia . Comment : FYI the boost version pulled in by Ubuntu 16.04 is 1.58.0 .", "Question : LD LIBRARY PATH is set to usr local lib .. . .. . When I compile using .. . .. . I get this error message : .. . Answer : Issue got resolved by adding -lfolly .", "Question : The following program : .. . .. . gives this output : .. . .. . This is because lexical cast doesn t realise that fbstring is a string -like type and simply does it s usual stream in stream out for the conversion . But operator for strings stops at the first whitespace lexical cast detects that the whole input was not consumed and throws an exception . Is there any way to teach lexical cast about fbstring or more generally any string -like type .. . Answer : From looking at the lexical cast documentation it appears that std : : string is explicitly the only string-like exception allowed to normal lexical-cast semantics to keep the meaning of the cast as straightforward as possible and catch as many possible conversion errors as can be caught . The documentation also says that for other cases to use alternatives such as std : : stringstream . In your case I think a to fbstring method would be perfect : Comment : Yep looks like you re right . The logic is buried in boost lexical cast detail converter lexical streams.hpp with no easy way to customize it . I ended up writing own lexical cast wrapper that delegates to boost : : lexical cast with a specialization for fbstring ." ] }
[ "yes-answer-long", "yes-answer-short" ]
dependencies
UNK_RELATION
sdl-net@cross-platform@35
sdl-net -- this is a small sample @placeholder networking library with a sample chat client and server application .
{ "confidence": [ 28.01350975036621, 21.98924446105957, 21.503070831298828, 20.527603149414062, 20.41424560546875, 19.254417419433594, 19.254417419433594, 18.751741409301758, 17.95147705078125, 17.7342529296875, 17.33060073852539, 17.290102005004883, 17.290102005004883, 16.92972755432129, 16.789888381958008, 16.37451171875, 16.272613525390625, 16.202529907226562, 16.11107063293457, 15.87303352355957, 15.626370429992676, 15.196706771850586, 15.168492317199707, 14.411394119262695, 13.603583335876465, 13.43612289428711, 13.418417930603027, 13.418417930603027, 12.54867172241211, 12.487321853637695, 12.071334838867188, 12.071334838867188, 12.071334838867188, 12.071334838867188, 12.071334838867188, 12.071334838867188, 12.071334838867188, 12.071334838867188, 12.071334838867188, 12.071334838867188, 12.071334838867188, 12.071334838867188, 12.071334838867188, 12.071334838867188, 12.071334838867188, 12.071334838867188, 12.071334838867188, 12.071334838867188, 12.071334838867188, 12.071334838867188, 12.071334838867188, 12.071334838867188, 12.071334838867188, 12.071334838867188, 12.071334838867188, 12.071334838867188, 12.071334838867188, 12.071334838867188, 12.071334838867188, 10.851804733276367, 10.851804733276367, 10.851804733276367, 10.851804733276367, 10.851804733276367, 10.851804733276367, 10.851804733276367, 10.851804733276367, 10.851804733276367, 10.851804733276367, 10.851804733276367, 10.851804733276367, 10.851804733276367, 10.851804733276367, 10.851804733276367, 10.851804733276367, 10.851804733276367, 10.851804733276367, 10.851804733276367, 10.851804733276367, 10.851804733276367, 10.851804733276367, 10.851804733276367, 10.851804733276367, 10.851804733276367, 10.851804733276367, 10.851804733276367, 10.851804733276367, 10.851804733276367, 10.851804733276367, 10.851804733276367, 10.851804733276367, 10.851804733276367, 10.851804733276367, 10.851804733276367, 10.851804733276367, 10.851804733276367, 10.851804733276367, 10.851804733276367, 10.851804733276367, 10.851804733276367 ], "content": [ "I m trying a write something like a small proxy on SDL SDL Net .", "I just assumed it only required SDL .", "I was thinking on each client sending structs with the position to the server and the server handle sending it to the others clients .", "I m using VS 2010 SDL SDL net libraries .", "It would help if you could indicate which program crashes server or client", "The app is written on C using SDL and SDL Net network functions .", "I think my SDL calls are fine but here is the send code .", "https : www.youtube.com watch v iJfC4-yNnzY My client crashes after running it with the server open .", "I m just wondering what this error means using SDLNet GetError : .. . .. . I m just working off core SDL with SDL TTF and have no idea what this means .", "If you want a look at the code you can find the client code here http : pastebin.com 7vc6wq9t and the server code here http : pastebin.com pw9TQcqW .", "Furthermore the game s client successfully connects to it and it also should connect to 7777", "I was gonna concert to rgb server-side but I can do it on the client no bother ill give that a bash .", "I ve done a little bit with TCP sockets and I m trying my had at a simple UDP client s server .", "While these small things don t give you the full picture they are at least a start .", "It s my client fixed my question in an edit .", "My program successfully creates a server and waits for incoming connection .", "I didn t realize that the buffer was already allocated....although AllocPacket should have clued me in on that face-palm client-server are now working", "The code to the client is shown below .", "I am trying to use CPP and SDL Net to make a HTTP Client .", "Try to reproduce your issue with a very small example and you may even find the problem yourself : -", "I checked port of that game s server with TCPview - it is 24862 too it s supposed to be 7777", "@genfy I took a quick look at the client code you posted and well - you need to rework it a lot .", "Also that game s server complains about occupied port when I try to start two instances on 7777 but my new program does not .", "your tcp packets will get fragmented thus you have to read in small chunks like 1k .", "I am trying to use the SDLNet TCP Send TCPsocket sock void data int len function part of the SDL net library and I am having a hard time figuring out how I could use this to send an int .", "It does not take in account neither a response body of more then 1024 bytes nor chunked-encoding nor that the server will probably not close the connection immediatly after the response is done because keep-alive is active implicit with HTTP 1.1 .", "I am trying to get my head into SDLnet and I am encountering a problem where any UDP packets that I send from the client to the server are being broken up on the space character .", "The source code I am using is part of an online example on The Game Programming Wiki http : content.gpwiki.org index.php SDL : Tutorial : Using SDL net Using UDP .. . .. . Server .. . .. . Client .. . .. . Output .. . .. . The output looks like this image http : i.imgur.com vZDsxwi.png .", "But if you do the conversion at client-side you ll have to transfer more data over TCP because the yuv- rgb conversion expands data and it ll have an impact on the performance if you are concerned about the speed .", "Then app sends requests to server own app and compares server s version of requested data with local cache and then applies that difference and sends data back to browser .", "But for some reason it ignores entered port and always uses 24862 .", "If I start another instance it picks another random free port .", "This is my code : .. . .. . I was surprised because I already wrote a game which used SDL Net .", "I figured out what was wrong .", "It s strange but looks like port uint16 t needs to be represented in reversed byte order .", "So 7777 becomed 24862 .", "Also my assumption about program picking a random free port was wrong because i used 7777 for first instance and 7779 for second one .", "I am currently working in making a game with online a simple game my first time with SDLNet .", "The problem comes when tryng to send structs that contains vectors .", "If the structs only contains ints there isn t any segfault .", "I will leave some of the code :", "what s STRUCTURA SNAKE PRUEBA", "memcpy buffer test sizeof test -- This line is totally invalid .", "You don t send or copy non-POD types using memcpy .", "If you want proof stick in 10 000 elements into that vector and then see what sizeof test will be .", "You will see that sizeof test is still some very low number 40 50 for example -- it isn t 10 000+ .", "See this : stackoverflow.com questions 234724 http : stackoverflow.com questions 234724 is-it-possible-to-serialize-and-deserialize-a-class-in-c Bottom line is that you want to send the data that is in the vectors not the vectors .", "@Martin sorry was something about my code already edited .", "@PaulMcKenzie thanks for the answer i will look it out .", "I m trying to communicate with my esp8266 and as you can see I successfuly recieve a packet from it every 2 seconds : .. . .. . wireshark screenshot http : i.stack.imgur.com Cf2M0.png .. . .. . wireshark https : drive.google.com open id 0B95Q6kuijIWceHB1M1dCcjBKX1E .. . .. . but it seems like I don t recieve any data in my SDL net app the if in the while at the end stays allways false : .. . .. . It worked when I sended it packets from localhost so I tried to shut down my firewall but it still didn t work .", "Thank you for all your help .", "edit : So I tried to write similar thing using boost : : asio .", "Both programs SDL net and boost : : asio receive packets from localhost but none of them can receive anything from a different device I tried my sending program that works over localhost on a different PC but still without success .", "So I guess there is something wrong with my Ubuntu .", "Any advice on what should I do with that", "To debug first step add an else to print any errors : if SDLNet UDP Recv udpsock packet printf s packet- data else print error", "Thanks a lot for your answer I tried to add printf s SDLNet GetError inside else but nothing happend no error printed .", "Ok I think I ve finally found the problem I was trying to allocate too much space for the packet .", "I don t know why it even matters but when I changed the number in SDLNet AllocPacket 2048 to 32 everything started to work", "I m using a char buffer to send and receive information .", "Basically I connect to the site mentioned below on port 80 : .. . .. . But I can t get anything back the program gets stuck on Recv .", "Am I using the protocol wrong or is there something against the whole TCP HTML system", "Your HTTP protocol is full of spaces and should have r n terminators .", "Your HTTP protocol has spurious spaces and should have r n terminators .", "This is untested but the HTTP should be okay .", "You may want to add other headers .", "Sending the request kind is kind of correct but reading of the response is not .", "@SteffenUllrich I am not making any assumptions about the expected return data merely copying the OPs code with corrections .", "It is not intended to be anything other than an example of how to build the HTTP string .", "I feel that writing robust communication code with full error checking and recovery is somewhat beyond the scope of the question .", "What you send is not HTTP but instead something which looks a little bit like HTTP if you don t look to hard .", "Please make yourself comfortable with the specification like RFC2616 https : www.ietf.org rfc rfc2616.txt or at least look at some packet dumps or working code to see what you need to do their exactly .", "Since lots of things are wrong it makes no sense to point out specific errors .", "Could you give me a couple of tips for starters", "That is a very long document you sent me .", "Thanks", "or is it even possible to make such a thing as i am attempting to do", "with char as a buffer", "@Thornkey Of course it s possible that s how everybody would do it .", "@Thornkey : ...or at least look at some packet dumps or working code to see what you need to do their exactly . .", "There is enough of working code out there which does minimal HTTP and it is easy to do a packet-capture and look at it .", "Simple HTTP things can be done in a simple way for more advanced things you need to understand more of the standard .", "Would I be able to do that or should I use another approach", "how I could use this to send an int .. . Would I be able to do that or should I use another approach", ".. . .. . The function can be used to do so .", "You just use an address and sizeof : .. . .. . .. . .. . Depending on the data protocol you might need to obey that integer data should be sent in network byte order to have it machine architecture independend :", "Given int x you should be able to trivially call the function like this :", "Is it safe to call SDL net functions on another thread other than the main thread", "And are there any rules about it", "I could not find any information about it when I searched for it .", "By attempting to access the TCPSocket inside my clientArray I get a Access Violation error .", "How would I access it properly", "My header file holds the TCPSocket clientArray .", "It is defined within my constructor : .. . .. . It is accessible within another function of mine it works here without issue : .. . .. . However later on when I try to access it via another function I get an Access Violation Error : .. . .. . I am calling the problematic function from my Game s Update function as following : .. . .. . This is my other function that is attempting to access the array : .. . .. . I have not set up Copy constructors or assignment operators and my destructors are just empty blocks at the moment .", "Which direction should I go towards solving this issue", "All the best", "did you check that playerNum is smaller than maxsockets", "What do your constructors assignment operators and destructor look like", "Please edit your question with the code instead of posting it as a comment .", "And did you define a destructor copy-constructor copy assignment-operator" ] }
{ "confidence": [ 29.457645416259766, 26.423442840576172, 20.007564544677734, 18.095355987548828, 17.468473434448242, 17.003950119018555, 16.09591293334961, 16.077510833740234, 15.690104484558105, 13.723276138305664, 13.600910186767578, 13.562357902526855, 13.206403732299805, 12.125767707824707, 10.880435943603516 ], "content": [ "Question : I m trying a write something like a small proxy on SDL SDL Net . My program successfully creates a server and waits for incoming connection . But for some reason it ignores entered port and always uses 24862 . If I start another instance it picks another random free port . This is my code : .. . .. . I was surprised because I already wrote a game which used SDL Net . I checked port of that game s server with TCPview - it is 24862 too it s supposed to be 7777 Furthermore the game s client successfully connects to it and it also should connect to 7777 Also that game s server complains about occupied port when I try to start two instances on 7777 but my new program does not . .. . Answer : I figured out what was wrong . It s strange but looks like port uint16 t needs to be represented in reversed byte order . So 7777 becomed 24862 . Also my assumption about program picking a random free port was wrong because i used 7777 for first instance and 7779 for second one .", "Question : I m following a tutorial on SDL net and am quite confused on why my program is crashing . You can find the tutorial here . https : www.youtube.com watch v iJfC4-yNnzY My client crashes after running it with the server open . I m just wondering what this error means using SDLNet GetError : .. . .. . I m just working off core SDL with SDL TTF and have no idea what this means . The tutorial example I followed used OpenGL so if I were to guess the error is to do with me not using it I just assumed it only required SDL . If you want a look at the code you can find the client code here http : pastebin.com 7vc6wq9t and the server code here http : pastebin.com pw9TQcqW . I m not going to put it all in this question as it s rather long and I d be fine with just a simple explanation of the error I don t want to ask for a full explanation to what s wrong with my code . Okay so my initialization code is done through a ScreenManager : .. . .. . Which is running a screen this is where the network runs : Comment : It would help if you could indicate which program crashes server or client and at which line . Comment : It s my client fixed my question in an edit . .. . Answer : You are not creating an OpenGL context anywhere and call SDL GL SetSwapInterval 1 which according to the source http : fossies.org linux SDL2 src video SDL video.c sets the error to No OpenGL context has been made current . And then in your void network : : send Player p you call SDLNet GetError for no apparent reason and get that error . I assume you should call SDL GL CreateContext http : fossies.org linux SDL2 src video SDL video.c after SDL CreateWindow . Comment : I assumed that this would fix the crash I get I was being naive . Any idea what could be behind the crash I certainly don t . Comment : Well to be honest mostly I try and help out but at the moment I don t have any time to devote to this . Your code has a lot of new calls and pointers and looking at it takes time . I don t wan t to sound impolite but why can t you use a debugger At least a stack-trace of the point of crash would help . Comment : @genfy I took a quick look at the client code you posted and well - you need to rework it a lot . Sorry for the criticism but it is terrible - you are using a global tmp assuming global since there is no declaration or definition which is being printed to and accessed in weird ways like tmp strlen tmp - 1 I am calling this weird because you will actually pass one byte before the start of tmp to strlen . There are just too many things that could go wrong .", "Question : I am having issues with getting an image from the camera on a raspberry-pi over a network and on to a pandaboard running ubuntu-12.04 to display correctly . The data I get from the camera is the raw YUV data at 1280x720 resolution . I think my SDL calls are fine but here is the send code . Anyone feel free to point out if they can see something clearly wrong . Now the recieve code .. . .. . So I take buffer directly from Recv which should only finish when Recv has got all the data from a single send as far as I know . I therefore think that code is fine but its here incase anyone can spot any issues as I am struggling with this issue at the moment . Lastly my openCv display code : .. . .. . Sorry for all the code here to do this parts I am manually typing the code out . So can anyone state what could be the issue at either of these parts There is no error I just get muddled up images which I can notice are images just wrongly put together or not full images . Anyone needs more info just ask or more code I will put it up . Cheers . Comment : your tcp packets will get fragmented thus you have to read in small chunks like 1k . you can send the image in one piece but not expect it to come in one packet on the other side . Comment : Aa far as I am aware the recv acts in a similar way to send and waits for all of buffer to be sent before doing anything else . I think.. . However I did have it sending in 64kb chunks TCP max packet size and receiving these 64kb chunks and it was worse Comment : also do never use opencv s deprecated c-api . Comment : Yeah I read the IplImage stuff was deprecated but when searching for ways to allow an image stored as a simple memory block to be displayed it was all I could find . Could you offer guidance on another way to do it Comment : Mat m 720 1280 CV 8UC1 data and btw 1280 720 921600 which is also more than a 64k packet.. . .. . Answer : Try converting the frames from YUV to RGB . http : en.wikipedia.org wiki YUV lists how YUV formatted data is converted to RGB . You might also find readily available code to do that . Check the format of YUV data output from your camera and use the correct transformation . Comment : I was gonna concert to rgb server-side but I can do it on the client no bother ill give that a bash . I assume you are guessing that the data is arriving fine and its just the displaying I am having issues with Comment : Yes . But if you do the conversion at client-side you ll have to transfer more data over TCP because the yuv- rgb conversion expands data and it ll have an impact on the performance if you are concerned about the speed . Comment : It s for real-time image-processing so speed is most definitely an issue .", "Question : null .. . Answer : I am currently working in making a game with online a simple game my first time with SDLNet . I was thinking on each client sending structs with the position to the server and the server handle sending it to the others clients . The problem comes when tryng to send structs that contains vectors . If the structs only contains ints there isn t any segfault . I will leave some of the code : Comment : what s STRUCTURA SNAKE PRUEBA Comment : memcpy buffer test sizeof test -- This line is totally invalid . You don t send or copy non-POD types using memcpy . If you want proof stick in 10 000 elements into that vector and then see what sizeof test will be . You will see that sizeof test is still some very low number 40 50 for example -- it isn t 10 000+ . See this : stackoverflow.com questions 234724 http : stackoverflow.com questions 234724 is-it-possible-to-serialize-and-deserialize-a-class-in-c Bottom line is that you want to send the data that is in the vectors not the vectors . Comment : @Martin sorry was something about my code already edited . Comment : @PaulMcKenzie thanks for the answer i will look it out .", "Question : I have simple proxy app that listens connections from browser on port 4711 . Then app sends requests to server own app and compares server s version of requested data with local cache and then applies that difference and sends data back to browser . I m working till with very simply sites that contents only home page . But there is working correctly only in IE 10 . I tested FF Chrome Safari but they are not working . They are hanging while requests to proxy . The app is written on C using SDL and SDL Net network functions . Used non-blocking TCP sockets . I m debugging using VS 2010 and Windows 8 . Please suggest what should I check firstly . I understand i described the problem very briefly but i can provide additional info pieces of code etc . if needed . Ok . Put some code here . I can also add that app does not send even need packets to browser . I used SoftPerfect sniffer for this goal . Comment : You should provide aditional info specifically code expected results and actual results . Comment : You run a network sniffer and check if the app sends back responses . If it doesn t you run your app with a debugger and check where unexpected things happen that prevent it from sending back responses . If it does send responses but your browsers just don t see them then you can either blame a firewall or blame an incorrect implementation of the HTTP protocol by your app or blame an incorrect implementation of HTML by your app . Comment : Thanks for comments . I disabled all firewalls in my PC including Windows firewall and have same problem still . I think rather problem in code . Do you think may be difference in protocols in different browsers because IE is working still .. . Answer : Thanks for answers specially to @n.m. . I used Fiddler and SoftPerfect sniffers to spot my bug . There is error in my code . Thanks all Vyacheslav", "Question : I m new to network-programming . I ve done a little bit with TCP sockets and I m trying my had at a simple UDP client s server . I m using the SDL net framework for this project . The issue I m running into is the UDPpacket struct uses Uint8 as the data type for the data . I just want to be able to send straight up text however . I ve read a bit on casting but nothing seems to be compatible and I m struggling to find the correct solution to this . The code to the client is shown below . The error as you would assume is when I try and set p-data towards the bottom of the code . Any advice or corrections you have would be greatly appreciated .. . Answer : p- data points to a buffer which was already allocated by SDLNet AllocPacket -- you need to copy your string data into it rather than trying to replace where it points . So you will want to do something similar to this wherever you update the packet with C string data : Comment : Thanks @Christopher that solved it I didn t realize that the buffer was already allocated....although AllocPacket should have clued me in on that face-palm client-server are now working", "Question : I am trying to use CPP and SDL Net to make a HTTP Client . I m using a char buffer to send and receive information . Basically I connect to the site mentioned below on port 80 : .. . .. . But I can t get anything back the program gets stuck on Recv . Am I using the protocol wrong or is there something against the whole TCP HTML system Comment : Your HTTP protocol is full of spaces and should have r n terminators . .. . Answer : What you send is not HTTP but instead something which looks a little bit like HTTP if you don t look to hard . Please make yourself comfortable with the specification like RFC2616 https : www.ietf.org rfc rfc2616.txt or at least look at some packet dumps or working code to see what you need to do their exactly . Since lots of things are wrong it makes no sense to point out specific errors . Comment : Could you give me a couple of tips for starters That is a very long document you sent me . Thanks Comment : or is it even possible to make such a thing as i am attempting to do with char as a buffer Comment : @Thornkey Of course it s possible that s how everybody would do it . Comment : @Thornkey : ...or at least look at some packet dumps or working code to see what you need to do their exactly . . There is enough of working code out there which does minimal HTTP and it is easy to do a packet-capture and look at it . While these small things don t give you the full picture they are at least a start . Simple HTTP things can be done in a simple way for more advanced things you need to understand more of the standard .", "Question : I am trying to use CPP and SDL Net to make a HTTP Client . I m using a char buffer to send and receive information . Basically I connect to the site mentioned below on port 80 : .. . .. . But I can t get anything back the program gets stuck on Recv . Am I using the protocol wrong or is there something against the whole TCP HTML system Comment : Your HTTP protocol is full of spaces and should have r n terminators . .. . Answer : Your HTTP protocol has spurious spaces and should have r n terminators . This is untested but the HTTP should be okay . You may want to add other headers . Comment : Sending the request kind is kind of correct but reading of the response is not . It does not take in account neither a response body of more then 1024 bytes nor chunked-encoding nor that the server will probably not close the connection immediatly after the response is done because keep-alive is active implicit with HTTP 1.1 . Comment : @SteffenUllrich I am not making any assumptions about the expected return data merely copying the OPs code with corrections . It is not intended to be anything other than an example of how to build the HTTP string . I feel that writing robust communication code with full error checking and recovery is somewhat beyond the scope of the question .", "Question : I have simple code : .. . .. . The ii variable in begin of handle ua sock ready func has the 0 value . After invoking nrcv SDLNet TCP Recv sock request MAXLEN line it becomes to have something very big value for instance 1852397344 . It is single-threaded app . I m using VS 2010 SDL SDL net libraries . PS : When I compiled it under Linux it works fine . Comment : You code is incomplete request ar MAXLEN declarations but you are likely to have a buffer-overflow in a stack object . Comment : Don t use symbols with leading underscore followed by a capical letter those are reserved in all scopes . See here for more information . http : stackoverflow.com a 228797 440558 Comment : Also you probably have undefined-behavior in your code . The data returned by c-str http : en.cppreference.com w cpp string basic string c-str is read only attempting to write to this array leads to undefined-behavior . Also if the length of the string is less than MAXLEN you might even be writing out of bounds once again leading to UB . Comment : when define ing numeric values surround the numeric value with parens to avoid any text substitution errors Comment : this is c++ code please remove the c tag .. . Answer : You re passing in request to the SDLNet TCP Recv function and telling that function that request points to a buffer of size MAXLEN . As request comes from casting away the constness from the buffer of an empty std : : string this is clearly wrong . You want a vector Comment : Thanks for the good comments .", "Question : I am trying to use the SDLNet TCP Send TCPsocket sock void data int len function part of the SDL net library and I am having a hard time figuring out how I could use this to send an int . Would I be able to do that or should I use another approach .. . Answer : Given int x you should be able to trivially call the function like this :", "Question : null .. . Answer : By attempting to access the TCPSocket inside my clientArray I get a Access Violation error . How would I access it properly My header file holds the TCPSocket clientArray . It is defined within my constructor : .. . .. . It is accessible within another function of mine it works here without issue : .. . .. . However later on when I try to access it via another function I get an Access Violation Error : .. . .. . I am calling the problematic function from my Game s Update function as following : .. . .. . This is my other function that is attempting to access the array : .. . .. . I have not set up Copy constructors or assignment operators and my destructors are just empty blocks at the moment . Which direction should I go towards solving this issue All the best Comment : did you check that playerNum is smaller than maxsockets Comment : What do your constructors assignment operators and destructor look like Comment : Please edit your question with the code instead of posting it as a comment . Comment : And did you define a destructor copy-constructor copy assignment-operator Also what is happening in the interim before later on.. . . Any number of things could have happened to your data in the meantime via copying etc . Try to reproduce your issue with a very small example and you may even find the problem yourself : - Comment : I think getting and using a debugger is the best answer to the last question . It should be able to break on the segfault then that will tell you the actual cause and go from there .", "Question : I am trying to use the SDLNet TCP Send TCPsocket sock void data int len function part of the SDL net library and I am having a hard time figuring out how I could use this to send an int . Would I be able to do that or should I use another approach .. . Answer : how I could use this to send an int .. . Would I be able to do that or should I use another approach .. . .. . The function can be used to do so . You just use an address and sizeof : .. . .. . .. . .. . Depending on the data protocol you might need to obey that integer data should be sent in network byte order to have it machine architecture independend :", "Question : I am trying to get my head into SDLnet and I am encountering a problem where any UDP packets that I send from the client to the server are being broken up on the space character . I can t see any reason for this happening as I am not explicitly programming this behaviour in - I am literally just sending across a string . The source code I am using is part of an online example on The Game Programming Wiki http : content.gpwiki.org index.php SDL : Tutorial : Using SDL net Using UDP .. . .. . Server .. . .. . Client .. . .. . Output .. . .. . The output looks like this image http : i.imgur.com vZDsxwi.png . The operating-system I am running on is Windows 7 64-bit and I m wondering if this could be something OS-related . Comment : So what UDP packets can be split up and merged anywhere not just at space characters . It s your job to know where one piece of send info ends and the next begins . Comment : I did consider this actually . However I found it unusual to be able to replace the space characters with an underscore and it be transmitted in full instead of split up . Does the space character have any special significance in this case Comment : UDP datagrams are received intact or not at all . Unless SLDnet has some layered behaviour over that your problem lies elsewhere . Comment : I ll have a look in the source thanks @EJP Comment : @deviantfan No it s UDP s job actually . It s a datagram protocol not a stream protocol . .. . Answer : This is not the fault of UDP it s go to do with the char being split up when using scanf . I m not a 100 sure about the details here . But as a general rule in C you shouldn t use scanf http : stackoverflow.com questions 1247989 how-do-you-allow-spaces-to-be-entered-using-scanf .. . .. . Since you are using C++ at least according to the tags you should do this the C++ way : .. . .. . Note : The std : : cin.ignore is there to make sure we stop and wait for the user to type in the message . Comment : Cheers @olevegard I will look at using your example above tonight and get back to you . I have a feeling I tried std : : string and std : : cin but that didn t work either - can t hurt to try again though . Comment : @danolo That s quite likely . In my code I used std : : string but had the issue you have . But when I saw this question I looked into it again and found a way to fix it . Comment : I switched my code to use std : : getline instead of scanf and it works perfectly now thanks for your help . Your blog is great by the way", "Question : I m trying to communicate with my esp8266 and as you can see I successfuly recieve a packet from it every 2 seconds : .. . .. . wireshark screenshot http : i.stack.imgur.com Cf2M0.png .. . .. . wireshark https : drive.google.com open id 0B95Q6kuijIWceHB1M1dCcjBKX1E .. . .. . but it seems like I don t recieve any data in my SDL net app the if in the while at the end stays allways false : .. . .. . It worked when I sended it packets from localhost so I tried to shut down my firewall but it still didn t work . Thank you for all your help . edit : So I tried to write similar thing using boost : : asio . Both programs SDL net and boost : : asio receive packets from localhost but none of them can receive anything from a different device I tried my sending program that works over localhost on a different PC but still without success . So I guess there is something wrong with my Ubuntu . Any advice on what should I do with that Comment : To debug first step add an else to print any errors : if SDLNet UDP Recv udpsock packet printf s packet- data else print error Comment : Thanks a lot for your answer I tried to add printf s SDLNet GetError inside else but nothing happend no error printed . .. . Answer : Ok I think I ve finally found the problem I was trying to allocate too much space for the packet . I don t know why it even matters but when I changed the number in SDLNet AllocPacket 2048 to 32 everything started to work", "Question : null .. . Answer : Is it safe to call SDL net functions on another thread other than the main thread And are there any rules about it I could not find any information about it when I searched for it ." ] }
[ "yes-answer-long", "yes-answer-short" ]
cross-platform
UNK_RELATION
tidekit@hybrid@89
tidekit -- tidekit is a development platform for creating building and deploying native @placeholder or html5 applications for mobile web and desktop written in javascript .
{ "confidence": [ 64.21741485595703, 60.55461883544922, 60.16980743408203, 60.0955696105957, 59.27358627319336, 55.6624755859375, 53.274173736572266, 52.15037536621094, 49.63222885131836, 49.385196685791016, 49.36360168457031, 49.14902877807617, 48.98627471923828, 48.13132095336914, 47.70648956298828, 47.53955078125, 46.93379211425781, 46.772499084472656, 46.71366500854492, 46.71366500854492, 46.71366500854492, 46.2725830078125, 46.200469970703125, 45.36376953125, 45.360198974609375, 45.0898323059082, 44.94105911254883, 44.88961410522461, 44.88961410522461, 43.80352020263672, 43.62131118774414, 43.5464973449707, 43.5464973449707, 42.43989562988281, 42.43989562988281, 42.43989562988281, 42.43989562988281, 42.41163635253906, 41.77155303955078, 41.657814025878906, 41.63072204589844, 41.63072204589844, 41.63072204589844, 40.89656066894531, 40.097564697265625, 39.91454315185547, 39.91454315185547, 39.4913330078125, 39.4913330078125, 39.4913330078125, 39.4913330078125, 39.4913330078125, 39.4913330078125, 39.34343338012695, 39.12161636352539, 39.12161636352539, 39.12161636352539, 39.12161636352539, 39.12161636352539, 39.12161636352539, 38.466548919677734, 38.37649917602539, 38.30778503417969, 38.06150436401367, 37.947998046875, 37.366363525390625, 37.301841735839844, 37.301841735839844, 37.301841735839844, 37.301841735839844, 36.212158203125, 36.17305374145508, 36.17305374145508, 36.17305374145508, 36.17305374145508, 36.17305374145508, 36.17305374145508, 36.17305374145508, 35.97119140625, 35.55986404418945, 35.24783706665039, 34.65190887451172, 34.65190887451172, 34.65190887451172, 34.65190887451172, 34.65190887451172, 34.65190887451172, 34.65190887451172, 34.65190887451172, 34.65190887451172, 34.65190887451172, 34.65190887451172, 34.65190887451172, 34.65190887451172, 34.566287994384766, 34.50703430175781 ], "content": [ "Development using TideKit is fully unified for client-server desktop mobile or web .", "TideKit is an app development platform .", "TideKit is a platform you can use to create native apps for web desktop and mobile from a single code base written in JavaScript .", "TideKit is an application development platform for desktop web and mobile whereas TideSDK is a desktop SDK Software Development Kit .", "You can develop mobile desktop and web apps with TideKit and you can easily migrate from TideSDK to TideKit .", "@iX3 In fairness TideKit is not a repackaging of chromium but has extensive APIs to build web mobile and desktop apps using HTML5 hybrid and native technologies .", "This tidekit response mail .. . .. . TideKit was software for developing apps for all platforms simultaneously with a single base of code written in JavaScript .", "TideKit provides simultaneous extension in ObjC++ C++ Java and JavaScript for web HTML5 hybrid and native apps .", "As of this date TideKit has been in development and is due to be released .", "TideKit is for app development across all operating systems screens and devices using a single code base written in JavaScript .", "Yes TideKit is still in progress .", "TideKit is the future", "TideKit supports the following OS s on the desktop but supports web and mobile OS s so you can develop your app once and deploy for mobile web and desktop .", "You can follow the progress of TideKit development at the following site : .. . https : www.tidekit.com roadmap .. . .. . Edit Update : .. . .. . The Tidekit project has ended and company dissolved .", "Development can be following on Twitter at https : twitter.com tidekit .. . .. . TideKit is not a single tool piece of software UI or SDK Software Development Kit .", "TideKit does not exist any more .", "I am interested in this new platform - Tidekit .", ".. . TideKit was software for developing apps for all platforms simultaneously with a single base of code written in JavaScript .", "TideKit has this capability baked in .", ".. . Your TideKit Team", "Your TideKit Team", "It was written to be extended but I would recommend waiting for TideKit .", "In TideKit : .. . .. . 1 .", "When TideKit formally launches I would check for the availability of modules at that point for both TideKit and JavaScript implementations .", "TideKit is for the whole of app development therefore it differs greatly in platform support that is summarized below .", "TideKit is officially dead as of 2 days ago .", "TideKit is releasing soon .", "TideKit.com and TideKit have been discontinued .", "TideKit.com and TideKit have been discontinued .", "TideKit will have compatible APIs with TideSDK so it can be the same if you are porting a project from TideSDK to TideKit .", "We decided more than a year ago to put our energy into a broader effort for mobile web and desktop called TideKit that is due to be released shortly .", "The following was all that was sent to some of the TideKit project pre-order customers on 12 July 2015 : .. . .. . TideKit.com and TideKit have been discontinued .", "And was there question non-programming like this : 1 https : stackoverflow.com questions 27800197 is-tidekit-still-in-progress 2 https : stackoverflow.com questions 26094684 tidekit-expected-release .", "We are in a reservations mode for TideKit currently and it will be released incrementally .", "TideKit was developed by the same core developers that developed TideSDK .", "fyi anyone passing by : TideKit is defunct don t bother .", "Can we expect tidekit to launch by near future", "The one I got was TideKit is a development not a streaming platform but you could develop an app for that", "As a result we came to the serious decision to discontinue TideKit and dissolve our company .", "TideKit is a uniquely develop once deploy everywhere platform with easy-to-use JavaScript APIs and CommonJS modularity .", "When a TideKit or JavaScript module is installed it offers its APIs .", "Using a TideKit module that supports the streaming protocols by interacting with its APIs in JavaScript .", "Using a pure JavaScript solution from a repository together with TideKit that supports the protocols .", "Developers write code using their favourite text-editor and interact with TideKit through a CLI Command Line Interface or through interaction with the TideKit app .", "Keep in mind TideKit is releasing soon with a new CLI app and will provide platform builds .", "As you may have discovered we ve been focused on the development of TideKit tidekit.com http : www.tidekit.com over the past two years .", "enter image description here http : i.stack.imgur.com cGX1f.png .. . .. . TideKit provides more than a single approach to development .", "We are currently working on something new it is called TideKit .", "The best way to write TideKit apps is CommonJS .", "If TideKit can do this it will attract a lot more customers .", "We ve purposefully kept the core of TideKit small .", "You already have access to camera with TideKit .", "TideKit is new and has not yet formally launched .", "They went on to found CoastalForge http : coastalforge.com to create TideKit with the vision of creating for all screens and devices .", "What is the difference in purpose and support for platforms between TideSDK and TideKit", "TideKit was designed to create ubiquitous apps for all screens and devices at one time .", "For TideKit we want the documentation to be richer more useful and interactive .", "Good : D By the way can I volunteer for TideKit Docs", "Does anyone here know if TideKit is intended as a replacement for TideSDK", "And you re also right we as a core team completely focus on TideKit now .", "So I understand the concept of TideKit and TideSDK of packaging a database and native functionality such as file system manipulation through the TI interface into what otherwise would be a potentially offline web-app .", "I know it s possible with the APIs and I really hope TideKit will be able to do this because no other platform similar to TideKit and there are MANY can do this besides Flex .", "Our recent effort TideKit has native support for MSSQL along with other SQL and no SQL databases including Mongo and CouchDB .", "As an aside TideKit also supports WebRTC in HTML5 so this could work together with TideKit s other capabilities for interesting possibilities .", "If you are interested in TideKit follow us @TideKit on Twitter or watch our short video on YouTube http : www.youtube.com watch v aE7gN-d0GhU", "Nevertheless since the annoucement of Tidekit the list become static since 2013 besides TideSDK wont receive any more maintenance so I guess this list can apply for tideKit as well .", ".. . In Feb 2014 we created a system to queue developers with reservation system for the earliest possible access to TideKit .", "TideKit does not exist any more see this answer http : stackoverflow.com a 28204167 3737186", "Will you plan to release a free version of TideKit for students education or open-source projects", "I writed here because in the footer of the website is the link : Community Q A https : stackoverflow.com questions tagged tidekit .", "Extension of this functionality is through TideKit modules that have operating-system implementations or from pure JavaScript modules .", "We ve been investing in a broader vision with TideKit that is getting ready for release .", "Tidekit offers options to build and package apps that affect the size of the runtime .", "That s where TideKit comes into play which doesn t fully answer the question .", "Out of the box TideKit has core AV functionality on all platforms .", "So there are a few ways to accomplish what you want with TideKit .", "Writing your own TideKit module that ties together with APIs of the operating systems .", "Note that not all possible functionality in TideKit modules will be available with the launch .", "While creating a platform for JavaScript developers much of the core engineering is in a variety of lower level languages that affect the speed of development .", "You can use it for any type of app development for mobile desktop and web .", "If you want to know more about builds like the ones you mentioned for Windows and OS X you should read this .. . .. . Desktop Builds https : blog.tidekit.com post from-a-desktop-perspective-tidekit-for-tidesdk-developers", "Like in any other programming language there are reserved-words that cannot be used and in the case of TideKit TideSDK Ti is one of them .", "We are making this point so that folks use either TideSDK or TideKit have a clearer understanding of the technical differences between these .", "There are key technical differences between TideKit http : tidekit.com and TideSDK http : tidesdk.org despite the similar sounding name .", "TideKit combines remote software together with local software that you use on your system .", "Despite these differences a TideSDK project may be migrated to TideKit with small changes in your code .", "Documentation will be available to help you get started with this approach once TideKit is launched publicly .", "Support for IDE s : I guess TideKit should provide a way for developers to reach the api code autocompletion easily .", "I hope you may consider a sublime text or eclipse code that can help to write code in Tidekit API .", "It should be noted TideKit does enforce the use of any specific IDE or text-editor .", "Yet it seems the core developers have switched to developing TideKit https : www.tidekit.com instead .", "I realize there are some really cool features TideKit TideSDK and they take a lot of developer pain away which is great .", "But I have been actively following tideSDK tidekit for last 6 months and does not see anything about their product launch .", "In Feb 2014 we created a system to queue developers with reservation system for the earliest possible access to TideKit .", "I don t hear anything about TideKit since sept 29 14 .. . Can you just tell us if the project is still in progress", "TideKit has the capability to build in different ways from your project source to optimize for AppStore compliance or even highest HTML5 compliance ." ] }
{ "confidence": [ 82.0985336303711, 80.68388366699219, 77.28887939453125, 74.5149154663086, 72.76960754394531, 72.25896453857422, 71.30691528320312, 69.91905212402344, 69.61128997802734, 64.71981811523438, 64.71186828613281, 63.66888427734375, 61.92216110229492, 61.13987731933594, 60.152252197265625, 59.79216766357422, 59.39836120605469, 59.0614013671875, 58.784873962402344, 52.788734436035156 ], "content": [ "Question : I am planning to develop an standalone app that will run on OSX and Windows using Html5 etc . I have been doing some analysis on some of the frameworks that will suite my needs . This is one of the blog that I came across . http : blog.neamlabs.com post 36584972328 2012-11-26-web-app-cross-platform-desktop-distribution .. . .. . This blog is an old one and I felt like tideSDK is promising So I would like to know whether tideSDK is production ready Or do we have any other options like tideSDK . .. . Answer : TideSDK is still in beta therefore it does not exactly provide what you are looking for . We are currently working on something new it is called TideKit . TideKit is a platform you can use to create native apps for web desktop and mobile from a single code base written in JavaScript . It also provides code hiding and everything you need to create a world-class native app for multiple devices not only desktop . If you are interested in TideKit follow us @TideKit on Twitter or watch our short video on YouTube http : www.youtube.com watch v aE7gN-d0GhU Comment : As of now I have few deadlines to meet.So If I go ahead with tideSDK in MAC then I can reuse source code to build the .exe in windows rite . At this point of time I am not worried about the deploying completely . I need to pass the .app and .exe files to my client so that they can use this app in their local machine to communicate with another app that we have already developed and deployed . Please correct me If I said something wrong As I have been not used to tideSDK . Comment : Yes using TideSDK you should be able to reuse your source code across Windows osx and ubuntu .", "Question : I have a project I have coded using TideSDK . What is the difference in purpose and support for platforms between TideSDK and TideKit Comment : This is not a StackOverflow question even if you edit it to be a question answer . It s a post for the product documentation instead . Please do not use StackOverflow to promote your product or project that s not what this site is designed to do . Comment : There are technical differences between the two pieces of software this is not promotion but valid question I am answering for our users to assist them in assessing differences in platform support . Comment : @KenWhite We have had this question come up in discussion on twitter and it this is about answering differences . Of course our documentation will spell what platforms we support but it will not clarify differences with other similarly named software which is what this question entails . I would appreciate if you could keep this in mind for those folks that will benefit from the answer i will prepare . Comment : I appreciate your opinion on this but we have folks that will be transitioning between the two types of software . We are making this point so that folks use either TideSDK or TideKit have a clearer understanding of the technical differences between these . We d like this question here to help them . Hope that clarifies this finally . Comment : Sorry but I still think this belongs on your own documentation pages . Voting to close . IMO this question appears to be off-topic because it is a product documentation post that should be on the product site perhaps as part of a FAQ section . .. . Answer : There are key technical differences between TideKit http : tidekit.com and TideSDK http : tidesdk.org despite the similar sounding name . TideKit is an application development platform for desktop web and mobile whereas TideSDK is a desktop SDK Software Development Kit . TideKit was developed by the same core developers that developed TideSDK . They went on to found CoastalForge http : coastalforge.com to create TideKit with the vision of creating for all screens and devices . From the source code of a single project an app can be built and packaged for each device bridging each language its user interfaces and capabilities . As of this date TideKit has been in development and is due to be released . Development can be following on Twitter at https : twitter.com tidekit .. . .. . TideKit is not a single tool piece of software UI or SDK Software Development Kit . It is a central hub for app development . TideKit combines remote software together with local software that you use on your system . Developers write code using their favourite text-editor and interact with TideKit through a CLI Command Line Interface or through interaction with the TideKit app . enter image description here http : i.stack.imgur.com cGX1f.png .. . .. . TideKit provides more than a single approach to development . In its simplest form it can be used in a similar way to TideSDK for app development but it has much greater capabilities . TideKit was designed to create ubiquitous apps for all screens and devices at one time . This is accomplished using CommonJS . You write your project code once then build and package it for virtually all operating systems and devices for mobile web and desktop . Development using TideKit is fully unified for client-server desktop mobile or web . The primary advantages are access ie developing in JavaScript instead of the core languages to get native features development speed everything can be created at a fraction of the time compared to developing for one platform lower development cost and more reach able to create for all platforms to monetize everywhere with a single effort . TideKit is for the whole of app development therefore it differs greatly in platform support that is summarized below . Despite these differences a TideSDK project may be migrated to TideKit with small changes in your code . TideKit .. . .. . Windows XP .. . Windows Vista .. . Windows 7 .. . Windows 8 .. . OSX 10.6 Snow Leopard .. . OSX 10.7 Lion .. . OSX 10.8 Mountain Lion .. . OSX 10.9 Mavericks .. . Ubuntu 12.04 .. . Ubuntu 12.11 .. . Ubuntu 13.04 .. . iOS 6 .. . iOS 7 .. . Android .. . Ubuntu Server .. . RedHat .. . CentOS .. . .. . TideSDK .. . .. . Windows XP .. . Windows Vista .. . Windows 7 .. . Windows 8 .. . OSX 10.6 Snow Leopard .. . OSX 10.7 Lion .. . OSX 10.8 Mountain Lion .. . Ubuntu 12.04 .. . Ubuntu 12.11", "Question : I am interested in this new platform - Tidekit . But I couldn t find any answer to my questions : .. . .. . 1 . Is it possible to add C or at least C++ JAVA code or Dll libraries to the solution 2 . Is it possible to make a package with html+js+css and native-code C C++ Java working in one executable file or executable + dlls There are already working solutions like CefSharp Awesomium but there is a problem to make external resources html css js embedded inside the project . I would like to hide my implementation from end users somehow . I ll appreciate any answer related to my questions . .. . Answer : 1 . We don t support C but yes to the rest . 2 . Again no C but yes to answer this question . Further explanation below : .. . .. . We ve developed TideKit to have a small and stable core so that the apps can be built up in a modular way with the functionality you want in your app . TideKit provides simultaneous extension in ObjC++ C++ Java and JavaScript for web HTML5 hybrid and native apps . Generally developers will consume modules without the need to write lower level code because the functionality already exists both natively and for HTML at the same time . So mostly it is about consuming modules and writing your app in JavaScript . Modules allow a project to be built for desktop mobile and web from a single base of code . TideKit is a uniquely develop once deploy everywhere platform with easy-to-use JavaScript APIs and CommonJS modularity . The best way to write TideKit apps is CommonJS . More than 60K modules of CommonJS functionality is available through npm and components registries . Folks familiar with nodejs will be at home with it . You can also write conventional JavaScript or easily migrate an existing TideSDK app . Automated packaging installers and distribution are part of our solution . There are packaging options that can provide bundled or network installs to take advantage of dynamic libraries for efficient runtime code to keep the amount of installable and distributable code to a minimum . TideKit has the capability to build in different ways from your project source to optimize for AppStore compliance or even highest HTML5 compliance . You can use it to build HTML5 or native apps for virtually any platform you wish to support . On the backend we have capabilities for the widest range of mobile and desktop operating systems and for web deployments . Beyond building your app simultaneously for multiple platforms you can also develop test and deploy your APIs from the same base of code . Our build service protects your code from exposure by encrypting and embedding the sources in a binary . Hope this helps . Comment : Thanks for this helpful info Comment : Well you have ruby so you could possibly get ffi to work and then run the dll through there : ffi example https : github.com ffi ffi wiki Windows-Examples", "Question : I have an app that functions perfectly outside of Tide . The app uses Flowplayer to load and play a video using HTML5 . It appears that when Flowplayer insert the video tag and sets the src attributes the path is prefaced by the namespace application id used in my app configuration . Is there a way to disable this Everything in my app is inside the resources folder so there is no need to include the application name in the path . Thanks H .. . Answer : @Ward Where we left TideSDK unfortunately it did not have support for audio video tags in HTML5 . The HTML parser within the webkit in that code does not handle this properly . We decided more than a year ago to put our energy into a broader effort for mobile web and desktop called TideKit that is due to be released shortly . http : youtu.be aE7gN-d0GhU .. . .. . HTML5 support is state-of-the-art including audio video so embedding is just as easy as using the tags . Working with anything HTML5 or creating apps with native capabilities and UI will be easier and better than ever . TideKit will launch with a CLI and an app to connect with our build service to optimize build s based for your app s requirements and where you want it to go . Any code you have in TideSDK can be migrated easily . Comment : Will there be any way to protect the videos from being easily copyable out of the app in TideKit", "Question : I need to know if TideKit will be able to stream live video and audio from device cameras and microphones . The Android and IOS APIs allow for this . I think Flex can do it . I asked about this on the Twitter page but I m looking for a more definitive answer . The one I got was TideKit is a development not a streaming platform but you could develop an app for that That s where TideKit comes into play which doesn t fully answer the question . The goal is to stream video from Android IOS cameras and audio from the device microphones to a media streaming server such as Flash Media Server or a Wowza streaming server using either RTMP or HTTP streaming from the app to the server . That or it would work if the stream were sent live in any other way to a server socket and then encoded for redistribution via a streaming server . They key here though is live rather than having to waiting for a video or audio file to become complete before sending it off to the server . I know it s possible with the APIs and I really hope TideKit will be able to do this because no other platform similar to TideKit and there are MANY can do this besides Flex . I ve poured through countless SDK documents . If TideKit can do this it will attract a lot more customers . Eagerly awaiting a response .. . .. . Thanks .. . Answer : @xendi Thank you for your question . TideKit is an app development platform . You can use it for any type of app development for mobile desktop and web . We ve purposefully kept the core of TideKit small . This is to ensure its core is extremely stable and that most functionality can can come through modules . Out of the box TideKit has core AV functionality on all platforms . Extension of this functionality is through TideKit modules that have operating-system implementations or from pure JavaScript modules . There are almost 100 000 modules of pure JavaScript functionality now available to you through existing repositories including NPM Bower and Component that can simply be consumed in CommonJS . When a TideKit or JavaScript module is installed it offers its APIs . This extends the APIs with those already available . Either way those APIs become available to you in JavaScript . You already have access to camera with TideKit . The rest is handling the streaming protocol ie RTSP RTMP HTTP etc . So there are a few ways to accomplish what you want with TideKit . 1 . Using a TideKit module that supports the streaming protocols by interacting with its APIs in JavaScript . 2 . Using a pure JavaScript solution from a repository together with TideKit that supports the protocols . 3 . Writing your own TideKit module that ties together with APIs of the operating systems . 4 . Writing the solution in pure javascript using TideKit s camera and network APIs . TideKit is new and has not yet formally launched . We are currently in a reservations mode . We will be delivering it first to those with reservations and it will be gradually rolled out . Demos are currently being prepared to demonstrate the speed and low barrier to development . When TideKit formally launches I would check for the availability of modules at that point for both TideKit and JavaScript implementations . Note that not all possible functionality in TideKit modules will be available with the launch . New modules will be releasing over time . As an aside TideKit also supports WebRTC in HTML5 so this could work together with TideKit s other capabilities for interesting possibilities . Comment : Thanks . I wasn t really worried about the protocols used for streaming out rather that through TideKit would I have access to live video and audio through the cams and mic on android ios without having to write any Java or Objective C . Is that correct I already reserved a seat a while ago . Comment : @xendi Yes you get direct access to the device s microphone and camera in JS through our APIs so no ObjC or Java . We are also here to help point you if you have questions along the way .", "Question : I am interested in creating a desktop application using HTML5+webkit and I d like to be able to build a stand-alone executables for various target platforms like a .exe file for Windows and a .dmg image for Mac OS . I have played around with node-webkit https : github.com shama nodewebkit which seems nice except for the packaging distribution portion . I also stumbled on TideSDK http : www.tidesdk.org but that project seems to be inactive . For example the latest release I saw was a beta from November of 2012 . Yet it seems the core developers have switched to developing TideKit https : www.tidekit.com instead . Does anyone here know if TideKit is intended as a replacement for TideSDK Is TideSDK going away etc . Comment : fyi anyone passing by : TideKit is defunct don t bother . .. . Answer : you are right TideSDK is aging and pretty inactive today . And you re also right we as a core team completely focus on TideKit now . TideKit is the future If you want to know the full story about why we stopped working on TideSDK and started TideKit I recommend you to read our first Q A . There you ll also find an answer about how we compete with node-webkit : .. . .. . https : blog.tidekit.com post your-questions-our-answers-01 .. . .. . We ve just reached the highest HTML5 score any app development platform ever achieved . If you want to know more about builds like the ones you mentioned for Windows and OS X you should read this .. . .. . Desktop Builds https : blog.tidekit.com post from-a-desktop-perspective-tidekit-for-tidesdk-developers Comment : Thanks it s always nice to get an authoritative answer i.e . from a core team member and BTW welcome to StackOverflow : Your product looks very appealing though the hype about HTML5 scores seems moot as one can grab the latest snapshot of webkit chromium bundle it and get 517+ and I wish you and your customers all the best . As for me however I m really not interested in any commercial solutions in this space so I think it s truly unfortunate that continuing development of TideSDK as an open-source project was not financially viable . Comment : @iX3 In fairness TideKit is not a repackaging of chromium but has extensive APIs to build web mobile and desktop apps using HTML5 hybrid and native technologies . Its key feature is the ability to create for virtually all platforms from a single-source of code . The recent 505 HTML score we celebrated is significant . Currently no modern browser wrapper node-webkit or atom implements a score this high at present . We are going further of course . Compliance is a high priority to ensure everyone can work with HTML5 s full capabilities . Demos are coming next . Comment : @fairwinds what do you mean Currently no modern browser .. . implements a score this high at present I just tested my default Chrome 35.0.1916.153 m and got a score of 507 555 at html5test.com http : html5test.com s 4576c0212df46621.html P.S . I realize there are some really cool features TideKit TideSDK and they take a lot of developer pain away which is great . I didn t mean to poo-poo your work just saying that it isn t ideal for me . Comment : @SvenSlootweg We ve been clear to state that TideSDK will not be updated and the reasons why . The work remains available for anyone to use . Its alright you feel the way you do but realize that with any open-source project there are no guarantees of continuity . We ve been public about our intentions and where we are placing our efforts . Comment : @fairwinds It took months after the abandoning for the TideKit banner to appear on the TideSDK site and it still doesn t clearly indicate that the project has been abandoned . I have no idea where you have been clear to state that TideSDK will not be updated and the reasons why but it s certainly not on the TideSDk site .", "Question : I just started looking into TideSdk http : www.tidesdk.org and noticed that when I compile or package a project in Win-7 I get all of these dependecies which is actually the un-compiled source code for the app . Is there any way to : .. . .. . 1 . Have Tide SDK package a file to one executable .. . 2 . Not have the source code visible in any way shape or form in the final executable If none of those are possible is there an alternative that can to these things .. . Answer : We are working on a solution . There are a few possibilities . The only thing that is possible currently is to obfuscate your code using google-closure-library through a tidebuilder option . Comment : Has there been any movement on when this will be available as part of tidesdk. . Id love to package a project as a single exe Comment : @fairwinds Are there any updates on this answer I would like to send my app to people who use both macs and pcs . Comment : @MadsterMaddness Yes there is . As you may have discovered we ve been focused on the development of TideKit tidekit.com http : www.tidekit.com over the past two years . TideKit is for app development across all operating systems screens and devices using a single code base written in JavaScript . You can develop mobile desktop and web apps with TideKit and you can easily migrate from TideSDK to TideKit . TideKit has this capability baked in . We are in a reservations mode for TideKit currently and it will be released incrementally . First to those with reservations .", "Question : I don t hear anything about TideKit since sept 29 14 .. . Can you just tell us if the project is still in progress .. . .. . Hope to hear you soon . Comment : This question appears to be off-topic because it is about a product project s status . Ask on their support forums chat IRC whatever . Comment : TideKit is officially dead as of 2 days ago . Comment : Also TideSDK ... . .. . Answer : Yes TideKit is still in progress . The latest update was yesterday 27 Jan 2015 . You can follow the progress of TideKit development at the following site : .. . https : www.tidekit.com roadmap .. . .. . Edit Update : .. . .. . The Tidekit project has ended and company dissolved . The following was all that was sent to some of the TideKit project pre-order customers on 12 July 2015 : .. . .. . TideKit.com and TideKit have been discontinued . .. . TideKit was software for developing apps for all platforms simultaneously with a single base of code written in JavaScript . .. . The scope and complexity of the product made it difficult to assemble the platform all at once . This stemmed from a holistic approach to app development for all platforms . While creating a platform for JavaScript developers much of the core engineering is in a variety of lower level languages that affect the speed of development . We considered delivering parts of our platform as we reached milestones but this was not suitable for the start of trials . .. . We were widely criticized for not revealing our technical innovation in advance of our release . In a competitive environment revealing advantages as you go can also mean assimilation as you go . We had already witnessed how quickly our technical advantages could be assimilated by competitors to our open-source TideSDK product . Therefore we held back with a view of delaying the duplication of features by competitors increasing our technical barriers and working to protect our IP and business case until we felt we were ready . .. . In a startup we talk about a Minimum Viable Product MVP . In our case our minimum viable product was much larger and more difficult to achieve . In total approximately three years of research and development was committed with multiple developers working greater than full time hours . A factor that extended the development was an expansion of scope that aimed to lower friction in the app development-process . .. . In Feb 2014 we created a system to queue developers with reservation system for the earliest possible access to TideKit . Our goal was to provide an early trial when it became available . Since the development itself was complex we could not provide a date when ticket holders could start the trial process but it would be following our betas then moving forward as we scaled the platform . .. . We were clear with our language on the site concerning reservations . As a result we expected little confusion about what was being purchased our expectations of timing to market or the terms of purchase for a reservation ticket . Purchasers were not paying for our product at this point but for their position in a queue for a trial of our new technology . We also included a refund policy to ensure the terms of purchase for your ticket were available . The wait has been long but not nearly as long as other difficult engineering challenges including Myo that pre-sold their product and were also delayed before successfully rolling out . .. . Throughout the development cycle we provided updates of our status via posts roadmap page email to our ticket holders and communications on our social channels . We did our best as a team to open ourselves to questions and maintain a social presence . .. . At the end of May 2015 we communicated our strategy to execute a series of focused betas that would have seen the platform revealed publicly and incrementally . We were at a stage that parts of the platform needed developer feedback as we rolled these out consecutively . .. . In the days preparing for our first public beta we recognized the extent to which our brand had been poisoned by our timing to market . A campaign of negativity that had begun several months earlier with followers and ticket holders had taken its toll on our team brand and business . .. . We believed the beta releases would soon bring an end to the negative talk . On July 8 and 9 we faced further eruptions on social media that reached the tipping point . With the discussion no longer about the product nor its future this was far more serious . .. . We failed to bring the product quickly enough for you . As a result we came to the serious decision to discontinue TideKit and dissolve our company . .. . We wish to thank everyone involved that worked on the product and with our team . This includes businesses entrepreneurs and supporters of our vision for app development . .. . Your TideKit Team .. . .. . .. . Some alternatives for cross-platform application development : .. . .. . Ionic https : github.com driftyco ionic .. . Node Webkit nw.js https : github.com nwjs nw.js .. . Qt http : www.qt.io .. . Electron https : github.com atom electron Comment : @Sjoerd2228888 thanks for the Electron add", "Question : I am interested in creating a desktop application using HTML5+webkit and I d like to be able to build a stand-alone executables for various target platforms like a .exe file for Windows and a .dmg image for Mac OS . I have played around with node-webkit https : github.com shama nodewebkit which seems nice except for the packaging distribution portion . I also stumbled on TideSDK http : www.tidesdk.org but that project seems to be inactive . For example the latest release I saw was a beta from November of 2012 . Yet it seems the core developers have switched to developing TideKit https : www.tidekit.com instead . Does anyone here know if TideKit is intended as a replacement for TideSDK Is TideSDK going away etc . Comment : fyi anyone passing by : TideKit is defunct don t bother . .. . Answer : There is a new kid on the block for this sort of projects : atom-shell https : github.com atom atom-shell Based in nodejs and used to create the great Atom editor https : atom.io .. . .. . Technical differences with node-webkit : https : github.com atom atom-shell blob master docs development atom-shell-vs-node-webkit.md .. . .. . Presentation at JSLA about Native NodeJS Apps : http : vimeo.com 97881078 Comment : atom-shell is now Electron https : github.com atom electron", "Question : null .. . Answer : So I understand the concept of TideKit and TideSDK of packaging a database and native functionality such as file system manipulation through the TI interface into what otherwise would be a potentially offline web-app . I m confused as to how deep or powerful server-side-scripting integration goes with the desktop app To the point for a potential use-case of mine : could I package complex server-side scripting tasks like video compression encoding manipulation into my HTML app so that when that is packaged as a desktop app the client s desktopp app is capable of running those tasks itself via the packaged executable without needing any extra software on the client-side python node whatever server-side-scripting language Comment : TideKit does not exist any more see this answer http : stackoverflow.com a 28204167 3737186", "Question : I ve already written some backend .dll files that I intend to use in a project . I need to visualize a simulation of the code for which I intend to use charts and graphs from Chart.JS by using it along with TideSDK for a desktop application . I have no clue on how to call the C libraries via JS though . And I want to avoid creating wrapper classes in Python and going through that circuitous route . Any other options Or are there any alternatives when trying to create an HTML CSS JS desktop application connected to a backend C C++ library Will AppJS make things easier .. . Answer : TideSDK is capable of extension with modules that can be compiled and included in its runtime . It was written to be extended but I would recommend waiting for TideKit . TideSDK is a bit old and setting up a toolchain could be problematic at this point . We ve been investing in a broader vision with TideKit that is getting ready for release . You will be able to extend it with native modules and you won t need to wait too much longer to see what we ve been up to . http : youtu.be aE7gN-d0GhUthat .. . .. . If you have started anything with TideSDK you will be able to migrate your code easily to TideKit . The ability to work with with native or JavaScript modularity and to develop for all screens from a single project code base is where all our efforts have been going . Note that AppJS was discontinued earlier this year . An alternative is writing C extensions in node through node-webkit . Note that if you are going cross-platform on this and you needed OSX as well you cannot achieve Apple AppStore compliance with node-webkit due to private APIs as a result-of its port of webkit .", "Question : I am planning to develop a cross-platform standalone app to support windows and Linux . TideSDK is my personal choice to go with . But I have been actively following tideSDK tidekit for last 6 months and does not see anything about their product launch . Can we expect tidekit to launch by near future or should we approach some other tool . .. . Answer : TideKit.com and TideKit have been discontinued . This tidekit response mail .. . .. . TideKit was software for developing apps for all platforms simultaneously with a single base of code written in JavaScript . The scope and complexity of the product made it difficult to assemble the platform all at once . This stemmed from a holistic approach to app development for all platforms . While creating a platform for JavaScript developers much of the core engineering is in a variety of lower level languages that affect the speed of development . We considered delivering parts of our platform as we reached milestones but this was not suitable for the start of trials . We were widely criticized for not revealing our technical innovation in advance of our release . In a competitive environment revealing advantages as you go can also mean assimilation as you go . We had already witnessed how quickly our technical advantages could be assimilated by competitors to our open-source TideSDK product . Therefore we held back with a view of delaying the duplication of features by competitors increasing our technical barriers and working to protect our IP and business case until we felt we were ready . In a startup we talk about a Minimum Viable Product MVP . In our case our minimum viable product was much larger and more difficult to achieve . In total approximately three years of research and development was committed with multiple developers working greater than full time hours . A factor that extended the development was an expansion of scope that aimed to lower friction in the app development-process . In Feb 2014 we created a system to queue developers with reservation system for the earliest possible access to TideKit . Our goal was to provide an early trial when it became available . Since the development itself was complex we could not provide a date when ticket holders could start the trial process but it would be following our betas then moving forward as we scaled the platform . We were clear with our language on the site concerning reservations . As a result we expected little confusion about what was being purchased our expectations of timing to market or the terms of purchase for a reservation ticket . Purchasers were not paying for our product at this point but for their position in a queue for a trial of our new technology . We also included a refund policy to ensure the terms of purchase for your ticket were available . The wait has been long but not nearly as long as other difficult engineering challenges including Myo that pre-sold their product and were also delayed before successfully rolling out . Throughout the development cycle we provided updates of our status via posts roadmap page email to our ticket holders and communications on our social channels . We did our best as a team to open ourselves to questions and maintain a social presence . At the end of May 2015 we communicated our strategy to execute a series of focused betas that would have seen the platform revealed publicly and incrementally . We were at a stage that parts of the platform needed developer feedback as we rolled these out consecutively . In the days preparing for our first public beta we recognized the extent to which our brand had been poisoned by our timing to market . A campaign of negativity that had begun several months earlier with followers and ticket holders had taken its toll on our team brand and business . We believed the beta releases would soon bring an end to the negative talk . On July 8 and 9 we faced further eruptions on social media that reached the tipping point . With the discussion no longer about the product nor its future this was far more serious . We failed to bring the product quickly enough for you . As a result we came to the serious decision to discontinue TideKit and dissolve our company . We wish to thank everyone involved that worked on the product and with our team . This includes businesses entrepreneurs and supporters of our vision for app development . Your TideKit Team", "Question : I am interested in creating a desktop application using HTML5+webkit and I d like to be able to build a stand-alone executables for various target platforms like a .exe file for Windows and a .dmg image for Mac OS . I have played around with node-webkit https : github.com shama nodewebkit which seems nice except for the packaging distribution portion . I also stumbled on TideSDK http : www.tidesdk.org but that project seems to be inactive . For example the latest release I saw was a beta from November of 2012 . Yet it seems the core developers have switched to developing TideKit https : www.tidekit.com instead . Does anyone here know if TideKit is intended as a replacement for TideSDK Is TideSDK going away etc . Comment : fyi anyone passing by : TideKit is defunct don t bother . .. . Answer : Electron http : electron.atom.io is the new way to go . I also had an app running on TideSDK https : github.com vinyll worktimer.titanium and I ll have to migrate it to Electron .", "Question : I am interested in creating a desktop application using HTML5+webkit and I d like to be able to build a stand-alone executables for various target platforms like a .exe file for Windows and a .dmg image for Mac OS . I have played around with node-webkit https : github.com shama nodewebkit which seems nice except for the packaging distribution portion . I also stumbled on TideSDK http : www.tidesdk.org but that project seems to be inactive . For example the latest release I saw was a beta from November of 2012 . Yet it seems the core developers have switched to developing TideKit https : www.tidekit.com instead . Does anyone here know if TideKit is intended as a replacement for TideSDK Is TideSDK going away etc . Comment : fyi anyone passing by : TideKit is defunct don t bother . .. . Answer : Well TIDE is now officially a dead project . I just got this email about 15 minutes ago . TideKit.com and TideKit have been discontinued . .. . TideKit was software for developing apps for all platforms simultaneously with a single base of code written in JavaScript . .. . The scope and complexity of the product made it difficult to assemble the platform all at once . This stemmed from a holistic approach to app development for all platforms . While creating a platform for JavaScript developers much of the core engineering is in a variety of lower level languages that affect the speed of development . We considered delivering parts of our platform as we reached milestones but this was not suitable for the start of trials . .. . We were widely criticized for not revealing our technical innovation in advance of our release . In a competitive environment revealing advantages as you go can also mean assimilation as you go . We had already witnessed how quickly our technical advantages could be assimilated by competitors to our open-source TideSDK product . Therefore we held back with a view of delaying the duplication of features by competitors increasing our technical barriers and working to protect our IP and business case until we felt we were ready . .. . In a startup we talk about a Minimum Viable Product MVP . In our case our minimum viable product was much larger and more difficult to achieve . In total approximately three years of research and development was committed with multiple developers working greater than full time hours . A factor that extended the development was an expansion of scope that aimed to lower friction in the app development-process . .. . In Feb 2014 we created a system to queue developers with reservation system for the earliest possible access to TideKit . Our goal was to provide an early trial when it became available . Since the development itself was complex we could not provide a date when ticket holders could start the trial process but it would be following our betas then moving forward as we scaled the platform . .. . We were clear with our language on the site concerning reservations . As a result we expected little confusion about what was being purchased our expectations of timing to market or the terms of purchase for a reservation ticket . Purchasers were not paying for our product at this point but for their position in a queue for a trial of our new technology . We also included a refund policy to ensure the terms of purchase for your ticket were available . The wait has been long but not nearly as long as other difficult engineering challenges including Myo that pre-sold their product and were also delayed before successfully rolling out . .. . Throughout the development cycle we provided updates of our status via posts roadmap page email to our ticket holders and communications on our social channels . We did our best as a team to open ourselves to questions and maintain a social presence . .. . At the end of May 2015 we communicated our strategy to execute a series of focused betas that would have seen the platform revealed publicly and incrementally . We were at a stage that parts of the platform needed developer feedback as we rolled these out consecutively . .. . In the days preparing for our first public beta we recognized the extent to which our brand had been poisoned by our timing to market . A campaign of negativity that had begun several months earlier with followers and ticket holders had taken its toll on our team brand and business . .. . We believed the beta releases would soon bring an end to the negative talk . On July 8 and 9 we faced further eruptions on social media that reached the tipping point . With the discussion no longer about the product nor its future this was far more serious . .. . We failed to bring the product quickly enough for you . As a result we came to the serious decision to discontinue TideKit and dissolve our company . .. . We wish to thank everyone involved that worked on the product and with our team . This includes businesses entrepreneurs and supporters of our vision for app development . .. . Your TideKit Team Comment : Yeah got that one too . I think if they have some decency they should open-source what they have just so we can see if they actually did anything with the money they collected from a fairly large number of people . I have to think they did any maybe some value can be extracted from that code . Comment : 3 years of R D thrown away because of a couple months of rumors That doesn t add up . I wasn t interested in a proprietary solution so didn t buy in and am not planning to press further but this statement seems like it s leaving out some important parts of the story . What poisoning What eruptions Sounds more like a convenient excuse to cover up lack of progress . Comment : If you looked closely at their latest reservations you ll notice that they re nothing more than pre-determined customer names countries listed in the source and rotated through by a timer -- misleading to say the least . gist.github.com anonymous d83b28f8b93badbf5b99 https : gist.github.com anonymous d83b28f8b93badbf5b99 web.archive.org web 20150317094608 https : www.tidekit.com https : web.archive.org web 20150317094608 https : www.tidekit.com reservations Comment : I paid and now I feel like an idiot . And probably I deserve it . Comment : I found it weird that there is no presence of the product online anymore . They seems so close to delivering something so I must assume that whatever happened it was one of the following : 1 . It was a big fat scam . 2 . They were acquired for their technology and the price was so big they felt ashamed of sharing this with us . 3 . they realized that what they had was not working which I think is the best option . In the end I was looking forward to it .", "Question : In TideKit : .. . .. . 1 . How large is the smallest offline executable you can create for Windows respectively Mac including running HTML content in a web view Other solutions like NodeWebKit include a portable Chromium which makes the minimum package at least 25 MB . 2 . What does the legacy support look like for Windows respectively Mac . What OS versions does it support for offline executables using web view for running HTML content .. . Answer : Tidekit offers options to build and package apps that affect the size of the runtime . First TideKit will bundle only what it needs to keep the size of the runtime as small as possible . Builds allow you to optimize based on the requirements of your application the platforms you wish to support or to prioritize for things such as App Store compliance . Besides your code and our runtime the resources you include contribute to the total size . 1 . Packaging can involve bundling the runtime in the app or packaging the app with an installer that will only download a runtime when is not available on the host . Our runtimes are dynamic . The lightest scenario is network packaging with an installer that is auto-generated for you . Hello World can be bytes + the installer size . So perhaps 1 - 2 MB . In this scenario the host is checked for a runtime . If one is found it will be checked for requirements of the app . If it has what it needs there is nothing more . If the runtime on the host needs something it does not have it will fetch it during the install . If there is no runtime it is fetched during the install . Bundle installs include the runtime within the app and will make for larger apps . That size will depend on what you are using . Application bundles could be as low as 15MB range for size . We ll be able to provide more specifics as we reach our release . 2 . TideKit supports the following OS s on the desktop but supports web and mobile OS s so you can develop your app once and deploy for mobile web and desktop . Windows XP .. . Windows Vista .. . Windows 7 .. . Windows 8 .. . OSX 10.6 Snow Leopard .. . OSX 10.7 Lion .. . OSX 10.8 Mountain Lion .. . OSX 10.9 Mavericks .. . Ubuntu 12.04 .. . Ubuntu 12.11 .. . Ubuntu 13.04", "Question : I am planning to develop a cross-platform standalone app to support windows and Linux . TideSDK is my personal choice to go with . But I have been actively following tideSDK tidekit for last 6 months and does not see anything about their product launch . Can we expect tidekit to launch by near future or should we approach some other tool . .. . Answer : Just to be clear - you re not expecting to provide a version of the platform for us to use in 2014 but you re committing to releasing a plan in 2014 in which you will let us know when you plan to release the platform which could be 2015 2016 2017 .. . Just trying to get my development options in-place for 2015 and I d like to know if you plan on having something available in 2015 that can be used for development and if so in which half of the year", "Question : null .. . Answer : Will you plan to release a free version of TideKit for students education or open-source projects https : www.tidekit.com reservations Comment : You as in the Stackoverflow audience Otherwise this is the wrong forum.. . Comment : I writed here because in the footer of the website is the link : Community Q A https : stackoverflow.com questions tagged tidekit . And was there question non-programming like this : 1 https : stackoverflow.com questions 27800197 is-tidekit-still-in-progress 2 https : stackoverflow.com questions 26094684 tidekit-expected-release . Because I writed here . Comment : TideKit does not exist any more . See this answer http : stackoverflow.com a 28204167 3737186", "Question : I want to query with tideSDK a MS-SQL database . How can I realize this in tideSDK My approach was to extend PHP with PDO SQLSRV . But I do not come on . .. . Answer : I understand what you want however there was no native support for MSSQL in TideSDK . Our recent effort TideKit has native support for MSSQL along with other SQL and no SQL databases including Mongo and CouchDB . TideKit is releasing soon . You can find out more at http : tidekit.com or following on twitter at https : twitter.com tidekit .", "Question : I am interested in creating a desktop application using HTML5+webkit and I d like to be able to build a stand-alone executables for various target platforms like a .exe file for Windows and a .dmg image for Mac OS . I have played around with node-webkit https : github.com shama nodewebkit which seems nice except for the packaging distribution portion . I also stumbled on TideSDK http : www.tidesdk.org but that project seems to be inactive . For example the latest release I saw was a beta from November of 2012 . Yet it seems the core developers have switched to developing TideKit https : www.tidekit.com instead . Does anyone here know if TideKit is intended as a replacement for TideSDK Is TideSDK going away etc . Comment : fyi anyone passing by : TideKit is defunct don t bother . .. . Answer : If you look at this blog post they talk about how unsustainable the economical situation is .. . .. . http : www.tidesdk.org blog 2013 04 11 tidesdk-in-numbers .. . .. . and I can t find the tweet that was stating the reasons behind the transition from one project to another . But I guess that the blogpost speaks for itself . Anyway I m delivering a project written in node-webkit because I starded on Tide but for the obvious reasons I had to switch and I m using grunt for packaging and in the end is not that bad . Comment : OK that s basically the conclusion to which I came . I was just looking for something more authoritative .", "Question : I am using TideSDK Developer to create a new desktop app . I m not sure of the differences between TideSDK Developer and TiDev Community 1.3.03 I develop with php language . But I can t use Ti in my project . .. . Answer : TideSDK Developer was stripped down from TiDev Community 1.3 . TiDev community is not compatible with TideSDK and you cannot use it with code using the Ti namespace . Your only choice is to use TideSDK Developer . You must change the namespace on any API reference in a project created using the older TiDev Community to Ti for TideSDK Developer to build the project . Keep in mind TideKit is releasing soon with a new CLI app and will provide platform builds . You can follow recent developments at http : www.tidekit.com . The video of what is coming is here : http : youtu.be aE7gN-d0GhU . This will give you modern tools to use where the experience of creating and your projects is much better ." ] }
[ "yes-answer-long", "yes-answer-short" ]
hybrid
UNK_RELATION
cogl@gpu@32
cogl -- cogl is an open-source @placeholder graphics utilities api .
{ "confidence": [ 50.72756576538086, 50.19640350341797, 50.19640350341797, 45.6665153503418, 44.3646354675293, 44.19568634033203, 44.19568634033203, 44.19568634033203, 43.2399787902832, 42.8938102722168, 42.8938102722168, 42.8938102722168, 42.683433532714844, 42.56002426147461, 41.22914505004883, 40.616539001464844, 40.616539001464844, 40.616539001464844, 40.616539001464844, 39.94268035888672, 39.314659118652344, 39.314659118652344, 39.314659118652344, 39.314659118652344, 38.72330093383789, 38.4832649230957, 38.416473388671875, 36.56650924682617, 35.795448303222656, 35.795448303222656, 35.795448303222656, 34.493568420410156, 34.493568420410156, 34.493568420410156, 34.493568420410156, 34.493568420410156, 32.84483337402344, 32.84483337402344, 32.84483337402344, 32.76852798461914, 29.540042877197266, 29.540042877197266, 28.23816680908203, 28.23816680908203, 28.23816680908203, 28.23816680908203, 24.650161743164062, 22.241580963134766, 16.84705924987793, 16.84705924987793, 16.336942672729492, 12.886439323425293, 12.886439323425293, 12.886439323425293, 12.886439323425293, 12.886439323425293, 12.886439323425293, 12.886439323425293, 12.886439323425293, 12.886439323425293, 12.886439323425293, 12.886439323425293, 12.886439323425293, 12.886439323425293, 12.886439323425293, 12.886439323425293, 12.886439323425293, 12.886439323425293, 12.886439323425293, 12.886439323425293, 12.886439323425293, 12.886439323425293, 12.886439323425293, 12.886439323425293, 12.886439323425293, 12.886439323425293, 12.886439323425293, 12.886439323425293, 12.886439323425293, 12.886439323425293, 12.886439323425293, 12.886439323425293, 12.886439323425293, 12.886439323425293, 12.886439323425293, 12.886439323425293, 12.886439323425293, 12.886439323425293, 12.886439323425293, 12.886439323425293, 12.886439323425293, 12.886439323425293, 12.886439323425293, 12.886439323425293, 12.886439323425293, 12.886439323425293, 12.886439323425293 ], "content": [ "So i search for cogl-onscreen.h : .. . .. . vi usr include cogl cogl cogl.h and search for cogl-onscreen.h keyword : .. . .. . On the top got if defined COGL ENABLE EXPERIMENTAL API .", "Links : .. . .. . Repo with examples https : github.com tpimh vala-cogl .. . Cogl-2.0 VAPI http : blog.golovin.in vala-cogl vapi .. . Cogl-2.0 ValaDoc http : blog.golovin.in vala-cogl doc .. . .. . Hope it can be useful .", "This really helped me in doing Cogl Hello World in Vala : github.com tpimh vala-cogl tree master cogl-hello https : github.com tpimh vala-cogl tree master cogl-hello", "I ve decided to switch to Clutter with Cogl for the drawing but Cogl seems to be somewhat limited for 2D .", "It is also possible that clutter already initializes Cogl so you don t have to do anything to initialize Cogl .", "Clutter 1.12 .. . Cogl 1.10 .. . Vala or C or Python .", "This will not work cause cogl is an abstraction to use OpenGL .", "Cogl is a 3D graphic library based on OpenGL or a fork", "Here is an example C program that is drawing a create which is a textured cube using Cogl : github.com spatulasnout cogl blob master examples crate.c https : github.com spatulasnout cogl blob master examples crate.c", "You should probably ask the Cogl mailing-list .", "I have written a few examples for Cogl in Vala .", "You should use cogl-2.0-experimental .", "Have you read the reference manual developer.gnome.org cogl stable ch01.html https : developer.gnome.org cogl stable ch01.html and the valadoc documentation valadoc.org wiki cogl-1.0 index http : valadoc.org wiki cogl-1.0 index", "If i doesn t include cogl library : .. . .. . i tried dnf search cogl but there s only cogl no such thing cogl2 : .. . .. . I also search for cogl.h no such cogl2 too : .. . .. . I can t use pkg-config to find neither cogl nor cogl2 : .. . .. . So i simply tried cogl : .. . .. . gcc -o hello hello.c pkg-config --cflags --libs glib-2.0 -I usr include cogl .. . .. . it shows a lot of error messages : .. . .. . Any help is much appreciate .", "I don t think you can even initialize Cogl without these which I can oddly only find in the documentation for cogl-2.0 .", "What I m seeing instead is the Cogl path fill covering the face .", "I don t know and Clutter is a 3D GUI toolkit based on Cogl .", "Clutter uses Cogl for rendering but it can also use Cairo for 2D elements .", "I m working on a program that uses Clutter 1.10 and COGL to render elements to the display .", "The source code version I used is : clutter 1.8.4 cogl 1.10.2 can anybody give me some advice", "So How can i use cogl to draw a 3d cube in vala", "There are no CoglRenderer or CoglContext classes in the current vapi file for cogl-1.0 .", "I guess in cogl-1.0 there must be some clutter function that initializes it .", "So does this mean that i can t use cogl directly in vala", "Cairo can use Cogl to draw Cogl will program the GPU pipeline but Cairo will generate the geometry to be submitted so you can have high quality 2D results .", "Cogl is a GPU programming library that internally can use GL or GLES to access the graphics pipeline though in theory it could as easily use DirectX on supported platforms .", "Cogl is a modern 3D graphics API with associated utility APIs designed to expose the features of 3D graphics hardware using a more object oriented design than OpenGL .", "That should be a matter of calling the polygon method valadoc.org api cogl-1.0 Cogl.polygon http : valadoc.org api cogl-1.0 Cogl.polygon with a Vertex array similar to that in this tutorial : opengl-tutorial.org beginners-tutorials http : www.opengl-tutorial.org beginners-tutorials tutorial-4-a-colored-cube", "Cairo already can use GL directly but Cogl has a better state tracking already .", "I ve read two things that you can use raw GL calls within Cogl and that you can use a ClutterCairoTexture .", "Is it possible to get a better looking high performance reflection effect via Clutter COGL", "And the gnome documentation just told me that cogl can draw 3D in a more oo way as shown in the quote above .", "In any case it can t hurt if you learn some OpenGL first since Cogl is a wrapper around OpenGL .", "Save the matrices define your own matrices call your custom drawing code in 3D has to be cogl", "So now i know i have to give it COGL ENABLE EXPERIMENTAL API defined in order to include cogl-onscreen.h .", "Well I assume this hello world program is not compatible with any release version of Cogl .", "I m going to build clutter on mingw environment but when I try to build Cogl there are some compling errors unknow type : GLchar GLintptr GLsizeiptr .", "It would be incredibly useful to know either how to use a Cairo context with a Clutter texture or how 2D drawing is accomplished now in Cogl .", "I can t really understand why you wouldn t be given the ability to change the line width in Cogl but it doesn t seem to be in any of the documentation that I ve read .", "Edit : Since your question was about Clutter + Cogl there is indeed a Vala example here : https : wiki.gnome.org Projects Vala ClutterSamples .. . .. . Edit2 : There is a Hello World tutorial using cogl-2.0 here : http : www.cogl3d.org hello.html .. . .. . As you can see Cogl is much more low-level when you use it standalone without Clutter you have to do a lot of setup code youreself create drawing context create a framebufer create your drawing primitives create a drawing pipeline draw your primitives etc . .", "the Clutter wiki has a set of instructions for building Clutter with mingw : .. . .. . http : wiki.clutter-project.org wiki BuildingClutterOnWindows .. . .. . also if you re using Cogl 1.10 you should use Clutter 1.10 as well .", "The dash pattern I can deal with if I had to but it would definitely be better if I could either continue to use Cairo in an Actor Texture or if Cogl had some way to do it .", "I have known the names of the common gnome libraries : cairo pango gtk clutter and cogl for a long time but recently i actually found out what the the libraries did .", "https : developer.gnome.org cogl-2.0-experimental stable .. . .. . Since there doesn t seem to be any Vala example at all and not many C examples it s difficult to ask your question .", "Edit3 : This blog post shows how to integrate Cogle into Clutter : http : radialmind.blogspot.de 2012 02 cogl-or-opengl-for-3d-clutter-scenes.html .. . .. . So this is how you jump out of the clutter loop : Define a custom actor .", "I just found an so question about clutter and Cogl : stackoverflow.com questions 16170085 http : stackoverflow.com questions 16170085 filling-a-custom-shaped-clutter-actor-with-a-cairo-drawn-canvas", "First step recognize it missing type name CoglOnscreen : .. . .. . Now i know CoglOnscreen supposed to be located somewhere so i tried search CoglOnscreen keyword inside include dir : .. . .. . The last line above shown that cogl-onscreen.h have CoglOnscreen defined .", "There are a bunch of other Clutter and COGL methods that manipulate materials shaders and so forth but I have little to no OpenGL expertise so I don t have any idea if I could get something along those lines to do what I want or even how to find examples of something similar I could work off of .", "yes Cairo is a high quality 2D drawing API and GTK+ uses Cairo to draw itself .", "Clutter can use GDK the GTK+ windowing system API to talk to the windowing system surfaces and get input events .", "Clutter will not replace GTK+ : GTK+ is a very complex library that provides system integration complex widgets and other utility API that Clutter has no interest in providing .", ".. . .. . I might have a fundamental misunderstanding here .. . .. . I think of Actors as 3D polygon things .", "I think of their colours as either vertex colors or as texture-mapping .", "In this light I have been trying to draw a custom Actor and fill it with stuff drawn via Cairo .", "I m not getting anywhere .", "Code is included below in Vala .", "Can anyone set me right about Clutter s basics the docs just don t cut it or if I m close help me get that code working .", "I expect to see a rounded rectangle with a smiley face within .", "I think the paint is being done after the drawme .. . .. . If you set the Clutter.Color to 0001 in method paint you ll see this .", "Just spoke to Clutter devs on clutter .", "The news is mixed .", "Seems I have a paradigm problem but it wasn t clear what that was .", "Also seems that Clutter as a toolkit is facing radical changes that might make it unwise for my intended use .", "Looks like we have to wait to see how it folds-into Gnome and GTK in the coming year .", "I m not a Clutter expert but I think Culutter has pre-paint and post-paint functions .", "Maybe you should take a look at these .", "I am new to clutter and pyclutter .", "I have been trying to use pyclutter .", "I haven t found any good tutorial for it so far .", "I mean nothin that really explains properly .", "I saw a couple of example programs but when I tried to use pyclutter I dint get any good results .", "The commands are anailable but their proper use is what is causing a problem .", "I tried to render a line using pyclutter but haven t even been able to do that .", "My code : .. . .. . Its possible that my mistakes are really stupid but i d be really grateful if anyone could point me to a good tutorial where i can learn clutter pyclutter from .", "In OpenGL world the drawing must be done for everyframe .", "That s mean your code will be executed only once as soon as you window will flip you ll not see the line .", "You can create a custom actor for that and put your instruction in the do paint method : .. . .. . And then use it in your example like the Text actor :", "In the examples of the clutter package check custom-actor.py", "I am new to clutter http : www.clutter-project.org and pyclutter http : wiki.clutter-project.org wiki PyClutter .", "I mean nothing that really explains properly .", "I saw a couple of example programs but when I tried to use pyclutter I didn t get any good results .", "The commands are available but their proper use is what is causing a problem .", "My code : .. . .. . It s possible that my mistakes are really stupid but I d be really grateful if anyone could point me to a good tutorial where i can learn clutter pyclutter from and help me .", "possible duplicate of programming using pyclutter http : stackoverflow.com questions 4985686 programming-using-pyclutter", "What about this one : http : www.tuxradar.com content clutter-beginners-tutorial .", "It looks pretty decent .", "Thanks .", "I ll try it out .", "That s not even python", "I m a little confused about the relationship of the libraries listed above here are what I think : .. . .. . 1 .", "Cario is a 2D graphic library and GTK+ uses it to render widgets .", "Cario is low-level .", "2 .", "If this is correct will Clutter replace GTK+ someday", "And.. .", "If you think there is a better place to ask this question or some books I should read first please tell me", "I m self-learning programming for interest ." ] }
{ "confidence": [ 67.41936492919922, 64.20222473144531, 63.075721740722656, 58.981117248535156, 56.58382797241211, 55.947105407714844, 54.86785888671875, 49.060821533203125, 46.902259826660156, 46.17856979370117, 37.416866302490234, 12.887091636657715 ], "content": [ "Question : Cogl is a modern 3D graphics API with associated utility APIs designed to expose the features of 3D graphics hardware using a more object oriented design than OpenGL . The library has primarily been driven by the practical needs of Clutter but it is not tied to any one toolkit or even constrained to developing UI toolkits . I have known the names of the common gnome libraries : cairo pango gtk clutter and cogl for a long time but recently i actually found out what the the libraries did . And the gnome documentation just told me that cogl can draw 3D in a more oo way as shown in the quote above . But i find it hard to get started . So How can i use cogl to draw a 3d cube in vala Is it possible to animate the cube with clutter after looking through the internet i couldn t find much . so i went to Github to look at some other peoples code but most of the code is made in C and seemed hard to read . Can you show some examples or links to some examples written in vala can also be in C but it makes it a little harder to read .. . .. . Thanks in advance Comment : Have you read the reference manual developer.gnome.org cogl stable ch01.html https : developer.gnome.org cogl stable ch01.html and the valadoc documentation valadoc.org wiki cogl-1.0 index http : valadoc.org wiki cogl-1.0 index Comment : yes . The problem is that i m having a hard time finding full examples . Comment : That should be a matter of calling the polygon method valadoc.org api cogl-1.0 Cogl.polygon http : valadoc.org api cogl-1.0 Cogl.polygon with a Vertex array similar to that in this tutorial : opengl-tutorial.org beginners-tutorials http : www.opengl-tutorial.org beginners-tutorials tutorial-4-a-colored-cube Comment : Ok I see what you mean the documentation of the vapi binding is not quite complete I just tried to setup up an example but I can t seem to find out how to create a PangoRenderer which is apparently required to render anything at all . Comment : Here is an example C program that is drawing a create which is a textured cube using Cogl : github.com spatulasnout cogl blob master examples crate.c https : github.com spatulasnout cogl blob master examples crate.c .. . Answer : I have written a few examples for Cogl in Vala . Links : .. . .. . Repo with examples https : github.com tpimh vala-cogl .. . Cogl-2.0 VAPI http : blog.golovin.in vala-cogl vapi .. . Cogl-2.0 ValaDoc http : blog.golovin.in vala-cogl doc .. . .. . Hope it can be useful .", "Question : Cogl is a modern 3D graphics API with associated utility APIs designed to expose the features of 3D graphics hardware using a more object oriented design than OpenGL . The library has primarily been driven by the practical needs of Clutter but it is not tied to any one toolkit or even constrained to developing UI toolkits . I have known the names of the common gnome libraries : cairo pango gtk clutter and cogl for a long time but recently i actually found out what the the libraries did . And the gnome documentation just told me that cogl can draw 3D in a more oo way as shown in the quote above . But i find it hard to get started . So How can i use cogl to draw a 3d cube in vala Is it possible to animate the cube with clutter after looking through the internet i couldn t find much . so i went to Github to look at some other peoples code but most of the code is made in C and seemed hard to read . Can you show some examples or links to some examples written in vala can also be in C but it makes it a little harder to read .. . .. . Thanks in advance Comment : Have you read the reference manual developer.gnome.org cogl stable ch01.html https : developer.gnome.org cogl stable ch01.html and the valadoc documentation valadoc.org wiki cogl-1.0 index http : valadoc.org wiki cogl-1.0 index Comment : yes . The problem is that i m having a hard time finding full examples . Comment : That should be a matter of calling the polygon method valadoc.org api cogl-1.0 Cogl.polygon http : valadoc.org api cogl-1.0 Cogl.polygon with a Vertex array similar to that in this tutorial : opengl-tutorial.org beginners-tutorials http : www.opengl-tutorial.org beginners-tutorials tutorial-4-a-colored-cube Comment : Ok I see what you mean the documentation of the vapi binding is not quite complete I just tried to setup up an example but I can t seem to find out how to create a PangoRenderer which is apparently required to render anything at all . Comment : Here is an example C program that is drawing a create which is a textured cube using Cogl : github.com spatulasnout cogl blob master examples crate.c https : github.com spatulasnout cogl blob master examples crate.c .. . Answer : There are no CoglRenderer or CoglContext classes in the current vapi file for cogl-1.0 . I don t think you can even initialize Cogl without these which I can oddly only find in the documentation for cogl-2.0 . https : developer.gnome.org cogl-2.0-experimental stable .. . .. . Since there doesn t seem to be any Vala example at all and not many C examples it s difficult to ask your question . You should probably ask the Cogl mailing-list . Edit : Since your question was about Clutter + Cogl there is indeed a Vala example here : https : wiki.gnome.org Projects Vala ClutterSamples .. . .. . Edit2 : There is a Hello World tutorial using cogl-2.0 here : http : www.cogl3d.org hello.html .. . .. . As you can see Cogl is much more low-level when you use it standalone without Clutter you have to do a lot of setup code youreself create drawing context create a framebufer create your drawing primitives create a drawing pipeline draw your primitives etc . . I don t know how Clutter works internally but I think it does a lot of that work for you . In any case it can t hurt if you learn some OpenGL first since Cogl is a wrapper around OpenGL . Edit3 : This blog post shows how to integrate Cogle into Clutter : http : radialmind.blogspot.de 2012 02 cogl-or-opengl-for-3d-clutter-scenes.html .. . .. . So this is how you jump out of the clutter loop : Define a custom actor . I did one in C another example uses the C++ version . See also here . Define some properties that modify how things are rendered and some other general behavior . Override the paint loop . Save the matrices define your own matrices call your custom drawing code in 3D has to be cogl and then put the matrices back as you found them . Comment : I guess in cogl-1.0 there must be some clutter function that initializes it . Comment : So does this mean that i can t use cogl directly in vala so i will have to use C instead Comment : You may have to write some C stubs or import some missing functions using a vapi file . Maybe I have overlooked something in the clutter binding though . Comment : It is also possible that clutter already initializes Cogl so you don t have to do anything to initialize Cogl . Comment : I just found an so question about clutter and Cogl : stackoverflow.com questions 16170085 http : stackoverflow.com questions 16170085 filling-a-custom-shaped-clutter-actor-with-a-cairo-drawn-canvas", "Question : I m a little confused about the relationship of the libraries listed above here are what I think : .. . .. . 1 . Cario is a 2D graphic library and GTK+ uses it to render widgets . Cario is low-level . 2 . Cogl is a 3D graphic library based on OpenGL or a fork I don t know and Clutter is a 3D GUI toolkit based on Cogl . If this is correct will Clutter replace GTK+ someday And.. . If you think there is a better place to ask this question or some books I should read first please tell me I m self-learning programming for interest . .. . Answer : yes Cairo is a high quality 2D drawing API and GTK+ uses Cairo to draw itself . Cogl is a GPU programming library that internally can use GL or GLES to access the graphics pipeline though in theory it could as easily use DirectX on supported platforms . Clutter uses Cogl for rendering but it can also use Cairo for 2D elements . Clutter will not replace GTK+ : GTK+ is a very complex library that provides system integration complex widgets and other utility API that Clutter has no interest in providing . the future is going to be a bit more gray than a black-and-white replacement . Cairo can use Cogl to draw Cogl will program the GPU pipeline but Cairo will generate the geometry to be submitted so you can have high quality 2D results . Cairo already can use GL directly but Cogl has a better state tracking already . Clutter can use GDK the GTK+ windowing system API to talk to the windowing system surfaces and get input events . in the future it s entirely possible that GTK+ will use Clutter internally as the base for its widgets - though that s still a work in progress . in short a diagram could be : Comment : To bring it home a little if you are an app developer you might use gtk to create the window menus toolbars etc and use clutter to draw any app content that is drawing area like and doesn t fit into the widget-based app metaphor . Within clutter you may dig down to Cairo for specific drawing tasks .", "Question : My environment is Fedora 21 i play around with hello tutorial from http : www.cogl3d.org hello.html it shows : .. . .. . Building the example .. . .. . If you save the above code to a file named hello.c then you can compile the example as follows : .. . .. . gcc -o hello hello.c pkg-config --cflags --libs cogl2 glib-2.0 .. . .. . but where can i find cogl2 library If i doesn t include cogl library : .. . .. . i tried dnf search cogl but there s only cogl no such thing cogl2 : .. . .. . I also search for cogl.h no such cogl2 too : .. . .. . I can t use pkg-config to find neither cogl nor cogl2 : .. . .. . So i simply tried cogl : .. . .. . gcc -o hello hello.c pkg-config --cflags --libs glib-2.0 -I usr include cogl .. . .. . it shows a lot of error messages : .. . .. . Any help is much appreciate . UPDATE i ve tried @CYB3R solution but still no luck : .. . Answer : First step recognize it missing type name CoglOnscreen : .. . .. . Now i know CoglOnscreen supposed to be located somewhere so i tried search CoglOnscreen keyword inside include dir : .. . .. . The last line above shown that cogl-onscreen.h have CoglOnscreen defined . So i search for cogl-onscreen.h : .. . .. . vi usr include cogl cogl cogl.h and search for cogl-onscreen.h keyword : .. . .. . On the top got if defined COGL ENABLE EXPERIMENTAL API . So now i know i have to give it COGL ENABLE EXPERIMENTAL API defined in order to include cogl-onscreen.h . Search again with COGL ENABLE EXPERIMENTAL API as keyword : .. . .. . That s the end i need to add -D COGL ENABLE EXPERIMENTAL 2 0 API : .. . .. . enter image description here http : i.stack.imgur.com XzYs1.png .. . .. . Available options for pkg-config can be figure out by autocomplete : Comment : Thanks for publishing the solution . This really helped me in doing Cogl Hello World in Vala : github.com tpimh vala-cogl tree master cogl-hello https : github.com tpimh vala-cogl tree master cogl-hello", "Question : I have a collection of objects that I use for drawing and have always used Cairo for that . I ve decided to switch to Clutter with Cogl for the drawing but Cogl seems to be somewhat limited for 2D . So far I m already missing being able set the dash pattern for a line as well as the line width . I ve read two things that you can use raw GL calls within Cogl and that you can use a ClutterCairoTexture . Unfortunately I can t find any documentation on using GL calls inside of cogl begin gl cogl end gl and ClutterCairoTexture has apparently been deprecated . It would be incredibly useful to know either how to use a Cairo context with a Clutter texture or how 2D drawing is accomplished now in Cogl . I can t really understand why you wouldn t be given the ability to change the line width in Cogl but it doesn t seem to be in any of the documentation that I ve read . The dash pattern I can deal with if I had to but it would definitely be better if I could either continue to use Cairo in an Actor Texture or if Cogl had some way to do it . Thanks . .. . Answer : Turns out the answer is to continue using Cairo but create a ClutterCanvas and add it to whatever ClutterActor you re drawing to . After that you just need to connect a function to the draw signal which gives the CairoContext as a parameter .", "Question : I m going to build clutter on mingw environment but when I try to build Cogl there are some compling errors unknow type : GLchar GLintptr GLsizeiptr . The source code version I used is : clutter 1.8.4 cogl 1.10.2 can anybody give me some advice Thank you very much .. . Answer : the Clutter wiki has a set of instructions for building Clutter with mingw : .. . .. . http : wiki.clutter-project.org wiki BuildingClutterOnWindows .. . .. . also if you re using Cogl 1.10 you should use Clutter 1.10 as well . Comment : Thank you very much I have compiled clutter successfully on mingw after I updated the latest GL related head file from official website . Thank you for your advice :", "Question : My environment is Fedora 21 i play around with hello tutorial from http : www.cogl3d.org hello.html it shows : .. . .. . Building the example .. . .. . If you save the above code to a file named hello.c then you can compile the example as follows : .. . .. . gcc -o hello hello.c pkg-config --cflags --libs cogl2 glib-2.0 .. . .. . but where can i find cogl2 library If i doesn t include cogl library : .. . .. . i tried dnf search cogl but there s only cogl no such thing cogl2 : .. . .. . I also search for cogl.h no such cogl2 too : .. . .. . I can t use pkg-config to find neither cogl nor cogl2 : .. . .. . So i simply tried cogl : .. . .. . gcc -o hello hello.c pkg-config --cflags --libs glib-2.0 -I usr include cogl .. . .. . it shows a lot of error messages : .. . .. . Any help is much appreciate . UPDATE i ve tried @CYB3R solution but still no luck : .. . Answer : You should use cogl-2.0-experimental . This is what I get on my machine : Comment : hi it still doesn t works . Comment : Well I assume this hello world program is not compatible with any release version of Cogl . You should use version from git in order to compile it and it should be compiled pkg-config --cflags --libs cogl2 . Could you please post the error message you get Comment : I found the solution thanks anyway :", "Question : I m a little confused about the relationship of the libraries listed above here are what I think : .. . .. . 1 . Cario is a 2D graphic library and GTK+ uses it to render widgets . Cario is low-level . 2 . Cogl is a 3D graphic library based on OpenGL or a fork I don t know and Clutter is a 3D GUI toolkit based on Cogl . If this is correct will Clutter replace GTK+ someday And.. . If you think there is a better place to ask this question or some books I should read first please tell me I m self-learning programming for interest . .. . Answer : I think the relationship between libraries are interdependent that is a library can not stand on its own . It needs to depend on others in order to run .", "Question : null .. . Answer : I m working on a program that uses Clutter 1.10 and COGL to render elements to the display . I ve created a set of ClutterTextures that I am rendering video to and I d like the video textures to have reflections . The standard way to implement this seems to be a callback every time the texture is painted with code similar to : .. . .. . This is then hooked to the paint signal on the ClutterTexture . There s a similar bit of code here http : mathijs.dumon.alwaysdata.net entry clutterreflectioneffect-class that does something similar . Google cache since the page has been down today http : webcache.googleusercontent.com search q cache 3ahttp : mathijs.dumon.alwaysdata.net entry clutterreflectioneffect-class .. . .. . The problem that I m having is that the reflection effect is causing a performance hit - 5 7 fps is being lost when I enable it . Part of the problem is likely the low-power hardware I m using a Raspberry Pi . I ve managed to do something similar to what this code does by setting up a clone of the texture and making it somewhat transparent . This causes no performance hit whatsoever . However unlike the paint callback method the reflection has hard edges and doesn t fade out . I d like to get a better looking reflection effect without the performance hit . I m wondering if there s some way to get a similar effect that doesn t require so much work per paint.. . There are a bunch of other Clutter and COGL methods that manipulate materials shaders and so forth but I have little to no OpenGL expertise so I don t have any idea if I could get something along those lines to do what I want or even how to find examples of something similar I could work off of . Is it possible to get a better looking high performance reflection effect via Clutter COGL Comment : you may not get any better performance on a Raspberry Pi the GL capabilities of that platform are pretty low . Comment : @ebassi yeah I realize my hardware may be limiting me.. . I still want to try anyhow :", "Question : null .. . Answer : Clutter 1.12 .. . Cogl 1.10 .. . Vala or C or Python . .. . .. . I might have a fundamental misunderstanding here .. . .. . I think of Actors as 3D polygon things . I think of their colours as either vertex colors or as texture-mapping . In this light I have been trying to draw a custom Actor and fill it with stuff drawn via Cairo . I m not getting anywhere . Code is included below in Vala . Can anyone set me right about Clutter s basics the docs just don t cut it or if I m close help me get that code working . I expect to see a rounded rectangle with a smiley face within . What I m seeing instead is the Cogl path fill covering the face . I think the paint is being done after the drawme .. . .. . If you set the Clutter.Color to 0001 in method paint you ll see this . Comment : Just spoke to Clutter devs on clutter . The news is mixed . Seems I have a paradigm problem but it wasn t clear what that was . Also seems that Clutter as a toolkit is facing radical changes that might make it unwise for my intended use . Looks like we have to wait to see how it folds-into Gnome and GTK in the coming year . Comment : I m not a Clutter expert but I think Culutter has pre-paint and post-paint functions . Maybe you should take a look at these .", "Question : I am new to clutter and pyclutter . I have been trying to use pyclutter . I haven t found any good tutorial for it so far . I mean nothin that really explains properly . I saw a couple of example programs but when I tried to use pyclutter I dint get any good results . The commands are anailable but their proper use is what is causing a problem . I tried to render a line using pyclutter but haven t even been able to do that . My code : .. . .. . Its possible that my mistakes are really stupid but i d be really grateful if anyone could point me to a good tutorial where i can learn clutter pyclutter from . .. . Answer : This will not work cause cogl is an abstraction to use OpenGL . In OpenGL world the drawing must be done for everyframe . That s mean your code will be executed only once as soon as you window will flip you ll not see the line . You can create a custom actor for that and put your instruction in the do paint method : .. . .. . And then use it in your example like the Text actor : Comment : In the examples of the clutter package check custom-actor.py", "Question : I am new to clutter http : www.clutter-project.org and pyclutter http : wiki.clutter-project.org wiki PyClutter . I have been trying to use pyclutter . I haven t found any good tutorial for it so far . I mean nothing that really explains properly . I saw a couple of example programs but when I tried to use pyclutter I didn t get any good results . The commands are available but their proper use is what is causing a problem . I tried to render a line using pyclutter but haven t even been able to do that . My code : .. . .. . It s possible that my mistakes are really stupid but I d be really grateful if anyone could point me to a good tutorial where i can learn clutter pyclutter from and help me . Comment : possible duplicate of programming using pyclutter http : stackoverflow.com questions 4985686 programming-using-pyclutter .. . Answer : What about this one : http : www.tuxradar.com content clutter-beginners-tutorial . It looks pretty decent . Comment : Thanks . I ll try it out . Comment : That s not even python" ] }
[ "yes-answer-long", "yes-answer-short" ]
gpu
UNK_RELATION
soil@c++@92
soil -- soil or simple opengl image library is a lightweight image loading library for for @placeholder and c that is cross-platform .
{ "confidence": [ 64.13483428955078, 53.1949348449707, 52.158878326416016, 51.10845184326172, 49.14020538330078, 48.712459564208984, 48.271244049072266, 46.53900909423828, 46.53900909423828, 46.230079650878906, 46.19976806640625, 45.28229904174805, 45.19839859008789, 45.07830047607422, 44.58298110961914, 44.552669525146484, 43.49028396606445, 43.49028396606445, 43.4599723815918, 43.30031204223633, 42.18065643310547, 41.59171676635742, 41.31092071533203, 41.195655822753906, 40.725643157958984, 40.60051727294922, 40.33830261230469, 40.28208923339844, 40.24158477783203, 39.899452209472656, 39.84613037109375, 39.242759704589844, 38.80675506591797, 38.712310791015625, 38.6872673034668, 38.6872673034668, 38.6872673034668, 38.6872673034668, 38.64216613769531, 38.594486236572266, 38.594486236572266, 38.594486236572266, 38.594486236572266, 38.536502838134766, 37.652645111083984, 37.652645111083984, 37.652645111083984, 37.652645111083984, 37.50178909301758, 37.50178909301758, 37.50178909301758, 37.50178909301758, 37.46128463745117, 37.1175422668457, 37.07009506225586, 36.5599479675293, 36.5599479675293, 36.52395248413086, 36.30998992919922, 36.30998992919922, 36.192161560058594, 36.192161560058594, 36.192161560058594, 35.42274475097656, 35.418949127197266, 35.418949127197266, 35.418949127197266, 35.418949127197266, 35.418949127197266, 35.25032043457031, 35.25032043457031, 35.11933517456055, 34.35017395019531, 34.32625198364258, 34.32625198364258, 34.32625198364258, 34.32625198364258, 34.32625198364258, 34.32625198364258, 33.80882263183594, 33.21282958984375, 33.016624450683594, 32.717010498046875, 32.646507263183594, 32.646507263183594, 31.857677459716797, 31.475345611572266, 31.371593475341797, 31.14151382446289, 31.14151382446289, 31.14151382446289, 31.14151382446289, 31.14151382446289, 30.324748992919922, 30.324748992919922, 30.196735382080078, 30.06134796142578, 30.048818588256836, 30.048818588256836, 30.048818588256836 ], "content": [ "My question is is SOIL simple opengl image library thread compatible", "you have to link against the SOIL library : .. . .. . SOIL has to be in caps", "is the library called just SOIL not SOIL.lib", "This tutorial http : open.gl textures states the following regarding the SOIL library http : www.lonesock.net soil.html : .. . .. . Although SOIL includes functions to automatically create a texture from an image it uses features that aren t available in modern OpenGL .", "How do I link SOIL for a OpenGL in Ubuntu", "I tried a lot of examples for loading and displaying images in openGL using SOIL .", "SOIL method here http : stackoverflow.com questions 17370828 save-opengl-output-using-devil-or-soil gives flipped vertically image .", "I need use SOIL library in my project .", "I m trying to use the SOIL library with freeglut and glew .", "After that you have to install the soil library to use -lSOIL .", "Because of this we ll simply use SOIL as image loader and create the texture ourselves .", "For testing purposes I am using a 256x256 bitmap image and am loading it through the SOIL library which I have built and statically linked .", ".. . .. . ORIGINAL QUESTION .. . .. . I am currently trying to load an image using SOIL to use with OpenGL .", "Here s the answer that helped me : SOIL : Unable to open file in C++ and OpenGL with Xcode http : stackoverflow.com questions 13012026 soil-unable-to-open-file-in-c-and-opengl-with-xcode", "undefined-reference mean that you need link soil library to your application .", "Yeah turns out that SOIL scaled the image to a power of two .", "SOIL is a tiny library that provides TGA BMP and DDS support .", "I m currently focusing on texturing attempting to build a house using the SOIL library .", "The issue you have at hand is that SOIL is probably not the most efficient image loader there is .", "I can load a texture just fine in SOIL OpenGL normally .", "However the SOIL library doesn t come in a 64bit 32bit mode .", "read the SOIL sample page .", "Another possible option is to try to build your own Visual Studio 2012 compatible SOIL library from source it appears the source for SOIL is available at that link .", "How would I link in or compile SOIL http : lonesock.net soil.html into my C++ OpenGL project on Mac OS X", "Since SOIL is not maintained anymore not a bad thing necessarily you could try stb image the library SOIL is based on which is a just a c header and a good portable solution .", "I was originally thinking that I did not building linking the SOIL library properly so something funky was going on trying to load the image .", "I m relatively inexperienced with the workings of downloading making and linking libraries and I was hoping to get SOIL Simple OpenGL Image Library so that I can use it in Xcode newest version on Mac OS X El Capitan with OpenGL 3.3 and GLFW in C++ .", "@Hricer : SOIL is Open Source .", "You can just look at the source from SOIL. .", "Since it seems to be an issue with SOIL rather than GL check the last SOIL error with SOIL last result after calling SOIL load image .", "I am using SOIL like this :", "When I try to use the SOIL library in my code I get the following error updated : .. . .. . My Steps .. . .. . I followed the process indicated by the make file in SOIL : make make install .", "But nothing that refers to the SOIL function-call or anything that alludes to a problem before then that could stop SOIL working that i am aware of .", "The stb image library used by SOIL does not support 64-bit PNG : http : nothings.org stb image.c .. . 2 .", "Would it be possible to supply both the image you are trying to load and the one being output by SOIL", "However this does not solve the problem because SOIL returns the contents of image as an array of unsigned bytes not 16-bit values .", "I don t know SOIL but it looks as-if it would scale up the image to the next power of two size .", "I have tried using both soil and devil image libraries but the screenshots created are completely black images .", "In order to generate mipmaps and possibly fix the texture you should change the parameters of the soil loading function to .. . .. . This will automatically generate mipmaps from the OpenGL library as you did not call afterwards to glGenerateMipmaps .", "it s SOIL i tried everything but it didn t work", "Can you get a traceback to where-in SOIL it crashes", "I m trying to load a texture file with SOIL .", "Is this when you compile SOIL or your program", "You need a SOIL build for VC++ .", "I think the problem is in OpenGL however the functions that are not finding SOIL are available and working on my project .", "I have decided to use SOIL to load images for use with OpenGL for my project .", "I ve been trying to link SOIL http : lonesock.net soil.html for a project I am working on with OpenGL .", "Also did you refer to stackoverflow.com questions 19341704 http : stackoverflow.com questions 19341704 multi-threading-support-in-soil-for-opengl", "You don t actually link with the glew or SOIL libraries .", "SOIL uploads and all and returns the generated ID .", "I wish to use SOIL to load the texture .", "@BartekBanachewicz : How can I set this in SOIL loader", "One thing you could try is to change the platform toolset in your Visual Studio 2012 build to be a previous version that is compatible with the prebuilt SOIL library .", "i m using Soil in my project i add soil in my include directories and in my precompiled header i include Soil.h .", "I m trying to use the SOIL simple opengl image library in SDL at compile-time using CodeBlocks in WindowsXP is giving the following error 57 times : .. . .. . G : mingw32 lib libSOIL.a SOIL.o : SOIL.c undefined-reference to glTexParameteri @ 12 .", "I am using several libraries including the SOIL and GLEW libraries their respective header-files and the SDL2 OpenGL and Corefoundation frameworks .", "So I ve been playing around with SOIL for openGL class and I am having a weird problem with my project .", "Look in Simple OpenGL Image Library projects makefile then create a directory there called obj .", "I m getting these errors : .. . .. . I found a lot of other SO questions about linking to the SOIL library but none worked for me .", "Some suggested linking in other libraries but those seemed to be gcc specific - it was libgcc.a others suggested building the SOIL library again .", "I can not find SOIL build for VC++ to download .", "Since SOIL is in the public domain this is perfectly fine to do .", "Compiling FreeGLUT and SOIL statically for X64 worked for me .", "Now I am using SOIL http : www.lonesock.net soil.html for loading the images in my game .", "I have tried SOIL and SDL but he texture that it is displaying is white .", "I am trying to load a height map for terrain using SOIL .", "How can I load 16-bit height map with SOIL", "Frankly I don t see what SOIL has to do with anything in this question .", "I linked included and did everything necessary to use SOIL and it s functions .", "Trying to complete a basic texture map to surface using OpenGL and SOIL but I am not generating anything .", "It is not so much whether SOIL is thread safe as it is whether you have a valid OpenGL context in your worker thread .", "This program compiles with no problem and runs correctly but when I add any function into my code from the SOIL library I receive a linker-error .", "The issue is likely given the vintage 2008 of the SOIL library as documented at this link http : www.lonesock.net soil.html that whatever version of Visual Studio was used to build the prebuilt SOIL library predates Visual Studio 2012 and there is thus a binary incompatibility between your program and the SOIL.lib .", "Look around to see if there is a SOIL function that will load a regular 2D texture .", "import soil project your downloaded projects- vc8.0 to your current solution .", "What s the problem with using SOIL when it produces a correct result", "I will do away with SOIL and try something as you suggested .", "I m having some real problems using SOIL in Ubuntu 14.04 .", "Once I change the line that loads the texture to a SOIL function it now fails .", "Properties C C++ General Additional include directories - Add . SOIL src .. . .. . 4 .", "also see Simple OpenGL Image Library projects makefile makefile : .. . .. . CXXFLAGS -O2 -s -Wall -m64 .. . .. . Make install and replace libSOIL.a again .", "i m really sorry for my ignorance but how build SOIL for vc++ in VS2012", "I ve tried rebuilding the library and I have quintuple checked all my includes and directories.Here are the SOIL includes directory I have : .. . .. . And here s my code .", "When my debugger gets to the SOIL function and I attempt to step into the function the programme returns a segmentation-fault and quits without even sending me to the SOIL function .", "I then built the VC8 project and used that .lib as suggested here SOIL not linking correctly http : stackoverflow.com questions 9629349 soil-not-linking-correctly but that didn t work either .", "Hence if the intention is to separate the Image loading overhead it is recommended to load the image file into a buffer using a library in a separate thread then use that buffer to glTexImage2D in the main thread .", "Or should I use another image library for this task", "I m currently using Assimp to handle loading the models scenes and SOiL to read the textures and I haven t found any simple way to separate transparent materials from opaque ones .", "If you want to load an array of 16-bit data don t even bother with SOIL .", "Ok so I m trying to use SOIL to load a .png file that s in a textures folder .", "I m not sure if I m doing something wrong in regards to SOIL but my hunch is that the file is simply not being read .", "If you removed that flag SOIL FLAG COMPRESS TO DXT it is very likely SOIL would pass the data through without rescaling it .", "And yes each time SOIL loads a texture it is assigned a new GLuint and yes the textures are loaded prior to use .", "This should not work in debug mode either you have no OpenGL context when you make this call and you are telling SOIL to load the texture into the current GL context .", "I m still fairly new to OpenGL SOIL so if I did something stupid don t be mad : Does it have to do with my flag on the load being RGB instead of RGBA", "So I want to load a PNG image using SOIL like this : .. . .. . When I use a JPEG image everything is loaded and rendered as I expect.. . but when I try to load a PNG image I get the following result : .. . .. .", "You need to link with the OpenGL library as well .", "Also i m not familiar with SOIL but you probably should just be using 2D textures not cube maps .", "but when I debug the programming.it said this error.I am using SOIL to draw something .", "SOIL has a function to load images from memory SOIL load OGL texture load from memory unsigned char image in RAM .. . ." ] }
{ "confidence": [ 68.56050872802734, 64.6619644165039, 64.6600112915039, 62.77786636352539, 62.378170013427734, 62.29498291015625, 61.660316467285156, 60.44070816040039, 59.692989349365234, 59.182281494140625, 58.399471282958984, 57.917789459228516, 57.85750961303711, 56.29764938354492, 55.33573532104492, 54.54530715942383, 54.39106750488281, 53.945343017578125, 53.56435775756836, 52.16592025756836 ], "content": [ "Question : This tutorial http : open.gl textures states the following regarding the SOIL library http : www.lonesock.net soil.html : .. . .. . Although SOIL includes functions to automatically create a texture from an image it uses features that aren t available in modern OpenGL . Because of this we ll simply use SOIL as image loader and create the texture ourselves . That s OK but what functionality And what other functions from the library are similarly affected I have had a google but not turned up any info on this . I have seen it used in opengl-es apps also which IIRC only has the core opengl functionality . Can anyone here shine any light on whether all functions are suspect or if it is just load ogl texture . Comment : You can just look at the source from SOIL. . Comment : That is true but would count as an answer to many questions about open-source libraries . It was going to be my next option though . .. . Answer : I m pretty sure the problem is calling glGetString GL EXTENSIONS which has been deprecated in OpenGL 3.0 and removed in core profile 3.1 . The correct approach is to From OpenGL Forum http : www.opengl.org discussion boards showthread.php 165539-GL EXTENSIONS-replacement : Comment : Nice one thanks for finding that and the suggested fix . Looks like something for me to do in my spare time", "Question : null .. . Answer : I m trying to use the SOIL simple opengl image library in SDL at compile-time using CodeBlocks in WindowsXP is giving the following error 57 times : .. . .. . G : mingw32 lib libSOIL.a SOIL.o : SOIL.c undefined-reference to glTexParameteri @ 12 . I think the problem is in OpenGL however the functions that are not finding SOIL are available and working on my project . I am importing the heading soil.h and put the libSoil.a along with the SDL libs . The method that is giving error : Comment : You need to link with the OpenGL library as well . Append e.g . -lGL to your build command . Comment : linker options : -lmingw32 -lSDL2main -lSDL2 librarys : opengl32 glu32 libSOIL of my project . Comment : Please give the exact command you type to compile your project Comment : I use codeblocks and not by compiler command-line . And the links and libraries are the ones i wrote . If even asism be a command-line to compile I m sorry it did not know .", "Question : null .. . Answer : I want to take screenshot from OpenGL window and save it to image file of any type . DevIL method described here http : stackoverflow.com a 13517172 4367108 gives correct PNG . Replace ilSaveImage with ilSave and you can save image in different formats . SOIL method here http : stackoverflow.com questions 17370828 save-opengl-output-using-devil-or-soil gives flipped vertically image . Replacing code below .. . .. . with only one line creates the correct image . .. . .. . Q1 : Is any more convenient alternatives using other libraries Q2 : Which one is the best way Comparison is appreciated e.g . performance compatibility . Comment : What s the problem with using SOIL when it produces a correct result Do you note an fps drop or something when taking a screenshot Since SOIL is not maintained anymore not a bad thing necessarily you could try stb image the library SOIL is based on which is a just a c header and a good portable solution . Comment : @trmag : No problems at all . SOIL is a tiny library that provides TGA BMP and DDS support . DevIL is much heavier TGA BMP and DDS supported as well but additionally you can save output to JPG RAW TIF and some other . No differences in perfomance between the two approaches found building isolines for output takes a lot more time . I just want to know most common or let s say modern way for such routine .", "Question : Ok so I m trying to use SOIL to load a .png file that s in a textures folder . The textures folder is located in the same directory as the code . I ve gone into the scheme settings on the XCode project and changed the working directory to the one where the folder is located . However when I do this simple test it always indicates that the GLUint texture is NULL . I m not sure if I m doing something wrong in regards to SOIL but my hunch is that the file is simply not being read . As I said I changed the working directory in XCode but that doesn t change anything . Comment : Call SOIL last result to get an error message and print it out . Comment : @ColonelThirtyTwo It says PNG not supported : 8-bit only . OK so it does find the file . However if I try to change the image to an 8-bit PNG or an 8-bit JPG it gives me an EXC BAD ACCESS error at the line where I m assigning the variable texture . Comment : Can you get a traceback to where-in SOIL it crashes Also make sure you have an OpenGL context set up before loading the texture . Comment : @ColonelThirtyTwo Yeah that was the problem . It s working now thanks . .. . Answer : OK figured it out . Problem was that the PNG file was 16-bit instead of 8-bit . Also the SOIL load OGL texture function needed to be called after glfwCreateWindow and glfwMakeContextCurrent . Here s the answer that helped me : SOIL : Unable to open file in C++ and OpenGL with Xcode http : stackoverflow.com questions 13012026 soil-unable-to-open-file-in-c-and-opengl-with-xcode", "Question : I ve been trying to link SOIL http : lonesock.net soil.html for a project I am working on with OpenGL . I m running Yosemite 10.10.4 . When I try to use the SOIL library in my code I get the following error updated : .. . .. . My Steps .. . .. . I followed the process indicated by the make file in SOIL : make make install . It placed the libSOIL.a file in usr local lib and SOIL.h in usr local include . I included in my code : .. . .. . And my Makefile contained this g++ target : .. . .. . Then the above error appeared . I then tried a number of different things : I installed this guy s version of SOIL for Mac OS https : github.com smibarber libSOIL which places libSOIL.a and libSOIL.dylib in opt local lib and SOIL.h in opt local include I tried adding -arch 1386 -arch x86-64 as per this answer s suggestion http : stackoverflow.com questions 1884792 compiling-opengl-soil-on-mac-os-x . With each of these I still receive the same error as before . Any recommendations on what might be the issue .. . Answer : I have the same problem what my solution is modify the makefile to let gcc support 64 through add -m64 . also see Simple OpenGL Image Library projects makefile makefile : .. . .. . CXXFLAGS -O2 -s -Wall -m64 .. . .. . Make install and replace libSOIL.a again . I hope the answer can help you .", "Question : I am trying to load a height map for terrain using SOIL . I use the following code : .. . .. . However my terrain looks steppy because the height is expressed with 8 bits only . How can I load 16-bit height map with SOIL Or should I use another image library for this task Comment : SOIL should be able to load 16-bit BMP images at least from what I can garner from it s source code . Would it be possible to supply both the image you are trying to load and the one being output by SOIL Comment : This really is not a good idea . GL LUMINANCE is not supported in modern OpenGL implementations and your format data types are all wrong . If you want a single-component 16-bit image format use GL R16 for the internal format GL RED for the pixel transfer format and GL UNSIGNED SHORT for the pixel transfer type . Frankly I don t see what SOIL has to do with anything in this question . Comment : @Andon M . Coleman as you pointed out I had incorrect values for the internal and pixel transfer formats . However this does not solve the problem because SOIL returns the contents of image as an array of unsigned bytes not 16-bit values . The question is - how to load data in an unsigned short array Comment : If you want to load an array of 16-bit data don t even bother with SOIL . There are only a handful of HDR image-formats you would be better off avoiding an image file altogether and just store your data in a raw binary format . You can always layer it on top of something like zlib to improve storage requirements . Comment : @Andon M . Coleman OK that is probably the best idea so I am going to do so . .. . Answer : As Andon M . Coleman recommended I used raw binary format to store 16-bit height data and got the required result .", "Question : I m working on building a basketball game in openGL however i m taking baby steps and dividing my work into sections . I m currently focusing on texturing attempting to build a house using the SOIL library . I m extremely new to all of this so i ve probably set things up wrong but my main problem is that textures are acting as-if they are clamped to edge from what i can see . Currently the project is a singular wall meant to be textured by bricks here s an image of the output i m getting : Texture Fail http : i.stack.imgur.com iq9wj.png .. . .. . Here is the source code : .. . .. . Any help would be appreciated thankyou Comment : If you are beginning with OpenGL using the old deprecated API is not the best way to do that Go and learn Modern programmable OpenGL . Comment : Unfortunately my university course doesn t allow for that . Comment : The image looks like you need to add a GL TEXTURE WRAP parameter as well as the MIN MAG filters . I ve been following the Learn Opengl http : www.learnopengl.com Getting-started Textures and they ve been very helpful . Comment : @Jere I ve tried changing the TexParameters in my renderScene function to have TEXTURE WRAP as well as attempting a GL REPEAT but nothing is changing . Comment : I haven t used the SOIL function you re using to load and create a texture I ve used it to load the data then I did the work to create the texture . Maybe something in that function is affecting what is happening .. . Answer : Michael . In order to generate mipmaps and possibly fix the texture you should change the parameters of the soil loading function to .. . .. . This will automatically generate mipmaps from the OpenGL library as you did not call afterwards to glGenerateMipmaps . It also saves on the memory needed to store the textures . Another suggestion for the texture clamping and wrapping is to use .. . .. . after you use the load function . Good luck with your OpenGL learning experience . I hope this helped you in some way . EDIT : .. . .. . You also shouldn t repeat the glTexParameteri every single frame . This puts excess and unnecessary strain on your or the user s CPU .", "Question : I m trying to learn OpenGL but I ve not yet got the hang of it as I encountered a problem at the first hurdle where I try to display a bright red square but the image comes out as a maroon coloured square . I apologize but I cannot post pictures due to not having enough reputation : .. . .. . I ve been using the SOIL library http : www.lonesock.net soil.html to make the task of loading textures simpler and I am fairly sure that this is where the problem lies . I understand the most obvious answer is to not use SOIL and to learn raw OGL first before I try using extensions and I do intend to do this . However I would still like this problem solving for peace of mind . My personal assumption is I have probably enabled some sort of shading somewhere or there is some quirk of OGL or SOIL that forces the shade of the texture to change however I am not experienced enough to solve this . Below is what I believe to be the relevant code . And below is the SOIL-specific code which as far as I can tell should load a solid red texture into the active OGL texture .. . .. . Thank you in advance for anyone insight into where I have possibly gone wrong . @Nazar554 I m assuming this is what you mean by the view port Sorry I m aware this is very basic OGL stuff and I probably sound rather stupid but you ve got to start somewhere right : P Comment : can you show how you setup the viewport Comment : @Nazar554 I ve appended what I think is the viewport initialization to the end of my original question . .. . Answer : Put glOrtho before glClearColor . Also you need to select projection matrix before calling glOrtho . Use this : .. . .. . Also if you are studying OpenGL better begin with modern versions 3.3+ or 2.1 without old stuff not 1.2 . They have a lot of differences and it will be hard to forget everything you studied before . For beginners freeglut or GLFW is more simple and portable than pure Win32 . Comment : Put glOrtho before glClearColor . The order of these doesn t matter . Comment : @ColonelThirtyTwo looks cleaner for me that way . keeps matrix stuff separated Comment : I added the code you provided and it all compiled successfully but unfortunately the image still comes out brown maroon instead of bright red : Comment : Also thank you for the advice on trying modern OGL that seems like a much better idea I wasn t actually aware that I was using out of date OGL : P This problem isn t particularly important because I intend to start over learning raw OGL without the dependency on SOIL but I d rather solve it just in case I happen across a similar problem in the future", "Question : I can load a texture just fine in SOIL OpenGL normally . No errors everything works fine : .. . .. . However using that same code and calling it from an std : : thread at the line image SOIL load OGL texture I get unhandled-exception Integer Division by Zero : .. . .. . Here s some relevant code from my Texture class : .. . .. . It raises the exception exactly at image SOIL load OGL texture and when I go into the debugger I see things like w -816294792 and w -816294792 but I guess that just means it hasn t been set yet as it also shows that in the debugger for loading the other textures . Also the SOIL load OGL texture part of the code works fine by itself outside of the Texture class even in a std : : thread . Any idea what s going on here Comment : OpenGL and multithreading https : www.opengl.org wiki OpenGL and multithreading Comment : @Drop I m trying to render animated loading screen and load textures at the same time . There has to be a way or else other games could not do it . Comment : @Omega : The comment that Drop posted was actually a link go read it . However if you want to load in a background-thread easiest way is to map a PBO load your texture into the PBO from the background-thread and then call glTexImage from the main thread . Comment : Also note that glEnable GL TEXTURE 2D does not do what you think it does . You can remove that part . Comment : Which OS platform is this on Also did you refer to stackoverflow.com questions 19341704 http : stackoverflow.com questions 19341704 multi-threading-support-in-soil-for-opengl .. . Answer : This is how you do it . Note that as others have mentioned in the comments a context needs to be maintained current for every thread that uses GL . What this means is practically there cannot be a GL API call made in multiple threads without making one thread the owner of the GL context . Hence if the intention is to separate the Image loading overhead it is recommended to load the image file into a buffer using a library in a separate thread then use that buffer to glTexImage2D in the main thread . Till the image is loaded a dummy texture can be displayed . I tried checking what platform you are on see comment above since I did not see a response I am assuming Linux for below . .. . .. . And this is the loader thread function : .. . .. . Tested on Ubuntu 14.04 Mesa and glfw3 . Comment : your answer wasn t exactly it but it helped me anyway so im accepting", "Question : This question already has an answer here : .. . .. . OpenGL texture mapping stubbornly refuses to work questions 4870963 opengl-texture-mapping-stubbornly-refuses-to-work 4 answers .. . .. . I am trying to create an application that all it does is display an image full screen and then flash through a sequence of images quickly 144hz repeatedly . I have just started looking at OpenGL have done a few tutorials and cannot figure out what I m doing wrong here . The part that I m getting stuck on is actually rendering the image to to the display as it only shows up as a white square . I have gone through other stack-overflow questions for this but none of the suggestions have worked for me . I am doing this in Visual Studio 2015 using a win32 application and have installed the NupenGL package . For testing purposes I am using a 256x256 bitmap image and am loading it through the SOIL library which I have built and statically linked . I was originally thinking that I did not building linking the SOIL library properly so something funky was going on trying to load the image . I created a custom BMP loader which didn t work and I also tried other peoples BMP loaders on stack-overflow to no avail . I now believe that it is not the loading of the texture but that I am messing up something when actually trying to render it . Also in my code below I output if the texture is invalid but it always comes back good . Output FULLSCREEN : enter image description here http : i.stack.imgur.com K1ghy.png .. . .. . Output WINDOWED : enter image description here http : i.stack.imgur.com Paw9U.png .. . .. . My Code : Comment : -ar + 1 ar - 1 looks wrong to me . When widthX and heightY are equal then ar 1 and the two values are both 0 . Shouldn t that just be -ar ar And why do you use 20 for the y-value of glViewport which is in addition not respected in the aspect-ratio Comment : Whoa You load the image from file every frame . Comment : Use SOIL FLAG MIPMAPS or set GL TEXTURE MIN FILTER to a non- MIPMAP variant . Comment : @doug65536 : You d be surprised the kind of performance you can get doing that these days . I have a program that does deferred shading across two separate hosts and one of its unoptimized data paths involves dumping the G-Buffer to disk and fetching it as a network share . If that can sustain 60+ FPS at high resolutions this is going to be an increasingly frequent mistake . This technically does not even stall the render pipeline the old duplicate data is not interrupted so most drivers will make a separate copy on each frame and it s mostly down to disk throughput possible image decode . Comment : @AndonM.Coleman I was doing graphics programming when you wrote assembly to poke each pixel into memory and you cherished every cycle . The horror of disk I O every frame is a bit much for my eyes .. . Answer : Do not load the image from file every frame . In your init you should : .. . .. . load the image with SOIL like you already are storing the ID as texture .. . .. . In display you should .. . .. . glBindTexture GL TEXTURE 2D texture .. . glEnable GL TEXTURE 2D .. . draw stuff .. . glDisable GL TEXTURE 2D .. . glBindTexture GL TEXTURE 2D 0 .. . .. . You may notice that you could skip some enables disables by just enabling texture 2D and leaving it on . I gave pseudocode that tries to always work skipping redundant state changes is an optimization not relevant to the problem . Comment : SOIL load OGL texture calls glGenTextures and glTexImage2D already . Comment : @BDL Ok but his code is backwards it loads it then binds some other texture . And loading from file every display is utterly ridiculous . Comment : @BDL ah I see your point now . SOIL uploads and all and returns the generated ID . Updating answer.. .", "Question : How can i load a PNG file that has 64 bit depth color in openGL I have tried SOIL and SDL but he texture that it is displaying is white . For 32-bit depth works perfectly only that if my PNG contains gradient it isn t displayed smoothly and the colors are washed out a little - something isn t working properly . I have tried on numeroues forums but nothing seems to fix my problem . Here is the function i use with SOIL : .. . .. . when i draw the texture i use : .. . .. . I have my png file in my project directory . .. . Answer : There s 64-bit PNG files Let s see : .. . .. . 1 . The stb image library used by SOIL does not support 64-bit PNG : http : nothings.org stb image.c .. . 2 . SDL uses libpng which should support everything . 3 . Make sure the texture is using GL RGBA16 . I suggest trying to manually create a 64-bit texture to make sure that your OpenGL implementation supports GL RGBA16 . Ex : Create a simple gradient of red in memory then load that as a texture . Then once you have that working try loading the texture with SDL . Comment : Thanks for the advice . The SDL which uses libpng worked with GL RGBA16 . The only error i get now is that the SDL GetError specifies that i use sRGB and it is not the correct color format . The image is still being displayed with higher quality then before but it is upside down even if i specified from coordinates to be drawn normal . Still an improvement . Thanks again .", "Question : How do I link SOIL for a OpenGL in Ubuntu EDIT : .. . .. . I figured out the issue my professor showed the locate cmd in the terminal and I was able to find where I had to get the .h from . If anyone else has this issue for me it was .. . .. . and to link -lSOIL when compiling .. . Answer : First download the SOIL.h header file from its website .. . .. . http : www.lonesock.net soil.html .. . .. . Place the header file in your project directory and put the line .. . .. . in your project file . After that you have to install the soil library to use -lSOIL . To install the library use the command .. . .. . Now compile the project using gcc along with -lSOIL", "Question : My question is is SOIL simple opengl image library thread compatible Because when I run the following code : .. . .. . in order to load a texture .. . .. . outside of a thread it works fine however when run inside an std : : thread it gives me the error .. . .. . Unhandled exception at 0x592527FF msvcr110d.dll in Project2.exe : 0xC0000005 : Access violation reading location 0x00000000 . I want to be able to thread it so that it can load during a menu screen or a splash-screen or something of the sort . So my question is if SOIL is not thread safe then would a decent solution be to run a thread to run the menu splash-screen whatever in order to allow textures to load in the main thread Comment : It is not so much whether SOIL is thread safe as it is whether you have a valid OpenGL context in your worker thread . Window systems only allow an OpenGL render context to be bound to a single thread at any given moment this is worked around by either relinquishing a single context and passing it between threads synch . overhead makes this a bad idea or using multiple contexts that share resources . In any event if you try to use the results of an OpenGL command in a thread that has no OpenGL context-bound this sort of thing tends to happen . Comment : My bet is that you or someone else didn t compile SOIL correctly to use in a multi-threaded program . .. . Answer : OpenGL isTHREAD BOUND Which means you can make calls on your GL context from a single thread at a time . Thanks to datenwolf for correction If the above mentioned method uses GL methods which I suppose it does then it won t work unless you do it in separate GL context.If you want to go multi -threaded way you can create shared context - each in separate thread.Then you render in the main thread while loading the textures in another one.I am not sure how much it is performance wise but you can give it a try anyway . Comment : OpenGL is not really single-threaded it s thread bound . I.e . at any moment a given OpenGL context can be used from only one thread . It s however possible to migrate a context between threads . And it s possible to access buffer object mappings from all threads of a process .", "Question : I have decided to use SOIL to load images for use with OpenGL for my project . I have this method which loads an image and returns a GLTexture which is a struct that hold a GLuint textureid and two ints width and height : .. . .. . .. . .. . As far as I know glGetTexLevelParameteriv should return the width of the texture that is binded into width and height but whenever I load an image this returns 0 . Should I fill in width and height as parameters for the method or is it possible to get them via OpenGL .. . Answer : The texture id generated by SOIL load OGL texture is overridden in the .. . .. . line glGenTextures creates a new texture and stores the id in texture.id . All operations afterwards work on the newly created texture . Since this new texture is empty width and height are 0 . I m not sure what you want to achieve here but if you only want to load the texture then this code might work : Comment : Ah I see . The code kinda works now . When I load a 33x32px PNG image it says that the width is 64px and the height is 32px which isn t really correct.. . Comment : I don t know SOIL but it looks as-if it would scale up the image to the next power of two size . Maybe one can turn that of Comment : @MysticSheik : It is correct insofar as DXT compressed images need dimensions based on powers-of-two other texture types in GL2+ do not . If you removed that flag SOIL FLAG COMPRESS TO DXT it is very likely SOIL would pass the data through without rescaling it . Comment : Thank you Yeah turns out that SOIL scaled the image to a power of two .", "Question : I ve been trying to link SOIL http : lonesock.net soil.html for a project I am working on with OpenGL . I m running Yosemite 10.10.4 . When I try to use the SOIL library in my code I get the following error updated : .. . .. . My Steps .. . .. . I followed the process indicated by the make file in SOIL : make make install . It placed the libSOIL.a file in usr local lib and SOIL.h in usr local include . I included in my code : .. . .. . And my Makefile contained this g++ target : .. . .. . Then the above error appeared . I then tried a number of different things : I installed this guy s version of SOIL for Mac OS https : github.com smibarber libSOIL which places libSOIL.a and libSOIL.dylib in opt local lib and SOIL.h in opt local include I tried adding -arch 1386 -arch x86-64 as per this answer s suggestion http : stackoverflow.com questions 1884792 compiling-opengl-soil-on-mac-os-x . With each of these I still receive the same error as before . Any recommendations on what might be the issue .. . Answer : Specify the source files before the library specifications -l and -L : .. . .. . You probably want -o myexe otherwise the output file will be a.out .. . Comment : Thanks for that reminder . I had taken out the -o earlier because I thought it wasn t pertinent - I ll put it back in . This answer didn t fix it yet but I ll keep this in mind .", "Question : I tried a lot of examples for loading and displaying images in openGL using SOIL . while running the source code below it displays just a wite quad without an image . I tried to open an image called : foto . I placed the image-file in the folder of the program . Comment : Is texture 0 non-zero after the SOIL load OGL texture call If it is zero what does SOIL last result return Comment : When I put in : cout SOIL LAST RESULT after the the texture load it says unable to load file but my image is png-format and is in the folder of the project or do I have to do something special with the image Comment : Also note that the length the texture array is zero . Comment : Is the lengthh of an texture array other than a normal c++ array .. . Answer : You re using a relative-path to access foto.png . Make sure your working directory http : en.wikipedia.org wiki Working directory is where you expect . Some IDEs like to change the working directory to someplace other than where the executable is . Comment : Thanks I looked around for this do you need a special library for those functions wich sets the directory correctly Comment : Look into chdir though it would be easier to fix the IDE config .", "Question : I need use SOIL library in my project . My steps : .. . .. . 1 . download and extract zip to my project folder .. . .. . 2 . rename libSOIL.a to SOIL.lib .. . .. . 3 . Properties C C++ General Additional include directories - Add . SOIL src .. . .. . 4 . Properties Linker General Additional Library Directories - Add SOIL.lib .. . .. . 5 . put include SOIL.h .. . .. . Function SOIL load image was found but .. . .. . error LNK1104 : cannot open file SOIL.libkernel32.lib .. . Answer : And here .. . .. . 2 rename libSOIL.a to SOIL.lib .. . .. . you went all wrong . The name libSOIL.a indicates that you downloaded a build intended to be used with a GCC toolchain . Libraries with a filename to the scheme of lib .a use a different format than libraries named .lib . You need a SOIL build for VC++ . Comment : I can not find SOIL build for VC++ to download . : Comment : @Hricer : SOIL is Open Source . You can and should build it yourself . Comment : i m really sorry for my ignorance but how build SOIL for vc++ in VS2012 Comment : @Hricer : I think the easiest in your case would be that you simply copied the SOIL source files into your project and just add the source files to your project . Since SOIL is in the public domain this is perfectly fine to do .", "Question : Ok before anyone marks this question as a duplicate I have looked at What is an undefined-reference unresolved external symbol error and how do I fix it http : stackoverflow.com questions 12573816 what-is-an-undefined-reference-unresolved-external-symbol-error-and-how-do-i-fix and many other online posts . I ve tried every solution I ve come acoss but I still can t fix these errors : .. . .. . I m using Visual Studio 2012 on Windows 8 . I ve tried rebuilding the library and I have quintuple checked all my includes and directories.Here are the SOIL includes directory I have : .. . .. . And here s my code . The SOIL load image function is what s causing the errors : .. . .. . I ve been working on this all day and I haven t been able to figure out what I m doing wrong and it s been extremely frustrating . Note : I know the original name of SOIL.lib is libSOIL.a . I tried working with it with that name and got the same errors . Comment : I take it that I ve tried rebuilding the library means you tried rebuilding the soil.lib library with visual-studio I d be somewhat surprise you did or at least that that s the .lib that got used by the linker given the .o extension for the object-files in the error message you showed . .. . Answer : The issue is likely given the vintage 2008 of the SOIL library as documented at this link http : www.lonesock.net soil.html that whatever version of Visual Studio was used to build the prebuilt SOIL library predates Visual Studio 2012 and there is thus a binary incompatibility between your program and the SOIL.lib . One thing you could try is to change the platform toolset in your Visual Studio 2012 build to be a previous version that is compatible with the prebuilt SOIL library . You may have to do some searching of the SOIL documentation to figure out which version that is and some searching of MSDN to find the right platform toolset if you don t have it already . This previous SO question http : stackoverflow.com questions 15453629 use-visual-studio-2012-and-compile-with-older-platform-toolset will give you some hints about how to go about doing that . Another possible option is to try to build your own Visual Studio 2012 compatible SOIL library from source it appears the source for SOIL is available at that link . Comment : I d go with building from sources .", "Question : ANSWER .. . .. . After using SOIL last result as dcook had suggested I found out two things : .. . .. . 1 It couldn t find the image as PaulMcKenzie said so my working directory was indeed incorrect as genpfault mentioned . 2 After I set a full path it mentioned that my jpeg format progressive was not supported . I set the image to the standard jpeg format and it worked . Thanks for the help .. . .. . ORIGINAL QUESTION .. . .. . I am currently trying to load an image using SOIL to use with OpenGL . However it seems to fail to properly load the image as the variable it is assigned to ends up being null . I ve tried looking at this https : www.opengl.org discussion boards showthread.php 185838-SOIL load image -returns-null but it seems the guy just put the wrong layout position when he set the attribute . I have it check for errors glGetError after every line but I omitted that here for readability . The OpenGL error occurs after glTexImage2D with a GL INVALID VALUE . This is more than likely because imgWidth imgHeight are bigger than GL MAX TEXTURE SIZE due to the null image . Output : .. . .. . Code : .. . .. . Let me know if any more data is needed . Thanks EDIT 1 : Yes the image is in the correct location : bin directory http : i.stack.imgur.com Q2aSO.jpg .. . .. . Also I tried using a full path it did not help . Comment : Is your pwd https : en.wikipedia.org wiki Working directory where your program is assuming it is Comment : Maybe the file potato.jpg cannot be found Give a full path and retry . Comment : @PaulMcKenzie I tried using a full path it was to no avail . Comment : @genpfault It should be in the same directory as the executable . However I have tried setting the working directory manually through PowerShell and it did not work . Comment : I don t know much about SOIL but when I had used it for texture mapping I had used an unsigned int to store my texture . And the whole thing looked like unsigned int texture SOIL load OGL texture textures texture0.jpg SOIL LOAD AUTO SOIL CREATE NEW ID SOIL FLAG INVERT Y See if this helps your case . .. . Answer : Since it seems to be an issue with SOIL rather than GL check the last SOIL error with SOIL last result after calling SOIL load image . This should give you a better clue as to what s actually going wrong . Comment : I ll check this out tomorrow and I ll get back to you .", "Question : I am don t know why this keeps saying : .. . .. . undefined-reference to SOIL load OGL texture .. . .. . This is the code : .. . .. . I have .. . Answer : you have to link against the SOIL library : .. . .. . SOIL has to be in caps" ] }
[ "yes-answer-long", "yes-answer-short" ]
c++
UNK_RELATION
stddeque@queue@71
stddeque -- std : : deque is the c++ implementation of a double-ended @placeholder provided by the stl .
{ "confidence": [ 27.162477493286133, 25.386615753173828, 25.302753448486328, 25.302753448486328, 25.296463012695312, 24.99504852294922, 20.42513656616211, 19.221542358398438, 17.48377227783203, 15.530009269714355, 15.145645141601562, 12.612445831298828, 12.612445831298828, 12.612445831298828, 12.612445831298828, 12.612445831298828, 12.612445831298828, 12.612445831298828, 12.612445831298828, 12.612445831298828, 12.612445831298828, 12.612445831298828, 12.612445831298828, 12.612445831298828, 12.612445831298828, 12.612445831298828, 12.612445831298828, 12.612445831298828, 12.612445831298828, 12.612445831298828, 12.612445831298828, 12.612445831298828, 12.612445831298828, 12.612445831298828, 12.612445831298828, 12.612445831298828, 12.612445831298828, 12.612445831298828, 12.612445831298828, 12.612445831298828, 12.612445831298828, 12.612445831298828, 12.612445831298828, 12.612445831298828, 12.612445831298828, 12.612445831298828, 12.612445831298828, 12.612445831298828, 8.92091178894043, 8.92091178894043, 8.92091178894043, 8.92091178894043, 8.92091178894043, 8.92091178894043 ], "content": [ "If I have std : : deque and std : : vector and want to combine them to std : : deque I can do it the following way : .. . .. . We know the size of the vector but we can t reserve memory at the end of std : : deque before using std : : deque.insert .. . .", "This question already has an answer here : .. . .. . What are the advantages and disadvantages of using std : : stack instead of just deque vector or list questions 28207198 what-are-the-advantages-and-disadvantages-of-using-stdstack-instead-of-just-de 1 answer .. . .. . Why would I use a std : : stack or a std : : queue rather than a std : : vector or a std : : deque", "Queue and deque follow the same scheme .", "A queue is a deque with less operations possible .", "So is it the fastest way to move all elements of std : : vector to the end of std : : deque", "He s asking about simply using a normal sequence container like std : : vector or std : : deque as a stack or a queue since they are of course perfectly capable of serving those functions .", "std : : stack is more expressive than std : : vector when the container you want to implement is truly a LIFO .", "std : : stack is an adapter for containers could be of a vector a list of whatsnut container .", "I would use resize method as follows because than is deque reallocated only once :", "It just applies an std : : move on each element of the vector to the end of the deq .", "When you say moving I think take the elements from the vector and put them into the deque What you ve shown still leaves the moved-from elements present in the vector .", "Since the container adapters are merely wrappers around the standard containers why use them at all", "Because there are algorithms that work using stacks and queues .", "Why not use them over trying to use a list vector and refactoring all of your algorithms", "Unless I m seriously missing something here .", "Just to prevent re-inventing the wheel .", "True that we can achieve everything - but why do something from scratch if another option is available", "Besides starting from scratch might make our individually developed code buggy and error-prone .", "@BatCoder : Who s suggesting starting anything from scratch", "@BenjaminLindley his statement Since the container adapters are merely wrappers around the standard containers strongly makes me feel that he intends to re-implement everything .", "He won t be able to use the existing functionalities like stack.top and have to implement them in his code .", "@BatCoder : But there s nothing to implement .", "You just have to for a stack replace calls to top with back push v with push-back v and pop with pop back .", "To limit the user-interface You don t want your stack to be able to remove elements somewhere else instead of top .", "Why to use vector in-place of stack if you have exactly same performance also stack improves readability and reliability .", "why more expensive", "expressive not expensive", "1 .", "For convenience .", "They provide a semantic API tailored to the needs .", "2 .", "Readability .", "stack.top looks better than stack 0 or stack stack.size or stack.back .", "Reader of such code does not need to interpret meaning of such a construct .", "It is given .", "Note : As @moooeeeep http : stackoverflow.com users 1025391 moooeeeep suggest it should be size -1 if anything but I am leaving original as a nice example why one should use supplied solutions instead of writing even most simple things by hand .", "Also the name itself also gives a good idea how they should be used and what they are doing under the hood .", "or stack stack.size -1", ".", "@moooeeeep Oh my bad", "blushy edit .", "Btw that is another great reason why .", "And don t forget stack.pop after a stack.top .", "Otherwise the top-element may get re-used which might not be desirable .", "Maybe it should be neither as the top element of the stack won t usually be the first or last element of the underlying data structure but some in-between element .", "So maybe it rather should be stack top index instead .", "The main purpose is to transform the interface of the underlying container into that one of a stack .", "Such giving you push top and pop instead of push-back back and pop back .", "Or did I miss something", "Thank you .", "Is T a type for which moving is supposed to be cheaper than copying", "For ints that makes no difference", "try this : .. . .. . keep in mind that this still copies the vector to the end of the deq .", "As long as T is just an int this is not much different than copying the vector to the end of the deq" ] }
{ "confidence": [ 33.41407775878906, 32.21950149536133, 31.758398056030273, 31.137184143066406, 30.20639991760254 ], "content": [ "Question : This question already has an answer here : .. . .. . What are the advantages and disadvantages of using std : : stack instead of just deque vector or list questions 28207198 what-are-the-advantages-and-disadvantages-of-using-stdstack-instead-of-just-de 1 answer .. . .. . Why would I use a std : : stack or a std : : queue rather than a std : : vector or a std : : deque Since the container adapters are merely wrappers around the standard containers why use them at all Comment : Because there are algorithms that work using stacks and queues . Why not use them over trying to use a list vector and refactoring all of your algorithms Unless I m seriously missing something here . Comment : Just to prevent re-inventing the wheel . True that we can achieve everything - but why do something from scratch if another option is available Besides starting from scratch might make our individually developed code buggy and error-prone . Comment : @BatCoder : Who s suggesting starting anything from scratch He s asking about simply using a normal sequence container like std : : vector or std : : deque as a stack or a queue since they are of course perfectly capable of serving those functions . Comment : @BenjaminLindley his statement Since the container adapters are merely wrappers around the standard containers strongly makes me feel that he intends to re-implement everything . He won t be able to use the existing functionalities like stack.top and have to implement them in his code . Comment : @BatCoder : But there s nothing to implement . You just have to for a stack replace calls to top with back push v with push-back v and pop with pop back . .. . Answer : std : : stack is an adapter for containers could be of a vector a list of whatsnut container . The main purpose is to transform the interface of the underlying container into that one of a stack . Such giving you push top and pop instead of push-back back and pop back . Queue and deque follow the same scheme . A queue is a deque with less operations possible .", "Question : If I have std : : deque and std : : vector and want to combine them to std : : deque I can do it the following way : .. . .. . We know the size of the vector but we can t reserve memory at the end of std : : deque before using std : : deque.insert .. . . So is it the fastest way to move all elements of std : : vector to the end of std : : deque Or did I miss something Thank you . Comment : When you say moving I think take the elements from the vector and put them into the deque What you ve shown still leaves the moved-from elements present in the vector . Comment : Is T a type for which moving is supposed to be cheaper than copying For ints that makes no difference .. . Answer : I would use resize method as follows because than is deque reallocated only once :", "Question : This question already has an answer here : .. . .. . What are the advantages and disadvantages of using std : : stack instead of just deque vector or list questions 28207198 what-are-the-advantages-and-disadvantages-of-using-stdstack-instead-of-just-de 1 answer .. . .. . Why would I use a std : : stack or a std : : queue rather than a std : : vector or a std : : deque Since the container adapters are merely wrappers around the standard containers why use them at all Comment : Because there are algorithms that work using stacks and queues . Why not use them over trying to use a list vector and refactoring all of your algorithms Unless I m seriously missing something here . Comment : Just to prevent re-inventing the wheel . True that we can achieve everything - but why do something from scratch if another option is available Besides starting from scratch might make our individually developed code buggy and error-prone . Comment : @BatCoder : Who s suggesting starting anything from scratch He s asking about simply using a normal sequence container like std : : vector or std : : deque as a stack or a queue since they are of course perfectly capable of serving those functions . Comment : @BenjaminLindley his statement Since the container adapters are merely wrappers around the standard containers strongly makes me feel that he intends to re-implement everything . He won t be able to use the existing functionalities like stack.top and have to implement them in his code . Comment : @BatCoder : But there s nothing to implement . You just have to for a stack replace calls to top with back push v with push-back v and pop with pop back . .. . Answer : To limit the user-interface You don t want your stack to be able to remove elements somewhere else instead of top . Why to use vector in-place of stack if you have exactly same performance also stack improves readability and reliability . std : : stack is more expressive than std : : vector when the container you want to implement is truly a LIFO . Comment : why more expensive Comment : expressive not expensive", "Question : If I have std : : deque and std : : vector and want to combine them to std : : deque I can do it the following way : .. . .. . We know the size of the vector but we can t reserve memory at the end of std : : deque before using std : : deque.insert .. . . So is it the fastest way to move all elements of std : : vector to the end of std : : deque Or did I miss something Thank you . Comment : When you say moving I think take the elements from the vector and put them into the deque What you ve shown still leaves the moved-from elements present in the vector . Comment : Is T a type for which moving is supposed to be cheaper than copying For ints that makes no difference .. . Answer : try this : .. . .. . keep in mind that this still copies the vector to the end of the deq . It just applies an std : : move on each element of the vector to the end of the deq . As long as T is just an int this is not much different than copying the vector to the end of the deq", "Question : This question already has an answer here : .. . .. . What are the advantages and disadvantages of using std : : stack instead of just deque vector or list questions 28207198 what-are-the-advantages-and-disadvantages-of-using-stdstack-instead-of-just-de 1 answer .. . .. . Why would I use a std : : stack or a std : : queue rather than a std : : vector or a std : : deque Since the container adapters are merely wrappers around the standard containers why use them at all Comment : Because there are algorithms that work using stacks and queues . Why not use them over trying to use a list vector and refactoring all of your algorithms Unless I m seriously missing something here . Comment : Just to prevent re-inventing the wheel . True that we can achieve everything - but why do something from scratch if another option is available Besides starting from scratch might make our individually developed code buggy and error-prone . Comment : @BatCoder : Who s suggesting starting anything from scratch He s asking about simply using a normal sequence container like std : : vector or std : : deque as a stack or a queue since they are of course perfectly capable of serving those functions . Comment : @BenjaminLindley his statement Since the container adapters are merely wrappers around the standard containers strongly makes me feel that he intends to re-implement everything . He won t be able to use the existing functionalities like stack.top and have to implement them in his code . Comment : @BatCoder : But there s nothing to implement . You just have to for a stack replace calls to top with back push v with push-back v and pop with pop back . .. . Answer : 1 . For convenience . They provide a semantic API tailored to the needs . 2 . Readability . stack.top looks better than stack 0 or stack stack.size or stack.back . Reader of such code does not need to interpret meaning of such a construct . It is given . Note : As @moooeeeep http : stackoverflow.com users 1025391 moooeeeep suggest it should be size -1 if anything but I am leaving original as a nice example why one should use supplied solutions instead of writing even most simple things by hand . Comment : Also the name itself also gives a good idea how they should be used and what they are doing under the hood . Comment : or stack stack.size -1 Comment : . @moooeeeep Oh my bad blushy edit . Btw that is another great reason why . Comment : And don t forget stack.pop after a stack.top . Otherwise the top-element may get re-used which might not be desirable . Comment : Maybe it should be neither as the top element of the stack won t usually be the first or last element of the underlying data structure but some in-between element . So maybe it rather should be stack top index instead ." ] }
[ "yes-answer-long", "yes-answer-short" ]
queue
UNK_RELATION
ace@c++@53
ace -- the adaptive communication environment ace a @placeholder network-programming toolkit .
{ "confidence": [ 57.59130096435547, 41.9573860168457, 39.78814697265625, 39.66349792480469, 38.22333526611328, 38.07844924926758, 36.440696716308594, 35.916175842285156, 35.884281158447266, 35.838890075683594, 34.753135681152344, 34.753135681152344, 34.753135681152344, 34.753135681152344, 34.72459411621094, 34.72459411621094, 34.62110137939453, 34.57654571533203, 34.57654571533203, 34.50859832763672, 34.41989517211914, 34.35736846923828, 34.35736846923828, 33.88648223876953, 33.88648223876953, 33.88648223876953, 33.88648223876953, 33.838279724121094, 33.838279724121094, 33.838279724121094, 33.838279724121094, 33.838279724121094, 33.82754898071289, 33.82754898071289, 33.74581527709961, 33.661685943603516, 33.44251251220703, 33.345558166503906, 33.345558166503906, 33.345558166503906, 33.345558166503906, 33.345558166503906, 33.345558166503906, 33.345558166503906, 33.345558166503906, 33.345558166503906, 33.345558166503906, 33.345558166503906, 33.230125427246094, 33.081871032714844, 32.83420944213867, 32.83420944213867, 32.83420944213867, 32.83420944213867, 32.83420944213867, 32.74179458618164, 32.74179458618164, 32.74179458618164, 32.74179458618164, 32.74179458618164, 32.74179458618164, 32.74179458618164, 32.56520462036133, 32.541324615478516, 32.507450103759766, 32.507450103759766, 32.507450103759766, 32.507450103759766, 32.507450103759766, 32.507450103759766, 32.507450103759766, 32.507450103759766, 32.507450103759766, 32.507450103759766, 32.507450103759766, 32.430702209472656, 32.346031188964844, 32.33514404296875, 32.33514404296875, 32.33514404296875, 32.33514404296875, 31.592592239379883, 31.592592239379883, 31.592592239379883, 31.592592239379883, 31.592592239379883, 31.548017501831055, 31.4555721282959, 31.4555721282959, 31.455175399780273, 31.455175399780273, 31.455175399780273, 31.455175399780273, 31.455175399780273, 31.455175399780273, 31.455175399780273, 31.455175399780273, 31.455175399780273, 31.455175399780273, 31.455175399780273 ], "content": [ "I m new to ACE Adaptive Communication Environment .", "In my project we use the ACE Adaptive Communication Environment middleware to write OS independent code that would run on both Windows and Linux .", "you need to define ace as a path to the folder that contains ace.js and require ace ace .. . .. . .. . requirejs.config .. . paths : ace : cdnjs.cloudflare.com ajax libs ace 1.1.9 .. . .. . .. . h1 .text loading ace.. . .. . requirejs ace ace function ace .. . h1 .text ace loaded .", "However I was introduced to two other libraries : POCO http : pocoproject.org and Adaptive Communication Environment ACE framework http : en.wikipedia.org wiki Adaptive Communication Environment .", "define ace ace ace mode javascript function ace ace mode ... . .. . .. . 3 .", "do you use ace-builds or ace", "Build Ace https : github.com ajaxorg ace blob master Readme.md building-ace .. . 5 .", "It is ACE TAO specific .", "You can find this describe in the ACE C++ Network Programming Volume 1 book see http : www.orbzone.org documents books chapter 9 .", "Replace require ace range .Range with ace.require ace range .Range", "Is there a alternative beautifier for CSS in ace", "I m using Ace Editor .", "Ace is not defined in the following case :", "Ace vs CodeMirror 1 .", "What is the right way to do that in Ace", "I am newbie on Apache ACE .", "ACE .. . .. . 2 .", "with ace-builds you need to include mode-javascript.js and mode-json.js with ace it should work if you configure require paths to have ace : path to ace lib", "see addfold at https : github.com ajaxorg ace blob master lib ace edit session folding.js L259 and onFoldWidgetClick https : github.com ajaxorg ace blob master lib ace edit session folding.js L685 for the usage example", "I will tag this question with ACE TAO", "In the MSYS shell change to the ACE ROOT ace directory and run make : .. . .. . cd ACE ROOT ace .. . make .. . .. . .. . Now I noticed that there is no MakeFile in ACE ROOT ace which is C : mingw64 Other ACE wrappers ace .. . .. . I downloaded my ACE stuff from here http : download.dre.vanderbilt.edu previous versions ACE+TAO+CIAO-6.3.0.tar.gz .", "I m using angular ace-ui and have added the data-ace-base and charset to the script-tag not sure what other scripts ace requires .", "A better place to ask this question is the ACE mailing list see cs.wustl.edu schmidt ACE-mail.html http : www.cs.wustl.edu schmidt ACE-mail.html .", "see https : github.com ajaxorg ace blob v1.2.3 lib ace tokenizer.js L306", "Can I then load it into Ace Editor on my site even though Ace is connected via CDN", "possible duplicate of Razor syntax-highlighting for Ace editor http : stackoverflow.com questions 24913932 razor-syntax-highlighting-for-ace-editor", "Download his branch of the ACE from GIT https : github.com ashmind ace tree razor-wip-shelf .", "The ACE socket libraries are solid .", "Don t be too hard on ACE .", "ACE on the other hand was a rock .", "Start the ACE server .. . .. . 2 .", "Start an ACE target .. . .. . 3 .", "The ace tag is for the ACE C++ library doesn t seem the library you are using", "3 ace : dataTable http : res.icesoft.org docs v3 latest ace tld ace dataTable.html", "ACE is the ultimate network-programming swiss army knife for C++ programming but last I checked it was also a huge monster dependency in itself .", "But I m specifically referencing ace ext-language tools but it loads additional references ace lib oop and ace lib event emitter but these files don t exist in the ace-build bower library .", "This is only lost when I require ace ace all of the other files like ace edit session do not cause me any problem .", "As in put the files in the ace folders and build it .", "I m using ace-editor in a project .", "i used Ace 1.2.2 version .", "The problem is that ACE deletes the control character .", "I removed the incorrect ace tag .", "But how can I use Ace", "This is a tool installation issue not something in ACE .", "This question is about the use of ACE mutexes .", "Is it possible to enable logging in Apache Ace", "The Apache ACE documentation is not that elaborate in this point .", "I have deployed in the Apache Ace .", "ACE it s a matter of new-style vs . old-style programming .", "So I download the file and I put it in a local folder ace mode mode-processing.js then I rewrite that line ace.config.setModuleUrl ace mode processing ace mode mode-processing.js and it should work", "Ace Home Page : http : ace.c9.io", "Here is a started implementation of Razor syntax-highlighting in ACE .", "Nope doesn t work for me with ace-editor .", "Does ACE take care of this uncertainty for us", "Need to check with Apache ACE owners .. . 2 .", "It s an ACE Editor bro", "ACE just works .", "Use ACE and boost cooperatively .", "Tried with JET and ACE .", "The Ace driver is also 64bit .", "CDE uses the ACE editor .", "Apache Karaf Apache ACE", "Then i updated the Platform.properties of Ace Server to include the additional properties and started Ace Server : .. . .. . Started ace-launcher.jar with the following command : .. . .. . i tried multiple times by changing the discovery url to .. . .. . But the target was not registered in the Ace Server .", "Have you created the ace config.h to configure ACE correctly", "It takes a theme https : github.com ajaxorg ace tree 4a55188fdb0eee9e2d3854f175e67408a1e47655 lib ace theme to style the code .", "Here is a related github issue : github.com ajaxorg ace issues 1078 https : github.com ajaxorg ace issues 1078", "Download Ace source code https : github.com ajaxorg ace and install NodeJS https : nodejs.org .. . 3 .", "Replace command is defined here https : github.com ajaxorg ace blob master lib ace commands default commands.js L366 .", "Annoyingly the current ace http : stackoverflow.com questions tagged ace tag is not for the editor .", "As far as I understood the idea of Ace you shouldn t make a textarea an Ace editor itself .", "github.com ajaxorg ace issues 900 https : github.com ajaxorg ace issues 900", "There has been some refactoring in ACE which causes OpenDDS 3.4.1 not to compile with ACE TAO x.2.3 .", "dre.vanderbilt.edu Doxygen 5.7.3 html ace http : www.dre.vanderbilt.edu Doxygen 5.7.3 html ace a00572.html a01104c19fd0d768065b23717427c6a94", "ACE 6.2.9 will use ACE LACKS PID T which you can undefine in your ace config.h file .", "We have released today ACE 6.3.0 which has the support for undefining ACE LACKS PID T which then disables the typdef of pid t by ACE .", "The management agent that Apache ACE provides .", "This is used in Ace to record and replay macros see https : github.com ajaxorg ace blob v1.1.4 lib ace commands command manager.js L52-L96 .", "How can I manage files and directories with ACE library", "Does ACE library has any API to get the current running directory", "Does anybody know how to do it by using C++ and ACE library", "Does ACE have something equivalent to SetWaitableTimer of Win API", "Full code here : https : github.com Cirru ace blob master lib ace mode cirru highlight rules.js", "Check chapter 9 of the ACE Programmers Guide see http : www.orbzone.org documents books for how UDP works with ACE .", "The instructions here http : www.dre.vanderbilt.edu schmidt DOC ROOT ACE ACE-INSTALL.html mingw state the following : .. . .. . 1 .", "Create a file called config.h in the ACE ROOT ace directory that contains : .. . .. . include ace config-win32.h .. . .. . .. . 6 .", "See cs.wustl.edu schmidt ACE-mail.html http : www.cs.wustl.edu schmidt ACE-mail.html for the lists we have and how to post .", "I ve found simmilar question : Ace Editor autocomplete and multiple-languages http : stackoverflow.com questions 7938985 ace-editor-autocomplete-and-multiple-languages .. . .. . But the responses were that autocompletion is not supported by ACE and according to Google group for Ace Editor It is on my wishlish for Ace and we definitively need it for Cloud9 .", "Thanks for helps and for Ace itself .", "No the ACE is not included with Windows .", "I am using ace datatable with pagination .", "forget angular-ace-ui it only complicates things .", "editor.setTheme ace theme monokai does not work : -", "I am working with ace-editor in sql mode .", "tooltip of ace-editor http : i.stack.imgur.com YU15l.png", "i am using Ace editor in my project .", "Ace editor is only the UI part of the editor .", "I am using ACE editor for the first time .", "You can have multiple Ace Editors .", "Do I need to inject the Ace plugin somewhere", "This is not a bug in ACE it is a workaround for the lack of this type in the Windows SDK ." ] }
{ "confidence": [ 61.59794235229492, 60.44762420654297, 60.44762420654297, 59.45909118652344, 58.73771667480469, 58.06208801269531, 58.06208801269531, 56.232784271240234, 51.027313232421875, 50.146366119384766, 49.699790954589844, 45.561737060546875, 45.46200180053711, 42.951087951660156, 42.53578567504883, 42.180572509765625, 41.14979553222656, 39.8560791015625, 39.72037887573242, 39.63905334472656 ], "content": [ "Question : I have been working with the Boost C++ Libraries http : en.wikipedia.org wiki Boost C++ Libraries for quite some time . I absolutely love the Boost Asio C++ library http : en.wikipedia.org wiki Asio C++ library for network-programming . However I was introduced to two other libraries : POCO http : pocoproject.org and Adaptive Communication Environment ACE framework http : en.wikipedia.org wiki Adaptive Communication Environment . I would like to know the good and bad of each . Comment : ACE is the ultimate network-programming swiss army knife for C++ programming but last I checked it was also a huge monster dependency in itself . .. . Answer : I think it is really matter of an opinion there is hardly a right answer . In my experience with writing portable Win32 Linux server code 15+ years I personally find boost ACE unnecessarily bloated and introduces maintenance hazards otherwise known as dll hell for the little advantage they give . ACE also seems to be horribly outdated it is a c++ library written by c programmers in the 90-s and it really shows in my opinion . It so happens right now I am re-engineering the project written with Pico it seems to me it completely follows the ACE idea but in more contemporary terms not much better at that . In any case for high performance efficient elegant server communications you might be better off not using any of them .", "Question : I have been working with the Boost C++ Libraries http : en.wikipedia.org wiki Boost C++ Libraries for quite some time . I absolutely love the Boost Asio C++ library http : en.wikipedia.org wiki Asio C++ library for network-programming . However I was introduced to two other libraries : POCO http : pocoproject.org and Adaptive Communication Environment ACE framework http : en.wikipedia.org wiki Adaptive Communication Environment . I would like to know the good and bad of each . Comment : ACE is the ultimate network-programming swiss army knife for C++ programming but last I checked it was also a huge monster dependency in itself . .. . Answer : The ACE socket libraries are solid . If you are trying to port a standard implementation of sockets you can t go wrong . The ACE code sticks to a rigid development paradigm . The higher level contructs are a little confusing to use . The rigid paradigm causes some anomolies with exception-handling . There are or used to be situations where string value pairs being passed into an exception with one of the pair being null causes an exception throw in the exception that will boggle you . The depth of the class layering is tedious when debugging . I have never tried the other libraries so can t make an intelligent comment .", "Question : I have been working with the Boost C++ Libraries http : en.wikipedia.org wiki Boost C++ Libraries for quite some time . I absolutely love the Boost Asio C++ library http : en.wikipedia.org wiki Asio C++ library for network-programming . However I was introduced to two other libraries : POCO http : pocoproject.org and Adaptive Communication Environment ACE framework http : en.wikipedia.org wiki Adaptive Communication Environment . I would like to know the good and bad of each . Comment : ACE is the ultimate network-programming swiss army knife for C++ programming but last I checked it was also a huge monster dependency in itself . .. . Answer : Out of those I ve only ever really used ACE . ACE is a great framework for cross-platform enterprise networking applications . It s extremely versatile and scalable and comes with TAO and JAWS for quick powerful development of ORB and or Web based applications . Getting up to speed with it can be somewhat daunting but there is a lot of literature on it and commercial support available . It s somewhat heavy though so for smaller-scale apps it may be a bit of an overkill . Reading the summary for POCO it sounds like they re aiming for a system that can be run on embedded systems so I m assuming it can be used in a much lighter way . I may now give it a whirl : P", "Question : I have been working with the Boost C++ Libraries http : en.wikipedia.org wiki Boost C++ Libraries for quite some time . I absolutely love the Boost Asio C++ library http : en.wikipedia.org wiki Asio C++ library for network-programming . However I was introduced to two other libraries : POCO http : pocoproject.org and Adaptive Communication Environment ACE framework http : en.wikipedia.org wiki Adaptive Communication Environment . I would like to know the good and bad of each . Comment : ACE is the ultimate network-programming swiss army knife for C++ programming but last I checked it was also a huge monster dependency in itself . .. . Answer : Boost enjoys a near STL status due to the number of people on the C++ standards committee who are also Boost developers . Poco and ACE do not enjoy that benefit and from my anecdotal experience Boost is more widespread . However POCO as a whole is more centered around network-type stuff . I stick to Boost so I can t help you there but the plus for Boost is its relatively widespread use .", "Question : I have been working with the Boost C++ Libraries http : en.wikipedia.org wiki Boost C++ Libraries for quite some time . I absolutely love the Boost Asio C++ library http : en.wikipedia.org wiki Asio C++ library for network-programming . However I was introduced to two other libraries : POCO http : pocoproject.org and Adaptive Communication Environment ACE framework http : en.wikipedia.org wiki Adaptive Communication Environment . I would like to know the good and bad of each . Comment : ACE is the ultimate network-programming swiss army knife for C++ programming but last I checked it was also a huge monster dependency in itself . .. . Answer : Many POCO users report using it alongside Boost so it is obvious that there are incentives for people in both projects . Boost is a collection of high-quality libraries . But it is not a framework . As for ACE I have used it in the past and did not like the design . Additionally its support for ancient non-compliant compilers has shaped the code base in an ugly way . What really distinguishes POCO is a design that scales and an interface with rich library availability reminiscent of those one gets with Java or C . At this time the most acutely lacking thing from POCO is asynchronous IO .", "Question : I have been working with the Boost C++ Libraries http : en.wikipedia.org wiki Boost C++ Libraries for quite some time . I absolutely love the Boost Asio C++ library http : en.wikipedia.org wiki Asio C++ library for network-programming . However I was introduced to two other libraries : POCO http : pocoproject.org and Adaptive Communication Environment ACE framework http : en.wikipedia.org wiki Adaptive Communication Environment . I would like to know the good and bad of each . Comment : ACE is the ultimate network-programming swiss army knife for C++ programming but last I checked it was also a huge monster dependency in itself . .. . Answer : I recently got a new job and work on a project that uses ACE and TAO . Well what I can tell is that ACE and TAO work and fully accomplish their tasks . But the overall organisation and design of the libraries are quite daunting.. . .. . .. . For example the main part of ACE consists of hundreds of classes starting with ACE . It seems like they ve ignored namespaces for decades . Additionally many of ACE s class names don t provide useful information either . Or can you guess what classes like ACE Dev Poll Reactor Notify or ACE Proactor Handle Timeout Upcall can be used for Additonally the documentation of ACE is really lacking so unless you want to learn ACE the hard way it is really hard without any good documentation. . I would NOT recommend using ACE unless you really need TAO http : en.wikipedia.org wiki TAO 28software 29 for CORBA http : en.wikipedia.org wiki Common Object Request Broker Architecture If you don t need CORBA go ahead and use some modern libraries. .", "Question : I have been working with the Boost C++ Libraries http : en.wikipedia.org wiki Boost C++ Libraries for quite some time . I absolutely love the Boost Asio C++ library http : en.wikipedia.org wiki Asio C++ library for network-programming . However I was introduced to two other libraries : POCO http : pocoproject.org and Adaptive Communication Environment ACE framework http : en.wikipedia.org wiki Adaptive Communication Environment . I would like to know the good and bad of each . Comment : ACE is the ultimate network-programming swiss army knife for C++ programming but last I checked it was also a huge monster dependency in itself . .. . Answer : I have used ACE for a very high performance data-acquisition application with real-time constraints . A single thread handles I O from over thirty TCP IC socket connections and a serial-port . The code runs on both 32 and 64 bit Linux . A few of the many ACE classes I have used are the ACE Reactor ACE Time Value ACE Svc Handler ACE Message Queue ACE Connector . ACE was a key factor to the success of our project . It does take a significant effort to understand how to use the ACE classes . I have all the books written about ACE . Whenever I have had to extend the functionality our system it typically takes some time to study what to do and then the amount of code required is very small . I have found ACE to very reliable . I also use a little bit of code from Boost . I do not see the same functionality in Boost . I would use either or both libraries .", "Question : I have been working with the Boost C++ Libraries http : en.wikipedia.org wiki Boost C++ Libraries for quite some time . I absolutely love the Boost Asio C++ library http : en.wikipedia.org wiki Asio C++ library for network-programming . However I was introduced to two other libraries : POCO http : pocoproject.org and Adaptive Communication Environment ACE framework http : en.wikipedia.org wiki Adaptive Communication Environment . I would like to know the good and bad of each . Comment : ACE is the ultimate network-programming swiss army knife for C++ programming but last I checked it was also a huge monster dependency in itself . .. . Answer : Boost is great I ve only heard good things about POCO but never used but I don t like ACE and would avoid it in future . Although you will find fans of ACE you will also find many detractors which you don t tend to get with boost or poco IME to me that sends a clear signal that ACE is not the best tool although it does what it says on the tin . Comment : ACE has been around for a very long time and has had to support many legacy platforms over the years . This is one of the reasons why it isn t as modern Boost for example . A great deal of extremely useful research and literature came out of ACE see Doug Schmidt s CV that others have been able to leverage and build on . Naturally others will learn from mistakes made in older libraries and improve on them . Others will also come up with completely new ways of doing similar things as well . Don t be too hard on ACE . I m also a big fan of Boost . Admittedly I ve never used POCO . Comment : ACE was started at a time when compilers were very incompatible no standard existed yet and templates were a complete nightmare 1996 1997 and there were a hundred Unix-like platforms . I evaluated ACE+TAO for a project - we eventually settled on OmniORB TAO was so immature it broke with every new release . ACE on the other hand was a rock . It shows it age in terms of library setup but it s solid and it has a large following . I did fear a bit of the benevolent dictator however - if Schmidt ever went boots up ACE might be trouble . I don t get that feeling with Boost .", "Question : In my project we use the ACE Adaptive Communication Environment middleware to write OS independent code that would run on both Windows and Linux . The requirement is to the get the process id from process name . Since ACE does not support this we will have to use platform specific macros to separate the code for windows and linux . For windows I would have to use either of - EnumProcesses or CreateToolhelp32Snapshot .. . .. . How to do the same on linux using an API Programming language is C++ .. . Answer : if i understand your question correctly you can do this from c++ .. . .. . here is an another example : Get process id by name in Linux using C++ http : proswdev.blogspot.de 2012 02 get-process-id-by-name-in-linux-using-c.html Comment : Looks good . But even here we use the pidof command . Is there no API interface similar to Windows Comment : i m not sure if existing an API . Boost lib maybe . In the standart lib existing a function which returns the process id of the application . getpid returns the process ID of the calling process OR getppid returns the process ID of the parent of the calling process . source : linux.die.net man 2 getpid http : linux.die.net man 2 getpid", "Question : I have been working with the Boost C++ Libraries http : en.wikipedia.org wiki Boost C++ Libraries for quite some time . I absolutely love the Boost Asio C++ library http : en.wikipedia.org wiki Asio C++ library for network-programming . However I was introduced to two other libraries : POCO http : pocoproject.org and Adaptive Communication Environment ACE framework http : en.wikipedia.org wiki Adaptive Communication Environment . I would like to know the good and bad of each . Comment : ACE is the ultimate network-programming swiss army knife for C++ programming but last I checked it was also a huge monster dependency in itself . .. . Answer : I ve used all three so here s my 0.02 . I really want to vote for Doug Schmidt and respect all the work he s done but to be honest I find ACE mildly buggy and hard to use . I think that library needs a reboot . It s hard to say this but I d shy away from ACE for now unless there is a compelling reason to use TAO or you need a single code base to run C++ on both Unix variants and Windows . TAO is fabulous for a number of difficult problems but the learning curve is intense and there s a reason CORBA has a number of critics . I guess just do your homework before making a decision to use either . If you are coding in C++ boost is in my mind a no-brainer . I use a number of the low-level libraries and find them essential . A quick grep of my code reveals shared-ptr program options regex bind serialization foreach property tree filesystem tokenizer various iterator extensions alogrithm and mem fn . These are mostly low-level functionality that really ought to be in the compiler . Some boost libraries are very generic it can be work to get them to do what you want but it s worthwhile . Poco is a collection of utility classes that provide functionality for some very concrete common tasks . I find the libraries are well-written and intuitive . I don t have to spend much time studying documentation or writing silly test programs . I m currently using Logger XML Zip and Net SMTP . I started using Poco when libxml2 irritated me for the last time . There are other classes I could use but haven t tried e.g . Data : : MySQL I m happy with mysql++ and Net : : HTTP I m happy with libCURL . I ll try out the rest of Poco eventually but that s not a priority at this point . Comment : Good description thanks .", "Question : null .. . Answer : I m new to ACE Adaptive Communication Environment . I am trying to link a DLL I built to a console program s main function using ACE Service Config : : open argc argv . I have created the make and gobbler functions correctly in the cpp file of the DLL . The error happens in the file Service Type.cpp in ACE Service Config : : init .. . . My service object class inherits from ACE Task . I have also overridden the virtual init fini open and svc methods . I really do not know why it is throwing the exception . Any help would be appreciated . Comment : You really don t give enough details to answer the question I would recommend you to subscribe to the ace-users mailing list and post there that works faster than posting here . See cs.wustl.edu schmidt ACE-mail.html http : www.cs.wustl.edu schmidt ACE-mail.html for the lists we have and how to post . Comment : Thanks I ll give it a try . Comment : I am not really sure what is causing the problem either . What other details should I give Comment : More code and exact exception", "Question : I m trying to create a group of threads and wait for it to finish . As far as I understand I should use ace thread manager : : spawn n function but I don t know how to wait for all the threads of the group to finish . Can anyone refer me to a simple code sample that demonstrates this issue .. . Answer : You can find this describe in the ACE C++ Network Programming Volume 1 book see http : www.orbzone.org documents books chapter 9 . You can find the example code if this book examples C++NPv1 as part of the ACE distribution .", "Question : I am attempting to build the ACE library for Mingw GCC 64 bit on Windows . The instructions here http : www.dre.vanderbilt.edu schmidt DOC ROOT ACE ACE-INSTALL.html mingw state the following : .. . .. . 1 . Install the MinGW tools including the MinGW Development toolkit into a common directory say c : mingw . 2 . Install the MSYS tools into a common directory say c : msys . 3 . Open a MSYS shell . Set your PATH environment variable so your MinGW s bin directory is first : .. . .. . export PATH c mingw bin : PATH .. . .. . .. . 4 . Add an ACE ROOT environment variable pointing to the root of your ACE wrappers source tree : .. . .. . export ACE ROOT c work mingw ACE wrappers .. . .. . .. . From now on we will refer to the root directory of the ACE source tree as ACE ROOT . 5 . Create a file called config.h in the ACE ROOT ace directory that contains : .. . .. . include ace config-win32.h .. . .. . .. . 6 . Create a file called platform macros.GNU in the ACE ROOT include makeinclude directory containing : .. . .. . include ACE ROOT include makeinclude platform mingw32.GNU .. . .. . .. . In the above text don t replace ACE ROOT with the actual directory GNU make will take the value from the environment variable you defined previously . If you lack Winsock 2 add the line .. . .. . winsock2 0 .. . .. . .. . before the previous one . If you want to install ACE using make install and want all the .pc files generated set the installation prefix in platform macros.GNU . INSTALL PREFIX c ACE .. . .. . .. . Headers will be installed to INSTALL PREFIX include documentation and build-system files to INSTALL PREFIX share and libraries to INSTALL PREFIX lib . With INSTALL PREFIX set RPATH will be enabled . To disable RPATH for example if INSTALL PREFIX INSTALL LIB is already a system-known location for shared-libraries set the make macro install rpath to 0 by adding install rpath 0 to platform macros.GNU . Issue here : .. . .. . 7 . In the MSYS shell change to the ACE ROOT ace directory and run make : .. . .. . cd ACE ROOT ace .. . make .. . .. . .. . Now I noticed that there is no MakeFile in ACE ROOT ace which is C : mingw64 Other ACE wrappers ace .. . .. . I downloaded my ACE stuff from here http : download.dre.vanderbilt.edu previous versions ACE+TAO+CIAO-6.3.0.tar.gz . Any suggestions on what I might be doing wrong did I download something wrong .. . Answer : You seem to have downloaded the source only distribution please download the full package that includes also the GNU makefiles see http : download.dre.vanderbilt.edu", "Question : Are there clear instructions to build ACE and TAO libraries for use on Windriver VxWorks OS The goal is to build ACE TAO for RPC style communication between VxWorks and Windows machine . I am using Windriver Workbench 3.2 on windows-7 target is vxworks 6.8 ppc32 . .. . Answer : The only public instructions we have are part of the ACE-INSTALL.html which you can find in the root in the ACE package and we have some generic additional instructions as part of the CORBA Programmers Guide http : www.remedy.nl opensource corbapg.html .", "Question : Apache Ace documentation refers that it can do software provisioning to other types of targets non-OSGi containers or something completely different target . But no documentation is available regarding non-OSGi target . Can I have some examples of non-OSGi targets to which Apache Ace can do software provisioning . Also what are the minimum requirement for a target to work with Apache ACE . Thanks .. . Answer : Have a look at remote interfaces http : ace.apache.org dev-doc design remote-interfaces.html but HTTP is the default I think see this link https : cwiki.apache.org ACE communication-gateway-and-server.html - so as a minimum requirement anything that can check the metadata and stream a socket can hit the relevant restful looking URLs and discover provision from Ace .", "Question : I am trying to write a program that sends stream packets to a certain listener I am using my localhost in UDP using ACE . This is in order to test my program that receives a stream of UDP datagrams from a remote peer . So far I have managed to simulate a stream but I don t know how to receive data using a connection of a real network . This is a code example that sends 60 packets for the localhost will that be enough for a sender Comment : UDP and stream in the same sequence Are you trying to spell TCP Comment : Where is sent declared Why are you receiving packets and then checking sent instead of received - is this your real code Anyway did you actually test your code with a remote peer and the peer addresses instead of ACE LOCALHOST Comment : I meant UDP . My program receives a stream of UDP datagrams . You are right - the code should be send bad copy paste.. . Comment : Can you make your question more specific And put a question mark after it - All I can gleam from your post is how do I write software using ACE that receives data from the network which has a very non-trivial answer . .. . Answer : Check chapter 9 of the ACE Programmers Guide see http : www.orbzone.org documents books for how UDP works with ACE . See ACE wrappers examples APG Misc IPC for the code that belongs-to that section . Comment : I have found a good link that helped me find a solution : code.msdn.microsoft.com windowsdesktop http : code.msdn.microsoft.com windowsdesktop Sockets-with-Adaptive-c9f5cc2b", "Question : I have been working with the Boost C++ Libraries http : en.wikipedia.org wiki Boost C++ Libraries for quite some time . I absolutely love the Boost Asio C++ library http : en.wikipedia.org wiki Asio C++ library for network-programming . However I was introduced to two other libraries : POCO http : pocoproject.org and Adaptive Communication Environment ACE framework http : en.wikipedia.org wiki Adaptive Communication Environment . I would like to know the good and bad of each . Comment : ACE is the ultimate network-programming swiss army knife for C++ programming but last I checked it was also a huge monster dependency in itself . .. . Answer : As rdbound said Boost has a near STL status . So if you don t need another library stick to Boost . However I use POCO http : pocoproject.org because it has some advantages for my situation . The good things about POCO IMO : .. . .. . Better thread library especially a Active Method implementation . I also like the fact that you can set the thread-priority . More comprehensive network library than boost : asio . However boost : : asio is also a very good library . Includes functionality that is not in Boost like XML and database interface to name a few . It is more integrated as one library than Boost . It has clean modern and understandable C++ code . I find it far easier to understand than most of the Boost libraries but I am not a template programming expert : . It can be used on a lot of platforms . Some disadvantages of POCO are : .. . .. . It has limited documentation . This somewhat offset by the fact that the source is easy to understand . It has a far smaller community and user base than say Boost . So if you put a question on Stack Overflow for example your chances of getting an answer are less than for Boost .. . .. . It remains to be seen how well it will be integrated with the new C++ standard . You know for sure that it will not be a problem for Boost . I never used ACE so I can t really comment on it . From what I ve heard people find POCO more modern and easier to use than ACE . Some answers to the comments by Rahul : .. . .. . 1 . I don t know about versatile and advanced . The POCO thread library provides some functionality that is not in Boost : ActiveMethod and Activity and ThreadPool . IMO POCO threads are also easier to use and understand but this is a subjective matter . 2 . POCO network library also provides support for higher level protocols like HTTP and SSL possibly also in boost : : asio but I am not sure . 3 . Fair enough . 4 . Integrated library has the advantage of having consistent coding documentation and general look-and-feel . 5 . Being cross-platform is an important feature of POCO this is not an advantage in relation to Boost . Again you should probably only consider POCO if it provides some functionality you need and that is not in Boost . Comment : From what little I have learned about POCO things dont seem to add up : 1 . boost-thread seems much more versatile and advanced . 2 . POCO is more versatile in what ways 3 . I am only interested in networking . XML and database do not concern me . 4 . Integrated as one library I am not sure if thats a good or bad thing 5 . Boost I believe and that goes for boost : : asio also is also quite crossplatform . Comment : @Rahul I tried to answer some of your points in the answer . Comment : I haven t looked at POCO recently but it when I did look at it a few years ago I was put off by the fact that components seemed to use a mixture of licenses . Some used the Boost license others were GPL . Some of the encryption stuff required a license for commercial use . I don t know what the current licensing situation is with POCO but I would look at that carefully before using it . Comment : POCO is entirely licensed under the Boost license http : pocoproject.org license.html for future reference .", "Question : I ve installed ace-editor into my site and although when I tested it in a dev environment now with the same code I am experiencing typing errors - specifically when hitting space or delete . When I click space strange characters appear instead . Here is an example of my code and an image of what I am seeing . Can anybody help enter image description here http : i.stack.imgur.com opMlX.png .. . Answer : It turned out that this issue was because I included the script like : .. . .. . and I should have included the following attributes : Comment : thanks much appreciated Comment : Still have that problem even with your code . Comment : Same here. . the problem hasn t gone away after adding those attributes . Comment : Scratch that you have to do this to EVERY script that Ace requires not just ace.js . Comment : @Seiyria can you explain what you mean about every script that ace requires I m using angular ace-ui and have added the data-ace-base and charset to the script-tag not sure what other scripts ace requires .", "Question : If I load Ace Editor from a CDN : .. . https : cdnjs.cloudflare.com ajax libs ace 1.2.3 ace.js .. . .. . Is it possible to download a mode from another location : .. . http : hello.processing.org js vendor ace mode-processing.js .. . .. . Suppose I download the mode in the second link above . Can I then load it into Ace Editor on my site even though Ace is connected via CDN How can I attach this custom mode .. . .. . I ve tried the following related answers with no luck : .. . http : stackoverflow.com a 17509307 1161948 .. . http : stackoverflow.com a 25216371 1161948 .. . Answer : the file you are showing is not a theme it s a mode . You can use it by adding the script-element to that file yourself or use ace.config.setModuleUrl method tell ace which url to use when downloading ace mode processing .. . .. . .. . script src https : cdnjs.cloudflare.com ajax libs ace 1.2.3 ace.js script .. . .. . div id editor div .. . style .. . editor position : absolute top : 0 bottom : 0 left : 0 right : 0 .. . style .. . script .. . var editor ace.edit editor .. . ace.config.setModuleUrl ace mode processing http : hello.processing.org js vendor ace mode-processing.js .. . editor.setOption mode ace mode processing .. . script Comment : Looks like cross-site scripting and in fact the browser blocked it . So I download the file and I put it in a local folder ace mode mode-processing.js then I rewrite that line ace.config.setModuleUrl ace mode processing ace mode mode-processing.js and it should work It s topugh for me to evaluate if it s doing anything at all - seems like the regular Java mode is better . Comment : When you say add the script-element how do you mean exactly Like this.. . script src http : hello.processing.org js vendor ace mode-processing.js script In that case what do I have to change in the code to use it from there Comment : same as above but without ace.config.setModuleUrl call", "Question : I m trying to build OpenDDS 3.4.1 with ACE+TAO-6.2.3 . While following the DDS INSTALL docs option B I m running into the following build errors . Here is directory location .. . Environment variables .. . .. . .. . And this is the build error I m trying to get past . I ve built this before and it worked but can t see why I m having troubles this time around . Any ideas .. . Answer : There has been some refactoring in ACE which causes OpenDDS 3.4.1 not to compile with ACE TAO x.2.3 . You have to manually add an include of ace INET Addr.h to dds DCPS transport framework TransportReceiveStrategy T.h as done in commit 5998 https : svn.dre.vanderbilt.edu viewvc DDS trunk dds DCPS transport framework TransportReceiveStrategy T.h r1 5804 r2 5998 of OpenDDS . Comment : Big thanks again ." ] }
[ "yes-answer-long", "yes-answer-short" ]
c++
UNK_RELATION
gimli@markup@44
gimli -- gimli is a utility for converting @placeholder to pdf files .
{ "confidence": [ 59.463809967041016, 40.46222686767578, 16.701156616210938, 16.701156616210938 ], "content": [ "I ve tested it with gimli and it works .", "Some variants of Markdown understand that say .. . .. . : id archive browser get file .. . .. . should not be interpreted as .. . .. . : id archive browser get file .. . .. . But I can t get gimli to behave in this manner .", "Is there a way to do this", "the first way that comes to mind is to escape the underscores like this ." ] }
{ "confidence": [ 62.37321090698242 ], "content": [ "Question : Some variants of Markdown understand that say .. . .. . : id archive browser get file .. . .. . should not be interpreted as .. . .. . : id archive browser get file .. . .. . But I can t get gimli to behave in this manner . Is there a way to do this .. . Answer : the first way that comes to mind is to escape the underscores like this . I ve tested it with gimli and it works ." ] }
[ "yes-answer-long", "yes-answer-short" ]
markup
UNK_RELATION
wso2wsas@server@39
wso2wsas -- wso2 ws is an application @placeholder that links together open-source technologies .
{ "confidence": [ 28.97901725769043, 27.920650482177734, 26.937255859375, 26.035564422607422, 24.814170837402344, 24.552669525146484, 24.494369506835938, 24.006755828857422, 23.168962478637695, 22.785364151000977, 21.853649139404297, 21.140155792236328, 21.140155792236328, 21.047710418701172, 20.304340362548828, 19.794233322143555, 19.794233322143555, 19.005483627319336, 19.005483627319336, 17.87037467956543, 16.948740005493164, 15.967181205749512, 15.614686965942383, 15.35120964050293, 15.35120964050293, 15.35120964050293, 15.35120964050293, 15.35120964050293, 15.35120964050293, 15.35120964050293, 15.35120964050293, 15.35120964050293, 15.35120964050293, 15.35120964050293, 15.35120964050293, 15.35120964050293, 15.35120964050293, 15.35120964050293, 15.35120964050293, 15.146097183227539, 14.547967910766602, 13.322402000427246, 13.322402000427246, 13.322402000427246, 13.322402000427246, 13.322402000427246, 13.322402000427246, 13.322402000427246, 13.322402000427246, 13.322402000427246, 13.322402000427246, 13.322402000427246, 13.322402000427246, 13.322402000427246, 13.322402000427246, 13.322402000427246, 13.322402000427246, 13.322402000427246, 13.322402000427246, 13.322402000427246, 13.322402000427246, 13.322402000427246, 13.322402000427246, 13.322402000427246, 13.322402000427246, 13.322402000427246, 13.322402000427246, 13.322402000427246, 13.322402000427246, 13.322402000427246, 11.976479530334473, 11.976479530334473, 11.976479530334473, 11.976479530334473, 11.976479530334473, 11.976479530334473, 11.976479530334473, 11.976479530334473, 11.976479530334473, 11.976479530334473, 11.976479530334473, 11.976479530334473, 11.976479530334473, 11.976479530334473, 11.976479530334473, 11.976479530334473, 11.976479530334473, 11.976479530334473, 11.976479530334473, 11.976479530334473, 11.976479530334473, 11.976479530334473, 11.976479530334473, 11.976479530334473, 11.976479530334473, 11.976479530334473, 11.976479530334473, 11.976479530334473 ], "content": [ "I am using WSO2 Application Server .", "Can anybody tell me why marketplace in eclipse-kepler not pulling WSO2WSAS plugin to be installed", "WSO2 code has task to clean it .", "I have a wso2 wsas3.1.1 in my production environment .", "Therefore I think It must be safe to delete it as WSO2 has implementation to do it .", "svn.wso2.org repos wso2 carbon kernel branches 4.2.0 core http : svn.wso2.org repos wso2 carbon kernel branches 4.2.0 core org.wso2.carbon.core 4.2.0 src main java org wso2 carbon core util HouseKeepingTask.java", "Not only you answered me but also you taught me that I can dig into the real source of open-source projects to handle my problems .", "This exception is thrown because WSO2 AS is not bundled with JSF .", "But it seems to be that it is not working according to the jira https : wso2.org jira browse CARBON-11926 .", "I m currently trying to install the wso2 php-extension on an Ubuntu 12.04 server .", "Please check source here .", "When trying to deploy a WAR file build with JSF java.lang.ClassNotFoundException : javax.faces.webapp.FacesServlet is thrown on WSO2 AS .", "WSO2 AS provides a way to enabling additional packages only for selected webapps through a webapp-classloading.xml .", "I am being confused by wso2 aplication server .", "My web service living on Axis2 inside a WSO2 WSAS application server contains the following code : .. . .. . When run the service produces this error : .. . .. . I do have Saxon-HE-9.4.jar in my classpath and it is readable .", "When you add your own certificate you need to modify the WSO2 configuration-files to point to your certificate .", "The reason is that WSO2 encrypts the datasource passwords using the current keystore certificate at the time of datasource creation .", "I followed this guide http : patrics-it.blogspot.se 2012 03 how-to-install-wsowsf-210-for-php-on.html with Ubuntu 12.04 PHP 5.3 and was able to install wso2 extension successfully .", "Name : WSO2 Carbon - J2EE Runtime Environment Identifier : org.wso2.carbon.as.runtimes.j2ee.feature .. . .. . Refer this link https : docs.wso2.com display AS521 Java+EE+Support JavaEESupport-JavaServerFacessupport for more details .", "I should also warn you not to use this extension in production because of the following reasons : .. . .. . the latest commit to their repo was made almost a year ago .. . there is no progress in their JIRA either for about a year .. . the person who is set as a project manager for this project in jira seems to work on another project right now .. . they are not-responding to bug report in jira .. . this extension has known stability issues on linux check stackoverflow or their jira with keyworkds wso2 php segmentation-fault .. . .. . On the recent project we are also supposed to use wso2 php-extension but after some research we see that this extension is unstable and not supported anymore .", "It will not be enough just to deploy it in your web application .", "For example if you put a webapp-classloading.xml file inside the META-INF folder you will override the default settings and only the classloading environments defined in that XML file are exposed to the web application .", "Most application servers have a predefined location where jar files can be placed for exactly this purpose .", "It has about 8.6 GB of data in CARBON HOME tmp folder .", "I browsed it s files and I have no idea about what are they and what they do .", "I want to remove all files and folders in the tmp folder does it make any differences", "Is it harmful", "Also I want to know that why the Housekeeping task does not clear the tmp folder based on time schedules", "Thanks", "I think it is fine to remove the tmp directory .", "It would not harmful .", "There is some housekeeping task to clean this directory .", "Therefore i think It is better to write some task to do it .", "So you say that I can clean the directory completely", "Is there a way that I can get sure about harmless remove", "Yes .", "however it is not working .", "Very great", "Thanks .", "If axis2 which seems to be the cause of the exception is placed outside your web application then you must also make Saxon available there too .", "I m trying to consume a secured web service hosted on WSO2 AS so I created a new certificate in the existing wso2carbon.jks file of the server and add it to the client JVM cacerts but I m getting this error : .. . .. . java.security.cert.CertificateException : No subject alternative names present .. . .. . Nevertheless if I create a brand new wso2carbon.jks and overwrite the old one in the server after add the new certificate to the client JVM cacerts I can consume the secured service but other things in AS stop working like datasources I tried adding the new certificate to the client-truststore.jks in the server but datasource still don t work .", "When I do the make command I m getting the following error : .. . .. . So the installer can t find savanc .", "I ve been googling for this error and it seems to be working on php-5.2 however I have some other services on my server running that requires php-5.3 .", "How could I get rid of this error", "Thanks in advance", "Do you have sufficient right", "try mkdir savanc before executing the make", "I m running the command with sudo so I have enough rights .", "I will try to make the directory and I ll let you know if it has worked", "Maybe this will be helpful for you .", "Unfortunately for now we do not know what to use instead and looking for some other solutions .", "I have 3 questions .. . .. . 1 .", "Why this Exception is thrown", "2 .", "Is it because Tomcat doesn t support Java EE and JSF .", "3 .", "If then why can t we use TomEE .", "For further details I ll paste the error-log here .", "Never heard of it but it appears to have documentation .", "Did you read it", "docs.wso2.com display AS520 https : docs.wso2.com display AS520 Java+EE+Support JavaEESupport-JavaServerFacessupport", "Sorry for late reply yes they are clearly documented .", "I needed to install AS Optional package which is bundled with CXF JEE .", "Thanks @BalusC the founder of OmniFaces", "Since others can benefit from this answer I will post my findings .. . .. . 1 .", "JSF comes as an additional feature that can be installed from the online Carbon p2 repository .", "Already answered .", "Tomcat doesn t support it natively .", "TomEE could have used .", "But not all web-applications are using Java EE packages .", "It is also available to Axis2 foo bar wso2as wso2as-4.0.0 tmp axis2-tmp-6436419317930731973.tmp axis67573163200472779114Saxon-HE-9.4.jar .", "According to the Javadoc for newInstance http : docs.oracle.com javase 6 docs api javax xml transform TransformerFactory.html newInstance 28 29 the system property I m setting should overrule all other methods of identifying which TransformerFactory to use so precedence is not the issue .", "What could be causing this error and what can I do to get my desired Saxon transformer factory", "I have and I edited my question to reflect this .", "Okay I seem to have been wrong before I needed to add the JAR to yet another location foo bar wso2as wso2as-4.0.0 repository components lib .", "This seems to be a class loading issue .", "Have you followed this documentation .", "http : docs.wso2.org wiki display AS510 Webapp+ClassLoading", "I m working with AS 5.0.0 Thanks in advance .", "What you mean by other things in AS stop working like datasources", "Are they already created datasources and i assume you are using AS 5.2.1", "I m working with AS 5.0.0 as I told in my entrance I had some datasources created for a few dataservices that were working well when I overwrote the wso2carbon.jks with the one I had created and rebooted the server the created datasources disappeared and an error appeared when I tried to recreate them again I switch back the older wso2carbon.jks and everything work fine again but I can t consume the secured web service", "I guess those datasource resources stored at registry and those resources getting encrypted when storing .", "Have you tried to create new datasource or try the scenario in a fresh pack where keystore is changed to new one from the beginning .", "Basically you need to modify repository conf carbon.xml and repository conf tomcat catalina-server.xml .", "In case of ESB you need to modify repository conf axis2 axis2.xml as well .", "The changes needed are described in this blog http : ajithvblogs.blogspot.com 2012 12 how-to-add-new-keystore-to-carbon-4 3.html .", "The error that you faced with data sources is because of the change of certificates .", "To fix the error you will need to remove your datasources and re-add them .", "No need to re-create your data-services though .", "Your client is trying to check the domain-name or IP of the server against the domain-name or IP in the certificate to ensure that it is reaching the right server .", "You need to create a new certificate to use that has a subject alternative name equal to the domain-name or IP of the server whichever the client is using to connect .", "yes that s what I did I created a new jks with a pair of new keys I replaced the wso2carbon.jks by the new one I had created exported the certificate and added it to the client JVM cacerts so I could consume the secured web service but the created and working datasource of my dataservices stopped working", "The problem is this : if I create a new key in the existing wso2carbon.jks with the right CN and the extension for the IP export the certificate and add it to the client JVM cacerts I receive : java.security.cert.CertificateException : No subject alternative names present but If create a new wso2carbon.jks I can consume the secured web service but the datasource of my dataservices stopped working", "What is the error on the datasource if you create a new keystore", "Have you changed the host name in the carbon.xml of the AS", "1st Case : In default wso2carbon.jks have its CN as localhost so you need to change the keystore if you are working with different host name or else you need to invoke hosted web service using localhost .", "2nd Case : If you changed created and replaced the wso2carbon.jks of the AS with a appropriate CN you need to extract its public certificate and import it into cacerts and client-truststore.jks of all other carbon servers which contact with AS ." ] }
{ "confidence": [ 35.854244232177734, 33.877559661865234, 27.633129119873047, 24.574478149414062, 22.62427520751953, 22.59244155883789, 21.421573638916016, 19.468412399291992, 17.964820861816406, 17.146148681640625 ], "content": [ "Question : null .. . Answer : Can anybody tell me why marketplace in eclipse-kepler not pulling WSO2WSAS plugin to be installed", "Question : I have a wso2 wsas3.1.1 in my production environment . It has about 8.6 GB of data in CARBON HOME tmp folder . I browsed it s files and I have no idea about what are they and what they do . I want to remove all files and folders in the tmp folder does it make any differences Is it harmful Also I want to know that why the Housekeeping task does not clear the tmp folder based on time schedules Thanks .. . Answer : I think it is fine to remove the tmp directory . It would not harmful . There is some housekeeping task to clean this directory . But it seems to be that it is not working according to the jira https : wso2.org jira browse CARBON-11926 . Therefore i think It is better to write some task to do it . Comment : So you say that I can clean the directory completely Is there a way that I can get sure about harmless remove Comment : Yes . Please check source here . WSO2 code has task to clean it . however it is not working . Therefore I think It must be safe to delete it as WSO2 has implementation to do it . svn.wso2.org repos wso2 carbon kernel branches 4.2.0 core http : svn.wso2.org repos wso2 carbon kernel branches 4.2.0 core org.wso2.carbon.core 4.2.0 src main java org wso2 carbon core util HouseKeepingTask.java Comment : Very great Not only you answered me but also you taught me that I can dig into the real source of open-source projects to handle my problems . Thanks .", "Question : I am using WSO2 Application Server . When trying to deploy a WAR file build with JSF java.lang.ClassNotFoundException : javax.faces.webapp.FacesServlet is thrown on WSO2 AS . I have 3 questions .. . .. . 1 . Why this Exception is thrown 2 . Is it because Tomcat doesn t support Java EE and JSF . 3 . If then why can t we use TomEE . For further details I ll paste the error-log here . Comment : Never heard of it but it appears to have documentation . Did you read it docs.wso2.com display AS520 https : docs.wso2.com display AS520 Java+EE+Support JavaEESupport-JavaServerFacessupport Comment : Sorry for late reply yes they are clearly documented . I needed to install AS Optional package which is bundled with CXF JEE . Thanks @BalusC the founder of OmniFaces .. . Answer : Since others can benefit from this answer I will post my findings .. . .. . 1 . This exception is thrown because WSO2 AS is not bundled with JSF . JSF comes as an additional feature that can be installed from the online Carbon p2 repository . Name : WSO2 Carbon - J2EE Runtime Environment Identifier : org.wso2.carbon.as.runtimes.j2ee.feature .. . .. . Refer this link https : docs.wso2.com display AS521 Java+EE+Support JavaEESupport-JavaServerFacessupport for more details . 2 . Already answered . Tomcat doesn t support it natively . 3 . TomEE could have used . But not all web-applications are using Java EE packages . WSO2 AS provides a way to enabling additional packages only for selected webapps through a webapp-classloading.xml . For example if you put a webapp-classloading.xml file inside the META-INF folder you will override the default settings and only the classloading environments defined in that XML file are exposed to the web application .", "Question : I m currently trying to install the wso2 php-extension on an Ubuntu 12.04 server . When I do the make command I m getting the following error : .. . .. . So the installer can t find savanc . I ve been googling for this error and it seems to be working on php-5.2 however I have some other services on my server running that requires php-5.3 . How could I get rid of this error Thanks in advance Comment : Do you have sufficient right try mkdir savanc before executing the make Comment : I m running the command with sudo so I have enough rights . I will try to make the directory and I ll let you know if it has worked .. . Answer : I followed this guide http : patrics-it.blogspot.se 2012 03 how-to-install-wsowsf-210-for-php-on.html with Ubuntu 12.04 PHP 5.3 and was able to install wso2 extension successfully . Maybe this will be helpful for you . I should also warn you not to use this extension in production because of the following reasons : .. . .. . the latest commit to their repo was made almost a year ago .. . there is no progress in their JIRA either for about a year .. . the person who is set as a project manager for this project in jira seems to work on another project right now .. . they are not-responding to bug report in jira .. . this extension has known stability issues on linux check stackoverflow or their jira with keyworkds wso2 php segmentation-fault .. . .. . On the recent project we are also supposed to use wso2 php-extension but after some research we see that this extension is unstable and not supported anymore . Unfortunately for now we do not know what to use instead and looking for some other solutions .", "Question : My web service living on Axis2 inside a WSO2 WSAS application server contains the following code : .. . .. . When run the service produces this error : .. . .. . I do have Saxon-HE-9.4.jar in my classpath and it is readable . It is also available to Axis2 foo bar wso2as wso2as-4.0.0 tmp axis2-tmp-6436419317930731973.tmp axis67573163200472779114Saxon-HE-9.4.jar . According to the Javadoc for newInstance http : docs.oracle.com javase 6 docs api javax xml transform TransformerFactory.html newInstance 28 29 the system property I m setting should overrule all other methods of identifying which TransformerFactory to use so precedence is not the issue . What could be causing this error and what can I do to get my desired Saxon transformer factory .. . Answer : If axis2 which seems to be the cause of the exception is placed outside your web application then you must also make Saxon available there too . Most application servers have a predefined location where jar files can be placed for exactly this purpose . It will not be enough just to deploy it in your web application . Comment : I have and I edited my question to reflect this . Comment : Okay I seem to have been wrong before I needed to add the JAR to yet another location foo bar wso2as wso2as-4.0.0 repository components lib .", "Question : My web service living on Axis2 inside a WSO2 WSAS application server contains the following code : .. . .. . When run the service produces this error : .. . .. . I do have Saxon-HE-9.4.jar in my classpath and it is readable . It is also available to Axis2 foo bar wso2as wso2as-4.0.0 tmp axis2-tmp-6436419317930731973.tmp axis67573163200472779114Saxon-HE-9.4.jar . According to the Javadoc for newInstance http : docs.oracle.com javase 6 docs api javax xml transform TransformerFactory.html newInstance 28 29 the system property I m setting should overrule all other methods of identifying which TransformerFactory to use so precedence is not the issue . What could be causing this error and what can I do to get my desired Saxon transformer factory .. . Answer : This seems to be a class loading issue . Have you followed this documentation . http : docs.wso2.org wiki display AS510 Webapp+ClassLoading", "Question : I m trying to consume a secured web service hosted on WSO2 AS so I created a new certificate in the existing wso2carbon.jks file of the server and add it to the client JVM cacerts but I m getting this error : .. . .. . java.security.cert.CertificateException : No subject alternative names present .. . .. . Nevertheless if I create a brand new wso2carbon.jks and overwrite the old one in the server after add the new certificate to the client JVM cacerts I can consume the secured service but other things in AS stop working like datasources I tried adding the new certificate to the client-truststore.jks in the server but datasource still don t work . I m working with AS 5.0.0 Thanks in advance . Comment : What you mean by other things in AS stop working like datasources Are they already created datasources and i assume you are using AS 5.2.1 Comment : I m working with AS 5.0.0 as I told in my entrance I had some datasources created for a few dataservices that were working well when I overwrote the wso2carbon.jks with the one I had created and rebooted the server the created datasources disappeared and an error appeared when I tried to recreate them again I switch back the older wso2carbon.jks and everything work fine again but I can t consume the secured web service Comment : I guess those datasource resources stored at registry and those resources getting encrypted when storing . Have you tried to create new datasource or try the scenario in a fresh pack where keystore is changed to new one from the beginning . .. . Answer : When you add your own certificate you need to modify the WSO2 configuration-files to point to your certificate . Basically you need to modify repository conf carbon.xml and repository conf tomcat catalina-server.xml . In case of ESB you need to modify repository conf axis2 axis2.xml as well . The changes needed are described in this blog http : ajithvblogs.blogspot.com 2012 12 how-to-add-new-keystore-to-carbon-4 3.html . The error that you faced with data sources is because of the change of certificates . The reason is that WSO2 encrypts the datasource passwords using the current keystore certificate at the time of datasource creation . To fix the error you will need to remove your datasources and re-add them . No need to re-create your data-services though .", "Question : I am being confused by wso2 aplication server . When i access a non-exist page it will always redirect to carbon console I have studied the xml config files but find no luck . I just want to know how to make it just report 404 error when it does happen .. . Answer : I have found the answer the reason is the carbon app occupied the context root so all request to non exist context-roots will be received by carbon app . After changing the carbon WebContextRoot in carbon.xml all seems ok now .", "Question : I m trying to consume a secured web service hosted on WSO2 AS so I created a new certificate in the existing wso2carbon.jks file of the server and add it to the client JVM cacerts but I m getting this error : .. . .. . java.security.cert.CertificateException : No subject alternative names present .. . .. . Nevertheless if I create a brand new wso2carbon.jks and overwrite the old one in the server after add the new certificate to the client JVM cacerts I can consume the secured service but other things in AS stop working like datasources I tried adding the new certificate to the client-truststore.jks in the server but datasource still don t work . I m working with AS 5.0.0 Thanks in advance . Comment : What you mean by other things in AS stop working like datasources Are they already created datasources and i assume you are using AS 5.2.1 Comment : I m working with AS 5.0.0 as I told in my entrance I had some datasources created for a few dataservices that were working well when I overwrote the wso2carbon.jks with the one I had created and rebooted the server the created datasources disappeared and an error appeared when I tried to recreate them again I switch back the older wso2carbon.jks and everything work fine again but I can t consume the secured web service Comment : I guess those datasource resources stored at registry and those resources getting encrypted when storing . Have you tried to create new datasource or try the scenario in a fresh pack where keystore is changed to new one from the beginning . .. . Answer : Have you changed the host name in the carbon.xml of the AS 1st Case : In default wso2carbon.jks have its CN as localhost so you need to change the keystore if you are working with different host name or else you need to invoke hosted web service using localhost . 2nd Case : If you changed created and replaced the wso2carbon.jks of the AS with a appropriate CN you need to extract its public certificate and import it into cacerts and client-truststore.jks of all other carbon servers which contact with AS . HTH .. . .. . DarRay", "Question : I m trying to consume a secured web service hosted on WSO2 AS so I created a new certificate in the existing wso2carbon.jks file of the server and add it to the client JVM cacerts but I m getting this error : .. . .. . java.security.cert.CertificateException : No subject alternative names present .. . .. . Nevertheless if I create a brand new wso2carbon.jks and overwrite the old one in the server after add the new certificate to the client JVM cacerts I can consume the secured service but other things in AS stop working like datasources I tried adding the new certificate to the client-truststore.jks in the server but datasource still don t work . I m working with AS 5.0.0 Thanks in advance . Comment : What you mean by other things in AS stop working like datasources Are they already created datasources and i assume you are using AS 5.2.1 Comment : I m working with AS 5.0.0 as I told in my entrance I had some datasources created for a few dataservices that were working well when I overwrote the wso2carbon.jks with the one I had created and rebooted the server the created datasources disappeared and an error appeared when I tried to recreate them again I switch back the older wso2carbon.jks and everything work fine again but I can t consume the secured web service Comment : I guess those datasource resources stored at registry and those resources getting encrypted when storing . Have you tried to create new datasource or try the scenario in a fresh pack where keystore is changed to new one from the beginning . .. . Answer : Your client is trying to check the domain-name or IP of the server against the domain-name or IP in the certificate to ensure that it is reaching the right server . You need to create a new certificate to use that has a subject alternative name equal to the domain-name or IP of the server whichever the client is using to connect . Comment : yes that s what I did I created a new jks with a pair of new keys I replaced the wso2carbon.jks by the new one I had created exported the certificate and added it to the client JVM cacerts so I could consume the secured web service but the created and working datasource of my dataservices stopped working Comment : The problem is this : if I create a new key in the existing wso2carbon.jks with the right CN and the extension for the IP export the certificate and add it to the client JVM cacerts I receive : java.security.cert.CertificateException : No subject alternative names present but If create a new wso2carbon.jks I can consume the secured web service but the datasource of my dataservices stopped working Comment : What is the error on the datasource if you create a new keystore" ] }
[ "yes-answer-long", "yes-answer-short" ]
server
UNK_RELATION
arrayiterator@traversal@47
arrayiterator -- an iterator specifically for @placeholder though arrays .
{ "confidence": [ 32.11041259765625, 29.709163665771484, 29.259449005126953, 29.259449005126953, 29.148052215576172, 28.609397888183594, 28.606853485107422, 28.443561553955078, 28.352079391479492, 28.352079391479492, 28.19552993774414, 27.931995391845703, 27.695375442504883, 27.370885848999023, 26.729230880737305, 26.666393280029297, 26.282333374023438, 25.869056701660156, 25.82241439819336, 24.952064514160156, 24.952064514160156, 24.952064514160156, 24.4200382232666, 24.4200382232666, 24.294029235839844, 24.045246124267578, 23.99576759338379, 23.99576759338379, 23.796958923339844, 23.796958923339844, 23.77307891845703, 23.75040626525879, 22.802783966064453, 22.642871856689453, 22.642871856689453, 22.642871856689453, 22.642871856689453, 22.642871856689453, 22.642871856689453, 22.642871856689453, 22.642871856689453, 22.642871856689453, 21.475866317749023, 21.463886260986328, 21.463886260986328, 21.456153869628906, 21.229595184326172, 21.229595184326172, 20.712717056274414, 20.712717056274414, 20.621440887451172, 20.350143432617188, 19.678987503051758, 19.678987503051758, 19.64667510986328, 19.64667510986328, 19.64667510986328, 19.64667510986328, 19.132183074951172, 18.637569427490234, 18.28656005859375, 18.28656005859375, 18.28656005859375, 18.28656005859375, 18.28656005859375, 18.28656005859375, 18.108844757080078, 17.928104400634766, 17.928104400634766, 17.434364318847656, 17.434364318847656, 17.434364318847656, 17.434364318847656, 17.379188537597656, 17.379188537597656, 17.379188537597656, 17.107576370239258, 17.107576370239258, 16.810457229614258, 16.810457229614258, 16.64385986328125, 16.64385986328125, 16.479873657226562, 15.988637924194336, 15.443587303161621, 14.926090240478516, 14.787162780761719, 14.051834106445312, 13.447148323059082, 13.447148323059082, 13.447148323059082, 13.447148323059082, 13.447148323059082, 13.447148323059082, 13.447148323059082, 13.447148323059082, 13.447148323059082, 13.447148323059082, 13.447148323059082, 13.447148323059082 ], "content": [ "ArrayIterator : As above this class implements both Iterator http : www.php.net manual en class.iterator.php and Traversable which Iterator extends .", "Notice that the ArrayIterator class implements ArrayAccess .", "The ArrayIterator implements Iterator interface which gives it methods related to iteration looping over the elements .", "Because you never move in you iterator with ArrayIterator : : next http : www.php.net manual en arrayiterator.next.php .", "ArrayIterator : : STD PROP LIST will cause array this to not be a representation of the stored array you can guess what ArrayIterator : : ARRAY AS PROPS will do .", "Difference between ArrayObject and the ArrayIterator is that since ArrayIterator implements SeekableIterator interface you can do myArray- seek 10 with ArrayIterator .. . .. . Hope that helps .", "May be you will find your answer here : .. . .. . The ArrayIterator class http : www.php.net manual en class.arrayiterator.php .. . .. . This iterator allows to unset and modify values and keys while iterating over Arrays and Objects .", "Seem there is the only to exhaust ArrayIterator with method offsetUnset .", "Next since the ArrayObject cannot be iterated when you use it in foreach it creates an ArrayIterator object internally same as arrays .", "Both the ArrayObject and the ArrayIterator allow us to make arrays first class citizens in an Object Oriented program OOP .", "On the other side the ArrayObject ArrayIterator classes have certain methods defined that you can use while there is no such thing for arrays .. . .. . .. . .. . Comparing ArrayObject vs ArrayIterator .. . .. . The main difference between these 2 is in the methods the classes have .", "The explanation is about the arrayIterator is all wrong .", "ArrayIterator implements ArrayAccess interface .", "Have you read ArrayIterator http : www.php.net ArrayIterator ArrayObject http : www.php.net ArrayObject and Array http : www.php.net Array", "While extending ArrayIterator How can i access to current array to modify it", "@bobthecow I have never worked with ArrayIterator before .", "Like ArrayIterator or something like that", "The documentation of ArrayIterator : : setFlags is similar the difference being difference erroneous http : grokbase.com t php php-notes 122ve776vq note-107695-added-to-arrayiterator-setflags .", "You have found a documented bug in ArrayIterator https : bugs.php.net bug.php id 55157 .. . .. . Extract : .. . .. . ArrayIterator always skips the second element in the array when calling offsetUnset on it while looping through .", "I m having a few problems with ArrayIterator And indeed the same problem with ArrayObject .", "For 99 of everything my extended ArrayIterator behaves like an array and is working great .", "Unfortunately implode does not like being given an ArrayIterator or ArrayObject .", "As a benchmark I tried getArrayCopy and array on an ArrayIterator of 1000000 items and both took about 0.11 seconds on my machine .", "I m always losing second item 1 in forearh of ArrayIterator and removing each element .", "If you want to copy the current state of an ArrayIterator you might consider instead instantiating a new one using the array returned by getArrayCopy http : php.net manual en arrayiterator.getarraycopy.php .. . .. . The above is a simple operation though and only creates a new ArrayIterator with the currently stored array as the original .", "You can test it with this myArray array m list new ArrayIterator myArray Later you will see that the ArrayIterator doesn t impact the original myArray for it s future operations .", "So that is what an Iterator is it is somewhat of a shell around arrays to provide something called encapsulation .", "The RecursiveArrayIterator docs say This iterator allows to unset and modify values and keys while iterating over Arrays and Objects.. . .", "It seems that values in plain arrays aren t modifiable because they can t be passed by reference to the constructor of ArrayIterator RecursiveArrayIterator inherits its offset methods from this class see SPL Reference http : www.php.net helly php ext spl .", "Expected output would be : .. . .. . Right now I m trying to archive this using ArrayIterator and MultipleIterator but this loops through both arrays : .. . .. . So I m a bit stuck how to solve this problem", "I got it but I think there s no way to set key for ArrayIterator .", "I understand the concept of the ArrayIterator in a basic sense like this example : .. . .. . In my case the rows array is a little more complex though still simplified for the sake of this example .. .", "The solution to this is an iterator .", "Can somebody explain clearly the fundamental differences between ArrayIterator ArrayObject and Array in PHP in terms of functionality and operation", "These can be created using new keyword .. . .. . ArrayIterator is like ArrayObject but it can iterate on itself .", "I looked at the link and it looks like ArrayObject and ArrayIterator Classes both is not implements Traversable Interface directly", "Replace your ArrayIterator with the Presenter class in this answer : stackoverflow.com a 15619309 213448 http : stackoverflow.com a 15619309 213448", "This array is passed into another class which extends ArrayIterator to do some manipulation then insert into the target database-table .", "I couldn t find much documentation on clearing out rows once we are done with them from within the ArrayIterator .", "I am trying to clone an ArrayIterator object but it seems like the cloned one is still referencing to the original one .", "So when you clone the ArrayIterator object the newly cloned object contains a reference to the same array as the original one .", "If you clone an ArrayIterator you also clone its reference thus the described behavior below is correct .", "However an Iterator is something else completely .", "because you ve created an arrayiterator you ve actually got an object which has methods and properties .", "There is no documentation on the PHP site for the ArrayIterator object beyond a basic parameter reference so I m not even sure this is possible .", ".. . Using the key from iterator and unsetting in the actual ArrayObject works as expected .", "Also created using new .. . .. . .. . .. . Comparing Array vs ArrayObject ArrayIterator .. . .. . They both can be used using the php s array syntax for eg .", "I can t spot in the docs anywhere which suggests any other classes to implement on by extended ArrayIterator nor any other methods to override .", "Looks like getInnerIterator creates a copy of the sub-iterator .", "The regular iterator returns a writable reference to an element .", "This will prove to be inefficient for large arrays .", "Though I am having difficulty locating documentation that explicitly says so internally ArrayIterator s private storage property wherein the array is held must be a reference to an array rather than the array itself directly stored within the object .", "The iterator design pattern is a way to secure your array making it only readable .", "I am using a underscore array iterator to manipulate a object .", "Implementing a similar thing in ArrayIterator would mean either creating a new object or looping through the keys unset ing all of them one by one then setting the elements from new array one-by-one .", ".. . When you want to iterate over the same array multiple times you need to instantiate ArrayObject and let it create ArrayIterator instances that refer to it either by using foreach or by calling its getIterator method manually .", "The constructors of PHP s ArrayIterator and ArrayObject have a flags parameter that is documented in ArrayObject : : setFlags http : php.net arrayobject.setflags as follows : .. . .. . ArrayObject : : STD PROP LIST .. . .. . Properties of the object have their normal functionality when accessed as list var-dump foreach etc . .", "I ve seen that there are ArrayObject ArrayIterator etc . but simply cannot understand how they work so if someone could try to explain it with a few examples of how the above can be accomplished that would be much appreciated .", "I tested that as well - the reference is not to the original array variable passed to the iterator - it is an internal reference to an array otherwise inaccessible to PHP code copied from the array variable passed to the iterator .", "Using ArrayIterator interface means only that objects of a class implementing that interface can use PHP s array syntax and iteration features to work with data in that class .", "However you can specify which class to use for iterator so you can have custom iterators in your code .", "But when I leave the loop and dump the array from the iterator it s back to the original values .", "Not using the Iterator classes which seem to be copying data on the RecursiveArrayIterator : : beginChildren instead of passing by reference .", "Depending on the actual container incrementing an iterator might be faster than indexing think linked lists .", "In fact your vector iterator is probably defined in terms of array access and will be precisely as quick .", "I think you are correct in that one would more correctly say that they implement the IteratorAggregate and Iterator interfaces respectively .", "However they are still objects vs arrays so you would notice the differences in .. . .. . Most of the php array functions expect arrays so using objects there would throw errors .", "I am trying to understand something about ArrayObject http : php.net manual en class.arrayobject.php and ArrayIterator http : php.net manual en class.arrayiterator.php classes .. . .. . ArrayObject : This class implements the IteratorAggregate http : php.net manual en class.iteratoraggregate.php and Traversable http : www.php.net manual en class.traversable.php interfaces .", "In order to work-around it you can do as follows : .. . .. . Output : .. . .. . .. . If you want you can submit a bug https : bugs.php.net how-to-report.php but according to the other threads I saw about bugs in ArrayIterator - I find it hard to believe it will be fixed any time soon.. .", "Just wasted an hour with those bloody SPL Iterator classes - probably not for the first time - when array-walk recursive does the trick perfectly and with less instantiation LOC .", "This way something like std : : sort doesn t really have to care whether it is a vector or your datastructure here as long as it meets the appropriate iterator requirements .", "Have your object implement the Iterator http : il1.php.net manual en class.iterator.php interface and then you will be able to foreach over it natively .", "Note you need to correctly implement the methods to advance and rewind your array .. . .. . More info : .. . .. . The Iterator http : il1.php.net manual en class.iterator.php interface .", "accessing public properties using the object syntax .. . .. . Arrays being the native type are much faster than objects .", "Also read : .. . .. . The ArrayObject class http : www.php.net ArrayObject .. . Arrays http : www.php.net manual en language.types.array.php", "Up to-date I was simply using regular arrays to loop through the list of records and display them in say table .", "The obvious solution would be to return an object that implements the Iterator http : nl3.php.net manual en class.iterator.php interface instead of an array .", "I know how to check for a value in an array but how do I check for a value in an Array Iterator", "All though it comes with a lot of built-in utility functions but they are all procedural .", "Unfortunately this needs to be 5.3 compliant +1 for a neat 5.4 trick though .", "You can create one using the php language construct array or as of php-5.4 onwards .. . .. . ArrayObject is an object that work exactly like arrays .", "In case you re interested here s more details on casting objects to arrays http : stackoverflow.com questions 17695490 cast-object-to-array-strange-behaviour 17695596 17695596 .", "Initially it was processing a hundred or so per second now its only 2-3 . .. . .. . here is an example of our code : .. . .. . A demo of our iterator class : .. . .. . any ideas to the gradual slowdown", "As for the answer itself : .. . .. . I don t see a problem with using arrays or multiple dimensions .", "The most simple Iterator ever is something like this : .. . .. . .. . .. . As you can see i have no way of adding new items to the given array but i do have posibilities to read the array like this : .. . .. . Now there is again only one way to add items to myArray in A namely via the addSomethingToArray method .", "Since you want the intersection of two arrays by keys you can use array-intersect key http : php.net manual en function.array-intersect-key.php but since the keys are values in lang you just have to flip it first with array flip http : php.net manual en function.array-flip.php e.g .", "Whatever that class would do internally would most certainly have to be implemented using PHP s arrays .", "Using plain arrays wisely most likely performs CPU- and RAM-wise better than any fancier over-engineered custom-built solution .", "or get some other data from it", "Please consider example below : .. . .. . Is using this- getArrayCopy instead of", "ok", "Is there any better solution for doing that", "What about performance", "And how to change array of class dynamically", "for example using array-walk .", "Regards", "To modify the array simply treat this as an array : .. . .. . Unfortunately functions such as in array don t work on array-like objects you need an actual array .", "getArrayCopy will work but I would just use array this .", "EDIT : As salathe notes in a comment getArrayCopy is better because it always gets the internal array while array this will behave differently if you use the STD PROP LIST flag .", "Performance-wise making a copy of an array like that does cause a small slowdown ." ] }
{ "confidence": [ 44.458229064941406, 42.06067657470703, 39.87738800048828, 39.67660140991211, 39.49962615966797, 38.711631774902344, 34.5910530090332, 33.86164474487305, 32.532981872558594, 32.067474365234375, 31.60138511657715, 30.870845794677734, 30.83066177368164, 30.729114532470703, 28.790443420410156, 28.772565841674805, 28.30731964111328, 28.120393753051758, 27.968547821044922, 27.20040512084961 ], "content": [ "Question : Can somebody explain clearly the fundamental differences between ArrayIterator ArrayObject and Array in PHP in terms of functionality and operation Thanks Comment : Have you read ArrayIterator http : www.php.net ArrayIterator ArrayObject http : www.php.net ArrayObject and Array http : www.php.net Array That s probably all the information you ll need . Comment : Also Stackoverflow is not your personal research assistant http : meta.stackexchange.com a 128553 164367 .. . Answer : Array is a native php type . You can create one using the php language construct array or as of php-5.4 onwards .. . .. . ArrayObject is an object that work exactly like arrays . These can be created using new keyword .. . .. . ArrayIterator is like ArrayObject but it can iterate on itself . Also created using new .. . .. . .. . .. . Comparing Array vs ArrayObject ArrayIterator .. . .. . They both can be used using the php s array syntax for eg . However they are still objects vs arrays so you would notice the differences in .. . .. . Most of the php array functions expect arrays so using objects there would throw errors . There are many such functions . For eg . Finally objects can do what you would expect from a stdClass object i.e . accessing public properties using the object syntax .. . .. . Arrays being the native type are much faster than objects . On the other side the ArrayObject ArrayIterator classes have certain methods defined that you can use while there is no such thing for arrays .. . .. . .. . .. . Comparing ArrayObject vs ArrayIterator .. . .. . The main difference between these 2 is in the methods the classes have . The ArrayIterator implements Iterator interface which gives it methods related to iteration looping over the elements . ArrayObject has a method called exchangeArray that swaps it s internal array with another one . Implementing a similar thing in ArrayIterator would mean either creating a new object or looping through the keys unset ing all of them one by one then setting the elements from new array one-by-one . Next since the ArrayObject cannot be iterated when you use it in foreach it creates an ArrayIterator object internally same as arrays . This means php creates a copy of the original data there are now 2 objects with same contents . This will prove to be inefficient for large arrays . However you can specify which class to use for iterator so you can have custom iterators in your code . .. . .. . Hope this is helpful . Edits to this answer are welcome . Comment : The explanation is about the arrayIterator is all wrong . Read my answer .", "Question : Can somebody explain clearly the fundamental differences between ArrayIterator ArrayObject and Array in PHP in terms of functionality and operation Thanks Comment : Have you read ArrayIterator http : www.php.net ArrayIterator ArrayObject http : www.php.net ArrayObject and Array http : www.php.net Array That s probably all the information you ll need . Comment : Also Stackoverflow is not your personal research assistant http : meta.stackexchange.com a 128553 164367 .. . Answer : May be you will find your answer here : .. . .. . The ArrayIterator class http : www.php.net manual en class.arrayiterator.php .. . .. . This iterator allows to unset and modify values and keys while iterating over Arrays and Objects . .. . When you want to iterate over the same array multiple times you need to instantiate ArrayObject and let it create ArrayIterator instances that refer to it either by using foreach or by calling its getIterator method manually . Also read : .. . .. . The ArrayObject class http : www.php.net ArrayObject .. . Arrays http : www.php.net manual en language.types.array.php Comment : Sorry I didn t make my question clear - Yes I ve read the PHP documentation on the three but it seems to me like they do pretty much the same thing . I was wondering if somebody could explain what the actual difference was between them and why you d choose one over the other . If this isn t a suitable question to post here then I apologise and please feel free to delete this post", "Question : I m always losing second item 1 in forearh of ArrayIterator and removing each element . Output : .. . .. . How it s possible oO .. . Answer : Congratulations You have found a documented bug in ArrayIterator https : bugs.php.net bug.php id 55157 .. . .. . Extract : .. . .. . ArrayIterator always skips the second element in the array when calling offsetUnset on it while looping through . .. . Using the key from iterator and unsetting in the actual ArrayObject works as expected . Comment : Well thanks for spotting the bug . I didn t know about it .", "Question : Can somebody explain clearly the fundamental differences between ArrayIterator ArrayObject and Array in PHP in terms of functionality and operation Thanks Comment : Have you read ArrayIterator http : www.php.net ArrayIterator ArrayObject http : www.php.net ArrayObject and Array http : www.php.net Array That s probably all the information you ll need . Comment : Also Stackoverflow is not your personal research assistant http : meta.stackexchange.com a 128553 164367 .. . Answer : array is one the eight primitive-types in PHP . All though it comes with a lot of built-in utility functions but they are all procedural . Both the ArrayObject and the ArrayIterator allow us to make arrays first class citizens in an Object Oriented program OOP . Difference between ArrayObject and the ArrayIterator is that since ArrayIterator implements SeekableIterator interface you can do myArray- seek 10 with ArrayIterator .. . .. . Hope that helps .", "Question : Can somebody explain clearly the fundamental differences between ArrayIterator ArrayObject and Array in PHP in terms of functionality and operation Thanks Comment : Have you read ArrayIterator http : www.php.net ArrayIterator ArrayObject http : www.php.net ArrayObject and Array http : www.php.net Array That s probably all the information you ll need . Comment : Also Stackoverflow is not your personal research assistant http : meta.stackexchange.com a 128553 164367 .. . Answer : ArrayObject and array are somewhat alike . Merely a collection of objects or native types . They have some different methods that you can call but it mostly boils down to the same thing . However an Iterator is something else completely . The iterator design pattern is a way to secure your array making it only readable . Lets take the next example : .. . .. . You have a class that has an array . You can add items to that array by using addSomethingToMyArray . Note however that we do something to item before we actually add it to the array . This could be anything but lets for a moment act like it is very important that this method is fired for EVERY item that we want to add to the array . The problem with this is that you pass the array by reference here . That means that classes that actually use returnMyArray get the real myArray object . That means that classes other than A can add things to that array and therefor also change the array inside A without having to use the addSOmethingToMyArray . But we needed to doSOmethingToItem remember This is an example of a class not in control of its own inner status . The solution to this is an iterator . Instead of passing the array we pass the array to a new object that can only READ things from the array . The most simple Iterator ever is something like this : .. . .. . .. . .. . As you can see i have no way of adding new items to the given array but i do have posibilities to read the array like this : .. . .. . Now there is again only one way to add items to myArray in A namely via the addSomethingToArray method . So that is what an Iterator is it is somewhat of a shell around arrays to provide something called encapsulation .", "Question : I am trying to clone an ArrayIterator object but it seems like the cloned one is still referencing to the original one . Anyone have explanation to this behavior Thank you in advance . .. . Answer : Though I am having difficulty locating documentation that explicitly says so internally ArrayIterator s private storage property wherein the array is held must be a reference to an array rather than the array itself directly stored within the object . The documentation on clone http : php.net manual en language.oop5.cloning.php says that .. . .. . PHP 5 will perform a shallow copy of all of the object s properties . Any properties that are references to other variables will remain references . So when you clone the ArrayIterator object the newly cloned object contains a reference to the same array as the original one . Here is an old bug report https : bugs.php.net bug.php id 36941 wherein this behavior is said to be the expected behavior . If you want to copy the current state of an ArrayIterator you might consider instead instantiating a new one using the array returned by getArrayCopy http : php.net manual en arrayiterator.getarraycopy.php .. . .. . The above is a simple operation though and only creates a new ArrayIterator with the currently stored array as the original . It does not maintain the current iteration state . To do that you would need to also call seek to advance the pointer to the desired position . Here is a thorough answer explaining how that could be done http : stackoverflow.com a 20069139 541091 . Comment : I was also looking for the same documentation but as it says Warning This function is currently not documented only its argument list is available . I was also thinking about the same reference issue as you explained the array is held must be a reference to an array rather than the array itself directly stored within the object . But after testing myself I see it s not referring some external array . But it stores the array inside which then it keeps as reference when cloning . I don t know actual reason for it but based on this scenario the sentence above is not 100 accurate . Comment : You can test it with this myArray array m list new ArrayIterator myArray Later you will see that the ArrayIterator doesn t impact the original myArray for it s future operations . Comment : I tested that as well - the reference is not to the original array variable passed to the iterator - it is an internal reference to an array otherwise inaccessible to PHP code copied from the array variable passed to the iterator . If it were a reference to the original variable that would make the iterator s state potentially inconsistent . Comment : Yeah that s correct Comment : I hoped to be able to inspect it with a ReflectionProperty but on an internal class it seems it isn t possible to retrieve private properties . In any case that bug report I linked does clearly state that this behavior is intended . If you clone an ArrayIterator you also clone its reference thus the described behavior below is correct .", "Question : I am trying to understand something about ArrayObject http : php.net manual en class.arrayobject.php and ArrayIterator http : php.net manual en class.arrayiterator.php classes .. . .. . ArrayObject : This class implements the IteratorAggregate http : php.net manual en class.iteratoraggregate.php and Traversable http : www.php.net manual en class.traversable.php interfaces . Since IteratorAggregate extends Traversable itself why does ArrayObject implement both when it can just implement IteratorAggregate ArrayIterator : As above this class implements both Iterator http : www.php.net manual en class.iterator.php and Traversable which Iterator extends . Why do these classes implement two interfaces when they could get away with implementing the one that extends Traversable Comment : I suspect those links are only there to make the manual clearer and more traversable ha - ironically in your case that seems to have had the total opposite effect . I think you are correct in that one would more correctly say that they implement the IteratorAggregate and Iterator interfaces respectively . Comment : ...although it would seem http : codepad.viper-7.com r4FfNY that you can write your code in this seemingly conflicting way and PHP will not complain about it . Comment : I don t think Java would complain either but haven t tested it . It s like declaring unchecked exceptions : superfluous but not an error . .. . Answer : According to the SPL source code http : www.php.net helly php ext spl spl 8php-source.html ArrayObject doesn t implement Traversable directly : .. . .. . This matches the SPL documentation http : www.php.net helly php ext spl main.html . I believe DaveRandom is correct . Comment : I looked at the link and it looks like ArrayObject and ArrayIterator Classes both is not implements Traversable Interface directly", "Question : I m having a few problems with ArrayIterator And indeed the same problem with ArrayObject . For 99 of everything my extended ArrayIterator behaves like an array and is working great . Unfortunately implode does not like being given an ArrayIterator or ArrayObject . I can t spot in the docs anywhere which suggests any other classes to implement on by extended ArrayIterator nor any other methods to override . Can anyone suggest how to get this working Note : Casting to an array every time I use implode is not a solution as I d like this array-like object to work EXACTLY as an array and not have the code using it to have to know care cast .. . Answer : try downcasting the array array arrayObject : implode array arrayObject Comment : Careful casting might lead to unexpected results when especially when casting an object that inherits from other classes Comment : In case you re interested here s more details on casting objects to arrays http : stackoverflow.com questions 17695490 cast-object-to-array-strange-behaviour 17695596 17695596 . Also test this with nested objects.. . casts are not recursive", "Question : I suspect I m doing something stupid here but I m confused by what seems like a simple problem with SPL : .. . .. . How do I modified the contents of an array the values in this example using a RecursiveArrayIterator http : php.net RecursiveArrayIterator RecursiveIteratorIterator http : php.net RecursiveIteratorIterator Using the follow test code I can alter the value within the loop using getInnerIterator http : php.net iteratoriterator.getinneriterator and offsetSet http : php.net ArrayAccess.offsetSet and dump out the modified array while I m within the loop . But when I leave the loop and dump the array from the iterator it s back to the original values . What s happening Comment : Looks like this is a bug you should file on bugs.php.net http : bugs.php.net .. . Answer : It seems that values in plain arrays aren t modifiable because they can t be passed by reference to the constructor of ArrayIterator RecursiveArrayIterator inherits its offset methods from this class see SPL Reference http : www.php.net helly php ext spl . So all calls to offsetSet work on a copy of the array . I guess they chose to avoid call-by-reference because it doesn t make much sense in an object-oriented environment i . e . when passing instances of ArrayObject which should be the default case . Some more code to illustrate this :", "Question : I know how to check for a value in an array but how do I check for a value in an Array Iterator I m trying to check for the values such as 1QmRjtsw2UQ . This does not work : Comment : because you ve created an arrayiterator you ve actually got an object which has methods and properties . what you need to do is a loop over the elements and make a comparison against the returned values . .. . Answer : Try this", "Question : I m always losing second item 1 in forearh of ArrayIterator and removing each element . Output : .. . .. . How it s possible oO .. . Answer : Seem there is the only to exhaust ArrayIterator with method offsetUnset . That s using do..while : .. . .. . Output :", "Question : I m trying to understand the concept of the Object Array in PHP . Up to-date I was simply using regular arrays to loop through the list of records and display them in say table . I know that I could do this using Object but I m not quite sure how to do it . I understand the concept of a single Object instance with all properties representing the fields with their associated values populated from the database which can be called like : .. . .. . Now what I would like to understand and simply cannot find a simple answer to is how to deal with let s say list of users which I would like to display on one page . I ve seen that there are ArrayObject ArrayIterator etc . but simply cannot understand how they work so if someone could try to explain it with a few examples of how the above can be accomplished that would be much appreciated . What I m looking for is an object containing the list of elements which I can loop through like so if at all this is possible : .. . .. . Thanks . .. . Answer : It is possible . Have your object implement the Iterator http : il1.php.net manual en class.iterator.php interface and then you will be able to foreach over it natively . Note you need to correctly implement the methods to advance and rewind your array .. . .. . More info : .. . .. . The Iterator http : il1.php.net manual en class.iterator.php interface . Read the examples and user comments . Iterators - Programming with Anthony @ YouTube http : www.youtube.com watch v tW6GcZjBc3E - Who explains it very well .", "Question : I know how to check for a value in an array but how do I check for a value in an Array Iterator I m trying to check for the values such as 1QmRjtsw2UQ . This does not work : Comment : because you ve created an arrayiterator you ve actually got an object which has methods and properties . what you need to do is a loop over the elements and make a comparison against the returned values . .. . Answer : why don t you use array-key exists http : php.net manual en function.array-key-exists.php Comment : This works and makes more sense than using array- offsetExists 1QmRjtsw2UQ", "Question : While extending ArrayIterator How can i access to current array to modify it or get some other data from it Please consider example below : .. . .. . Is using this- getArrayCopy instead of ok Is there any better solution for doing that What about performance And how to change array of class dynamically for example using array-walk . Regards .. . Answer : Notice that the ArrayIterator class implements ArrayAccess . To modify the array simply treat this as an array : .. . .. . Unfortunately functions such as in array don t work on array-like objects you need an actual array . getArrayCopy will work but I would just use array this . EDIT : As salathe notes in a comment getArrayCopy is better because it always gets the internal array while array this will behave differently if you use the STD PROP LIST flag . Performance-wise making a copy of an array like that does cause a small slowdown . As a benchmark I tried getArrayCopy and array on an ArrayIterator of 1000000 items and both took about 0.11 seconds on my machine . The in array operation itself on the resulting array on the other hand took 0.011 seconds - about a tenth as long . I also tried this version of the in array function : .. . .. . That function runs in 0.07 seconds on my machine when searching for a value that doesn t exist which is the worst-case scenario for this algorithm . The performance problems are too small to matter in most cases . If your situation is extreme enough that 100 nanoseconds or so per array element actually make a difference then I would suggest putting the values you want to search for in the array keys and using offsetExists instead . Comment : use array this . They do the same thing . not necessarily that behaviour depends on the flags being used . ArrayIterator : : STD PROP LIST will cause array this to not be a representation of the stored array you can guess what ArrayIterator : : ARRAY AS PROPS will do . : Comment : I ve added a note to that effect . ARRAY AS PROPS doesn t seem to change the behavior or performance of array this so I left that out .", "Question : There is no documentation on the PHP site for the ArrayIterator object beyond a basic parameter reference so I m not even sure this is possible . I understand the concept of the ArrayIterator in a basic sense like this example : .. . .. . In my case the rows array is a little more complex though still simplified for the sake of this example .. . The idea is that b in this case has a number of child elements that should be parsed as-if they were parent elements at the end not necessary to process in order of the rest of the parent elements a b c . Normally I would just use.. . But in this case child is an array with a key that I want to maintain.. . I don t want to add an array as an element on the end I want to add the key and the value to the parent list so we would end up with... . .. . .. . Question : Is it possible to append an element to the currently iterating array from within a foreach loop with a key Comment : foreach child as c rows- append c Comment : @u mulder that would result in the new element being added but with a numeric key not the original key d for instance . Sorry there s an error in there that s a typo correcting now . Comment : @u mulder updated the example to be clearer Comment : I got it but I think there s no way to set key for ArrayIterator . Comment : @u mulder Seems that way but it also seems like a big shortcoming was hoping there was yet another undocumented way to do it After all they let you read - key but then not write it .. . Answer : ArrayIterator implements ArrayAccess interface . That s mean that offsetset http : php.net manual en arrayaccess.offsetset.php is available and you can assign a value to the specified offset . As said the foreach http : php.net manual en control-structures.foreach.php documentation : .. . .. . In order to be able to directly modify array elements within the loop precede value with . In that case the value will be assigned by reference . But in this case isn t needed . .. . .. . This print : .. . .. . Demo https : 3v4l.org Qc6gq . Comment : Excellent Didn t realize I could mix the access methods learned something new : Cheers Comment : I just realized that the isn t needed here.. . just updated my answer", "Question : I want to save certain values from POST into a file . But I only want values where the key is in the array lang . As an example : .. . .. . With this input I would only want the values from POST where the key is in the lang array . Expected output would be : .. . .. . Right now I m trying to archive this using ArrayIterator and MultipleIterator but this loops through both arrays : .. . .. . So I m a bit stuck how to solve this problem Comment : So you want to use the values from lang as keys for POST Comment : can you pl elobrate what you exectly need Comment : @Rizier123 no . values from POST as keys for lang Comment : @DonLaknath Don t make it complicated just do : print r array-intersect key POST array flip lang Comment : @Rizier123 Way to go thats not complicated at all Hehehe .. . Answer : Try this :", "Question : I want to save certain values from POST into a file . But I only want values where the key is in the array lang . As an example : .. . .. . With this input I would only want the values from POST where the key is in the lang array . Expected output would be : .. . .. . Right now I m trying to archive this using ArrayIterator and MultipleIterator but this loops through both arrays : .. . .. . So I m a bit stuck how to solve this problem Comment : So you want to use the values from lang as keys for POST Comment : can you pl elobrate what you exectly need Comment : @Rizier123 no . values from POST as keys for lang Comment : @DonLaknath Don t make it complicated just do : print r array-intersect key POST array flip lang Comment : @Rizier123 Way to go thats not complicated at all Hehehe .. . Answer : Since you want the intersection of two arrays by keys you can use array-intersect key http : php.net manual en function.array-intersect-key.php but since the keys are values in lang you just have to flip it first with array flip http : php.net manual en function.array-flip.php e.g .", "Question : Array in my code is quite big so I pasting it in pastebin . http : pastebin.com 6tviT2Xj .. . .. . I don t understand why I am getting endless loop .. . .. . Logic of this script is : Comment : Not using foreach when using iterators seems so like PHP3.. . Comment : Yeah but I must know about next element . Comment : Anyway shame that I forget about next : P Comment : You should use foreach . Better performance than while . Less error prone like you demonstrated . Comment : @Sven - Do you have any benchmarks for the better performance you claim .. . Answer : Because you never move in you iterator with ArrayIterator : : next http : www.php.net manual en arrayiterator.next.php . Comment : Just Curios . . did you test this code . . You would know it has errors if you did Comment : @Baba - No I just added the it- next -- because that s the cause of the problem . What errors do you mean Comment : Just edited your code with proper formatting . . you can see the diffence", "Question : I m having a few problems with ArrayIterator And indeed the same problem with ArrayObject . For 99 of everything my extended ArrayIterator behaves like an array and is working great . Unfortunately implode does not like being given an ArrayIterator or ArrayObject . I can t spot in the docs anywhere which suggests any other classes to implement on by extended ArrayIterator nor any other methods to override . Can anyone suggest how to get this working Note : Casting to an array every time I use implode is not a solution as I d like this array-like object to work EXACTLY as an array and not have the code using it to have to know care cast .. . Answer : The easiest correct solution is to use iterator to array http : php.net manual en function.iterator-to-array.php to feed implode e.g . This will work as expected with anything that can be iterated with foreach . Comment : Thanks Jon . I m going to set this as the accepted answer because it is a useful function which I didn t know . However this does require that the callee knows it is not dealing with an array and casts it . It is slow requires extra code and offends any ideas of black boxing one might have . Hopefully the PHP devs will one day make all array functions accept objects descended from the Array class or a common base that Array and similar share . Comment : @OliComber : That would be definitely nice but frankly it would be such a major change that I really can t see it happening .", "Question : null .. . Answer : I am processing a large database move for a client . We have a query which pulls a large amount of data which needs to be processed and then inserted into another table . The original query is a combination of joining several tables together to get it in the required format . We are using are own database class to put the entire results of the query about 600 000 rows with 30 columns of data which is mainly strings . This array is passed into another class which extends ArrayIterator to do some manipulation then insert into the target database-table . what are are finding is that it can process small data sets very well and is resonably quick . But with this import over over half a million rows it seems to be gettting increasinly slower . We have calcualted an estimate time remainiang using time it took to process the past imports but it seems to be estimating 2 hours raining for the past 3 hours . Initially it was processing a hundred or so per second now its only 2-3 . .. . .. . here is an example of our code : .. . .. . A demo of our iterator class : .. . .. . any ideas to the gradual slowdown Any suggestions on improving its efficiency Comment : The gradual slowdown is probably because you re trying to load so many rows into memory . Does the processing require knowledge of what s happening in the rows around it or can you operate on each line atomically If the latter try doing that : Pull one row fiddle with it and push it then grab the next . Comment : I trust that you have done an EXPLAIN query to see how MySQL is getting the data . Is everything indexed properly Comment : The query itself runs in a few seconds highly optimised indexes . The query has finished running and the array has been populated . It it literally just iterating through the array processing then inserting which is slowing down . Comment : We did wonder about loading the rows into memory i assume only the rows which are processed are in memory which explains the gradual slowdown . I couldn t find much documentation on clearing out rows once we are done with them from within the ArrayIterator . Ideally we would like to unset clear or remove from memory the previous row at when the row is processed . Any ideas how to do this" ] }
[ "yes-answer-long", "yes-answer-short" ]
traversal
UNK_RELATION
mongodb-mms@backup@84
mongodb-mms -- mongodb management service mms is an interface to provision monitor @placeholder and scale mongodb on the infrastructure of your choice .
{ "confidence": [ 64.86286926269531, 63.53990936279297, 62.768768310546875, 62.768768310546875, 62.768768310546875, 61.01592254638672, 61.01592254638672, 60.94276428222656, 60.39247131347656, 60.39247131347656, 60.39247131347656, 60.19854736328125, 58.8160285949707, 58.562255859375, 57.33460998535156, 57.227256774902344, 57.014129638671875, 55.851402282714844, 54.98197937011719, 54.05694580078125, 52.605682373046875, 52.605682373046875, 52.605682373046875, 52.605682373046875, 52.605682373046875, 52.605682373046875, 51.886680603027344, 51.38510513305664, 51.029239654541016, 51.029239654541016, 50.74542236328125, 50.55091094970703, 50.28230667114258, 50.21630096435547, 50.21630096435547, 49.566139221191406, 49.51039123535156, 49.50981140136719, 49.49394226074219, 49.34532165527344, 48.45528793334961, 48.42976379394531, 46.5499267578125, 46.5499267578125, 46.20750427246094, 45.52250671386719, 45.391761779785156, 45.391761779785156, 44.94244384765625, 44.878562927246094, 44.65625, 44.65625, 44.531219482421875, 44.45130157470703, 44.374149322509766, 44.32456970214844, 43.89031982421875, 43.89031982421875, 43.015472412109375, 42.954776763916016, 41.873870849609375, 41.873870849609375, 41.873870849609375, 41.873870849609375, 41.606781005859375, 41.606781005859375, 41.606781005859375, 41.5140266418457, 40.92582321166992, 40.25666809082031, 39.93758010864258, 39.93758010864258, 39.74444580078125, 39.53132247924805, 39.49757766723633, 39.49757766723633, 39.48396301269531, 39.230491638183594, 39.230491638183594, 39.14247512817383, 39.14247512817383, 39.14247512817383, 39.14247512817383, 39.14247512817383, 39.14247512817383, 39.14247512817383, 39.14247512817383, 39.14247512817383, 39.14247512817383, 39.083396911621094, 39.0435791015625, 39.03641128540039, 38.742835998535156, 38.55767822265625, 37.9211311340332, 37.859561920166016, 37.70857620239258, 37.65404510498047, 37.617431640625 ], "content": [ "As @vmr mentioned you can use a backup service like MMS MongoDB Management Service to take regular backups .", "I deployed and manage my MongoDB instances on the server using MongoDB Management Service MMS and I have deployed a replica set .", "I have setup mongodb-mms account for one of the servers .", "At this time the new MMS does not support importation of existing MongoDB processes .", "mongodb-mms-automation-agent usage http : i.stack.imgur.com eBS5E.png", "I have modified the Mongodb MMS user role from root to clusterMonitor in MongoDB 3.0 .", "I have just deployed mongodb servers through MMS MongoDB Cloud Manager on aws .", "I was wondering if it is possible to provision a replica set or any other deployment schema using the MongoDB MMS API .", "I am trying to use mongoDB MMS backup functionality .", "I have a MongoDB replica set with MMS https : mms.mongodb.com .", "I have created MongoDB deployment replica set using MMS Portal .", "There currently isn t an option to attach MMS to existing MongoDB deployments however you can watch upvote MMS-1991 https : jira.mongodb.org browse MMS-1991 in the MongoDB issue tracker for updates .", "Are the MMS agent and the MongoDB server on the same instance or separate instances", "This question would be better asked in the mongodb-mms community forum https : groups.google.com group 10gen-mms .", "How to access to oplog MongoDB MMS replica set http : stackoverflow.com questions 27112250 how-to-access-to-oplog-mongodb-mms-replica-set .. . .. . Solution in above link is to create roles .", "If this is still an issue for you please post the name of your MMS group - I work for MongoDB and can take a closer look .", "I am trying to configure a replica set in Azure Cloud with MongoDB MMS service .", "you have to add the host mongoDB information in the MMS UI interface giving the proper credentials for admin database .", "mongod processes total usage http : i.stack.imgur.com VYRva.png .. . .. . Total usage by mongodb-mms-automation-agent process : .. . .. .", "I m just starting to try out the cloud-based MMS service and I m testing it on an existing standalone MongoDB deployment running on AWS .", "Now I try to connect via MMS using MONGODB-CR Auth mechanism and get the error I described above .", "I would like to know if there is a way to get the hostname of the server which has the problem through MongoDB MMS .", "From the MongoDB MMS docs : .. . .. . B-tree .. . .. . These alert conditions refer to the metrics found on the host s btree chart .", "Here is how I added user with oplog access for MongoDB Replication set deployed via MMS .", "Another thing is i also have an mms account is it possible to use their installed agent on mongodb server todo that", "I am using mongodb-mms-monitoring-agent-2.3.1 and Mongo DB 2.4.14 binary .", "You can read more on the MongoDB MMS Blog : Importing an existing instance to MMS http : blog.mms.mongodb.com post 111860709590 introduction-to-import-existing-deployment-for .. . .. . There is also a checklist however upgrading manually might be quicker .", "Can you comment with a link-to your MMS group so one of the MongoDB team members can have a look", "MMS OnPrem is only provided to MongoDB subscription customers so you should open a Commercial Support ticket for assistance - .", "MongoDB MMS issues are clearly not a programming issue for what StackOverflow is now intended for given the site revamp of StackExchange sites .", "If you can comment with a link-to your MMS group one of the MongoDB support team members can also have a look at your group .", "I was interested in using MMS to monitor and hopefully upgrade .", "It seems that MMS will only monitor and backup the mongo instance that was deployed by the MMS .", "For MongoDB 2.6 the monitoring agent requires : .. . .. . clusterMonitor role on the admin database .. . .. . For more information see : .. . .. . How does MMS gather database statistics", "It is an older version of MongoDB 2.4.11 - and MMS notes this by styling it in red and providing a popup that says it s old and again it was an existing standalone deployment .", "For MMS to be able to manage your servers remotely you need to install the MMS Automation Agent on each server that s running MongoDB and you need to have specific ports open so they can access the automation agent .", "This is possible I tested on MongoHQ and MongoLab successfully but now I need run this in my MMS production replica set with MMS without create a custom MongoDB replica set .", "I now have the MMS Agent on Windows sending stat s to the MMS service .", "I am using MMS to monitor a 13 node MongoDB Cluster 3 Config Servers 4 MongoS 2 replica sets with 2 members + 1 arbiter each .", "After which I installed and configured MMS following Mongo s guide inside of the MMS site and was able to successfully monitor the instance .", "As of the mid-October 2014 release of MMS monitoring backup has been integrated with deployment via the automation agent http : blog.mongodb.org post 99991498968 mongodb-management-service-re-imagined-the-easiest-way .", "I have deployed and connected to a mongodb database with an instance that I was managing myself without mms so I have a feeling that I am missing or have left out to allow me to connect to a mongodb instance managed by mms .", "I restarted the MMS agent and the server began reporting into MMS .", "In MMS you can only manage new instances created with MMS .", "INFO MongoDB version is 3.0.3", "All you need is MMS Mongo monitoring service .", "Log in to MMS .. . 2 .", "Are there limitations with MMS and this type of deployment", "Be sure to include your MMS group name .", "I checked out the logs at var log mongodb-mms-automation automation-agent-verbose.log and it seems like the agent might be stuck in a loop - the output repeats itself constantly .", "Thanks to Andr de Frere from MongoDB .", "This is a question about administrating MongoDB not about programming for it .", "Click Deployment - MongoDB Users menu .", "The MMS monitor was brought down gracefully before making this change .", "Note that when installing the MMS Automation Agent a requirement is that the result-of hostname -f executed on the MongoDb server must be a FQDN that is resolvable from all other servers .", "For other MongoDB instances you would have to import your deployment .", "No the MMS for this group was just recently configured .", "MMS would then happily take this config .", "In MMS Portal .. . .. . 1 .", "There are several methods to backup MongoDB databases .", "I have a 3 node replicaset monitored by MMS .", "MMS is working well for Config-servers and MongoS nodes .", "Correct the MMS automation agent is not available on Windows yet .", "I was looking for a solution to the in-house version of MMS .", "I think I ll take this question to 10gen MongoDB folks .", "I was able to connect it to mongoDB by adding a connection in the deployment tab .", "I have installed a MongoDB 2.6.5 instance and created a database with several collections .", "Here is an image of my MMS data .", "I m relatively inexperienced with sysadmin work but I m trying to figure out how to connect MMS to my Meteor app to sync regular backups of our MongoDB instance .", "I am attempting to setup the MongoDb Cloud Manager Automation Agent so that I can automatically update my MongoDb deployment though I am running into the following error : .. . .. . The user mms-automation does exist in the admin database and was granted the permissions required .", "What version of MMS are you using", "Where do MMS questions live", "Assuming all nodes in your replica set are running MongoDB 2.6.x here are some likely possibilities : .. . .. . 1 .", "It is a cloud based continuous backup service plus lot of automation like on-demand restore monitoring offered by MongoDB .", "Is it accessible from the node the mms-agent runs on", "munin-node and mms-agent are running on the same machine .", "The MMS automation agent is restoring the role to be aligned with your config .", ".. . .. . I have MongoDB 2.6.4 on a my Windows 7 laptop .", "I am trying to create a sharded cluster in MongoDB colud manager .", "The two secondary nodes show up and report data in MMS the primary does not .", "Currently have 16 other servers successfully reporting into MMS .", "Once you save it MMS will not replace the IP address with the hostname once it connects .", "SEE EDIT this is not the replset but rather the MMS monitoring which is running on the same machine", "In my case the server had been down for too long and was deactivated in MMS .", "On the deployment page on MMS click the warning icon and then click reactivate all instances .", "Version of all the nodes in the cluster is 2.4.9 and that of MMS monitoring-agent is 2.3.1", "but I am not sure about the next step to connect mms to that agent .", "So the problem is that the documentation actually refers to the cloud hosted version of MMS .", "Until today it was only possible to manage new deployments with MMS Automation .", "You are able to simply install MongoDb MMS Windows Agent according to this official documentation : .. . .. . http : mms.mongodb.com help-classic tutorial install-monitoring-agent-on-windows .. . .. . Update : After installing the agent according to the above instructions you need to submit a ticket in their support to enable monitoring for Windows .", "The configuration setting sounds like On-Prem MMS but the information on 24-hour PIT limitation sounds like Cloud MMS .", "I can connect to the database via mongo mongodb : mms-automation : password@myservername.c.my-google-cloud-project.internal : 27017 admin and execute use admin db.getUsers as well as use admin db.system.users.find .", "I get : .. . .. . Properties .. . Performance Metrics .. . Connect to this instance .. . Monitor Settings .. . Remove from MMS .. . .. . There is no Modify or Shutdown or any other options for editing .", "I m trying to find the endpoint for MMS per MongoDB s documentation on the MMS API https : docs.mms.mongodb.com core-api but when I try a variety of endpoints such as : .. . .. . I only see : .. . .. . This is really frustrating and MongoDB s documentation on the MMS API is pretty badly designed .", "Note that the classic version of MMS is closed to new users .", "Now what we want is to get MMS setup to monitor and backup the replica set .", "If you are experiencing the same thing log onto MMS and edit your host and turn off logs bandwidth drops immediately .", "we are running mongodb 2.6.1 and we would like to upgrade to 3 .", "Late to the show but I was also looking around and built a small Node.js script to do this : github.com aramk mongodb-git-backup https : github.com aramk mongodb-git-backup" ] }
{ "confidence": [ 91.15618896484375, 88.94161224365234, 85.44700622558594, 79.80419921875, 77.28893280029297, 76.74201202392578, 76.61788177490234, 75.10269927978516, 74.91481018066406, 74.76902770996094, 72.437744140625, 72.30868530273438, 71.55359649658203, 71.3671646118164, 69.7840576171875, 69.68352508544922, 68.7835693359375, 68.3298110961914, 67.25175476074219, 66.07475280761719 ], "content": [ "Question : null .. . Answer : I have modified the Mongodb MMS user role from root to clusterMonitor in MongoDB 3.0 . The MMS monitor was brought down gracefully before making this change . But when I try to start up MMS with this modified user in the conf properties file I face an authorization issue .. . .. . An unexpected error occurred during pre-flight checks : Unable to provision see the following errors : .. . .. . Could you please let me know if I shouldn t be using the clusterMonitor as the role for MMS", "Question : We have our own mongo replica set setup in aws ec2 it is running all good . Now what we want is to get MMS setup to monitor and backup the replica set . It seems that MMS will only monitor and backup the mongo instance that was deployed by the MMS . Is there a work around for this .. . Answer : As of the mid-October 2014 release of MMS monitoring backup has been integrated with deployment via the automation agent http : blog.mongodb.org post 99991498968 mongodb-management-service-re-imagined-the-easiest-way . There currently isn t an option to attach MMS to existing MongoDB deployments however you can watch upvote MMS-1991 https : jira.mongodb.org browse MMS-1991 in the MongoDB issue tracker for updates . Is there a work around for this One option would be to deploy a new replica set using MMS and migrate your data to the managed deployment . If you have an MMS group created with the pre-automation version the classic MMS groups do not have support for automation and the agents can be installed independently . Note that the classic version of MMS is closed to new users .", "Question : I m just starting to try out the cloud-based MMS service and I m testing it on an existing standalone MongoDB deployment running on AWS . I was able to install the agent and begin monitoring - that all works fine . However when I got to the Deployment tab and click the first Processes view the Actions menu does not show me everything . I get : .. . .. . Properties .. . Performance Metrics .. . Connect to this instance .. . Monitor Settings .. . Remove from MMS .. . .. . There is no Modify or Shutdown or any other options for editing . It is an older version of MongoDB 2.4.11 - and MMS notes this by styling it in red and providing a popup that says it s old and again it was an existing standalone deployment . I was interested in using MMS to monitor and hopefully upgrade . Are there limitations with MMS and this type of deployment Is there some setting or other that would be preventing modifications .. . Answer : In MMS you can only manage new instances created with MMS . For other MongoDB instances you would have to import your deployment . Until today it was only possible to manage new deployments with MMS Automation . Starting today you can get the benefits of Automation on the vast majority of your pre-existing deployments . Automation allows you to turn long and complicated manual processes into single click operations with MMS . You can read more on the MongoDB MMS Blog : Importing an existing instance to MMS http : blog.mms.mongodb.com post 111860709590 introduction-to-import-existing-deployment-for .. . .. . There is also a checklist however upgrading manually might be quicker .", "Question : I deployed and manage my MongoDB instances on the server using MongoDB Management Service MMS and I have deployed a replica set . I have also made sure that I added a user with the required permissions in the Authorisation Users tab as shown in the image below . Authorisation Users http : i.stack.imgur.com 6i2JO.png .. . .. . When I log into my server and run the command to check if the user has been added it shows that they have been authenticated because it returns 1 . I have a node application that connects to mongodb using mongoose and this is the url format that I use to connect : .. . .. . The issue that I am having is that when I start the Node application I get this error : .. . .. . I have also attached my requested logs from the server that retrieved from MMS . I can see an authentication error but all the changes that I make don t seem to alter this error . I have deployed and connected to a mongodb database with an instance that I was managing myself without mms so I have a feeling that I am missing or have left out to allow me to connect to a mongodb instance managed by mms . My automation agent backup agent and monitoring agent are healthy too . Comment : Can I get some community input here please MongoDB MMS issues are clearly not a programming issue for what StackOverflow is now intended for given the site revamp of StackExchange sites . Where do MMS questions live on dba.stackexchange.com http : dba.stackexchange.com related to database monitoring tools Or serverfault.com http : serverfault.com relating to professional server infrastructure I ll start a chat thread for a vote if needed . But leave it here because I want by SO points for my answer is not a response . This doesn t belong here . Guide the OP to the right place . .. . Answer : Ok so I finally got this working after almost pulling my hair out . The first thing I did was made sure that all my node-modules were up to-date by running .. . .. . Once that was complete I modified my connection url to include the urls to my other mongo instances in the replica set . I did this because according to the mongodb documentation one needs to specify the other nodes in order to connect to a replica set or else a standalone instance will be created . To complete my uri string I added the actual authentication database where my user credentials are stored . So in the end my connection uri looked like this :", "Question : I have installed a MongoDB 2.6.5 instance and created a database with several collections . After which I installed and configured MMS following Mongo s guide inside of the MMS site and was able to successfully monitor the instance . But it is ONLY monitoring the the database called local . When I log in to the mongo-shell I can see the following : .. . .. . show dbs TestV1 7.950GB admin 0.078GB local 0.078GB .. . .. . But when i look in the dashboard for MMS I am only seeing stats for the local database . Any idea how to get the other databases show show up Comment : Does the problem persists And if yes as dumb as it may sound there is a dropdown box Comment : Yes it does persist and I found the drop down and the only db that is shown in that list is local Thanks for responding though . .. . Answer : Assuming all nodes in your replica set are running MongoDB 2.6.x here are some likely possibilities : .. . .. . 1 . DB Stats will not appear until 30 minutes after a host is added to MMS Monitoring . If it has been longer than that you should try refreshing the MMS page in your browser to make sure the latest configuration data has been loaded in the web UI . 2 . Check that the Collect Database Specific Statistics option is Enabled on the Administration Group Settings page in MMS . NOTE : this setting defaults to Enabled . 3 . You have authentication enabled but did not configure appropriate roles for the Monitoring Agent https : docs.mms.mongodb.com reference required-access-monitoring-agent . For MongoDB 2.6 the monitoring agent requires : .. . .. . clusterMonitor role on the admin database .. . .. . For more information see : .. . .. . How does MMS gather database statistics https : docs.mms.mongodb.com faq how-does-mms-gather-database-statistics .. . Required Access for Monitoring Agent https : docs.mms.mongodb.com reference required-access-monitoring-agent", "Question : I was wondering if it is possible to provision a replica set or any other deployment schema using the MongoDB MMS API . It is possible using the UI but we want to automate that process from another internal system . I took a look at the API documentation but it wasn t clear to me if you can do that . .. . Answer : The Public MMS API https : docs.mms.mongodb.com api does not as at December 2014 have support for Provisioning or Deployment yet . Full Automation API support is definitely on the product roadmap though . Current API methods provide access to user management monitoring alerts and backup restore functionality . Comment : Note : the best source of information for release notes and product updates is the MMS Blog Release-Notes http : blog.mms.mongodb.com tagged Release-Notes category .", "Question : My db is on EC2 and i have installed MMS agent successfully and running successfully . However when i check from MMS Hosts it says .. . .. . when i look at the log.. . it says .. . .. . and seems running okay. . From MMS service when checking Agents section .. . .. . it shows correctly . Is there some kind of firewall issue or outbound setting that I need to go through Please help.. . .. . .. . Update I get this when i try to telenet from EC2 instance.. . seems like i can telnet to mms.10gen.com .. . .. . Another update This is what i got from the agent log . . seems like i am getting database-connection issue Comment : you have to add the host mongoDB information in the MMS UI interface giving the proper credentials for admin database . Then the plot should show up in next 10-15 mins . Comment : even if i add host i get No data has been collected for this host by the agent . Comment : This question would be better asked in the mongodb-mms community forum https : groups.google.com group 10gen-mms . If you can include a link-to your MMS group only 10gen staff can view the details someone would be better able to help . If it has been more than 15 minutes since adding your new host I would suggest checking your Agent Log https : mms.10gen.com agentLogsTab tab in MMS to see if there are any relevant errors there . Comment : Are the MMS agent and the MongoDB server on the same instance or separate instances Comment : Same instance... . and i get errors like this Problem collecting blocking data from : xx.xxx.xxx.xxx : 27017 -ConnectionFailure : could not connect to xx.xxx.xxx.xxx : 27017 : timed out .. . Answer : Okay.. . here s what solved my problem. . my mongodb and agent were in the same instance . I had to open 27017 port being used for my mongodb for the inbound connection from aws console and that solved . for example if my ec2 elastic-ip was 1.1.1.1 in security group i added 1.1.1.1 32 port 27017 . and that just solved my problem . Kind of weird but that helped . Comment : try telnet to that db machine from the machine installed with agent .", "Question : I m fairly new to Node + Mongo and I m trying to see if there s a way I can back up my database every time I make a new commit . Is this possible I know how to backup using mongodump but I would prefer to avoid having to do this each time I push to the server . If the data directory idea doesn t work would it be possible to write a script which backs up to my node server repository and then does the push every time I run it I haven t been able to find anything relating git and mongo online so I think I may be looking at this wrong don t understand something . Any help would be greatly appreciated Thanks Comment : Late to the show but I was also looking around and built a small Node.js script to do this : github.com aramk mongodb-git-backup https : github.com aramk mongodb-git-backup .. . Answer : All you need is MMS Mongo monitoring service . It is a cloud based continuous backup service plus lot of automation like on-demand restore monitoring offered by MongoDB . With MMS every single time you make a commit the DB gets backed up incrementally . It also possible to easily deploy and monitor standalone replica-set or a sharded setup . MMS is better compared to mongodump as it tends to do an incremental backup vs whole database backup.Writing a script which does mongodump on every commit will work but you will have to delete the old backup file every time you want to backup for a new commit . MMS cuts down on this devops overhead by manging all of this boiler-plate effort writing scripts like mentioned that goes into DBA s role . Check-out this link for more info : MMS https : mms.mongodb.com", "Question : null .. . Answer : I am trying to use mongoDB MMS backup functionality . I am getting the following error when trying to connect in the Add Host part of the wizard . Unable to detect host within check interval . .. . .. . I have MongoDB 2.6.4 on a my Windows 7 laptop . I ve created an admin user with the following privileges : .. . .. . I run mongod --auth . Now I try to connect via MMS using MONGODB-CR Auth mechanism and get the error I described above . In the log I get many errors like the following : .. . .. . Using Robomongo 0.8.4 client I was able to log-in using the user and pass . I want to be able for MMS to connect to my local machine and initialize a backup of the databases on my machine . Thanks in advance . Comment : Did you check if the agent if running properly on your local machine Comment : Based on the error Failed to fetch Conf it seems like the MMS Backup agent isn t able to connect to mms.mongodb.com to get its configuration . I would check that you have entered the correct mmsApiKey in your agent config . If you can comment with a link-to your MMS group one of the MongoDB support team members can also have a look at your group .", "Question : I have created MongoDB deployment replica set using MMS Portal . I have enabled authentication in MMS portal so that DB can be only accessed by providing credentials . In MMS portal I don t find any option to assign oplog permission to user . So how can I create User with OpLog permission Background .. . .. . Before posting this question I have searched for for the same and found following link . How to access to oplog MongoDB MMS replica set http : stackoverflow.com questions 27112250 how-to-access-to-oplog-mongodb-mms-replica-set .. . .. . Solution in above link is to create roles . But am not sure about this approach because in MMS portal I can see many build-in roles but in admin database there is no system.roles collection INFO MongoDB version is 3.0.3 .. . Answer : Here is how I added user with oplog access for MongoDB Replication set deployed via MMS . In MMS Portal .. . .. . 1 . Click Deployment - MongoDB Users menu . 2 . Click ADD USERS button . 3 . In the form type database as admin type preferred username password in roles enter root@admin You can choose other roles as well which has create users privilege .. . .. . Now we have to login via mongo console . Once inside mongo console type following command to create user with access to oplog .. . .. . Now we can access oplog using following URL", "Question : I have a MongoDB replica set with MMS https : mms.mongodb.com . I created a user with all privileges all available on MMS but I can t access to the local db and or oplog colecction . TRACE : .. . .. . I need connect my Meteor app and another apps with Node.js to the oplog but I cannot access it . Why Because I m working on a script with Node.js to create a queue based on the oplog . This is possible I tested on MongoHQ and MongoLab successfully but now I need run this in my MMS production replica set with MMS without create a custom MongoDB replica set . Comment : Please describe why you have to access the oplog and what you are trying to achieve . Comment : @MarkusWMahlberg done .. . Answer : Check this link http : www.manuel-schoebel.com blog meteorjs-and-mongodb-replica-set-for-oplog-tailing .. . .. . Basically from mongo 2.6 you need to create a user and grant access to the oplog as well as accessing the DB using the right credentials .. . .. . Something like : .. . .. . db.runCommand createRole : oplogger privileges : resource : db : local collection : oplog.rs actions : find roles : role : read db : local .. . .. . Full procedure here http : www.manuel-schoebel.com blog meteorjs-and-mongodb-replica-set-for-oplog-tailing", "Question : null .. . Answer : I ve deployed a cluster of 4 shards on the same machine using MongoDB s MMS automation agent and I m observing relatively high CPU usage by the agent process 20-30 CPU constantly . I checked out the logs at var log mongodb-mms-automation automation-agent-verbose.log and it seems like the agent might be stuck in a loop - the output repeats itself constantly . Is this normal EDIT : Version .. . .. . Agent version 1.2.3.704 .. . .. . EDIT : Added graphs .. . .. . Here are some graphs showing CPU usage over the past 12 hours on the machine hosting the cluster . Notice how the agent uses about twice the CPU of the entire cluster constantly Total usage by mongod processes : .. . .. . mongod processes total usage http : i.stack.imgur.com VYRva.png .. . .. . Total usage by mongodb-mms-automation-agent process : .. . .. . mongodb-mms-automation-agent usage http : i.stack.imgur.com eBS5E.png Comment : You have deployed 4 shards on the same machine and you expect CPU usage to be low Comment : The mongod processes are all using below 5 . The automation agent is using more CPU than my entire cluster combined mongod s + mongos 6 processes total . That s what concerns me . Comment : Could you submit a ticket to the MMSSUPPORT https : jira.mongodb.org browse MMSSUPPORT project in MongoDB JIRA Be sure to include your MMS group name .", "Question : I am looking into setting up MMS Automation agent but found out that there is no download for windows . Is it not available for windows Thanks .. . Answer : They have released a Windows Agent . You are able to simply install MongoDb MMS Windows Agent according to this official documentation : .. . .. . http : mms.mongodb.com help-classic tutorial install-monitoring-agent-on-windows .. . .. . Update : After installing the agent according to the above instructions you need to submit a ticket in their support to enable monitoring for Windows . It can not be enabled automatically as it is not listed in their OS list yet . Comment : Thanks this was an awesome find . However I was able to setup and configure my MMS monitoring on Windows without opening a ticket . The API key is the same key that you would find in the Mac OS X tutorial . I was able to connect it to mongoDB by adding a connection in the deployment tab .", "Question : null .. . Answer : I am using MMS to monitor a 13 node MongoDB Cluster 3 Config Servers 4 MongoS 2 replica sets with 2 members + 1 arbiter each . MMS was working properly since its installation but now it is not monitoring the shards replica-sets properly . It is monitoring only 4 nodes 1 Primary 1 Secondary and 2 arbiters out of 6 nodes and auto-removing the other replica-set primary + secondary every time I am adding them manually . Also for the replica-set it is monitoring it is taking the primary secondary and arbiter as independent nodes even though it is showing correct TYPE for them in the monitoring window . When I checked Host Mapping it was surprised to see that it was showing the same alias name for both the Primary nodes and same for both the secondaries . I guess this is the reason it is not showing those 2 nodes in the monitoring window . I manually removed those entries of same alias names from the Host Mapping window but it is auto-updating it after few minutes . Why is it considering the two different nodes as same and taking the same alias name for them Is it a bug MMS is working well for Config-servers and MongoS nodes . My MMS group is MMS@Ork .. . .. . My Data nodes are as follows : .. . .. . Server1 - Primary of Replica-set1 + Secondary of Replica-set2 2 Nodes Server2 - Primary of Replica-set2 + Secondary of Replica-set1 2 Nodes Arbiters of both replica-sets are on separate machines . I have kept one port-number common for both the primaries and other port-number common for both the secondaries . Comment : Version of all the nodes in the cluster is 2.4.9 and that of MMS monitoring-agent is 2.3.1 Comment : This is a question about administrating MongoDB not about programming for it . This means the question is much more appropriate for dba.stackexchange.com https : dba.stackexchange.com . I nominated the question for migration . Comment : Thanks Philipp .", "Question : I would like to know if there is a way to get the hostname of the server which has the problem through MongoDB MMS . By default they give only following details . .. . Answer : Please find this link as well : http : www.litixsoft.de english mms .. . .. . Hope below will make sense to your question", "Question : I m relatively inexperienced with sysadmin work but I m trying to figure out how to connect MMS to my Meteor app to sync regular backups of our MongoDB instance . The app was deployed on Digital Ocean using MUP but MMS doesn t seem to want to connect to the Mongo Instance . I was wondering if there are any specific steps that need to be taken to make MMS work properly . It appears as though MMS requires standalone instances to be reconfigured to be replica instances but I m not quite sure how this works . I was wondering if anyone else has gone through this and could assist . Thanks .. . Answer : For MMS to be able to manage your servers remotely you need to install the MMS Automation Agent on each server that s running MongoDB and you need to have specific ports open so they can access the automation agent . Use the instructions for installing the agent on your specific operating-system https : docs.mms.mongodb.com tutorial nav install-automation-agent . Also use the MMS Automation Checklist https : docs.mms.mongodb.com core automation-checklist to make sure you have everything configured properly . Comment : Thanks Brian . I think there is an issue with the mongod instance being installed as a standalone instance vs as a part of a replica set . In addition MUP installs mongo so that it can only be accessed locally . Are you aware of this causing issues", "Question : null .. . Answer : Received a Host is down alert from Mongo DB cloud Manger MMS but Host is running fine . I am using mongodb-mms-monitoring-agent-2.3.1 and Mongo DB 2.4.14 binary . Can any one help", "Question : null .. . Answer : I am attempting to setup the MongoDb Cloud Manager Automation Agent so that I can automatically update my MongoDb deployment though I am running into the following error : .. . .. . The user mms-automation does exist in the admin database and was granted the permissions required . I can connect to the database via mongo mongodb : mms-automation : password@myservername.c.my-google-cloud-project.internal : 27017 admin and execute use admin db.getUsers as well as use admin db.system.users.find . Note that when installing the MMS Automation Agent a requirement is that the result-of hostname -f executed on the MongoDb server must be a FQDN that is resolvable from all other servers . I assume this to be all other servers listed in the Cloud Manager running MongoDb deployments . In this case the result-of hostname -f is yservername.c.my-google-cloud-project.internal the internal hostname of my compute node . I was hoping for help in the form of reference blog posts or other questions I may have missed on the matter . Comment : Which username did you provide when importing this replica set into Cloud Manager", "Question : I installed the MMS agent for CentOS and when I start it as a service I see the following error in the log file I have searched for this error but could not find any reference can someone let me know what the issue is . Thank You . Comment : The same problem occurs on Fedora 20 Comment : The same problem on my cent os anyone find solution .. . Answer : I expierenced same issue because of my fault .. . .. . I downloaded incorrect RPM version for my RedHat . Mongo provides agent download for .. . .. . RHEL CentOS 7.X .. . RHEL CentOS 5.X 6.X .. . .. . I installed for 7th where my RedHat was 6.7 Check your version cat etc redhat-release .. . .. . If you installed incorrect version then uninstall package sudo rpm -e mongodb-mms-monitoring-agent .. . .. . And install again correct one", "Question : null .. . Answer : I have installed mongo on my server with sudo yum install mongo i am using mongo to connect to my remote servers that actually have MongoDB installed on them amazon servers . At some point during the backup restore i need to issue a command like mongod --dbpath dbPath --replSet replicaSetName on my MongoDb server how can i do this from a mongo session or if it is not possible then how can i get the installation path to mongod Another thing is i also have an mms account is it possible to use their installed agent on mongodb server todo that thank you" ] }
[ "yes-answer-long", "yes-answer-short" ]
backup
UNK_RELATION
freeglut@glut@82
freeglut -- freeglut is an open-source alternative to the opengl utility toolkit @placeholder library .
{ "confidence": [ 48.06953048706055, 46.444252014160156, 46.04621124267578, 45.487937927246094, 45.2631721496582, 45.2631721496582, 44.93189239501953, 43.93902587890625, 42.56203079223633, 42.19855880737305, 42.18048095703125, 41.930782318115234, 41.841590881347656, 41.436668395996094, 41.137874603271484, 41.137874603271484, 41.137874603271484, 40.94843673706055, 40.915889739990234, 40.915889739990234, 40.915889739990234, 40.856388092041016, 40.65903091430664, 40.65903091430664, 40.12298583984375, 39.909324645996094, 39.59030532836914, 39.555320739746094, 39.434814453125, 39.434814453125, 39.434814453125, 39.434814453125, 38.976810455322266, 38.67741394042969, 38.67741394042969, 38.419925689697266, 37.4058723449707, 37.14759063720703, 37.14759063720703, 37.14759063720703, 37.14759063720703, 37.14759063720703, 36.432098388671875, 36.432098388671875, 36.38732147216797, 36.38732147216797, 36.38732147216797, 36.38732147216797, 36.1327018737793, 36.1327018737793, 36.1327018737793, 36.1327018737793, 36.08466339111328, 35.91434860229492, 35.57923889160156, 35.57923889160156, 35.37242889404297, 34.916324615478516, 34.916324615478516, 34.916324615478516, 34.69819641113281, 34.15605545043945, 34.049415588378906, 34.049415588378906, 34.049415588378906, 34.049415588378906, 34.049415588378906, 34.049415588378906, 34.0234260559082, 33.94041442871094, 33.917789459228516, 33.489463806152344, 33.45840835571289, 33.03452682495117, 33.03452682495117, 33.03452682495117, 33.03452682495117, 33.03452682495117, 33.03452682495117, 33.03452682495117, 33.0085334777832, 32.994606018066406, 32.97977066040039, 32.729190826416016, 32.41059494018555, 32.41059494018555, 32.41059494018555, 32.41059494018555, 32.41059494018555, 32.41059494018555, 32.41059494018555, 31.85915756225586, 31.818151473999023, 31.818151473999023, 31.804676055908203, 31.40601348876953, 31.40601348876953, 30.259658813476562, 29.964962005615234 ], "content": [ "I use FreeGLUT to include OpenGL .", "OpenGL does not require freeGLUT but I have the feeling that you are writing OpenGL code from somewhere where freeGLUT is used instead of pure OpenGL hence the dependency on freeGLUT .", "I m using MSVC++ and freeglut in order to use openGL .", "In my project I want to use a freeglut library from the unofficial opengl sdk .", "Hard to read but it appears you re not linking with the freeglut library .", "I m trying to use the SOIL library with freeglut and glew .", "install freeglut via macports modify premake4.lua so that it builds the Unofficial OpenGL SDK in the glsdk apart from freeglut .", "The FreeGLUT version seems to be able to use moderately modern rendering methods VBOs based on browsing the source code https : github.com dcnieho FreeGLUT blob git master freeglut freeglut src fg geometry.c .", "Result of dpkg -L freeglut3-dev : .. . .. . Note that in freeglut http : freeglut.sourceforge.net s repository there is freeglut.pc.in https : github.com dcnieho FreeGLUT blob git master freeglut freeglut freeglut.pc.in file and is included in CMakeLists.txt https : github.com dcnieho FreeGLUT blob git master freeglut freeglut CMakeLists.txt .", "I did use the freeglut library but without any luck .", "Take a look at github s mirror for its code https : github.com dcnieho FreeGLUT blob 5a6d3b2615d3b4d9629b65b5a0e0539037633963 freeglut freeglut src fg main.c L473 .. . .. . More information here : opengl glutmainloop http : stackoverflow.com q 1862496 1938163", "My goal is to use OpenGL 3.3 using FreeGLUT Is there a way to achieve that", "glutDestroyWindow mainly puts the window on a list to be destroyed https : github.com dcnieho FreeGLUT blob c59188a9a8d14efbeed7b0d6feacae7b04d7ad69 freeglut freeglut src fg window.c L263 as well as clearing all callbacks https : github.com dcnieho FreeGLUT blob c59188a9a8d14efbeed7b0d6feacae7b04d7ad69 freeglut freeglut src fg structure.c L177 except a destroy callback .", "glut-and-freeglut http : www.lighthouse3d.com cg-topics glut-and-freeglut", "That appears to be something FreeGLUT added .", "One of those libraries is FreeGLUT .", "I use GLEW and freeglut .", "Is there a reason not to use ubuntu s packaged freeglut packages.ubuntu.com search keywords freeglut http : packages.ubuntu.com search keywords freeglut", "I am having problems with using a camera in OpenGL freeGLUT .", "A program crashes if I try to use ifstream while having OpenGL freeglut .", "However I believe it needs to be GLchar to work with OpenGL Freeglut GLEW .", "Precisely it is provided from the open-source freeglut http : docs.nvidia.com gameworks content gameworkslibrary optix optix release notes.htm : .. . .. . GLUT .. . .. . Most OptiX samples use the GLUT toolkit .", "Windows are actually destroyed-at the end of each main loop https : github.com dcnieho FreeGLUT blob c59188a9a8d14efbeed7b0d6feacae7b04d7ad69 freeglut freeglut src fg main.c L466 .", "The fact that it has no display callback makes GLUT unhappy https : github.com dcnieho FreeGLUT blob c59188a9a8d14efbeed7b0d6feacae7b04d7ad69 freeglut freeglut src fg main.c L410 .", "It includes freeglut for example .", "Next I setup FreeGLUT by downloading the tarball http : sourceforge.net projects freeglut files freeglut 2.8.0 freeglut-2.8.0.tar.gz download from the project site http : freeglut.sourceforge.net index.php download .", "Unlike OpenGL which availability in a compiler toolchain is mandated by the Windows ABI FreeGLUT is an optional 3rd party library that must be installed separately .", "Aswell as this there is a file called freeglut its type will be Object File Library .", "Freeglut ships with the Windows OptiX distribution .", "I m trying to get FreeGLUT working .", "I downloaded freeglut http : freeglut.sourceforge.net .", "No need to build or install freeglut seperately .", "In my project I set Additional Include Directories Additional Library Directories for the freeglut .", "completely outdated but an unofficial extension added by freeglut .", "In the code I just include a freeglut header .", "I m using freeGlut included in XQuartz", "Related question : installing Freeglut on Linux http : stackoverflow.com questions 11318510 installing-freeglut-on-linux .", "I want to create the opengGL context using freeglut .", "I have linked the static debug freeglut lib .", "I have a font render issue with Anttweakbar and Freeglut .", "Is that only for glsl or is there any way to use FreeGLUT", "@jasonaburton : FreeGLUT is not the same thing as GLUT .", "You can still try to use FreeGLUT library it is newer and also cross-platform for sure wheel actions are implemented .", "You have to link you program in addition to including the header-files against glut and or the freeglut library .", "I use VS2013 CUDA 7.5 Runtime OpenGl 4.5 Freeglut 2.6 and Anttweakbar 1.16 in my program .", "I have a program which runs in a window using OpenGL VS2012 with freeglut 2.8.1 .", "I m doing some tutorials on OpenGL http : www.arcsynthesis.org gltut Basics Tutorial 2001.html that use FreeGLUT http : freeglut.sourceforge.net .", "I m not familiar with Mac but you need to install both the OpenGL and GLU development libraries to build FreeGLUT which depends on them .", "And how does pkg-config assist in installing freeglut", "Where should I symlinks FreeGLUT and GLEW libraries", "I m using C++ with latest FreeGlut installed .", "Failure to do this gives linker errors relating to freeglut .", "I m trying to build a very basic OpenGL program on OS X using a brew installed FreeGLUT and GLEW on Netbeans .. . .. . brew installed FreeGLUT on usr local Cellar freeglut 2.8.1 with both include lib folders contaings : freeglut.h freeglut ext.h freeglut std.h glut.h and libglut.3.dylib libglut.a respectively .", "Freeglut is an extended implementation of the SGI GLUT Toolkit and with a few exceptions around obsolete hardware implements the same functions .", "There are a few things which seem to be undocuemted about freeglut handling this .", "I m going to show FPS on the screen with the freeglut function glutBitmapString but it shows nothing .", "I am working on a Mac I ve got FreeGlut compiled and installed but I can t seem to get the OpenGL 3.2 context with it .", "Compiling FreeGLUT and SOIL statically for X64 worked for me .", "I exclude using FreeGlut and Tao for the time being", "I have a working project containing freeglut and glew .", "Please do not recommend any solutions that use libraries other than the standard C++ library ie the stuff that comes with the compiler freeGlut and Opengl as these are the only libraries I am allowed to use .", "I am developing graphic project with OpenGL and using freeglut and glew v 1.11.0 .", "I think you can argue that this is a FreeGLUT bug either in the implementation or the documentation .", "I am building an application that uses freeglut in windows 32bit debug mode .", "XQuartz 2.7.2 swapped to FreeGLUT 2.8.0 instead of the old MesaGLUT .", "But this does answer my initial question on how to build freeglut .", "Do you know where-in the FreeGLUT files I will need to make that change", "Hi I was not able to get a 3.2 context using FreeGlut via XQuartz .", "glutSolidCylinder .. . .. . Pros : .. . .. . As long as you re comfortable with using FreeGLUT it s still supported with source code available .", "Earlier I was using freeglut 2.8.0 MSVC Package from link http : www.transmissionzero.co.uk software freeglut-devel which is linked dynamically contain freeglut.dll and everything works fine .", "So far I have been able to compile and run Gl.h and Glu.h but I am having trouble getting the static library for freeglut .", "Now go back to the main freeglut folder .", "Btw I just so the end of your question - yes opengl is needed as a dependency because freeGLUT uses OpenGL but covers some of its complexity window creation input event-handling initialisation of OpenGL stuff etc .", "I am trying to install freeglut on my computer running Linux Mint .", "pkg-config won t assist in installing freeglut though it will assist in using it .", "Why do you want to use both GLUT and freeglut", "Also this doesn t explain why ifstream doesn t work at all even with no freeglut .", "I have a DLL written in C++ that uses FreeGlut to visualize some data .", "I recently tried to figure out how to use freeglut with NetBeans 7 .", "Maybe this will help others looking for instructions on using freeglut in Netbeans .", "My source code using FreeGLUT : .. . .. . When I launch directly the program . a.out on the Intel chipset everything works .", "After installing debian in VMware and installing all librarys required to run OpenGL applications with freeglut I used glxgears to make sure everything works fine .", "Right now programs error on the last line in the CMakeLists.txt file : .. . .. . with error .. . .. . I looked into it and it appears that after downloading freeglut I need to create the library files specifically the .a file libfreeglut32.a from the source code .", "- I got this from the zip file at http : www.starstonesoftware.com OpenGL .. . .. . In the freeglut folder there should be a folder called VisualStudio2008 go into this .", "To fix linkage errors as mentioned here : .. . .. . freeglut error LNK1104 http : stackoverflow.com questions 11954344 freeglut-error-lnk1104 .. . .. . I have added : .. . .. . to the head of my .cpp .", "But if i use i got a error message for freeglut : .. . .. . freeglut My program location : GL error : invalid operation .. . .. . And everything is almost OK but anttweakbar doesn t visualize any text .", "Most simple course of action would be to simply drop FreeGLUT sources into a subdirectory of your project and just add it to your CMakeLists.txt FreeGLUT comes with a ready to use CMake configuration so that will just work .", "The reason I want to use freeGlut is because the course I am taking right now requires the assignments to compile on their computers and they are using FreeGlut and I would like to be able to work from home .", "You can download them at FreeGLut download page http : freeglut.sourceforge.net index.php download in section Prepackaged Releases .. . .. . Direct Link http : www.transmissionzero.co.uk software freeglut-devel .. . .. . Please note it s community-maintained .", "Possibly already answered : freeglut error LNK1104 http : stackoverflow.com questions 11954344 freeglut-error-lnk1104 .. . .. . Also two things to check for : .. . .. . Are you building in debug or release-mode", "in Test directory put the right paths to include for freeglut headers and link with the : in Test.make replace -I. . glsdk glutil include and -L. . glsdk glutil lib with paths from freeglut build via macports .", "I m trying to compile an OpenGL program using Visual Studio 2013 but I get the following error : .. . .. . Error 1 error LNK1104 : cannot open file freeglutd.lib .. . .. . .. . For reference I have FreeGLUT installed and have configured VS to search the correct directories for the include files and library files .", "I followed the installation guide step by step on how to configure freeglut with Codeblocks .", "I just checked and on gentoo the freeglut package names its libraries libglut .", "For those who re wondering how to set up freeglut in XCode see lazyfoo.net tutorials OpenGL 01 hello opengl mac xcode http : lazyfoo.net tutorials OpenGL 01 hello opengl mac xcode index.php", "I have indeed started looking at GLFW as I didn t realise that FreeGLUT had cross-platform issues .", "When I want to run the program I get an error : .. . .. . The freeglutD.lib is the only file in sdk freeglut lib .", "Copy all of the freeglut and GLTools library files ending in .lib files to C : Program Files Microsoft Visual Studio 10.0 VC lib .. . .. . iv .", "The d at the end of freeglutd.lib suggests that it s a library meant for debug builds .. . Try creating a new project from scratch put some basic runnable code in it that uses freeGLUT and see if VS is linking properly ." ] }
{ "confidence": [ 73.05687713623047, 59.596466064453125, 59.48654556274414, 58.86943435668945, 58.07936096191406, 57.63955307006836, 56.80469512939453, 56.00877380371094, 55.39851760864258, 54.418731689453125, 52.67009735107422, 52.61661148071289, 52.464813232421875, 50.97679138183594, 50.606407165527344, 50.18562316894531, 49.853939056396484, 49.53314208984375, 49.07940673828125, 48.96466827392578 ], "content": [ "Question : I have been working in Optix for my ray tracing project i went through its classes and function I know that all the display function and call backs are handled in glutmainloop and it will never end my question is I cannot find any function or .c file where glutmainloop is defined is it hidden Can anyone help me .. . Answer : glutMainLoop is a function from the GL Utility Toolkit GLUT . On Windows the library gets linked in and thus no source code is provided . Precisely it is provided from the open-source freeglut http : docs.nvidia.com gameworks content gameworkslibrary optix optix release notes.htm : .. . .. . GLUT .. . .. . Most OptiX samples use the GLUT toolkit . Freeglut ships with the Windows OptiX distribution . GLUT is installed by default on Mac OSX . A GLUT installation is required to build samples on Linux . Take a look at github s mirror for its code https : github.com dcnieho FreeGLUT blob 5a6d3b2615d3b4d9629b65b5a0e0539037633963 freeglut freeglut src fg main.c L473 .. . .. . More information here : opengl glutmainloop http : stackoverflow.com q 1862496 1938163", "Question : I am trying to learn opengl for a class but am having trouble with getting setup . I am using Windows with the IDE CLion and cygwin64 . So far I have been able to compile and run Gl.h and Glu.h but I am having trouble getting the static library for freeglut . Right now programs error on the last line in the CMakeLists.txt file : .. . .. . with error .. . .. . I looked into it and it appears that after downloading freeglut I need to create the library files specifically the .a file libfreeglut32.a from the source code . I have tried looking for an explanation on how it is done but haven t found an answer . Would anyone be able to help explain how to do this .. . Answer : Unlike OpenGL which availability in a compiler toolchain is mandated by the Windows ABI FreeGLUT is an optional 3rd party library that must be installed separately . Most simple course of action would be to simply drop FreeGLUT sources into a subdirectory of your project and just add it to your CMakeLists.txt FreeGLUT comes with a ready to use CMake configuration so that will just work . On a side note you should not use .. . .. . but .. . .. . I.e . in total you should extract FreeGLUT sources into a subdirectory of your project and change your CMakeLists to Comment : Now I am getting an error of could not find X11 . I went and downloaded cygwin x including the x-org server and xinit but still that does not work . Comment : @ChrisProcak : Well the problem you re running into is that Cygwin tries to provide maximum compatibility with Linux . And in Linux you do graphics through an X server . But in Windows there is no X server unless you start the X server that comes with Cygwin but the OpenGL support of that is meager at best . Instead of Cygwin I strongly advise you to use MinGW to compile your project . The easiest way to install it is using the MSys2 installer msys2.github.io https : msys2.github.io to get a MSys2 environment and then install mingw inside it . That will give you native OpenGL support which you want .", "Question : Some context : I am going through a tutorial http : openglbook.com on using OpenGL . The tutorial requires a couple libraries in order to work . One of those libraries is FreeGLUT . I am on OS X using Lion . I ve downloaded FreeGLUT and followed the instructions http : freeglut.sourceforge.net docs install.php for installation but when I run the make all command I get this error : .. . .. . I ve scoured the internet for a solution and all I ve been able to understand from this is that the compiler is having trouble locating these files and that the path that the compiler is using needs to be changed . EDIT : Okay I ve figured out that it s not the compiler it is that for some reason those files are not there . Going to try figure out why they are not there . Comment : I m not familiar with Mac but you need to install both the OpenGL and GLU development libraries to build FreeGLUT which depends on them . Comment : Using Xcode you can just add a library to a project and OpenGL is a library that can be added so I just assumed those files were installed . Any ideas on how I go about doing that Hehe.. . .. . Answer : That tutorial OpenGLBook.com is based around OpenGL 4.0 core contexts with 3.3 core contexts as an alternative . At best on OS X with Mountain Lion you ll get a 3.2 core context which is similar enough to 3.3 - but unfortunately this is incompatible with GLUT - OS X includes the original GLUT unmodified due to licencing issues which requires many obsolete OpenGL functions that aren t available in 3.2 core contexts . If you want to do this tutorial on OS X 10.6.3 or later without having to deal with many annoying incompatibilities and with future-proof OpenGL I recommend installing a recent version of XQuartz 2.7.2 or later which includes FreeGLUT 2.8.0 to start with . http : xquartz.macosforge.org trac wiki X112.7.2 Comment : Hi I was not able to get a 3.2 context using FreeGlut via XQuartz . I was able to get a 2.1 context with out any issues but I could only get 3.2 via Cocoa . I d love to find out if this can be done .", "Question : In my project I want to use a freeglut library from the unofficial opengl sdk . I used Premake to generate build files for vs2010 . Then I built all libraries debug . In my project I set Additional Include Directories Additional Library Directories for the freeglut . In additional dependencies I added freeglutD.lib . In the code I just include a freeglut header . When I want to run the program I get an error : .. . .. . The freeglutD.lib is the only file in sdk freeglut lib . There is no freeglut.dll and freeglut.lib in sdk . Earlier I was using freeglut 2.8.0 MSVC Package from link http : www.transmissionzero.co.uk software freeglut-devel which is linked dynamically contain freeglut.dll and everything works fine . What is wrong .. . Answer : My guess is that you forgot these lines from the documentation on using the SDK : .. . .. . You will also need to add some defines to your command-line . These are : .. . .. . FREEGLUT STATIC .. . LIB .. . FREEGLUT LIB PRAGMAS 0 .. . .. . You need that FREEGLUT STATIC to let GLUT know that it s linking statically . Otherwise it looks for a DLL . Comment : Thanks Jason FREEGLUT STATIC solved my linker errors additionally I also had to give -lgdi32 and -lwinmm which seem to be required for statically linking FreeGLUT in a MinGW setup transmissionzero.co.uk computing using-glut-with-mingw http : www.transmissionzero.co.uk computing using-glut-with-mingw .", "Question : In my project I want to use a freeglut library from the unofficial opengl sdk . I used Premake to generate build files for vs2010 . Then I built all libraries debug . In my project I set Additional Include Directories Additional Library Directories for the freeglut . In additional dependencies I added freeglutD.lib . In the code I just include a freeglut header . When I want to run the program I get an error : .. . .. . The freeglutD.lib is the only file in sdk freeglut lib . There is no freeglut.dll and freeglut.lib in sdk . Earlier I was using freeglut 2.8.0 MSVC Package from link http : www.transmissionzero.co.uk software freeglut-devel which is linked dynamically contain freeglut.dll and everything works fine . What is wrong .. . Answer : I had an older project from VS12 and got the same LNK1104 error when trying to build it after upgrade in VS15 . All I had to do to fix this was run Package Manager Console Tools - NuGet Package Manager and type in : .. . .. . Note that I have reference to glew.h and freeglut.h in one of my header-files like this :", "Question : Some context : I am going through a tutorial http : openglbook.com on using OpenGL . The tutorial requires a couple libraries in order to work . One of those libraries is FreeGLUT . I am on OS X using Lion . I ve downloaded FreeGLUT and followed the instructions http : freeglut.sourceforge.net docs install.php for installation but when I run the make all command I get this error : .. . .. . I ve scoured the internet for a solution and all I ve been able to understand from this is that the compiler is having trouble locating these files and that the path that the compiler is using needs to be changed . EDIT : Okay I ve figured out that it s not the compiler it is that for some reason those files are not there . Going to try figure out why they are not there . Comment : I m not familiar with Mac but you need to install both the OpenGL and GLU development libraries to build FreeGLUT which depends on them . Comment : Using Xcode you can just add a library to a project and OpenGL is a library that can be added so I just assumed those files were installed . Any ideas on how I go about doing that Hehe.. . .. . Answer : install freeglut via macports modify premake4.lua so that it builds the Unofficial OpenGL SDK in the glsdk apart from freeglut . manually copy and paste the lib and include folders of the freeglut via macports and modify include GL freeglut.h inside framework.cpp framework folder so that it finds the header . also fill the blanks in folder names e.g . Tut 13 Impostors - Tut 13 Impostors .. . .. . it works for me .. . .. . more details here http : stackoverflow.com questions 12229211 issues-with-freeglut-on-mac-os-snow-leopard-it-builds-fine-via-macports 12283617 12283617", "Question : I m trying to compile an OpenGL program using Visual Studio 2013 but I get the following error : .. . .. . Error 1 error LNK1104 : cannot open file freeglutd.lib .. . .. . .. . For reference I have FreeGLUT installed and have configured VS to search the correct directories for the include files and library files . Indeed VS recognises the GLUT include files just fine . I ve also added opengl32.lib and freeglut.lib to the Additional Dependencies . Why is VS looking for freeglutd.lib It s definitely not listed in the Additional Dependencies . I can solve the compilation error by renaming libglut.lib to libglutd.lib and removing the former from the dependencies but I m just curious why it s behaving this way . Speaking of Additional Dependencies is adding opengl32.lib actually necessary I can compile my very basic program without it but more than one person has said it s required perhaps for older versions of Visual Studio Comment : Try doing a solution-wide search for libglutd.lib and see what emerges . I suspect that one of your project XML files is slightly corrupted . Comment : @Robert Harvey : I searched the entire solution for libglutd.lib and freeglutd.lib I guess that s what you meant but nothing was found . Edit : I checked the log file as well and the link command doesn t have freeglutd.lib as a library . .. . Answer : Possibly already answered : freeglut error LNK1104 http : stackoverflow.com questions 11954344 freeglut-error-lnk1104 .. . .. . Also two things to check for : .. . .. . Are you building in debug or release-mode The d at the end of freeglutd.lib suggests that it s a library meant for debug builds .. . Try creating a new project from scratch put some basic runnable code in it that uses freeGLUT and see if VS is linking properly . This will also verify if for some reason the project file of the previous project was corrupted as @RobertHarvey suggested or the problem is somewhere else Comment : I looked at that answer before and it didn t help unfortunately . I tried both debug and release-mode . I also did as you suggested and created a new project but no luck . Comment : Hmm interesting . Btw I just so the end of your question - yes opengl is needed as a dependency because freeGLUT uses OpenGL but covers some of its complexity window creation input event-handling initialisation of OpenGL stuff etc . Can you post a screen shot of your project settings linking dependencies headers etc . . OpenGL does not require freeGLUT but I have the feeling that you are writing OpenGL code from somewhere where freeGLUT is used instead of pure OpenGL hence the dependency on freeGLUT . Comment : I just realised I wasn t applying the suggestion from the linked answer properly . I defined those macros after including GL glut.h which is pointless . I can now say the problem is with FREEGLUT LIB PRAGMAS being equal to 1 . More specifically if it is equal to 1 GL freeglut std.h will try to link libglutd.lib if NDEBUG is not defined . So it is meant for debug builds but Release mode doesn t define NDEBUG by default . PS upon inspection of the glut header file opengl32.lib is linked for you if FREEGLUT LIB PRAGMAS is 1 . Comment : Glad it worked out :", "Question : Some context : I am going through a tutorial http : openglbook.com on using OpenGL . The tutorial requires a couple libraries in order to work . One of those libraries is FreeGLUT . I am on OS X using Lion . I ve downloaded FreeGLUT and followed the instructions http : freeglut.sourceforge.net docs install.php for installation but when I run the make all command I get this error : .. . .. . I ve scoured the internet for a solution and all I ve been able to understand from this is that the compiler is having trouble locating these files and that the path that the compiler is using needs to be changed . EDIT : Okay I ve figured out that it s not the compiler it is that for some reason those files are not there . Going to try figure out why they are not there . Comment : I m not familiar with Mac but you need to install both the OpenGL and GLU development libraries to build FreeGLUT which depends on them . Comment : Using Xcode you can just add a library to a project and OpenGL is a library that can be added so I just assumed those files were installed . Any ideas on how I go about doing that Hehe.. . .. . Answer : On Mac the location of those header-files are not the same as on Linux . So in the code replace this : .. . .. . with this : .. . .. . and that should fix your issue . Comment : Do you know where-in the FreeGLUT files I will need to make that change Comment : No I don t but as far as I know you don t need it . GLUT is pre-installed on OS X so you can just follow the tutorial with the GLUT you already have on your machine and the code should be exactly the same . Comment : The impression I got was that FreeGLUT was very different than GLUT and the example would not work as written . If I can t get this working I will try using GLUT . Comment : So I found where I needed to make that change but now I am getting a new error : GL glx.h : No such file or directory same thing except this time when I changed it to OpenGL glx.h the error still appeared.. . Comment : @jasonaburton : FreeGLUT is not the same thing as GLUT . FreeGLUT implements many of the same functions but it also adds many more that were never in GLUT . I don t know what OSX ships with but it s probably a hacked version of the original GLUT which likely won t support any of the FreeGLUT extensions .", "Question : Though I know gluCylinder is somewhat old and glu too and glut is still there through freeglut but I saw those two and wondering what s the difference besides that gluCylinder requires that you define a Quadric and what s faster . .. . Answer : The original GLUT did not have a glutSolidCylinder function . That appears to be something FreeGLUT added . gluCylinder .. . .. . Pros : .. . .. . Supports texture coordinate generation . Cons : .. . .. . GLU is old . I mean really really old . The spec was last updated in 1998 and I suspect that the available implementations are just as old . This means that it s using immediate mode rendering glBegin glEnd style which is inefficient and not available anymore in modern versions of OpenGL . GLU support is starting to disappear from some platforms . glutSolidCylinder .. . .. . Pros : .. . .. . As long as you re comfortable with using FreeGLUT it s still supported with source code available . The FreeGLUT version seems to be able to use moderately modern rendering methods VBOs based on browsing the source code https : github.com dcnieho FreeGLUT blob git master freeglut freeglut src fg geometry.c . Cons : .. . .. . Does not generate texture coordinates . This was definitely not supported for most solids in GLUT and as far as I can tell is still not supported for cylinders in FreeGLUT . self-made .. . .. . Rendering a cylinder is very easy . Personally I would just write it myself .", "Question : I am working on a Mac I ve got FreeGlut compiled and installed but I can t seem to get the OpenGL 3.2 context with it . However I can get it without any problem while using GLFW . So in GLFW this code works perfectly fine : .. . .. . But with FreeGlut this code fails on glutCreateWindow : .. . .. . The error it fails with is : .. . .. . I am running on MacOS X 10.8 Mountain Lion with Intel HD4000 graphics having installed XQuartz as my X11 server and having compiled and installed FreeGlut 2.8 from sources . Does anyone know what might be the issue Comment : Having the exact problem but I m using FreeGlut as included in XQuartz opt x11 lib opt x11 include . Did you solve the issue Comment : Same issue here - were you able to solve the problem Comment : Did anyone of you solved the problem I m having the same issue . I m using freeGlut included in XQuartz Comment : The best is to just stick with glfw i got stuck with the same issue on OS X 10.10 . Code compiles fine but then it crashes when running . Have XQuartz setup . Tried with no luck to get version 3.2 .. . Answer : Freeglut is an extended implementation of the SGI GLUT Toolkit and with a few exceptions around obsolete hardware implements the same functions . Unfortunately this includes a number of features that would break in a strictly CORE FORWARD COMPATIBLE implementation . Typically if you request a context WITHOUT specifying a version or profile you will get the best that the combination of driver and GL toolkit can offer which is normally a compatibility profile rather than core profile . Note that the only thing you lose through using a compatibility profile is the supposed checking for deprecated functions . All new core function should work without issue . This problem with freeglut is not restricted to Apple it also manifests under Linux using some Gallium drivers . It is not clear that there is any short-term intent to rectify this so if you need to use CORE FORWARD COMPATIBLE you should probably switch to GLFW or SDL .", "Question : I am using the following configuration .. . .. . Mac OSX v 10.9.1 .. . Intel HD graphics 4000 1024 MB . My goal is to use OpenGL 3.3 using FreeGLUT Is there a way to achieve that However this site https : developer.apple.com graphicsimaging opengl capabilities states that HD 4000 should support 4.1 . Is that only for glsl or is there any way to use FreeGLUT The reason I want to use freeGlut is because the course I am taking right now requires the assignments to compile on their computers and they are using FreeGlut and I would like to be able to work from home . .. . Answer : MacOS X supports OpenGL-3.2 and later contexts only if you request a core context . You have to initialize FreeGLUT in addition with .. . .. . Another solution is given at http : stackoverflow.com a 13751079 524368 Comment : That did the trick Thanks . Our teachers test program actually initiated the core profile before initializing context 3.2 which for some reason did not work for me . Comment : update It did not work . I tried the solution on the wrong file by mistake my bad . Following the solution in the link you provided did not even compile as GLUT 3 2 CORE PROFILE is an undeclared identifier . Thank you anyway .", "Question : I downloaded freeglut http : freeglut.sourceforge.net . I m reading the installation instructions http : freeglut.sourceforge.net docs install.php . I extracted all the files . I see a file called configure and configure.ac . I opened visual-studio command-prompt and changed the directory to .. . .. . C : DevStuff OpenGL freeglut-2.8.0 .. . .. . The next step is to configure the packages .. . .. . . configure .. . .. . This looks like a Linux command . How am I supposed to complete this kind of a build on a windows-7 machine I have visual-studio-2010 ultimate ed . UPDATE .. . .. . I found the VS2010 directory and successfully performed a build . I need freeglut static.lib which did not come out of this build . The output directory .. . .. . . . . . lib x86 Debug contains only one lib file freeglut.lib . I suspect I need the makefile but I really don t know . This lib is required for OpenGL Superbible sample projects http : www.starstonesoftware.com OpenGL fourthEdition.htm . In the sample projects when I try to run it a compilation error : .. . Answer : Info for anyone trying to get the samples http : www.starstonesoftware.com OpenGL fourthEdition.htm for 4th ed OpenGL superbible to work on a Windows box . .. . .. . The website comes with everything you need . No need to build or install freeglut seperately . It s just that the projects are not configured correctly . For visual-studio-2010 here s the fix for the first project entitled block : .. . .. . 1 . Right click the project properties VC++ Directories Library Directories not Include directories Add a link-to the freeglut static.lib which comes with the download . E.G . C : DevStuff OpenGL SB-WinwBin SuperBible4 examples src shared .. . .. . 2 . If you build now you will get a new error regarding inability to link LIBC.lib . With the project properties still open go to Linker Input Ignore Specific Default Libraries click the dropdown arrow click Edit.. . type LIBC.lib and click ok . .. . .. . Now everything should build just fine . Comment : I finally got a successful build because of this answer . I want to make a note that you have to include the gltools by doing step 1 : C : SB5 Src GLTools include", "Question : null .. . Answer : I have a font render issue with Anttweakbar and Freeglut . I use VS2013 CUDA 7.5 Runtime OpenGl 4.5 Freeglut 2.6 and Anttweakbar 1.16 in my program . If i don t use Anttweakbar i don t have any problems in my program . But if i use i got a error message for freeglut : .. . .. . freeglut My program location : GL error : invalid operation .. . .. . And everything is almost OK but anttweakbar doesn t visualize any text . Font render issue image http : i.stack.imgur.com TpiaY.png I have tried to solve this problem i can t achieve it . This is code detail of my program : .. . .. . I suppose that connection of OpenGl Pixel Buffer Object and Anttweakbar causes the issue . U.I . : Sorry my English is not very well .", "Question : null .. . Answer : I m trying to build a very basic OpenGL program on OS X using a brew installed FreeGLUT and GLEW on Netbeans .. . .. . brew installed FreeGLUT on usr local Cellar freeglut 2.8.1 with both include lib folders contaings : freeglut.h freeglut ext.h freeglut std.h glut.h and libglut.3.dylib libglut.a respectively . brew also installed GLEW on usr local Cellar glew 1.13.0 with both include lib folders contaings : glew.h glxew.h wglew.h and libGLEW.1.13.0.dylib libGLEWmx.a libGLEWmx.1.13.0.dylib libGLEW.a respectively . brew creates some useful symlinks to include files to usr local include GL so that I can include them on Netbeans by adding usr local include to C++ include directories on Netbeans preferences .. . .. . Now I m trying to build my project without any successful attempts except when adding -framework GLUT -framework OpenGL -framework Cocoa to my linker additional options which redirects my includes to Apple frameworks I ve tried lots of linker options like -lGLU with ld : library not found for -lGLU like errors How to build this program successfully independent of Apple frameworks Where should I symlinks FreeGLUT and GLEW libraries What are missing properties Netbeans uses gcc g++ as and gdb away from Apples clang llvm compiler Comment : Neither GLUT nor GLEW are OpenGL they re just utilities for it . You ll have to link-to OpenGL at some point and it s provided by your system .", "Question : I want to create the opengGL context using freeglut . I will first decide the which context to by checking the supporting version using glew and some other parameters . I know for glew to work it needs a opengl context . So I first create a context using glutCreateWindow then check the supported version and then set the version required using the glutInitContextVersion and destroy the previous window using glutDestroyWindow and recreate the new window by using glutCreateWindow . I get this error Freeglut error : ERROR : No display callback registered for window 1 I checked 1 is ID for my previous window which I destroyed . Following is my code .. . .. . I think I need to do this as a openGL context is always required for glew to work . I already tried setting the display function on first window as well though I know I am going to destroy it but that also didn t work . I am setting the current window to new window and then calling the glutMainLoop . So I think this should work .. . .. . According to answer by rhashimoto I tried to put the destroy command at different positions .. . .. . I put the destroy command at begining of reshape callback .. . .. . The I put the destroy command at beginning of display function .. . .. . If I put this at end of Display callback it does not give error but the displayed scene is not correct . Somethings are missing from the scene .. . .. . So is there some specific callback function I need to put this display command I dont think there is any destroy callback I can set . yes there is glutCloseFunc but I think that is meant to be called when window is being destroyed that is when glutDestroyWindow has been called on window .. . Answer : I think you can argue that this is a FreeGLUT bug either in the implementation or the documentation . It looks like glutDestroyWindow needs to be called from a GLUT callback to work properly . glutDestroyWindow mainly puts the window on a list to be destroyed https : github.com dcnieho FreeGLUT blob c59188a9a8d14efbeed7b0d6feacae7b04d7ad69 freeglut freeglut src fg window.c L263 as well as clearing all callbacks https : github.com dcnieho FreeGLUT blob c59188a9a8d14efbeed7b0d6feacae7b04d7ad69 freeglut freeglut src fg structure.c L177 except a destroy callback . This is probably why setting the display function didn t work for you - it was removed when you called glutDestroyWindow . Windows are actually destroyed-at the end of each main loop https : github.com dcnieho FreeGLUT blob c59188a9a8d14efbeed7b0d6feacae7b04d7ad69 freeglut freeglut src fg main.c L466 . So on the first time through the loop your window still exists . The fact that it has no display callback makes GLUT unhappy https : github.com dcnieho FreeGLUT blob c59188a9a8d14efbeed7b0d6feacae7b04d7ad69 freeglut freeglut src fg main.c L410 . The best workaround is probably to arrange to call glutDestroyWindow only via one of the GLUT callbacks . I don t know if this will make the window briefly flash on the screen . My guess is it won t but it might depend on the platform . Comment : I have updated my questions . please see Comment : Weird . Try glutIdleFunc https : www.opengl.org resources libraries glut spec3 node63.html . Comment : My glutIdleFunc is same as my Display function Comment : Not sure what you mean by that . Do you mean that there is no error but some objects aren t drawn If so are you sure that using this extra window is causing the objects not to be drawn And are you sure you are destroying the correct window giving them different title bar names would help distinguish them", "Question : I m doing some tutorials on OpenGL http : www.arcsynthesis.org gltut Basics Tutorial 2001.html that use FreeGLUT http : freeglut.sourceforge.net . Apparently http : lookass.ch id 4area artart 216 area art art 221 this is how you build and install it on the mac : .. . .. . Unfortunately this on its own gives me an error when I do the make command : Undefined symbols for architecture x86-64 .. . .. . After doing abit of work I ve found that an improvement on the first line is : .. . .. . Unfortunately when I do the make command I m still getting an error : .. . .. . This has been documented on the net before http : www.bytecompile.org wiki doku.php installing-freeglut but the solution isn t really all that helpful in this instance . I ve also tried swapping it for the GLUT.framwork that comes with OS X but the examples are using FreeGLUT-specific functions . Comment : Ok I ve got a little further in this . Using CPPFLAGS -I usr X11R6 include -L usr X11R6 lib . configure --prefix PWD . . gets rid of the Undefined symbols error . But now I get ld : library not found for -lGL collect2 : ld returned 1 exit status make 2 : libglut.la Error 1 make 1 : all-recursive Error 1 make : all Error 2 Comment : Maybe you should also check with LDFLAGS -L usr X11R6 lib is needed . Comment : Ooh thanks . Ok so I used CPPFLAGS -I usr X11R6 include -L usr X11R6 lib LDFLAGS -L usr X11R6 lib . configure --prefix PWD . . and I got rid of the previous error . Now I get a whole load of errors along the lines of smooth opengl3.c : 101 : error : redefinition of typedef PFNGLGENBUFFERSPROC usr X11R6 include GL glext.h : 5080 : error : previous declaration of PFNGLGENBUFFERSPROC was here Comment : Would you update your question accordingly so that I can start an answer Excessive comments of conversations are not recommended in this site . Comment : Did you get it to work .. . Answer : XQuartz 2.7.2 swapped to FreeGLUT 2.8.0 instead of the old MesaGLUT . So provided you have OS X version 10.6.3 or later you can just install XQuartz 2.7.2 or later . See : .. . .. . http : xquartz.macosforge.org trac wiki X112.7.2 .. . http : lists.apple.com archives x11-users 2012 Apr msg00020.html Comment : For those who re wondering how to set up freeglut in XCode see lazyfoo.net tutorials OpenGL 01 hello opengl mac xcode http : lazyfoo.net tutorials OpenGL 01 hello opengl mac xcode index.php", "Question : The FreeGLUT API documentation does not include an entry for glutInitContextVersion and when I google for it all I find are a list of questions which don t directly address its usage or effects . Is it documented anywhere .. . Answer : glutInitContextVersion is not part of the official GLUT API which is btw . completely outdated but an unofficial extension added by freeglut . However its usage is quite straight-forwadd as soon as one knows about how OpenGL s context versions work which was defined in the ARB create context https : www.opengl.org registry specs ARB wgl create context.txt familiy of extensions . The function will select which OpenGL version is requested when the context is actually created . Note that this does not require the implementation to return a context with exactly the version you are requesting but it should return one that is compatible to the requested version so that all features of that version are present . There are a few things which seem to be undocuemted about freeglut handling this . From looking into the code for the current stable version 2.8.1 one will see that freeglut implements the following logic : If the implementation cannot fullfill the version constraints but does support the ARB create context extension it will generate some error and no context will be created . However if a version is requested but the implementation does not even support the relevant extensions a legacy GL context is created effectively ignoring the version request completely . This seems a bit inconsistent to me . However as this stuff is not documented and not part of the GLUT spec it is unclear if the behavior will stay the same in the future or not . If you don t need some GLUT-specific features which are basically all relying on deprecated OpenGL anyway you ll might want to look at some more modern alternatives like GLFW http : www.glfw.org . Comment : Thanks that was helpful . I have indeed started looking at GLFW as I didn t realise that FreeGLUT had cross-platform issues .", "Question : I m trying to get FreeGLUT working . For a reason I don t get no binaries are distributed . Where can I download the .lib and the .dll files Comment : It s a lot easier for library developers to provide the sources and allow you to compile it than to provide precompiled binaries for every OS compiler in existence . That being said compiling it is fairly trivial . So perhaps tell us what it is you re using which compiler . OS is Windows it seems and where you re stuck . Comment : I m using Visual Studio 2012 and Windows . I tried compiling it but there were include errors it think because of the gl .. . . Also types like GLint are used which can t be found . Comment : Please update the question to include the exact version of FreeGLUT you re compiling and the exact errors you get . I don t have VS2012 here at the moment but I hardly think it s a version specific issue . .. . Answer : You can download them at FreeGLut download page http : freeglut.sourceforge.net index.php download in section Prepackaged Releases .. . .. . Direct Link http : www.transmissionzero.co.uk software freeglut-devel .. . .. . Please note it s community-maintained . Library authors only do provide source code . Citation from the page itself : If you have problems with these packages please contact their maintainers - we of the freeglut team probably can t help . .. . .. . If you provide the compilation linking logs from your attempts with source distribution we could find a reason for it not working as well . Comment : Ha can t believe I overlooked that . +1 Though building it yourself should really be no problem at all either . Comment : Thank you That s exactly what I needed : Comment : The direct link is dead.. .", "Question : I am working on a Mac I ve got FreeGlut compiled and installed but I can t seem to get the OpenGL 3.2 context with it . However I can get it without any problem while using GLFW . So in GLFW this code works perfectly fine : .. . .. . But with FreeGlut this code fails on glutCreateWindow : .. . .. . The error it fails with is : .. . .. . I am running on MacOS X 10.8 Mountain Lion with Intel HD4000 graphics having installed XQuartz as my X11 server and having compiled and installed FreeGlut 2.8 from sources . Does anyone know what might be the issue Comment : Having the exact problem but I m using FreeGlut as included in XQuartz opt x11 lib opt x11 include . Did you solve the issue Comment : Same issue here - were you able to solve the problem Comment : Did anyone of you solved the problem I m having the same issue . I m using freeGlut included in XQuartz Comment : The best is to just stick with glfw i got stuck with the same issue on OS X 10.10 . Code compiles fine but then it crashes when running . Have XQuartz setup . Tried with no luck to get version 3.2 .. . Answer : In 10.8 and 10.7 GL 3.2 is available if you explicitly call for it when setting up the GL context . Apple calls this the Core Profile to distinguish from the Legacy Profile which is GL 2.1 . I ran into this issue with Wine on OSX it does not support OpenGL 3.2 . My understanding is that the X11 server either Apple X11 or XQuartz currently does not implement the 3.2 support nor is there a switch to flip somewhere to enable it . It could be for compatibility concerns since 3.2 profile will break some existing GL applications https : developer.apple.com library mac documentation graphicsimaging conceptual OpenGL-MacProgGuide UpdatinganApplicationtoSupportOpenGL3 UpdatinganApplicationtoSupportOpenGL3.html apple ref doc uid TP40001987-CH3-SW1 .. . .. . This post suggests http : stackoverflow.com questions 11259328 glut-on-os-x-with-opengl-3-2-core-profile using GLFW or maybe Apple s GLUT.framework if there is still such a thing .. . .. . This page http : www.geeks3d.com 20121109 overview-of-opengl-support-on-os-x explains the GL stack on OSX and confirms the 2.1 issue with GLX . Comment : I am sorry but don t see how this relates to my question . As I have shown - it DOES work with GLFW which runs on top of XQuartz on my system so it does definitely support 3.2 contexts . Comment : I am sorry but don t see how this relates to my question . As I have said - OpenGL 3.2 DOES work with GLFW which runs on top of XQuartz on my system so it does definitely support 3.2 contexts . My only issue is that I would like to use freeglut purely because it s more convenient . But if that s not possible then I will develop using GLFW . But please don t tell me it s impossible to get 3.2 context because I ve already got one . Comment : glfw also has a Cocoa and Carbon port http : sourceforge.net p glfw svn 1617 tree trunk lib are you certain it is running on top of XQuartz", "Question : I m doing some tutorials on OpenGL http : www.arcsynthesis.org gltut Basics Tutorial 2001.html that use FreeGLUT http : freeglut.sourceforge.net . Apparently http : lookass.ch id 4area artart 216 area art art 221 this is how you build and install it on the mac : .. . .. . Unfortunately this on its own gives me an error when I do the make command : Undefined symbols for architecture x86-64 .. . .. . After doing abit of work I ve found that an improvement on the first line is : .. . .. . Unfortunately when I do the make command I m still getting an error : .. . .. . This has been documented on the net before http : www.bytecompile.org wiki doku.php installing-freeglut but the solution isn t really all that helpful in this instance . I ve also tried swapping it for the GLUT.framwork that comes with OS X but the examples are using FreeGLUT-specific functions . Comment : Ok I ve got a little further in this . Using CPPFLAGS -I usr X11R6 include -L usr X11R6 lib . configure --prefix PWD . . gets rid of the Undefined symbols error . But now I get ld : library not found for -lGL collect2 : ld returned 1 exit status make 2 : libglut.la Error 1 make 1 : all-recursive Error 1 make : all Error 2 Comment : Maybe you should also check with LDFLAGS -L usr X11R6 lib is needed . Comment : Ooh thanks . Ok so I used CPPFLAGS -I usr X11R6 include -L usr X11R6 lib LDFLAGS -L usr X11R6 lib . configure --prefix PWD . . and I got rid of the previous error . Now I get a whole load of errors along the lines of smooth opengl3.c : 101 : error : redefinition of typedef PFNGLGENBUFFERSPROC usr X11R6 include GL glext.h : 5080 : error : previous declaration of PFNGLGENBUFFERSPROC was here Comment : Would you update your question accordingly so that I can start an answer Excessive comments of conversations are not recommended in this site . Comment : Did you get it to work .. . Answer : It was suggested http : lists.macosforge.org pipermail xquartz-dev 2009-April 002304.html on Xquartz s mail list that the freeglut demo is wrong to declare those PFN PROC twice . So by simply commenting out those double-definition from smooth opengl3.c the free glut would pass the compilation phase . However from my experience it would not run and give some error about the GLSL . It was also suggested that GLUT framework should be used http : old.nabble.com Re 3a-FreeGlut-and-Mac-OSX-p15355299.html on Mac OS X . Comment : Unfortunately OSX s GLUT framework doesn t support OpenGL 3.2 ." ] }
[ "yes-answer-long", "yes-answer-short" ]
glut
UNK_RELATION
alsa@linux@34
alsa -- alsa stands for advanced @placeholder sound architecture and is a kernel component that supports sound in linux systems .
{ "confidence": [ 55.79208755493164, 54.83887481689453, 53.35926055908203, 47.39603805541992, 46.67584991455078, 46.16291809082031, 46.15142059326172, 45.84158706665039, 45.830535888671875, 44.60932922363281, 42.34752655029297, 41.800865173339844, 41.800865173339844, 41.800865173339844, 41.800865173339844, 41.4879264831543, 41.380741119384766, 41.208946228027344, 40.76240921020508, 40.76240921020508, 40.76240921020508, 40.76240921020508, 40.27740478515625, 40.27740478515625, 40.27740478515625, 40.20058822631836, 40.1135368347168, 39.601318359375, 39.238948822021484, 39.238948822021484, 39.238948822021484, 38.634246826171875, 38.634246826171875, 38.634246826171875, 38.634246826171875, 38.43451690673828, 37.99433135986328, 37.992820739746094, 37.992820739746094, 37.80282974243164, 37.65586853027344, 37.595794677734375, 37.595794677734375, 37.55445861816406, 37.53232955932617, 37.53232955932617, 36.752742767333984, 36.716590881347656, 36.702484130859375, 36.61741256713867, 36.61741256713867, 36.42748260498047, 36.42748260498047, 36.42748260498047, 36.35117721557617, 35.69459915161133, 35.67813491821289, 35.45786666870117, 35.3890266418457, 35.3890266418457, 35.3890266418457, 35.3890266418457, 35.3890266418457, 35.3890266418457, 35.3890266418457, 35.21332550048828, 35.037208557128906, 35.037208557128906, 35.037208557128906, 34.22947311401367, 34.1444091796875, 34.1444091796875, 34.1444091796875, 34.09503173828125, 33.99875259399414, 33.438289642333984, 33.438289642333984, 33.438289642333984, 33.438289642333984, 33.438289642333984, 33.438289642333984, 33.19367980957031, 32.82378005981445, 32.79829406738281, 32.75413513183594, 32.75413513183594, 32.39983367919922, 32.39983367919922, 32.39983367919922, 32.39983367919922, 32.39983367919922, 32.39983367919922, 32.39983367919922, 32.39983367919922, 32.39983367919922, 32.39983367919922, 32.39983367919922, 32.36363220214844, 32.34364700317383, 32.15522384643555 ], "content": [ "I am trying to capture the sound from sound card by ALSA in linux systems .", "Some documentation can be found at Documentation sound alsa soc http : git.kernel.org cgit linux-kernel git stable linux-stable.git tree Documentation sound alsa soc h linux-3.0.y .", "I was fiddling with alsa-utils to record sound .", "Why does this simple ALSA application not produce the correct sound", "And PlayRec uses PortAudio which then uses Alsa on Linux systems .", "alsa-project.org alsa-doc alsa-lib pcm external plugins.html http : www.alsa-project.org alsa-doc alsa-lib pcm external plugins.html", "You can t access the low-level sound APIs ALSA etc .", "Just checked that since ALSA has a kernel-level component .", "Referring this documentation http : www.alsa-project.org alsa-doc alsa-lib pcm plugins.html I trying to fix a strange issue with my sound card .", "I m begining to learn linux and ALSA and I was wondering if there is a way to store the sound I record from a microphone a directly to the buffer .", "Both generally work fine under ALSA on Linux .", "To get an idea of how these relate to one another see these diagrams https : www.kernel.org doc Documentation sound alsa soc DPCM.txt .", "First I have to say : I am completely noob with Sound streams Pulse ALSA .", "I can manage sound volume with alsa commands but I d like to assign them to those keys .", "I ve run some experiments using the ALSA API using snd pcm readi to capture sound then immediately using snd pcm writei to play it back .", "seems to amplify as well see alsa-project.org alsa-doc alsa-lib pcm plugins.html http : www.alsa-project.org alsa-doc alsa-lib pcm plugins.html for some details", "The Alsa docs http : www.alsa-project.org alsa-doc alsa-lib pcm.html say : .. . .. . -EPIPE .. . .. . This error means xrun underrun for playback or overrun for capture .", "I am trying to use the alsa library to this purpose http : www.alsa-project.org alsa-doc alsa-lib index.html .", "The question you pose is basically : Can there be more then 32 sound cards in the system controlled by ALSA", "It obviously seems that while your USB controllers know all sound cards you attached the ALSA system does not .", "Input via USB audio interface output via onboard sound callback mechanism on PortAudio ALSA backend .", "It is only possible to run one of those on top of one alsa device sound card .", "Are you using the ALSA API", "This is possible with the ALSA API .", "alsa or something else", "I think it s not possible because of ALSA Advanced Linux Sound Architecture is just kernel component that provide device drivers for sound card.But i don t know if some user-space API s and library s like alsa-ustils can do that I advice may is better to check Sound-Player applications VLC etc. . log", "The base system would probably be the alsa interface of the linux-kernel which can be accessed by an userland application directly or through a sound server which is also an userland application .", "On Linux every audio library eventually ends up using ALSA .", "Also ALSA contains bugs .", "On startup ALSA driver is mentioned .", "@JonathanHenson : include alsa asoundlib.h .", "The Alsa library is v1.0.26 and driver is v1.0.24 .", "I have the alsa drivers installed .", "Or even Alsa pcm mmap tutorial", "Did it refer to the level at this ALSA module", "ALSA lib dlmisc.c : 252 : snd1 dlobj cache get Cannot open shared library usr lib x86 64-linux-gnu alsa-lib libasound module pcm myplug.so", "ALSA buffer overrun or underrun", "I am writing an application that uses alsa .", "I use the default device in my alsa program .", "Baresip supports multiple audio-drivers for example alsa module for Linux or opensles for Android NDK .", "The ALSA UCM is present in libalsa-intf and the AudioHardware AudioPolicyManager ALSADevice code is present in audio-alsa .", "ALSA has several mixer APIs .", "I didn t see ALSA here .", "Here is a part of dump-gnash log : .. . .. . ALSA lib confmisc.c : 768 : parse card cannot find card 0 ALSA lib conf.c : 4241 : snd config evaluate function snd func card driver returned error : No such file or directory ALSA lib confmisc.c : 392 : snd func concat error evaluating strings ALSA lib conf.c : 4241 : snd config evaluate function snd func concat returned error : No such file or directory ALSA lib confmisc.c : 1251 : snd func refer error evaluating name ALSA lib conf.c : 4241 : snd config evaluate function snd func refer returned error : No such file or directory ALSA lib conf.c : 4720 : snd config expand Evaluate error : No such file or directory ALSA lib pcm.c : 2217 : snd pcm open noupdate Unknown PCM default Killed .. . .. . I readed about ALSA and learned is t a sound card handler tool .", "Oddly enough the ALSA sample program test pcm.c http : www.alsa-project.org alsa-doc alsa-lib 2test 2pcm 8c-example.html makes a perfect wave .", "You need to use a sample format that is .. . .. . known to ALSA http : www.alsa-project.org alsa-doc alsa-lib group p c m.html gaa14b7f26877a812acbb39811364177f8 and .. . supported by the device .", "If ALSA support is built into the kernel you can build a custom kernel where you changed this option .", "However the ALSA literature does not imply that this is a limitation of the operating-system or of ALSA itself and as a matter of fact Alsa seems to allow you to specify a 24 bit PCM device .", "Input via USB audio interface output via onboard sound blocking I O on PortAudio with 1024 samples buffer size ALSA backend .", "Trying to learn the ALSA audio layers to eventually write an ALSA device-driver for the Raspberry Pi platform .", "So I commented this process from the files etc init alsa-restore.conf etc init alsa-store.conf .", "There may be different ALSA controls and additional steps involved .", "Also would the ALSA snd pcm mmap.. . functions improve latency", "recording is done through ALSA or CAF on rooted phones .", "Does it really need to be at the ALSA level", "I have source code alsa-utils-1.0.27.2 from http : www.alsa-project.org main index.php Main Page I need for build it to my android : .. . .. . user@vbUbuntu1204 : Android-alsa alsa-utils cat jni Android.mk .. . .. . user@vbUbuntu1204 : Android-alsa alsa-utils cat jni Application.mk .. . .. . user@vbUbuntu1204 : Android-alsa alsa-utils . . . . android-ndk-r9d ndk-build .. . .. . home user android-ndk-r9d build core build-all.mk : 89 : Android NDK : WARNING : There are no modules to build in this project", "http : www.alsa-project.org alsa-doc alsa-lib group mixer.html gae0cfb6b50ec2493281107b0649f87cb8 .. . .. . Check out amixer.c https : fossies.org dox alsa-utils-1.0.29 amixer 8c source.html for an example of handling events :", "stackoverflow.com questions 23056532 http : stackoverflow.com questions 23056532 how-to-record-sound-in-buffer-using-alsa could you please take a look at this thread here", "did you try the Soft Volume alsa plugin", "Nothing else shows up not even alsa .", "i am totally new to pulse audio and alsa .", "the situation is this : .. . .. . 1 . i have mpd compiled for alsa .", "I am trying to get knowledge on alsa .", "Currently I m using Ubuntu and alsa as audio driver .", "You will need build a monitor ALSA device .", "Or even some better documentation than this : http : www.alsa-project.org alsa-doc alsa-lib mixer.html and this http : www.alsa-project.org alsa-doc alsa-lib group mixer.html .. . Bonus question : Is there some approach to find specific fader by any other way than comparing by string", "I do not recommend you clean up the alsa.conf because it s from ALSA originally it may be overwritten when you update alsa-lib .", "From the ALSA config file on the phone it seems the in call voice playback is done through dev snd pcmC0D0p or at least comply with the ALSA paradigm .", "Here https : cphacker0901.wordpress.com 1900 09 25 build-alsa-with-androids-tool-chain s how to build ALSA lib using the Android s toolchain .", "The audio process thread will then call an actual ALSA kernel driver which will output pcm to HW .", "I m learning to use ALSA on a Raspberry Pi 2 .", "I dont think that ALSA is supported by Android .", "can choose to use ALSA OSS or a custom driver .", "Between each try ALSA has been tested if it s still responsive sometimes it got completely locked up so that no application could output sound any longer and rebooted the system in case ALSA got locked up then continued the testing .", "Something like this can be done with the external filter plugin SDK http : www.alsa-project.org alsa-doc alsa-lib group p c m ext plug.html which is basically undocumented .", "Then there is a question : how can i set up ALSA on VDS and make it work", "Tell your program to use the ALSA device named null .", "Does anyone have experience using OpenSL ES ALSA etc .", "Finally it lists the ALSA PCM playback capture devices to use in this use-case .", "On some research i figured out that this could be achieved by using ALSA .", "Alsa has support for LADSPA plugins there should be one featuring a fixed delay .", "And if I am not is there some inherent limitation of ALSA or Matlab which is restricting me to only 16-bit data from sound capture devices even when using 3rd party program to gather that data .", "None of the components you are using tools libraries sound servers drivers kernel logs the time when a sound is played .", "We do not want to open the device as we would like to know the status of the device using its name .. . .. . Alsa API is here http : www.alsa-project.org alsa-doc alsa-lib group p c m.html .. . .. . How can we check if a resource device is busy without opening it and using its name", "You should install alsa drivers from alsa launchpad. . be sure to install the latest version and that too of raring as you are using 13.04 .", "I understand that if the hardware decoders are not present then we need to send pcm samples to alsa but is it solely because of hardware limitation or is there any requirement from ALSA as well", "Note that the USB interface works fine with normal applications under ALSA .", "With ALSA you could poll proc asound card pcm sub status .", "I m still facing problems using ALSA capturing on an embedded system .", "I can t tell whether ALSA is installed correctly on the system .", "How can I test whether ALSA and or devices are installed correctly", "I m currently learning to develop using alsa API libasound .", "From where alsa get that control value as false after reboot .", "There is no file var lib alsa asound.state because I removed it .", "I think there might be one that includes less maybe include alsa mixer.h .", "At this point I m starting to wonder if it s even possible with the alsa lib .", "I believe it s default is ALSA but it could be set to PulseAudio .", "Here are the contents of kernel samsung jf sound : http : pastebin.com 7vK8THcZ .", "No sound goes out the sound card .", "There s sample code in paex saw.c that outputs a sawtooth wave using callback mechanism but has no input and this works on the onboard sound but also outputs ALSA warnings about no channel map but causes lots of underruns and distortion on the USB interface ." ] }
{ "confidence": [ 73.57160949707031, 63.05315399169922, 60.95050811767578, 58.63058090209961, 58.25261306762695, 56.940948486328125, 56.906620025634766, 56.1672477722168, 56.044254302978516, 55.375396728515625, 54.875213623046875, 54.64353561401367, 54.0865364074707, 53.6481819152832, 53.56714630126953, 53.5455436706543, 53.25460433959961, 52.341796875, 52.024410247802734, 51.75548553466797 ], "content": [ "Question : I would like to use C in order to get the last time the soundboard was playing a file . Is there a way I could do that Comment : Why do you need to know that Comment : I want to make an application which warns me when I spent too much time without listening to music . And I need to be able to tell when a sound is playing . .. . Answer : I think it s not possible because of ALSA Advanced Linux Sound Architecture is just kernel component that provide device drivers for sound card.But i don t know if some user-space API s and library s like alsa-ustils can do that I advice may is better to check Sound-Player applications VLC etc. . log", "Question : I m working on an educative multiseat project where we need to connect 36 keyboards and 36 USB sound cards to a single computer . We re running Ubuntu Linux 12.04 with the 3.6.3-030603-generic kernel . So far we ve managed to get the input from the 36 keyboards and recognized the 36 sound cards without getting a kernel panic which happened before updating the kernel . We know the 36 sound cards have been recognized because lsusb grep Audio -c outputs 36 . However aplay -l lists 32 playback devices in total including the internal sound card . Also alsamixer -c 32 says invalid card index : 32 works just from 0 through 31 32 in total too . So my question is how can I access the other sound cards if they re not even listed with these commands I m writing an application in python and there are some libraries to choose from but I m afraid they ll also be limited to 32 devices in total because of this . Any guidance will be useful . Thanks . Comment : Are you afraid or have you tested it Comment : I tried pyaudio and get device count lists 32 in total including some aliases not sure if the right word such as default . So I can access even less devices . Comment : How did you connect all these devices to the PC Won t this be too much for the bus bandwidth Can you actually use the current 31 devices all at the same time Comment : For the application we re trying out they don t need to be all playing simultaneously but all of them have to play sound at some point . They re connected using 2 root hubs connected to another level of hubs with 3 sound cards and 3 keyboards each . We ve yet got to find out if it works this way or find another solution such as adding another root hub and redistributing them or adding a queue or something . I ll read about the bus bandwidth thanks .. . Answer : The question you pose is basically : Can there be more then 32 sound cards in the system controlled by ALSA It obviously seems that while your USB controllers know all sound cards you attached the ALSA system does not . Let s get into the kernel sources to check what s going on here . In sound core sound.c you will find more information about the issue of maximum sound cards : .. . .. . From the code and its comments I read two things : .. . .. . 1 . The variable cards limit is a module parameter . I assume that on your installation this parameter is set to 32 . If ALSA support is built into the kernel you can build a custom kernel where you changed this option . If ALSA support is not built-in but loaded as a module you can set this parameter during module load . For this you either change your system config man modprobe.d or unload the module then reload it with the option man modprobe . 2 . The limit is described to only limit the number of automatically loaded soundcards . To overcome this limit it may suffice to manually load the module responsible for your soundcards . There is no limit set in the kernel for manually added soundcards . Source : Kernel 2.8 Git http : git.kernel.org p linux-kernel git torvalds linux.git a blob f sound core sound.c h 70ccdab7415320e3b20a2aba6c5837f42962f758 hb HEAD Comment : The auto-loading mechanism affected by cards limit is not used for USB sound cards . Manually loading snd-usb-audio cannot change anything because it s the same driver for all 36 devices .", "Question : Greetings to everyone . I m trying to convert SWF to MP4 using dump-gnash and ffmpeg . But the problem is the dump-gnash won t create raw video without ALSA set up properly . Here is a part of dump-gnash log : .. . .. . ALSA lib confmisc.c : 768 : parse card cannot find card 0 ALSA lib conf.c : 4241 : snd config evaluate function snd func card driver returned error : No such file or directory ALSA lib confmisc.c : 392 : snd func concat error evaluating strings ALSA lib conf.c : 4241 : snd config evaluate function snd func concat returned error : No such file or directory ALSA lib confmisc.c : 1251 : snd func refer error evaluating name ALSA lib conf.c : 4241 : snd config evaluate function snd func refer returned error : No such file or directory ALSA lib conf.c : 4720 : snd config expand Evaluate error : No such file or directory ALSA lib pcm.c : 2217 : snd pcm open noupdate Unknown PCM default Killed .. . .. . I readed about ALSA and learned is t a sound card handler tool . But I don t have any sound cards on my VDS . Then there is a question : how can i set up ALSA on VDS and make it work Comment : This question appears to be off-topic because it is about Unix Linux unix.stackexchange.com .. . Answer : Tell your program to use the ALSA device named null . If that does not work try loading the snd-dummy driver . Comment : Any advice how to point null ALSA device to dump-gnash would be nice :", "Question : I want to capture audio on Linux with low-latency in a program I m writing . I ve run some experiments using the ALSA API using snd pcm readi to capture sound then immediately using snd pcm writei to play it back . I ve tried playing with the number of frames captured and the buffer size but I don t seem to be able to get the latency down to less than a second or so . Am I better off using PulseAudio or JACK Can those be used to play the captured audio Comment : Also would the ALSA snd pcm mmap.. . functions improve latency .. . Answer : I believe you should at first ensure that you are running a Linux kernel which actually allows you to achieve low typical latency . There are several kernel compile-time configuration options which you might look into : .. . .. . CONFIG HZ 1000 .. . CONFIG IRQ FORCED THREADING .. . CONFIG PREEMPT .. . CONFIG PREEMPT RT FULL available only with RT patch .. . .. . Apart from that there are more things you can do in order to optimize your audio latency in Linux . Some starting reference points can be found there : .. . .. . http : wiki.linuxaudio.org wiki real-time info", "Question : I am working with a BeagleBoard running Linux 3.0.63 and I am trying to get the I2C and I2S interfaces to work with the end goal of playing a .wav file on the beagleboard and having the I2C and I2S set up correctly . I am currently stuck on setting the BeagleBoard to be the master clock for the I2S line . Or the slave clock could also work . In any case I have no idea where the I2S stuff is set in the kernel code . I assumed in arch arm mach-omap3 board-omap3beagle.c but I cannot find it . Btw is there hidden documentation on how to do this that I do not know about .. . Answer : Have a look at files sound soc omap omap3beagle.c http : git.kernel.org cgit linux-kernel git stable linux-stable.git tree sound soc omap omap3beagle.c h linux-3.0.y n36 and include sound soc-dai.h http : git.kernel.org cgit linux-kernel git stable linux-stable.git tree include sound soc-dai.h h linux-3.0.y n66 : .. . .. . First one has a function : .. . .. . And the second one has macro-definitions : .. . .. . So using them you can adjust I2S clocking for Stereo I2S mode as you need . There are a lot of other options but I guess these ones are the exactly what you need . Some documentation can be found at Documentation sound alsa soc http : git.kernel.org cgit linux-kernel git stable linux-stable.git tree Documentation sound alsa soc h linux-3.0.y . Comment : When you are in the omap3beagle.c and see SND SOC DAIFMT CBM CFM how do you locate where this macro is defined my current method is a grep that takes 9 minutes.. . haha I am using Eclipse but F3 does not take me to the macro definition like it would take me to a function definition . edit : what you provided was helpful but I m asking what if you hadn t told me where to find SND SOC DAIFMT CBM CFM . For instance where is SND SOC DAIFMT I2S Comment : @SwimBikeRun I use ctags utags and generate tags for all the necessary folders . Then use vim for this tag file and just steps through any funcion macro etc . For instance SND SOC DAIFMT I2S is in the soc-dai.h at line 27 in my kernel . Comment : @SwimBikeRun Also you can just use lxr.free-electrons.com http : lxr.free-electrons.com or just google .", "Question : I m working on an educative multiseat project where we need to connect 36 keyboards and 36 USB sound cards to a single computer . We re running Ubuntu Linux 12.04 with the 3.6.3-030603-generic kernel . So far we ve managed to get the input from the 36 keyboards and recognized the 36 sound cards without getting a kernel panic which happened before updating the kernel . We know the 36 sound cards have been recognized because lsusb grep Audio -c outputs 36 . However aplay -l lists 32 playback devices in total including the internal sound card . Also alsamixer -c 32 says invalid card index : 32 works just from 0 through 31 32 in total too . So my question is how can I access the other sound cards if they re not even listed with these commands I m writing an application in python and there are some libraries to choose from but I m afraid they ll also be limited to 32 devices in total because of this . Any guidance will be useful . Thanks . Comment : Are you afraid or have you tested it Comment : I tried pyaudio and get device count lists 32 in total including some aliases not sure if the right word such as default . So I can access even less devices . Comment : How did you connect all these devices to the PC Won t this be too much for the bus bandwidth Can you actually use the current 31 devices all at the same time Comment : For the application we re trying out they don t need to be all playing simultaneously but all of them have to play sound at some point . They re connected using 2 root hubs connected to another level of hubs with 3 sound cards and 3 keyboards each . We ve yet got to find out if it works this way or find another solution such as adding another root hub and redistributing them or adding a queue or something . I ll read about the bus bandwidth thanks .. . Answer : The sound card limit is defined as the symbol SNDRV CARDS in include sound core.h . When I increased this seven years ago I did not go beyond 32 because the card index is used as a bit index for the variable snd cards lock in sound core init.c and I did not want to change more than necessary . If you make snd cards lock a 64-bit variable change all accesses to use a 64-bit type and adjust any other side effect that I might have forgotten about you should be able to get the kernel to have more ALSA cards . This limit also exists in the alsa-lib package you will have to change at least the check in snd ctl hw open in src control control hw.c . Comment : We ll be checking this out thanks a lot", "Question : null .. . Answer : First I have to say : I am completely noob with Sound streams Pulse ALSA . I have created a file .asoundrd . Referring this documentation http : www.alsa-project.org alsa-doc alsa-lib pcm plugins.html I trying to fix a strange issue with my sound card . I want to play with the rate buffer periods irq etc . But I get errors when i try to set some of them . This works .. . .. . When : aplay -D default2 some.wav - Then I hear the output with the issue .. . .. . This doen t work Note : I changing only the pcm not the controller .. . .. . Plugin hw http : www.alsa-project.org alsa-doc alsa-lib pcm plugins.html pcm plugins hw documentation says this fields are available . But I missing something . Also when I try to convert sample rate : .. . .. . Slave definition docs http : pcm plugins slave says that buffer time is valid field . Off-topic .. . .. . I get stupid Biostar MB with VT8237 chipset Bios says it is azaila HDA controller the ubuntu says it s snd hda intel with realtek codec also the device is VT82xx . I got creepy sound with very bad quality and crackling . The sound reach the speakers only if the volume is really high volume current amplitude or current output db level 80 + . Normal and lower volume no sound . The problem existing in Windows 7 too . The MB do not support Win7 . .. . Hint me if you know something .", "Question : I have a very unique issue and I have absolutely no idea what is going on . I got a new computer using Debian that my dad made using spare parts . It worked just fine until about a month after I got it when I decided I should start adding audio to the game I m programming . That s when I realized that my audio wasn t working . I asked my dad for help . At first he refused saying that I would learn more by doing it myself . But eventually he agreed to help . He did a bunch of stuff in the terminal and he then opened a program called qjackctl . He started the JACK audio server waited a bit then stopped it . Music started playing the moment he stopped it . He didn t explain what he did and said he was just checking if it was even possible to get the audio working . It worked until I rebooted the computer . I then tried to replicate what he did and I opened qjackctl started it then stopped it . My audio started working again . I kept doing this for the next week or two and one day it stopped working . I have no idea why . All I did each of those days were just Python Pygame programming . I kept experimenting with qjackctl and the program output said something about killing pulseaudio can t remember exactly what it said . So I opened top type top in terminal killed pulseaudio started and stopped the program and my audio started working again . I kept doing that for about a week every time I rebooted then it magically stopped working again . Does anyone know how to fix this and preferably make it permanent I ve spent quite a while researching how to fix this but I haven t found anything so I decided to see if anybody else could figure it out . EDIT : I just looked in the KDE settings and I noticed that the only item in the multimedia audio section is Pulseaudio . Nothing else shows up not even alsa . I really need this information any help is greatly appreciated . .. . Answer : on debian gnu linux youve got a lot of different ways to produce audio output . The base system would probably be the alsa interface of the linux-kernel which can be accessed by an userland application directly or through a sound server which is also an userland application . The two sound server softwares i know are pulseaudio and jackd . Both are different implementations with different design concepts . jackd is meant to be more in the professional audio studio area while pulseaudio is meant to give a easy sound system for desktop systems . It is only possible to run one of those on top of one alsa device sound card . And if you would like to access your alsa device directly none of that should use it . So first of all i would check what interface pulseaudio jack alsa is supported by the application that you want to use to generate audio output . After that you should get sure that the appropriated components are running . For example you can install mplayer which is capable of using all of that methodes . There you can use the option -ao to select the interface you want . Here you see a sample . Your description sounds like if your application is using plain alsa only and is inhibited by a running pulseaudio instance . Even tho pulseaudio has got a simulated alsa through pulse interface but that is often not working correctly . So if that the case i would suggest to uninstall pulseaudio by running .. . .. . as root . You can find many information about alsa pulseaudio and jack using the Internet search-engine off your choice . The arch linux wiki has a lot of good hints for example : .. . .. . https : wiki.archlinux.org index.php PulseAudio .. . .. . https : wiki.archlinux.org index.php JACK Audio Connection Kit .. . .. . https : wiki.archlinux.org index.php Advanced Linux Sound Architecture .. . .. . except packaging it can be applied to debian to .. . .. . the rest is figuring it out by trail and error.. . .. . .. . i wish you much success Comment : Sorry I forgot to mention my computer at home has no internet access so I can t use anything that s not already on there . My parents don t trust me enough to have internet access but my dad did install almost the entire Debian archive hundreds of gigabytes so I probably do have mplayer already . I ll check when I get home I m in school right now . Thank you Comment : Before I remove pulseaudio is it possible that it could disable any other programs I have on there Because of my lack of internet access if I need it for some reason I won t be able to get it back .", "Question : I am trying to capture the sound from sound card by ALSA in linux systems . Its read the data from the vector in PCM format . I need a way to find out the right way to capturing and save it to in the file and play to check the recevied data is correct or not . Comment : Did you study the source code of free software similar to your goals probably some mixer software Comment : Its reading the data by interleaved method left and rigth consecutively . Comment : i need a way to parse that data and save Comment : gist.github.com albanpeignier 104902 https : gist.github.com albanpeignier 104902 I am using the code from the above the link for capturing the audio data from the vector and store bytes in the file i want to play that file and check data parsing correct or not . using the Audacity for rading as raw data but i am not hearing any valuable audio . .. . Answer : To capture audio to a file with alsa you can use arecord http : linux.die.net man 1 arecord . By using this you can simply capture input audio to a file . Or you can write your own application which read PCM data . You can use snd pcm readi http : alsa-lib.sourcearchive.com documentation 1.0.15 group PCM ga4c2c7bd26cf221268d59dc3bbeb9c048.html API for this purpose . Comment : Yes i have used this API and reading data in the buffer . i want to save the buffer as audio file and want to play . when i tried its played as mute state not hearing any sound from the file . Comment : i need a way to save the file in the right format and play . Comment : immanuel writing to file is not important.. . u can use normal file write for that purpose . But playing is important. . How u played PCM data . Also make sure that input data is not mute. . Comment : I wrote a file and opened in the default format . Its opened in the adobe photo shop and its opened as stereo and set the other thing when its start to play its playing but getting any sound . Comment : How can we play pcm data", "Question : We have a Linux device which has a speaker and MIC devices . These devices are shared among different modules - example a VOIP call can use speaker a hazard Warning system can use speaker a Voice prompt can use a speaker etc : .. . .. . There seems to be a function in ALSA which uses pcm to provide the status . int snd pcm status snd pcm t pcm snd pcm status t status .. . .. . However the pcm is returned by snd pcm open . We do not want to open the device as we would like to know the status of the device using its name .. . .. . Alsa API is here http : www.alsa-project.org alsa-doc alsa-lib group p c m.html .. . .. . How can we check if a resource device is busy without opening it and using its name .. . Answer : I tried your method .. . .. . more proc asound card0 pcm0c sub0 status But it shows closed all the time even when sound is being played or not played . I tried playing audio in one terminal and try looking for status in another but status is always closed even after I stop playing audio .. . .. . Can you please elaborate Thanks", "Question : I m having a hard time figuring out how to make a Linux PCM playback device which entirely works in user space . When the application calls snd pcm open snd pcm readi writei I want does calls to end up in a user space driver and the pcm data to be handled in a thread created when the user space driver was initialized . The audio process thread will then call an actual ALSA kernel driver which will output pcm to HW . This is basically what I want to achive : .. . .. . Application - ALSA pcmC1D0p - Audio process thread user space - ALSA pcmC0D0p - HW .. . .. . I have looked a little bit at plugins but not sure it that is the correct way to do it Also not sure how to actually start my plugin I have compiled a .so file not not sure where to place it or how what calls it Any pointers would be greatly appreciated . .. . Answer : Something like this can be done with the external filter plugin SDK http : www.alsa-project.org alsa-doc alsa-lib group p c m ext plug.html which is basically undocumented . Comment : Yes so that s i basically what I have done . I m able to compile my plugin which calls snd pcm ioplug create . What I don t understand is where should I place the .so file There was a reference to place it in usr lib alsa-lib as I didn t have a folder called alsa-lib I created one and placed my .so file there but then what How does that make a new device appear in dev snd so an application can use it Comment : dev snd contains kernel devices . And ioplug is not extplug . Comment : I chose ioplug because it sounded more like what I was after a user space driver : The I O-type plugin is a PCM plugin to work as the input or output terminal point i.e . as a user-space PCM driver . So if the will not show up in dev snd how is an application suppose to use it When an application calls snd pcm open how does it end up in my plugin alsa-project.org alsa-doc alsa-lib pcm external plugins.html http : www.alsa-project.org alsa-doc alsa-lib pcm external plugins.html Comment : See some existing plugin using extplug e.g . speexdsp upmix vdownmix in the alsa-plugins package . Comment : I had a look at it and I think I m on the right path . But for some reason I don t understand ALSA can t open my shared library I have placed it in the alsa-lib folder where libasound module pcm speex.so is also located but after i have changed in .asoundrc to use my plugin and run aplay ALSA complains ALSA lib dlmisc.c : 252 : snd1 dlobj cache get Cannot open shared library usr lib x86 64-linux-gnu alsa-lib libasound module pcm myplug.so", "Question : I have a rather different question . So I m using Matlab on a Linux Gentoo machine . I got a few Asus Xonar STX soundcards and I m trying to use them as sensitive audio frequency analyzer using the PlayRec http : www.playrec.co.uk non blocking audio IO package . Now I know that Matlab will say if you try to use the audiorecorder function and specify 24 bits in linux it will tell you that 24bit is only supported in Windows . However the ALSA literature does not imply that this is a limitation of the operating-system or of ALSA itself and as a matter of fact Alsa seems to allow you to specify a 24 bit PCM device . And PlayRec uses PortAudio which then uses Alsa on Linux systems . Now this is all well and good and Playrec doesn t seem to have a means of specifying the bit depth just the sample rate . I have run many tests and know what the transfer-function of my soundcard is floating-point return-value to input Voltage conversion ratio and I know my peak voltage is 3V and my noise is around 100uV . This gives me 20 log10 3 100e-6 91dB . Which is closer to what I expect to see from 16 bits and not from 24 . My real question is this : Is there some way of verifying that I am in fact getting 24 bits in my captured signal And if I am not is there some inherent limitation of ALSA or Matlab which is restricting me to only 16-bit data from sound capture devices even when using 3rd party program to gather that data . .. . Answer : If you can store that signal as a wav file run a file command on the wav from the command-line in linux . Something like : .. . file x.wav will give you sampling rate and bits that the file was encoded at . The output is usually something like : 16-bit 16000Hz etc . Comment : Well I like how you are thinking the only problem is that by the time its read into Matlab the signal becomes 2 channels of single precision floating-point numbers . So writing it to a wav file using wavwrite or some other function seems like it will then simply convert the file to the bit depth and sampling rate you specify it at rather than retain the characteristics it had when it first came out of the A D . That is why I tied doing my own S N computation since the Xonar STX SHOULD have 118dB of dynamic range which they prove in the manual with audio precision and I m getting 91dB .", "Question : null .. . Answer : I am working on an api for conversion from text-to-speech in native languages .I am trying to implement the same on a VPS server . As a vps server seldom have any sounds cards and I need to have a virtual sound card for task . On some research i figured out that this could be achieved by using ALSA . The question here I want to ask is that if I try to compile kernel module on my VPS ubuntu-12.10 32bit and install that module in my kernel would node become unstable and crash I have not tried compiling as this could cause a lot of issues loss of data .. . .. . Any help would be appreciated . Thanks Comment : What do you mean with virtual sound card Should that card ignore the playback data or write it to a file or allow to capture it Must it run in real-time", "Question : Trying to learn the ALSA audio layers to eventually write an ALSA device-driver for the Raspberry Pi platform . Starting simple I glued together various samples from the ALSA project site and other online sources to do the simplest thing : read a WAV file and play it on the default sound device . I cannot get this simple C sample to work . I am using libsndfile to do all the WAV file reading header decoding . I verified that the samples I read into the buffer are correct verified first 400K samples of what the program reads in against the sndfile-to-text application that dumps the sample values to a text file . So I know my buffer contains the right data the problem must be in the way I pass it to the ALSA APIs . When run it produces sound only in the right channel and distorted muddy - barely recognizable . BTW the aplay application plays the same WAV file perfectly and reports the file is 16-bit signed LE 44100Hz stereo which matches what my application reports as well . Running this on a Raspberry Pi . I stripped the C program down to the minimum here to conserve space but I verified correct return codes from all API calls . Why does this simple ALSA application not produce the correct sound .. . Answer : You must check the return values of all snd functions that could fail . The S16 LE format has two bytes per sample but int has four . Use short instead and sf readf short . Comment : My real code does check all return values I just shortened it for the purposes of posting . Changing from int to short fixed it the WAV plays correctly now.. . thanks", "Question : I m currently experimenting with real-time signal-processing so I went and tried out PortAudio from C . I have two audio interfaces on my computer onboard sound Intel HD Audio and a USB audio interface . Both generally work fine under ALSA on Linux . I also tried the USB audio interface under JACK on Linux and this also works perfectly . What I do : .. . .. . My code just initializes PortAudio opens and starts a stream one channel paInt32 sample format defaultLowInputLatency defaultLowOutputLatency though I tried changing to paFloat32 or defaultHighInputLatency defaultHighOutputLatency which didn t improve anything . On each invocation of the callback it copies sizeof int32 t frameCount bytes via memcpy from the input to the output buffer then returns paContinue . It does nothing else in the callback . No memory allocation no system calls nothing it could block on . It just outputs what it has read . The code is very simple still I can t get it running . Replacing the memcpy with a loop copying frameCount elements of type int32 t over from the input to the output buffer didn t change anything . What I ve tried : .. . .. . The following scenarios were tried out with PortAudio . 1 . Input and output via USB audio interface callback mechanism on PortAudio ALSA backend . 2 . Input and output via USB audio interface blocking I O on PortAudio with 1024 samples buffer size ALSA backend . 3 . Input via USB audio interface output via onboard sound callback mechanism on PortAudio ALSA backend . 4 . Input via USB audio interface output via onboard sound blocking I O on PortAudio with 1024 samples buffer size ALSA backend . 5 . Input and output via USB audio interface callback mechanism on PortAudio JACK backend . 6 . Input and output via USB audio interface blocking I O on PortAudio with 1024 samples buffer size JACK backend . The problems I encountered : .. . .. . The results were as follows . Numbers represent the scenarios described above . 1 . No output from device . 2 . Output from device unsteady interrupted . All the time lots of buffer underruns . 3 . No output from device . 4 . Output from device unrealiable . Sometimes it works sometimes it doesn t . Without changing anything just running the executable multiple times . When it works latency starts off low but increases over time and gets very noticeable . 5 . No output from device . 6 . No output from device . Between each try ALSA has been tested if it s still responsive sometimes it got completely locked up so that no application could output sound any longer and rebooted the system in case ALSA got locked up then continued the testing . More details that might be useful when tracking the problem down : .. . .. . In the scenarios where there is no output at all I get the following error messages when using ALSA as backend . I get the following error message when using JACK as backend . In addition no matter what method I use I always get these warnings . When using ALSA I also get one or two complaints about underruns . The PortAudio functions that I call Pa Initialize Pa OpenStream Pa StartStream Pa StopStream Pa CloseStream Pa Terminate in this order all return paNoError . The paex read-write wire.c blocking I O example that comes with PortAudio can usually access the device but also experiences lots of underruns like my test case 2 . In either case there s nothing interesting showing up in dmesg . Just checked that since ALSA has a kernel-level component . My question : .. . .. . Anyone knows what s the problem here and how I could fix it Or at least how I could narrow it down a bit more Comment : Please show your code . Comment : Here you go Thanks a lot for your time and efforts PortAudio callback-based : pastebin.com MrHpkXEA http : pastebin.com MrHpkXEA PortAudio blocking I O : pastebin.com MDdUZ8W3 http : pastebin.com MDdUZ8W3 RtAudio callback-based : pastebin.com YCQ0JpSR http : pastebin.com YCQ0JpSR .. . Answer : When you write only a single block of samples the playback device will run out of samples just when you re about to write the next block . You should fill up the playback device s buffer with zero samples before you start the read-write loop . Comment : Thanks Are you sure this is how it works with PortAudio It s a realtime API . The callback gives you an input and an output buffer and a number of frames and as far as I understand expects you to read EXACTLY this number of frames from the one and write this number of frames to the other . I expected the API to call me on each block then output what I ve written into the output buffer just after I return . So call on each block and 1 block delay as the block I process is always output in the next iteration . This is also how it s done in examples . I don t think there s a buffer involved . Comment : In theory the realtime API should take care of that . Do PortAudio s example programs work Comment : Like I said I tried the paex read-write wire.c example since like my application it does both input and output but it uses blocking I O . It doesn t drop out like mine but it underruns all the time and output is grossly distorted . There s sample code in paex saw.c that outputs a sawtooth wave using callback mechanism but has no input and this works on the onboard sound but also outputs ALSA warnings about no channel map but causes lots of underruns and distortion on the USB interface . Note that the USB interface works fine with normal applications under ALSA . Comment : If PA does not work in the first place there s nothing your program can do . Comment : So the library itself is broken Ain t that unlikely given that it s pretty common What should I do Try yet another library I just came from plain ALSA where I had severe latency problems so people told me to use a callback-based API . Also ALSA contains bugs . Already stumbled upon them but worked around . - I did some research and found that PortAudio seems to be pretty widely used and is designed for realtime processing which suits my needs . I d like to develop some audio processing algorithms yet all I m dealing with are broken APIs . : -", "Question : I need to send audio from a radio to a secondary system using an embedded-linux system . The secondary system needs to set up a communication channel which takes a few seconds . So if I don t want to lose the beginning of the audio I need a way to record the sound and play it back with a custom delay a few seconds maximum . It should be possible to start arecord to record the audio in a file in a tmpfs filesystem and when a communication is incoming start aplay . But in this case the beginning is still lost because the signal to record is coming too late . Is there a program on Linux which is recording sound continuously in a ring buffer in RAM and able to playback with a custom delay on demand If not what is the best library to code such a program on an embedded system alsa or something else Comment : On Linux every audio library eventually ends up using ALSA . However you can use any other library if it s easier to use . Comment : Is this question off-topic since it asks for a tool or library Comment : Alsa has support for LADSPA plugins there should be one featuring a fixed delay . Comment : Is it appropriate to code up a script to do the buffer and pipe stuff together like in buffer-me 5s out Such a script would be fairly trivial to write if perhaps in a naive way . Of course it would be more efficient to do it in the existing sink or source . .. . Answer : Here is a simple C program that will maintain a circular-buffer between pipe in and out . Use like in buffer program out . Error checking omitted . Robustness not guaranteed . Gives the general idea . Test script but actually since its circular-buffer the data your piping in needs to be such that its coherent taking just any chunk in the stream . Or just make the buffer bigger than the data : .. . .. . circular buffer.c :", "Question : I want to capture audio on Linux with low-latency in a program I m writing . I ve run some experiments using the ALSA API using snd pcm readi to capture sound then immediately using snd pcm writei to play it back . I ve tried playing with the number of frames captured and the buffer size but I don t seem to be able to get the latency down to less than a second or so . Am I better off using PulseAudio or JACK Can those be used to play the captured audio Comment : Also would the ALSA snd pcm mmap.. . functions improve latency .. . Answer : To reduce capture latency reduce the period size of the capture device . To reduce playback latency reduce the buffer size of the playback device . Jack can play the captured audio just connect the input ports to the output ports but you still have to configure its periods buffers . Also see Relation between period size of speaker and mic http : stackoverflow.com q 15835764 11654 and Recording from ALSA - understanding memory mapping http : stackoverflow.com q 14762103 11654 .", "Question : I used to work on Ubuntu 12.10 but then suddenly my speakers stopped working my headphones didn t used to work before and still they are not working i then upgraded to 13.04 in hope that it may solve my problem but it was not the case . I have read dozens of websites and suggestion and tried them out but none worked . As i open my sound configurations the only option available there is Play sound through Dummy output and i am unable to change that . Please help me out . P.S I have my ubuntu dual booted with windows-7 . And the speakers and headphones work fine on windows . .. . Answer : You should install alsa drivers from alsa launchpad. . be sure to install the latest version and that too of raring as you are using 13.04 . After install try rebooting the laptop . This will make the sound work .", "Question : I need to send audio from a radio to a secondary system using an embedded-linux system . The secondary system needs to set up a communication channel which takes a few seconds . So if I don t want to lose the beginning of the audio I need a way to record the sound and play it back with a custom delay a few seconds maximum . It should be possible to start arecord to record the audio in a file in a tmpfs filesystem and when a communication is incoming start aplay . But in this case the beginning is still lost because the signal to record is coming too late . Is there a program on Linux which is recording sound continuously in a ring buffer in RAM and able to playback with a custom delay on demand If not what is the best library to code such a program on an embedded system alsa or something else Comment : On Linux every audio library eventually ends up using ALSA . However you can use any other library if it s easier to use . Comment : Is this question off-topic since it asks for a tool or library Comment : Alsa has support for LADSPA plugins there should be one featuring a fixed delay . Comment : Is it appropriate to code up a script to do the buffer and pipe stuff together like in buffer-me 5s out Such a script would be fairly trivial to write if perhaps in a naive way . Of course it would be more efficient to do it in the existing sink or source . .. . Answer : If all you need is to have a buffer to keep sound output until it is ready to be consumed a variant of this should work : .. . .. . Start recording : .. . .. . Start playing when yours output device is ready : .. . .. . Tweak the output buffer size to fit your needs . EDIT given that playing can start anytime : .. . .. . If you need to continuously record and start playing anytime you could split the output into smaller files using the split command and delete the old files in a helper process . Something like : .. . .. . And to play : .. . .. . This solution is quite dirty but might work preferably on tmpfs as you have already mentioned .. . Comment : I would like to record all the time with a circular-buffer can be only 240K for 60s of 8000Hz 8bit audio and then when it should play it would use dd to play from the correct position in the buffer . In your case stdbuf will block when the buffer is full . Comment : Then I misunderstood your question . I will edit with another idea which is not a perfect solution but might be a working solution .. .", "Question : How do you listen to changes in volume on the Master channel on the default sound card I d like to be notified through dbus or a callback or something that the volume has changed . I have tried looking and the ALSA and PulseAudio APIs and they only seem to allow you to set and get the volume but not listen for changes in the volume . Any programming language is fine . .. . Answer : This is possible with the ALSA API . When you have a control device call snd ctl subscribe events to enable events . Then use snd ctl read to read events to wait for them use blocking mode or poll . If the event is of type SND CTL EVENT ELEM and if its event bit mask contains SND CTL EVENT MASK VALUE that element s value has changed . See the implementation of amixer monitor http : git.alsa-project.org p alsa-utils.git a blob f alsactl monitor.c hb HEAD for an example . Comment : Thank you very much Comment : If anyone is wondering this turned into a node.js plugin here https : github.com illegalprime alsa-monitor-node ." ] }
[ "yes-answer-long", "yes-answer-short" ]
linux
UNK_RELATION
sony-xperia@sony@45
sony-xperia -- sony-xperia is the family of @placeholder smartphones and tablets .
{ "confidence": [ 72.9440689086914, 71.5262451171875, 71.5262451171875, 70.90778350830078, 70.07266998291016, 69.7032699584961, 66.79950714111328, 66.79950714111328, 65.60436248779297, 64.35895538330078, 64.35895538330078, 64.35895538330078, 63.270904541015625, 63.270904541015625, 63.270904541015625, 61.4960823059082, 61.23461151123047, 59.03545379638672, 58.7940673828125, 55.931190490722656, 55.7750244140625, 55.7750244140625, 55.7750244140625, 55.7750244140625, 55.7750244140625, 55.7750244140625, 55.7750244140625, 55.7750244140625, 55.7750244140625, 55.7750244140625, 55.7750244140625, 55.7750244140625, 55.7750244140625, 53.738731384277344, 53.738731384277344, 51.731170654296875, 51.69573974609375, 51.298187255859375, 51.298187255859375, 51.298187255859375, 51.298187255859375, 51.298187255859375, 51.298187255859375, 51.298187255859375, 51.18738555908203, 51.18738555908203, 51.059783935546875, 51.059783935546875, 50.85041046142578, 49.69488525390625, 49.151100158691406, 49.151100158691406, 48.79582977294922, 47.22234344482422, 46.71055221557617, 46.71055221557617, 46.04906463623047, 46.04906463623047, 46.04906463623047, 46.04906463623047, 45.62825012207031, 45.523658752441406, 45.435420989990234, 44.864051818847656, 44.174896240234375, 44.012779235839844, 43.84767532348633, 43.84767532348633, 43.725772857666016, 43.46802520751953, 43.14574432373047, 42.62371826171875, 42.62371826171875, 42.62371826171875, 42.62371826171875, 42.62371826171875, 42.526878356933594, 42.42350387573242, 42.2385368347168, 41.089752197265625, 41.04682540893555, 40.80307388305664, 40.58742904663086, 40.58742904663086, 40.58742904663086, 40.47040557861328, 40.47040557861328, 40.47040557861328, 40.47040557861328, 40.47040557861328, 40.47040557861328, 40.23249816894531, 39.72040557861328, 38.991188049316406, 38.76678466796875, 38.76678466796875, 38.76678466796875, 38.71751403808594, 38.71751403808594 ], "content": [ "On the Sony Xperia Device there is no error or exception .", "My Sony Xperia is 4.4.4", "Specifically the Sony Xperia Devices", "from Sony Xperia Opensource website .", "Most of the smartphones tested works succesfully but those Sony Xperia are the only exception .", "The Sony devices that present this problem were Sony Xperia E4 and Sony C2104 .", "But behaving bit weird with Sony Xperia mobiles .", "The issue is repeatable on a friend s Sony Xperia Z3 Compact .", "Works splendidly : but on Sony Xperia Z5 .", "It s working on all devices but not on Sony Xperia 4.4.4 .", "On Sony Xperia devices the events are showing in the calendar app .", "I have a Sony Xperia Z3 with Android 5.1.1 .", "I am totally new at testing apps on devices especially the Sony Xperia .", "I have a Sony Xperia M and this is been the solution to my problem .", "I had a problem connecting a Sony Xperia Tipo to Eclipse for android debugging .", "Now it no longer works on Sony Xperia Z phones .", "I recently made an Android camera application meant for Sony Xperia phones .", "Steps to debug using Sony Xperia : Settings Xperia USB Connectivity USB connection mode and select Mass storage mode MSC .", "My app cannot connect the server at fixed intervals at Sony xperia .", "The only thing that has changed is it no longer works on Sony Xperia Z with Lollipop .", "I would like to create some program for my Sony XPeria S LT26i but I cannot enable uSB debugging .", "I have Android 4.1.2 Jelly Bean on my Sony Xperia S LT26i .", "Or maybe it is not possible because Sony made an update for Xperia S to 4.1.2 but they forgot to make a driver for this version :", "The following code and showing the inserted contact in the contact app works on all devices but not on Sony Xperia Android 4.4.4 .", "I tried debugging my app on newer sony-xperia models but it s not detected by ADB .", "I m having kind of same problem right now with a tablet Sony Xperia Z4 : impossible to detect it with PTP Mass Storage .", "I have a sony-xperia E3 D2203 I can build the demo for google-cardboard and load the apk in the phone .", "It seems to throw an error only on the Sony Xperia Z3 Compact when the RAW AMR format is used .", "I m having trouble displaying base64 images in Sencha App on Sony Xperia Android phone .", "I have a Sony xperia M2 D2303 with kitkat 4.4.4 and compilation number 18.3.1.C.1.17 .", "I am testing apps using the Android emulator but I have now a Sony Xperia .", "Most of replies are useful but here is one final step for debugging apps on Sony Xperia devices .", "Great thanks this also worked on my Sony Xperia Tablet Z -- I would never have found that option otherwise : -", "If rooting of the phone is needed then please provide the links to root Sony Xperia M2 as it will be my first trial in rooting device :", "However I hear no sound on my Sony Xperia Z3 .. . And since this is the phone I own it is truly annoying .", "These were my steps to solve the problem : .. . .. . On SONY XPERIA Z .. . .. . Enable USB debugging http : developer.android.com tools device.html setting-up .. . Settings Developer USB-Debugging Enabled .. . Settings Xperia USB Connectivity USB connection mode MSC .. . Settings Xperia USB Connectivity Install software Disabled", "This code works fine in other phones but it does not add sms body and address in Sony Phones I have tested it in Xperia Z and Xperia M4 .", "I developed an appwidget year ago worked fine on Sony Xperia SP Android v4.0.x .", "Did not think of that I got a Sony Xperia Z3 Compact and as far as I can tell it should support OTG .", "With the update to build number 23.4.A.1.232 of the software for Sony Xperia Z3 Compact this is no longer an issue and I receive the Intent .", "I m trying to auto boot my Sony Xperia SP when the battery is done charging .", "Strangely on Sony Xperia the imageView of my application did not show correctly built-in gallery showed correctly .", "Just after posting the question I ve found in SO the easy solution also for Sony Xperia .", "Is it possible to detect and create a true 4k GLES render display surface in an app on a Sony Xperia Z5 Premium Android phone", "Source post 29 https : talk.sonymobile.com t5 Android-development EMMA-Sony-Flash-tool-for-Xperia-devices m-p 1043048 M6015", "In order to display the Sony Xperia device on adb you need to select Mass Storage Mode MSC in USB Connection Mode like in the picture below .", "I m trying to build Android 5.0 for the Sony Xperia Z3 leo using AOSP sources and the vendor binaries provided by Sony on their Developer World website SW binaries for Xperia AOSP L MR0 v8 .", "So it works on all devices with 4.0 or greater and that have usb hosting except the Sony Xperia Z with lollipop works fine on the Sony before lollipop .", "I saw that on this device the bootloader could be unlocked but on the Sony Xperia Open Source website i ve not found my device on the supported list also if Sony M and M2 are supported .", "it s not possible to unlock just yet : .. . .. . http : developer.sonymobile.com 2015 08 14 first-64-bit-xperia-devices-added-to-sonys-open-device-project .. . .. . You might notice that a repository for the 64-bit Xperia M4 Aqua also has been added on the Sony Xperia Developer World GitHub account .", "developer.sony.com 2013 09 24 https : developer.sony.com 2013 09 24 how-to-create-a-sony-xperia-z1-camera-app-using-the-camera-add-on-api", "I am trying to acquire the position with WL.Device.Geo.acquirePosition and sometimes I get the Timeout expired error especially on Sony Xperia Android 5.1.1 - WebView 43.0.2357.121 .", "Someone has the same problem but still nobody has answered : ADB Interface driver for Sony Xperia M4 Aqua http : stackoverflow.com questions 31891117 adb-interface-driver-for-sony-xperia-m4-aqua .. . .. . Someone may have encountered the same problem", "Is there some known Xperia issue", "Hello everybody .. . .. . I try to use my new Sony Xperia M4 Aqua Dual to test an android application on Android Studio .", "When I am trying to debug an application with my real device Sony Xperia e4g with firmware 25.0.A.2.14 it s not hitting any breakpoints .", "Also you should post this on the Sony forums because you are more likely to get an answer there especially if you ask one of the few people who actually do build AOSP for xperia devices .", "This is my environment : .. . .. . OS : Ubuntu 14.04.3 LTS Linux .. . Android Phone : Sony Xperia E2003 android version 4.4.4 .. . IDE : Android Studio .. . .. . .. . .. . Debugging on the Sony phones used to work for me it suddenly is not working now .", "enter image description here http : i.stack.imgur.com DJKtW.png .. . .. . Following the steps here http : support.bell.ca Mobility Smartphones and mobile internet Sony-Xperia-Z1.how to change the usb connection options on my I cant change usb connection mode .", "My Sony Xperia T has not been visible in Eclipse even though I installed PC Companion and in mobile phone I set developers options debugging mode", "Connected Xperia E to my laptop .", "this enabled the eclipse to detect my Xperia S . thanks .", "3 . select the package for sony and download it .", "I have to contact Sony for that", "Xperia has very strange option : .. . Settings Xperia USB Connectivity USB connection mode .. . and select Mass storage mode MSC .", "I asked a question in the Sony forum http : talk.sonymobile.com t5 Xperia-J 512MB-RAM m-p 377567 U377567 but I did not get a clear answer .", "However with the Sony XPERIA Tablet Z SGP321 under Android 5.0.2 Build 10.6.A.0.454 folders supplied in newFile will become a file with 4KB .", "This has been bugging me the whole time since it works on all devices I have tested on except Sony Xperia Z5 .", "solution for sony Mobile usb driver for Window 7 After googling and more time spend on this we find the solution Sony tipo Sony M mobile are detecting by eclipse .", "You may want to contact Sony support for drivers .", "Power Button .. . .. . After final development of the app and it works perfectly fine with other phones like Karbonn Titanium X and Sony Xperia L .But the app starts behaving very weirdly after installing on Sony Xperia M2 like below mentioned .. . .. . If the phone is locked then phone never gets unlocked .. . Phone starts getting heated quite a few times .. . .. . Any help to resolve above issues is much appreciated .", "Did you try using the driver for ICS for Xperia S", "PS : I test the application on Xperia Z3 and it works fine .", "You then need to add the xperia through the device manager in eclipse .", "No you need the drivers for the Xperia - and don t forget to turn on phone debugging .", "I installed new drivers and XPeria Companion but it didn t help .", "Sony Company itself say they do not guarantee that all usb devices would be supported on Sony devices .", "Marek Pola Sony Mobile .", "Looks like Xperia Z is the only device having problem Xperia SP and Nexus 7 are not .", "I have a locked Xperia Z3 and I wish to take advantage of Sony s AOSP for Xperia Devices http : developer.sonymobile.com knowledge-base open-source open-devices program .", "But I had another Xperia phone than yours .", "Sony have said that Emma is not yet compatible with Windows 10 .", "However it is not possible to unlock the Xperia M4 Aqua at this point in time .", "If I look at the log there is a huge succession of : .. . .. . My phone is a Xperia M4 Aqua .", "I am unable to boot my Xperia C into fastboot mode .", "However reading through the AOSP build procedures http : developer.sonymobile.com knowledge-base open-source open-devices aosp-build-instructions how-to-build-aosp-lollipop-for-unlocked-xperia-devices documentation you can build Android from the AOSP tree and add to the repo Sony s blobs presumably with Sony-specific functionality .", "On Sony Xperia Devices you must .. . .. . 1 Specify an existing google account .. . .. . or 2 don t specify any account type details .. . .. . On other devices like Motorola oder Google Nexus you can specify a non existing custom Account like :", "The Debugger tab shows this message and hangs forever : .. . .. . .. . .. . Update : .. . I have checked the answer here http : stackoverflow.com questions 16107545 adb-cant-detect-sony-xperia-s-although-i-installed-driver but my devices do not have sdcards so not working for me .", "At http : developer.sonymobile.com knowledge-base open-source open-devices aosp-build-instructions how-to-build-aosp-marshmallow-for-unlocked-xperia-devices we can see instructions to build AOSP Marshmallow for Sony Devices but my device E6533 is not listed there .", "Steps are 1.install the latest sony companion 2- go to settings xperia connectivity USB connectivity mode MTP 3- restart eclipse and run your project Android Device Chooser show your device .. . .. . donot forgot to check the usb debugging", "First need to change device form MTP mode to MSC mode as Damir http : stackoverflow.com questions 12053720 cannot-detect-sony-xperia-in-eclipse 15543848 15543848 mentioned then download and install driver to your PC as Michell Bak http : stackoverflow.com a 12053939 4570366 mentioned .", "developer.sonymobile.com downloads tool software-binaries-for-aosp-lollipop-android-5-1 .. . .. . If there are any Sony people reading this my question is do we get back the DRM wiped out by the unlocking procedure if we build from the official Sony AOSP + official Sony in-tree binaries", ": I had that problem with the detection of the SONY XPERIA Z tablet only with Eclipse and did everything in the book to connect it without success : .. . .. . Checked that the Sony USB driver was updated on the PC enabled USB debugging in the developpers options tried the Media Transfer Protocol MTP tried the Mass Storage Configuration MSC .. . .. . still the Eclipse command Run responded with a No compatible device found message .. . .. . until I downloaded the Google USB driver in the SDK manager and the DEVICE WAS AT LAST DETECTED .", "It was Sony that filtered the Intent I wanted to read .", "Sony forum support agent send me here with this question .", "But when i tested in Sony Experia kitkat the cursor contains no rows .", "Also the device is shown as an Android device - sony fastboot interface in the device manager .", "For future reference - the link-to the ICS drivers : developer.sonymobile.com downloads drivers http : developer.sonymobile.com downloads drivers xperia-s-driver-for-ics", "It s because the Xperia default storage mode which is Media Transfer Protocol MTP ." ] }
{ "confidence": [ 79.63446044921875, 76.3976821899414, 75.92691040039062, 75.4518814086914, 74.85903930664062, 74.29660034179688, 74.02674865722656, 73.00581359863281, 72.40426635742188, 72.27842712402344, 71.73548889160156, 71.0354995727539, 71.0354995727539, 70.94288635253906, 70.88868713378906, 70.53302001953125, 69.9662857055664, 69.78021240234375, 69.58863830566406, 69.58863830566406 ], "content": [ "Question : I am totally new at testing apps on devices especially the Sony Xperia . I am testing apps using the Android emulator but I have now a Sony Xperia . First I have connected the device to the laptop via USB . But the laptop couldn t detect my phone . Is a driver necessary for Eclipse to detect the phone Comment : Read this post stackoverflow.com a 11974943 704374 http : stackoverflow.com a 11974943 704374 this will help you . Comment : What OS is on your Laptop Comment : windows-7 ultimate .. . Answer : SOLUTION : I had that problem with the detection of the SONY XPERIA Z tablet only with Eclipse and did everything in the book to connect it without success : .. . .. . Checked that the Sony USB driver was updated on the PC enabled USB debugging in the developpers options tried the Media Transfer Protocol MTP tried the Mass Storage Configuration MSC .. . .. . still the Eclipse command Run responded with a No compatible device found message .. . .. . until I downloaded the Google USB driver in the SDK manager and the DEVICE WAS AT LAST DETECTED . This is all the more so strange that the Google Driver is introduced as dedicated to Nexus tablets only So if this can help ... .", "Question : I followed this guide to show if Sony M4 Aqua Bootloader could be unlocked with fastboot : .. . .. . 1 - Enter 7378423 in the dialer . 2 - Tap Service info Configuration Rooting Status . If Bootloader unlock allowed says Yes then you can continue with the next step . If it says No or if the status is missing your device cannot be unlocked bootloader . from Sony Xperia Opensource website . I saw that on this device the bootloader could be unlocked but on the Sony Xperia Open Source website i ve not found my device on the supported list also if Sony M and M2 are supported . Anyone has an idea to unlock it or had already unlocked it I have to contact Sony for that Thank you for the support .. . Answer : it s not possible to unlock just yet : .. . .. . http : developer.sonymobile.com 2015 08 14 first-64-bit-xperia-devices-added-to-sonys-open-device-project .. . .. . You might notice that a repository for the 64-bit Xperia M4 Aqua also has been added on the Sony Xperia Developer World GitHub account . However it is not possible to unlock the Xperia M4 Aqua at this point in time . Comment : Would it possible for you to update this Is there now a way to unlock the M4 bootloader Thanks", "Question : I am totally new at testing apps on devices especially the Sony Xperia . I am testing apps using the Android emulator but I have now a Sony Xperia . First I have connected the device to the laptop via USB . But the laptop couldn t detect my phone . Is a driver necessary for Eclipse to detect the phone Comment : Read this post stackoverflow.com a 11974943 704374 http : stackoverflow.com a 11974943 704374 this will help you . Comment : What OS is on your Laptop Comment : windows-7 ultimate .. . Answer : These were my steps to solve the problem : .. . .. . On SONY XPERIA Z .. . .. . Enable USB debugging http : developer.android.com tools device.html setting-up .. . Settings Developer USB-Debugging Enabled .. . Settings Xperia USB Connectivity USB connection mode MSC .. . Settings Xperia USB Connectivity Install software Disabled On Windows7 .. . .. . Google USB drivers were already installed for another device .. . Download XPERIA drivers from : http : developer.sonymobile.com downloads drivers .. . Connect XPERIA via USB .. . Device manager Unknown device Install driver from downloaded file Comment : I dont see this option : Settings Xperia USB Connectivity USB connection mode MSC - it only gives me one option in the USB Connectivity Menu and that s Install PC Companion and of course that doesn t work either any ideas", "Question : I am totally new at testing apps on devices especially the Sony Xperia . I am testing apps using the Android emulator but I have now a Sony Xperia . First I have connected the device to the laptop via USB . But the laptop couldn t detect my phone . Is a driver necessary for Eclipse to detect the phone Comment : Read this post stackoverflow.com a 11974943 704374 http : stackoverflow.com a 11974943 704374 this will help you . Comment : What OS is on your Laptop Comment : windows-7 ultimate .. . Answer : Steps to debug using Sony Xperia : Settings Xperia USB Connectivity USB connection mode and select Mass storage mode MSC . The USB cable must be unplugged to change this option . By default Media transfer mode MTP was selected . Untick Install software", "Question : Please do not minus or block this question because First I contacted Sony Support and they recommended me to ask this question here . I would like to create some program for my Sony XPeria S LT26i but I cannot enable uSB debugging . Looks like Android Studio can not detect my phone because ADB drivers are not installed correctly . I have Android 4.1.2 Jelly Bean on my Sony Xperia S LT26i . It is last official update as I understand . If I want to download ADB drivers for it and I go to this page http : developer.sonymobile.com downloads drivers I can see only drivers for Xperia S for ICS Android 4.0 and for GB Android 2.3 . Maybe someone know link where I can download correct drivers or another solution to this issue Or maybe it is not possible because Sony made an update for Xperia S to 4.1.2 but they forgot to make a driver for this version : Some more history and details . I tried to install this driver first Drivers FlashTool Xperia Driver Pack v1.5 20140318 available by this link http : forum.xda-developers.com showthread.php t 2635830 but each time I get this error message DPInst.exe does not execute on your current Operating System . I have Windows 7 64bits . Comment : This post is off topic because you are referring to an off-site resource . You may want to contact Sony support for drivers . Comment : Sony support officially recommended me to create my question here : Please do not delete this question . Comment : If your question gets closed or deleted by mods I apologize.. . Mainly for you having to deal with a Sony Support rep not wanting to deal with your question . But hey who likes tech support Good luck finding your drivers . I suggest asking on Reddit or xda . .. . Answer : Did you try using the driver for ICS for Xperia S If that doesn t work I would suggest installing Sony PC Companion : .. . .. . http : support.sonymobile.com global-en tools pc-companion .. . .. . PC Companion should automatically install the correct drivers for you when you connect your phone via USB . Comment : I tried to install driver for ICS . It does not work Or maybe I tried to install it in a wrong way . Can you give me link with ICS driver installation guide PC Companion I already installed but looks like in my case driver is not installed . I have non-english windows version Windows 7 64bit Russian I read in the internet that sometimes with non-english windows people have a problems . Comment : For future reference - the link-to the ICS drivers : developer.sonymobile.com downloads drivers http : developer.sonymobile.com downloads drivers xperia-s-driver-for-ics", "Question : I am totally new at testing apps on devices especially the Sony Xperia . I am testing apps using the Android emulator but I have now a Sony Xperia . First I have connected the device to the laptop via USB . But the laptop couldn t detect my phone . Is a driver necessary for Eclipse to detect the phone Comment : Read this post stackoverflow.com a 11974943 704374 http : stackoverflow.com a 11974943 704374 this will help you . Comment : What OS is on your Laptop Comment : windows-7 ultimate .. . Answer : solution for sony Mobile usb driver for Window 7 After googling and more time spend on this we find the solution Sony tipo Sony M mobile are detecting by eclipse . Steps are 1.install the latest sony companion 2- go to settings xperia connectivity USB connectivity mode MTP 3- restart eclipse and run your project Android Device Chooser show your device .. . .. . donot forgot to check the usb debugging", "Question : I am totally new at testing apps on devices especially the Sony Xperia . I am testing apps using the Android emulator but I have now a Sony Xperia . First I have connected the device to the laptop via USB . But the laptop couldn t detect my phone . Is a driver necessary for Eclipse to detect the phone Comment : Read this post stackoverflow.com a 11974943 704374 http : stackoverflow.com a 11974943 704374 this will help you . Comment : What OS is on your Laptop Comment : windows-7 ultimate .. . Answer : Even though this question was posted long time ago I didn t find 100 correct answer from previous replies . Most of replies are useful but here is one final step for debugging apps on Sony Xperia devices . My Sony Xperia T has not been visible in Eclipse even though I installed PC Companion and in mobile phone I set developers options debugging mode Xperia has very strange option : .. . Settings Xperia USB Connectivity USB connection mode .. . and select Mass storage mode MSC . Note that the USB cable must be unplugged to change this option . By default Media transfer mode MTP was selected . If MTP is selected even little bug is shown in notification bar debugging is not possible Comment : Great thanks this also worked on my Sony Xperia Tablet Z -- I would never have found that option otherwise : - Comment : I have a Sony Xperia M and this is been the solution to my problem . With no PC Companion and MSC usb connection mode the android device manage on my Eclipse got to recognize my phone . Thanks . Comment : Aside from the usual stuff : installing google usb drivers PC companion enabling debugging allowing apps from unknown sources etc . Enabling MASS STORAGE worked The Sad part was that I couldn t listen to the MP3s on my phone while it was hooked to eclipse . Fortunately whe you activate MASS Storage for the first time the phone asks you to include your computer in the Trusted Devices List . Once you do so you can then put it back to Media Transfer Mode and enjoy Eclipse connection while listening to MP3s at the same time Happy Coding .", "Question : null .. . Answer : I have a locked Xperia Z3 and I wish to take advantage of Sony s AOSP for Xperia Devices http : developer.sonymobile.com knowledge-base open-source open-devices program . Reading through the disclaimer attached to the Sony Device Unlock procedure it states that unlocking the device will void the warranty and more problematically erase the DRM keys which will render various hardware features useless . However reading through the AOSP build procedures http : developer.sonymobile.com knowledge-base open-source open-devices aosp-build-instructions how-to-build-aosp-lollipop-for-unlocked-xperia-devices documentation you can build Android from the AOSP tree and add to the repo Sony s blobs presumably with Sony-specific functionality . developer.sonymobile.com downloads tool software-binaries-for-aosp-lollipop-android-5-1 .. . .. . If there are any Sony people reading this my question is do we get back the DRM wiped out by the unlocking procedure if we build from the official Sony AOSP + official Sony in-tree binaries Thank you for your time . Comment : I don t think you do . Also you should post this on the Sony forums because you are more likely to get an answer there especially if you ask one of the few people who actually do build AOSP for xperia devices . I myself wanted to use Sony devices because of the AOSP program but because of reasons just like yours I scrapped the idea and just use a Nexus 5 . The only problem is that there is no expandable storage on Nexus 5 . : C", "Question : null .. . Answer : At my software developing company we are developing multiples Android apps that use the camera to take pictures . We found an unsolvable problem in two Sony devices : The onActivityResult method is not called by the Camera Intent so there is no event triggered on the app to handle the image file and continue the app process . We don t know why and neither how to handle the problem . This is the way we use to call the camera from a Fragment : .. . .. . The questions are : .. . .. . 1 . Have you experienced this problem with some devices Specifically the Sony Xperia Devices The Sony devices that present this problem were Sony Xperia E4 and Sony C2104 . 2 . How do we handle the problem before launching the camera How can we tell the onActivityResult method was not called back Comment : You don t have to do any thing in onActivityRes since you already had defile the file for uri of image if the file-uri was not define by you then the onActivityResult will give you the file-uri . As you already defined the file-uri before starting the intent you will get a null value in onActivityResult One more thing is that if you are starting the intent from the fragment then you have to define the onActivityResult on the parent Activity . Right now i will suggest you to right your code of onActivityResult inside onResume of the fragment or define onActivityResult in your parent activity . Comment : I understand your approach but i don t think is the best solution to handle the picture in the onResume despite you don t need to use the onActivityResult params . This method was created for that and try to fool the fragment s lifecycle is never a good idea . Most of the smartphones tested works succesfully but those Sony Xperia are the only exception . Comment : The best approach is to define the onActivityResult in your parent Activity as well from there only you will get the Intent value for your fragment for onActivityResult you just understand the first part but didn t understand my second part . hope now you got it Comment : It works thanks man Comment : Your Welcome :", "Question : I am totally new at testing apps on devices especially the Sony Xperia . I am testing apps using the Android emulator but I have now a Sony Xperia . First I have connected the device to the laptop via USB . But the laptop couldn t detect my phone . Is a driver necessary for Eclipse to detect the phone Comment : Read this post stackoverflow.com a 11974943 704374 http : stackoverflow.com a 11974943 704374 this will help you . Comment : What OS is on your Laptop Comment : windows-7 ultimate .. . Answer : For me it works when combining Damir s Michell Bak s answers . First need to change device form MTP mode to MSC mode as Damir http : stackoverflow.com questions 12053720 cannot-detect-sony-xperia-in-eclipse 15543848 15543848 mentioned then download and install driver to your PC as Michell Bak http : stackoverflow.com a 12053939 4570366 mentioned . Most new Sony device default setting USB connection mode to MTP and the setting location is different from other android devices . Besides driver can not install automatically and need to download form official site .", "Question : null .. . Answer : We are developing a launcher application where we ll be disabling following other features on the phone other than overriding Home button : - .. . .. . 1 . Back Button .. . 2 . Recent Apps .. . 3 . Status Bar .. . 4 . Power Button .. . .. . After final development of the app and it works perfectly fine with other phones like Karbonn Titanium X and Sony Xperia L .But the app starts behaving very weirdly after installing on Sony Xperia M2 like below mentioned .. . .. . If the phone is locked then phone never gets unlocked .. . Phone starts getting heated quite a few times .. . .. . Any help to resolve above issues is much appreciated . If anyone has also faced such issues with other phones also please share your thoughts on it . If rooting of the phone is needed then please provide the links to root Sony Xperia M2 as it will be my first trial in rooting device :", "Question : I am totally new at testing apps on devices especially the Sony Xperia . I am testing apps using the Android emulator but I have now a Sony Xperia . First I have connected the device to the laptop via USB . But the laptop couldn t detect my phone . Is a driver necessary for Eclipse to detect the phone Comment : Read this post stackoverflow.com a 11974943 704374 http : stackoverflow.com a 11974943 704374 this will help you . Comment : What OS is on your Laptop Comment : windows-7 ultimate .. . Answer : Don t forget to enable usb debugging in the phone setting . Comment : I already did that . but doesn t work . Comment : Great answer It finally works for me", "Question : I am totally new at testing apps on devices especially the Sony Xperia . I am testing apps using the Android emulator but I have now a Sony Xperia . First I have connected the device to the laptop via USB . But the laptop couldn t detect my phone . Is a driver necessary for Eclipse to detect the phone Comment : Read this post stackoverflow.com a 11974943 704374 http : stackoverflow.com a 11974943 704374 this will help you . Comment : What OS is on your Laptop Comment : windows-7 ultimate .. . Answer : Try to Install PC Companion here : http : www.sonymobile.com gb tools pc-companion", "Question : I am totally new at testing apps on devices especially the Sony Xperia . I am testing apps using the Android emulator but I have now a Sony Xperia . First I have connected the device to the laptop via USB . But the laptop couldn t detect my phone . Is a driver necessary for Eclipse to detect the phone Comment : Read this post stackoverflow.com a 11974943 704374 http : stackoverflow.com a 11974943 704374 this will help you . Comment : What OS is on your Laptop Comment : windows-7 ultimate .. . Answer : 1 . Start eclipse .. . 2 . open the android SDK manager it will load the repository . 3 . select the package for sony and download it . 4 . restart eclipse and you are good to go .", "Question : Hello everybody .. . .. . I try to use my new Sony Xperia M4 Aqua Dual to test an android application on Android Studio . But I need the ADB driver for M4 and it is not available in the drivers download page : Sony drivers http : developer.sonymobile.com downloads drivers .. . .. . The fastboot driver doesn t work too . Someone has the same problem but still nobody has answered : ADB Interface driver for Sony Xperia M4 Aqua http : stackoverflow.com questions 31891117 adb-interface-driver-for-sony-xperia-m4-aqua .. . .. . Someone may have encountered the same problem Thank you very much by advance Boris Comment : This is not the appropriate place to ask for phone drivers . As suggested in the comment for the question you linked to you may try android.stackexchange.com http : android.stackexchange.com note that the question you re asking has already been asked there so you shouldn t post a duplicate question Comment : Not solved on Windows but worked on Linux after adding correct access right .. . Answer : Try installing the sony companion app that did the trick for me to get my drivers updated . But I had another Xperia phone than yours .", "Question : I m using ContactsContract to insert RawContacts in my app . The following code and showing the inserted contact in the contact app works on all devices but not on Sony Xperia Android 4.4.4 . On the Sony Xperia Device there is no error or exception . The console display the correct CONTACT-ADDED-ID . But in the android contact app the newly inserted Raw -Contact is not showing . I have enabled all groups etc . in the filter-settings in the contact app . Comment : what is the purpose of setting ACCOUNT TYPE to getActivity .getPackageName Comment : From the google documentation : To ensure uniqueness new account types should be chosen according to the Java package naming convention . Thus a Google account is of type com.google developer.android.com reference android provider http : developer.android.com reference android provider ContactsContract.RawContacts.html Comment : but you want to add a contact to a Google account don t you so that contact app can see it .. . Answer : Ok . Problem is solved . On Sony Xperia Devices you must .. . .. . 1 Specify an existing google account .. . .. . or 2 don t specify any account type details .. . .. . On other devices like Motorola oder Google Nexus you can specify a non existing custom Account like : Comment : thanks to @pskink to the hint Comment : This sucks bigtime . When I want to use my custom account : contacts are not shown and the name can t be saved . only at Sony s", "Question : I am totally new at testing apps on devices especially the Sony Xperia . I am testing apps using the Android emulator but I have now a Sony Xperia . First I have connected the device to the laptop via USB . But the laptop couldn t detect my phone . Is a driver necessary for Eclipse to detect the phone Comment : Read this post stackoverflow.com a 11974943 704374 http : stackoverflow.com a 11974943 704374 this will help you . Comment : What OS is on your Laptop Comment : windows-7 ultimate .. . Answer : I had a problem connecting a Sony Xperia Tipo to Eclipse for android debugging . I went through all the steps already recommended installing sony drivers USB debugging on etc but was still getting a driver not found error when I connected the Tipo to my PC with USB debug switched on . I fixed the problem starting with the driver install instructions for a Sony Tablet http : www.kb.sony.com selfservice microsites search.do cmd displayKC externalId C1024692 fes true http : www.kb.sony.com selfservice microsites search.do cmd displayKC externalId C1024692 fes true .. . .. . Then I looked through Windows event-viewer to find the find the details of the previous driver install failures which gave me the correct device ID string for the Tipo . I added that to the end of the Google.NTx86 section of android winsub.inf following the same pattern as for the Sony Tablet . It now contains this : .. . .. . Finally I reconnected the Tipo to my PC went for the manual driver search options during driver install pointed it to the Google USB driver directory and it installed the Google drivers successfully . Now Eclipse is connecting to the Tipo and I can test and debug my app .", "Question : software Sony Emma Flash Tools crash in windows-10 pro She make a log file and exit . I tried in windows-7 an work fine but not is my pc . Help me please Thx a lot .. . Answer : Sony have said that Emma is not yet compatible with Windows 10 . Source post 29 https : talk.sonymobile.com t5 Android-development EMMA-Sony-Flash-tool-for-Xperia-devices m-p 1043048 M6015", "Question : I am totally new at testing apps on devices especially the Sony Xperia . I am testing apps using the Android emulator but I have now a Sony Xperia . First I have connected the device to the laptop via USB . But the laptop couldn t detect my phone . Is a driver necessary for Eclipse to detect the phone Comment : Read this post stackoverflow.com a 11974943 704374 http : stackoverflow.com a 11974943 704374 this will help you . Comment : What OS is on your Laptop Comment : windows-7 ultimate .. . Answer : Yes eclipse needs drivers . You need to install drivers for the phone and then restart eclipse . You then need to add the xperia through the device manager in eclipse . Are you running windows Comment : yes I am using windows but i already install google usb driver . Is google usb driver doesnot work for this Comment : No you need the drivers for the Xperia - and don t forget to turn on phone debugging . Check here developer.sonymobile.com wportal devworld search-downloads http : developer.sonymobile.com wportal devworld search-downloads driver", "Question : I am totally new at testing apps on devices especially the Sony Xperia . I am testing apps using the Android emulator but I have now a Sony Xperia . First I have connected the device to the laptop via USB . But the laptop couldn t detect my phone . Is a driver necessary for Eclipse to detect the phone Comment : Read this post stackoverflow.com a 11974943 704374 http : stackoverflow.com a 11974943 704374 this will help you . Comment : What OS is on your Laptop Comment : windows-7 ultimate .. . Answer : I had same problem with my Xperia Z3+ android 5.02 with Android studio 1.3 . I installed new drivers and XPeria Companion but it didn t help . However after I enabled hotspot via USB it started to work . Don t know if all of these was needed of if it was only the last one . Anyway I did 1 . Settings- More...- Internetsharing hotspot- USB-sharing to on . 2 . In the pop-up accept USB debugging ." ] }
[ "yes-answer-long", "yes-answer-short" ]
sony
UNK_RELATION
system-rules@java@48
system-rules -- system-rules is an open-source @placeholder library which makes it possible to test code which uses java.lang.system .
{ "confidence": [ 50.79467010498047, 45.05493927001953, 45.02910232543945, 44.909664154052734, 44.739959716796875, 44.728721618652344, 43.24003219604492, 42.245887756347656, 41.09822082519531, 40.997703552246094, 40.997703552246094, 40.997703552246094, 40.78828430175781, 39.04131317138672, 37.96034240722656, 37.793128967285156, 36.50273895263672, 36.19683074951172, 33.86903381347656, 33.14911651611328, 32.41143035888672, 29.915220260620117, 26.029808044433594, 22.251235961914062, 21.389720916748047, 21.08391571044922, 20.891075134277344, 20.891075134277344, 19.241390228271484, 19.046661376953125, 18.436565399169922, 18.436565399169922, 18.427555084228516, 18.427555084228516, 17.912403106689453, 17.811676025390625, 17.811676025390625, 17.48113250732422, 17.335412979125977, 16.946386337280273, 16.946386337280273, 16.689592361450195, 16.689592361450195, 16.536731719970703, 16.47042465209961, 16.0647029876709, 15.222980499267578, 15.222980499267578, 15.222980499267578, 15.222980499267578, 14.42783260345459, 14.42783260345459, 14.42783260345459, 14.42783260345459, 14.42783260345459, 14.42783260345459, 14.42783260345459, 14.42783260345459, 14.42783260345459, 14.42783260345459, 14.42783260345459, 14.42783260345459, 14.42783260345459, 14.42783260345459, 14.42783260345459, 14.42783260345459, 14.42783260345459, 14.42783260345459, 14.42783260345459, 14.42783260345459, 14.42783260345459, 14.42783260345459, 14.42783260345459, 14.42783260345459, 14.42783260345459, 14.42783260345459, 14.42783260345459, 14.42783260345459, 14.42783260345459, 14.42783260345459, 14.42783260345459, 14.42783260345459, 14.42783260345459, 14.42783260345459, 14.42783260345459, 14.42783260345459, 14.42783260345459, 14.42783260345459, 14.205217361450195, 14.130839347839355, 14.130839347839355, 13.68678092956543, 13.504404067993164, 13.504404067993164, 13.369486808776855, 12.970232009887695, 12.970232009887695, 12.970232009887695, 12.970232009887695 ], "content": [ "It uses System-Rules library incorporated into junit .", "It calls SecurityManager.checkExit which System Rules interprets as exit .", "I m using the library System Rules http : stefanbirkner.github.com system-rules to testing method that calls System.exit : .. . .. . Unfortunately this piece of code is causing the error .. .", "I m the maintainer of System Rules .", "The exception is thrown by System Rules http : stefanbirkner.github.io system-rules .", "Is it somehow possible to configure System-Rules to make it automatically", "The problem is fixed in System Rules 1.11.0 .", "Because of this I m using System Rules http : stefanbirkner.github.io system-rules to parse their outputs .", "Is it somehow possible to configure System-Rules to make it automatically .. . to make what automatically", "I m using JUnit 4.7 and System Rules 1.2.0 .", "System Rules needs at least version 4.9 of JUnit .", "I add this information to System Rules homepage .", "I added a new method log.getLogWithNormalizedLineSeparator to System Rules 1.12.0 http : stefanbirkner.github.io system-rules releases.html that solves your problem .", "SystemOutRule is part of the System Rules https : stefanbirkner.github.io system-rules project by Stefan Birkner .", "It is a very special problem but I try to fix it in System Rules .", "System Rules is based on SecurityManager and interprets that as call to exit .", "System Rules just returns what has been written to System.out .", "The problem is that you cannot run the tests in parallel because of the testing library that you re using ExpectedSystemExit is part of System Rules .", "System Rules seems to want the following dependencies .. . .. . junit-4.11-beta-1 .. . .. . hth", "I m tasked with setting up some JUnit tests for a utility app that is required to System.exit 1 under various circumstances and System Rules http : stefanbirkner.github.io system-rules is great for testing that .", "This means that you cannot run multiple tests with System Rules in parallel in the same JVM .", "Your test play won t pass on a Windows system .", "Turn off the ExpectedSystemExit rule and the test runs as it should popping the JFrame just fine it s just I can no longer test for jvm exit s . .. . .. . A guess would be that the SecurityManager System Rules 1.9.0 puts in-place is disallowing some permission s .", "Modifying the student s code to re-use the same scanner causes the test to succeed .", "Use log.getLogWithNormalizedLineSeparator in order to avoid problems with system dependent line encodings .", "I have a spring-test class from Spring in Action 4th which tests simple class that prints something to standard output .", "If I run the student s code or test anyone else s work the Tests run perfectly fine .", "I m messing with his code as my other test cases run and changed it to String str failure.toString instead of the getTestHeader and getMessage .", "Test .. . .. . Tested class", "I have the following code that I would like to test .", "But while my test has to finish they dont t .", "You could start each test in a separate JVM .", "I suspect that the issue of my problem may be configuration of NetBeans but I added appropriate jar files to Test libraries .", "I added hamcrest-core-1.3.jar to Test Libraries but the problem still exists .", "Student s Submission : .. . .. . One of my Test Cases : .. . .. . Finally my TestRunner : .. . .. . In the TestRunner if msg.contains timed out will error out because msg is null .", "When I run the test it throwed ComparisionException - the only difference was line separator .", "It must replace the SecurityManager in order to test System.exit and afterwards restores the original SecurityManager .", "See the forkCount option of Maven s Surefire plugin : maven.apache.org surefire maven-surefire-plugin test-mojo.html https : maven.apache.org surefire maven-surefire-plugin test-mojo.html", "I ve been working off an automatic grader for the past month and one of my students that understands the material seems to continually fail my JUnit test cases due to returning null .", "I have a JUnit Test that compares two strings : .. . .. . I m getting a org.junit.ComparisonFailure exception on the second test .", "Do you mean that the test is still green if you change the first line of the test to in.provideText 2 n", "The test should fail if the output is not what s expected .", "How do you run your test", "You can write custom SecurityManager which will act differently when invoked from setDefaultCloseOperation .", "It is not an official part of JUnit but is open sourced freely available and seems to be well maintained .", "I use maven to build my project and JUnit to test .", "When it s running in the context of a JUnit test with the ExpectedSystemExit rule applied as the JFrame is constructed something surreptitiously exits the jvm .", "This will both cause your test to fail and make it impossible to construct your awt windows .", "When I tried to do test using SystemOutRule I could not find this class and could not find org.junit.contrib package .", "Why do you have 2 unit dependencies one test and one compile", "Could you post more of your class .", "I m using SystemRules just like this and everything seems to be fine .", "Thank you for posting your question .", "This must be a mistake in my configuration of Netbeans because it does not work properly even for very simple classes .", "The issue of my problem was JUnit 4.7 .", "Using version 4.11 everything works fine .", "Thanks a lot .", "Cool .", "I didn t run into any of these headaches because I m using Maven and it just figures everything out mostly for you .", ":", "The std coding example shows the emptyStandardInputStream method .", "But the compiler can t resolve it .", "1 .", "Rule - yep got that .", "2 .", "TextFromStandardInputStream - yep got that .", "3 . emptyStandardInputStream - nope doesn t compile .", "Any ideas", "Thanks -Simon", "What std coding example", "Can you provide a link", "How about TextFromStandardInputStream.emptyStandardInputStream", "Did you use import static org.junit.contrib.java.lang.system.TextFromStandardInputStream .", "Compiler unable to locate emptyStandardInputStream method .", "As this is a static method you can use TextFromStandardInputStream class to explicitly locate the method .", "add some explanation", "Since it is a Java I course they are still using System.out.println for the time being .", "If it is something on my end I d like to fix it .", "Thanks", "Can you try working with failure.getException to find out more", "My output is tests1 TestJunit : null .", "My thoughts are that it resides with his implementation of multiple Scanner objects since his output of the TestRunner is Enter In The value of X for point 1 : Enter In The value of Y for point 1 : Enter In The value of X for point 1 : Enter In The value of Y for point 1 :", "It s definitely caused by the multiple Scanner objects .", "@AdamG .", "You have to provide multiple lines :", "Scanner is buffered so each constructed instance is consuming more of the text from the mocked System.in than just what s needed for nextDouble .", "The next Scanner tries to read what s left from the same underlying stream but the input has already been consumed so nextDouble throws NoSuchElementException .", "You could try to more accurately mock System.in by returning fewer bytes but not indicating the end of the stream until the next call to System.out is detected or change approach and use Runtime.exec to spawn a new JVM and capture all output from that process .", "But for some reason my code passes regardless of what the output is .", "Install IntelliJ IDEA https : www.jetbrains.com idea right-click the test name and select Debug then you ll be able to trace the execution and easily find out why it fails succeeds .", "I think that System.out actually receives the text Super Awesome Bros . in the following line : System.out.println Press 1 for Super Awesome Bros . so the test will always pass .", "I d rather provide an input stream via a constructor so the testing code can then use ByteArrayInputStream or something .", "My JUnit is the latest version 4.12 . .. . .. . my Maven pom.xml .. . .. . my Test class .. . .. . In CDPlayerTest.class I tried to use SystemOutRule but my IDE IntelliJ IDEA reminds me that this class does not exist and I could not find it in the Maven Artifact Search .", "@M.Deinum the first one was automatically added by IntelliJ IDEA when I created the project but IntelliJ IDEA seems to forbid the scope setting cause when I created a JUnit test the compiler forces me to add a new JUnit dependency .", "Run Code .. . .. . Here is my Testcase .. . .. . So in my Testcase I m trying to mock the input to be 1 so I can receive the expected output .", "Eventually I managed to bypass it by fetching line separator from System.properties .", "I m using windows-7 professional .", "You have to use the new rule SystemOutRule instead of StandardOutputStreamLog .", "I try to run junit tests in parallel ." ] }
{ "confidence": [ 52.67753601074219, 46.26084899902344, 43.225830078125, 41.862884521484375, 41.37610626220703, 40.1451301574707, 38.84469985961914, 33.45995330810547, 21.968360900878906, 20.722034454345703, 16.676918029785156, 14.378647804260254 ], "content": [ "Question : I have a spring-test class from Spring in Action 4th which tests simple class that prints something to standard output . It uses System-Rules library incorporated into junit . When I run the test it throwed ComparisionException - the only difference was line separator . Eventually I managed to bypass it by fetching line separator from System.properties . Is it somehow possible to configure System-Rules to make it automatically I m using windows-7 professional . Test .. . .. . Tested class Comment : Is it somehow possible to configure System-Rules to make it automatically .. . to make what automatically Your test play won t pass on a Windows system . .. . Answer : System Rules just returns what has been written to System.out . I added a new method log.getLogWithNormalizedLineSeparator to System Rules 1.12.0 http : stefanbirkner.github.io system-rules releases.html that solves your problem . You have to use the new rule SystemOutRule instead of StandardOutputStreamLog .", "Question : I m using the library System Rules http : stefanbirkner.github.com system-rules to testing method that calls System.exit : .. . .. . Unfortunately this piece of code is causing the error .. . I m using JUnit 4.7 and System Rules 1.2.0 . Comment : Could you post more of your class . I m using SystemRules just like this and everything seems to be fine . Comment : I suspect that the issue of my problem may be configuration of NetBeans but I added appropriate jar files to Test libraries . .. . Answer : System Rules needs at least version 4.9 of JUnit . I add this information to System Rules homepage . Thank you for posting your question .", "Question : I m using the library System Rules http : stefanbirkner.github.com system-rules to testing method that calls System.exit : .. . .. . Unfortunately this piece of code is causing the error .. . I m using JUnit 4.7 and System Rules 1.2.0 . Comment : Could you post more of your class . I m using SystemRules just like this and everything seems to be fine . Comment : I suspect that the issue of my problem may be configuration of NetBeans but I added appropriate jar files to Test libraries . .. . Answer : System Rules seems to want the following dependencies .. . .. . junit-4.11-beta-1 .. . .. . hth Comment : I added hamcrest-core-1.3.jar to Test Libraries but the problem still exists . This must be a mistake in my configuration of Netbeans because it does not work properly even for very simple classes . Comment : The issue of my problem was JUnit 4.7 . Using version 4.11 everything works fine . Thanks a lot . Comment : Cool . I didn t run into any of these headaches because I m using Maven and it just figures everything out mostly for you . :", "Question : I try to run junit tests in parallel . But while my test has to finish they dont t . My jenkins running and seems like not gonna end . In my class I have : .. . .. . And .. . Answer : The exception is thrown by System Rules http : stefanbirkner.github.io system-rules . It must replace the SecurityManager in order to test System.exit and afterwards restores the original SecurityManager . This means that you cannot run multiple tests with System Rules in parallel in the same JVM . Comment : I edit question for you Comment : The problem is that you cannot run the tests in parallel because of the testing library that you re using ExpectedSystemExit is part of System Rules . Comment : Can you please suggest what can I do Comment : You could start each test in a separate JVM . See the forkCount option of Maven s Surefire plugin : maven.apache.org surefire maven-surefire-plugin test-mojo.html https : maven.apache.org surefire maven-surefire-plugin test-mojo.html Comment : Thank you Sir I did and this work for me . Thank you for help one more time .", "Question : I ve been working off an automatic grader for the past month and one of my students that understands the material seems to continually fail my JUnit test cases due to returning null . Since it is a Java I course they are still using System.out.println for the time being . Because of this I m using System Rules http : stefanbirkner.github.io system-rules to parse their outputs . Student s Submission : .. . .. . One of my Test Cases : .. . .. . Finally my TestRunner : .. . .. . In the TestRunner if msg.contains timed out will error out because msg is null . If I run the student s code or test anyone else s work the Tests run perfectly fine . If it is something on my end I d like to fix it . Thanks Comment : Can you try working with failure.getException to find out more Comment : I m messing with his code as my other test cases run and changed it to String str failure.toString instead of the getTestHeader and getMessage . My output is tests1 TestJunit : null . Comment : My thoughts are that it resides with his implementation of multiple Scanner objects since his output of the TestRunner is Enter In The value of X for point 1 : Enter In The value of Y for point 1 : Enter In The value of X for point 1 : Enter In The value of Y for point 1 : Comment : It s definitely caused by the multiple Scanner objects . Modifying the student s code to re-use the same scanner causes the test to succeed . Comment : @AdamG . I m the maintainer of System Rules . It is a very special problem but I try to fix it in System Rules . .. . Answer : The problem is fixed in System Rules 1.11.0 . You have to provide multiple lines :", "Question : I ve been working off an automatic grader for the past month and one of my students that understands the material seems to continually fail my JUnit test cases due to returning null . Since it is a Java I course they are still using System.out.println for the time being . Because of this I m using System Rules http : stefanbirkner.github.io system-rules to parse their outputs . Student s Submission : .. . .. . One of my Test Cases : .. . .. . Finally my TestRunner : .. . .. . In the TestRunner if msg.contains timed out will error out because msg is null . If I run the student s code or test anyone else s work the Tests run perfectly fine . If it is something on my end I d like to fix it . Thanks Comment : Can you try working with failure.getException to find out more Comment : I m messing with his code as my other test cases run and changed it to String str failure.toString instead of the getTestHeader and getMessage . My output is tests1 TestJunit : null . Comment : My thoughts are that it resides with his implementation of multiple Scanner objects since his output of the TestRunner is Enter In The value of X for point 1 : Enter In The value of Y for point 1 : Enter In The value of X for point 1 : Enter In The value of Y for point 1 : Comment : It s definitely caused by the multiple Scanner objects . Modifying the student s code to re-use the same scanner causes the test to succeed . Comment : @AdamG . I m the maintainer of System Rules . It is a very special problem but I try to fix it in System Rules . .. . Answer : Scanner is buffered so each constructed instance is consuming more of the text from the mocked System.in than just what s needed for nextDouble . The next Scanner tries to read what s left from the same underlying stream but the input has already been consumed so nextDouble throws NoSuchElementException . You could try to more accurately mock System.in by returning fewer bytes but not indicating the end of the stream until the next call to System.out is detected or change approach and use Runtime.exec to spawn a new JVM and capture all output from that process .", "Question : I m tasked with setting up some JUnit tests for a utility app that is required to System.exit 1 under various circumstances and System Rules http : stefanbirkner.github.io system-rules is great for testing that . The app can also run in GUI mode and it pops a small JFrame . When it s running in the context of a JUnit test with the ExpectedSystemExit rule applied as the JFrame is constructed something surreptitiously exits the jvm . Turn off the ExpectedSystemExit rule and the test runs as it should popping the JFrame just fine it s just I can no longer test for jvm exit s . .. . .. . A guess would be that the SecurityManager System Rules 1.9.0 puts in-place is disallowing some permission s . I m still in the process of collecting more debug info . Until then is there a known solution this issue Comment : Are you invoking setDefaultCloseOperation JFrame.EXIT ON CLOSE It calls SecurityManager.checkExit which System Rules interprets as exit . Comment : @Banthar Indeed further debugging shows setDefaultCloseOperation JFrame.EXIT ON CLOSE is triggering the exit . So now what .. . Answer : setDefaultCloseOperation calls SecurityManager.checkExit to verify exit can be called . System Rules is based on SecurityManager and interprets that as call to exit . This will both cause your test to fail and make it impossible to construct your awt windows . You have to create your windows and call setDefaultCloseOperation before ExpectedSystemExit registers SecurityManager . For example in @BeforeClass method : Comment : That would require altering the app to put in a hook after the JFrame is constructed . I was hoping for an in situ solution . Comment : You can write custom SecurityManager which will act differently when invoked from setDefaultCloseOperation .", "Question : I use maven to build my project and JUnit to test . When I tried to do test using SystemOutRule I could not find this class and could not find org.junit.contrib package . p.s . My JUnit is the latest version 4.12 . .. . .. . my Maven pom.xml .. . .. . my Test class .. . .. . In CDPlayerTest.class I tried to use SystemOutRule but my IDE IntelliJ IDEA reminds me that this class does not exist and I could not find it in the Maven Artifact Search . My project Structure http : i.stack.imgur.com NAgfE.png Comment : Why do you have 2 unit dependencies one test and one compile Remove the last one . Comment : @M.Deinum the first one was automatically added by IntelliJ IDEA when I created the project but IntelliJ IDEA seems to forbid the scope setting cause when I created a JUnit test the compiler forces me to add a new JUnit dependency . So basically if I deleted the second dependency the compiler no longer recognises Junit imports and requires me to add the second dependency again Even though I tried to delete the first dependency it didn t help . .. . Answer : SystemOutRule is part of the System Rules https : stefanbirkner.github.io system-rules project by Stefan Birkner . It is not an official part of JUnit but is open sourced freely available and seems to be well maintained . It s published to Maven Central and you can get the latest version by adding the following dependency to your pom.xml file : Comment : Thank you soooooo much", "Question : I have a JUnit Test that compares two strings : .. . .. . I m getting a org.junit.ComparisonFailure exception on the second test . However IntelliJ shows contents are identical . What am I missing EDIT : Added back the n at the end of the expected string . enter image description here http : i.stack.imgur.com xAlHJ.png Comment : Use log.getLogWithNormalizedLineSeparator in order to avoid problems with system dependent line encodings . Comment : Thanks that worked beautifully .. . Answer : You have different end line sign LF vs CRLF", "Question : I have a JUnit Test that compares two strings : .. . .. . I m getting a org.junit.ComparisonFailure exception on the second test . However IntelliJ shows contents are identical . What am I missing EDIT : Added back the n at the end of the expected string . enter image description here http : i.stack.imgur.com xAlHJ.png Comment : Use log.getLogWithNormalizedLineSeparator in order to avoid problems with system dependent line encodings . Comment : Thanks that worked beautifully .. . Answer : Try adding a log.getLog .trim and removing the n from the end of your expected string . Comment : Did but same error . The Expected is from System.out.println so the n is there but where is the CR coming from Comment : @Rajkishan I was just editing my answer when I got your response : -P . Yes you ll have to remove the n from the expected string for the comparison to work .", "Question : null .. . Answer : I m very new to JUnit and Unit Testing and have a question regarding mocking user input to the Scanner object . I have the following code that I would like to test . Very Basic . Run Code .. . .. . Here is my Testcase .. . .. . So in my Testcase I m trying to mock the input to be 1 so I can receive the expected output . But for some reason my code passes regardless of what the output is . I m not sure what I m doing wrong . The test should fail if the output is not what s expected . Can someone spot the issue Again I m just trying to get a grasp of JUnit and Unit Testing . I m use to testing in Python mostly . Thanks to everyone in advanced . Comment : Install IntelliJ IDEA https : www.jetbrains.com idea right-click the test name and select Debug then you ll be able to trace the execution and easily find out why it fails succeeds . Also read about debugging if you unsure how to do that : jetbrains.com help idea 2016.1 debugging.html https : www.jetbrains.com help idea 2016.1 debugging.html Comment : Do you mean that the test is still green if you change the first line of the test to in.provideText 2 n Comment : How do you run your test Comment : I think that System.out actually receives the text Super Awesome Bros . in the following line : System.out.println Press 1 for Super Awesome Bros . so the test will always pass . Comment : Is it even a good idea to hard-wire a dependency on System.in in a class I d rather provide an input stream via a constructor so the testing code can then use ByteArrayInputStream or something .", "Question : The std coding example shows the emptyStandardInputStream method . But the compiler can t resolve it . 1 . Rule - yep got that . 2 . TextFromStandardInputStream - yep got that . 3 . emptyStandardInputStream - nope doesn t compile . Any ideas Thanks -Simon Comment : What std coding example Can you provide a link Comment : How about TextFromStandardInputStream.emptyStandardInputStream Comment : Did you use import static org.junit.contrib.java.lang.system.TextFromStandardInputStream . .. . Answer : Compiler unable to locate emptyStandardInputStream method . As this is a static method you can use TextFromStandardInputStream class to explicitly locate the method . Comment : add some explanation" ] }
[ "yes-answer-long", "yes-answer-short" ]
java
UNK_RELATION
pg-upgrade@postgresql@124
pg-upgrade -- pg-upgrade formerly called pg migrator allows data stored in postgresql data files to be upgraded to a later @placeholder major version without the data dump reload typically required for major version upgrades e.g .
{ "confidence": [ 44.82025909423828, 36.328514099121094, 30.175806045532227, 28.291242599487305, 24.74466323852539, 24.618375778198242, 23.62059211730957, 22.504045486450195, 22.198766708374023, 20.058181762695312, 19.947750091552734, 19.507896423339844, 19.26586151123047, 18.973121643066406, 17.632793426513672, 17.13591194152832, 16.20686912536621, 15.600044250488281, 15.600044250488281, 15.600044250488281, 13.498859405517578, 13.498859405517578, 13.498859405517578, 13.498859405517578, 13.498859405517578, 13.498859405517578, 13.498859405517578, 13.498859405517578, 13.498859405517578, 13.498859405517578, 13.138351440429688, 11.03407096862793, 11.03407096862793, 11.03407096862793, 11.03407096862793, 11.03407096862793, 11.03407096862793, 11.03407096862793, 11.03407096862793, 11.03407096862793, 11.03407096862793, 11.03407096862793, 11.03407096862793, 11.03407096862793, 11.03407096862793, 11.03407096862793, 11.03407096862793, 11.03407096862793, 11.03407096862793, 11.03407096862793, 11.03407096862793, 11.03407096862793, 11.03407096862793, 11.03407096862793, 11.03407096862793, 11.03407096862793, 11.03407096862793, 11.03407096862793, 11.03407096862793, 11.03407096862793, 11.03407096862793, 11.03407096862793, 11.03407096862793, 11.03407096862793, 11.03407096862793, 11.03407096862793, 11.03407096862793, 11.03407096862793, 11.03407096862793, 11.03407096862793, 11.03407096862793, 11.03407096862793, 11.03407096862793 ], "content": [ "@a horse with no name When I quoted paths on other PG tools e.g .", "I m trying to upgrade postgresql database from 9.1 to 9.4 .", "If one was to upgrade Postgres to 9.4 from 9.1 using the --link option then setup replication using pg basebackup would the standby server bring over the hard links with the pg basebackup or will -D new destination data dir be a clean unlinked version", "Afterwards if failing over to standby then failing back would that implement a non linked version back on the primary if specifying a new data directory as well", "I am running an Amazon EC2 CentOS 6.6 server instance with pre-installed PostgreSQL 8.4.20 server which I want to upgrade to 9.4.1 using pg-upgrade via SSH .", "Both Postgresql 9.1 and 9.3 are running properly .", "I just did an upgrade from 9.4 to 9.5 with a regular user account and everything worked fine so I guess the file is stored in some temp directory of the current user .", "Despite having a lot of tables you don t have a really huge data 2kk is not all that much nowadays .I think you should try dump restore on a separate machine .", "Make sure that you run this command from a directory that is writable by the postgres user like tmp or var lib postgresql :", "I m trying to run pg-upgrade on Windows 2008R2 but I m getting the error : .. . .. . cannot write to log file pg-upgrade internal.log Failure exiting .. . .. . I saw a similar question for Linux at 23216734 http : stackoverflow.com questions 23216734 cannot-write-to-log-file-pg-upgrade-internal-log-when-upgrading-from-postgresq which explains that the issue is with permissions but it doesn t help with Windows as I do not have a user named postgres .. . .. . Same goes for the pg-upgrade docs http : www.postgresql.org docs current static pgupgrade.html which mention a postgres user : .. . .. . RUNAS USER : postgres CMD.EXE .. . .. . But again I do not have such a user and am trying to run this command as Administrator so I don t understand why I would have no permission .", "I am using this technique : .. . .. . http : momjian.us main writings pgsql pg upgrade.pdf .. . .. . The upgrade has been running since 250 hours and it has been on the step saving database definition since 160 hours .", "That makes it clear that using 9.3 s pg dump does not help with this specific problem it will only on future upgrades .", "You should not run that as Administrator a regular user is enough but you have to make sure that the access rights on both data directories are setup correctly", "I ran the 9.4 version of pg-upgrade as follows : .. . .. . I get : .. . .. . The folder exists I set the permissions to 777 even gave the postgres user ownership of the directory structure but I m still getting the same error .", "What I ve done so far : Downloaded and installed PostgreSQL 9.4.1 with yum configured it .", "C : temp C : Apps postgresql pgsql-9.5.0 bin pg upgrade.exe --old-datadir E : PGSQL data --new-datadir E : PGSQLData pgsql-9.5 --old-bindir C : Apps postgresql pgsql-9.4.5.3 bin --new-bindir C : Apps postgresql pgsql-9.5.0 bin .. . .. . Whereas before I was trying to run pg-upgrade from the working directory PGSQL bin which did not have a Write permissions to Everyone .", "This error .. . .. . check failed for : postgres 9.1 bin Permission denied .. . .. . happens because access permission on directories x bit need to be set in every directory in the hierarchy from the root to the directory containing these executables files .", "I keep on getting the above error whenever I run the following command via a postgres user .", "cannot write to log file pg-upgrade internal.log Failure exiting .. . .. . I m using Ubuntu 13.10 .", "thanks man it works", "Here is an odd question .", "Running in verbose mode does not provide any extra info .", "The partition with that contains the old binaries is mounted under media and I have read-write access .", "Any ideas what could be causing this", "It s not sufficient that postgres have permissions in the last directory of the path .", "It needs to have x bit on every directory from the root down to the last directory of the path .", "@DanielV rit That s it", "Why don t you make it an answer so I can close the question", "This is detailed at Unix.SE in : .. . .. . Do the parent directory s permissions matter when accessing a subdirectory", "http : unix.stackexchange.com questions 13858", "Using .. . .. . TYPE DATABASE USER METHOD .. . local all all trust .. . .. . or .. . .. . TYPE DATABASE USER METHOD .. . local all all peer .. . .. . I can t start the old server getting : .. . .. . Using the default setting .. . .. . TYPE DATABASE USER METHOD .. . local all all ident .. . .. . is the only method that allows me to start the server but then I get the following error : .. . .. . I have been reading more than 10 hours straight everything related before I posted this but can t seem to find the solution .", "Configured the postgres user to have the same password on the UNIX server and for both database instances .", "Both database instances are functioning correctly - old one on port 5432 new on 5433 .", "What I am trying to do : .. . .. . Here is my issue with pg hba.conf .", "Will be very grateful if you can give me any hints .", "Are you sure there s nothing else in pg hba.conf that could be involved", "It doesn t make any sense for trust or peer auth to produce the error fe sendauth : no password supplied as that suggests that the server requested password authentication .", "@Craig Ringer yes these are the first lines in pg hba.conf .", "I find it weird too will post here if I find the underlying issue .", "Thanks", "I even tried to do .. . .. . And run pg-upgrade in the new command-prompt but am getting the same error .", "Also I am not sure which directory needs permissions", "Where is the process trying to write pg-upgrade internal.log to", ".. . .. . More details : .. . .. . The command I m running is : .. . .. . From the same command-prompt that gives the error I ran the following commands and they all worked creating an empty file in the respective directories so write permissions to the directories that are passed to pg-upgrade are allowed : .. . .. . So now I m even more puzzled than before.. . .. . .. . .. . .. . Even more details : .. . .. . I see that the command to create the internal log file is at src bin pg-upgrade option.c L101 https : github.com postgres postgres blob master src bin pg-upgrade option.c L101 .. . .. . Which calls fopen priv INTERNAL LOG FILE a defined at src bin pg-upgrade file.c L243 https : github.com postgres postgres blob master src bin pg-upgrade file.c L243 .. . .. . But I m not sure to which directory it is trying to write .", "If I would know that then I can check the permissions on that directory .", "Any ideas", "Please show us the complete command-line that you use to run pg-upgrade .", "@a horse with no name - I updated the question to show the full command-line .", "I am logged on to Windows as the Administrator so the directories should be accessible to the user account .", "Do you know where does pg-upgrade try to save pg-upgrade internal.log to", "No idea .", "I had to quote the path to the .exe and I used the wrong way of quoting the path which then resulted in very strange errors .", "That s why I asked for the full command .", "initdb it failed so I try to avoid that .", "For good measure I tried now to quote all the paths as well as changing the separator to but I still get the same error .", "So the source code comment at src bin pg-upgrade file.c L243 https : github.com postgres postgres blob master src bin pg-upgrade file.c L243 fopen file with no group other permissions gave me an idea .", "I created a temp folder at C : temp and gave Write permissions to Everyone and then ran pg-upgrade from that directory i.e .", "Now I don t get the cannot write to log file pg-upgrade internal.log error anymore .", "The docs http : www.postgresql.org docs current static pgupgrade.html actually say pg-upgrade requires write permission in the current directory .", "I am in process of a pg-upgrade from 8.4 to 9.3 .", "This is the current output of strace last few lines : .. . .. . Is there a way to estimate how much time it will take", "There are 3 300 000 objects in pg class and the database has around 765 000 tables .", "There are around 3-5 columns in most tables and around 2 000 000 records in total .", "From what I can see pg-upgrade should be really fast .", "Do you really have any system activity like disk IO or CPU usage", "Or does it look like there is something locked", "This extreme slowness with a large number of objects is a known problem presumably fixed but only in most recent versions .", "See pg-upgrade on high number tables database issues http : www.postgresql.org message-id CAFj8pRAv hr5BoPjogg dD D iHjK3KJCA4DgMh+uZnVzBzn7w@mail.gmail.com or Pg upgrade speed for many tables http : www.postgresql.org message-id 20121105200817.GA16323@momjian.us", "@DanielV rit pg-upgrade will be using 9.3 s pg dump though so it should be on the current release .", "To the OP : You should see if you can connect to the socket it s using and take a look at pg stat activity .", "My suggestion though : postgresql.org support professional support http : www.postgresql.org support professional support .", "@user3455531 Out of interest how long does a normal pg dump of this database take", "@Craig : quoting Jeff Janes in the first thread : Unfortunately the worst of those bottlenecks were in the server so they depend on what database you are upgrading from ." ] }
{ "confidence": [ 44.47102737426758, 41.14012145996094, 35.086143493652344, 33.358856201171875, 28.258609771728516, 24.37395477294922 ], "content": [ "Question : I m trying to run pg-upgrade on Windows 2008R2 but I m getting the error : .. . .. . cannot write to log file pg-upgrade internal.log Failure exiting .. . .. . I saw a similar question for Linux at 23216734 http : stackoverflow.com questions 23216734 cannot-write-to-log-file-pg-upgrade-internal-log-when-upgrading-from-postgresq which explains that the issue is with permissions but it doesn t help with Windows as I do not have a user named postgres .. . .. . Same goes for the pg-upgrade docs http : www.postgresql.org docs current static pgupgrade.html which mention a postgres user : .. . .. . RUNAS USER : postgres CMD.EXE .. . .. . But again I do not have such a user and am trying to run this command as Administrator so I don t understand why I would have no permission . I even tried to do .. . .. . And run pg-upgrade in the new command-prompt but am getting the same error . Also I am not sure which directory needs permissions Where is the process trying to write pg-upgrade internal.log to .. . .. . More details : .. . .. . The command I m running is : .. . .. . From the same command-prompt that gives the error I ran the following commands and they all worked creating an empty file in the respective directories so write permissions to the directories that are passed to pg-upgrade are allowed : .. . .. . So now I m even more puzzled than before.. . .. . .. . .. . .. . Even more details : .. . .. . I see that the command to create the internal log file is at src bin pg-upgrade option.c L101 https : github.com postgres postgres blob master src bin pg-upgrade option.c L101 .. . .. . Which calls fopen priv INTERNAL LOG FILE a defined at src bin pg-upgrade file.c L243 https : github.com postgres postgres blob master src bin pg-upgrade file.c L243 .. . .. . But I m not sure to which directory it is trying to write . If I would know that then I can check the permissions on that directory . Any ideas Comment : Please show us the complete command-line that you use to run pg-upgrade . You should not run that as Administrator a regular user is enough but you have to make sure that the access rights on both data directories are setup correctly Comment : @a horse with no name - I updated the question to show the full command-line . I am logged on to Windows as the Administrator so the directories should be accessible to the user account . Do you know where does pg-upgrade try to save pg-upgrade internal.log to Comment : No idea . I just did an upgrade from 9.4 to 9.5 with a regular user account and everything worked fine so I guess the file is stored in some temp directory of the current user . I had to quote the path to the .exe and I used the wrong way of quoting the path which then resulted in very strange errors . That s why I asked for the full command . Comment : @a horse with no name When I quoted paths on other PG tools e.g . initdb it failed so I try to avoid that . For good measure I tried now to quote all the paths as well as changing the separator to but I still get the same error . .. . Answer : So the source code comment at src bin pg-upgrade file.c L243 https : github.com postgres postgres blob master src bin pg-upgrade file.c L243 fopen file with no group other permissions gave me an idea . I created a temp folder at C : temp and gave Write permissions to Everyone and then ran pg-upgrade from that directory i.e . C : temp C : Apps postgresql pgsql-9.5.0 bin pg upgrade.exe --old-datadir E : PGSQL data --new-datadir E : PGSQLData pgsql-9.5 --old-bindir C : Apps postgresql pgsql-9.4.5.3 bin --new-bindir C : Apps postgresql pgsql-9.5.0 bin .. . .. . Whereas before I was trying to run pg-upgrade from the working directory PGSQL bin which did not have a Write permissions to Everyone . Now I don t get the cannot write to log file pg-upgrade internal.log error anymore . The docs http : www.postgresql.org docs current static pgupgrade.html actually say pg-upgrade requires write permission in the current directory .", "Question : null .. . Answer : Here is an odd question . If one was to upgrade Postgres to 9.4 from 9.1 using the --link option then setup replication using pg basebackup would the standby server bring over the hard links with the pg basebackup or will -D new destination data dir be a clean unlinked version Afterwards if failing over to standby then failing back would that implement a non linked version back on the primary if specifying a new data directory as well", "Question : I m trying to upgrade postgresql database from 9.1 to 9.4 . I ran the 9.4 version of pg-upgrade as follows : .. . .. . I get : .. . .. . The folder exists I set the permissions to 777 even gave the postgres user ownership of the directory structure but I m still getting the same error . Running in verbose mode does not provide any extra info . The partition with that contains the old binaries is mounted under media and I have read-write access . Any ideas what could be causing this Comment : It s not sufficient that postgres have permissions in the last directory of the path . It needs to have x bit on every directory from the root down to the last directory of the path . Comment : @DanielV rit That s it Why don t you make it an answer so I can close the question .. . Answer : This error .. . .. . check failed for : postgres 9.1 bin Permission denied .. . .. . happens because access permission on directories x bit need to be set in every directory in the hierarchy from the root to the directory containing these executables files . This is detailed at Unix.SE in : .. . .. . Do the parent directory s permissions matter when accessing a subdirectory http : unix.stackexchange.com questions 13858", "Question : null .. . Answer : I am in process of a pg-upgrade from 8.4 to 9.3 . I am using this technique : .. . .. . http : momjian.us main writings pgsql pg upgrade.pdf .. . .. . The upgrade has been running since 250 hours and it has been on the step saving database definition since 160 hours . This is the current output of strace last few lines : .. . .. . Is there a way to estimate how much time it will take There are 3 300 000 objects in pg class and the database has around 765 000 tables . There are around 3-5 columns in most tables and around 2 000 000 records in total . Comment : From what I can see pg-upgrade should be really fast . Despite having a lot of tables you don t have a really huge data 2kk is not all that much nowadays .I think you should try dump restore on a separate machine . Do you really have any system activity like disk IO or CPU usage Or does it look like there is something locked Comment : This extreme slowness with a large number of objects is a known problem presumably fixed but only in most recent versions . See pg-upgrade on high number tables database issues http : www.postgresql.org message-id CAFj8pRAv hr5BoPjogg dD D iHjK3KJCA4DgMh+uZnVzBzn7w@mail.gmail.com or Pg upgrade speed for many tables http : www.postgresql.org message-id 20121105200817.GA16323@momjian.us Comment : @DanielV rit pg-upgrade will be using 9.3 s pg dump though so it should be on the current release . To the OP : You should see if you can connect to the socket it s using and take a look at pg stat activity . My suggestion though : postgresql.org support professional support http : www.postgresql.org support professional support . Comment : @user3455531 Out of interest how long does a normal pg dump of this database take Comment : @Craig : quoting Jeff Janes in the first thread : Unfortunately the worst of those bottlenecks were in the server so they depend on what database you are upgrading from . That makes it clear that using 9.3 s pg dump does not help with this specific problem it will only on future upgrades .", "Question : null .. . Answer : I am running an Amazon EC2 CentOS 6.6 server instance with pre-installed PostgreSQL 8.4.20 server which I want to upgrade to 9.4.1 using pg-upgrade via SSH . What I ve done so far : Downloaded and installed PostgreSQL 9.4.1 with yum configured it . Configured the postgres user to have the same password on the UNIX server and for both database instances . Both database instances are functioning correctly - old one on port 5432 new on 5433 . What I am trying to do : .. . .. . Here is my issue with pg hba.conf . Using .. . .. . TYPE DATABASE USER METHOD .. . local all all trust .. . .. . or .. . .. . TYPE DATABASE USER METHOD .. . local all all peer .. . .. . I can t start the old server getting : .. . .. . Using the default setting .. . .. . TYPE DATABASE USER METHOD .. . local all all ident .. . .. . is the only method that allows me to start the server but then I get the following error : .. . .. . I have been reading more than 10 hours straight everything related before I posted this but can t seem to find the solution . Will be very grateful if you can give me any hints . Comment : Are you sure there s nothing else in pg hba.conf that could be involved It doesn t make any sense for trust or peer auth to produce the error fe sendauth : no password supplied as that suggests that the server requested password authentication . Comment : @Craig Ringer yes these are the first lines in pg hba.conf . I find it weird too will post here if I find the underlying issue . Thanks", "Question : I keep on getting the above error whenever I run the following command via a postgres user . cannot write to log file pg-upgrade internal.log Failure exiting .. . .. . I m using Ubuntu 13.10 . Both Postgresql 9.1 and 9.3 are running properly . .. . Answer : Make sure that you run this command from a directory that is writable by the postgres user like tmp or var lib postgresql : Comment : thanks man it works" ] }
[ "yes-answer-long", "yes-answer-short" ]
postgresql
UNK_RELATION
jquery-globalization@parsing@153
jquery-globalization -- jquery-globalize former jquery-global is a library for the globalization of strings dates and numbers currencies formatting and @placeholder for different cultures in javascript.it enables you to add globalization support to your javascript applications .
{ "confidence": [ 84.9613265991211, 81.10603332519531, 74.8352279663086, 72.80948638916016, 69.56674194335938, 69.47982788085938, 65.97369384765625, 65.57469177246094, 64.68907165527344, 61.53178405761719, 60.57770919799805, 56.43532180786133, 55.868343353271484, 55.792938232421875, 54.9603385925293, 54.813018798828125, 53.72526931762695, 53.54766082763672, 53.37835693359375, 52.91434860229492, 51.40563201904297, 51.312740325927734, 51.0426025390625, 51.0426025390625, 49.833858489990234, 48.50353240966797, 48.389739990234375, 47.92875289916992, 47.804927825927734, 47.71254348754883, 47.523033142089844, 46.746742248535156, 46.54882049560547, 46.107669830322266, 44.56665802001953, 43.65714645385742, 43.2017936706543, 42.92381286621094, 42.68947219848633, 42.628360748291016, 42.414306640625, 42.414306640625, 41.99310302734375, 41.81338119506836, 41.68346405029297, 41.10288619995117, 41.082481384277344, 40.87310791015625, 40.68656539916992, 40.62581253051758, 40.54957962036133, 40.475467681884766, 40.38228225708008, 40.34342956542969, 39.01585388183594, 38.9696044921875, 38.922698974609375, 38.538516998291016, 38.44937515258789, 38.39038848876953, 38.061309814453125, 37.86483383178711, 36.220088958740234, 36.142032623291016, 35.40613555908203, 35.2509880065918, 35.2509880065918, 35.03278732299805, 34.96657180786133, 34.28129196166992, 33.57181167602539, 32.9044189453125, 32.705596923828125, 32.570125579833984, 32.243263244628906, 32.18952560424805, 31.827964782714844, 31.702640533447266, 31.627105712890625, 31.28203582763672, 30.910968780517578, 30.62683868408203, 30.597251892089844, 29.99459457397461, 29.389774322509766, 29.365896224975586, 29.242244720458984, 29.218055725097656, 29.0753173828125, 28.891803741455078, 28.437164306640625, 28.350318908691406, 28.177459716796875, 28.177032470703125, 28.021514892578125, 28.01577377319336, 27.74364471435547, 27.74364471435547, 27.016258239746094, 26.9459228515625 ], "content": [ "1- Get the Globalization library for jQuery .", "Jquery Globalization works great .", "I believed that Globalization jQuery plugin GitHub https : github.com jquery-globalize will provide this functionality for formatting numbers and dates in given culture out-of-the-box but it seems it do not .", "I think the solution is using the JQuery Globalization library .", "Did you download the jquery-globalization here", "We are using jquery and its plugin globalization .", "The jQuery globalization plugin from Microsoft has been accepted as a offical jQuery plugin a couple of years ago http : blog.jquery.com 2010 10 04 new-official-jquery-plugins-provide-templating-data-linking-and-globalization .. . .. . You can find the latest version here along with examples : https : github.com jquery-globalize .", "And Where is the link for latest version of Microsoft Jquery Globalization plugin", "I try to use the jQuery Globalization plugin in order to fix the comma problem with jquery unobstructive client validation .", "Using the JQuery globalization plugin I want to format numbers to use as many decimals needed to represent the correct value .", "I have come across Globalization former jQuery plugin and it looks quite promising .", "I am using the Globalize jQuery plugin to have globalization correct number and date formats on the client-side in my MVC website .", "I m developing an ASP.NET MVC 3 app that uses both jQuery Globalization https : github.com jquery jquery-global and jQuery UI Slider http : jqueryui.com demos slider .", "Therefore you ll have to change your code to use the non-jquery Globalization plugin .", "Have you seen this SO question http : stackoverflow.com questions 9204855 cant-get-the-jquery-globalization-to-work", "I am using the jQuery Globalize https : github.com jquery-globalize library which uses cldr for internationalization .", "You need to install jquery-globalization and then handle the load of the file with the Culture you need .", "IU can t get the client-server side validation to actually accept the globalization using jQuery .", "I am using MVC4.0 and Jquery globalization plugin from Microsift http : www.scottgu.com blogposts jQueryGlobalizationDemos.zip which i got from http : weblogs.asp.net scottgu archive 2010 06 10 jquery-globalization-plugin-from-microsoft.aspx .", "Globalize provides functionality for displaying dates for different cultures .", "I m using jQuery Globalize https : github.com jquery-globalize with Node.js .", "github.com jquery-globalize https : github.com jquery-globalize", "Added the globalization attribute on the web.config file .", "ASP .NET MVC DateTime globalization .", "I m trying to use the jQuery Globalize plugin http : github.com jquery-globalize .", "The problem was related with the jQuery Validation Globalize Library version .", "I am using jQuery Globalize https : github.com jquery-globalize plugin along with jQuery validation .", "Something like this probably : link http : demos.kendoui.com web globalization index.html", "While there is not an equivelant format specifier jQuery Globalize Date Formatting https : github.com jquery-globalize date-formatting the same format can be accomplished by verbose for clarity :", "Is in the Web.config globalization culture en-CA uiCulture auto .", "Refer to the Globalize documentation : github.com jquery-globalize core https : github.com jquery-globalize core I believe this is referring to your other question .", "I am trying to do this with jquery-globalization plugin but it fails in the browser client script error indexOf .. . .. . I used to use the jquery calculation plugin like this : .. . .. . and it worked but I m changing to jquery-globalization because of some i18n options it has and would like to use just one of those two plugins rather than both of them on the same site .", "I have a solution that works fine for all sorts of globalization cultures until I use dot .", "I then have to use jQuery Globalization to show the correct value in the UI this way : .. . .. . It works at least.. . .. . .. . My question is : .. . .. . Is there a better or standard way of doing this", "edit updated : perhaps the value is null sometimes : .. . .. . Looking at the source code to the globalization parseFloat function the first thing it does with the first argument which indeed must be a string not a jQuery object is call .indexOf .", "On the other hand take a look at Globalize https : github.com jquery-globalize .", "@met.lord - this article is a bit better and describes globalization of unobtrusive-validation .", "I want to add support for the General Date Time Format to jQuery Globalize as it s the default format for outputting a DateTime as a string in .NET .", "Looking at the culture definition syntax https : github.com jquery-globalize defining-culture-information there is simply no provision for displaying different currencies using a given locale .", "I downloaded this jquery-globalize package will aids me with validation of dates from different locale .", "www.datejs.com http : www.datejs.com vs . https : github.com jquery-globalize .", "All I knew is Jquery globalize supports more culture than datejs .", "I installed it through NuGet.. . then downloaded the cultures files from there github.com jquery-globalize", "I am trying to Globalize https : github.com jquery-globalize .", "EDIT .. . .. . After having take a look to mplungjan comment I would to know if it is possible to use the I18N format dictionary coming from the globalization plugin into the jquery masked input plugin .", "WIP implementation at https : github.com jquery-globalize pull 447 .", "Examples of what i want : .. . .. . 1.12 - 1.12 .. . 1.123 - 1.123 .. . 1 - 1 .. . .. . Link to library : https : github.com jquery-globalize", "Using jquery-globalize how can I either retrieve an array of localized strings or get one of those strings from a number range", "Located here https : github.com jquery-globalize readme .. . .. . You must get the lastest script", "Since I want to have the ability to validate the input in another language formats in this particular context it s German with the decimal number format of 0 75 whereas in the US it would be 0.75 I ve added the following lines jQuery Globalization PlugIn http : weblogs.asp.net scottgu archive 2010 06 10 jquery-globalization-plugin-from-microsoft.aspx AFTER the previously mentioned jquery.validate.min.js and jquery.validate.unobtrusive.min.js .", "How to handle dates with different cultures i.e how can i use common javascript code to handle dates for all cultures .", "I ve submitted an issue to globalize https : github.com jquery-globalize issues on the hunch that others might make the same assumptions and a slight change to documentation could clarify - it s here : jquery-globalize 610 https : github.com jquery-globalize issues 610 .", "I suppose you can use the Globalization plugin to validate a specific culture - just check it out .", "We re working the support for non-gregorian calendars at : .. . .. . https : github.com jquery-globalize issues 320 .", "Like you would do with the calendar.ui cultures of JQuery calendars .", "I am trying out some globalization in an asp.net mvc2 application but can t get it to work fully .", "I m checking into Jquery now javascript Globalize -- it s intricate but very detailed with several dialects for each language .", "the article references an old version of globalization but in my answer you will see the new name to use", "What i tried : using the Globalization plugin setting Globalize.culture property and hoping that Globalize.format Globalize.parseFloat 1.2435677777 10 en-US will format the value with the desired decimal separator .", "DateJS supports less cultures and only Date Time formatting parsing and manipulating as well as time zones conversion unsupported by Globalize .", "I would like to avoid using to write javascript with jquery myself for the validation .", "The object to call the library is no more .global or anything like that but Globalize .", "The only documented way https : github.com jquery-globalize currency-formatting to modify the currency symbol in Globalize is to change the numberFormat.currency.symbol property of a given culture in this case the fr-FR culture .", "The GitHub page https : github.com jquery-globalize extend documents the addCultureInfo function but I ve been able to get this working with such a deep path : .. . .. . calendars standard patterns .", "So if Globalize is global i.e .", "The reason this is happening is that jquery.validate and jquery.glob uses a function called format if validate is added after glob then the validate.format function is called which breaks globalization .", "The script I use to load Globalization : .. . .. . On the View I use unobtrusive-validation : .. . .. . To load all the libraries I use the Shared Layout file :", "I started by following the advice in Scott Hanselman s blog on this topic - you can read about this here : .. . .. . http : www.hanselman.com blog GlobalizationInternationalizationAndLocalizationInASPNETMVC3JavaScriptAndJQueryPart1.aspx .. . .. . I had to make some changes to use Globalize instead of jQuery Global now jQuery Global is dead .", "Have Globalize display dates that are calculated with DateJS .", "And to I18N the client we are using this plugin https : github.com nikgraf jquery-global .", "Globalize supports more than just Date Time formatting and Parsing different Calendar systems with automatic conversion in the related field number currency percentage formatting translating strings checking if given language is written Right-To-Left .", "Using val on jquery object works fine .", "I wrote this up in the following blog post in case that s helpful : .. . .. . http : icanmakethiswork.blogspot.co.uk 2012 09 globalize-and-jquery-validate.html .. . .. . My blog post features a link-to this script jquery.validate.globalize.js which forces jQuery Validate to use Globalize for number date-range parsing .", "So after reading the documentation https : github.com jquery-globalize parseDate I added a reference to the following script .", "I think the intended usage is to use Grunt http : gruntjs.com to package the cultures you need along with the Globalize code itself .", "Before you can use any of the Globalize functions you have to load the correct cldr-data and pass it to Globalize .", "Edit : .. . .. . Using the links in the answer below I solved the problem using the Globalize plugin https : github.com jquery-globalize : .. . .. . Of course I had to add a reference to the Globalize plugin in the page and also a reference to the culture that I wanted to use all available on the plugin s site .", ".. . .. . I can install JQuery plugins .", "I am using the library http : github.com nje jquery-glob as a tool to display currency and dates etc according to user wishes .", "I have a jquery currency input and I am using this code : .. . .. . The input works perfectly as it shows the number as a number with the or sign depending on globalize .", "If you don t need to do math on dates it might be that the server and APIs take care of it but need to display internationalized dates use Globalize .", "The answer is to use jQuery UI s Datepicker http : jqueryui.com datepicker .", "I don t know javascript or jquery good enough to tell you any workarounds .", "Global Globalize through window.Globalize . http : jsfiddle.net ambiguous 7ta9d .", "This will make the globalize functions to work with the culture .", "is that issue in globalize", "http : stackoverflow.com questions 31287971 asp-net-mvc-datetime-globalization-the-field-date-must-be-a-date .. . .. . Had the exact same problem so take a look at the answer and hopefully it helps", "For whatever reason I had to change my globalize reference from : .. . .. . script src @Url.Content Scripts globalize globalize.js type text javascript script .. . .. . to .. . .. . And that solved my problem .", "I have the globalize.js file and I want to force the dateformat to dd mm yyyy at a global level somewhere so then all jquery validation and datepicker etc .", "I have corrected this behaviour in my Globalize fork https : github.com erethnor globalize which was as simple as removing that toLocaleString iirc .", "I am developing the mobile app with multilanguage support using phonegap and jquery.I am using Jquery i18n for multi language support .", "If you d like to support all cultures with a single require : .. . .. . should do the trick .", "The limitation is in the way the jQuery Slider receives the value .", "Could you perhaps provide some details on how to add and package cultures with Grunt and then I will accept your answer", "Is there a way to check if this initialization has already happened and Globalize is ready for use", "Shall I need separate implementation for client-side specific strings using jquery and resource file for server-side messages .", "I am using Asp.Net Mvc3 and the unobtrusive jquery validation .", "Followed the example shown in the site https : code.google.com p jquery-i18n-properties .", "You should use the Globalize NPM package https : npmjs.org package globalize if you re not doing that already .", "There is no date notation that is shared by all cultures ." ] }
{ "confidence": [ 91.30023956298828, 91.30023956298828, 89.1241226196289, 87.40142059326172, 86.83078002929688, 85.36129760742188, 85.10066986083984, 81.34993743896484, 80.34771728515625, 78.70606994628906, 78.340087890625, 76.7301025390625, 75.26840209960938, 74.8375244140625, 73.4947280883789, 72.90819549560547, 71.78394317626953, 71.1750717163086, 70.5848159790039, 69.78285217285156 ], "content": [ "Question : I am trying to convert a float from one culture to another and seems nothing i found online was working for me . The problem is : .. . .. . 1 . I have a parameter coming from external resource web service in a specific culture . 2 . the result is send to an MVC application and VALIDATED depending on the current culture settings . this means i have to somehow convert from the static culture en-US to whatever is selected ON THE CLIENT before the data is sent to the server for processing so all the data from the client is on one culture . I believed that Globalization jQuery plugin GitHub https : github.com jquery-globalize will provide this functionality for formatting numbers and dates in given culture out-of-the-box but it seems it do not . What i tried : using the Globalization plugin setting Globalize.culture property and hoping that Globalize.format Globalize.parseFloat 1.2435677777 10 en-US will format the value with the desired decimal separator . However it seems it does not worked for me . If anyone can point what i did wrong and give a better working example - will be great . .. . Answer : As the Globalize.format function always returns a . decimal separator as far as i understood there is a little hacky solution but at least it works . The point is at replacing the neutral decimal separator with that for the current culture", "Question : I am trying to convert a float from one culture to another and seems nothing i found online was working for me . The problem is : .. . .. . 1 . I have a parameter coming from external resource web service in a specific culture . 2 . the result is send to an MVC application and VALIDATED depending on the current culture settings . this means i have to somehow convert from the static culture en-US to whatever is selected ON THE CLIENT before the data is sent to the server for processing so all the data from the client is on one culture . I believed that Globalization jQuery plugin GitHub https : github.com jquery-globalize will provide this functionality for formatting numbers and dates in given culture out-of-the-box but it seems it do not . What i tried : using the Globalization plugin setting Globalize.culture property and hoping that Globalize.format Globalize.parseFloat 1.2435677777 10 en-US will format the value with the desired decimal separator . However it seems it does not worked for me . If anyone can point what i did wrong and give a better working example - will be great . .. . Answer : Works for me if i specify a format for the format function . Gives : 1 24", "Question : I am using MVC4.0 and Jquery globalization plugin from Microsift http : www.scottgu.com blogposts jQueryGlobalizationDemos.zip which i got from http : weblogs.asp.net scottgu archive 2010 06 10 jquery-globalization-plugin-from-microsoft.aspx . This plugin i am using for amount formating e.g .. . .. . This plugin is working fine when i am giving reference to glob.js and glob.all.js files directly on page View but when i am giving reference to same files on master page its crashing in Jquery.validate.js file . I am getting error as replace function is undefined . Please help me . And Where is the link for latest version of Microsoft Jquery Globalization plugin Thanks in Advance .. . Answer : The jQuery globalization plugin from Microsoft has been accepted as a offical jQuery plugin a couple of years ago http : blog.jquery.com 2010 10 04 new-official-jquery-plugins-provide-templating-data-linking-and-globalization .. . .. . You can find the latest version here along with examples : https : github.com jquery-globalize . A more complete example of your code is needed to see why you get the error you get . Try to show it on http : jsfiddle.net maybee", "Question : I try to use the jQuery Globalization plugin in order to fix the comma problem with jquery unobstructive client validation . However i tried many many solutions and there no good solution to fix this . I am on a non-english localization computer and this is important that my customers enter a decimal value like 123 66 and not 123.66 . ASP.NET validation tell me that the price must be a number meh are you serious lol .. . .. . I am getting this javascript error when i try to do the fix . Here my code . Layout.cshtml .. . .. . glob.fix.js .. . .. . I can t understand. . it should work since i added Scripts globalize.js . Any idea or you might have a bette solution for having client validation work and lets me enter comma as decimal values Comment : Thank you for the range validator code .. . Answer : I found the way to finally get rid of the decimal problem with comma seperator Here a picture of the result No more validation problems . enter image description here http : i.stack.imgur.com l2zPU.png .. . .. . The steps to the fix . 1- Get the Globalization library for jQuery . Located here https : github.com jquery-globalize readme .. . .. . You must get the lastest script Also i found some answers out there that was outdated . The object to call the library is no more .global or anything like that but Globalize . 2- Include the scripts in your project . You must add them after jquery.validation stuff . 3- Replace some methods of the validator . This will override the methods for number and range validation which was causing problems . Globalize.parseFloat This will actually replace anything that contains to . if you selected a culture that require it . After this. . You must add . This will make the globalize functions to work with the culture . The complete code look like.. . Comment : You can mark our own answer as the accepted answer . Merci : - Comment : Thanks . I did : Comment : Where are the Globalize.js file located in the github url", "Question : I am setting up a multilingual site that deals with currencies . I want to be able to display correct currency formats based on the selected language . The server-side PHP stuff is a doddle . Using a combination of PHPs NumberFormatter and strftime I have been able to format currencies and dates correctly . There is however a requirement to have the same degree of formatting done client-side with javascript . I have come across Globalization former jQuery plugin and it looks quite promising . If I want to display a dollar value in American English I can do something like this : .. . .. . and this will output : .. . .. . While doing : .. . .. . outputs : .. . .. . which looks perfect . however I have a need to output multiple currencies . So if I have fr-FR selected as my preferred culture how can I output say a dollar value like so : .. . .. . so that the format is French but the value is American Dollar . I have looked but not found anyway to pass a currency symbol as an argument . .. . Answer : The only documented way https : github.com jquery-globalize currency-formatting to modify the currency symbol in Globalize is to change the numberFormat.currency.symbol property of a given culture in this case the fr-FR culture . This will kind of do what you want but it s not a very elegant solution and you would need to manually build a table of correct symbols for each locale and write another method to swap them out . n.b . It is possible to pass a third argument to Globalize.format with a different locale identifier but this just formats the number using that locale s cultural settings . Looking at the culture definition syntax https : github.com jquery-globalize defining-culture-information there is simply no provision for displaying different currencies using a given locale . If you were to look elsewhere the dojo currency http : dojotoolkit.org api dojo currency module in the Dojo Toolkit does do exactly what you need using data from the Unicode Common Locale Data Repository http : en.wikipedia.org wiki CLDR to determine how to represent various currencies in different locales . So you can set your locale to fr write currency.format 3899.888 currency : USD and it will output the currency in USD in the correct format for the French locale . Comment : thanks for your feedback Not what I wanted to hear but very detailed and informative none the less . +1 for pointing to the Dojo solution .", "Question : In my class I have the property : .. . .. . Which renders 31 12 2012 12 : 00 : 00 AM by default with the culture set to en-CA and 12 31 2012 12 : 00 : 00 AM if the culture is en-US . The JQuery validation works fine in en-US but in en-CA complains about The field Date must be a date . I think the solution is using the JQuery Globalization library . I just don t know how to do it for this General Date Long Time G Format Specifier http : msdn.microsoft.com en-us library az4se3k1.aspx GeneralDateLongTime ASP.Net renders . Any ideas The field Date must be a date http : i.stack.imgur.com F3Oze.png Comment : How are you setting the culture en-US en-CA Comment : Thanks for the interest @LenielMacaferi . Is in the Web.config globalization culture en-CA uiCulture auto . .. . Answer : The General Long time G Format Specifier http : msdn.microsoft.com en-us library az4se3k1.aspx GeneralDateLongTime format specifier represents a combination of the short date d and long time T patterns separated by a space . While there is not an equivelant format specifier jQuery Globalize Date Formatting https : github.com jquery-globalize date-formatting the same format can be accomplished by verbose for clarity :", "Question : null .. . Answer : Using the JQuery globalization plugin I want to format numbers to use as many decimals needed to represent the correct value . Also i want the format to use as few decimals as possible . For example the following example yields 56.12 .. . .. . i want it to yield 56.123456 .. . .. . Am i missing some kind of format option or other alternative Examples of what i want : .. . .. . 1.12 - 1.12 .. . 1.123 - 1.123 .. . 1 - 1 .. . .. . Link to library : https : github.com jquery-globalize", "Question : I am setting up a multilingual site that deals with currencies . I want to be able to display correct currency formats based on the selected language . The server-side PHP stuff is a doddle . Using a combination of PHPs NumberFormatter and strftime I have been able to format currencies and dates correctly . There is however a requirement to have the same degree of formatting done client-side with javascript . I have come across Globalization former jQuery plugin and it looks quite promising . If I want to display a dollar value in American English I can do something like this : .. . .. . and this will output : .. . .. . While doing : .. . .. . outputs : .. . .. . which looks perfect . however I have a need to output multiple currencies . So if I have fr-FR selected as my preferred culture how can I output say a dollar value like so : .. . .. . so that the format is French but the value is American Dollar . I have looked but not found anyway to pass a currency symbol as an argument . .. . Answer : I had the same problem in the end I just replaced the default currency symbol on the output with the symbol I wanted to display . It s a bit primitive but it keeps the formatting correct for the locale with the currency symbol you want . Here is the fiddle http : jsfiddle.net mjJLb 1", "Question : Jquery Globalization works great . You can format a currency doing something like this : .. . .. . Is possible to reverse the formatting to be able to edit the value back keeping the culture format .. . Answer : The Globalize plugin provides parseInt and parseFloat methods that you can use : Comment : Yes I tried that but it converts the value back to javascript language and it doesn t support culture anymore . For example in ro Romanian culture 10000.25 10.000 25 and if i Globalize.parseFloat 10.000 25 it returns 10000.25 instead of 10000 25 Comment : Sorry i am new to stackoverflow and i didn t knew that Entery key submits the form : Comment : I m not sure I understand . parseFloat returns a number not a string so it does not make sense for the returned value to use anything other than the language s decimal separator . . Comment : On a text input i have the value 100.000 25 lei Globalize.format 100000.25 c . When user focuses on that input i want to allow him to edit the value but remove the currency symbol --- the new value should be 100000 25 which respects the culture s currency format . This is just for displaying purposes . Something like this probably : link http : demos.kendoui.com web globalization index.html", "Question : I m having a problem working with Cultures MVC3 and Data Annotations . I defined a table STORES on a spanish database COLLATION is set for LATIN GENERAL some of the fields are defined in SQL as DECIMAL 18 2 NOT NULL . On my MVC3 Application I already set culture for es-ES on the web.config file . Also I am using all my views strongly-typed . If I use DataAnnotations for validations it would automatically add the Required field and The field must be a number validations . That would be perfect except for one thing : .. . .. . The field must be a number validation is forcing me to use dot . as decimal separator instead of comma . So I don t know how to change it nor how to translate this error message . Then I thought I might force the user to use dot instead of comma with jquery ugly-solution . So I did it just to make some tests and the result was that it allowed me to pass the validations and created perfectly the object in database . But here comes the weird when I m editting that same object it s shown on my same strongly typed form with comma as a decimal separator instead of dot . So what s the problem That the user can t never submit an edition of the object . What am I doing wrong 1 . Added the proper collation to the database . 2 . Added the globalization attribute on the web.config file . 3 . I even tried this MVC 3 jQuery Validation globalizing of number decimal field http : stackoverflow.com questions 5199835 mvc-3-jquery-validation-globalizing-of-number-decimal-field with no success.. . Which is the proper way to do this Thanks Comment : Is the problem occuring client-side or server-side ie does a postback occur before the validation error Comment : Client Side . No postback . The validation error is javascripted . I assume it has to do with how jquery deals with decimal separators . Comment : Old question but this did the trick for me : stackoverflow.com questions 5199835 http : stackoverflow.com questions 5199835 mvc-3-jquery-validation-globalizing-of-number-decimal-field .. . Answer : Well you can either turn off client-side validation or apply some hacks such as this : .. . .. . http : blog.brainnovative.com 2010 12 globalizing-aspnet-mvc-unobtrusive.html Comment : I tried the hack of your link step by step as it is but I get the javascript error : TypeError : Cannot read property es-ES of undefined ...did it work for you Comment : @met.lord - it looks like things have changed a bit so you ll have to adapt . Did you download the jquery-globalization here github.com jquery-globalize https : github.com jquery-globalize Comment : I installed it through NuGet.. . then downloaded the cultures files from there github.com jquery-globalize Comment : @met.lord - this article is a bit better and describes globalization of unobtrusive-validation . afana.me post aspnet-mvc-internationalization-part-2.aspx http : afana.me post aspnet-mvc-internationalization-part-2.aspx Comment : Tried everything then realized some of the methods changed name . So I managed to keep the logic and tried with the new methods but didn t succeed on having the unobtrusive-validation working properly on spanish.. .", "Question : null .. . Answer : I am using the Globalize jQuery plugin to have globalization correct number and date formats on the client-side in my MVC website . So I have downloaded that plugin and included the following javascript files after the validation js files themselves I have tried putting the Globalize file before as well without any luck : .. . .. . But when run the application I get the error : Globalize.addCultureInfo is not a function .. . .. . I cannot figure out what the reason is . Please help with this one .", "Question : I m very new to Visual Studio 2015 so I apologize if this is a dumb question . I downloaded this jquery-globalize package will aids me with validation of dates from different locale . I have no idea what the scripts are for or how they are use . Are they like classes where we can use help methods I have created method which is used to create new users in my MVC4 with Entity Framework database . Right now it s based in US which is MM DD YYYY but I want it to be DD MM YYYY .. . .. . Views User Create.cshtml Snippet of code .. . .. . This is what my script folder looks like after I installed my globalization package . Script folder image http : i.stack.imgur.com ebOBY.png .. . Answer : ASP .NET MVC DateTime globalization . The field Date must be a date . http : stackoverflow.com questions 31287971 asp-net-mvc-datetime-globalization-the-field-date-must-be-a-date .. . .. . Had the exact same problem so take a look at the answer and hopefully it helps", "Question : I am trying to do this with jquery-globalization plugin but it fails in the browser client script error indexOf .. . .. . I used to use the jquery calculation plugin like this : .. . .. . and it worked but I m changing to jquery-globalization because of some i18n options it has and would like to use just one of those two plugins rather than both of them on the same site . Why is the first one failing Comment : What s up with .global.parseFloat .. . Answer : I m guessing that you might want : .. . .. . to get the input element s value . edit updated : perhaps the value is null sometimes : .. . .. . Looking at the source code to the globalization parseFloat function the first thing it does with the first argument which indeed must be a string not a jQuery object is call .indexOf . If the value passed in is null then you ll get an immediate error . Comment : had it before didn t work . The error is : Line : 179 Error : Object doesn t support property or method indexOf at line 179 if value.indexOf culture.numberFormat.currency.symbol -1 inside jquery.global.js. . Comment : Well perhaps that happens when the value is null . I ll update the answer . It s almost certainly better to get the value however than not to get it : - Comment : in the end it proves I had some more issues in my code that were preventing the parseFloat to work . Using val on jquery object works fine .", "Question : I am trying to validate local decimal numbers Portuguese - pt-PT but I get a console error in the Browser : .. . .. . In Portugal the decimal separator is the so a valid decimal number here is 10 21 . The script I use to load Globalization : .. . .. . On the View I use unobtrusive-validation : .. . .. . To load all the libraries I use the Shared Layout file : Comment : Have you seen this SO question http : stackoverflow.com questions 9204855 cant-get-the-jquery-globalization-to-work In the accepted answer it states that you need to put the globalize scripts after the validation ones which your code doesn t . It also shows some other things that need to be done to make this work . Have you tried those steps Comment : Hi Thanks . I have tested it but it seems an old version because I get from the beginning the error Uncaught TypeError : Globalize.addCultureInfo is not a function on the lasted version of Globalize Comment : And where-in your code is that error coming from Comment : From the globalize.cultures.pt-PT.js file I added to try the SO question you suggested Comment : @Becuzz I found the problem please check my answer . .. . Answer : The problem was related with the jQuery Validation Globalize Library version . I was using the version 1.0.1 that was still using the parseFloat method . This method is not available anymore with Globalize v1.0.0 it has been replaced with the method Globalize.parseNumber . After updating to version 1.1.0 everything started to work properly .", "Question : I try to use the jQuery Globalization plugin in order to fix the comma problem with jquery unobstructive client validation . However i tried many many solutions and there no good solution to fix this . I am on a non-english localization computer and this is important that my customers enter a decimal value like 123 66 and not 123.66 . ASP.NET validation tell me that the price must be a number meh are you serious lol .. . .. . I am getting this javascript error when i try to do the fix . Here my code . Layout.cshtml .. . .. . glob.fix.js .. . .. . I can t understand. . it should work since i added Scripts globalize.js . Any idea or you might have a bette solution for having client validation work and lets me enter comma as decimal values Comment : Thank you for the range validator code .. . Answer : For whatever reason I had to change my globalize reference from : .. . .. . script src @Url.Content Scripts globalize globalize.js type text javascript script .. . .. . to .. . .. . And that solved my problem . Went crazy for 30min until I got it to work . If anybody can explain why I will appreaciate .", "Question : I m developing an ASP.NET MVC 3 app that uses both jQuery Globalization https : github.com jquery jquery-global and jQuery UI Slider http : jqueryui.com demos slider . I m localizing this app to Portuguese from Brazil pt-BR and it also supports English . The problem is that when I change the language to Portuguese all Model float values come delimited by a comma like 7 7 . I then try to set the Slider initial value but it only accepts the value with a dot . like 7.7 . To overcome such situation I m doing this : .. . .. . FormatValue is an extension method : .. . .. . You see that I have to replace the comma delimiter with a dot delimiter so that I can set the jQuery Slider value . I then have to use jQuery Globalization to show the correct value in the UI this way : .. . .. . It works at least.. . .. . .. . My question is : .. . .. . Is there a better or standard way of doing this The thing is that the Model values are coming the way they should that is as I switched the culture to pt-BR the numbers come delimited . This is correct in my point of view . The limitation is in the way the jQuery Slider receives the value . Just to complement : if I tried to pass the values the way they come from the @Model I d have something like this that obviously would break because the parameters values are themselves separated by commas : .. . Answer : Your slider accepts InvariantCulture values so you need to provide such . Just modify your method : .. . .. . BTW . ParseValue is not the best name here as no parsing going on . FormatValue would sound better . BTW . Your original method won t work correctly for some cultures might not be visible for small values but for greater than i.e . 100 bad things could happen . If you need a dot as floating-point always use InvariantCulture . Comment : : Thanks for letting me know about the ToString CultureInfo.InvariantCulture . It worked . I also thought about the greater values you mentioned and the problem that could arise . About the method name : I changed it . I didn t notice the name I had given to the method because I was trying to make this code work . : D", "Question : I am trying out some globalization in an asp.net mvc2 application but can t get it to work fully . I am using the library http : github.com nje jquery-glob as a tool to display currency and dates etc according to user wishes . However something is bothering me a little . IU can t get the client-server side validation to actually accept the globalization using jQuery . No matter what I try if I post back 40.00 everything works ok but if I post 40 00 it is accepted as 0 not a valid .NET invariant decimal value . I tried to follow @haacked http : twitter.com haacked s guide http : haacked.com archive 2010 05 10 globalizing-mvc-validation.aspx .. . .. . This is in global.asax for server-side handling : .. . .. . Then on the client-side I have included the following scripts : .. . .. . So far so good but it doesn t do much . Don t get me wrong I can still get away with using it on the client but nothing really happens on the server-side . The below jQuery changes the format s accordingly but when I post back 40 00 it becomes 0.00 . What do I need to do to make the above code work .. . Answer : Problem solved bacon saved or chicken fried . The reason this is happening is that jquery.validate and jquery.glob uses a function called format if validate is added after glob then the validate.format function is called which breaks globalization . On the other hand validate function . I don t know javascript or jquery good enough to tell you any workarounds . I ll just code the validation of the form manually and forget about the MicrosoftMVCjQueryValidation since that doesn t do the validate plugin justice .", "Question : null .. . Answer : I am using jQuery-ui spinner v1.11.0 - 2014-06-26 with Globalization.js to get spinners inputs with a well-formatted number correct thousand decimal separators and currency . I have a solution that works fine for all sorts of globalization cultures until I use dot . as a thousand separator . When I use it numbers in spinners that are supposed to have 2 decimals i.e 6.14 are displayed as 614 00 . .. . .. . Here is the code I am using : .. . .. . I have no clue why dot . is not working with spinners . Other numbers that use number formatting but are static not in spinners are formatted well . Is this some sort of bug What am I doing wrong Thanks for answers .. . .. . EDIT : I have found out that it is a bug in Globalize.js plugin .", "Question : I am having some problems with in the client validation ie . I am trying to validate a double number like 124 51 in en-EN culture this would be 124.51 .. . .. . I have tried to set the culture in the Application Start and other fixes without any luck does anyone know how I can fix this other than to disable the validation cheers sushiBite .. . Answer : You need to install jquery-globalization and then handle the load of the file with the Culture you need . Like you would do with the calendar.ui cultures of JQuery calendars . Basically you need to find a way to know wich culture you need to load from the DOMReady event and then act accordinlgy . Look at this answer http : stackoverflow.com a 8224046 394028 . In the link at the article of Hanselmann you will find a imo smart way of setting the needed culture using meta in your pages . the article references an old version of globalization but in my answer you will see the new name to use Comment : thanks I needed to update the jquery code they are not using .global.culture.name but Globalize.culture .name but it is working now Thanks :", "Question : Jquery Globalization works great . You can format a currency doing something like this : .. . .. . Is possible to reverse the formatting to be able to edit the value back keeping the culture format .. . Answer : A really old question I know but the to remove the currency symbol and keep culture formatting : .. . .. . Parse the currency-formatted string value to a number using Globalize.parseFloat as described above . Take that value and format it as a culture-specific number string not currency using Globalize.format again but with the n parameter indicating you want a number :" ] }
[ "yes-answer-long", "yes-answer-short" ]
parsing
UNK_RELATION
adaptive-design@s@114
adaptive-design -- server-side approach which uses a predefined set of layouts and appearances based on the user @placeholder preferences and platform on which they are viewing the page to style the page .
{ "confidence": [ 44.10729217529297, 40.68675231933594, 37.73322296142578, 33.90690231323242, 32.99932861328125, 32.83709716796875, 30.859508514404297, 30.50883674621582, 30.045166015625, 29.950321197509766, 29.87053871154785, 29.739532470703125, 29.508888244628906, 29.484697341918945, 29.36821937561035, 29.268566131591797, 29.268566131591797, 29.268566131591797, 28.956642150878906, 28.665233612060547, 28.61370849609375, 28.105709075927734, 27.992008209228516, 27.17616844177246, 27.038436889648438, 27.038436889648438, 27.014755249023438, 26.683637619018555, 26.610713958740234, 26.252134323120117, 26.164867401123047, 26.14084243774414, 26.029094696044922, 25.666412353515625, 25.431224822998047, 25.39855194091797, 25.272186279296875, 25.21259307861328, 25.112689971923828, 24.90839385986328, 24.89950180053711, 24.89950180053711, 24.581012725830078, 24.185691833496094, 24.101526260375977, 24.053096771240234, 24.022003173828125, 23.91607093811035, 23.605588912963867, 23.605588912963867, 23.605588912963867, 23.527477264404297, 23.527477264404297, 23.44296646118164, 23.361392974853516, 22.925678253173828, 22.838298797607422, 22.757875442504883, 22.757875442504883, 22.684894561767578, 22.500205993652344, 22.414794921875, 22.404205322265625, 22.36610984802246, 22.233566284179688, 22.233566284179688, 22.233566284179688, 22.13132095336914, 22.080202102661133, 22.05752182006836, 21.991907119750977, 21.977140426635742, 21.883068084716797, 21.883068084716797, 21.883068084716797, 21.883068084716797, 21.883068084716797, 21.862695693969727, 21.862695693969727, 21.800395965576172, 21.76338768005371, 21.495830535888672, 21.412702560424805, 21.412702560424805, 21.162364959716797, 21.053546905517578, 20.925941467285156, 20.925941467285156, 20.909332275390625, 20.796009063720703, 20.796009063720703, 20.625041961669922, 20.589157104492188, 20.589157104492188, 20.562423706054688, 20.562423706054688, 20.490673065185547, 20.490673065185547, 20.485828399658203, 20.444883346557617 ], "content": [ "I have a page on which i m worinking on an adaptive mobile design .", ".. . For the record I do think it s important to draw a distinction between adaptive web design and adaptive layouts because adaptive layouts implies only the use of media-queries which may not be done in a progressively enhanced way .", "Adaptive layouts achieved in a mobile-first manner however are very likely progressive-enhancement and thereby a means of adaptive web design .", "The difference is that an adaptive-layout has set layouts for certain screen sizes which means that the content is set to fixed sizes in each of those layouts and it just toggles between them .", "Adaptive -- server-side -- information is passed to the server regarding the device s specs and a page adapted to that device is returned .", "google 2 : responsive-vs-adaptive-web-design http : www.junowebdesign.com responsive-vs-adaptive-web-design", "The fact that there are multiple static layouts at multiple breakpoints is what makes it adaptive .", "Is this pattern still called adaptive-design", "To me adaptive web design is just another term for progressive-enhancement of which responsive web design can an often should be an integral part but is a more holistic approach to web design in that it also takes into account varying levels of markup CSS JavaScript and assistive technology support .", "this is definitely an adaptive-design as you will most probably produce different HTML based on the device .", "How can I attach button to the specific place on the picture in adaptive-design .", "I use a server-side template-engine that renders a page of items as HTML .", "Responsive and liquid are essentially the same with the difference there being that responsive also uses the adaptive layouts at different breakpoints whereas liquid only scales .", "This of course delievers depending on the views about n -times as much data as server-side adaptive-design would with n being the number of different views .", "mainly we are talking about a server-side work because we are talking about different structure and different functionality .. . .. . AWD Adaptive : is different design with the same structure that targets a certain device .", "Would you explain difference between RWD Responsive Web Design and AWD Adaptive Web Design in a simple way", "bloggingexperiment.com archives http : bloggingexperiment.com archives responsive-web-design-rwd-vs-adaptive-web-design-awd.php", "Source : http : bloggingexperiment.com archives responsive-web-design-rwd-vs-adaptive-web-design-awd.php", "I ve read up a lot on adaptive-design .", "can you suggest is there any way which shows the differentiation of the responsive and adaptive", "From my understanding it does what adaptive-design does just with another technical approach .", "how to set adaptive-layout at run time", "Adaptive relies on Client or server-side code so if you want to care about it you could make that happen via Javascript etc .", "I have been looking at http : adaptive-images.com for reasons which are self explanatory in URL", "However all I can find on google are design blogs showing the pros and cons of responsive vs adaptive .", "http : teamtreehouse.com library build-a-responsive-website introduction-to-responsive-web-design fixed-fluid-adaptive-and-responsive-2 .", "1stwebdesigner.com design http : www.1stwebdesigner.com design adaptive-fluid-approach-responsive-web-design and simple-talk.com dotnet asp.net a-foundation-for-the-web http : www.simple-talk.com dotnet asp.net a-foundation-for-the-web see my pyramid under Strategy", "For more about RWD Responsive and AWD Adaptive check following link .. . .. . http : www.techrepublic.com blog web-designer what-is-the-difference-between-responsive-vs-adaptive-web-design", "server-side side set same more than one image .", "related SO question http : stackoverflow.com questions 14831530 responsive-design-vs-adaptive-design", "pass some identifier parameter from your side to server-side which recognize your image according to the device .", "I m using the Visual State Manager with AdaptiveTrigger s based on the MinWindowWidth to create an adaptive-layout which is all defined and controlled by my XAML markup .", "If you open the responsive demo on that page you will notice that the width s of things constantly scale with your browser while the adaptive one does not .", "enter image description here http : i.stack.imgur.com VKzTB.png .. . .. . Can I do this with responsive adaptive-design at all", "I m trying to implement adaptive-images adaptive-images.com and I m having an issue none of my images are showing .", "You could do it server-side or client-side .", "Bootstrap in particular will let you specify different layouts depending on the device width where the page is being rendered .", "Adaptive AWD : Not necessarily set on a fluid grid targets specific device resolutions 320 768 1024 et.al .", "Source : http : www.huffingtonpost.com garrett-goodman adaptive-design b 2344569.html .. . .. . Not sure how this definition fits together with some of the others that talk more about the flow of the page content .", "Here is the demo URL for Adaptive responsive http : liquidapsive.com .. . .. . First time entering into adaptive theme i just read this Article http : www.responsys.com blogs nsm cross-channel-marketing difference-responsive-adaptive-web-design and looked the demo site .", "Adaptive layout can be either fluid or completely static", "Responsive Layout .. . .. . Combination of Fluid and Adaptive Layout .", "It is far better to only load the content that is required for instance by having a landing page which determines the client s screen-resolution and then redirects to the real page passing the screen-size and other information to the server which can serve up the appropriate content .", "From my blog post on the topic http : blog.easy-designs.net archives 2011 11 16 on-adaptive-vs-responsive-web-design : .. . .. . Responsive web design as coined by Ethan Marcotte means fluid grids fluid images media media-queries . Adaptive web design as I use it is about creating interfaces that adapt to the user s capabilities in terms of both form and function .", "Does not matter which approach you take", "I m using adaptive-images.php which is generating the needed files but it seems as though galleria is still pulling the original full resolution ones no matter what .", "The point of adaptive-design is to limit the amount of work the browser does and also to reduce the amount of traffic to and from the device .", "I have an adaptive site not responsive and on this page : .. . .. . http : www.findspace.co.uk pages 3bed-student-accommodation-newcastle.html .. . .. . I m having an issue with a border-top style applied to the div containerDDbeds .", "Adaptive Layout .. . .. . There are pre de fined sizes were dif fer ent lay outs are trig gered .", "One of the best link-to differentiate between fluid fixed responsive and adaptive-layout .", "Adaptive layout : Using both pixels and percentages with media-queries", "So basically responsive : liquid : : adaptive : fixed-width", "Everything truly adaptive needs a Javascript plugin for Galleria .", "It basically gives a minimum page width to smartphones and can do things like disable pinch-to-zoom which you might want as well .", "mainly we are talking about a client-side work because we are talking about different design only .. . .. . note that the both technics aim to create a different user-experience more friendly for a certain device", "And fixed-width static is essentially the same as adaptive except that it only has 1 layout and 1 breakpoint while an adaptive-layout can have multiple .", "What you are describing is adaptive delivery .", "For a banner I need to put an image who are displayed on the same page .", "In simple words for the styles applied in your html page .. . .. . 1 .", "Another way to say this or think about is is that an adapative layout is a set of multiple static layouts a static layout at multiple different breakpoints .", "And if someone uses Windows Symbian or Linux based device", "I am using adaptive-images http : adaptive-images.com to make images re-sizing on my website .", "Are most adaptive responsive sites totally blind to the actual underlying physical device used by the user and rely solely on USER AGENT info and the widths discussed here", "So that rules out solutions like this controller-based solution http : stackoverflow.com questions 14285473 adaptive-images-for-ruby-based-servers and the PHP adaptive-images script http : www.webdesignerdepot.com 2012 07 adaptive-images-solving-the-responsive-image-problem .", "Responsive and static are basically at the ends of the spectrum with liquid and adaptive sitting somewhere in between .", "I work on Adaptive theme and I m using responsive stylesheets on my website .", "I am developing iOS app using adaptive-layout with multiple views .", "An alternate definition that I ve seen breaks it down by where the magic happens : .. . .. . Responsive -- client-side -- the same page is returned to all devices but the display of the page responds to the devices typically using JavaScript and CSS especially media-queries .", "X number of items per row .. . Y the number of items per column .. . .. . These two values will help finding the number of items per page to be used server-side for pagination .", "The requirements are : Apache2 nginx .. . .. . My server uses lighttpd so I m hoping I can still implement this on my server despite the requirements listed .", "You can use media-queries to handle style changes based on the viewport .", "It makes more sense from a usability perspective for the server to decide what to send to the device based on the user-agent or other criteria .", "I am trying to build an adaptive responsive site .", "For what I see it is 100 responsive and 0 adaptive .", "I read the instruction for using adaptive image .", "the .htaccess is provided by adaptive-images.com and is at the root of my folder .", "I created a simple adaptive html+css layout .", "The .htaccess rewrites appear to be working and if I add sendErrorImage there is a problem to the top of the adaptive-images.php file it does serve the error image .", "Then use some Adaptive Techniques to filter out the clients device load in the appropriate responsive styles .", "My page structure is shown below .", "I am researching the use of adaptive approach vs . reactive approach and in the process have been reading at all the discussions on media query css width screen width window width document width etc .", "Because we all know by now that the page will fit just fine at scale set to 1 .", "In my current project I would like to organise the page differently according to the width of the page being completely device agnostic .", "Is there any js library jQuery if possible but not mandatory that will serve another html page according to the width of the page", "you can try to enter in the href tag the link-to the page you want to link the button", "Try looking at things like the Twitter Bootstrap and Zurb Foundation both of which offer complete CSS frameworks for design development", "it make the page fit and look godd in every screen", "Example code Use Full Page snippet", "Is this a preferred way of doing adaptive-layout", "I have been trying to find guides on how to make an adaptive I think that s what it s called website like m.domain.com .", ": jpe g gif png adaptive-images.php .. . .. . So my question is : can either of the above examples be translated so to speak and made compatible to work in lighttpd", "Long story short : Which approach would you recommend", "I want to know what are the BEST PRACTICES for implementing adaptive or reactive sites .", "I am experimenting with making an adaptive website that works on mobile and desktop .", "So I need to be able to determine the screen width server-side .", "Is there an HTML CSS Javascript solution to this or is php dom server-side the only options", "I was wondering if anyone could recommend a good tutorial for making my site adaptive and responsive from the ground up", "when i change my browser size and i dont see the big difference on the responsive and adaptive .", "I have Matt Willcox s great adaptive-images https : github.com MattWilcox Adaptive-Images working on my site .", "In contrast with responsive-design you deliver out one content that adapts on client-side by media-queries for example ." ] }
{ "confidence": [ 49.647186279296875, 47.56254577636719, 46.29018783569336, 43.785194396972656, 43.4124755859375, 40.80095672607422, 39.982521057128906, 37.94511795043945, 36.2887077331543, 36.26945877075195, 36.26275634765625, 35.58401870727539, 35.01378631591797, 34.53893280029297, 33.19864273071289, 33.10233688354492, 32.96540069580078, 32.031898498535156, 32.00880432128906, 31.367122650146484 ], "content": [ "Question : Here is the demo URL for Adaptive responsive http : liquidapsive.com .. . .. . First time entering into adaptive theme i just read this Article http : www.responsys.com blogs nsm cross-channel-marketing difference-responsive-adaptive-web-design and looked the demo site . when i change my browser size and i dont see the big difference on the responsive and adaptive . can you suggest is there any way which shows the differentiation of the responsive and adaptive .. . Answer : The difference is that an adaptive-layout has set layouts for certain screen sizes which means that the content is set to fixed sizes in each of those layouts and it just toggles between them . A fully responsive layout means that everything is scaled using percentages and relative units-of-measurement so that it constantly responds to ANY screen-size not just a certain set of sizes . If you open the responsive demo on that page you will notice that the width s of things constantly scale with your browser while the adaptive one does not . Comment : So basically responsive : liquid : : adaptive : fixed-width Comment : Responsive and liquid are essentially the same with the difference there being that responsive also uses the adaptive layouts at different breakpoints whereas liquid only scales . And fixed-width static is essentially the same as adaptive except that it only has 1 layout and 1 breakpoint while an adaptive-layout can have multiple . Responsive and static are basically at the ends of the spectrum with liquid and adaptive sitting somewhere in between . Comment : Another way to say this or think about is is that an adapative layout is a set of multiple static layouts a static layout at multiple different breakpoints . The fact that there are multiple static layouts at multiple breakpoints is what makes it adaptive .", "Question : Would you explain difference between RWD Responsive Web Design and AWD Adaptive Web Design in a simple way Thank you . Comment : did you google bloggingexperiment.com archives http : bloggingexperiment.com archives responsive-web-design-rwd-vs-adaptive-web-design-awd.php Comment : google 2 : responsive-vs-adaptive-web-design http : www.junowebdesign.com responsive-vs-adaptive-web-design .. . Answer : From my blog post on the topic http : blog.easy-designs.net archives 2011 11 16 on-adaptive-vs-responsive-web-design : .. . .. . Responsive web design as coined by Ethan Marcotte means fluid grids fluid images media media-queries . Adaptive web design as I use it is about creating interfaces that adapt to the user s capabilities in terms of both form and function . To me adaptive web design is just another term for progressive-enhancement of which responsive web design can an often should be an integral part but is a more holistic approach to web design in that it also takes into account varying levels of markup CSS JavaScript and assistive technology support . .. . For the record I do think it s important to draw a distinction between adaptive web design and adaptive layouts because adaptive layouts implies only the use of media-queries which may not be done in a progressively enhanced way . Adaptive layouts achieved in a mobile-first manner however are very likely progressive-enhancement and thereby a means of adaptive web design .", "Question : I ve read up a lot on adaptive-design . All the sources I could find at some point mention server-side approach or at least talk about how it makes faster loading times because you only serve what the client needs . In contrast with responsive-design you deliver out one content that adapts on client-side by media-queries for example . Fluid grids and layouts come to my mind . However I thought of a very basic naive and from my understanding pretty boneheaded approach that I just could not find a pattern for . Probably because it s so dull . My idea was basicly to craft a separate view for each device like you d normally do with adaptive-design but put them into divs and just display the one that matches the device dimensions . This of course delievers depending on the views about n -times as much data as server-side adaptive-design would with n being the number of different views . However the view could switch on the fly without reloading the page for example . Again just an idea I had . From my understanding it does what adaptive-design does just with another technical approach . Is this pattern still called adaptive-design .. . .. . .. . .. . switches.css and index.html .. . .. . .. . .. . @media max-width : 991px .. . .phone .. . display : inline important .. . .. . .tablet .. . display : none important .. . .. . .pc .. . display : none important .. . .. . .. . .. . @media min-width : 992px and max-width : 1199px .. . .phone .. . display : none important .. . .. . .tablet .. . display : inline important .. . .. . .pc .. . display : none important .. . .. . .. . .. . @media min-width : 1200px .. . .phone .. . display : none important .. . .. . .tablet .. . display : none important .. . .. . .pc .. . display : inline important .. . .. . .. . .. . html .. . font-family : sans-serif .. . .. . .. . h1 .. . font-size : 36px .. . .. . .. . .. . DOCTYPE html .. . html .. . head .. . title Am I adaptive title .. . meta name viewport content width device-width initial-scale 1 .. . link href switches.css rel stylesheet .. . head .. . body .. . div class phone .. . h1 on small screen h1 .. . p Here goes the view for small sized devices p .. . div .. . div class tablet .. . h1 on medium screen h1 .. . p Here goes the view for medium sized devices p .. . div .. . div class pc .. . h1 on large screen h1 .. . p Here goes the view for large sized devices p .. . div .. . body .. . html .. . .. . .. . .. . EDIT : Thanks to the comments so far I want to emphasize : I totally agree on this being pretty much the definition of an anti-pattern . I hope my question makes that clear I don t consider this a practical thing . However I am interested in what this is called if it is called anything at all or if it is still adaptive responsive by definition . If not why Comment : No this pattern is called bad design for so many reasons some of which you ve already mentioned . It would probably take me an hour to write down all the reasons that come to mind when considering this . Comment : This would be a worse version of responsive-design . Comment : HTML is about semantic . CSS is about styling . Your semantic has the same information 3 times . .. . Answer : To me this seems more like an anti-pattern or the responsive-design pattern . The point of adaptive-design is to limit the amount of work the browser does and also to reduce the amount of traffic to and from the device . Think about how this would work on a device with poor bandwidth such as a mobile phone with a patchy signal . It makes more sense from a usability perspective for the server to decide what to send to the device based on the user-agent or other criteria . Comment : I am quite surprised you mention responsive in this case because what I did there is from my understanding anything but not responsive . related SO question http : stackoverflow.com questions 14831530 responsive-design-vs-adaptive-design Comment : It is only responsive in the broadest sense of the term because the device is in control of the layout . Essentially it is receiving the whole content and then hiding the bits it decides it doesn t want to see in other words responding to the display size . It is far better to only load the content that is required for instance by having a landing page which determines the client s screen-resolution and then redirects to the real page passing the screen-size and other information to the server which can serve up the appropriate content .", "Question : Would you explain difference between RWD Responsive Web Design and AWD Adaptive Web Design in a simple way Thank you . Comment : did you google bloggingexperiment.com archives http : bloggingexperiment.com archives responsive-web-design-rwd-vs-adaptive-web-design-awd.php Comment : google 2 : responsive-vs-adaptive-web-design http : www.junowebdesign.com responsive-vs-adaptive-web-design .. . Answer : simply : .. . .. . RWD Responsive : is a different structure and design of the website that targets a certain device . mainly we are talking about a server-side work because we are talking about different structure and different functionality .. . .. . AWD Adaptive : is different design with the same structure that targets a certain device . mainly we are talking about a client-side work because we are talking about different design only .. . .. . note that the both technics aim to create a different user-experience more friendly for a certain device", "Question : Would you explain difference between RWD Responsive Web Design and AWD Adaptive Web Design in a simple way Thank you . Comment : did you google bloggingexperiment.com archives http : bloggingexperiment.com archives responsive-web-design-rwd-vs-adaptive-web-design-awd.php Comment : google 2 : responsive-vs-adaptive-web-design http : www.junowebdesign.com responsive-vs-adaptive-web-design .. . Answer : An alternate definition that I ve seen breaks it down by where the magic happens : .. . .. . Responsive -- client-side -- the same page is returned to all devices but the display of the page responds to the devices typically using JavaScript and CSS especially media-queries . Adaptive -- server-side -- information is passed to the server regarding the device s specs and a page adapted to that device is returned . This would use some of the same JavaScript CSS techniques as RWD but some of the content may be different smaller . Source : http : www.huffingtonpost.com garrett-goodman adaptive-design b 2344569.html .. . .. . Not sure how this definition fits together with some of the others that talk more about the flow of the page content .", "Question : Would you explain difference between RWD Responsive Web Design and AWD Adaptive Web Design in a simple way Thank you . Comment : did you google bloggingexperiment.com archives http : bloggingexperiment.com archives responsive-web-design-rwd-vs-adaptive-web-design-awd.php Comment : google 2 : responsive-vs-adaptive-web-design http : www.junowebdesign.com responsive-vs-adaptive-web-design .. . Answer : Adaptive AWD : Not necessarily set on a fluid grid targets specific device resolutions 320 768 1024 et.al . can have set widths fixed or relative widths controlled by media-queries . Responsive RWD : Built on a fluid grid will-change with the browser no matter what the screen-resolution content can break apart and realign if need be . In short : RWD is like AWD except taken a step or two further in order to future proof design for unknown devices as well as known devices . Comment : +1 : I ll add these resources to the conversation . 1stwebdesigner.com design http : www.1stwebdesigner.com design adaptive-fluid-approach-responsive-web-design and simple-talk.com dotnet asp.net a-foundation-for-the-web http : www.simple-talk.com dotnet asp.net a-foundation-for-the-web see my pyramid under Strategy Comment : So AWD may not mind about resolutions between those breakpoints 320 768 .. . but RWD cares about it . Is it right Comment : Adaptive relies on Client or server-side code so if you want to care about it you could make that happen via Javascript etc . One usecase to keep in mind is using both . Create one responsive CSS for mobile one for PCs . Then use some Adaptive Techniques to filter out the clients device load in the appropriate responsive styles . In this scenario you get the best of both worlds . You could stay responsive across mobile-devices however you won t end up with a web view if someone is using a larger resolution mobile device and also have the option to keep a fixed or fluid design on the web . Comment : I disagree with this characterization of AWD : Wikipedia has it right in my view : en.wikipedia.org wiki Adaptive web design https : en.wikipedia.org wiki Adaptive web design", "Question : Would you explain difference between RWD Responsive Web Design and AWD Adaptive Web Design in a simple way Thank you . Comment : did you google bloggingexperiment.com archives http : bloggingexperiment.com archives responsive-web-design-rwd-vs-adaptive-web-design-awd.php Comment : google 2 : responsive-vs-adaptive-web-design http : www.junowebdesign.com responsive-vs-adaptive-web-design .. . Answer : One of the best link-to differentiate between fluid fixed responsive and adaptive-layout . http : teamtreehouse.com library build-a-responsive-website introduction-to-responsive-web-design fixed-fluid-adaptive-and-responsive-2 . In simple words for the styles applied in your html page .. . .. . 1 . Fixed layout : Using pixels . 2 . Fluid layout : Using percentage . 3 . Responsive layout : Using only percentages with media-queries .. . 4 . Adaptive layout : Using both pixels and percentages with media-queries", "Question : null .. . Answer : I m redesigning a survey answering application and I want it to work on desktop tablet and smartphone . The desktop and tablet can use more or less the same interface but the phone is another issue . The large-screen app interface is more or less a table with a group of questions in the first column and the answers in the next columns . Questions can have anything from 1 bool to 9 choices . But this design is not easily transferable to a smaller screen . So my thought was to show single questions when the screen width goes below a certain threshold . All questions are pre-loaded and all answers are pushed to server on click . Yes JS is a requirement to answer . I m using CSS to transition between pages groups of questions on the large-screen app . On the small-screen I want to do the same thing only this time between single questions instead of groups of questions . See my exquisite sketch : .. . .. . enter image description here http : i.stack.imgur.com VKzTB.png .. . .. . Can I do this with responsive adaptive-design at all Or should I just load two different views on the different screen sizes Comment : this is definitely an adaptive-design as you will most probably produce different HTML based on the device . You could do it server-side or client-side .", "Question : What is the preferred way to handle adaptive it s not about responsive layout in AngularJS What I need to do is to have a different layout with different shared components shared directives and controllers for desktop and mobile . I was thinking about using ui-router here is what I have now : .. . .. . index.html main file : .. . .. . desktop.html wrapper for desktop content : .. . .. . mobile.html wrapper for mobile content : .. . .. . user.html shared content : .. . .. . app.js .. . .. . Preview edit : .. . .. . http : plnkr.co edit gRnTJkMa7hTLnffOERMT p preview .. . .. . 1 . Is this a preferred way of doing adaptive-layout 2 . How can I with this approach : .. . .. . 1 . Add a class to in index.html based on mobile desktop choice .. . 2 . Dynamically load mobile.css or desktop.css .. . .. . Best Regards .. . Answer : I recently ran into same issues that s why i landed here looking for some answers . According to my findings looks like i have two different options : .. . .. . 1 . Use your approach .. . .. . Facts .. . .. . Two partial different layouts because header and footer and some other body tags are still shared . Otherwise you will have to apply data-ui-view on html .. . This can be achieved only if you use ui-router this isn t working with angular default router .. . You will load all routes and configs both from desktop and mobile because you have a shared config file . This means that somehow you need to load all js files even if user is visiting only mobile version . Otherwise you will have to create a new config file for mobile version and use that one for mobile layout or dynamic exclude some route based on detected device . You will be able to switch from mobile to desktop within your Single Page Application without any reload . Not sure if this is an advantage or not . Good parts : .. . .. . You are not going to apply any server logic and your are not going to make a separation of main index.html file served from server . This means that the entire logic lies on the client-side . Bad Parts : .. . .. . You complicate the logic because you need to make a clear separation between devices and avoid loading unused js files if possible . If you are doing this basically you are doing another SPA because desktop version won t be available within your SPA . 2 . Share the same app but from server based on domain you can serve different html file . For example : yoursite.com will serve index.html which will eventually load desktop version and m.yourside.com will serve mobile.html which will eventually load mobile version . Facts : .. . .. . This is more like a hard separation and implies server logic to make a separation .. . When switching from mobile and desktop a reload will take place . Now you can t use the same config or other changes from app.js that refers to your desktop version so it might need to change some files to not refer anymore to libraries that are used for desktop .. . This approach looks more like a new angularJs app within same project folder structure application folder with same name maybe and lots of shared components and services but less dependencies and cleaner . To me this sounds more like a logic separation consider that you do not need to server all those js files on your mobile version maybe you won t use all the features of desktop version to mobile version . The only difference i see here at presentation level different routing maybe config file controllers and views . Still same models and share services and big componentes . In order to make a decision you need to think on both situations each with good and bad parts . Right now i don t know yet which decision to make i will investigate maybe a day or two . Good day and good luck . Andrei", "Question : I have a page on which i m worinking on an adaptive mobile design . Now I have the main navighation figured out but I have a second navigation that looks like : .. . .. . it is currently vertically displayed and I need it to change to horizontal orientation when my page s with is below 900px . http : www.quaaoutlodge.com content lodge - just shrink it s width to see what I mn talking about . Thank you Comment : here s a pen for you to try out demonstrating the inline and float media query-based answers . I used 400px as the break point codepen.io henry pen gbRXRg editors 110 http : codepen.io henry pen gbRXRg editors 110 .. . Answer : What s proposed below is the mobile-first approach . Basically you first style the elements the way they would look on smallest screens and then progressively adjust styles as screen width grows as in below example . For having elements be inline you can use display : inline-block but there can be undesired small spaces in-between so I ve used display : block combined with float : left - same effect without those spaces . EDIT : In your particular example the container secondnav has a limitied width so the above code won t work until you increase it s width too . EDIT 2 : Your menu items will still go to multiple lines as their width is set to 301 I think . Try to set it to auto or something less like 100px . Also you ll need to apply a background-color to the container secondnav I guess but these are styling considerations out of the scope of this question .", "Question : At some point I know I need to bite the bullet and do some serious reading on responsive and adaptive-design but I was hoping there was a really simple way to address this issue . I have the following web page shown here in my desktop browser . enter image description here http : i.stack.imgur.com qrPiL.jpg .. . .. . And here is the same page on my cell phone . enter image description here http : i.stack.imgur.com CDiD9.png .. . .. . Although it s probably hard to tell here the banner is too small when viewed on my cell phone . Ideally I would like to have it so : .. . .. . The width of the page content and the corresponding width of my footer element which has a top border does not take up the entire width of the browser when it s full screen on the desktop but does take up the entire width of my cell phone . The banner would never be bigger than the pixel width of the image on my desktop but would take up the entire width of my small cell phone . Is there any simplified approach to this Comment : have you heard of media-queries https : developer.mozilla.org en-US docs Web CSS Media Queries Using media-queries Comment : Make the image the dimensions you want it to be on mobile then use media-queries to restrict the width on desktop . Comment : @cocoa : Yes I have heard of media-queries and I get the basic idea . But I m new to them and was hoping someone could point me in the right direction to a really simple approach to do this on a very simple site . I guess I could make the width of stuff 100 when the device is small and say 60 when it s larger . Not sure yet if that s the simplest way . .. . Answer : You can use media-queries to handle style changes based on the viewport . For instance you can do something like : .. . .. . JS Fiddle Example http : jsfiddle.net kxgxkc8d 1 Comment : Thanks for the head start . Going to play with this a little . Comment : Just added a fiddle for the example .", "Question : I m not familiar with responsive websites and would like to start creating a website taking all the screens into account . Obviously media-queries is the way to go but they only concern CSS . In my current project I would like to organise the page differently according to the width of the page being completely device agnostic . The thing is on small widths I would like the HTML layout to change completely so I will have to make the HTML responsive as well as it should change according to the website width . How can I achieve that Is there any js library jQuery if possible but not mandatory that will serve another html page according to the width of the page The whole website should be build this way so the script should be more than a gadget it should be rock solid enough to allow the whole website to rely on it . And of course it should work on any device or screen or browser . Some would say that I m looking for adaptive techniques more than responsive ones but I believe it s a mix between those two as the elements will still be responsive in general but between some critical breakpoints it will indeed adapt and change the html . I read a lot about different techniques but I can t find something that suits my needs . Any lead would be appreciated . Thank you for your help . Comment : This is possible with both CSS Media Queries and with JavaScript - but probably not very practical . Try looking at things like the Twitter Bootstrap and Zurb Foundation both of which offer complete CSS frameworks for design development Comment : Try to understand what is CSS mediaquery You will get an idea of responsive website .. . Answer : What you are describing is adaptive delivery . What you want to to is detect the user-agent string using a server-side language and then conditionally render your templates according to whether the device is a phone tablet or desktop . Realistically you ll share a lot of code between the screens but you might have a different navigation layout or opt to not show more rich features on the smaller screens . This approach not only saves a bunch of hide show code but saves a lot of overhead on smaller screens where you would otherwise be loading stuff that would be hidden the entire time anyway . Comment : This is exactly what I want but being device agnostic as I don t want to specify any device anywhere . But I m still looking at something that does that without finding it yet . If I m not wrong the user-agent will segregate the browser or the device not the width and this is what I need . I found response.js but it doesn t switch the whole html tag-it just allows to change some div tags and src s . Comment : That s a tough one . If you wanna get really intense with it you can set up client-side views using something like Backbone or Angular and then use window resize events to trigger alternate content loads .", "Question : Would you explain difference between RWD Responsive Web Design and AWD Adaptive Web Design in a simple way Thank you . Comment : did you google bloggingexperiment.com archives http : bloggingexperiment.com archives responsive-web-design-rwd-vs-adaptive-web-design-awd.php Comment : google 2 : responsive-vs-adaptive-web-design http : www.junowebdesign.com responsive-vs-adaptive-web-design .. . Answer : For more about RWD Responsive and AWD Adaptive check following link .. . .. . http : www.techrepublic.com blog web-designer what-is-the-difference-between-responsive-vs-adaptive-web-design", "Question : Would you explain difference between RWD Responsive Web Design and AWD Adaptive Web Design in a simple way Thank you . Comment : did you google bloggingexperiment.com archives http : bloggingexperiment.com archives responsive-web-design-rwd-vs-adaptive-web-design-awd.php Comment : google 2 : responsive-vs-adaptive-web-design http : www.junowebdesign.com responsive-vs-adaptive-web-design .. . Answer : Fluid Lay out .. . .. . Adjusts in a word-wrap fash ion as screen width is increased or reduced . Adaptive Layout .. . .. . There are pre de fined sizes were dif fer ent lay outs are trig gered . These are called breakpoints . Adaptive layout can be either fluid or completely static Responsive Layout .. . .. . Combination of Fluid and Adaptive Layout . Provides optimal experience . Progressive Enhancement .. . .. . Process of honoring your content and your users by applying technologies in an intelligent way layer-upon-layer . Progressive enhancement doesn t require that you provide the same experience in different browsers . Source : http : bloggingexperiment.com archives responsive-web-design-rwd-vs-adaptive-web-design-awd.php", "Question : How can I attach button to the specific place on the picture in adaptive-design . How attach button Sign In to the specific place When I change a size of window Button change location .. . .. . Link to the jsfiddle https : jsfiddle.net 6x63knkm 2 .. . Answer : you can try to enter in the href tag the link-to the page you want to link the button Comment : And How it will help Comment : Maybe I did not understand what you need Comment : I mean that When I change a size of window Button change location Comment : the displacement of the sing button is due to registration2 class that sets the position of 303 button away from the top", "Question : null .. . Answer : I have been looking at http : adaptive-images.com for reasons which are self explanatory in URL The requirements are : Apache2 nginx .. . .. . My server uses lighttpd so I m hoping I can still implement this on my server despite the requirements listed . According to their site instructions for Nginx we would need the following in the virtual host config file : .. . .. . And for Apache in the .htaccess : .. . .. . RewriteCond REQUEST URI assets RewriteRule . : jpe g gif png adaptive-images.php .. . .. . So my question is : can either of the above examples be translated so to speak and made compatible to work in lighttpd I realise I m out of my depth here but I know this is the place Thank you .", "Question : null .. . Answer : I have the standard responsive image serving problem but with some complex twists . I expect I ll need to build my own solution to the below but it s a few months down the line so I thought I d bring this by the community now for help with my approach and getting started . I also think the solution I m looking for would have pretty wide appeal so this could be valuable to the community as a whole . The problem : .. . .. . We d like to provide users with images embedded videos etc anything that takes a lot of time bandwidth to load and takes less when lower res but change the loaded dimensions depending on the size the element is actually allocated on the page . This is basic responsive image serving applied to a few other types of assets though since we provide lower-bandwidth file versions to mobile-devices I think this also falls under adaptive-design . But don t worry about other types of content for now let s focus on images . We need to determine the appropriate max-width for a each specific asset placement for each screen width breakpoint without providing this info as configuration . I m creating a platform that will serve pages relying on HTML templates from many different parties . Images can be served from anywhere on the page and pages can use any styling system they want so we have no idea what the appropriate size for an image is just by looking at screen width . We need to actually evaluate the max width of the placement at each supported sizing breakpoint . Sure this could be done manually in advance given a design template but let s assume that s too much work for these 3rd parties . For example in Twitter Bootstrap 3 an image contained in a col-md-8 should be at most 720px width when browser width is 768 but if it was in a col-sm-8 it should be smaller than 470px . And if we re using a different framework altogether these would clearly be different too . I need solution that can take into account everything the CSS is doing automatically because I have no idea what the CSS will do . We can t do any processing during the image request . We rely on a CDN Cloudfront . They are not going to implement our custom code on each of their edge locations and I don t want a visitor in New Delhi or Berlin to have to send yet another request halfway around the globe for every sized asset before they know what the final url is . So that rules out solutions like this controller-based solution http : stackoverflow.com questions 14285473 adaptive-images-for-ruby-based-servers and the PHP adaptive-images script http : www.webdesignerdepot.com 2012 07 adaptive-images-solving-the-responsive-image-problem . We need this to be fast . There s a good amount of wiggle-room on the server-side since caching is so easy and flexible with Rails 3 4 . But we probably can t use jQuery.width on every element for performance reasons http : stackoverflow.com questions 12414150 jquery-width-method-performance . After all the entire reason we re serving responsive images is to decrease perceived page load-time . But we do have access to jQuery in general and we could probably load up Modernizr all the time if we needed to currently only included for low IE with conditional HTML . We don t trust User-Agent headers enough to base our browser width on them . I love the idea behind mobvious 1 https : github.com jistr mobvious 2 https : github.com jistr mobvious-rails and its friend responsive-images https : github.com johnkoht responsive-images but there are SO many versions of browsers on SO many different devices out there . How complex would it be to build a truly reliable system to determine browser width on this as opposed to directly calculating it using JS Clients without javascript and thus crawlers will need access to an image . Easiest solution here seems to be to include a noscript ... . noscript with the canonical largest version of the image inside . The solution It seems like the only way to do this is to : .. . .. . Have the server pass all the available sizes then calculate the width of each element on the client-side using jQuery in some performance-efficient way maybe using .css width or some sort of specialized script . So server would create : .. . .. . span data-respv-img-id picture of unicorns span noscript data-respv-img-id picture of unicorns data-img-720- url cdn.example.com assets picture of unicorns 720x480 data-img-320-url cdn.example.com assets picture of unicorns 320x260 data-img-120-url cdn.example.com assets picture of unicorns 120x80 img src cdn.example.com assets picture of unicorns 720x480 alt Magical unicorns noscript .. . .. . And if we re on a small screen and only the 120 fits the JS would turn this into : .. . .. . span data-respv-img-id picture of unicorns img src cdn.example.com assets picture of unicorns 120x80 alt Magical unicorns span .. . .. . OR have the server do some sort of pre-processing so it knows exactly what size image fits each placement on each browser width and delivers : .. . .. . span data-respv-img-id picture of unicorns span noscript data-respv-img-id picture of unicorns data-img-1200- url cdn.example.com assets picture of unicorns 720x480 data-img-1024-url cdn.example.com assets picture of unicorns 320x260 data-img-768-url cdn.example.com assets picture of unicorns 120x80 img src cdn.example.com assets picture of unicorns 720x480 alt Magical unicorns noscript .. . .. . And we end up with the same thing as the other approach . But this time jQuery s job was much easier as we passed all the sizing work off to the server . But this requires loading up a full browser stack on the server-side to generate each request . That s ok with caching but sure does bring a lot of complexity along . Note that both of these solutions would allow for scroll-based image loading which is another aspect I ll need to implement but not something we need to discuss now . Long story short : Which approach would you recommend Can you think of a better way", "Question : I hope the title isn t too confusing . I am using Adaptive Images to detect a visitor s screen-size and automatically create cache and deliver device break-point appropriate re-scaled versions of the web page s embedded HTML images . Now.. . some people want to save images on their mobiles smartphones but using Adaptive Images to serve up a smaller sized image to save bandwidth download time gives them the smaller scaled image - rather than a nice sized or the original image . Does anyone have any ideas on the following 1 . Serving up scaled images .. . 2 . Having the original available if people want to save them .. . Answer : From the Adaptive Images website : .. . .. . It creates and manages its own resized images using your existing images as the source and it will adapt to the same resolution brackets your site does with the CSS3 @media queries used in your Responsive Design . Your images are still the source it s only adapting them for viewing . Try downloading an image and viewing the properties . It will retain the original dimensions I ve linked a jsFiddle demonstrating how @media queries work https : jsfiddle.net Dneilsen22 4mqjeeoh 1 . If you shrink the screen and try downloading the image you will see the original properties while scaling appropriately . @media query :", "Question : Sorry for being long and thank you very much for your usual time and guidance . I have a div of unknown dimensions in fact its width and height are set using percentages so the final values in pixels depend on the window innerWidth an innerHeight properties . I need to create an ajax pagination inside that div . In other words I have two child div s figure below . The second one is for pagination links . The first one is responsible of holding items aligned horizontally and vertically . It will be automatically of unknown width . As a result the number of items inside depend on its final width and height because all items have a fixed known width and hieght Let s say 80 pixels width and 50 pixels height . I hope the following figure is illustrating my issue in the best manner : enter image description here http : i.stack.imgur.com fhAe9.png .. . .. . The goal is to find a good approach to find the values of X and Y . X number of items per row .. . Y the number of items per column .. . .. . These two values will help finding the number of items per page to be used server-side for pagination . Pagination links will be created by dividing the total number of pages by this value . Note : Everything is done with ajax . What I am planning to do : .. . .. . create a javascript function calculate viewport to be the first thing to execute before any other thing parsed exectued . create a javascript function that calculates X and Y values based on values returned by calculate viewport . use the X and Y for an ajax call that request a certain page . script type text javascript .. . .. . function calculate viewport .. . var width and height object .. . calcluate width and height using of current window.innerWidth and window.innerHeight .. . put values in an object width and height object .. . return width and height object .. . .. . function calculate XandY width and height object .. . var XandY object .. . calcluate X and Y values by perfoming necessary division operations .. . return XandY object .. . .. . var XandY calculate XandY viewport script .. . .. . DOCTYPE html html .. . head .. . head .. . body .. . div id parent style height : 70 width : 50 .. . div id items container style height : calc 100 - 30px width : 100 div .. . div id pagination style height : 30px width : 100 div .. . div .. . body .. . script src jquery.js script .. . script type text javascript .. . a.next a.previous .click function e .. . e.preventDefault .. . .ajax .. . type : GET .. . url : url to page of items .. . data : number of items per page : X times Y .. . cache : false .. . success : callback append result to items container div .. . .. . return false .. . .. . script html .. . .. . .. . What do you think about this approach Are there any other better ways to achieve this goal Is it acceptable to create a script-tag before the html tag just to make early window size calculation N.B : For the server-side part I manage to paginate results via some functions offered by the ORM library I am using . I use a server-side template-engine that renders a page of items as HTML . I am ready to provide any code upon request for this part . Thanks .. . Answer : You ll never get the layout math right on your own . My recommendation is to lay out all of the items before hand flex box is ideal here get the count and then fill them in using ajax . Here s a quick demo http : codepen.io harangue pen VeJowz I whipped up . The actual JS is pretty simple using jQuery . The important line is the one containing .position . That ll get the location of each of the items top edge add the height to find their bottom edge and check if it s past the bounds of the item container . After this you can just use the count to query the necessary items from the server . I d also recommend using visbility : hidden on all of the items so the user doesn t see them before they re ready . Comment : Thank you for your time . If I understand you well you are suggesting a maximum intial number of items and setting visibility to hidden using the js you provided then using the count for the next pages to request only the necessary number of items in each page . right A note about flexbox it is not supported in IE8 and 9 and has only partial support for 10 and 11 which is a hurdle for me . display : table + table-layout : fixed has better browser support for info Comment : @whitelettersinblankpapers Yep That would be my approach anyway . The problem is interesting to me though because if a user resized their window the layout would break pretty quickly- I d usually chose a fixed-item layout in your situation . You can use flebox in ie8 and 9 you ll just have to make use of a polyfill https : github.com 10up flexibility Comment : I will be using your answer with flexbox thanks to my fascination after reading a guide about it of course I will be using the polyfill . About resizing I am not taking it into account in my project for the moment but when I will reach this step in the future I will be sending a comment here to share my thoughts . Thanks a lot for this and have a nice day", "Question : I have been trying to find guides on how to make an adaptive I think that s what it s called website like m.domain.com . However all I can find on google are design blogs showing the pros and cons of responsive vs adaptive . I m guessing you have to use JavaScript to detect the device or browser of the client and redirect to a mobile site . I f any of you guys know the piece of code i will need to detect and redirect if that s what you have to do or a guide to building a mobile site like this it would be much appreciated Thanks in advance .. . Answer : I found the answer myself . Using : .. . .. . .. . script .. . .. . if Android webOS iPhone iPad iPod BlackBerry i.test navigator.userAgent .. . .. . if document.URL http : emilostervig.dk .. . .. . .. . .. . window.location http : google.dk .. . .. . .. . .. . .. . .. . script .. . .. . You can redirect to a different site if the user in on a mobile device ." ] }
[ "yes-answer-long", "yes-answer-short" ]
s
UNK_RELATION
nstablecolumn@nstableview@121
nstablecolumn -- the nstablecolumn class stores the display characteristics and attribute identifier for a column in an @placeholder instance .
{ "confidence": [ 52.3537483215332, 49.24007797241211, 45.886695861816406, 44.91647720336914, 44.736045837402344, 43.15068435668945, 41.94805908203125, 41.39013671875, 40.61781692504883, 40.56194305419922, 40.56194305419922, 40.56194305419922, 40.280242919921875, 38.853981018066406, 38.12180709838867, 38.09823226928711, 37.315242767333984, 37.18095397949219, 37.18095397949219, 37.18095397949219, 37.18095397949219, 36.07106018066406, 36.07106018066406, 36.07106018066406, 35.37149429321289, 34.74081802368164, 34.74081802368164, 33.92413330078125, 32.67051315307617, 32.62678146362305, 32.62678146362305, 31.516887664794922, 31.516887664794922, 31.516887664794922, 30.95280647277832, 30.1866455078125, 30.1866455078125, 30.1866455078125, 29.83953094482422, 29.83953094482422, 28.729637145996094, 27.744911193847656, 27.399394989013672, 26.717708587646484, 26.071884155273438, 26.071884155273438, 25.458415985107422, 24.892410278320312, 24.347339630126953, 24.277572631835938, 24.196823120117188, 23.83836555480957, 23.63174819946289, 22.953754425048828, 22.108612060546875, 21.475135803222656, 21.209152221679688, 20.639192581176758, 20.60269546508789, 20.60269546508789, 20.348731994628906, 19.39590835571289, 19.15355682373047, 18.782007217407227, 18.726093292236328, 18.55436897277832, 18.377819061279297, 18.337162017822266, 18.06246566772461, 17.998722076416016, 17.913291931152344, 17.90045166015625, 17.77114486694336, 17.76485824584961, 17.694761276245117, 17.562320709228516, 17.393749237060547, 17.393749237060547, 17.393749237060547, 17.393749237060547, 17.33592987060547, 17.33592987060547, 17.249378204345703, 17.05306625366211, 16.99551010131836, 16.99551010131836, 16.934247970581055, 16.824615478515625, 16.6612548828125, 16.6612548828125, 16.6612548828125, 16.6612548828125, 16.6612548828125, 16.6612548828125, 16.6612548828125, 16.58486557006836, 16.28385353088379, 16.28385353088379, 16.28385353088379, 16.28385353088379 ], "content": [ "I ve created an NSTableView programmatically and added a single column an instance of NSTableColumn .", "In the method : .. . .. . I use .. . .. . to check the identifier of these 2 NSTableColumn .", "Remedy : I generated a new String-type identifier NSTableColumn overriding any existing identifier .", "Scenario : NSTableColumn containing NSComboBoxes .", "The NSTableView was created earlier with its own NSTableColumn identifiers .", "I did some research to learn that EVERY NSTableColumn needs a bona fide NSCoding-compliant identifier .", "or use NSTableColumn to differentiate the data returned .", "Calling column.setWidth 125 ofColumn : 0 results in this error : - NSTableColumn setWidth : ofColumn : : unrecognized-selector sent to instance 0x600000082b70 .", "Is it possible to set an NSMatrix as the cell of a NSTableColumn .", "I have create a NSTableView and 2 NSTableColumn in the view .", "As such it isn t surprising I can t find NSTableColumn .", "I sorted the NSTableColumn using the sort descriptors .", "I imagine that the basic NSTableColumn instance I create is cell-based not view based and that s causing trouble .", "I m creating some NSTableColumn s dynamically and they appear too tall in the table .", "I have a NSScrollView and a NSTableView with some NSTableColumn in it .", "Scenario : .. . I m passing a NSTableColumn into a function from which I toggle it s hidden flag : .. . .. . How do I make the column identifiers conform to NSCoding", "If you only want to fill out one column add an IBOutlet NSTableColumn to your controller let s call it explosiveColumn .", "Is there something in the NSTableColumn or NSTableView that I have to call to get the value", "Both of the identifiers of these 2 NSTableColumn set to Automatic in Interface Builder .", "If you are using NSTableCellView under NSTableColumn then you need to set constraints for NSTableCellView .", "The only problem is that I am getting a deprecated warning by binding Data to an NSTableColumn .", "the position size and ishidden of a NSTableColumn is autosaved -- using the InterfaceBuilder autosave method .", "How I can programmatically bind a NSTableColumn with multiple key-value", "I think you should just go ahead and use - NSTableColumn headerCell .", "But when running the app on - id tableView : NSTableView tableView objectValueForTableColumn : NSTableColumn tableColumn row : NSInteger row all the columns identifier are NS : 9 .", "EDIT : This is how NSMutableArray s of my NSTableColumn s get filled :", "To solve this problem create a subclass of NSTableColumn and reimplement the dataCellForRow : method .", "I had to cast column as NSTableColumn before the opening brace of my for-loop before I could just call column.width 125 .", "If you are creating a column in code set the resizingMask https : developer.apple.com library mac documentation Cocoa Reference ApplicationKit Classes NSTableColumn Class apple ref occ instp NSTableColumn resizingMask of each NSTableColumn to include whichever resizing mode bits you want .", "I m trying to figure out a way to have a NSTableColumn be pinned to the left side of my NSTableView .", "Second task is to get sum of certain NSTableColumn bound to certain other object like NSTextfield .", "I think an NSTableColumn should have a -title -setTitle : method that passes the string on to the header cell s string value .", "I have checked NSTableView as well as NSTableColumn but couldn t find any method that disables this .", "Also although Apple has generally deprecated NSCell in 10.10 and - NSTableColumn dataCell is deprecated -headerCell is not .", "If I detect the nil return I create an instance of NSTableCellView with the proper identifier .", "When you set a NSCell as the datacell of a NSTableColumn there is no Value binding available in Interface Builder .", "How do you elegantly binds an NSArrayController to a NSTableColumn that has a custom subclass of NSCell", "Also in general how would you go about using the NSTableColumn s headerTitle binding", "There are quite a few things you can bind to in a NSTableColumn filled with NSPopupButtonCell I tried looking around for explanations but couldn t seem to find any .", "I am not sure if you have the same problem but if you are using NSTableCellView under NSTableColumn then you need to set constraints for NSTableCellView .", "In NSTableColumn there s a method with signature .. . .. . but t his method is only valid for cell-based table views and I am using a view-based table view .", "To each added column I provide a unique identifier .", "Some columns are checkboxes http : stackoverflow.com questions 2134478 problem-naming-nstablecolumn but I can t click on them when I run my application .", "I m trying to creat a UITableViewDataSource but am getting an error on the following : .. . .. . The error that I m seeing is : .. . .. . So obviously NSTableColumn is not defined but I can t figure out how to get it defined .", "Is there any reason that the second column doesn t have a identifier", "You know the identifier of the column that holds the checkboxes .", "If you don t want to show some data in the class simply do not enter the key for the column identifier .", "An NSTableColumn uses its sortDescriptorPrototype see here http : developer.apple.com library mac documentation Cocoa Reference ApplicationKit Classes NSTableColumn Class Reference Reference.html apple ref doc uid 20000119-BAJJEJAD to generate the sort descriptor of the NSTableView depending on how many times you clicked the column header etc .", "I found the identifier of the first column is AutomaticTableColumnIdentifier.0 but the second is null .", "But I want to change each Column width in the meanwhile with the same Animation the problem is NSTableColumn is not a NSView so I can not change its frame.Now I only can change Column width without any Animation .", "The NSTableView itself contains an instance of NSTableHeaderView which contains an instance of NSTableHeaderCell .", "You have presumably neglected to set the identifier at all .", "tableColumn identifier is used to identify a column name .", "In connecting my C++ data model to my Cocoa table column UI I m wondering if I can provide the a C++ class instance at the id identifier to initWithIdentifier .. . .. . The whole point of this is so that when the NSTable s datasource method objectValueForTableColumn gets called I can retrieve the id and somehow convert if back to a valid C++ class instance : .. . .. . I m guessing there s a more traditional method of doing this but I wanted to simplify the connection between the Cocoa UI and a pure C++ model .", "How where was the table column created", "I m trying to create a column with an empty string as the identifier but Cocoa seems to replace the empty string with the word Field every time I try to create the column .", "The table s first column is bound in IB to display the name property i.e .", "I have reduced the attribute Columns of NSTableView to 1 and increased it to 2 later so the first column is included in the NSTableView but the second is not .", "If not either its the automatic name like column1 column2 .. . or you can set it in Interface Builder while the column is active in Identity Inspector Identity Identifier .", "The colid key checks the identifier set in IB by selecting the table view column under the Identity drop down while the Identity Inspector is shown .", "What is an easy way to set up my NSTableView with multiple-columns to only display certain data in one column .", "This is likely the reason : .. . .. . I have reduced the attribute Columns of NSTableView to 1 and increased it to 2 later so the first column is included in the NSTableView but the second is not .", "When I then take that image instance and bind it it suddenly turns translucent .", "I m attempting to add columns dynamically to an NSTableView but they don t display anything : .. . .. . Later I set each object up with the test key in a loop .. . .. . Then I set arrangedObjectsForMyTableView which is bound to the table view in IB to the array I just built : .. . .. . What I would expect is that there is a column with a header saying Header and each cell in the column says Cell value thanks to the identifier and the key .", "So I initialize with IB my table to 1 column and thereafter add new columns as required then remove the no-longer needed 0-th column .", "A column s identifier is not the same thing as its title .", "Finally in your XIB change the column type to your new subclass class .", "The first column are checkboxes .", "Key path : @sum.sales .. . .. . If instead I add a totalSales method to my Country class and the method is implemented as follows : .. . .. . and I then bind the column to totalSales it works fine .", "Another option with less coding and without bindings is to set the column identifiers to be the same as class-properties .", "How can I display text", "I found a way to do my own search in a fairly fast way but I still have a feeling I am putting too much effort in this : .. . .. . First set the Identifier of the desired column in the Interface Builder to ClickMeColumn .", "The Branch entity has a sales attribute an NSNumber .", "the row s column", "I then create a new column in my NSTableView and drag an image cell onto the column .", "You can extract the identifier and the title string from the relevant tableColumn .", "The column and header are visible but the cells are all empty .", "In my case the column name is checkboxes .. . .. . Solution : .. . .. . 1 .", "No I m not trying to put a column total into an NSTextField .", "The problem I m having is with binding column 2 of the NSTableView .", "I added some columns from xib and on some of them i added a identifier .", "For example : in NHVehicles.h .. . .. . in NHVehicles.m .. . .. . for this tableView entry name and vehicleClass would be typed w o into the identifier fields for their respective columns .", "The dataArray is a property that stores NSManagedObject subclass objects .", "Is there any way to simulate the mouse click on the table column to get that Sort indicator up or down arrow in the table header in the table column .", "You can t just set an attribute for whatever rows you consider special .", "The Country entity has a name attribute and a to-many relationship branches to a Branch entity .", "To add a column programatically to keep it simple let s just say this new column should also just display the name property just like the column that s already there I imagine I d do something like this in the app delegate : .. . .. . I ve tried so many combinations of binding from to the data cell the table the column the array controller the array itself as well as all manner of keypaths but nothing works .", "Each column is queried for each row .", "But de-selecting Editable for a column also removes the selecting capability .", "Why are you using agentsTable when getting the column model", "The binding options available for Table Column containing a TextCell is also different .", "Is there a way to separate whatever binding there must be between the cells and the column", "A cell-based table uses a single cell per column .", "Sounds to me like you aren t accessing the column identifier :", "I didn t try that but it doesn t like it : Cannot assign to width in column", "Because column 6 is may or may not be the right one depending on where my ClickMe column is .", "EDIT : changing the column width only works sometimes .", "make sure to hit the Column Information checkbox.. .", "Binding the column only works for cell-based tables .", "Then set the table s overall column autoresizing style ." ] }
{ "confidence": [ 67.38186645507812, 65.77400207519531, 60.98805618286133, 51.222938537597656, 49.84174346923828, 49.096107482910156, 48.256046295166016, 43.959259033203125, 43.730628967285156, 43.41252517700195, 42.46665954589844, 40.23905563354492, 39.986541748046875, 39.283775329589844, 38.68891143798828, 38.68312072753906, 38.60777282714844, 38.60777282714844, 38.08843994140625, 37.959442138671875 ], "content": [ "Question : I have create a NSTableView and 2 NSTableColumn in the view . Both of the identifiers of these 2 NSTableColumn set to Automatic in Interface Builder . In the method : .. . .. . I use .. . .. . to check the identifier of these 2 NSTableColumn . I found the identifier of the first column is AutomaticTableColumnIdentifier.0 but the second is null . Is there any reason that the second column doesn t have a identifier I have reduced the attribute Columns of NSTableView to 1 and increased it to 2 later so the first column is included in the NSTableView but the second is not . .. . Answer : This is likely the reason : .. . .. . I have reduced the attribute Columns of NSTableView to 1 and increased it to 2 later so the first column is included in the NSTableView but the second is not . If it s causing you problems set the identifiers in the nib .", "Question : Scenario : .. . I m passing a NSTableColumn into a function from which I toggle it s hidden flag : .. . .. . How do I make the column identifiers conform to NSCoding or.. . is this a bug Comment : You have presumably neglected to set the identifier at all . How where was the table column created Comment : I was given a NSTableView with some identifiers . I did some research to learn that EVERY NSTableColumn needs a bona fide NSCoding-compliant identifier . So even though the list of existing identifiers looked okay I reset them with generated strings . That fixed it . .. . Answer : The NSTableView was created earlier with its own NSTableColumn identifiers . I glanced at a few identifiers and they appear to be okay . Apparently not : I had learned the all identifiers have to be bona fide NSCoding-Compliant . So perhaps some identifiers were erroneous . Remedy : I generated a new String-type identifier NSTableColumn overriding any existing identifier . That did the trick .", "Question : I ve created an NSTableView programmatically and added a single column an instance of NSTableColumn . How can I set the name of this column by default it s named Field In NSTableColumn there s a method with signature .. . .. . but t his method is only valid for cell-based table views and I am using a view-based table view . The NSTableView itself contains an instance of NSTableHeaderView which contains an instance of NSTableHeaderCell . NSTableHeaderCell is a subclass of NSTextFieldCell which looks good since it has a setString method . But I can t access the NSTableHeaderCell So how then can I set the column name I assume it s trivial to do it : after all being able to set the column names in a table view is pretty much the most important thing to be able to do with a table view but after hours of searching I haven t found a single clue on how to do it . .. . Answer : I think you should just go ahead and use - NSTableColumn headerCell . The comment in the class reference is not present in the NSTableColumn.h header file even though those table-view-related headers have pretty thorough documentation about view-based table views . Also although Apple has generally deprecated NSCell in 10.10 and - NSTableColumn dataCell is deprecated -headerCell is not . That suggests to me that Apple doesn t have a replacement .", "Question : I m trying to implement a NSTableView . I added some columns from xib and on some of them i added a identifier . But when running the app on - id tableView : NSTableView tableView objectValueForTableColumn : NSTableColumn tableColumn row : NSInteger row all the columns identifier are NS : 9 . Any help Thank you . .. . Answer : Sounds to me like you aren t accessing the column identifier : Comment : Thank you so much . I was calling tableView.identifier", "Question : I d like to programmatically set the width of some NSTableColumns in code so that I can restore the widths on startup but I don t really know how to apply what s written in the docs .. . .. . The error I get is as follows : @lvalue CGFloat - T3 is not identical to CGFloat .. . .. . With just 125 as the argument to setWidth the error says IntegerLiteralConvertable - etc.. . .. . .. . Code completion in XCode shows four versions of setWidth each of which take at least two arguments and none with just the width which is all I care about . My guess is that the docs don t match XCode 6.1.1 perhaps It suggests there s just a setWidth method but in real life I have to choose between four equally confusing versions . Comment : You should be able to just treat width as a property : column.width w or column.width 125 . Does that work Comment : I didn t try that but it doesn t like it : Cannot assign to width in column Comment : Calling column.setWidth 125 ofColumn : 0 results in this error : - NSTableColumn setWidth : ofColumn : : unrecognized-selector sent to instance 0x600000082b70 . Same deal with setWidth : forSegment : .. . Answer : One Quincey Morris gave me this answer in the Apple developer forums I hope this isn t a breach of Apple s terms and conditions . I had to cast column as NSTableColumn before the opening brace of my for-loop before I could just call column.width 125 .", "Question : I m trying to create a column with an empty string as the identifier but Cocoa seems to replace the empty string with the word Field every time I try to create the column . How do you go around this .. . Answer : A column s identifier is not the same thing as its title . You want to set its -headerCell s string value : Comment : Many thanks forgot about that . Comment : I think it s rather unintuitive in code . NSControl and subclasses pass messages on to their cells . I think an NSTableColumn should have a -title -setTitle : method that passes the string on to the header cell s string value . Someone should file an enhancement request .. . but I m too lazy to . : - Comment : @Joshua Nozzi indeed", "Question : I m currently trying to use Cocoa Bindings to populate a NSTableView using Cocoa Bindings . I encounter a major problem with some columns where I use custom NSCell subclass . My XIB file contains a NStableView and a NSArrayController . In interface Builder when you set a NSTextFieldCell or a NSImageCell as the datacell of a column you are able to bind the value property of the cell to the ArrayController . When you set a NSCell as the datacell of a NSTableColumn there is no Value binding available in Interface Builder . So you can deduce that bindings should be done programmatically . When you try to bind programmatically the value property to the arrangedObjects.property of the NSArrayController an error raises that says : this class is not key-value coding-compliant for the key-value . And effectively there is no value property exposed when you call the exposeBindings : method there is no value property . How do you elegantly binds an NSArrayController to a NSTableColumn that has a custom subclass of NSCell .. . Answer : To solve this problem create a subclass of NSTableColumn and reimplement the dataCellForRow : method . Finally in your XIB change the column type to your new subclass class .", "Question : I sorted the NSTableColumn using the sort descriptors . I used the following code for Sorting . I am able to get the image from NSImage imageNamed : @ NSAscendingSortIndicator but Iam not able to view the image in the tableview header . Is there any way to simulate the mouse click on the table column to get that Sort indicator up or down arrow in the table header in the table column . .. . Answer : Following Code will update the Sort indicator with out clicking on the header .", "Question : I m trying to creat a UITableViewDataSource but am getting an error on the following : .. . .. . The error that I m seeing is : .. . .. . So obviously NSTableColumn is not defined but I can t figure out how to get it defined . If I include NSTableColumn.h I get NSTableColumn.h not found note : NSTableColumn.h is from the docs in Apple s Organizer . Creating a table view controller can t be this much of a problem but I can t find the answer . What am I missing here .. . Answer : The NSTableView versus UITableView should have been a clue for me . Somewhere in the searching and tutorials I got the wrong interface . As such it isn t surprising I can t find NSTableColumn .", "Question : I have a NSScrollView and a NSTableView with some NSTableColumn in it . When I push a button I change the NSScrollView width with Animation . Here is my code : .. . .. . This works fine . But I want to change each Column width in the meanwhile with the same Animation the problem is NSTableColumn is not a NSView so I can not change its frame.Now I only can change Column width without any Animation . somebody have ideas .. . Answer : I m afraid you would probably have to create your own custom animation that does everything manually . To animate the column here is a general idea : .. . .. . I guess you can adapt this to do what you want . Perhaps you can start this animation at the same time you start the other animation using the same time for both changing 2 to 0.2 in my example .", "Question : I m currently trying to use Cocoa Bindings to populate a NSTableView using Cocoa Bindings . I encounter a major problem with some columns where I use custom NSCell subclass . My XIB file contains a NStableView and a NSArrayController . In interface Builder when you set a NSTextFieldCell or a NSImageCell as the datacell of a column you are able to bind the value property of the cell to the ArrayController . When you set a NSCell as the datacell of a NSTableColumn there is no Value binding available in Interface Builder . So you can deduce that bindings should be done programmatically . When you try to bind programmatically the value property to the arrangedObjects.property of the NSArrayController an error raises that says : this class is not key-value coding-compliant for the key-value . And effectively there is no value property exposed when you call the exposeBindings : method there is no value property . How do you elegantly binds an NSArrayController to a NSTableColumn that has a custom subclass of NSCell .. . Answer : The easiest thing to do would be to make your custom cell a subclass of NSTextFieldCell .", "Question : I am working on COCOA Application in which I am using NSTableView . Now I want the column of tableview should be auto resize their width when user resize or maximize window by dragging application from corner or by clicking green button on top left . Any help will be appreciated . .. . Answer : Make sure your table view itself resizes when the window resizes by setting up constraints or setting its autoresizing mask . Then set the table s overall column autoresizing style . In a storyboard or XIB you do this by selecting the table view not the scroll view that contains it and then setting the Column Sizing popup in the Attributes inspector . In code you set the table view s columnAutoresizingStyle . The different styles are described under NSTableViewColumnAutoresizingStyle https : developer.apple.com library mac documentation Cocoa Reference ApplicationKit Classes NSTableView Class apple ref c tdef NSTableViewColumnAutoresizingStyle . If you want all of the columns to expand or contract during a resize set it to NSTableViewUniformColumnAutoresizingStyle . Then set up each column s autoresizing behavior if necessary . If you are setting up your table in a XIB or storyboard you can select the column and then set its resizing behavior under the Attributes inspector . If you are creating a column in code set the resizingMask https : developer.apple.com library mac documentation Cocoa Reference ApplicationKit Classes NSTableColumn Class apple ref occ instp NSTableColumn resizingMask of each NSTableColumn to include whichever resizing mode bits you want . The default is to allow both user resizing and autoresizing so you shouldn t need to do anything . Comment : Thnx for the help.. . It work like charm", "Question : I ve encountered a problem while creating an NSTableView with 2 columns . How do you set the value of the a row s corresponding column I would like to have colText to be in the row s column but it seems nearly impossible to achieve . Here s the code : .. . .. . I would like objNames objectAtIndex : rowIndex to be in the left column which it is and colText on the right I m a bit stuck . Any help appreciated . Comment : the row s column Each column is queried for each row . .. . Answer : Two options : .. . .. . Update your code and user-interface to use bindings : add a method -formattedSize and then add an NSArrayController to the NIB bind the array controller to your data array and then bind the table column to arrangedObjects.description and arrangedObjects.formattedSize . or use NSTableColumn to differentiate the data returned . e.g .", "Question : I have an NSTableView created in Interface Builder with some columns . I ve set the tableview to autosave its settings I set the autosave name in the Attributes Inspector and checked Column information . Now I want to add some other columns programmatically but when I quit the app and relaunch it these newly added columns disappear and the ones created in Interface Builder reappear . Googling I found a work-around : changing the width of the added column gets the job done but there must be a better solution EDIT : changing the column width only works sometimes . .. . Answer : the position size and ishidden of a NSTableColumn is autosaved -- using the InterfaceBuilder autosave method . make sure to hit the Column Information checkbox.. .", "Question : Im my app I have NSTableView view based and when I add the value that is too long to the last column .. . .. . first it hits the scroller .. . .. . enter image description here http : i.stack.imgur.com TF48G.png .. . .. . then when I resize the window the row is not getting resized to fit the content .. . .. . enter image description here http : i.stack.imgur.com n1sxp.png .. . .. . does anyone know how to deal with this problem Any kind of help is highly appreciated Comment : make sure TableCellView autosizing is set horizontally to expand Comment : If you mean Autoresizing box in NIB...it is check marked Comment : Did you figure out an answer for this I have the same issue Comment : nope didn t solve this one yet Comment : I solved the issue . I am not sure if you have the same problem but if you are using NSTableCellView under NSTableColumn then you need to set constraints for NSTableCellView . Highlight NSTableCellView and click on Resolve Auto-layout issue and click on Add missing constraints in the container . This will fix the issue if its same as mine . .. . Answer : The reason for this problem is due to constraints . If you are using NSTableCellView under NSTableColumn then you need to set constraints for NSTableCellView . Highlight NSTableCellView and click on Resolve Auto-layout issue and click on Add missing constraints in the container . This will fix the issue . Comment : More specifically the table cell view needs constraints that keep its size pinned to its container s size .", "Question : I m trying to figure out a way to have a NSTableColumn be pinned to the left side of my NSTableView . What I have been thinking of is putting two NSTableView s side-by-side where the first one contains the pinned column and the second on contains the dynamic data . Setting the first table to disable horizontal scrolling then detecting when either table is scrolled vertically and keeping the two in sync . What I m wondering is if anyone else has any experience in doing something similar I don t want to re-invent the wheel if its already been done . .. . Answer : Thats exactly what I did . Two NSTableView s directly beside each other . The first I subclassed the NSScrollView and modified the scroll events to do nothing . The second I subclassed again the NSScrollView and modified the scroll events to cause the header to mirror it . Works great .", "Question : I m creating some NSTableColumn s dynamically and they appear too tall in the table . In the Interface Builder there is a general setting to adjust the object size mini small regular . Is there any code equivalent for this or should I simply select the font manually Update .. . .. . I found that I can get the font with : .. . .. . However the row height doesn t match the items height . Setting the font in code does nothing with the row height . I use NSTextFieldCell s and NSPopUpButtonCell s as data cells . Oh and I m building for 10.6 . .. . Answer : In addition to changing the font you need to set the control size of the cell .", "Question : I m creating some NSTableColumn s dynamically and they appear too tall in the table . In the Interface Builder there is a general setting to adjust the object size mini small regular . Is there any code equivalent for this or should I simply select the font manually Update .. . .. . I found that I can get the font with : .. . .. . However the row height doesn t match the items height . Setting the font in code does nothing with the row height . I use NSTextFieldCell s and NSPopUpButtonCell s as data cells . Oh and I m building for 10.6 . .. . Answer : Apple is now providing an official guide https : developer.apple.com library mac documentation Cocoa Conceptual ControlCell Articles ManipulateCellControl.html for this . Here s copied code snippet .", "Question : I ve got a simple app that lists some models in a NSTableView . The table is a completely standard view-based table with a couple of columns and is populated through an NSArrayController using bindings . All of that is set up in Interface Builder and it works just as expected . Now I d like to add some more columns programmatically and have these new columns bind to various keypaths in the models . And there I m stuck . For simplicity s sake assume this setup : .. . .. . 1 . The Model objects are plain objects with just a single NSString property : name .. . 2 . The AppDelegate has an NSArray property models which holds a number of Model instances . 3 . The NSArrayController s content is bound to the application delegate s models array . 4 . The NSTableView s content is bound to the array controller s arrangedObjects . 5 . The table s first column is bound in IB to display the name property i.e . column table cell view static text table view cell value is bound to the table cell view s objectValue.name .. . .. . This is as far as I know straightforward and by the book and it works like a charm . But.. . how do I add more columns then To add a column programatically to keep it simple let s just say this new column should also just display the name property just like the column that s already there I imagine I d do something like this in the app delegate : .. . .. . I ve tried so many combinations of binding from to the data cell the table the column the array controller the array itself as well as all manner of keypaths but nothing works . The new column is added just fine but it s never populated . I imagine that the basic NSTableColumn instance I create is cell-based not view based and that s causing trouble . However I have no idea how to proceed from here and the docs never talk about binding columns that have been added programmatically . In this case all I want is a simple text column bound to the model exactly like the one I can easily set up IB . I could do all this by implementing an NSTableViewDataSource and manually feeding the table but I ve got everything else set up with bindings already . Any help would be greatly appreciated . .. . Answer : Try like this : - .. . .. . Please note : - your mutable array should bind to arraycontroller then only it will populate the data Comment : Sorry doesn t work tried it . Binding the column only works for cell-based tables . Not view-based tables .", "Question : I ve got a simple app that lists some models in a NSTableView . The table is a completely standard view-based table with a couple of columns and is populated through an NSArrayController using bindings . All of that is set up in Interface Builder and it works just as expected . Now I d like to add some more columns programmatically and have these new columns bind to various keypaths in the models . And there I m stuck . For simplicity s sake assume this setup : .. . .. . 1 . The Model objects are plain objects with just a single NSString property : name .. . 2 . The AppDelegate has an NSArray property models which holds a number of Model instances . 3 . The NSArrayController s content is bound to the application delegate s models array . 4 . The NSTableView s content is bound to the array controller s arrangedObjects . 5 . The table s first column is bound in IB to display the name property i.e . column table cell view static text table view cell value is bound to the table cell view s objectValue.name .. . .. . This is as far as I know straightforward and by the book and it works like a charm . But.. . how do I add more columns then To add a column programatically to keep it simple let s just say this new column should also just display the name property just like the column that s already there I imagine I d do something like this in the app delegate : .. . .. . I ve tried so many combinations of binding from to the data cell the table the column the array controller the array itself as well as all manner of keypaths but nothing works . The new column is added just fine but it s never populated . I imagine that the basic NSTableColumn instance I create is cell-based not view based and that s causing trouble . However I have no idea how to proceed from here and the docs never talk about binding columns that have been added programmatically . In this case all I want is a simple text column bound to the model exactly like the one I can easily set up IB . I could do all this by implementing an NSTableViewDataSource and manually feeding the table but I ve got everything else set up with bindings already . Any help would be greatly appreciated . .. . Answer : You need to bind to the subviews of column s NSTableCellView using this delegate method : .. . .. . NSView category method :" ] }
[ "yes-answer-long", "yes-answer-short" ]
nstableview
UNK_RELATION
alternate-data-stream@s@75
alternate-data-stream -- alternate data streams are features of microsoft @placeholder ntfs filesystem .
{ "confidence": [ 59.84629440307617, 58.66887664794922, 58.66887664794922, 58.460121154785156, 56.088233947753906, 54.43299102783203, 54.007511138916016, 53.639522552490234, 52.36477279663086, 52.24932098388672, 52.19236373901367, 52.059906005859375, 52.059906005859375, 51.04177474975586, 50.403106689453125, 49.63213348388672, 49.63213348388672, 49.29469299316406, 49.27058792114258, 48.72727966308594, 48.72727966308594, 48.03071975708008, 48.03071975708008, 48.03071975708008, 48.03071975708008, 47.97169494628906, 47.78592300415039, 46.543609619140625, 46.543609619140625, 46.543609619140625, 46.28730773925781, 46.068145751953125, 44.866432189941406, 44.302738189697266, 43.926422119140625, 43.926422119140625, 43.114952087402344, 43.09538269042969, 43.023094177246094, 43.023094177246094, 42.657440185546875, 42.604400634765625, 42.603424072265625, 42.603424072265625, 42.25908660888672, 42.007328033447266, 42.007328033447266, 42.007328033447266, 41.89899444580078, 41.69640350341797, 41.69569396972656, 41.324073791503906, 40.85634231567383, 40.55401611328125, 40.43440628051758, 39.89910888671875, 39.53334426879883, 39.38482666015625, 39.27012634277344, 39.02951431274414, 38.92143249511719, 38.92143249511719, 38.92143249511719, 38.218544006347656, 37.92312240600586, 37.33583068847656, 36.52322006225586, 36.48076248168945, 36.28343963623047, 36.12572479248047, 35.76094055175781, 35.56147003173828, 35.32476806640625, 35.09825134277344, 35.09825134277344, 35.09825134277344, 35.09825134277344, 34.84518814086914, 34.65282440185547, 34.01799774169922, 33.93709182739258, 33.93709182739258, 33.76872253417969, 33.25804901123047, 32.730587005615234, 32.50981521606445, 32.50981521606445, 32.50889587402344, 32.3739013671875, 31.91936683654785, 31.82887077331543, 31.82887077331543, 31.551380157470703, 31.46202850341797, 31.17139434814453, 31.07809066772461, 30.98231315612793, 30.907482147216797, 30.726577758789062, 30.606597900390625 ], "content": [ "How does Mercurial handle Alternate Data Streams in the NTFS file system", "Copying to other FS : The alternate data streams are lost .", "LoadLibrary seems to work on alternate data streams .", "Alternate data streams are a separate feature provided by NTFS which allows you to provide alternate subfiles inside of a file .", "I am able to get filename data including data for alternate streams for all files but I was not able to obtain the filenames for the named alternate data streams .", "What are the advantages benefits disadvantages using Alternate Data Streams", "The problem with ADS is that Windows will lose those ADS streams the second that it moves to any non-NTFS filesystem .", "With ADS of which DSOFile is an old 2005 implementation the data WILL be lost as Rob Goldwein noted if transferred to non-NTFS filesystem .", "How would I create delete read-write NTFS alternate data streams from .NET", "Mac s named forks are conceptually similar to Windows s alternate data streams or ADS .", "Simple : It uses Alternate Data Streams ADS in particular an ADS called Zone.Identifier .. . .. . For more info see this http : blogs.technet.com b askcore archive 2013 03 24 alternate-data-streams-in-ntfs.aspx .", "One possible purpose for alternate stream : meta-data .", "Mercurial does not store alternate-data-stream .", "According to MSDN each alternate-data-stream may be stored at an encrypted form NTFS encrypted state .", "You can also try my Platform.VirtualFileSystem library which supports listing reading and writing NTFS alternate data streams in just a few lines-of-code .", "You can also have alternate data streams on a directory .", ".. . .. . NOTE : you seem to consider alternate data streams odd .", "See stackoverflow.com questions 604960 http : stackoverflow.com questions 604960 ntfs-alternate-data-streams-net", "Example : Output from the streams utility : .. . .. . Why can t I display the contents of the alternate-data-stream", "I ve read some documentations about Alternate Data Streams and I m thinking about using them in my own projects .", "What do I have to be cautious about if I use Alternate Data Streams", "You can execute from an alternate-data-stream but not directly .", "EFS itself stores the encryption keys in an alternate-data-stream EFS .", "On Windows 7 starting a program located in an Alternate Data Stream e.g .", "ok but how show alternate-data-stream files on the windows-explorer", "This also includes one weird thing NTFS has called Alternate Data Stream ADS .", "On Windows NTFS there is a nice but mostly unused feature called Alternate Data Streams ADS which I recently used in a hobby-dev project .", "https : github.com platformdotnet Platform.VirtualFileSystem wiki https : github.com platformdotnet Platform.VirtualFileSystem wiki Alternate-Data-Streams", "Was reading about ADS Alternate data streams in windows so came across this thing .", "For the purpose of testing I created a file with two named alternate streams containing data .", "Here are links to the code bases I tried : .. . .. . St . Croix Skipper http : www.dreamincode.net forums topic 90666-reading-and-writing-alternate-streams-in-c .. . DevDump http : devdump.wordpress.com 2010 06 28 alternate-data-streams .. . Trinet http : www.codeproject.com Articles 2670 Accessing-alternative-data-streams-of-files-on-an", "Does that mean the alternate stream names are not stored in the MFT", "I wrote a couple of blog posts on alternate datastreams http : www.undermyhat.org blog tag alternate-data-streams on how you can still manipulate streams with only these commands .", "The alternate stream is not present .", "Do I need a special version of copy program to support copying data from and into alternate streams", "Why are you storing information in alternate data streams that you want to store in source control", "ADS are real NTFS streams .", "Microsoft used alternate streams to store Mac forks in their NT Server Services for Macintosh package .", "lpFileName is the correct file name and is the path to a file with an alternate stream .", "Then how does some utilities such as stream.exe identify the alternate stream names", "And here you have some examples on how to use it blog.codefluententities.com 2013 03 14 http : blog.codefluententities.com 2013 03 14 manipulating-ntfs-alternate-data-streams-in-c-with-the-codefluent-runtime-client", "Looking at the Microsoft documentation on How To Use NTFS Alternate Data Streams http : support.microsoft.com kb 105763 en-us FR 1 PA 1 SD HSCH I can see that this applies to my operating-system although they do mention that these streams will not be supported in the future .", "Every file has a default unnamed data-stream that is automatically opened unless you specify an alternate one .", "I have some files that use alternate-data-stream and are not shown on windows-explorer .", "NTFS is not the only file system that supports named streams .", "It says that alternate streams may not be supported in future file systems i.e .", "The Win32 API handles the naming of alternate streams just fine .", "I would think alternate streams would be a no-no with any RCS distributed or not .", "I d like to be able to use an alternate-data-stream to store some synchronization information for files that are referenced in a database application I m building .", "Any file object on NTFS can store more than one DATA Stream .", "In order to properly track shortcuts including moves and copies and I m wondering if putting an NTFS alternate-data-stream FoobarInstaller.Shortcut in each of these shortcuts which simply contains a UUID is a viable option .", "Using the raw Windows programming API from C C++ and a file handle or a path to a file folder link etc how can I programmatically decide whether the file etc supports ADS Alternate Data Streams", "Fwiw you ll have to use PInvoke as the .Net System.IO classes don t support alternate data streams .", ".. . Some implementations map this concept to features like NTFS Alternative Data Streams and extended attributes on file systems such as ext3 and ZFS .", "For more ideas see : undermyhat.org blog 2012 04 http : www.undermyhat.org blog 2012 04 ultimate-guide-manipulating-alternate-data-streams", "Copying to NTFS : Windows Explorer and the copy commandline utility copy all streams .", "Because it creates a file named workshop that contains an alternate-data-stream called alex.pdf .", "I assume one thing I have to know is whether the file is on an NTFS partition but then again for all I know it might be possible to mount some kind of Mac or nix filesystems which support data forks or alternate data streams of some kind and all such cases might be covered by a single API call or data structure .", "In some cases the method calls appear to succeed only no alternate stream is created i.e . I can t later read from the alternate file nor can AlternateStreamViewer see it .", "Nothing is preventing you from using NTFS on linux see this question http : unix.stackexchange.com questions 14297 can-nix-handle-ntfs-ads-data-streams", "I think the problem was that I hadn t yet created the base file for which I was trying to save an alternate stream .", "Also I was creating the alternate stream prior to creating the base file which may be problematic .", "When I parsed the MFT record corresponding to the file I was not able to identify the alternate stream names .", "Today I have seen this weird magic NTFS system supports : each file can have multiple data streams .", "You can look for NTFS streams with the help of the streams utility from Sysinternals .", "The process does not have sufficient rights to delete the alternate stream .", "I would like to make a shell extension or a program that runs on background that when I use windows-explorer and navigates to a folders that has alternate data streams files to show this file to windows-explorer but with an overlay icon on it .", "the default data-stream is named DATA", "Also a random post on a random forum : D http : www.coderanch.com t 278346 java-io java java-access-Windows-file-properties .. . .. . The data is stored in NTFS Alternate data streams ADS which are readable through Java IO I have tested it .", "Generally network-shares do not support alternate data streams as the spec doesn t support them so if by migrated the site and resultant files were copied then all the ADS streams were lost .", "Many of your questions are covered here : http : flexhex.com docs articles alternate-streams.phtml .. . .. . 1 .", "The error literally means that it is not being recognized as an alternate-data-stream and the reference you re making contains a certain character that is not allowed in a path name the : other characters not allowed include etc .", "There is only one EFS stream per file which would make it impossible for other alternate data streams to also be encrypted unless they also used the same symmetric key which would go against every design principle of EFS that uses different keys for every file .", "I m not familiar with NTFS streams so I can t compare the two .", "So as long as my fs is NTFS I should be able to work with these streams .", "As long as Windows versions support NTFS they will support file streams .", "In fact originally the streams were added to NTFS for interoperability with other filesystems .", "ADS is a feature of NTFS .", "DSOFile is not Office specific as it writes data to the ADS of any NTFS file .", "Checksums : As you usually open only the unnamed data-stream when you access a file by name only the contents of this stream are used when calculating checksums .", "Mehrdad - not for access through this API if you find an alternate let me know .", "I m writing an app that needs to store an alternate version of a file .", "According to alternate-streams http : www.flexhex.com docs articles alternate-streams.phtml though not necessarily from this API call it should be possible to save to a directory folder but changing the flags yield different errors eg : .. . .. . results in : .. . .. . pywintypes.com error : -2147024895 Incorrect function .", "The visible one is named any additional data-stream is invisible as far as Explorer is concerned .", "The detection of whether the package is downloaded from the internet happens via the Mark-of-the-web http : blogs.msdn.com b ieinternals archive 2011 03 23 understanding-local-machine-zone-lockdown-restricted-this-webpage-from-running-scripts-or-activex-controls.aspx which as @JohannesKuhn pointed out is implemented with an alternate stream named Zone.Identifier .", "How do you enum Streams without the Sysinternals tool streams", "Nested streams : No a file simply consists of a list of streams they cannot be nested .", "So is there a way of not encrypting all data streams under XP", "So I have tried using trinet core io ntfs dll to get to alternative data streams in C using VS 2015 but I have a problem : i couldn t find a way to write into a file .", "This is strictly NTFS related magic and I don t see any noble reason for having these streams around .", "What happens if I copy cut the Host File to another NTFS Path", "What happens if I copy cut the Host File to another Path that is NOT NTFS", "Will the data also be lost if I use DSOFile and transfer the file to a non-NTFS system", "Instead you could use multiple-files and a suitable naming scheme just append the stream index to each filename perhaps or an archive containing multiple-files you will find such an approach is better in other ways anyway - for instance what happens on Windows if someone wants to back up the files Windows to a medium with a non-NTFS filesystem", "The type of data-stream can indeed be specified but must always be DATA other types are not supported .", "Is it possible to have another Stream in an existing stream", "Given the symptoms my understanding is that you can only safely delete an executable in this particular setting Windows XP perhaps at a particular patch level when the executable is from an alternate stream once this executable has finished initializing .", "Will WMI events polling be of any help custom event or Alternative data-stream", "Do the streams copy cut themselves too", "ShellExecute a stream" ] }
{ "confidence": [ 73.60042572021484, 73.15107727050781, 73.0588607788086, 72.71376037597656, 71.61967468261719, 71.05408477783203, 70.93917846679688, 70.58486938476562, 70.07745361328125, 69.58465576171875, 65.99991607666016, 65.94229888916016, 63.51185607910156, 63.29241180419922, 60.56797790527344, 59.062477111816406, 58.749000549316406, 58.67913818359375, 58.39222717285156, 58.08717346191406 ], "content": [ "Question : On Windows NTFS there is a nice but mostly unused feature called Alternate Data Streams ADS which I recently used in a hobby-dev project . On Mac HFS+ there is also a similarly nice but mostly unused feature called named forks . I am thinking of porting this project to Linux but I do not know if any Filesystem on linux has such a feature Comment : Mostly unused Are you sure about that . It s very useful for hiding data . Comment : @Pacerier : unused that no UI or applications seem to interface with it in any way . Comment : That s exactly why they are useful for hiding viruses . Comment : Nothing is preventing you from using NTFS on linux see this question http : unix.stackexchange.com questions 14297 can-nix-handle-ntfs-ads-data-streams .. . Answer : The commonly used Linux filesystems do not support this . Instead you could use multiple-files and a suitable naming scheme just append the stream index to each filename perhaps or an archive containing multiple-files you will find such an approach is better in other ways anyway - for instance what happens on Windows if someone wants to back up the files Windows to a medium with a non-NTFS filesystem Comment : You re supposed to use a backup program that uses the backup APIs-- they will package all the metadata on a file EAs security descriptor data streams encrypted files etc . into a single stream to save and later restore .", "Question : I ve read some documentations about Alternate Data Streams and I m thinking about using them in my own projects . However there is so much unknown knowledge and open questions that I still have before I decide to use them . That s why I made this question list : .. . .. . 1 . How do you enum Streams without the Sysinternals tool streams 2 . Does a stream affect the Host File s MD5 Value 3 . What happens if I copy cut the Host File to another NTFS Path Do the streams copy cut themselves too 4 . What happens if I copy cut the Host File to another Path that is NOT NTFS 5 . Is it possible to have another Stream in an existing stream 6 . Since you will have an actual filehandle for each stream is it possible to change a stream s attributes 7 . Can I use the LoadLibrary API to load a DLL from a stream 8 . Is it possible to execute e.g . ShellExecute a stream 9 . What are the advantages benefits disadvantages using Alternate Data Streams 10 . What do I have to be cautious about if I use Alternate Data Streams I m looking forward to your answers infos summarys . The preferable language is Delphi but any other language will do too as long as it uses the WinAPI . Comment : Your question looks like I want to know everything . Please explain what you are actually planning to do with ADS . Comment : I m planning to use ADS . However there are open questions that are undocumented or have never been asked . Comment : Which features are undocumented .. . Answer : Many of your questions are covered here : http : flexhex.com docs articles alternate-streams.phtml .. . .. . 1 . Enumeration : Use NtQueryInformationFile see link . Beginning with Windows Vista you can also enumerate streams on the commandline using dir r . 2 . Checksums : As you usually open only the unnamed data-stream when you access a file by name only the contents of this stream are used when calculating checksums . 3 . Copying to NTFS : Windows Explorer and the copy commandline utility copy all streams . 4 . Copying to other FS : The alternate data streams are lost . 5 . Nested streams : No a file simply consists of a list of streams they cannot be nested . 6 . Attributes : Some attributes are file-based some encrypted compressed sparse are stream-based . 7 . LoadLibrary seems to work on alternate data streams . 8 . ShellExecute on an ADS failed with ERROR FILE NOT FOUND 2 on my computer . 9 . ADS are useful to store some non-critical information associated with a file . For example executable files downloaded from the internet will have an ADS which causes Explorer to display a warning before the file is executed . 10 . See link . In particular don t use them for critical data . Comment : dir r will list streams also if your playing @ the command-line Comment : NTFS is not the only file system that supports named streams . Contrary to what the article recommends as safe one should query GetVolumeInformation http : msdn.microsoft.com en-us library windows desktop aa364993 v vs.85 .aspx s FILE NAMED STREAMS flag instead .", "Question : Today I have seen this weird magic NTFS system supports : each file can have multiple data streams . Basically one could have a file a.txt of 0b size but there can be any number of bytes hidden in a separate data-stream for that file . This is strictly NTFS related magic and I don t see any noble reason for having these streams around . You can look for NTFS streams with the help of the streams utility from Sysinternals . This will show you that basically every one of those nasty thumbs.db files comes with an extra data-stream . Okay now I have seen this magic work on a Windows NT4 system streams added to files copied over deleted with the help of the aforementioned utility but I am now trying this at home on my Win XP system but although I can detect the existing streams I can t display their contents can t create new ones or very much anything when I use the filename : streamname syntax . I get this error : .. . .. . The filename directory name or volume label syntax is incorrect . Example : Output from the streams utility : .. . .. . Why can t I display the contents of the alternate-data-stream Looking at the Microsoft documentation on How To Use NTFS Alternate Data Streams http : support.microsoft.com kb 105763 en-us FR 1 PA 1 SD HSCH I can see that this applies to my operating-system although they do mention that these streams will not be supported in the future . Anyone can shed any light on this Comment : It says that alternate streams may not be supported in future file systems i.e . those that come after NTFS however it says that NTFS will be supported in future OSes regardless . Comment : I agree with that . So as long as my fs is NTFS I should be able to work with these streams . Do I need a special version of copy program to support copying data from and into alternate streams Comment : I m not sure what your question is - maybe you should edit the question title so we don t have to sift through the question body looking for what you re actually asking.. . .. . Answer : The error literally means that it is not being recognized as an alternate-data-stream and the reference you re making contains a certain character that is not allowed in a path name the : other characters not allowed include etc . Try : .. . .. . start this is a.txt : ads.exe Comment : Note : Windows 7 has silently removed the ability to execute from ADS and I m still looking for a way to actually do that . Comment : You can execute from an alternate-data-stream but not directly . Copy the datastream to a file and execute it will work . I don t yet know of another way .", "Question : Today I have seen this weird magic NTFS system supports : each file can have multiple data streams . Basically one could have a file a.txt of 0b size but there can be any number of bytes hidden in a separate data-stream for that file . This is strictly NTFS related magic and I don t see any noble reason for having these streams around . You can look for NTFS streams with the help of the streams utility from Sysinternals . This will show you that basically every one of those nasty thumbs.db files comes with an extra data-stream . Okay now I have seen this magic work on a Windows NT4 system streams added to files copied over deleted with the help of the aforementioned utility but I am now trying this at home on my Win XP system but although I can detect the existing streams I can t display their contents can t create new ones or very much anything when I use the filename : streamname syntax . I get this error : .. . .. . The filename directory name or volume label syntax is incorrect . Example : Output from the streams utility : .. . .. . Why can t I display the contents of the alternate-data-stream Looking at the Microsoft documentation on How To Use NTFS Alternate Data Streams http : support.microsoft.com kb 105763 en-us FR 1 PA 1 SD HSCH I can see that this applies to my operating-system although they do mention that these streams will not be supported in the future . Anyone can shed any light on this Comment : It says that alternate streams may not be supported in future file systems i.e . those that come after NTFS however it says that NTFS will be supported in future OSes regardless . Comment : I agree with that . So as long as my fs is NTFS I should be able to work with these streams . Do I need a special version of copy program to support copying data from and into alternate streams Comment : I m not sure what your question is - maybe you should edit the question title so we don t have to sift through the question body looking for what you re actually asking.. . .. . Answer : This is strictly NTFS related magic .. . .. . Not so - Mac OS has had these since back in the day they are called forks in that world and you would use ResEdit to get at them . The classic use http : en.wikipedia.org wiki Resource fork of them is to bundle media assets along with an executable . Comment : Indeed . Microsoft used alternate streams to store Mac forks in their NT Server Services for Macintosh package .", "Question : Today I have seen this weird magic NTFS system supports : each file can have multiple data streams . Basically one could have a file a.txt of 0b size but there can be any number of bytes hidden in a separate data-stream for that file . This is strictly NTFS related magic and I don t see any noble reason for having these streams around . You can look for NTFS streams with the help of the streams utility from Sysinternals . This will show you that basically every one of those nasty thumbs.db files comes with an extra data-stream . Okay now I have seen this magic work on a Windows NT4 system streams added to files copied over deleted with the help of the aforementioned utility but I am now trying this at home on my Win XP system but although I can detect the existing streams I can t display their contents can t create new ones or very much anything when I use the filename : streamname syntax . I get this error : .. . .. . The filename directory name or volume label syntax is incorrect . Example : Output from the streams utility : .. . .. . Why can t I display the contents of the alternate-data-stream Looking at the Microsoft documentation on How To Use NTFS Alternate Data Streams http : support.microsoft.com kb 105763 en-us FR 1 PA 1 SD HSCH I can see that this applies to my operating-system although they do mention that these streams will not be supported in the future . Anyone can shed any light on this Comment : It says that alternate streams may not be supported in future file systems i.e . those that come after NTFS however it says that NTFS will be supported in future OSes regardless . Comment : I agree with that . So as long as my fs is NTFS I should be able to work with these streams . Do I need a special version of copy program to support copying data from and into alternate streams Comment : I m not sure what your question is - maybe you should edit the question title so we don t have to sift through the question body looking for what you re actually asking.. . .. . Answer : One possible purpose for alternate stream : meta-data . One can add for a document a large description without affecting the content of the original file .", "Question : Today I have seen this weird magic NTFS system supports : each file can have multiple data streams . Basically one could have a file a.txt of 0b size but there can be any number of bytes hidden in a separate data-stream for that file . This is strictly NTFS related magic and I don t see any noble reason for having these streams around . You can look for NTFS streams with the help of the streams utility from Sysinternals . This will show you that basically every one of those nasty thumbs.db files comes with an extra data-stream . Okay now I have seen this magic work on a Windows NT4 system streams added to files copied over deleted with the help of the aforementioned utility but I am now trying this at home on my Win XP system but although I can detect the existing streams I can t display their contents can t create new ones or very much anything when I use the filename : streamname syntax . I get this error : .. . .. . The filename directory name or volume label syntax is incorrect . Example : Output from the streams utility : .. . .. . Why can t I display the contents of the alternate-data-stream Looking at the Microsoft documentation on How To Use NTFS Alternate Data Streams http : support.microsoft.com kb 105763 en-us FR 1 PA 1 SD HSCH I can see that this applies to my operating-system although they do mention that these streams will not be supported in the future . Anyone can shed any light on this Comment : It says that alternate streams may not be supported in future file systems i.e . those that come after NTFS however it says that NTFS will be supported in future OSes regardless . Comment : I agree with that . So as long as my fs is NTFS I should be able to work with these streams . Do I need a special version of copy program to support copying data from and into alternate streams Comment : I m not sure what your question is - maybe you should edit the question title so we don t have to sift through the question body looking for what you re actually asking.. . .. . Answer : BTW you can open AltDataStream with notepad : .. . .. . Also you may specify type of AltDataStream not only with Notepad it is full stream name : Comment : notepad.exe seems to have no problems opening the ADS . Comment : Same is true for Word Excel and probably other MS programs but you must start it from a command-prompt . The type of data-stream can indeed be specified but must always be DATA other types are not supported .", "Question : Today I have seen this weird magic NTFS system supports : each file can have multiple data streams . Basically one could have a file a.txt of 0b size but there can be any number of bytes hidden in a separate data-stream for that file . This is strictly NTFS related magic and I don t see any noble reason for having these streams around . You can look for NTFS streams with the help of the streams utility from Sysinternals . This will show you that basically every one of those nasty thumbs.db files comes with an extra data-stream . Okay now I have seen this magic work on a Windows NT4 system streams added to files copied over deleted with the help of the aforementioned utility but I am now trying this at home on my Win XP system but although I can detect the existing streams I can t display their contents can t create new ones or very much anything when I use the filename : streamname syntax . I get this error : .. . .. . The filename directory name or volume label syntax is incorrect . Example : Output from the streams utility : .. . .. . Why can t I display the contents of the alternate-data-stream Looking at the Microsoft documentation on How To Use NTFS Alternate Data Streams http : support.microsoft.com kb 105763 en-us FR 1 PA 1 SD HSCH I can see that this applies to my operating-system although they do mention that these streams will not be supported in the future . Anyone can shed any light on this Comment : It says that alternate streams may not be supported in future file systems i.e . those that come after NTFS however it says that NTFS will be supported in future OSes regardless . Comment : I agree with that . So as long as my fs is NTFS I should be able to work with these streams . Do I need a special version of copy program to support copying data from and into alternate streams Comment : I m not sure what your question is - maybe you should edit the question title so we don t have to sift through the question body looking for what you re actually asking.. . .. . Answer : The Win32 API handles the naming of alternate streams just fine . CMD on the other hand does some funky parsing of the file name when it s possible to have expansion and barfs when a : is present . That s why copy and type fail but simple redirection works .", "Question : Today I have seen this weird magic NTFS system supports : each file can have multiple data streams . Basically one could have a file a.txt of 0b size but there can be any number of bytes hidden in a separate data-stream for that file . This is strictly NTFS related magic and I don t see any noble reason for having these streams around . You can look for NTFS streams with the help of the streams utility from Sysinternals . This will show you that basically every one of those nasty thumbs.db files comes with an extra data-stream . Okay now I have seen this magic work on a Windows NT4 system streams added to files copied over deleted with the help of the aforementioned utility but I am now trying this at home on my Win XP system but although I can detect the existing streams I can t display their contents can t create new ones or very much anything when I use the filename : streamname syntax . I get this error : .. . .. . The filename directory name or volume label syntax is incorrect . Example : Output from the streams utility : .. . .. . Why can t I display the contents of the alternate-data-stream Looking at the Microsoft documentation on How To Use NTFS Alternate Data Streams http : support.microsoft.com kb 105763 en-us FR 1 PA 1 SD HSCH I can see that this applies to my operating-system although they do mention that these streams will not be supported in the future . Anyone can shed any light on this Comment : It says that alternate streams may not be supported in future file systems i.e . those that come after NTFS however it says that NTFS will be supported in future OSes regardless . Comment : I agree with that . So as long as my fs is NTFS I should be able to work with these streams . Do I need a special version of copy program to support copying data from and into alternate streams Comment : I m not sure what your question is - maybe you should edit the question title so we don t have to sift through the question body looking for what you re actually asking.. . .. . Answer : From the top of my head : NTFS datastreams http : en.wikipedia.org wiki NTFS Alternate data streams .28ADS.29 were introduced in Windows NT 4.0 and have been around in all descendants excluding the win-95 descendants : 98 Me . In XP Vista and Win 7 they re still around . As long as Windows versions support NTFS they will support file streams . They will support NTFS for a long time to come . The error you have is described on the page you show in your question . The type command doesn t understand streams . Use : .. . .. . .. . .. . Working with streams .. . .. . Microsoft only has a handful commands that work with streams in fact only work with streams and thus only commands can be used that can work with these redirect operators . I wrote a couple of blog posts on alternate datastreams http : www.undermyhat.org blog tag alternate-data-streams on how you can still manipulate streams with only these commands . Streams will only work with programs that are designed to work with them simply because they need to be treated specially compare junction points also a feature of NTFS but the driver hides the details and programs do not need to do anything special : they just consider the junction point a real file . When you try to open a file stream using start filename : streamname and a program says something like illegal filename or file-not-found and you are positive that the stream name is correct then it s likely that the program does not support streams . I noticed that Notepad Wordpad and Word Excel work correctly with streams though Word and Excel consider the files dangerous . Here are some experiments http : www.irongeek.com i.php page security altds you may try . .. . .. . NOTE : you seem to consider alternate data streams odd . They are odd because they are so hidden but many major file system HFS NSS have it and the concept dates back to the early 80s . In fact originally the streams were added to NTFS for interoperability with other filesystems . Comment : funny thing is I have seen it work with the type command . However the shell used to demonstrate this was NT4 shell not the usual cmd.exe Comment : copy 1013.pdf : Zone.Identifier x.xxx should work too . but it doesn t on my machine . I just don t understand what s going on . Comment : @PeterPerh : no copy doesn t work . Yes type does work but only like so : type somefile otherfile : streamname . The reverse using type to read a stream does not work . For more ideas see : undermyhat.org blog 2012 04 http : www.undermyhat.org blog 2012 04 ultimate-guide-manipulating-alternate-data-streams", "Question : On Windows NTFS there is a nice but mostly unused feature called Alternate Data Streams ADS which I recently used in a hobby-dev project . On Mac HFS+ there is also a similarly nice but mostly unused feature called named forks . I am thinking of porting this project to Linux but I do not know if any Filesystem on linux has such a feature Comment : Mostly unused Are you sure about that . It s very useful for hiding data . Comment : @Pacerier : unused that no UI or applications seem to interface with it in any way . Comment : That s exactly why they are useful for hiding viruses . Comment : Nothing is preventing you from using NTFS on linux see this question http : unix.stackexchange.com questions 14297 can-nix-handle-ntfs-ads-data-streams .. . Answer : The problem with ADS is that Windows will lose those ADS streams the second that it moves to any non-NTFS filesystem . It does not consider those streams important so oftentimes they are not kept around . You ll find they aren t accessible or disappear when over a network share when burned to CD put on a USB drive etc.. . The long and short of it is unless you have a very narrow focus for your application always on NTFS I would avoid ADS streams altogether . Comment : This is acceptable for some use cases such as caching metadata or file offsets that could otherwise be re generated computed with more effort .", "Question : On Windows NTFS there is a nice but mostly unused feature called Alternate Data Streams ADS which I recently used in a hobby-dev project . On Mac HFS+ there is also a similarly nice but mostly unused feature called named forks . I am thinking of porting this project to Linux but I do not know if any Filesystem on linux has such a feature Comment : Mostly unused Are you sure about that . It s very useful for hiding data . Comment : @Pacerier : unused that no UI or applications seem to interface with it in any way . Comment : That s exactly why they are useful for hiding viruses . Comment : Nothing is preventing you from using NTFS on linux see this question http : unix.stackexchange.com questions 14297 can-nix-handle-ntfs-ads-data-streams .. . Answer : There are file systems on both Windows and Linux and other OSes that support extended attributes EAs . The Windows support was added for OS 2 compat and does not have any documented interface except for a hacky method through the backup API that s what Cygwin does . EAs are designed to store small values only . On Windows each EA has an ASCII name whereas almost all other names are Unicode and the combined size of all EAs on a file can t be larger than 64k . EAs are not files : you can t open a file handle to an EA and read it like a normal file . Alternate data streams are a separate feature provided by NTFS which allows you to provide alternate subfiles inside of a file . Every file has a default unnamed data-stream that is automatically opened unless you specify an alternate one . You can open a handle to an ADS and read even execute it like a normal file with a single Unicode filename . An ADS can be as large as any disk file . There is no exact analog to ADSes on Linux that I know of but you may be able to use EAs on the Linux port instead if the data values are small . Comment : the default data-stream is named DATA Comment : @DanD . DATA not DATA .", "Question : According to MSDN each alternate-data-stream may be stored at an encrypted form NTFS encrypted state . The only API function I ve find for setting Encryption state is EncryptFile which states to encrypt all data streams of a file . So is there a way of not encrypting all data streams under XP .. . Answer : That MSDN article wherever you found it is wrong . NTFS encryption i.e . EFS itself stores the encryption keys in an alternate-data-stream EFS . There is only one EFS stream per file which would make it impossible for other alternate data streams to also be encrypted unless they also used the same symmetric key which would go against every design principle of EFS that uses different keys for every file . Please show the reference to that MSDN article . I m convinced it s in error it wouldn t be the only article published on microsoft.com that wasn t 100 accurate - the writers of these articles are human . Heck I put material on MSDN that wasn t 100 accurate earlier in my career .", "Question : I have been working on retrieving file information from MFT . I see that the MFT record has info regarding standard info file names data and few other attributes . I tried parsing the MFT record to get all the details that it contains . I am able to get filename data including data for alternate streams for all files but I was not able to obtain the filenames for the named alternate data streams . For the purpose of testing I created a file with two named alternate streams containing data . When I parsed the MFT record corresponding to the file I was not able to identify the alternate stream names . Does that mean the alternate stream names are not stored in the MFT Then how does some utilities such as stream.exe identify the alternate stream names .. . Answer : If you re parsing the attributes yourself you can find the offset to the name of the attributes in their common header . There is a WORD value in the header at offset 0x0A of the attribute if I m not mistaken I found it here ftp : ftp.kolibrios.org users Asper docs NTFS ntfsdoc.html concept attribute header . The offset points to the name of the attribute . The attribute header size + the length of the attribute name + the length of the data data run if not resident actual data otherwise should match the attribute length stored in the common header field offset 0x04 . If you re using the Windows API you can use the FindFirstStreamW https : msdn.microsoft.com en-us library windows desktop aa364424 28v vs.85 29.aspx function on a file to get it s streams . It usually returns a WIN32 FIND STREAM DATA https : msdn.microsoft.com en-us library windows desktop aa365741 28v vs.85 29.aspx structure that contains the name of the stream .", "Question : I d like to be able to use an alternate-data-stream to store some synchronization information for files that are referenced in a database application I m building . However every approach I ve found on the web has failed in one way or another . Not being experienced at Win32 API programming I m not sure why the failures are occurring . In some cases the method calls appear to succeed only no alternate stream is created i.e . I can t later read from the alternate file nor can AlternateStreamViewer see it . In other cases the write succeeds but the read fails because calling CreateFile results in an invalid SafeFileHandle . At this point I d just like to find some working code . Or be advised that ya can t get there from here . In which case I ll use another less attractive option e.g . encode the sync reference information in the filename itself and hope no one ever changes a file name . .. . .. . I understand the request for what approaches I tried . But there were quite a few I spent hours on this and I was really interested in learning about offerings I hadn t tried . However you re right that it would ve helped as it turns out I was using one of the approaches -- the Trinet one referred to below -- incorrectly . I think the problem was that I hadn t yet created the base file for which I was trying to save an alternate stream . Here are links to the code bases I tried : .. . .. . St . Croix Skipper http : www.dreamincode.net forums topic 90666-reading-and-writing-alternate-streams-in-c .. . DevDump http : devdump.wordpress.com 2010 06 28 alternate-data-streams .. . Trinet http : www.codeproject.com Articles 2670 Accessing-alternative-data-streams-of-files-on-an Comment : stackoverflow.com q 604960 102937 http : stackoverflow.com q 604960 102937 Comment : Please include in your question links to some of the approaches you tried and why they failed . Otherwise we re just going to be referring you to the same failed approaches . .. . Answer : You can also try my Platform.VirtualFileSystem library which supports listing reading and writing NTFS alternate data streams in just a few lines-of-code . https : github.com platformdotnet Platform.VirtualFileSystem wiki https : github.com platformdotnet Platform.VirtualFileSystem wiki Alternate-Data-Streams", "Question : Using the raw Windows programming API from C C++ and a file handle or a path to a file folder link etc how can I programmatically decide whether the file etc supports ADS Alternate Data Streams I assume one thing I have to know is whether the file is on an NTFS partition but then again for all I know it might be possible to mount some kind of Mac or nix filesystems which support data forks or alternate data streams of some kind and all such cases might be covered by a single API call or data structure . Secondly I m not sure whether every kind of object that can exist on an NTFS partition can have ADSs - such as folders symlinks hardlinks anything else What API etc can handle all cases to tell me whether a given file etc has the ability to have ADSs For this question I m not looking for whether files have ADSs just whether its possible for files to have them . It could include a file I ve just created for instance . .. . Answer : Like any other file Directories can also host other ADS Any file object on NTFS can store more than one DATA Stream . The visible one is named any additional data-stream is invisible as far as Explorer is concerned . Actually at the prompt now one can display ADS using the R switch when invoking dir .", "Question : On Windows NTFS there is a nice but mostly unused feature called Alternate Data Streams ADS which I recently used in a hobby-dev project . On Mac HFS+ there is also a similarly nice but mostly unused feature called named forks . I am thinking of porting this project to Linux but I do not know if any Filesystem on linux has such a feature Comment : Mostly unused Are you sure about that . It s very useful for hiding data . Comment : @Pacerier : unused that no UI or applications seem to interface with it in any way . Comment : That s exactly why they are useful for hiding viruses . Comment : Nothing is preventing you from using NTFS on linux see this question http : unix.stackexchange.com questions 14297 can-nix-handle-ntfs-ads-data-streams .. . Answer : Most Linux file systems have extended attributes . I m not familiar with NTFS streams so I can t compare the two . Most file systems need to be mounted with flags to enable the extended attributes so this may not work generically for anyone s system . They are usually abbreviated as xattr or xattrs .", "Question : On Windows NTFS there is a nice but mostly unused feature called Alternate Data Streams ADS which I recently used in a hobby-dev project . On Mac HFS+ there is also a similarly nice but mostly unused feature called named forks . I am thinking of porting this project to Linux but I do not know if any Filesystem on linux has such a feature Comment : Mostly unused Are you sure about that . It s very useful for hiding data . Comment : @Pacerier : unused that no UI or applications seem to interface with it in any way . Comment : That s exactly why they are useful for hiding viruses . Comment : Nothing is preventing you from using NTFS on linux see this question http : unix.stackexchange.com questions 14297 can-nix-handle-ntfs-ads-data-streams .. . Answer : The only thing I know which goes somewhat into that direction are extended attributes http : acl.bestbits.at about.html but from what I read about ADS it s def . not the same thing . What exactly are you using that for Comment : I want to store some meta data of files in it .", "Question : Using the raw Windows programming API from C C++ and a file handle or a path to a file folder link etc how can I programmatically decide whether the file etc supports ADS Alternate Data Streams I assume one thing I have to know is whether the file is on an NTFS partition but then again for all I know it might be possible to mount some kind of Mac or nix filesystems which support data forks or alternate data streams of some kind and all such cases might be covered by a single API call or data structure . Secondly I m not sure whether every kind of object that can exist on an NTFS partition can have ADSs - such as folders symlinks hardlinks anything else What API etc can handle all cases to tell me whether a given file etc has the ability to have ADSs For this question I m not looking for whether files have ADSs just whether its possible for files to have them . It could include a file I ve just created for instance . .. . Answer : ADS is a feature of NTFS . You can use GetVolumeInformation to detect if a given path is on an NTFS file system and even if that volume supports ADS at all . AFAIK only a real file can have an ADS attached to it . You can use GetFileAttributes to detect if a path is a file directory symbolic link etc .", "Question : On Windows NTFS there is a nice but mostly unused feature called Alternate Data Streams ADS which I recently used in a hobby-dev project . On Mac HFS+ there is also a similarly nice but mostly unused feature called named forks . I am thinking of porting this project to Linux but I do not know if any Filesystem on linux has such a feature Comment : Mostly unused Are you sure about that . It s very useful for hiding data . Comment : @Pacerier : unused that no UI or applications seem to interface with it in any way . Comment : That s exactly why they are useful for hiding viruses . Comment : Nothing is preventing you from using NTFS on linux see this question http : unix.stackexchange.com questions 14297 can-nix-handle-ntfs-ads-data-streams .. . Answer : Extended attributes are supported some filesystems particularly XFS and i think JFS but are limited in size 64k in XFS . Reiser4 supports arbitrary sized forks but it s not supported by any distro i know of . Another option is ZFS again not very usable . In the end it s probably wiser to just use a directory .", "Question : How would I create delete read-write NTFS alternate data streams from .NET If there is no native .NET support which Win32 API s would I use Also how would I use them as I don t think this is documented .. . Answer : This nuget-package CodeFluent Runtime Client https : nuget.org packages CodeFluentRuntimeClient has amongst other utilities an NtfsAlternateStream Class http : www.softfluent.com documentation CodeFluent.Runtime CodeFluent.Runtime.BinaryServices.NtfsAlternateStream members.html that supports create read update delete enumeration operations . Comment : And here you have some examples on how to use it blog.codefluententities.com 2013 03 14 http : blog.codefluententities.com 2013 03 14 manipulating-ntfs-alternate-data-streams-in-c-with-the-codefluent-runtime-client", "Question : I want to programmatically add a small piece of metadata to some files of arbitrary type . I am considering using either ADS or DSOFile . Is either option preferable What are the pros and cons Are there significant differences in efficiency or robustness .. . Answer : 1 . To my understanding DSOFile writes to the ADS particularly for custom properties . 2 . DSOFile is not Office specific as it writes data to the ADS of any NTFS file . I currently use it extensively for this purpose on PDF DWG files . 3 . With ADS of which DSOFile is an old 2005 implementation the data WILL be lost as Rob Goldwein noted if transferred to non-NTFS filesystem . With windows it actually prompts notify s user when transferring data to usb for instance ." ] }
[ "yes-answer-long", "yes-answer-short" ]
s
UNK_RELATION
ctr-mode@plaintext@167
ctr-mode -- ctr is a mode of operation for block ciphers where a nonce and block - counter are encrypted together by the block cipher and the result is xored with the @placeholder .
{ "confidence": [ 81.24799346923828, 61.445411682128906, 60.47163391113281, 59.5690803527832, 59.5690803527832, 57.7388916015625, 55.516845703125, 53.49631881713867, 51.79581832885742, 51.78687286376953, 51.392250061035156, 50.23890686035156, 49.97277069091797, 49.90247344970703, 49.54743194580078, 48.001625061035156, 47.48705291748047, 46.014671325683594, 45.79730224609375, 45.44269561767578, 45.44269561767578, 45.4172248840332, 44.451656341552734, 43.0629768371582, 42.692073822021484, 42.1955680847168, 41.41283416748047, 40.884071350097656, 40.79030227661133, 39.71521759033203, 39.7073974609375, 39.6528434753418, 38.84184265136719, 37.723106384277344, 37.59356689453125, 37.53377914428711, 37.53377914428711, 37.40237808227539, 37.1934814453125, 36.870628356933594, 36.75987243652344, 36.38939666748047, 35.837646484375, 32.9300537109375, 32.8264045715332, 32.65057373046875, 32.573307037353516, 32.50067901611328, 32.20502853393555, 31.765918731689453, 31.569759368896484, 30.626113891601562, 30.617874145507812, 30.46356773376465, 30.405956268310547, 30.014549255371094, 29.92137908935547, 29.868743896484375, 29.49346923828125, 29.49346923828125, 28.313276290893555, 28.17894744873047, 28.08509635925293, 27.672643661499023, 27.661115646362305, 27.348148345947266, 27.258567810058594, 27.079959869384766, 26.92028045654297, 26.801481246948242, 26.780460357666016, 26.589582443237305, 26.253345489501953, 25.914348602294922, 25.84189796447754, 25.837406158447266, 25.837406158447266, 25.770160675048828, 25.770160675048828, 25.742908477783203, 25.445358276367188, 25.348278045654297, 25.036832809448242, 24.99966049194336, 24.850727081298828, 24.850727081298828, 24.323612213134766, 23.713054656982422, 23.524566650390625, 23.515625, 23.515625, 23.515625, 23.515625, 23.515625, 23.471128463745117, 23.430068969726562, 23.105573654174805, 22.69851303100586, 22.69851303100586, 21.78331756591797 ], "content": [ "The CTR mode of operation for block ciphers https : en.wikipedia.org wiki Block cipher mode of operation Counter .28CTR.29 makes a stream cipher out of a block cipher .", "The main operation that you need to isolate in order to implement some mode is the actual block cipher without a mode of operation or padding .", "In CTR mode https : en.wikipedia.org wiki Block cipher mode of operation Counter .28CTR.29 a counter 128 bit for AES is encrypted to produce a key stream that is then XORed with the plaintext or ciphertext .", "Also CTR mode doesn t have an IV it is called a nonce .", "Also CTR mode doesn t have an IV it is called a nonce .", "Why would you CTR mode instead of CBC", "I was under the assumption that the CTR mode specified that the counter should be increased by 1 for each block using the 8 last bytes as counter in a big endian way or that this at least was a de facto standard .", "AES in CTR mode can be decrypted as a stream .", "Beware that for CTR mode to be secure you have to use a different nonce IV under the same key for every encryption .", "Note that NIST only specifies how to use CTR mode with regards to security it does not define one standard algorithm for the counter .", "Is CommonCrypto bugged in this regard or is it just a question of implementing the CTR mode differently", "Note that the block size of DES and 3DES doesn t permit to encrypt many ciphertexts or long ciphertexts with CTR under the same key .", "For CCM which uses CTR RFC5084 CMS recommends 12 bytes for the nonce .", "IIRC the IV is the same size as the cipher block .", "pyDes doesn t seem to provide direct access to the block cipher directly but you can emulate it easily with the ECB mode .", "A static IV kills the CTR .", "Since stream ciphers work in a way that they generate a keystream and XOR the keystream with the plaintext to produce the ciphertext : .. . .. . The XOR operation works in a way where XORing x with a key k twice results in x again : .. . .. . This is the reason why encryption and decryption are exactly the same operation for block ciphers in CTR mode sans nonce generation and putting it into the ciphertext .", "If you do then you need to change to a block cipher with a bigger block size like AES .", "XOR the key stream and the plaintext and throw away the rest of the key stream if any .. . .. . Since CTR mode is a stream cipher you can use the exact same operation for decrypting with the only difference that the nonce must be supplied from outside .", "I use AES128 crypto in CTR mode for encryption implemented for different clients Android Java and iOS ObjC .", "Steps for CTR mode https : en.wikipedia.org wiki Block cipher mode of operation Counter .28CTR.29 : .. . .. . 1 .", "It is possible to decrypt an encrypted video in AES CTR and and watching as it was being decrypted", "ECB is a simple execution of the block cipher on all input blocks in the same way .", "You can use the full block size for a nonce in mcrypt .", "Actually it is even stricter : CTR mode works by encrypting successive values of a counter the IV is just the initial value for that counter and proper security is achieved only if the same counter value is not used twice this means that encrypting a value with an IV actually consumes a sequence of successive IV values which must not be reused with another encryption .", "Generate a random nonce IV in the range of 0 to 1 64 DES block size which is the starting counter : .. . .. . import random .. . r random.SystemRandom .. . nonce r.randrange 0 1 64 .. . .. . .. . 2 .", "Its harder to screw up with CTR than with CBC I think", "The last byte is used as block counter so that packets with fewer than 256 blocks always get a unique counter value .", "IV s are equal in size with of your block .", "Convert the counter for each block of the plaintext to bytes with struct.pack Q counter https : docs.python.org 2 library struct.html struct.pack and increase the counter by one .. . .. . 3 .", "I understand that in AES Counter mode I need to use a 128 bit nonce .", "Indeed CTR mode provides no integrity protection at all - it is possible to flip any chosen bits of the plaintext so if the plaintext is known to contain say admin 0 then converting that to admin 1 is trivial .", "Algoritm used is AES with COUNTER MODE .", "My question : is there a right way of implementing the CTR IV mode when decoding multiple blocks in a single go or can I expect it to be interoperability problems when using different crypto libs", "I managed to do CBC mode fine unfortunately I am stuck with the counter mode .", "CTR security requires that you never reuse an IV for two message encryptions with the same key .", "The randomization properties of the hash-function will be enough to make the IV sufficiently random with regards to CTR requirements .", "To encrypt the next block it runs this line : .. . .. . counter blockSize - 1 counter blockSize - 1 + 1 0 .. . .. . Which evaluates to take the counter 3 element i.e .", "because of the birthday problem you ve got a 2 48 chance 48 96 2 of creating a collision for the nonce required for each message not each block so you should limit the amount of messages .. . if some attacker tricks you into decrypting 2 32 packets for the same nonce you run out of counter .", "For the sake of compatibility you could decide to use the first leftmost 12 bytes as random nonce and leave the latter ones to zero then let the implementation of the CTR do the increments .", "Encrypt the counter input stream with ECB mode and any available padding .. . 5 .", "The CommonCryptor can be created in both big endian and little endian mode but some vague comments in the CommonCryptor code indicates that this is not or at least has not been fully supported : .. . .. . By decoding block by block each time setting the IV as specified above it works nicely .", "You can even specify a counter like 00000009 if you want to start encrypting decrypting from the 9th block .", "In schemes where the whole IV is random even the second block might cause a difference between 128 bit and 64 bit counters .", "I am supposed to implement Counter mode of operation and the iv is random in every single iteration So my question is did anyone faced this issue and tried to overcome it .", "If an 8 byte nonce is required by the library make sure you limit the number of messages encrypted with the key .", "You would have to start a block earlier and remove the excess bytes .", "I would like to encrypt the cookies that are written by a webapp and I would like to keep the size of the cookies to minimum hence the reason I picked AES CTR NoPadding .", "Below is an example starting from counter 0 : .. . .. . Explanation : .. . .. . Using the code in the question with 32-bit counter of 00000000 the relevant code is in this file mode-ctr.js https : crypto-js.googlecode.com svn tags 3.1.2 src mode-ctr.js : .. . .. . When running this code in a browser JS debugger using a breakpoint it converts the nonceAndCounter into a WordArray consisting of 32-bit elements : .. . .. . 587320654 -142251766 455884203 0 .. . .. . This is used to encrypt a block .", "Summary : .. . .. . The answer is you can use either of two methods and it will work as expected : .. . .. . 1 Pass in a random nonce of 96 bits in length and the library itself will add the 32-bit counter automatically and increment it with every keystream block generated .", "This would lead to all your data being encrypted with the same nulled IV and multiple streams that perhaps should have different IV but use same key would leak data via a simple XOR of packets with corresponding ctr .", "It is implementation specific if the counter returns to zero or if the nonce itself is included in the counter so you may want to limit yourself to messages of 68 719 476 736 68 GB yes that s base 10 Giga means 1 000 000 000 .", "Yes I tested this just passing in a 96 bit nonce and it automatically adds the start counter as 0 to the end of the counter array e.g .", "I can not use it something like des hello mode None foo ... . where foo is my IV .", "Using the given api of des key CBC IV .. . I can only use IV when I use CBC or ECB mode of operation .", "then use the initial 8 bytes as nonce .", "I was a bit surprised when the corresponding iOS implementation using CommonCryptor iOS 5.1 failed to decode every block except the first when decoding a packet .", "2 Pass in a random nonce of 96 bits in length and explicitly specify the 32-bit counter as well if you want to .", "Let s say you have a big file but want to decrypt from byte 512 multiple of the block size for simplicity .", ".. . .. . Of course this would be a little more complicated if you want to get a chunk that doesn t begin on a block boundary .", "When I passed in just a 96 bit random nonce the library automatically added the start counter as 0 to the end of the counter array and incremented it correctly for subsequent blocks .", "You then just have to store the counter value in the cookie and the counter will be shorter than 16 bytes e.g .", "An usage of it goes like this k des DESCRYPT CBC 0 0 0 0 0 0 0 0 pad None padmode PAD PKCS5 - where I can either use CBC or ECB mode of encryption.However as an assignment from my professor I am told to encrypt using pyDes library but using CBC and Counter Mode manually .", "Usually when encryption is needed you actually need both encryption and integrity and then you should use a combined-encryption-and-integrity mode .", "You can prepend the nonce to the ciphertext so that it can be used for decryption .", "This works only if that data does not change for a given encrypted message and if it is really unique .", "Since there is no specification how big the nonce is many frameworks don t limit the size of a nonce to a specific size .", "Using a data hash as the IV has two possible flaws : 1 . if you encrypt twice the same message then you get twice the same encrypted result and the attacker can see it .", "The use-case here is an encrypted UDP stream with the IV and key being sent once via an encrypted TCP side channel .", "The size of the nonce determines how much data can be encrypted in one go without creating a many-time pad : the larger the nonce the smaller the safe message length but also lower probability of collisions of two nonces when they are generated randomly .", "To get the IV you hash the counter with a suitable hash-function e.g .", "CBC is as far as I know the safest together with PCBC .", "This random IV may be public as long as it is not reused in subsequent encryptions with the same key .. . .. . edit : .. . .. . You may want to look at this wiki page for more info on which mode to use .", "The entity which will decrypt the message must know the IV so you have to store it along with the encrypted message .", "It seems that CommonCryptor defines the counter in some other way .", "@owlstead Yes they are unique and there should be no case of reusing the same IV unless the random nonce is reused by chance .", "Also the key is never reused so every new nonce comes with a new random key .", "The na ve way to do that would be to use a random 128 bit nonce but I m not sure the algorithm will be able to increment the counter correctly if it s passed as all random bits .", "I thought the correct way to do it is to use a 96 bit nonce and also a 32-bit counter starting at 0 for example : .. . .. . Is this the correct way to do it with the CryptoJS library https : code.google.com p crypto-js", "So in pyDes https : twhiteman.netfirms.com des.html a cryptographic library of DES there is an API which goes like this pyDes.des key mode IV pad padmode .", "if you have no more than 4 billions customers the counter will fit in 4 bytes .", "Contrast this with how it works if you pass a 128 bit random nonce e.g .", "This still needs to be transmitted with the encrypted data but needs no server-side resources between requests and should give different IVs for different messages .", "However there is a hidden cost : the server I suppose the server is performing the encryption in your system must make sure that it never reuses a counter value so it must store the current counter somewhere in a way which persists over server reboots and also does not fail if you scale up to several front-ends .", "How many bits get included in the counter seems to vary a lot .", "I need the packet counter to construct the IV since packets may be lost .", "Note that reading the spec you can be reasonably sure that NIST only uses Big Endian mode so it s not so surprising that Apple only opted for that one in the end .", "Now we can get funky and try to reduce the IV length through trickery : .. . .. . Generate the IV with a hash-function : server-side use a counter which begins at 0 and is incremented every time a new IV is needed .", "var nonceAndCounter CryptoJS.enc.Hex.parse 2301cd4ef785690a1b2c3dabdf99a9b3 .. . .. . This produces a nonce of : .. . .. . 587320654 -142251766 455884203 -543577677 0 .. . .. . So it creates 5 array elements", "To answer your question directly whatever you do you should expect the counter to be incremented by one each time .", "The counter should represent a 128 bit big endian integer according to the NIST specifications .", "In that case you simply use a 96 bit 12 byte random at the start in that case there is no need for a packet counter .", "You are however limited to 2 32 16 bytes of plaintext until the counter uses up all the available bits .", "Repeat until you have at least as much bytes in the counter stream as in the plaintext .. . 4 .", "Changed my recommendation according to the remark of @SquareRootOfTwentyThree Although this has a slightly higher chance of incompatibilities compared to an 8 byte nonce I think the increase of security is worth it in this case .", "If you don t want that the encryption and decryption algorithm are the same then you should use a different mode such as CBC but there is nothing wrong with this kind of thing .", "Your first version contained Decrypted instead of Double Encrypted", "The 16 byte IV used when encrypting a packet is formated like this : .. . .. . The packet counter included in a sent packet is increased by one for every packet sent .", "The definition of the counter is loosely specified in NIST recommendation sp800-38a Appendix B http : csrc.nist.gov publications nistpubs 800-38a sp800-38a.pdf .", "The idea would be to create a counter input stream execute ECB on the input stream to get the key stream and then XOR every byte of the plaintext with the corresponding byte in the key stream ." ] }
{ "confidence": [ 112.17596435546875, 104.09602355957031, 88.14155578613281, 84.75099182128906, 79.22959899902344, 70.22105407714844, 65.76618957519531, 55.065834045410156, 52.86124038696289, 52.106109619140625, 37.260009765625 ], "content": [ "Question : When I try to encrypt the ciphertext again with the same key it produces the original plaintext . Algoritm used is AES with COUNTER MODE . Key and IV remains the same . Is this the way the algorithm is supposed to behave And if what is the use of Cipher.ENCRYTMODE which is to be given as the first parameter of Cipher.init Here is the sample program with which I tested Comment : Change the 2 . AesCipher.init .. . to Cipher.DECRYPT MODE Comment : There is no need for that to produce the original text . Please run the sample program . Comment : Your first version contained Decrypted instead of Double Encrypted Comment : @Sudershan I get java.security.InvalidKeyException : Illegal key size trying to run this Comment : @mp911de yeah sorry for that . .. . Answer : Yes that is expected behavior . The CTR mode of operation for block ciphers https : en.wikipedia.org wiki Block cipher mode of operation Counter .28CTR.29 makes a stream cipher out of a block cipher . Since stream ciphers work in a way that they generate a keystream and XOR the keystream with the plaintext to produce the ciphertext : .. . .. . The XOR operation works in a way where XORing x with a key k twice results in x again : .. . .. . This is the reason why encryption and decryption are exactly the same operation for block ciphers in CTR mode sans nonce generation and putting it into the ciphertext . If you don t want that the encryption and decryption algorithm are the same then you should use a different mode such as CBC but there is nothing wrong with this kind of thing . Beware that for CTR mode to be secure you have to use a different nonce IV under the same key for every encryption .", "Question : So in pyDes https : twhiteman.netfirms.com des.html a cryptographic library of DES there is an API which goes like this pyDes.des key mode IV pad padmode . An usage of it goes like this k des DESCRYPT CBC 0 0 0 0 0 0 0 0 pad None padmode PAD PKCS5 - where I can either use CBC or ECB mode of encryption.However as an assignment from my professor I am told to encrypt using pyDes library but using CBC and Counter Mode manually . I managed to do CBC mode fine unfortunately I am stuck with the counter mode . Using the given api of des key CBC IV .. . I can only use IV when I use CBC or ECB mode of operation . I can not use it something like des hello mode None foo ... . where foo is my IV . I am supposed to implement Counter mode of operation and the iv is random in every single iteration So my question is did anyone faced this issue and tried to overcome it . .. . Answer : The main operation that you need to isolate in order to implement some mode is the actual block cipher without a mode of operation or padding . pyDes doesn t seem to provide direct access to the block cipher directly but you can emulate it easily with the ECB mode . ECB is a simple execution of the block cipher on all input blocks in the same way . The idea would be to create a counter input stream execute ECB on the input stream to get the key stream and then XOR every byte of the plaintext with the corresponding byte in the key stream . Steps for CTR mode https : en.wikipedia.org wiki Block cipher mode of operation Counter .28CTR.29 : .. . .. . 1 . Generate a random nonce IV in the range of 0 to 1 64 DES block size which is the starting counter : .. . .. . import random .. . r random.SystemRandom .. . nonce r.randrange 0 1 64 .. . .. . .. . 2 . Convert the counter for each block of the plaintext to bytes with struct.pack Q counter https : docs.python.org 2 library struct.html struct.pack and increase the counter by one .. . .. . 3 . Repeat until you have at least as much bytes in the counter stream as in the plaintext .. . 4 . Encrypt the counter input stream with ECB mode and any available padding .. . 5 . XOR the key stream and the plaintext and throw away the rest of the key stream if any .. . .. . Since CTR mode is a stream cipher you can use the exact same operation for decrypting with the only difference that the nonce must be supplied from outside . You can prepend the nonce to the ciphertext so that it can be used for decryption . It doesn t have to be secret but it needs to be unique if the same key is used . Note that the block size of DES and 3DES doesn t permit to encrypt many ciphertexts or long ciphertexts with CTR under the same key . If you do then you need to change to a block cipher with a bigger block size like AES .", "Question : I use AES128 crypto in CTR mode for encryption implemented for different clients Android Java and iOS ObjC . The 16 byte IV used when encrypting a packet is formated like this : .. . .. . The packet counter included in a sent packet is increased by one for every packet sent . The last byte is used as block counter so that packets with fewer than 256 blocks always get a unique counter value . I was under the assumption that the CTR mode specified that the counter should be increased by 1 for each block using the 8 last bytes as counter in a big endian way or that this at least was a de facto standard . This also seems to be the case in the Sun crypto implementation . I was a bit surprised when the corresponding iOS implementation using CommonCryptor iOS 5.1 failed to decode every block except the first when decoding a packet . It seems that CommonCryptor defines the counter in some other way . The CommonCryptor can be created in both big endian and little endian mode but some vague comments in the CommonCryptor code indicates that this is not or at least has not been fully supported : .. . .. . By decoding block by block each time setting the IV as specified above it works nicely . My question : is there a right way of implementing the CTR IV mode when decoding multiple blocks in a single go or can I expect it to be interoperability problems when using different crypto libs Is CommonCrypto bugged in this regard or is it just a question of implementing the CTR mode differently Comment : How many bits get included in the counter seems to vary a lot . Some use 64 bits others the whole 128 bits . But that shouldn t have any effect in your case since the LSB is 0 and you never have more than 256 blocks per IV . Comment : @CodesInChaos indeed and the chance that you encrypt more than 2 64 blocks is not that high either so the top 64 bits will be unaffected . Comment : @owlstead 2 32 packets are enough to potentially cause a roll over to the highest bits in the OP s scheme . Still that s pretty unlikely . In schemes where the whole IV is random even the second block might cause a difference between 128 bit and 64 bit counters . Comment : @CodesInChaos : I agree but I hope for the sake of the asker that the package number is fully unique and that it will never contain more than blocksize 256 bytes . Seems to me that somebody is broken in the CommonCrypto implementations or that the library is used differently than intended finalizing the crypto too early instead of updating . Comment : @owlstead Yes they are unique and there should be no case of reusing the same IV unless the random nonce is reused by chance . Also the key is never reused so every new nonce comes with a new random key . .. . Answer : Further investigations sheds some light on the CommonCrypto problem : .. . .. . In iOS 6.0.1 the little endian option is now unimplemented . Also I have verified that CommonCrypto is bugged in that the CCCryptorReset method does not in fact change the IV as it should instead using pre-existing IV . The behaviour in 6.0.1 is different from 5.x . This is potentially a security risc if you initialize CommonCrypto with a nulled IV and reset it to the actual IV right before encrypting . This would lead to all your data being encrypted with the same nulled IV and multiple streams that perhaps should have different IV but use same key would leak data via a simple XOR of packets with corresponding ctr .", "Question : I use AES128 crypto in CTR mode for encryption implemented for different clients Android Java and iOS ObjC . The 16 byte IV used when encrypting a packet is formated like this : .. . .. . The packet counter included in a sent packet is increased by one for every packet sent . The last byte is used as block counter so that packets with fewer than 256 blocks always get a unique counter value . I was under the assumption that the CTR mode specified that the counter should be increased by 1 for each block using the 8 last bytes as counter in a big endian way or that this at least was a de facto standard . This also seems to be the case in the Sun crypto implementation . I was a bit surprised when the corresponding iOS implementation using CommonCryptor iOS 5.1 failed to decode every block except the first when decoding a packet . It seems that CommonCryptor defines the counter in some other way . The CommonCryptor can be created in both big endian and little endian mode but some vague comments in the CommonCryptor code indicates that this is not or at least has not been fully supported : .. . .. . By decoding block by block each time setting the IV as specified above it works nicely . My question : is there a right way of implementing the CTR IV mode when decoding multiple blocks in a single go or can I expect it to be interoperability problems when using different crypto libs Is CommonCrypto bugged in this regard or is it just a question of implementing the CTR mode differently Comment : How many bits get included in the counter seems to vary a lot . Some use 64 bits others the whole 128 bits . But that shouldn t have any effect in your case since the LSB is 0 and you never have more than 256 blocks per IV . Comment : @CodesInChaos indeed and the chance that you encrypt more than 2 64 blocks is not that high either so the top 64 bits will be unaffected . Comment : @owlstead 2 32 packets are enough to potentially cause a roll over to the highest bits in the OP s scheme . Still that s pretty unlikely . In schemes where the whole IV is random even the second block might cause a difference between 128 bit and 64 bit counters . Comment : @CodesInChaos : I agree but I hope for the sake of the asker that the package number is fully unique and that it will never contain more than blocksize 256 bytes . Seems to me that somebody is broken in the CommonCrypto implementations or that the library is used differently than intended finalizing the crypto too early instead of updating . Comment : @owlstead Yes they are unique and there should be no case of reusing the same IV unless the random nonce is reused by chance . Also the key is never reused so every new nonce comes with a new random key . .. . Answer : The definition of the counter is loosely specified in NIST recommendation sp800-38a Appendix B http : csrc.nist.gov publications nistpubs 800-38a sp800-38a.pdf . Note that NIST only specifies how to use CTR mode with regards to security it does not define one standard algorithm for the counter . To answer your question directly whatever you do you should expect the counter to be incremented by one each time . The counter should represent a 128 bit big endian integer according to the NIST specifications . It may be that only the least significant rightmost bits are incremented but that will usually not make a difference unless you pass the 2 32 - 1 or 2 64 - 1 value . For the sake of compatibility you could decide to use the first leftmost 12 bytes as random nonce and leave the latter ones to zero then let the implementation of the CTR do the increments . In that case you simply use a 96 bit 12 byte random at the start in that case there is no need for a packet counter . You are however limited to 2 32 16 bytes of plaintext until the counter uses up all the available bits . It is implementation specific if the counter returns to zero or if the nonce itself is included in the counter so you may want to limit yourself to messages of 68 719 476 736 68 GB yes that s base 10 Giga means 1 000 000 000 . because of the birthday problem you ve got a 2 48 chance 48 96 2 of creating a collision for the nonce required for each message not each block so you should limit the amount of messages .. . if some attacker tricks you into decrypting 2 32 packets for the same nonce you run out of counter . In case this is still incompatible test then use the initial 8 bytes as nonce . Unfortunately that does mean that you need to limit the number of messages because of the birthday problem . Comment : Note that reading the spec you can be reasonably sure that NIST only uses Big Endian mode so it s not so surprising that Apple only opted for that one in the end . Remarks like that in a crypto library do make me shudder though it seems to be an indication that the implementer did not read the specifications or did not understand them . In that case they should not be allowed to create a crypto library . Comment : Thanks for the info . I will read up on it and see if I can get CommonCrypto to work like it is supposed to or otherwise file a bug with Apple . Comment : The use-case here is an encrypted UDP stream with the IV and key being sent once via an encrypted TCP side channel . I need the packet counter to construct the IV since packets may be lost . Comment : I don t agree with the statement that with an 8 byte random part you ve got a chance of 2 32 to have a collision in the nonces . To be more correct on average it will take 2 32 messages before you see a repeated keystream . However you will want to stop using the key way before that . For CCM which uses CTR RFC5084 CMS recommends 12 bytes for the nonce . Other sources are in the same ballpark . 8 bytes is not secure as a general recommendation . Comment : Changed my recommendation according to the remark of @SquareRootOfTwentyThree Although this has a slightly higher chance of incompatibilities compared to an 8 byte nonce I think the increase of security is worth it in this case . If an 8 byte nonce is required by the library make sure you limit the number of messages encrypted with the key .", "Question : I understand that in AES Counter mode I need to use a 128 bit nonce . The na ve way to do that would be to use a random 128 bit nonce but I m not sure the algorithm will be able to increment the counter correctly if it s passed as all random bits . I thought the correct way to do it is to use a 96 bit nonce and also a 32-bit counter starting at 0 for example : .. . .. . Is this the correct way to do it with the CryptoJS library https : code.google.com p crypto-js Or what is the correct way .. . Answer : I m going to answer my own question as I went digging into the library code to see what it really does . Summary : .. . .. . The answer is you can use either of two methods and it will work as expected : .. . .. . 1 Pass in a random nonce of 96 bits in length and the library itself will add the 32-bit counter automatically and increment it with every keystream block generated . E.g . 2 Pass in a random nonce of 96 bits in length and explicitly specify the 32-bit counter as well if you want to . You can even specify a counter like 00000009 if you want to start encrypting decrypting from the 9th block . Below is an example starting from counter 0 : .. . .. . Explanation : .. . .. . Using the code in the question with 32-bit counter of 00000000 the relevant code is in this file mode-ctr.js https : crypto-js.googlecode.com svn tags 3.1.2 src mode-ctr.js : .. . .. . When running this code in a browser JS debugger using a breakpoint it converts the nonceAndCounter into a WordArray consisting of 32-bit elements : .. . .. . 587320654 -142251766 455884203 0 .. . .. . This is used to encrypt a block . To encrypt the next block it runs this line : .. . .. . counter blockSize - 1 counter blockSize - 1 + 1 0 .. . .. . Which evaluates to take the counter 3 element i.e . the integer 0 and increments it to : .. . .. . 587320654 -142251766 455884203 1 .. . .. . With subsequent blocks and nonces I can see.. . .. . .. . 587320654 -142251766 455884203 2 .. . .. . 587320654 -142251766 455884203 3 .. . .. . 587320654 -142251766 455884203 4 .. . .. . And so on . So it appears to be working correctly this way . Contrast this with how it works if you pass a 128 bit random nonce e.g . var nonceAndCounter CryptoJS.enc.Hex.parse 2301cd4ef785690a1b2c3dabdf99a9b3 .. . .. . This produces a nonce of : .. . .. . 587320654 -142251766 455884203 -543577677 0 .. . .. . So it creates 5 array elements Then the function increments the fourth element from -543577677 to -543577676 then -543577675 then -543577674 and so on . So it still works in a way but but does not increment as nicely as starting from 0 and is perhaps more error prone . When I passed in just a 96 bit random nonce the library automatically added the start counter as 0 to the end of the counter array and incremented it correctly for subsequent blocks . e.g . Comment : So it seems you don t need to set the counter explicitly because CryptoJS will automatically add it for you . It probably checks whether the last word is already 0 . Also CTR mode doesn t have an IV it is called a nonce . Comment : Also CTR mode doesn t have an IV it is called a nonce . Noted thanks . So it seems you don t need to set the counter explicitly because CryptoJS will automatically add it for you . Yes I tested this just passing in a 96 bit nonce and it automatically adds the start counter as 0 to the end of the counter array e.g . 587320654 -142251766 455884203 0 and increments it correctly . Many thanks for the response Artjom . Sorry I had tagged you because I saw your name attached to a number of the other CryptoJS answers and I figured you were knowledgeable on the library . Comment : Added a summary to the start thanks Artjom", "Question : I have a 1MB test file and I want to decrypt it starting from its 500KB not from the beginning . It doesn t need to start exactly from 500KB of the file it can start at the beginning of any chunk as long as it s not the first I just want to learn how to do it . With this script I can decrypt the file as long as its starts from 0KB . Could someone please explain me if it is at least possible Comment : Have a read of crypto.stackexchange.com questions 6170 http : crypto.stackexchange.com questions 6170 decryption-a-chunk-of-file-with-aes .. . Answer : In CTR mode https : en.wikipedia.org wiki Block cipher mode of operation Counter .28CTR.29 a counter 128 bit for AES is encrypted to produce a key stream that is then XORed with the plaintext or ciphertext . Usually it is assumed that the IV is either 64 bit or 96 bit and the remaining bits are actually set to 0 . The initial 64 or 96 bit are called nonce . The size of the nonce determines how much data can be encrypted in one go without creating a many-time pad : the larger the nonce the smaller the safe message length but also lower probability of collisions of two nonces when they are generated randomly . Since there is no specification how big the nonce is many frameworks don t limit the size of a nonce to a specific size . You can use the full block size for a nonce in mcrypt . .. . .. . You can .. . .. . 1 . take the IV that was used from the beginning .. . 2 . parse that IV as a big integer it doesn t fit into the PHP integer type .. . 3 . add to it a number which represents as many blocks 16 byte blocks for AES as you want to skip .. . 4 . convert the number back to a binary representation and .. . 5 . begin decrypting from a later byte . Steps 2-4 are accomplished by the add function in the following code . Let s say you have a big file but want to decrypt from byte 512 multiple of the block size for simplicity . You would add 512 16 32 to the IV . Here is some example code : .. . .. . Output : .. . .. . This also work in the exact same way for the OpenSSL extension in PHP . Here https : gist.github.com artjomb 50fcbf9acdfb97e1a3f8 is the code . .. . .. . Of course this would be a little more complicated if you want to get a chunk that doesn t begin on a block boundary . You would have to start a block earlier and remove the excess bytes . Comment : Thank you very much it totally worked for me . Your add function were what I was looking for although I have no idea how it works since I m not a encryption pro . Thanks Comment : The add function has nothing to do with encryption . It s a simple implementation of a little-endian encoded big integer counting . You can easily do the same with general purpose big number libraries like GMP but I thought you really don t need the overhead because addition is really easy to implement . This is basically the same as addition that you learned in school with using the carry and so on .", "Question : I would like to encrypt the cookies that are written by a webapp and I would like to keep the size of the cookies to minimum hence the reason I picked AES CTR NoPadding . What would you recommend to use as IV that s random enough and still keep the app stateless . I know that I can just generate a random IV and append it to the message but that will increase the size of the cookie . In addition what s the recommended size of IV for 128-bit AES How else is everyone doing this Do any tried and true ways exist I don t want to reinvent the wheel . Comment : Why should you care if the size of the cookie is made a few bytes larger .. . Answer : I dont have a direct answer for you question but a few things to add though . First of all encrypting the cookie does not make sense to me . If you want confidentiality of your data you shouldn t store it in a cookie anyway . If you want integrity i.e . not possible to tamper with the content of the cookie you should use a keyed hash HMAC for example . Another note is to never use a IV which is all 0 just for convenience . IV s are equal in size with of your block . In case of AES-128 the blocksize is 128 the keysize is 128 and hence the IV is 128 bits . The best way to do this is by creating a random AES key and using it as IV . This random IV may be public as long as it is not reused in subsequent encryptions with the same key .. . .. . edit : .. . .. . You may want to look at this wiki page for more info on which mode to use . However never use ECB unless you re sure you should use it . And even then verify with an expert . CBC is as far as I know the safest together with PCBC . http : en.wikipedia.org wiki Block cipher modes of operation Comment : A static IV kills the CTR . Comment : Indeed CTR mode provides no integrity protection at all - it is possible to flip any chosen bits of the plaintext so if the plaintext is known to contain say admin 0 then converting that to admin 1 is trivial . If you want integrity use a HMAC . Comment : Why would you CTR mode instead of CBC Its harder to screw up with CTR than with CBC I think", "Question : I would like to encrypt the cookies that are written by a webapp and I would like to keep the size of the cookies to minimum hence the reason I picked AES CTR NoPadding . What would you recommend to use as IV that s random enough and still keep the app stateless . I know that I can just generate a random IV and append it to the message but that will increase the size of the cookie . In addition what s the recommended size of IV for 128-bit AES How else is everyone doing this Do any tried and true ways exist I don t want to reinvent the wheel . Comment : Why should you care if the size of the cookie is made a few bytes larger .. . Answer : If you don t make the IV random i.e . you use some repeating group of numbers it will be easier to figure out the key if the cookie always start with the same clear text . The IV size for AES-128 is 128 bits . IIRC the IV is the same size as the cipher block . 128 bits is 16 bytes . 32 bytes if you store it as a ASCII hex string . Is that really too much 32 bytes in this day and age is not much at all.. .", "Question : I would like to encrypt the cookies that are written by a webapp and I would like to keep the size of the cookies to minimum hence the reason I picked AES CTR NoPadding . What would you recommend to use as IV that s random enough and still keep the app stateless . I know that I can just generate a random IV and append it to the message but that will increase the size of the cookie . In addition what s the recommended size of IV for 128-bit AES How else is everyone doing this Do any tried and true ways exist I don t want to reinvent the wheel . Comment : Why should you care if the size of the cookie is made a few bytes larger .. . Answer : CTR security requires that you never reuse an IV for two message encryptions with the same key . Actually it is even stricter : CTR mode works by encrypting successive values of a counter the IV is just the initial value for that counter and proper security is achieved only if the same counter value is not used twice this means that encrypting a value with an IV actually consumes a sequence of successive IV values which must not be reused with another encryption . The easy way to do that is to use a cryptographically secure-random number generator and create a new 16-byte random IV for every message . I underline cryptographically secure because that s import a basic random number generator is not enough . With Java use java.util.SecureRandom . With Win32 call CryptGenRandom . With a random selection the space of possible 128-bit IV is large enough that collisions are extremely improbable . Actually that s why AES uses 128-bit blocks thus implying 128-bit IV . The entity which will decrypt the message must know the IV so you have to store it along with the encrypted message . That s an extra 16 bytes . I understand that this overhead is what you want to avoid although 16 bytes is not that much for a cookie . The effective maximum length of a cookie depends on the Web browser but 4000 characters appear to work everywhere . A 16-byte IV when encoded in characters e.g . with Base64 will use about 22 characters i.e . much less than 1 of your maximum cookie size : maybe you can afford that Now we can get funky and try to reduce the IV length through trickery : .. . .. . Generate the IV with a hash-function : server-side use a counter which begins at 0 and is incremented every time a new IV is needed . To get the IV you hash the counter with a suitable hash-function e.g . SHA-256 and you keep the first 16 bytes of the hash value . The randomization properties of the hash-function will be enough to make the IV sufficiently random with regards to CTR requirements . This needs a cryptographically secure hash-function hence SHA-256 avoid MD5 . You then just have to store the counter value in the cookie and the counter will be shorter than 16 bytes e.g . if you have no more than 4 billions customers the counter will fit in 4 bytes . However there is a hidden cost : the server I suppose the server is performing the encryption in your system must make sure that it never reuses a counter value so it must store the current counter somewhere in a way which persists over server reboots and also does not fail if you scale up to several front-ends . That s not as easy at is seems . Use an external unique value : possibly the cookie could be part of an context which provides enough data to generate a value which will be unique to each encryption . For instance if the request also contains in the clear a user ID you could use the user ID as an IV source . The setup is similar to the one above : you get all that data stuff it into SHA-256 and the first 16 bytes of SHA-256 output is the IV you need . This works only if that data does not change for a given encrypted message and if it is really unique . This is a rare occurrence : for instance a user ID is good for that only if there is never a need to reencrypt a new message for the same user and if there is never a possibility that a user ID is reused e.g . an old user quits a new user comes and selects the now free user ID . Using a random 16-byte IV generated with a cryptographically secure PRNG is still the safe way and the one I recommend . If you find space tight in the cookie then this means that you are approaching the 4 kB limit at which point you may want to use compression on the data before encryption after encryption compression is very very unlikely to work . Use zlib http : zlib.net in Java you can access zlib through java.util.zip . Warning : in all of the above I am not saying anything about whether cookie encryption does help in providing whatever security characteristics you are trying to achieve . Usually when encryption is needed you actually need both encryption and integrity and then you should use a combined-encryption-and-integrity mode . Lookup GCM http : en.wikipedia.org wiki Galois Counter Mode and CCM http : en.wikipedia.org wiki CCM mode . Moreover cookie encryption is mostly good for one purpose which is to avoid the cost of storing server-side a bit of user-specific data . If you want to encrypt a cookie for something else e.g . to authenticate a valid user then you are doing it wrong : encryption is not the right tool for that . Comment : How about taking a hash of the data as the IV This still needs to be transmitted with the encrypted data but needs no server-side resources between requests and should give different IVs for different messages . Or is there a flaw with this scheme Comment : Using a data hash as the IV has two possible flaws : 1 . if you encrypt twice the same message then you get twice the same encrypted result and the attacker can see it . This may or may not be a problem in your specific context . 2 . Publishing the hash of the message as the IV allows the attacker to run an exhaustive search on the plaintext message : trying possible plaintext messages until a match is found . There usually are much fewer possible plaintext messages than possible keys . To fix that the IV should not be a hash of the message but say a MAC with HMAC . Comment : If you prefer computing the IV from the message itself is a sound idea but it requires some care . Also it prevents streaming encryption : you have to buffer all the data to first hash MAC it and only then can you begin the encryption . Depending on the context this may or may not be a problem .", "Question : It is possible to decrypt an encrypted video in AES CTR and and watching as it was being decrypted I want to decrypt Video hosted on MEGA.co.nz and go watching as that goes down without waiting for the download to complete . I already know how to decrypt just need to know how to do this gradually in a video .. . Answer : Yes it s possible . Most video formats and codecs can be decoded in a streaming fashion . For example : MPEG4 . AES in CTR mode can be decrypted as a stream . Comment : Do you have any examples of how to do this in C or other linguaguem Comment : No I don t and this would be too broad for a StackOverflow answer . Comment : I m using BouncyCastle he do it I know how to do it using Comment : You must know any place that teach to do easily Comment : I found this file github.com sybil-sink mega-sdk blob master MegaApi Crypto https : github.com sybil-sink mega-sdk blob master MegaApi Crypto Crypto.cs but do not know how to adapt to BouncyCastle", "Question : I would like to encrypt the cookies that are written by a webapp and I would like to keep the size of the cookies to minimum hence the reason I picked AES CTR NoPadding . What would you recommend to use as IV that s random enough and still keep the app stateless . I know that I can just generate a random IV and append it to the message but that will increase the size of the cookie . In addition what s the recommended size of IV for 128-bit AES How else is everyone doing this Do any tried and true ways exist I don t want to reinvent the wheel . Comment : Why should you care if the size of the cookie is made a few bytes larger .. . Answer : Include a large random number with the cookie . A 64 or 128 bit number is probably large enough . It needs to be large enough for it to be very difficult to get duplicates . Be sure to put enough entropy into this number . Don t just use gettime . If you have access to CRNG then use it here . Store a 256 bit master key with your application . Use SHA256 to derive your key information . Again use a CRNG for this . You may also want to derive a key for an HMAC . Alternatively you could combine the above two hash operations into one by using SHA512 ." ] }
[ "yes-answer-long", "yes-answer-short" ]
plaintext
UNK_RELATION
viewvc@interface@31
viewvc -- viewvc is a browser @placeholder for cvs and subversion version-control repositories .
{ "confidence": [ 41.85236358642578, 39.34339141845703, 32.85701370239258, 26.55998420715332, 24.646240234375, 19.635757446289062, 17.314319610595703, 17.314319610595703, 17.314319610595703, 17.314319610595703, 13.50802993774414, 13.50802993774414, 13.50802993774414, 13.50802993774414, 13.50802993774414, 13.50802993774414, 13.50802993774414, 13.50802993774414, 13.50802993774414, 13.50802993774414, 13.50802993774414 ], "content": [ "I m trying to get viewvc together with VisualSVN running .", "I have just installed ViewVC 1.1.21 on a machine hosting a SVN repository that was migrated from an old CVS .", "I have SVN and the ViewVC tool on an Apache2 server and was wondering if there was a way to make it so that if you access a URL from the web browser it takes you to ViewVC but if you access the same URL with say TortoiseSVN then it does checkouts etc .", "For example if I open https : website.com svn repo1 it takes me to the ViewVC tool but if I access the same URL with TortoiseSVN then I would be able to do commits checkouts etc .", "In the issue to rebuild the svn history in the MySQL database I m getting the following error : .. . .. . I m using : - Python 2.6.5 installed - pywin32-219.win32-py2.6.exe - MySQL-python-1.2.3c1.win32-py2.6.exe - MySQL 5.6 - viewvc-1.1.24 - VisualSVN Server 3.3.2 - pyserial-2.7.win32.exe - OS is Windows 7 64 Bit .. . .. . The script start rebuilding the commits but ends-with the shown error-code .", "If that fails use the legacy process : .. . .. . Set use enscript 0 in viewvc.conf .. . .. . Set use highlight 1 in viewvc.conf .. . .. . Find highlight path in viewvc.conf .. . .. . Uncomment it .. . .. . Do ls on the value .. . .. . If Pygments is there do nothing .. . .. . Otherwise use which to find the path to Pygments then set that as the new value .. . .. . Enable mime-types files in viewvc.conf .. . .. . Find mime-types files in viewvc.conf .. . .. . Do ls on the value .. . .. . If mime.types is there do nothing .. . .. . Otherwise use find to find the path to mime.types then set that as the new value .. . .. . References .. . .. . Use a single good Python-module-based syntax highlighter http : viewvc.tigris.org issues long list.cgi issuelist 349 .. . .. . Syntax highlight colorize scripts without extensions http : viewvc.tigris.org issues long list.cgi issuelist 495 .. . .. . Recognize XML as Text http : viewvc.tigris.org issues long list.cgi issuelist 298 .. . .. . ViewVC should display Unicode files correctly http : viewvc.tigris.org issues long list.cgi issuelist 460 .. . .. . Sample viewvc.conf http : viewvc.tigris.org issues showattachment.cgi 125 viewvc.conf .. . .. . viewvc.py Source http : viewvc.tigris.org source browse viewvc trunk lib viewvc.py view markup .. . .. . Use the chardet module where available and enabled by configuration http : viewvc.tigris.org ds viewMessage.do dsForumId 4252 viewType browseAll dsMessageId 3053678", "Can anyone help", "Thanks a lot in advance", "issue is fixed gnu diff utils were missing .", "config of diff utils in viewvc.conf was not configured", "I wanted to enable syntax colouring for source files Java properties and XML files as Eclipse does .", "I have installed both python-Pygments and python3-Pygments no matter the difference between the two .", "I also set enable syntax coloration 1 .", "I have noticed that all files have svn : mime-type as text plain .", "Does the mime type affect syntax-highlighting", "Do I have to do something else to fix colouring", "Use the following process : .. . .. . Set detect encoding 1 in viewvc.conf .. . .. . Set enable syntax coloration 1 in viewvc.conf .. . .. . Here are the caveats : .. . .. . Requires chardet module and is currently used only by the syntax coloration logic -- if enabled -- for the markup and annotate views see enable syntax coloration .", "properly .", "with no issue .", "Or is it not possible because it can t differentiate between the type of requests", "Thanks" ] }
{ "confidence": [ 44.659446716308594, 41.950714111328125, 41.42753219604492 ], "content": [ "Question : null .. . Answer : I have SVN and the ViewVC tool on an Apache2 server and was wondering if there was a way to make it so that if you access a URL from the web browser it takes you to ViewVC but if you access the same URL with say TortoiseSVN then it does checkouts etc . properly . For example if I open https : website.com svn repo1 it takes me to the ViewVC tool but if I access the same URL with TortoiseSVN then I would be able to do commits checkouts etc . with no issue . Or is it not possible because it can t differentiate between the type of requests Thanks", "Question : null .. . Answer : I m trying to get viewvc together with VisualSVN running . In the issue to rebuild the svn history in the MySQL database I m getting the following error : .. . .. . I m using : - Python 2.6.5 installed - pywin32-219.win32-py2.6.exe - MySQL-python-1.2.3c1.win32-py2.6.exe - MySQL 5.6 - viewvc-1.1.24 - VisualSVN Server 3.3.2 - pyserial-2.7.win32.exe - OS is Windows 7 64 Bit .. . .. . The script start rebuilding the commits but ends-with the shown error-code . Can anyone help Thanks a lot in advance Comment : issue is fixed gnu diff utils were missing . config of diff utils in viewvc.conf was not configured", "Question : I have just installed ViewVC 1.1.21 on a machine hosting a SVN repository that was migrated from an old CVS . I wanted to enable syntax colouring for source files Java properties and XML files as Eclipse does . I have installed both python-Pygments and python3-Pygments no matter the difference between the two . I also set enable syntax coloration 1 . I have noticed that all files have svn : mime-type as text plain . Does the mime type affect syntax-highlighting Do I have to do something else to fix colouring .. . Answer : Use the following process : .. . .. . Set detect encoding 1 in viewvc.conf .. . .. . Set enable syntax coloration 1 in viewvc.conf .. . .. . Here are the caveats : .. . .. . Requires chardet module and is currently used only by the syntax coloration logic -- if enabled -- for the markup and annotate views see enable syntax coloration . If that fails use the legacy process : .. . .. . Set use enscript 0 in viewvc.conf .. . .. . Set use highlight 1 in viewvc.conf .. . .. . Find highlight path in viewvc.conf .. . .. . Uncomment it .. . .. . Do ls on the value .. . .. . If Pygments is there do nothing .. . .. . Otherwise use which to find the path to Pygments then set that as the new value .. . .. . Enable mime-types files in viewvc.conf .. . .. . Find mime-types files in viewvc.conf .. . .. . Do ls on the value .. . .. . If mime.types is there do nothing .. . .. . Otherwise use find to find the path to mime.types then set that as the new value .. . .. . References .. . .. . Use a single good Python-module-based syntax highlighter http : viewvc.tigris.org issues long list.cgi issuelist 349 .. . .. . Syntax highlight colorize scripts without extensions http : viewvc.tigris.org issues long list.cgi issuelist 495 .. . .. . Recognize XML as Text http : viewvc.tigris.org issues long list.cgi issuelist 298 .. . .. . ViewVC should display Unicode files correctly http : viewvc.tigris.org issues long list.cgi issuelist 460 .. . .. . Sample viewvc.conf http : viewvc.tigris.org issues showattachment.cgi 125 viewvc.conf .. . .. . viewvc.py Source http : viewvc.tigris.org source browse viewvc trunk lib viewvc.py view markup .. . .. . Use the chardet module where available and enabled by configuration http : viewvc.tigris.org ds viewMessage.do dsForumId 4252 viewType browseAll dsMessageId 3053678" ] }
[ "yes-answer-long", "yes-answer-short" ]
interface
UNK_RELATION
nszombie@osx@46
nszombie -- nszombie is an apple os-specific @placeholder and ios tool for debugging issues with reference-counting .
{ "confidence": [ 44.37522888183594, 43.10226058959961, 42.24180603027344, 40.7420768737793, 40.7420768737793, 39.779327392578125, 39.38917922973633, 39.29590606689453, 39.29590606689453, 38.944271087646484, 38.791259765625, 37.76263427734375, 37.76263427734375, 37.76263427734375, 37.07124710083008, 36.8913688659668, 36.52980041503906, 36.24150848388672, 35.52072525024414, 34.492103576660156, 34.492103576660156, 34.492103576660156, 34.25183868408203, 33.590667724609375, 33.25926971435547, 33.25926971435547, 33.25926971435547, 33.25926971435547, 33.25926971435547, 33.25926971435547, 32.665855407714844, 32.665855407714844, 31.81309700012207, 31.115337371826172, 31.115337371826172, 31.115337371826172, 31.115337371826172, 31.115337371826172, 31.115337371826172, 31.019187927246094, 30.522472381591797, 30.086711883544922, 30.086711883544922, 30.086711883544922, 30.086711883544922, 28.853878021240234, 28.853878021240234, 28.853878021240234, 28.853878021240234, 28.853878021240234, 28.419143676757812, 27.40770721435547, 27.40770721435547, 27.390518188476562, 27.390518188476562, 27.27758026123047, 25.643110275268555, 25.399311065673828, 25.399311065673828, 24.293201446533203, 23.894977569580078, 22.62828826904297, 22.120683670043945, 22.120683670043945, 21.092060089111328, 21.033512115478516, 20.823535919189453, 20.766796112060547, 19.63582992553711, 19.138038635253906, 19.087791442871094, 18.664743423461914, 18.424274444580078, 18.212827682495117, 18.059167861938477, 18.054969787597656, 17.94480323791504, 17.89919662475586, 17.681041717529297, 17.412485122680664, 17.412485122680664, 17.279842376708984, 17.057353973388672, 16.916179656982422, 16.916179656982422, 16.89834213256836, 16.858633041381836, 16.43656349182129, 16.43656349182129, 16.338504791259766, 16.072607040405273, 16.072607040405273 ], "content": [ "What is NSZombie", "Here s a video and explaination how to use Instruments and NSZombie to find and fix memory crashes on iOS : http : www.markj.net iphone-memory-debug-nszombie", "NSZombie does one specific thing : When you deallocate an object NSZombie says don t actually deallocate the object .", "use the debugger and or NSZombie .", "Is there something I m missing with NSZombie", "Can I enable NSZombie on specific file instead of the entire project", "I can not see Enable NSZombie detection check box .", "Why not just turn on NSZombie", "If the question is : How is NSZombie implemented", "App runs just fine with NSZombie .", "How do you enable NSZombie in Instruments", "I m trying to debug an EXC BAD ACCESS crash using NSZombie .", "Tried allocations instrument with NSZombie detection enabled .", "If I turn NSZombie off the crash comes back .", "Does anybody know how to enable NSZombie in Xcode 4", "This explains it pretty thoroughly : iPhone Memory Debugging with NSZombie and Instruments http : www.markj.net iphone-memory-debug-nszombie Caveat : Demonstrated using XCode3 - all applicable to XCode4 though", "As you said NSZombie actually don t deallocate the object .", "The app crashes and I get an NSZombie that reads .. . .. . - InAppPurchaseManager respondsToSelector : : message sent to deallocated instance 0x1c7ad0 .. . .. . The NSZombie points to line 160 in the .m file .", "There is another way to run with NSZombie on the device but this is done through XCode 4 not instruments .", "NSZombie Bad access http : i.stack.imgur.com R1LWH.png .. . .. . THE CRASH LOG", "So I enable NSZombie but then the program does not crash any more .", "If NSZombie won t help is there another way to interrogate this over-released object", "NSZombie can be used any time it s possible to reference a deallocated object which is perfectly possible under ARC .", "I read I had to activate NSZombie to find my error and that it apperas because of memory issues .", "@BradAllred how I can use NSZombie without instruments", "@mostruash No and these are the only places that reported back from NSZombie with a release event .", "But I don t find any useful NSZombie Log in the console .", "There are lower-level tools than NSZombie that you can use .", "I am trying to debug my program using NSZombie .", "@zaph this question is specifically asking about NSZombie what are you talking about", "The zombies trace template actually consists of the Allocations instrument with the Enable NSZombie detection launch configuration set .", "In XCode 4.0 : To detect NSZombie in Instruments select the Simulator as your target can t detect NSZomboe on device .", "All of a sudden I receive this EXC BAD ACCESS and NSZombie isn t saying anything .", "Unfortunately there is a bad NSZombie that makes the whole app crash when I go swipe to go to the previous controller .", "Almost every instance variable being instantiated by Class alloc init was being leaked as a NSZombie object .", "The crash log is : .. . .. . NSZombie tells me that UITextField canBecomeFirstResponder has been called causing the crash .", "When I enabled NSZombie in my scheme there is message of crash - - UITextField textInputView : message sent to deallocated instance .", "All of a sudden an app I ve been developing is no longer outputting debug info to the console even though NSZombie is properly configured .", "Edit : NSZombie flag will only help you to solve the EXC BAD ACCESS triggered by the use of a de-allocated instance .", "Then stop the recording right after it starts press the i button on the Allocations instrument and turn on enable reference counts and Enable NSZombie Detection .", "As per this : stackoverflow.com questions 32514269 http : stackoverflow.com questions 32514269 enabling-zombie-objects-on-xcode-7-gm-causes-class-nszombie-bsxpcmessage-is-imp Performing a Reset Content and Settings.. . on the iOS Simulator cleared this up for me .", "My app creates lots of large objects though and with NSZombie enabled they aren t getting released causing the app to crash in seconds .", "I tried running in Instruments NSZombie but when I get the crash the trace isn t really consistant .", "Also the crash is not reproduceable on Simulator which is why I can t use Instruments with NSZombie .", "When I run Project Profile in Xcode and choose Zombies the app runs in the simulator with NSZombie detection enabled .", "NSZombie detected that one of the objected is over released in my app and that is causing the app to crash every time when a button is pressed .", "enter image description here http : i.stack.imgur.com PRmBR.png .. . .. . Running NSZombie gives me this result : .. . .. .", "If anyone has any ideas how to find such bugs without NSZombie please share .", "My app is behaving in a similar way has NSZombie enabled.it is crashing but crash logs are not generated .", "I have cross checked many times Nszombie is not enabled.So pls let me know how to fix this issue .", "One case I caught crashed showing : .. . - MagazineWebview respondsToSelector : : message sent to deallocated instance 0x58ce2a0 .. . It happens only on when enabling NSZombie .", "I ve tried on a different computer where it shows NSZombie information but here the EXC BAD ACCESS occurs at different places .", "stackoverflow.com questions 535060 http : stackoverflow.com questions 535060 how-to-add-nsdebug-h-and-use-nszombie-in-iphone-sdk", "Specifically when you set NSZombieEnabled then whenever an object reaches retain count 0 rather than begin deallocated it morphs itself into an NSZombie instance .", "Click Enable Zombie Objects http : i.stack.imgur.com pe4cB.png .. . .. . This turns released objects into NSZombie instances that print console warnings when used again .", "When you run your app you get an error message where the app crashes setting NSZombie state to enabled but originally before enabling NSZombie you might find it difficult to find out what s exactly wrong like crash at autorelease pool gdb break currently using objective-c BAD ACCESS errors etc.. . By enabling NSZombie you can find what is exactly the problem such as improper deallocation and trying to re-access or improper release of memory etc..The errors may be of the following kind :", "See Apple Docs developer.apple.com library ios documentation uikit reference https : developer.apple.com library ios documentation uikit reference UIGestureRecognizer Class Reference Reference.html apple ref doc uid TP40009279-CH1-SW41", "To run with NSZombie on the device open your XCode Project and click on the top menu item Product then hold down alt and click Run this will open a separate window where you will see Environment Variables in the bottom of the window .", "I ve used NSZombie to find the error and it says .. . .. . - AddressBookViewController tableView : cellForRowAtIndexPath : : message sent to deallocated instance 0x12639ca0 .. . .. . The code works fine with other viewController except with address book tableView .", "I m using xCode 4.0.1 and I tried to activate NSZombie to track a memory leak but it doesn t seems to work as before with xCode 3.x .. . .. . I can t find out where the memory leak is coming from as Instruments points this out : .. . .. . Leaked Object - GeneralBlock-32 Address - 0x4c8600 Size - 32 Bytes Responsible Library - libsystem c.dylib Responsible Frame Caller - strup .. . .. . At this point I don t know If I m using Instruments with NSZombie the right way with xCode 4 as it doesn t show the NSZombie option when I click i for more information under the left option Leaks .", "After digging around some more I found the answer here : zombie question http : stackoverflow.com questions 5386160 how-to-enable-nszombie-in-xcode .. . .. . Ehud B s answer says you have to use the simulator for iOS apps not the device .", "There is a simple way to enable NSZombie if you are dealing with XCode version 4 through implementation of the following simple step : .. . .. . Please click on the scheme drop down bar named Product choose - edit scheme - arguments tab and then add NSZombieEnabled in the Environment Variables column and YES in the value column...Now you are done with enabling NSZombie to find bugs in program .", "It seems that everything was fine for a long time and yesterday without any visible reasons I started to get error .. . .. . on the next line on emulator everything is ok on real device : .. . .. . After enabling NSZombie message changed to .. . .. . exc breakpoint code exc i386 bpt subcode 0x0 .", "I think Not every EXC BAD ACCESS is found by NSZombie Enabling. . .. . Because Some cases I am also not getting result while using zombie. . .. . I think only EXC BAD ACCESS related to the use of released object can view by enabling zombie .", "enter image description here http : i.stack.imgur.com bkCMr.png .. . .. . and after enabling Zombies object I get this error in log : .. . .. . - NSDate dealloc : message sent to deallocated instance 0x16765ce0 .. . .. . Update : .. . .. . I used Profile Cmd + I and i choosed NSZombie with xcode and i got this : .. . .. .", "Apple Developer Relations Developer Technical Support Core OS Hardware .. . .. . ME : hope that is useful info for some of you in this situation .", "Just a few hours ago Apple said that the bug got fixed and that the fix will be in one of the next iOS versions .", "My test iphone is 3G updated 4.0 iOS .", "APPLE : First up the hack shown above in Apple s Forum has been obsoleted by internal changes to the OS namely Zombie setup is now done by CF .", "As of Xcode 3.2.5 and Snow Leopard Mac OS X 10.6 you can run your code through the Zombies instrument : Run Run with Performance Tool Zombies .", "Sorry not that competent in debugging .", "Apple keeps on moving things and the settings are no longer where they used to be .", "According to Apple documentation https : developer.apple.com library ios documentation DeveloperTools Conceptual InstrumentsUserGuide EradicatingZombies.html Zombie Messaged dialog should appear when app crashes .", "Crashes occur only on iOS 8 . iOS 9 is fine .", "It s a memory debugging aid .", "For reference see here https : github.com LeoNatan LNPopupController issues 71 issuecomment-222838020 .", "As Brad said run your application with debugging enabled .", "There s a bug in iOS before 6.0 and Mac OS before 10.8 under ARC and NSZombieEnabled that prevents automatic release of instance-variables and properties .", "I have been facing this issue on iOS simulator 6 7 .", "It s a simple matter of setting an environment variable on your executable NSZombieEnabled YES and then running debugging your app as normal .", "NSZombieEnabled is used for Debugging BAD ACCESS .. . .. . enable the NSZombiesEnabled environment variable from Xcode s schemes sheet .", "@zaph The whole point of a zombie as a debugging tool is to find cases where you have a pointer still around to an object that was deallocated and you then attempt to access the object .", "The error message that I got from debugging with the device was more helpful .", "It helps you debugging crashes caused by over releasing .", "You saved me hours possibly days of debugging .", "I m on Xcode 4.5 and tried this on iOS 5 and 6 .", "Looks like an iOS bug .", "I m still using iOS 4 .", "Solution : Test under iOS 6.0 .", "Oh and it might be time for debugging now .", "This is really just the allocations tool with instruments turned on .", "So I am running the Zombies Instruments tool ." ] }
{ "confidence": [ 51.05303192138672, 49.11177444458008, 46.106719970703125, 45.9445686340332, 45.45697784423828, 43.574485778808594, 42.93775177001953, 42.93290328979492, 42.3443717956543, 42.17333221435547, 41.21418380737305, 40.69068145751953, 40.55082702636719, 40.347251892089844, 40.22511291503906, 38.93048858642578 ], "content": [ "Question : I have an app that is crashing with no error tracing . I can see part of what is going on if I debug but can t figure out which object is zombie-ing . Does anybody know how to enable NSZombie in Xcode 4 .. . Answer : Here s a video and explaination how to use Instruments and NSZombie to find and fix memory crashes on iOS : http : www.markj.net iphone-memory-debug-nszombie", "Question : When I run Project Profile in Xcode and choose Zombies the app runs in the simulator with NSZombie detection enabled . But what should I be looking for to tell me that there is a problem All I see is the Allocation instrument running and the statistics below . Where will it actually show me that a Zombie was detected Comment : This explains it pretty thoroughly : iPhone Memory Debugging with NSZombie and Instruments http : www.markj.net iphone-memory-debug-nszombie Caveat : Demonstrated using XCode3 - all applicable to XCode4 though .. . Answer : You will get the leak above the object allocation bar . Check this image enter image description here http : i.stack.imgur.com utR1i.png .. . .. . For a reference check this video http : www.youtube.com watch v LQtPr8bkB3g", "Question : I have a gesture recognizer on my view controller which I use to slide in out the navigation bar . Unfortunately there is a bad NSZombie that makes the whole app crash when I go swipe to go to the previous controller . It s very difficult to track because it only happens in a specific view controller . Here is the error : .. . .. . And here is my code : Comment : The relevant code is where you instantiate MyViewController . There you don t create a strong reference to it so the viewController is deallocated prematurely . Comment : I use Storyboard . How can I control allocation of view controllers .. . Answer : The delegate method is .. . .. . Try to use Comment : That s not a method from UIGestureRecognizerDelegate... . Just checked out in the header . Comment : See Apple Docs developer.apple.com library ios documentation uikit reference https : developer.apple.com library ios documentation uikit reference UIGestureRecognizer Class Reference Reference.html apple ref doc uid TP40009279-CH1-SW41 Comment : It still doesn t work .", "Question : My Mac app is crashing with exc-bad-access on the run loops . So I enabled NSZombies and Now I don t see such error as expected As the objects are not de-allocated . But I don t find any useful NSZombie Log in the console . Is there a way to identify the issue .. . Answer : It s challenging . The most common cause of this error in Cocoa is directly accessing your ivars rather than using accessors . Accessors make the vast majority of memory crashes go away . That said they re not the only cause of memory errors . You may be accessing memory other ways . NSZombie does one specific thing : When you deallocate an object NSZombie says don t actually deallocate the object . Instead it turns the object into a zombie object that prints an error if you send it messages . But that only helps if the crash is due to sending a message to a deallocated instance . It could be lots of other things . You should start first with the crash stack itself . Look up the stack and see what kind of object it might be or who might be calling it . Read TN2124 https : developer.apple.com library mac technotes tn2124 index.html particularly the section on the BSD Memory Allocator and the Enabling the Malloc Debugging Features https : developer.apple.com library mac documentation Performance Conceptual ManagingMemory Articles MallocDebug.html section of the memory Usage Performance Guidelines . There are lower-level tools than NSZombie that you can use . MallocScribble is often the most useful . It overwrites deallocated memory with 0x55 so that you re more likely to crash sooner and to make it easier to detect deallocated memory in the debugger . MallocPreScribble is useful for finding uninitialized memory but this really only helps if you do raw malloc calls . ObjC objects are always pre-initialized . And of course you have to put on your detective hat . What parts of your program are most suspicious Are you doing multi-threaded work that can cause memory crashes if you don t lock correctly . If it reproduces easily then you ll figure it out . If it only happens occasionally well.. . I ve hunted bugs like that for many months sometimes . Sometimes it s just hard . Comment : App runs just fine with NSZombie . As you said NSZombie actually don t deallocate the object . Wondering If there is away to detech any attempt to reference that deallocated object . Comment : Not precisely but MallocScribble will help . Don t forget MallocStackLogging when you use that . Comment : Thanks It really helped.I ve narrowed it to stackoverflow.com questions 9168936 http : stackoverflow.com questions 9168936 hidmanager-wierd-cfrunloop-termination", "Question : i have some problem in memory-management and then i try to fix it using intrument tool . Base on mark j video on you tube http : www.youtube.com watch v LQtPr8bkB3g feature related .. . .. . about using NSZombieEnabled in intrument i try to do like that . The problem is i never find a checkbox to set NSZombieEnabled active in my instrument . In this case i use xcode 3.2.5 and still on IOS 4.2 . This is the screenshot from the instrument that show no one check box for NSZombieEnabled activated : instrument screenshot http : i.stack.imgur.com XYeNt.png .. . .. . am i doing something wrong help me please .. . .. . thank you .. . Answer : There is a simple way to enable NSZombie if you are dealing with XCode version 4 through implementation of the following simple step : .. . .. . Please click on the scheme drop down bar named Product choose - edit scheme - arguments tab and then add NSZombieEnabled in the Environment Variables column and YES in the value column...Now you are done with enabling NSZombie to find bugs in program . When you run your app you get an error message where the app crashes setting NSZombie state to enabled but originally before enabling NSZombie you might find it difficult to find out what s exactly wrong like crash at autorelease pool gdb break currently using objective-c BAD ACCESS errors etc.. . By enabling NSZombie you can find what is exactly the problem such as improper deallocation and trying to re-access or improper release of memory etc..The errors may be of the following kind :", "Question : I have an app that is crashing with no error tracing . I can see part of what is going on if I debug but can t figure out which object is zombie-ing . Does anybody know how to enable NSZombie in Xcode 4 .. . Answer : In XCode 4.0 : To detect NSZombie in Instruments select the Simulator as your target can t detect NSZomboe on device . Run Instruments CMD+I and select Zombies trace template . Enjoy .", "Question : null .. . Answer : I am using xcode 3.2.3 and ios sdk 4.0.1 and I setup everything the below . To enable it in xcode 1 . Double-click an executable in the Executables group of your Xcode project . 2 . Click the Arguments tab . 3 . In the Variables to be set in the environment : section make a variable called NSZombieEnabled and set its value to YES . But I can not see the NSZombieEnabled in Leaks . When I click X button on the right of Allocations I only see the 4 items not 5 items . I can not see Enable NSZombie detection check box . My test iphone is 3G updated 4.0 iOS . Could I use a device for using NSZombieEnable Thanks .", "Question : I m trying to debug an EXC BAD ACCESS crash using NSZombie . My app creates lots of large objects though and with NSZombie enabled they aren t getting released causing the app to crash in seconds . This means I can t even cause the EXC BAD ACCESS crash before the app crashes due to low memory . Is there an alternative Can I enable NSZombie on specific file instead of the entire project How else could I debug this crash I know it s caused by UIGestureRecognizer but I use them a lot so it doesn t narrow down the issue significantly . Thanks . Edit : Thanks for the advice . I think I may have solved the issue and will report back after more testing . .. . .. . Edit 2 : Sovled the issue myself but selected the answer which seems like it would be a good solution to any similar issues in the future . Comment : The simulator can handle a lot more memory usage than a real device . Can you try it on the simulator Comment : @rmaddy No luck with that either . It allocates about 100mb of memory and crashes . Comment : If you seem to be having trouble with zombies the first thing to do is to run Analyzer and meticulously work through the warnings produced . There s a good chance it will find your problem . Comment : @HotLicks I think I may have actually solved it Going to do some more testing before confirming though as it wasn t easy to reproduce . Comment : @kmcgrady in your dealloc you might be able to get away with replacing the isa of your object with a pointer to the zombie class to achieve single file zombie checking . Maybe . Haven t tried it . .. . Answer : NSZombies was is for apps that use their own memory-management . If your app uses ARC then this won t help . Create a new Breakpoint : All Exceptions .. . .. . That should usually show you where you trigger the bad access . Comment : Thanks I m trying this now - and you re right I m using ARC . Comment : This is not true . NSZombies is perfectly fine to use with ARC . Comment : Unfortunately this didn t help . The exception breakpoint didn t catch it any earlier . Comment : Setting an exception breakpoint won t help in the case of an EXC BAD ACCESS . Comment : NSZombie can be used any time it s possible to reference a deallocated object which is perfectly possible under ARC . ARC doesn t get rid of retains releases allocs deallocs autoreleases it simply adds them in for you .", "Question : I ve seen suggestions saying to set NSZombieEnabled to true while debugging . What is NSZombie Is it a framework A setting Comment : A undead NSObject beware Comment : An undead NSObject . .. . Answer : It s a memory debugging aid . Specifically when you set NSZombieEnabled then whenever an object reaches retain count 0 rather than begin deallocated it morphs itself into an NSZombie instance . Whenever such a zombie receives a message it logs a warning rather than crashing or behaving in an unpredictable way . As such you can debug subtle over-release autorelease problems without advanced tools or painstaking needle in haystack searches . You can read more over at Cocoa Dev http : cocoadev.com DebuggingAutorelease . The name is a fairly obvious play on the fact that objects are normally considered dead when they reach retain count 0 . With this setting they continue to exist in a strange half-life - neither living nor quite dead . Much like real zombies except they eat rather fewer brains . Comment : Be careful to remove this setting when you re done debugging because it essentially leaks every object . Comment : Thanks for this simple explanation . Let inform that Cocoa Dev Link is no more working . +1 for short and to the point .", "Question : I have an app that is crashing with no error tracing . I can see part of what is going on if I debug but can t figure out which object is zombie-ing . Does anybody know how to enable NSZombie in Xcode 4 .. . Answer : Product Profile will launch Instruments and then you there should be a Trace Template named Zombies . However this trace template is only available if the current build destination is the simulator - it will not be available if you have the destination set to your iOS device . Also another thing to note is that there is no actual Zombies instrument in the instrument library . The zombies trace template actually consists of the Allocations instrument with the Enable NSZombie detection launch configuration set . Comment : However this trace template is only available if the current build destination is the simulator . Thank you Comment : Thanks that was what I was looking for Comment : In Xcode in the Help menu at the top last one on the right search for Edit Scheme it will point you in the right direction every time in any version .", "Question : I have an app that is crashing with no error tracing . I can see part of what is going on if I debug but can t figure out which object is zombie-ing . Does anybody know how to enable NSZombie in Xcode 4 .. . Answer : NSZombieEnabled is used for Debugging BAD ACCESS .. . .. . enable the NSZombiesEnabled environment variable from Xcode s schemes sheet . Click on Product Edit Scheme to open the sheet and set the Enable Zombie Objects check box .. . .. . this video http : www.youtube.com watch v SUeATdeWZKs list PLrUFyg1unBb85La4kt3rbDw5sNJi4bwte index 1 will help you to see what i m trying to say . Comment : @kleopatra Thanks updated my answers with the appropriate setting", "Question : All of a sudden an app I ve been developing is no longer outputting debug info to the console even though NSZombie is properly configured . I m on Xcode 4.5 and tried this on iOS 5 and 6 . Any clues what may be wrong here .. . Answer : Some hints : - Ensure that project in Debug mode : Product - Edit scheme.. . Build configuration Debug - Add Exception break point : Switch to Breakpoint Navigator and Add Exception Breakpoint Exception : Objective-C Comment : Adding the exception breakpoint did the trick . Thanks", "Question : This is ONLY regarding the new Xcode 4.1 specifically running on Lion . How do you enable NSZombie in Instruments It is no longer in Allocations in the i icon under Launch Configuration as in Xcode 4.0 . Nor is there a Library entry called Zombies . Of course the problem is I cannot fall back to Xcode 4.0 because it refuses to run under Lion so I m in a pickle Any other bleeding edge developers using Lion who with more experience than myself can help dig this out Thanks . -Ric Comment : Do you mean Instruments or Xcode Comment : Instruments that came packaged with Xcode 4.1.. . as in Instruments 4.1 .. . Answer : There is another way to run with NSZombie on the device but this is done through XCode 4 not instruments . To run with NSZombie on the device open your XCode Project and click on the top menu item Product then hold down alt and click Run this will open a separate window where you will see Environment Variables in the bottom of the window . Hit the + and enter NSZombieEnabled for the name and YES for the value .", "Question : I ve seen suggestions saying to set NSZombieEnabled to true while debugging . What is NSZombie Is it a framework A setting Comment : A undead NSObject beware Comment : An undead NSObject . .. . Answer : Would help someone . Detailed document on Instruments . https : developer.apple.com library watchos documentation DeveloperTools Conceptual InstrumentsUserGuide index.html apple ref doc uid TP40004652-CH3-SW1", "Question : EDIT : I have found the cause of this crash bbum pointed out that buffer overflows are a very common cause for this so I looked at the only buffer type malloc I had : .. . .. . I was later overwriting data past the array s bounds which should have been much larger than baseCells.count . Thank you bbum Question : I have a reproduceable EXC BAD ACCESS during NSAutoreleasePool -drain which seems to indicate that I am over-releasing an object . So I enable NSZombie but then the program does not crash any more . Nor do I get any info logged to the console . If I turn NSZombie off the crash comes back . What is the meaning of this I thought NSZombies were used to tackle exactly this kind of problem . If NSZombie won t help is there another way to interrogate this over-released object Also the crash is not reproduceable on Simulator which is why I can t use Instruments with NSZombie . Folowing is the backtrace at point of crash . .. . Answer : The problem you describe could be one of a couple of things you may be over-releasing an object or you might be corrupting memory . If you corrupt memory -- corrupt the first few bytes of an object specifically -- then it can easily manifest as a crash during an autorelease pool drain or any other message . That the crash happens on a device but not the simulator points to memory-corruption as well . The architecture of the device ARM vs . the simulator i386 is quite different and there are any of a number of issues that may be at play . Typically it doesn t manifest itself quite so consistently . First post the backtrace of the crash . It might help . Secondly do you do any kind of raw malloc calls Or filling buffers with data The most common cause of such crashes is running past the end of a buffer . .. . .. . The above was added after the OP fixed the problem but -- for the archive .. . .. . That crash trace is a classic signature of memory-corruption . Namely the isa pointer -- the first pointer s worth of bytes in an object that points at the Class of the instance -- was stomped . This typically happens when the you overrun a buffer of memory in the allocation before the object . If it is just a couple of byte overrun then the behavior between different platforms may differ since the malloc quanta -- the real size of the allocations you ask for 90 bytes on one platform and you might get 96 . Another 128 -- differ between platforms and even releases . In particular the isa was stomped with a value that looked enough like a pointer that the runtime dereferenced the garbage value and then tried to treat the resulting location as the Class s method table . Any time you see a crash that is a few frames deep into one of the objc msgSend functions it is quite likely memory-corruption and if so it will almost always be a buffer-overflow . Since it is easy to do it is still a good idea to do a test pass with zombie detection to catch the sometimes it is really just an over-release cases . Comment : Your suggestion was SO right . I had a buffer-overflow problem . You saved me hours possibly days of debugging . And I was looking hard for overreleases which didn t exist . Thank you so much . Comment : You are quite welcome . Comment : bbum demonstrates is awesomeness yet again : - Comment : Excellent debugging information particularly the points about how the results differ on the simulator and device duh in that I should have realized that and perhaps more importantly in different releases something I figured was unlikely . Thanks very much for all of the future time you ve surely saved me . Comment : In my case I am getting similar error messages . I am on ARC how can I get over-released object", "Question : All of a sudden I receive this EXC BAD ACCESS and NSZombie isn t saying anything . Anyone have an effective way to debug and eliminate this issue enter image description here http : i.stack.imgur.com AcN9u.png Comment : There is not enough information here to determine what is happening . What are you trying to do that causes this error Comment : That s the only information I see . I m trying to load a new view and I can see in NSLog that it succeeds . Then all of a sudden is crashes . I ve tried on a different computer where it shows NSZombie information but here the EXC BAD ACCESS occurs at different places . .. . Answer : There might be following issues : - .. . .. . 1 First check in your code in which line it is happening . .. . 2 It happens due to improper bindings in the xib as well ." ] }
[ "yes-answer-long", "yes-answer-short" ]
osx
UNK_RELATION
susy-sass@toolkit@31
susy-sass -- susy is a layout @placeholder for the sass css pre-processor .
{ "confidence": [ 67.01371002197266, 64.14742279052734, 60.602210998535156, 59.27478790283203, 57.938743591308594, 56.79057312011719, 55.106285095214844, 54.381675720214844, 54.362396240234375, 54.05403137207031, 54.05403137207031, 53.56987762451172, 53.022865295410156, 51.56981658935547, 51.56981658935547, 51.56981658935547, 50.851417541503906, 50.49580383300781, 49.64842987060547, 49.40654754638672, 48.75865936279297, 48.49053955078125, 47.870208740234375, 47.292762756347656, 47.021697998046875, 47.021697998046875, 47.021697998046875, 46.90830993652344, 46.90830993652344, 46.90830993652344, 46.90830993652344, 46.37278747558594, 45.90257263183594, 45.79630661010742, 45.41845703125, 45.29692840576172, 45.29692840576172, 45.29692840576172, 45.14134979248047, 44.835514068603516, 44.53748321533203, 44.475494384765625, 44.33747100830078, 44.33747100830078, 44.33747100830078, 44.33747100830078, 44.33747100830078, 44.33747100830078, 44.33747100830078, 44.33747100830078, 44.33747100830078, 44.266563415527344, 43.785423278808594, 43.132835388183594, 43.132835388183594, 43.132835388183594, 43.132835388183594, 43.132835388183594, 43.132835388183594, 43.02360153198242, 42.86491775512695, 42.86491775512695, 42.619911193847656, 42.57051086425781, 42.57051086425781, 42.210479736328125, 42.210479736328125, 41.782344818115234, 41.769447326660156, 41.769447326660156, 41.46600341796875, 41.41222381591797, 41.365875244140625, 41.365875244140625, 41.365875244140625, 41.365875244140625, 41.365875244140625, 41.31432342529297, 41.286964416503906, 40.96849060058594, 40.582130432128906, 40.201446533203125, 40.201446533203125, 40.201446533203125, 39.24812698364258, 39.24812698364258, 39.24812698364258, 39.206764221191406, 38.928001403808594, 38.928001403808594, 38.928001403808594, 38.916351318359375, 38.916351318359375, 38.916351318359375, 38.45744323730469, 38.434486389160156, 38.434486389160156, 38.434486389160156, 38.434486389160156, 38.37796401977539 ], "content": [ "I m using the Susy SASS-library .", "But it uses and installed a version of sass sass-3.2.19.gem that is incompatible with Susy and Breakpoint .", "I m looking at using susy-sass to build an entire website as opposed to bootstrap .", "Yes Susy 2 requires Sass 3.3 .", "Do I need to @import Susy for every single partial SASS-file", "I ve installed Susy Breakpoint-sass and Compass with Bower .", "You ll need to @import susy somewhere in your Sass files before you can call Susy methods .", "https : teamtreehouse.com forum cant-make-susy-211-working .. . .. . User : Iago Wandalsen Prates .. . .. . gem uninstall compass .. . .. . gem uninstall sass .. . .. . gem uninstall susy .. . .. . gem install susy .. . .. . gem install compass --pre", "To the best of my understanding https : github.com ericam susy issues 339 Sass-Rails is still using an older version of Sass that does not support Susy 2 .", "My susy settings : .. . .. . SASS : .. . .. . HTML .. . .. . The problem is the padding inside the nested div .", "I have installed the latest versions of compass-sass and susy .", "Without seeing your Sass and Susy config usage it s hard to say exactly what you should do .", "Is there a way to achieve this kind of layout with Susy", "You can use Susy anywhere you use Sass .", "You can treat all of Susy like any other sass partial .", "I m using Susy 2 with breakpoint-sass to create my media-queries .", "Susy does require Sass 3.3+ so you ll have to find out if VS supports a recent version of Sass .", "nd there is no reason to use susy-media instead of susy-breakpoint in any cases as you can achieve all the same with susy-breakpoint as with susy-media plus the layout changes", "Install the latest alpha Compass from Unable to activate susy-2.1.1 because sass-3.2.17 conflicts with sass 3.3.0 http : stackoverflow.com questions 22576123 unable-to-activate-susy-2-1-1-because-sass-3-2-17-conflicts-with-sass-3-3-0 and breakpoint-sass Install Issue http : stackoverflow.com questions 24142627 breakpoint-sass-install-issue .. . .. . This link got me to decide it was safe to use the alpha version : https : github.com ericam susy issues 350 .. . .. . This may not impact others with this issue but FYI.. .", "Your initial example doesn t work because Sass CSS and therefor Susy are not aware of the DOM - or relationships between media-queries .", "Susy will have exactly the same constraints as writing the CSS yourself .", "Susy uses standard float layout by default .", "This is not about vanilla CSS but the CSS generated by susy .", "It s Susy .", "So your Gemfile should specify susy 2.1.1 and sass 3.3.2 plus any other that you require such as breakpoint 2.4.1 .", "The order and location of imports is relevant in Sass but I m not sure why it would affect Susy margins specifically .", "I m using libsass as it s faster than ruby sass and importing susy using bower .", "I installed susy with bower .", "And pick an older version of susy .", "Susy has a keyword for that", "And for this great toolkit Susy is awesome", "I was wondering whether Susy is limited in accomplishing such a layout .", "How is this done with pure CSS in Susy 2", "No with Susy you can do anything you want .", "So far in my Gemfile i included .. . .. . Gemfile gem sass-rails 5.0 gem susy .. . .. . config application.rb require susy .. . .. . I ran bundle install with no errors .", "Susy doesn t have magic powers .", "If so susy-media seems useless .", "The build works fine without Susy .", "No this is not a proper way to use Susy .", "Susy and any other Sass plugin is not aware of the DOM and so it is not aware that object1 is inside grid which has been set to 8 columns .", "Versions : .. . .. . Compass 1.0.1 Susy 2.1.3 .. . .. . I am using .sass files not .scss", "The SASS code : .. . .. . The compiled CSS with the line : box-sizing : : .. . .. . I ve also used nested breakpoints with Susy in another site and it works well .", "github.com keevitaja susy-and-salvattore-masonry https : github.com keevitaja susy-and-salvattore-masonry", "This might help - zell-weekeat.com context-with-susy http : www.zell-weekeat.com context-with-susy", "Is there any use-case for susy-media http : susydocs.oddbird.net en latest toolkit susy-media mixin", "So would it be right to say that susy-media is a service mixin to be used by susy-breakpoint", "Anything you might do with susy-media you can do with susy-breakpoint .", "Simply put : In which scenario s would you opt to use susy-media over susy-breakpoint", "susy-breakpoint was built to integrate with the popular Breakpoint plugin before susy-media existed .", "If you are not using Breakpoint then susy-breakpoint calls susy-media and you are really just using an alias .", "Go to this link https : rubygems.org gems susy versions to get the Susy version you want to install it in Ruby .", "The best way without a doubt is to install Susy via the Compass Susy Plugin .", "Susy is just a tool to help write CSS and it has almost no opinions about how you do that .", "Inside the partials I use Susy-mixins .", "However I m finding it difficult to achieve this using susy .", "susy-media is our built-in media-query handling .", "I delete the susy-2.0.0.rc.1 folder .", "Finally I choose the version susy -v 1.0.9 .", "It looks like Breakpoint should be used with Susy .", "Is there a way to use susy this way", "You current issue comes from a misunderstanding of context in Susy .", "I don t seem to find good referencws for building a whole site with susy .", "I d really like to create nice grid-layout using susy but I ve came across a problem when trying to compile the scss files into css .", "I am finally transitioning over to Susy 2 from Susy One and have been struggling a bit with the new syntax .", "In Susy One I had this : .. . .. . I was then able to write styles such as : .. . .. . An example of my HTML markup : .. . .. . Is this pattern portable to Susy 2", "Susy isn t magic it can only be used to generate valid CSS .", "@cimmanon - That is the thing susy is generating for me the CSS with its math .", "Well replicating Foudantion with Susy is part of how Susy is supposed to work .", "Susy-breakpoint http : susydocs.oddbird.net en latest toolkit susy-breakpoint seems to provide same functionality if used without layout parameter .", "Susy-media provides all the media-query logic used by susy-breakpoint and serves as a built-in replacement for something like the Breakpoint plugin .", "I m trying to come to a non-excruciating way of achieving a pretty common layout paradigm within Susy .", "Susy has a mixin called nested .", "In Susy what is the same concept of a row and a col", "see bottom .. . .. . Obviously I m new to Susy .", "I m having trouble with the markup that is generated through susy .", "Is this because I m not defining a global grid in susy", "The horizontal gutters are controlled with the gutters setting in the susy map .", "I m using susy to create a responsive grid and I was wondering if I have a set of columns like : .. . .. . how do I get susy to determine the last child", "Rather than using a gem bundle or any of the other linux-based approaches copy and paste the entire Susy sass directory into your own sass directory then import it into your stylesheets .", "After adding Susy to the Compass task in grunt I get : .. . .. . Gem : : LoadError on line 2064 of home paul .rvm rubies ruby-2.1.0 lib ruby site ruby 2.1.0 rubygems specification.rb : Unable to activate susy-2.1.2 because sass-3.2.19 conflicts with sass 3.3.0 .. . .. . I would like to minimize my use of Ruby .", "The with-layout mixin accepts any layout definition using a settings-map or the shorthand syntax or any combination of the two similar to other Susy mixins .", "Using this you can have susy tell masonry the widths of your elements .", "Why not just always use susy-breakpoint and leave off the second argument", "But feels like I m hacking into susy values and I m not sure that s great .", "I am brand new to using Susy .", "There s an unwanted space between two blocks in susy .", "Susy doesn t do anything with container padding .", "Both of these require Sass to be at least V3.3 .", "Of course this problem isn t limited to Susy .", "This is how Susy does the math : .. . .. . 1 .", "I use nested breakpoint with Susy .", "col-md-2 all these grid styles would have to be done per page in susy right", "You can build bootstrap with Susy if you want to - or your own version of something like bootstrap .", "Susy isn t one grid-system it s a math engine that you can use to build your own system .", "I m compiling one main SASS-file that @imports various partial SASS-files .", "I m new to Susy and am struggling with figuring out a few items .", "How do I set where the columns show up in Susy", "Susy doesn t use or require rows so span is all you need .", "But in any case the second example doesn t use Susy at all .", "I am making a fixed layout with Susy and stuck with this issue when the second column has a right margin even if I specify that they are nested within a container ." ] }
{ "confidence": [ 77.70796966552734, 76.58854675292969, 74.745849609375, 73.0337905883789, 72.55754852294922, 70.97824096679688, 70.76009368896484, 70.62123107910156, 69.99102783203125, 68.35234832763672, 68.32585144042969, 67.56617736816406, 67.41805267333984, 67.20857238769531, 66.24198913574219, 64.867431640625, 64.2635498046875, 63.693817138671875, 63.45684814453125, 62.9459114074707 ], "content": [ "Question : null .. . Answer : I use nested breakpoint with Susy . The compiled CSS contain the line : box-sizing : When I don t use nested breakpoint the compiled CSS is correct . The SASS code : .. . .. . The compiled CSS with the line : box-sizing : : .. . .. . I ve also used nested breakpoints with Susy in another site and it works well . I ve also tried the susy-breakpoint mixin the problem remains the same . Comment : I can t recreate this but it looks like a problem with null -handling in Sass . What version of Sass are you using Comment : @Eric M Suzanne I use gulp-sass . Sorry I m unable to find the version of Sass . I ve installed Susy Breakpoint-sass and Compass with Bower . I just run a Bower update that has updated Susy from 2.2.2 to 2.2.5 . After I ve re-compiled the css and the box-sizing no longer appears . Solved problem . Comment : Glad to hear it", "Question : I have an existing project that I build with grunt and would like to add Susy . The build works fine without Susy . It looks like Breakpoint should be used with Susy . Both of these require Sass to be at least V3.3 . And from the CLI it is : Sass 3.3.10 Maptastic Maple . I used Gem Compass to get the latest version of Compass Compass 0.12.6 . But it uses and installed a version of sass sass-3.2.19.gem that is incompatible with Susy and Breakpoint . After adding Susy to the Compass task in grunt I get : .. . .. . Gem : : LoadError on line 2064 of home paul .rvm rubies ruby-2.1.0 lib ruby site ruby 2.1.0 rubygems specification.rb : Unable to activate susy-2.1.2 because sass-3.2.19 conflicts with sass 3.3.0 .. . .. . I would like to minimize my use of Ruby . This project does not have have a config.rb . That means that I would prefer not to get a solution like Use Bundler . I figure I must be missing something basic . .. . Answer : I kept looking for a solution after posting the question and eventually decided to try Compass alpha version . With a couple of caveats that got things working . Install the latest alpha Compass from Unable to activate susy-2.1.1 because sass-3.2.17 conflicts with sass 3.3.0 http : stackoverflow.com questions 22576123 unable-to-activate-susy-2-1-1-because-sass-3-2-17-conflicts-with-sass-3-3-0 and breakpoint-sass Install Issue http : stackoverflow.com questions 24142627 breakpoint-sass-install-issue .. . .. . This link got me to decide it was safe to use the alpha version : https : github.com ericam susy issues 350 .. . .. . This may not impact others with this issue but FYI.. . The new Compass version causes warnings in normalize https : github.com JohnAlbin normalize.css-with-sass-or-compass which is now https : github.com JohnAlbin normalize-scss where there is a new version . The new normalize.scss fixed the warning . I just copied the one file no installation . Compass 1.0...alpha also causes problems with Bourbon . I was already using the current version of Bourbon 4.0.1 and what I m seeing is already a reported Issue : https : github.com thoughtbot bourbon issues 456 Very strange that the notes say that the version I was already using required Sass 3.3.x .", "Question : I m using the Susy SASS-library . I m compiling one main SASS-file that @imports various partial SASS-files . Inside the partials I use Susy-mixins . Do I need to @import Susy for every single partial SASS-file What s the smart way to do this Comment : Did you try it with and without Seems like that would have given you your answer . Comment : I ve been experimenting with the best way to do this before asking this question . I m not sure why it didn t work for me at first maybe because I forgot to include the susy configuration variable . @allejo s answer cleared up any confusion I had . Imported mixins and variables appear to be available across partials . Comment : When you have an error you need to be providing that error . Otherwise it just looks like you have an exceptionally lazy question where you didn t bother trying anything . Comment : True that . I guess I could have phrased my question differently to not come across as lazy . Thanks for the heads up . .. . Answer : You can just have a single @import Susy before you import all of your other partials . As long as your main file imports Susy first your partials will be able access it .", "Question : I have installed the latest versions of compass-sass and susy . But still I am getting this error : .. . .. . Anyone knows how this Ruby thing works This is the list of my installed gems : Comment : I m not a Ruby dev but it sounds like you need to uninstall sass 3.2.17 . Comment : Sounds logical . I ll try installing a previous version Comment : No luck : Tried the bundler method but the error still remain . Can t get susy to work so I m going to use another grid-system Comment : To use Bundler first type bundle init in Terminal at the desired directory.That will write a basic Gemfile . Load the Gemfile into nano and add-in the items you want just as I have written below . Save the Gemfile . Then still in the same directory in Terminal type bundle install . It should work but occasionally terminal asks you to install such and such a dependency first . .. . Answer : gem install compass --pre .. . .. . if you ended up uninstalling the sass 3.3.0 gem you should reinstall that first . Comment : Yes Susy 2 requires Sass 3.3 . In order to use Compass with Sass 3.3 you need to use the Compass pre-release . Comment : On Ubuntu you will also need to install ruby1.9.1-dev package or you will get this error : require : cannot load such file -- mkmf LoadError", "Question : I have installed the latest versions of compass-sass and susy . But still I am getting this error : .. . .. . Anyone knows how this Ruby thing works This is the list of my installed gems : Comment : I m not a Ruby dev but it sounds like you need to uninstall sass 3.2.17 . Comment : Sounds logical . I ll try installing a previous version Comment : No luck : Tried the bundler method but the error still remain . Can t get susy to work so I m going to use another grid-system Comment : To use Bundler first type bundle init in Terminal at the desired directory.That will write a basic Gemfile . Load the Gemfile into nano and add-in the items you want just as I have written below . Save the Gemfile . Then still in the same directory in Terminal type bundle install . It should work but occasionally terminal asks you to install such and such a dependency first . .. . Answer : https : teamtreehouse.com forum cant-make-susy-211-working .. . .. . User : Iago Wandalsen Prates .. . .. . gem uninstall compass .. . .. . gem uninstall sass .. . .. . gem uninstall susy .. . .. . gem install susy .. . .. . gem install compass --pre", "Question : I try to follow this instruction https : github.com ShamilS Prepros-Docs blob susy and compass contents sass-compass-susy.md and after all is done I am gettin this error when using prepros to compile the scss file . Please help me solve this problem . .. . Answer : First of all sorry for my bad in English . I found out my answer is just go to the Ruby installation directory my own is : .. . .. . And I found something like this . http : 3.bp.blogspot.com -vM3dMbk-UoY U04e50qvcEI AAAAAAAABKU m3I4LNANEvw s1600 ruby-gems.png .. . .. . Sorry because I don t enough reputation . I delete the susy-2.0.0.rc.1 folder . And pick an older version of susy . Go to this link https : rubygems.org gems susy versions to get the Susy version you want to install it in Ruby . And I choose randomly the version using command .. . .. . gem install susy -v 1.0.2 .. . .. . I get this errors .. . .. . error screen.scss Line 12 of susy.scss : Undefined mixin with-only-support-for . overwrite css screen.css .. . .. . And several errors like this link .. . .. . stackoverflow.com questions 16449160 mixin-container-takes-0-arguments-but-2-were-passed .. . .. . And all of this errors start from the version of Susy . Finally I choose the version susy -v 1.0.9 . And it work for me . You can use the command in Ruby command-line to check all of gems version .. . .. . gem list .. . .. . And this is my list infor : C : Windows System32 gem list .. . .. . LOCAL GEMS .. . .. . bigdecimal 1.1.0 chunky png 1.3.0 compass 0.12.5 fssm 0.2.10 io-console 0.3 json 1.5.5 minitest 2.5.1 rake 0.9.2.2 rdoc 3.9.5 sass 3.3.4 3.2.19 sassy-buttons 0.2.6 susy 2.1.1 2.0.0.rc.1 2.0.0.alpha.4 1.0.9 1.0.2", "Question : null .. . Answer : I m looking at using susy-sass to build an entire website as opposed to bootstrap . Am I right in saying that the site has to be built page per pge . I mean if say on the home the aside tag as 3 columns and on the about page the aside tag has 4 columns you d have to write this style for each page I don t seem to find good referencws for building a whole site with susy . Thanks Comment : Susy is just a tool to help write CSS and it has almost no opinions about how you do that . Susy will have exactly the same constraints as writing the CSS yourself . If you want things to look different on each page you will have to specify that somehow but CSS is also good at handling global styles . It s up to you and your specific needs Comment : Thanks for that but would it need a stylesheet for each page then Is this the best practice @MiriamEricSuzanne Comment : No best practice is to use one stylesheet for an entire website or app . Comment : @MiriamEricSuzanne sorry what I meant was when building it you d need to style page per page as opposed to bootstrap where you have all the grid styles written out eg . col-md-2 all these grid styles would have to be done per page in susy right Comment : No with Susy you can do anything you want . You can build bootstrap with Susy if you want to - or your own version of something like bootstrap . You can also style component-by-component or page-by-page or any way you like . Susy isn t one grid-system it s a math engine that you can use to build your own system .", "Question : null .. . Answer : I want to have a fluid grid that is generally 80 the width of the screen with a maximum width of 1440px but below 768px is 100 the width of the screen instead of 80 . With just one setting for container I m not sure the best way to approach this or how possible it is . My current settings are : .. . .. . I tried to override those settings conditionally based on breakpoints like this : .. . .. . but that wouldn t work because that s not how breakpoints work . Is there a way to achieve this kind of layout with Susy It s a fairly common pattern as far as I have seen hence my being tasked with acheiving it and I don t want to need to override every time there is a container invoked . Comment : possible duplicate of Using Sass Variables with CSS3 Media Queries http : stackoverflow.com questions 9122195 using-sass-variables-with-css3-media-queries Comment : My suggested impossible solution is similar to the problem in that question but the issue itself is a little bit outside of that . Maybe . I m wondering about what s possible within Susy which may have separate mechanisms for achieving what I m after in a semi-straightforward way Comment : Susy doesn t have magic powers . It still has to obey rules of what s possible within the confines of Sass . Comment : Understood . I m not saying the code I provided should work . I m trying to come to a non-excruciating way of achieving a pretty common layout paradigm within Susy .", "Question : I have recently upgraded to Susy2 and having to rework my base templates with new susy-breakpoints instead of at-breakpoint . With the new susy-breakpoint I need to define a breakpoint and a layout for the short hand like so 60em 12 and I have tried storing this in a variable e.g . large so that I can pass it into various classes . However as it is a single variable the mixin only sees it as one value so I can only store one value . Is there a way two store both values in a variable .. . Answer : Yep . Sass has Variable Arguments http : sass-lang.com documentation file.SASS REFERENCE.html variable arguments which are great for handling this situation : .. . .. . The .. . does the magic .", "Question : I use Visual Studio 2013 with Web Essentials extension for all my Sass Scss work . Its great . I came across a tutorial on a grid framework that I really want to use called Susy https : github.com ericam susy . However the tutorials I seen on it are all using it on Linux or mac and in some sort of a ruby based environment . Even on the site link I don t see instructions on getting it to work in VS2013 . I tried extension manager and nuget-package manager but to no avail . My only option seems to be to download the source and try to compile it by combining all the Scss files and hoping I do it in the right order . But something tells me I am getting a bit over complicated and there is a simpler way . There are many ruby Linux based libraries like this and I really would like to know how to bring this into VS2013 and later I can do it for any of the libraries I want . I am sure that people making the tutorials for such libraries and the libraries themselves are not excluding VS2013 purposefully if at all . I just don t know how to get them into VS2013 . Any help would be appreciated . Thanks in advance . Comment : Are you already using Sass If so how Comment : @EricMSuzanne - In visual-studio-2013 update 3 especially if you include the web-essentials extension . You simply create a .scss .sass file and web-essentials takes care of the translation to css . You have 2 windows side-by-side the sass and the translated css . Then I simply bundle my css file in the bundles.config which takes care of the minification . All that s left is to use it as normal in the header . Comment : +1 I have VS2013 update 2 with web-essentials and I was unable to include susy . Web essentials may have trouble compiling it Comment : @FrancisRodgers So did you get Eric s solution to work Can we get an update Comment : @JasonFrank - I have since moved on to another project and left that far behind . However I do believe SO requires me to accept an answer if it works . So I will check out his solution this weekend and let you know by Tue at latest . .. . Answer : You can use Susy anywhere you use Sass . Rather than using a gem bundle or any of the other linux-based approaches copy and paste the entire Susy sass directory into your own sass directory then import it into your stylesheets . You can treat all of Susy like any other sass partial . Comment : Thanks for your answer . It will be a week or so before I am working on that project again so I ll let you know if I was able to get it working . Thanks again . Comment : Susy does require Sass 3.3+ so you ll have to find out if VS supports a recent version of Sass .", "Question : I want to use susy http : susydocs.oddbird.net en latest install with Rails 4 . I added gem susy to my gemfile . Then I run bundle install . Everything is fine and says the gem was installed . Now I restart my Rails server and add @import susy to application.css.scss I m using sprockets . I get the error File to import not found or unreadable : susy . Any ideas .. . Answer : To the best of my understanding https : github.com ericam susy issues 339 Sass-Rails is still using an older version of Sass that does not support Susy 2 . I hope they are working on an update and have it available soon . In the meantime you will have to use Susy 1.0 . That also means using Compass and adding require susy to your config.rb .", "Question : So far in my Gemfile i included .. . .. . Gemfile gem sass-rails 5.0 gem susy .. . .. . config application.rb require susy .. . .. . I ran bundle install with no errors . Now i m trying to write normal Susy and just set up the app : .. . .. . susy : columns : 12 we want our page to have 12 columns gutters : 3 4 space between columns with be 3 4 of a column math : fluid output : float gutter-position : inside .. . .. . Now when i try and call Susy methods to set up columns i m getting errors I tried a simple column on an element : .. . .. . .example @include span 3 of 12 .. . .. . Any ideas Am i missing something in the install process .. . Answer : You ll need to @import susy somewhere in your Sass files before you can call Susy methods . Comment : Wow - honored to have an answer from you Rookie mistake . Thanks for your great grid-system and perfect answer Comment : Glad you like it . Cheers", "Question : I m using susy to create a responsive grid and I was wondering if I have a set of columns like : .. . .. . how do I get susy to determine the last child I also noticed whenever I have this set up the margin-right causes them to be to wide for the container and they stack . I tried to use last-flow : to and it doesn t seem to be responding either . .. . Answer : Using the span mixin http : susydocs.oddbird.net en latest toolkit row-edges you can specify first or last and Susy will remove the extra gutter where relevant it depends on your gutter-position setting . All it really does is set margin-left or margin-right to 0 so of course there are lots of ways to deal with extra gutters depending on how you re using Susy . Without seeing your Sass and Susy config usage it s hard to say exactly what you should do . Comment : This is exactly what I was needing .", "Question : i am using Susy gallery mixin or i could just use span and the height of the items is not equal . So i must use Masonry as well but it messes my layout always . Sass : .. . .. . Javascript .. . .. . Has anyone done that before This is the masonry script i am using : http : masonry.desandro.com .. . Answer : I ran into this issue a little while back . If you check the masonry docs http : masonry.desandro.com options.html columnwidth you should see the option to pass an element selector as the columnWidth setting to masonry . Using this you can have susy tell masonry the widths of your elements . One thing I struggled with though was using gutters . In the end I resorted to using susy s inside-static method and used inner elements to provide styling . I ve put together a basic codepen http : codepen.io jackw pen ZYVgwq that should help explain things . Below is the scss for reference . Comment : Thank you but i gave up on Masonry . It got too messy . Instead i hooked up with Salvattore github.com keevitaja susy-and-salvattore-masonry https : github.com keevitaja susy-and-salvattore-masonry", "Question : 1 . I m not using Compass .. . 2 . I prefer to use Breakpoint.scss .. . 3 . I m on susy 2.0 .. . .. . I know there are lot of posts with this question but I m having 0 luck finding any regarding Breakpoint.scss and Susy 2.0 on this topic . Do I have to use susy-breakpoint or can something like this be achieved I want 6 columns at anything at below 800px and 12 at above 800px .. . .. . I m trying to stay DRY so adding a susy-breakpoint in my styles does not help . I ve also tried below code but I think I just have an error somewhere cause it s not working . .. . Answer : I don t know what your media mixin does so I can t really comment on anything related to that . Your initial example doesn t work because Sass CSS and therefor Susy are not aware of the DOM - or relationships between media-queries . When you change the value of susy inside one media-query that does not propagate to all similar media-query contexts . Because of that you do have to set both the media-query and the desired layout every time you want a breakpoint to change the layout context . susy-breakpoint is not the only way to do that but it is the shortest . Here s the longhand : .. . .. . Your small breakpoint currently doesn t change anything because it is identical to your default layout . The larger ones will-change the layout context for nested code though you can simplify : Since 1 4 split gutters aren t changing at all they don t need to be re-stated at every breakpoint . That will be identical to the longhand above . Comment : This answered so many of my questions going from SUSY One to SUSY 2 within about 90 seconds of CodePen . Thank you . Just like that the docs at susy.readthedocs.org en latest settings http : susy.readthedocs.org en latest settings made perfect sense .", "Question : My div is not matching up to my grid . It s an 8 container grid and when I tell the element to span 2 it acts as-if the grid were 4 . Is this because I m not defining a global grid in susy Some contextual code : .. . .. . First I defined a container grid : .. . .. . Then I added it to the html : .. . .. . Then I nested the div in css : .. . .. . and added it to the html .. . .. . edit : fixed must define context even in child elements . why is that if i can set span according to any grid amount that i want then what s the point of all this with-layout and context following hokey pokey If span doesn t read context from the parent element then what the hell is the point of susy Here s the result http : i.stack.imgur.com ZaH3q.png Comment : The container mixin takes a width as optional argument not the number of columns cf . documentation http : susydocs.oddbird.net en latest settings container . Comment : Thanks for helping : D .. . Answer : You don t have to pass the explicit context to every single container span element if you set it globally . Susy and any other Sass plugin is not aware of the DOM and so it is not aware that object1 is inside grid which has been set to 8 columns . Every item needs context from somewhere . If you don t pass it in explicitly Susy checks the global settings which default to 4 columns . If you change the global setting to 8 then you don t need to pass context into your mixins . The with-layout mixin is just one way to change the global setting temporarily for a block of nested code . Comment : Thanks Eric you rock I remember reading about the DOM . I guess it didn t sink it . I m a newb developer . I also appreciate you contextualizing with-layout . Great work you ve done with this project of yours . It is exemplary .", "Question : I have installed the latest versions of compass-sass and susy . But still I am getting this error : .. . .. . Anyone knows how this Ruby thing works This is the list of my installed gems : Comment : I m not a Ruby dev but it sounds like you need to uninstall sass 3.2.17 . Comment : Sounds logical . I ll try installing a previous version Comment : No luck : Tried the bundler method but the error still remain . Can t get susy to work so I m going to use another grid-system Comment : To use Bundler first type bundle init in Terminal at the desired directory.That will write a basic Gemfile . Load the Gemfile into nano and add-in the items you want just as I have written below . Save the Gemfile . Then still in the same directory in Terminal type bundle install . It should work but occasionally terminal asks you to install such and such a dependency first . .. . Answer : The best way without a doubt is to install Susy via the Compass Susy Plugin . This will avoid conflicts with other Compass projects that require the current version . Commands : Comment : This totally solve the issue for me on first attempt after spending a lot of time on other workarounds . Thanks Simon", "Question : I want to make a 12 columns page with susy which contain 3 equally spaced centred divs but when I do this .. . .. . HTML : .. . .. . SASS : .. . .. . The 3rd div go to a new line as this picture http : i.stack.imgur.com QnnYy.png but I want them in one single line . And in my CSS file there is : .. . .. . UPDATE : If I am right in my calculation 3 28.57143 + 7.14286 3 100 it is approximately 107 But why 28.57143 is the width of each div and 7.14286 is the right margin in percentage Comment : Did you try looking at the compiled CSS to see if it generates what you expected Comment : There is a weird thing the css file maybe I am wrong in the calculation but here is it I am gonna update the question .. . Answer : I figured out the solution I had to implement the settings for the susy grid-system before .", "Question : I have installed the latest versions of compass-sass and susy . But still I am getting this error : .. . .. . Anyone knows how this Ruby thing works This is the list of my installed gems : Comment : I m not a Ruby dev but it sounds like you need to uninstall sass 3.2.17 . Comment : Sounds logical . I ll try installing a previous version Comment : No luck : Tried the bundler method but the error still remain . Can t get susy to work so I m going to use another grid-system Comment : To use Bundler first type bundle init in Terminal at the desired directory.That will write a basic Gemfile . Load the Gemfile into nano and add-in the items you want just as I have written below . Save the Gemfile . Then still in the same directory in Terminal type bundle install . It should work but occasionally terminal asks you to install such and such a dependency first . .. . Answer : If you use Bundler it will ensure that the gems in your Gemfile are the ones used by your project . So your Gemfile should specify susy 2.1.1 and sass 3.3.2 plus any other that you require such as breakpoint 2.4.1 . It then won t matter what versions are installed inside your Ruby gems folder . When you then do a bundle install Bundler ensures that your project will only use the correct dependencies . This is of course a CLI instruction through the terminal . Alternatively simply do a sudo gem uninstall sass -v 3.2.17 if you don t want to use Bundler . Comment : Quick start guide to use Bundler : ruby.about.com od bundler ss Getting-Started-With-Bundler.htm http : ruby.about.com od bundler ss Getting-Started-With-Bundler.htm Comment : The last suggestion uninstall sass -v 3.2.17 is not possible . If I try that I get the error If you remove this gem these dependencies will not be met . Continue with Uninstall yN . Comment : Re the error if you uninstall .. . etc . it doesn t matter . Just re-install sass -v 3.3.0 and the correct dependencies will be added .", "Question : I m using libsass as it s faster than ruby sass and importing susy using bower . And the output is : .. . .. . It doesn t work properly it breaks the page . However the ruby sass output changes only the padding to 0.83333 and everything is right . As you can see above the libsass padding output is way different from the ruby sass output . What is wrong and how to fix it .. . Answer : I realized that it s not wrong at all I forgot to add : @include border-box-sizing .. . .. . I hope it helps others ." ] }
[ "yes-answer-long", "yes-answer-short" ]
toolkit
UNK_RELATION
airconsole@api@80
airconsole -- airconsole development specific questions such as the airconsole @placeholder or the airconsole plugins .
{ "confidence": [ 85.12105560302734, 85.12105560302734, 83.74030303955078, 83.74030303955078, 79.77561950683594, 79.18419647216797, 78.51099395751953, 78.51099395751953, 78.51099395751953, 76.86576080322266, 76.28901672363281, 75.78102111816406, 75.78102111816406, 75.36467742919922, 75.21649932861328, 73.95487976074219, 73.95487976074219, 71.42759704589844, 71.42759704589844, 71.42759704589844, 68.69762420654297, 68.69762420654297, 67.68073272705078, 67.665771484375, 66.8714828491211, 66.8714828491211, 64.50039672851562, 63.12462615966797, 61.88629913330078, 61.88629913330078, 61.88629913330078, 61.88629913330078, 61.88629913330078, 61.88629913330078, 61.88629913330078, 59.15633010864258, 59.15633010864258, 59.15633010864258, 59.15633010864258, 59.15633010864258, 59.15633010864258, 59.15633010864258, 59.15633010864258, 57.3301887512207, 57.3301887512207, 57.3301887512207, 56.118717193603516, 56.04682159423828, 53.31685256958008, 51.4907112121582, 49.50639343261719, 49.50639343261719, 49.50639343261719, 49.50639343261719, 49.50639343261719, 46.776424407958984, 46.776424407958984, 46.776424407958984, 44.95028305053711, 43.73881149291992, 39.675498962402344, 35.06219482421875, 20.915678024291992, 20.187843322753906, 20.067798614501953, 19.76921844482422, 19.633270263671875, 18.18570899963379, 16.547677993774414, 16.547677993774414, 16.547677993774414, 16.547677993774414, 16.547677993774414, 16.547677993774414, 16.547677993774414, 16.547677993774414, 16.547677993774414, 16.547677993774414, 16.547677993774414, 16.547677993774414, 16.547677993774414, 16.547677993774414, 16.547677993774414, 16.547677993774414, 16.547677993774414, 16.547677993774414, 16.547677993774414, 16.547677993774414, 16.547677993774414, 16.547677993774414, 16.547677993774414, 16.547677993774414, 16.547677993774414, 16.547677993774414, 16.547677993774414, 16.547677993774414, 16.547677993774414, 16.547677993774414, 16.547677993774414, 16.547677993774414 ], "content": [ ".. . Assets AirConsole plugins Newtonsoft.Json Converters XmlNodeConverter.cs 603 22 : error CS0246 : The type or namespace name XObject could not be found .", ".. . Assets AirConsole plugins Newtonsoft.Json JsonConvert.cs 34 18 : error CS0234 : The type or namespace name Linq does not exist in the namespace System.Xml .", "Airconsole says they use WebRTC if available .", "AirConsole messages are always guaranteed to arrive .", "You can do this by onMessage or listening to onDeviceStateChange events Are you referring to the onMessage in the controller.html file or the logic c-sharp file like in the pong game github.com AirConsole airconsole-unity-plugin blob master https : github.com AirConsole airconsole-unity-plugin blob master Assets AirConsole examples pong ExamplePongLogic.cs .", "Hey Draco no it is managed by AirConsole team .", "I tried to make an airconsole game at my university .", "AirConsole is always using TCP WebRTC data channels .", "I was wondering how to use the accelerometer with Airconsole .", "for handling views not 100 done yet : github.com AirConsole airconsole-view-manager but maybe it helps you if you look at the code :", "Assets AirConsole plugins Newtonsoft.Json Converters XmlNodeConverter.cs 31 18 : error CS0234 : The type or namespace name Linq does not exist in the namespace System.Xml .", "I ve set up a project in Unity using AirConsole .", "My solution : I ve attached it as a component to the AirConsole object .", "The newest unity plugin released on 2015-02-01 on github.com AirConsole airconsole-unity-plugin https : github.com AirConsole airconsole-unity-plugin also binds all IP addresses which should also help to resolve this issue .", "Whenever I boot up AirConsole either in Unity3D the simulator or a normal WebGL build in AirConsole I can never connect my phone .", "Assets for the controller need to be in Assets WebGLTemplates AirConsole .", "AirConsole is something I hadn t heard about before .", "AirConsole is providing the API Service but not the possibility to host the framework by yourself .", "Is there a workaround or is making games for airconsole on a typical university network just impossible", "I am using Unity 5.3.5 and the latest AirConsole plugin .", "I ve tested the phone using both Chrome and the AirConsole app .", "With Airconsole there s a noticeable lag between pressing a button and seeing the result on-screen .", "We ve created a library that intelligently rate-limits your messages and updates : RateLimiter https : github.com AirConsole airconsole-controls tree master rate-limiter .. . .. . The connections are not established over local Wifi .", "To resolve this check : Using Airconsole on a standard University Corporate network for dev http : stackoverflow.com questions 35121564 using-airconsole-on-a-standard-university-corporate-network-for-dev .. . 4 .", "I m still pretty new to Airconsole so thanks for the insightful response .", "I tried the test version on AirConsole and it works great now .", "Check out : stackoverflow.com questions 35121564 http : stackoverflow.com questions 35121564 using-airconsole-on-a-standard-university-corporate-network-for-dev", "Snippets of Code : This script is attached the AirConsole Object that I created .. . .. . public class What Level : MonoBehaviour AirConsole console .. . .. . .. . .. . The only function that the variable console that makes any sense is console.controllerHtml .", "So if you manage to draw lines on a mobile-website you can also use it for an AirConsole controller .", "I just downloaded the UnityPackage to try AirConsole in my project and I want to use the joystick controller example that is provided on GitHub .", "JavaScript files that you want to use for the controller need to be in Assets WebGLTemplates AirConsole together with your controller file .", "This makes it impossible for university students and people at game jams at universities to make games for airconsole .", "How do I choose which one to send over using the Airconsole API", "I am having trouble figuring out the messages sent by controllers built using the AirConsole Controller Generator .", "AirConsole Unity plugin does not seem to work when started with Visual Studio Debugger .", "I m using AirConsole v1.3.0.b which was still the most recent version when I posted this .", "Note that this controller wont be working - it s just to try if the page that AirConsole loads internally works .", "If this also works you probably have javascript errors before the AirConsole constructor is called .", "Do you have any ideas as to why AirConsole on my PC is getting the 192.168.56 IP address", "I m trying to compile my AirConsole project in Monodevelop so I can debug it .", "We ve created a small demo of Unity3D with AirConsole-plugin which is working in Unity debugger .", "There s the Unity Guide http : developers.airconsole.com guides unity which provides instructions on how to get started with Unity AirConsole specifically .", "I was looking at the airconsole javascript file and found a piece of code and I don t know what it describe .", "There is a controller file in the WebGLTemplates folder but that one updates automatically to mirror the one linked in the AirConsole object in your scene .", "I use the AirConsole Unity to get profile pictures of players inside the game with : .. . .. . This works great with the editor .", "Thanks for the info : - Yes I hope to reach the developers this is why I tagged it with AirConsole .", "When we launch our game in the AirConsole the RAM usage jumps really high and we get an Out of memory error .", "I created a joystick using the AirConsole controller generator and it says that it sends this to the screen : .. . .. . Now I don t know how to parse this in Unity .", "If you are completely unfamiliar with the Unity Game Engine I recommend starting with generic Unity tutorials and then moving to AirConsole when you have the basics figured out .", "What I Know : When the scene switched it immediately throws the GAME 1 s Airconsole object into GAME 2 and keeps using GAME 1 s controller.html file .", "The site currently doesn t make it entirely clear though the documentation is super clean and the api looks great if we as developers can self host the airconsole framework for our own games", "Note to Unity Developers : You need the latest airconsole unity plugin from www.github.com released on 2016-02-01 and you should select Normal as the browser start mode .", "The AirConsole API abstracts all of this for developers - WebRTC messages behave exactly like WebSocket messages or long-polling messages and we apply the same restrictions for consistency e.g .", "You could of course still open your own UDP WebRTC connections inside your game between the phones and the screen and use the AirConsole messaging API to do the handshake .", "I created a simple controller with a dpad two middle buttons labeled Start and Back and two vertical buttons Jump and Attack and included the airconsole-controls folder in the directory .", "In a presentation about Airconsole available here https : docs.google.com presentation d 1t40cmrv7NT45rRwsJUXqZC2uOmZBS0Cbs9jG1J Jdzc edit it s mentioned you can cheat by backtracking based on a timestamp from the client .", "It works perfectly for the debug play mode but in the release build the AirConsole somehow does not know the deviceID which sent the message this means we get -1 from method ConvertDeviceIdToPlayerNumber .", "Looking at the Basic Example scene and script which comes with the plugin will also help you figure out how the AirConsole functions can and should be used within Unity .", "The description it gives in public Object controllerHtml .. . .. . Any tips or hints would be greatly appreciated and or a reference page to the options I have for using on the AirConsole variable console would be greatly appreciated .", "When we launch the game in the AirConsole the RAM gets heavily loaded 2 GB or so and after the game loads the RAM usage becomes much lower about 1 GB .", "I want to develop a game by using Unity gaming engine with airconsole plugin but till now i am not able to find any good tutorial to start working on it please if some one knows a good tutorial please let me know .", "Trying the Airconsole Pong example from this link : http : www.airconsole.com simulator http : games.airconsole.com pong .. . .. . by pressing the Open Simulator Demo button on this page : http : developers.airconsole.com guides simulator .. . .. . Unfortunately it doesn t centre the screen properly on my MacBook Pro running Safari 8.0.8 on OSX Yosemite 10.10.5 and won t scroll which means the 2 default controllers that are added can t be closed so I can add my own smartphones .", "I can run it on my PC using Firefox 47.0 on Windows 7 which suggests problem is browser computer specific .", "During development log the deviceID and the playerID and the current active deviceIDs .", "If that does not exist either the Firefox specific function and if that won t work the Microsoft Internet Explorer specific function .", "on events usage by entities DOM JS plugins - identify main hogs .. . fine data : GC statistics object links - locate specific culprits", "These threads describe the same problem and solutions : stackoverflow.com questions 12687315 http : stackoverflow.com questions 12687315 datamember-could-not-be-found stackoverflow.com questions 7401795 namespace-for-datacontract http : stackoverflow.com questions 7401795 namespace-for-datacontract", "So if the general vibrate function does not exist it will try the WebKit-specific vibration function for Safari and other WebKit-based browsers .", "Of course you can directly link-to your game with : http : www.airconsole.com http : url-to-your-game", "Cool thanks @Zeus .", "Looks like an awesome tool .", "Do we retain all rights to our games that are uploaded", "Exactly you keep all the rights to your games : I will soon rework the documentation and add a bunch of more clarity to it .", "Cool .", "Goodluck with the project it seems very exciting", "I m having problems getting the Unity scene to display in the developers console when I launch it from the Unity editor .", "I m running the basic scene provided with the Unity plugin .", "Here s what I see on the developer console .. . .. .", "enter image description here http : i.stack.imgur.com OgcEo.png .. . .. . If I build the project and launch as Open Exported Port I am not having the issue .", "Any help would be appreciated .", "Running OSX 10.10.3 Chrome 45.0.2454.85 and Unity 5.2.0f3", "When running your game from the editor the browser window serves mainly to connect your controllers .", "The scene is displayed in the game window of the Unity Editor .", "Edit : To avoid this confusion in the future we ve updated the plugin to tell you that the scene can be viewed in the editor .", "This is based off of the Air Console demo from github .", "I compiled the basic example for web no alterations and set it up locally and ran with the Simlulator syntax from teh website .", "The controllers load properly but the screen does not .", "It has several errors when ran : .. . .. . and also : .. . .. . .. . exception thrown : ReferenceError : onGameReady is not defined ReferenceError : onGameReady is not defined .. . at eval eval at JS Eval EvalJS http : MACHINENAME unity Release build-webgl.js : 1 : 156420 anonymous : 1 : 1 .. . at eval native .. . at JS Eval EvalJS http : MACHINENAME unity Release build-webgl.js : 1 : 156420 .. . at Array.WRb http : MACHINENAME unity Release build-webgl.js : 16 : 784695 .. . at YKk http : MACHINENAME unity Release build-webgl.js : 7 : 594173 .. . at WKk http : MACHINENAME unity Release build-webgl.js : 7 : 593680 .. . at Array.Rpf http : MACHINENAME unity Release build-webgl.js : 9 : 667389 .. . at Array.Lwm http : MACHINENAME unity Release build-webgl.js : 8 : 87554 .. . at Object.zIn as dynCall iiii http : MACHINENAME unity Release build-webgl.js : 29 : 39143 .. . at invoke iiii http : MACHINENAME unity Release build-webgl.js : 1 : 356104 Module.printErr @ screen.html : 34 .. . UnityConfig.js : 76 Invoking error handler due to .. . Uncaught ReferenceError : onGameReady is not defined", "I d guess that some security settings of your browser block communication which prevents loading and leads to those errors", "It looks like I had the default webgl template selected which was causing the problem .", "After it was switched to the Air Console one it works .", "I did need to clear my cache when reloading it though .", "The OnGameReady method is defined in the WebGL Templates folder included in the Unity Plugin .", "Make sure to import and keep the entire WebGL Templates folder in your project .", "I ve created a new game directory on my webhost and created and copy pasted to the controller and screen html files as instructed at http : developers.airconsole.com getting started but the game just comes up as a blank screen when I test it at http : www.airconsole.com simulator myurl game tried both with and without simulator Any suggestions as to what might be causing the issue", "I can access both files in my web browser and I ve verified that the javascript is visible in the source of both so it doesn t seem to be a permissions issue or problem with the content of the file .", "Thanks very much in advance", "It seems it s an issue with the version of airconsole.js that s included in the example .", "Changing 1.2.1 to 1.1 in the first script in both files fixes the problem", "The getting started guide has been updated including the examples since you ve posted this question ." ] }
{ "confidence": [ 122.60771179199219, 99.61865997314453, 98.28740692138672, 96.38985443115234, 96.2115249633789, 90.59733581542969, 89.86992645263672, 88.73905944824219, 88.39045715332031, 86.73423767089844, 85.94361877441406, 83.93791961669922, 81.14573669433594, 77.17158508300781, 76.88445281982422, 75.90375518798828, 75.18467712402344, 75.18467712402344, 75.18467712402344, 73.40838623046875 ], "content": [ "Question : Immediately upon importing I am given multiple errors for unity . Everything imports cleanly but I have 32 errors all very similar saying . Assets AirConsole plugins Newtonsoft.Json Converters XmlNodeConverter.cs 31 18 : error CS0234 : The type or namespace name Linq does not exist in the namespace System.Xml . Are you missing an assembly reference .. . Assets AirConsole plugins Newtonsoft.Json Converters XmlNodeConverter.cs 603 22 : error CS0246 : The type or namespace name XObject could not be found . Are you missing a using directive or an assembly reference .. . Assets AirConsole plugins Newtonsoft.Json JsonConvert.cs 34 18 : error CS0234 : The type or namespace name Linq does not exist in the namespace System.Xml . Are you missing an assembly reference Those just being a few and I was wondering if I am missing anything or how to fix this .. . Answer : I believe this is some sort of import error . Last time I ve encountered it deleting my Library folder thus forcing a reimport resolved the issue . Edit : Another source of the issue could be that your project is not set to HTML5 WebGL .", "Question : I ve set up a project in Unity using AirConsole . I was able to put together a simple game pretty quickly but I ve since run into issues . I was initially developing on a Mac and then switched to my work computer which is a Dell PC . On my Mac I was able to test my game using the simulator in Unity . Since I switched to my PC I have been unable to connect from my phone to the webserver in the debug simulator . The phone gets through the Enter the Code screen the developer console makes a connection noise but then my phone just sits at the Loading.. . screen . I ve reverted back to the Pong sample project to confirm that my code is not the problem . I ve tested the phone using both Chrome and the AirConsole app . I ve tried temporarily disabling my firewall in case my firewall was blocking the ports . If I run the simulator in Browser Start Mode Virtual Controllers the controllers on my PC load fine but I m still not able to connect with my phone . I m using AirConsole v1.3.0.b which was still the most recent version when I posted this . .. . Answer : Steps to resolve this issue : .. . .. . 1 . Start the game using the simulator . 2 . Make sure the virtual controllers of the simulator load your controller . 3 . If that is the case try to load the controller.html directly in the phones browser . Assuming your run your game on in the simulator using http : www.airconsole.com simulator http : 192.168.0.2 : 7834 then take the part behind the and append controller.html . In this example try to load : http : 192.168.0.2 : 7834 controller.html on your smartphone . Note that this controller wont be working - it s just to try if the page that AirConsole loads internally works . If this does not work you are either not in the same network or you network has client isolation activated this needs to be deactivated . To resolve this check : Using Airconsole on a standard University Corporate network for dev http : stackoverflow.com questions 35121564 using-airconsole-on-a-standard-university-corporate-network-for-dev .. . 4 . If this also works you probably have javascript errors before the AirConsole constructor is called . Use chrome to remotely debug the phone browser : https : developers.google.com web tools chrome-devtools debug remote-debugging remote-debugging hl en Comment : I got stuck at 3 . I went back to testing on my Mac . I noticed on my mac the IP address in the after the in the airconsole.com simulator url is a 10.0.0.x IP address which lines up with the IP that is configured on my Mac . On my PC the IP after the is a 192.168.56.x which does not line up with the IP in IP config on my PC . I m still able to run the simulator on my network with my Mac so issues with network configuration seem unlikely . Do you have any ideas as to why AirConsole on my PC is getting the 192.168.56 IP address Comment : Check out : stackoverflow.com questions 35121564 http : stackoverflow.com questions 35121564 using-airconsole-on-a-standard-university-corporate-network-for-dev Comment : The newest unity plugin released on 2015-02-01 on github.com AirConsole airconsole-unity-plugin https : github.com AirConsole airconsole-unity-plugin also binds all IP addresses which should also help to resolve this issue .", "Question : Issue : I want to changed the controller.html to let says myNewController.html when I switch to a different scene.unity file . Example : I have 2 mini games in the same project . I m playing GAME 1 with controller.html and I have completed the goal for GAME 1 and its switches me to GAME 2 which will require me to use a different controller layout hence myNewController.html . What I Know : When the scene switched it immediately throws the GAME 1 s Airconsole object into GAME 2 and keeps using GAME 1 s controller.html file . Snippets of Code : This script is attached the AirConsole Object that I created .. . .. . public class What Level : MonoBehaviour AirConsole console .. . .. . .. . .. . The only function that the variable console that makes any sense is console.controllerHtml . The description it gives in public Object controllerHtml .. . .. . Any tips or hints would be greatly appreciated and or a reference page to the options I have for using on the AirConsole variable console would be greatly appreciated . Thanks .. . Answer : Concerning changing the controller layout . Instead of changing the file just change the displayed content in the controller.html .. . .. . E.g . you can make a container element for each gamepad you want to show . And then broadcast a message to all controllers when they should change the visibility of the containers . For example in your controller.html : .. . .. . In javascript also controller.html .. . .. . Now you just need to let your controllers know when to show-hide which container . You can do this by listening to onDeviceStateChange events . Comment : I m still pretty new to Airconsole so thanks for the insightful response . I understand up to the very last part you have : Now you just need to let your controllers know when to show-hide which container . You can do this by onMessage or listening to onDeviceStateChange events Are you referring to the onMessage in the controller.html file or the logic c-sharp file like in the pong game github.com AirConsole airconsole-unity-plugin blob master https : github.com AirConsole airconsole-unity-plugin blob master Assets AirConsole examples pong ExamplePongLogic.cs . Could I not make let says the start button toggle this or would this cause problems Comment : Well basically both . Your game unity code needs to tell the controller when to display which container-div . This means you can for example use .setCustomDeviceState container : gamepad-1 in unity and then in your controller listen with onDeviceStateChange and check the custom data . I am currently building s.t . for handling views not 100 done yet : github.com AirConsole airconsole-view-manager but maybe it helps you if you look at the code : Comment : Thanks I ll surely study it to thoroughly understand what is happening between the communication of Unity and the controller.html . We ll see how I do in a few days :", "Question : I want to develop a game by using Unity gaming engine with airconsole plugin but till now i am not able to find any good tutorial to start working on it please if some one knows a good tutorial please let me know . It will be agreat great help .. . Answer : There s the Unity Guide http : developers.airconsole.com guides unity which provides instructions on how to get started with Unity AirConsole specifically . Looking at the Basic Example scene and script which comes with the plugin will also help you figure out how the AirConsole functions can and should be used within Unity . If you are completely unfamiliar with the Unity Game Engine I recommend starting with generic Unity tutorials and then moving to AirConsole when you have the basics figured out . Comment : Thanks it helps", "Question : Airconsole says they use WebRTC if available . IIRC WebRTC provides both TCP and UDP options to send data . How do I choose which one to send over using the Airconsole API I d expect to be able to send things like controller inputs over UDP but things like controller state changes switch to the name input UI over TCP . Also can I detect when I have a direct WebRTC Game to Phone connection In that case it seems like I should be able to ignore the 10 messages per second limit . .. . Answer : AirConsole is always using TCP WebRTC data channels . UDP can not be specified in our API . The WebRTC mechanism is meant as an latency improvement that is nice to have but is not guaranteed . The AirConsole API abstracts all of this for developers - WebRTC messages behave exactly like WebSocket messages or long-polling messages and we apply the same restrictions for consistency e.g . the rate limit . AirConsole messages are always guaranteed to arrive . You could of course still open your own UDP WebRTC connections inside your game between the phones and the screen and use the AirConsole messaging API to do the handshake . We don t recommend this because iOS does not support WebRTC as of today and therefor the gaming experience would suffer a lot on iPhones and iPods . Comment : Thanks . I understand that iOS doesn t support WebRTC as of 2 2015 . I m designing games with asymmetric controls . People that can get fast updates play different roles than people that can t so being able to tell which controllers go going directly peer to peer and can therefore go much faster would be a big help .", "Question : I just downloaded the UnityPackage to try AirConsole in my project and I want to use the joystick controller example that is provided on GitHub . The problem here is that said joystick controller needs Joystick.js and Unity tries to parse the file as Unity code...or at least that s what I think it s trying to do Errors like these pop-up . http : i.stack.imgur.com EBDLr.png .. . .. . Any clue how to get rid of these unnecesary compilation errors Comment : dont post code as images .. . Answer : JavaScript files that you want to use for the controller need to be in Assets WebGLTemplates AirConsole together with your controller file .", "Question : Whenever I boot up AirConsole either in Unity3D the simulator or a normal WebGL build in AirConsole I can never connect my phone . It always shows the black loading screen but never actually loads while the simulated phones always work . It doesn t work both when I am connected to my home network and when I am not . How could I fix this I am using Unity 5.3.5 and the latest AirConsole plugin . Thanks Mike S . .. . Answer : From http : developers.airconsole.com help .. . .. . Make sure your controller.html is accessible from your phone . Let s assume you are running your local web server on http : 192.168.0.2 : 8080 .. . .. . Try to access http : 192.168.0.2 : 8080 controller.html using a normal web browser on the device that doesn t work . It should display the controller html . If you can t access http : 192.168.0.2 : 8080 controller.html from your phone but from your computer make sure you are in the same network and that your router does not have Client Isolation activated . If you are testing with real smartphones make sure you do not use http : localhost or http : 127.0.0.1 because localhost is not your computer on the phone but the phone itself", "Question : I tried to make an airconsole game at my university . Unfortunately like nearly all universities devices are not able to see each other on the network . That means I can t serve pages from my laptop to my phone . So the standard .. . .. . Does NOT work . This makes it impossible for university students and people at game jams at universities to make games for airconsole . I even tried setting up a remote-server at digital-ocean uploaded my code there and then using .. . .. . Even that didn t work . Since I was on a deadline Global Game Jam 2016 eventually I just gave up . Is there a workaround or is making games for airconsole on a typical university network just impossible .. . Answer : You can use tools like https : ngrok.com to make your localhost public even if there is client isolation . Let s say you are running your game on http : 192.168.0.36 : 7842 and http : 192.168.0.36 : 7842 controller.html is not accessible from a your smartphone . Then run the following command : .. . .. . This will output you something like .. . .. . You can see that http : 8941ec1a.ngrok.io now forwards to http : 192.168.0.36 : 7842 .. . .. . Now start your browser on : http : www.airconsole.com http : 8941ec1a.ngrok.io and you should be able to connect your smartphone . Note to Unity Developers : You need the latest airconsole unity plugin from www.github.com released on 2016-02-01 and you should select Normal as the browser start mode .", "Question : I use the AirConsole Unity to get profile pictures of players inside the game with : .. . .. . This works great with the editor . However in a production build WebGL an exception is thrown because the server lacks a crossdomain.xml file . This causes my WWW request to be blocked by the security system . More info can be found in the Unity documentation : http : docs.unity3d.com Manual SecuritySandbox.html .. . .. . Or maybe I am missing something Thanks David Comment : Do you control the server where the images are stored No Who does do they provide an API Comment : Hey Draco no it is managed by AirConsole team . Comment : Ah I see . AirConsole is something I hadn t heard about before . I wonder if something needs to change on their end . It might be worth contacting them about it . As the way crossdomain policy works is that the remote domain--in this case AirConsole.com--needs to supply the xml file on their server root the application needs to request it prior to making the request for any other asset . If that file doesn t exist is incorrectly configured i.e . does not include the domain the request is made from or the request for it is not made you will get the error you are seeing . Comment : Thanks for the info : - Yes I hope to reach the developers this is why I tagged it with AirConsole . I think they indeed have to put the file on their side so that my app is able to get the picture . .. . Answer : Thanks for the report . We ve added access-control-allow-origin : headers to the image resource which should allow you to load the images inside Unity now . crossdomain.xml is outdated from unity-web-player .. . .. . Ping this thread if it doesn t work for you . Cheers -Andrin Comment : Thanks for the quick fix . I tried the test version on AirConsole and it works great now .", "Question : The site currently doesn t make it entirely clear though the documentation is super clean and the api looks great if we as developers can self host the airconsole framework for our own games .. . Answer : AirConsole is providing the API Service but not the possibility to host the framework by yourself . Of course you can directly link-to your game with : http : www.airconsole.com http : url-to-your-game Comment : Cool thanks @Zeus . Looks like an awesome tool . Do we retain all rights to our games that are uploaded Comment : Exactly you keep all the rights to your games : I will soon rework the documentation and add a bunch of more clarity to it . Comment : Cool . Goodluck with the project it seems very exciting", "Question : The background-color works fine but I can t get the background-image to work . It just shows the background colour . The picture is in the same folder as the controller file . I m using Unity . Picture of the phone http : i.stack.imgur.com dCQmc.png . Thank you controller.html Comment : Are you sure the image file name is correct You could add a div and style that with a background instead of the body . .. . Answer : Assets for the controller need to be in Assets WebGLTemplates AirConsole . I assume your controller the file you re working on is not in that folder but somewhere else in the project . There is a controller file in the WebGLTemplates folder but that one updates automatically to mirror the one linked in the AirConsole object in your scene . Comment : Thank you It works", "Question : With Airconsole there s a noticeable lag between pressing a button and seeing the result on-screen . In a presentation about Airconsole available here https : docs.google.com presentation d 1t40cmrv7NT45rRwsJUXqZC2uOmZBS0Cbs9jG1J Jdzc edit it s mentioned you can cheat by backtracking based on a timestamp from the client . Is there a simple built-in way to do this with Unity I can see how you could do it by having the server and client agree on a mutual timestamp but that seems tricky and I was wondering there s a built-in way to do this . .. . Answer : It s rather simple to do it using the getServerTime function . On the controller you send the timestamp at which the input happens with the message . On the screen you compare said timestamp with the current GetServerTime and the difference is the latency . Controller : .. . .. . Screen :", "Question : I am having trouble figuring out the messages sent by controllers built using the AirConsole Controller Generator . I created a simple controller with a dpad two middle buttons labeled Start and Back and two vertical buttons Jump and Attack and included the airconsole-controls folder in the directory . I am able to test my game using the simulator and my controller is displayed and the virtual buttons are clickable but the messages aren t being sent or received by the game correctly . I did use the demo controller for the pong game and was able to correctly use the up and down buttons within my game so the issue is with the controller I generated or my understanding of the button messages that are sent from it . Thanks for any help .. . Answer : The generator always sends an object with a automatic- or self-defined key depending on the element : .. . .. . To use the data which was send by - for example a dpad - you can do s.t . like this : .. . .. . Otherwise try to write a console.log data within the onMessage method and see if anything is received . Let me know if this helped you", "Question : We ve created a small demo of Unity3D with AirConsole-plugin which is working in Unity debugger . If I press play the browser opens sometimes it works sometimes it doesn t . If it doesn t one can restart Unity and then it works . If we create a release or a developer build it does no longer work . It will load the image correctly but the controllers virtual+phone stay loading most of the time . Sometimes they reach the first correct HTML page but then the message they send doesn t seem to arrive on the screen-side . When I click the Open Exported Port after the build it doesn t work too except for once . One error message I got once : Uncaught TypeError : Cannot read property postQueue of undefined .. . .. . This error message appears always : pre-main prep time : 176 ms UnityLoader.js : 1 Module.printErr @ UnityLoader.js : 1 .. . .. . Do you know what these error messages mean Comment : The Uncaught TypeError message should indicate a line of code in your controller file which might help you find the issue . Apart from that : are you sure you ve imported everything correctly Comment : You mean the import of files into Unity I ll have a look . Details : VM192 UnityLoader.js : 3386 pre-main prep time : 94 msModule.printErr @ VM192 UnityLoader.js : 3386doRun @ blob : http 3A 192.168.1.3 3A7842 a1c4b233-2afc-4aaa-ba85-b9433253e5b5 : 3646758 an onymous function @ blob : http 3A 192.168.1.3 3A7842 a1c4b233-2afc-4aaa-ba85-b9433253e5b5 : 3646770 VM192 UnityLoader.js : 3382PlayerConnection initialized from debug 0 Comment : What does this error mean UnityLoader.js : 1 pre-main prep time : 603 msModule.printErr @ UnityLoader.js : 1doRun @ blob : http 3A airconsole.septem.ch 056d3d86-5c6b-4b2b-812d-c299b85fbbd5 : 36 anony mous function @ blob : http 3A airconsole.septem.ch 056d3d86-5c6b-4b2b-812d-c299b85fbbd5 : 36 UnityLoader.js : 1 Initialize engine version : 5.3.3f1 910d71450a97 .. . Answer : I ve tried a lot but this seems to solve the problem : Be sure to attach the event-listeners in the Awake method as they do in basic example application . My problem was that my AirConsoleService was static and not a MonoBehaviour to be sure that there is only one instance of AirConsoleService . It works perfectly for the debug play mode but in the release build the AirConsole somehow does not know the deviceID which sent the message this means we get -1 from method ConvertDeviceIdToPlayerNumber . And this explains why the controllers don t get any signal from the screen . My solution : I ve attached it as a component to the AirConsole object . Further notes : .. . .. . Anti-Virus may block content . Your PC server has to be fast . During development log the deviceID and the playerID and the current active deviceIDs . Often restart Unity or the integrated webserver of the plugin", "Question : When we launch our game in the AirConsole the RAM usage jumps really high and we get an Out of memory error . The only way to actually test the game is to upload a Development build with exceptions enabled and the WebGL Memory Size set to 2047 . That s the only scenario when the game doesn t crash . We used Chrome to monitor the RAM . When we launch the game in the AirConsole the RAM gets heavily loaded 2 GB or so and after the game loads the RAM usage becomes much lower about 1 GB . I think it is directly connected to the huge JS file that we get when we make a WebGL build but that s only a guess . How can we diagnose the problem and lower the RAM usage Comment : I shifted the question s focus to what are the tools for diagnosing memory because how to reduce memory consumption is too broad for SO - it cannot be answered in anything less than a book and for your specific case an answer would require your full code . Comment : You may instead rather wish to ask if there s a higher level tool specifically for WebGL or whatnot . .. . Answer : Well you need to profile memory usage by the page with the tools a browser provides - just like you would do for a desktop application . JavaScript Memory Profiling - Google Chrome https : developer.chrome.com devtools docs javascript-memory-profiling .. . MemoryBug Firefox extension https : getfirebug.com wiki index.php Memorybug .. . Diagnosing memory problems in your webpages Windows - MSDN https : msdn.microsoft.com en-us library dn255003 28v vs.85 29.aspx .. . .. . They vary in sophistication but are basically the same as in every other garbage-collected environment . They can be divided into two basic types : .. . .. . rough data : general dynamics snapshots incl . on events usage by entities DOM JS plugins - identify main hogs .. . fine data : GC statistics object links - locate specific culprits", "Question : I want to develop a game by using Unity gaming engine with airconsole plugin but till now i am not able to find any good tutorial to start working on it please if some one knows a good tutorial please let me know . It will be agreat great help .. . Answer : It s on their website : http : developers.airconsole.com getting started .. . .. . A simple google-search would ve given you the same result Comment : I am searching for a step by step guide . I am a newbie Comment : Thanks by the way", "Question : Specifically is it possible to draw a line on your phone and pass that shape to the screen Or can I only have buttons on the controller . Thanks .. . Answer : Your controller is a mobile-website . That means you can have everything a mobile-website can also do such as buttons touchevent swipe gestures functionality touchmove etc see e.g . hammer.js use device motions camera .. . So if you manage to draw lines on a mobile-website you can also use it for an AirConsole controller . Just keep in mind the latency : drawing lines in realtime on your phone and displaying it on the screen may have some delay . Also sending messages on a touchmove event is a limitation .", "Question : I just downloaded the UnityPackage to try AirConsole in my project and I want to use the joystick controller example that is provided on GitHub . The problem here is that said joystick controller needs Joystick.js and Unity tries to parse the file as Unity code...or at least that s what I think it s trying to do Errors like these pop-up . http : i.stack.imgur.com EBDLr.png .. . .. . Any clue how to get rid of these unnecesary compilation errors Comment : dont post code as images .. . Answer : I haven t tested it but you could put the Joystick.js into a script-tag on your controller.html then Unity won t compile it .", "Question : I created a joystick using the AirConsole controller generator and it says that it sends this to the screen : .. . .. . Now I don t know how to parse this in Unity . Here s what I tried : .. . .. . When I try to cast pressed as a bool it gives me ArgumentNullException : Argument cannot be null . I also don t know what syntax I m supposed to use to get the joystick direction . How can I parse the information into C Unity .. . Answer : I am not familiar with C or Unity at all but you have to do s.t . like : Comment : It works thanks", "Question : null .. . Answer : Trying the Airconsole Pong example from this link : http : www.airconsole.com simulator http : games.airconsole.com pong .. . .. . by pressing the Open Simulator Demo button on this page : http : developers.airconsole.com guides simulator .. . .. . Unfortunately it doesn t centre the screen properly on my MacBook Pro running Safari 8.0.8 on OSX Yosemite 10.10.5 and won t scroll which means the 2 default controllers that are added can t be closed so I can add my own smartphones . I can run it on my PC using Firefox 47.0 on Windows 7 which suggests problem is browser computer specific . Any idea of how to fix Here s a screenshot of the problem : screenshot http : i.stack.imgur.com VmjIh.png Comment : Nevermind - updating Safari to 9.1.1 seems to have fixed it" ] }
[ "yes-answer-long", "yes-answer-short" ]
api
UNK_RELATION
rapidsvn@svn@59
rapidsvn -- rapidsvn is a graphical client for subversion @placeholder an open-source version-control system .
{ "confidence": [ 56.04373550415039, 52.04651641845703, 52.031524658203125, 51.790428161621094, 48.68644332885742, 46.72167205810547, 44.889305114746094, 44.47517395019531, 44.193695068359375, 43.67711639404297, 43.67711639404297, 43.099998474121094, 42.762020111083984, 42.762020111083984, 41.575782775878906, 41.165565490722656, 41.11272430419922, 41.00401306152344, 41.00401306152344, 39.215911865234375, 39.215911865234375, 39.215911865234375, 39.215911865234375, 38.90052795410156, 38.0296745300293, 37.59798812866211, 36.60793685913086, 35.977149963378906, 35.301239013671875, 34.43932342529297, 34.43932342529297, 34.43932342529297, 34.43932342529297, 34.43932342529297, 34.34053039550781, 33.94279098510742, 33.472373962402344, 33.30405044555664, 33.25308609008789, 33.25308609008789, 31.831348419189453, 31.515945434570312, 31.515945434570312, 30.599227905273438, 30.029766082763672, 27.513751983642578, 26.799514770507812, 25.97854995727539, 24.637893676757812, 23.023540496826172, 22.40558624267578, 22.239601135253906, 22.07880401611328, 21.290790557861328, 20.72534942626953, 19.654264450073242, 19.411542892456055, 19.265262603759766, 19.140155792236328, 18.549884796142578, 18.010494232177734, 17.843524932861328, 17.75101089477539, 17.75101089477539, 17.679866790771484, 17.630157470703125, 17.21896743774414, 17.001049041748047, 16.972496032714844, 16.972496032714844, 16.825016021728516, 16.459075927734375, 16.35624122619629, 16.29941177368164, 16.20298957824707, 16.20298957824707, 16.20298957824707, 16.20298957824707, 16.20298957824707, 15.889016151428223, 15.889016151428223, 15.845542907714844, 15.786258697509766, 15.75832748413086, 15.701432228088379, 15.638778686523438, 15.50703239440918, 15.50703239440918, 15.201410293579102, 15.180976867675781, 15.113175392150879, 15.113175392150879, 14.900449752807617, 14.75617504119873, 14.709308624267578, 14.709308624267578, 14.521434783935547, 14.380976676940918, 14.364521026611328, 14.332130432128906 ], "content": [ "http : solitarygeek.com linux subversion-and-rapidsvn", "Is there a binary version of RapidSVN available", "RapidSVN was not to be .", "Now rapidSVN is again working .", "I think once you open rapidsvn it segfaults .", "What Version of NetBeans and RapidSvn do you use", "Development stalled https : github.com RapidSVN RapidSVN last change 2013-May .. . .. . eclipse with subclipse http : subclipse.tigris.org : Open Perspective - SVN Repository Exploring .", "Please try an alternate client too - maybe it s a problem of rapidsvn .", "Am I using RapidSVN wrong", "I have been using RapidSVN for quite sometime now .", "Since then i m not been able to access the directories through RapidSVN .", "When i was updating some of the directories my ubuntu system hanged and i had to restart the rapidSVN after it was back to normal .", "The settings of RapidSVN is apparently stored in the home-directory .", "I am having same kind of problem in RapidSVN .", "Any difference if you ran RapidSVN as sudo", "So I was considering using the portable version of RapidSVN instead on a USB device .", "I ve posted some steps you can check here : Netbeans RapidSVN and respositories http : stackoverflow.com questions 14431304 netbeans-rapidsvn-and-respositories 14446718 14446718 .", "I was using RapidSVN for the first time and played around with the features .", "I tried reinstalling rapidsvn removed all .svn files it didnt work .", "But both in TortoiseSVN and in RapidSVN they can see the files as they are in the server not on the local directory .", "Some clients like TortoiseSVN cache some of these but not sure about RapidSVN .", "In rapidsvn go to Menu - Bookmarks - Add Existing Working Copy .", "For some reason each time I reach a bookmark on RapidSVN the app crashes .", "Then i was able to see files in RapidSVN and i tried update but it showed me error saying try cleanup .", "NetBeans 7 supports SVN 1.7 while RapidSVN isn t up to-date .", "Now with Ubuntu and RapidSVN a GUI svn-client I checked out my repository to the NetBeansProjects Directory .", "Next if rapidsvn is not working out for you try svn-workbench .", "Then i ran cleanup through RapidSVN and it was again taking too much time and i switched off my wifi and cleanup was complete .", "My svn-client is rapidsvn and ide is netbeans.suddenly got an error when i am going to commit my updates.Give 777 permission and change owner of project .", "When a user is using TortoiseSVN and RapidSVN he sees the files as they are on the server and thus has the ability to delete them .", "I tried qsvn and rapidsvn but couldn t figure out how to make them do the job .", "In rapidsvn I didn t find a way to see commit messages + changed files with diffs on the same screen .", "To purge the config file of the app is as easy as running this command : .. . .. . This command will reset all of the configurations that you have made for RapidSVN .", "Using RapidSVN I performed recursive add-on my repo and then in commit dialog I see the following option : .. . .. .", "I ve heard RapidSVN is using Subversion 1.5 libraries so I would need to downgrade to Tortoise 1.5 I have 1.9.3 at the moment to let them both use the same repository.. . .. . .. . Is it possible to migrate from tortoiseSVN to RapidSVN including past revisions", "I have been using RapidSVN on a Linux machine for the past few years - it has become an excellent tool for managing my source .", "http : stackoverflow.com questions 747075 how-to-git-svn-clone-the-last-n-revisions-from-a-subversion-repository .. . .. . others : .. . .. . rapidsvn http : www.rapidsvn.org : Add the existing repo as a bookmark .", "I went as far as uninstalling RapidSVN using Revo Uninstaller Pro and deep cleaning registry and junk files using Advanced SystemCare .", "I found that RapidSVN will run on a Mac as it was developed using wxWidgets cross-platform windowing .", "I got this error : .. . .. . When i m trying to checkout repos : .. . .. . or .. . .. . I used rapidSVN and I can not checkout too", "I have installed RapidSVN but very frequently run into issues with folders getting locked .", "In RapidSVN we can click on a file right-click choose Log.. . to get a history of file changes but this involves a connection to the server to download the info .", "To answer the second part of my own question both qsvn and rapidsvn can be used to view the logs when I ve already checked out a working copy .", "But the idea is similiar to almost all version-control system .", "To remove them you ll need to delete the working copy delete the .svn directory from your home-directory assuming you don t already have a legitimate use for that and then delete the bookmark from within RapidSVN .", "Than choose Subversion and CLI under Preferred client .", "What version of Subversion is running on the server", "I m using RapidSVN as svn-client and to set the svn : keywords I have to go to each file right-click Properties New Name svn : keywords Value Id OK .. . .. . This is not a problem yet because the project doesn t have a lot of files but I can t get this to work properly .", "I just installed subversion I used the subversion import command to copy a project we have been working before subversion was installed .", "This is not possible by Subversion commands .", "You need to read the Subversion manual .", "I just want to clarify since I am a new to subversion .", "I tried : 1 TortoiseSVN a shell-integrated plugin 2 RapidSVN a GUI 3 Cygwin by using the commandline .. . .. . I have tried other repositories so it is not that one in particular Note that the repository is browsable by simply typing the address in Mozilla Firefox .", "Unlike distributed VCS like git and mercurial in subversion we do not get a clone of the repository when we do a checkout - just a particular version .", "I am new to subversion I have imported an web project that we have been working on .", "I suggest you file a bug report and compile a newer version from source .", "Implemented on top of a graphical file browser Nautilus GNOME Thunar Xfce not available as a stand-alone app .", "Unlike other RCS and possibly CVS Subversion doesn t automatically expand Keywords .", "http : svn-ref.assembla.com linux-svn-client-reviews.html mentions a couple closed-source commercial SVN clients which I didn t try .", "When you imported the file the original folder is just a source not a working copy .", "See stackoverflow.com questions 747075 http : stackoverflow.com questions 747075 how-to-git-svn-clone-the-last-n-revisions-from-a-subversion-repository .", "Update your proxy informations in global section of appdata Subversion servers file .", "As long as your code is in Subversion you can get all of this and more without doing Keyword expansion .", "Check these settings in NB : Tools - Options - Miscellaneous - Versioning - Subversion : Preffered Client What do you have here", "Your users could always use a different client .", "Even without the Ruby on Rails integration you should be able to open the Compare with Latest Repository Version menu see the two versions side-by-side and easily select the changes to keep or undo .", "There s a very clearly labeled section on setting up access-control .", "Trying to prevent anything on the client-side is as always inherently insecure .", "The initial checkout takes a REALLY long time for projects with long history unless you make a shallow clone : How to git-svn clone the last n revisions from a Subversion repository", "I am assuming because they both authorizing from the common passwd file located in etc subversion .. . .. . I googled my problem and found a solution by editing 3 files located in home svn conf .", "i have set and apply a local proxy for system wide .", "Is there a binary version of wxWidgets available", "Perhaps all SVN traffic is blocked also it is my understanding that version-control traffic uses the port 3690 which may be blocked .", "I would recommend to add the most recent version to trunk and branch this .", "Observing Error : Error while updating filelist Unknown error .", "What should i do now to make it work again", "Issue is resolved .", "First i tried cleanup through command-line and after about 20 minutes i had to abort it since it was taking too much time .", ": D", "I want to study the changes made to Google Chrome s source code which is managed by SVN .", "if you like to browse the source from a svn-repo and you like gitk why not using gitk", "I have successfully installed svn on my PC using this tutorial without any problem https : help.ubuntu.com community Subversion I am using Access via WebDAV protocol http : .. . .. . Ok now I have very specific need as it is outside the scope of above tutorial .", "Here are some things you can try : .. . .. . Checkout your with NetBeans Team - Subversion - Checkout .. . Make a commit using NB if this doesn t work make an upddate NB too .. . Do you have rights to write the directory", "If you re looking to use the best available version of wxWidgets under OS X get 2.9.4 or the current svn version and build it using the Xcode version you have already with Cocoa support .", "Why not use the latest version 4.6.x", "For example you probably are using a build-system that creates build-numbers .", "The affected paths are displayed and you can see the current version but I don t see a way to get a diff .", "I have in fact seen that manual - I ve read the whole thing a previous version in fact .", "Some gems such as mongrel or hpricot have native extensions written in C . What this means is that when you install them the .c source code is downloaded and gcc gets run to compile it specifically for your system .", "When I commit a new version to my GoogleCode repository my local files change the Id value but it doesn t happen in the remote GoogleCode repository .. . .. . Just don t worry and forget if on client-side you get expected result : expanded keyword .", "I was attempting to compile RavipSVN because I couldn t find a binary version .", "Another case of you should be using the same version as the developer .", "Some server-side repo-browsers use fair methods for accessing data as svn-client some - not .", "If you have can have SVN-client on every workplace it will be better to have portable repository than portable extremely outdated client", "The IDEs have very similar graphical SVN managers similar to Tortise if you want to work on the cmd line just find a simple 10 minute SVN tutorial and you should be good to go .", "smartSVN also comes with a better graphical user-interface in my opinion though it s a little hard to learn for a beginner that you have working-copies working copy files etc .", "It s still the testing period of the pro-version but the foundation version also seems to offer what I need .", "Apparently both recent versions smartSVN and Tortoise can open the same Repository .", "If you have 10 apps and they each vendor their gems you end up keeping 10 copies of common gems in subversion which makes updating all your sites a whole lot slower .", "When I close and open Netbeans the project that I was just editing from the repository does not appear in the projects panel off to the left ." ] }
{ "confidence": [ 63.92340087890625, 60.77397155761719, 60.618202209472656, 56.59674072265625, 51.77598190307617, 51.68269729614258, 51.46886444091797, 51.266361236572266, 51.233795166015625, 50.11960983276367, 48.35759735107422, 48.08333206176758, 46.85986328125, 46.73762512207031, 44.9578857421875, 44.02918243408203, 43.7413444519043, 43.72660827636719, 42.8235969543457, 42.697059631347656 ], "content": [ "Question : I had a Netbeans project with all the directory structure and so forth . I imported my Netbeans project to an online repository . The above was all done with a windows pc . Now with Ubuntu and RapidSVN a GUI svn-client I checked out my repository to the NetBeansProjects Directory . When I load NetBeans I get a class not found exception saying : .. . .. . Here are the details : .. . .. . So I now can look at all my files and edit them . However whenever I make changes and then test and run my program it appears to always run the version that was loaded to the repository . In the same vein it appears that it does not save any of my changes . When I close and open Netbeans the project that I was just editing from the repository does not appear in the projects panel off to the left . 1 . How can I get Netbeans to keep this as a project and save the changes 2 . Am I using RapidSVN wrong 3 . Am I using my repository wrong Let me know if you have any other suggestions or need any more details . .. . Answer : What Version of NetBeans and RapidSvn do you use What version of Subversion is running on the server NetBeans 7 supports SVN 1.7 while RapidSVN isn t up to-date . After you have made changes do a commit so the current files get uploaded into the SVN . Here are some things you can try : .. . .. . Checkout your with NetBeans Team - Subversion - Checkout .. . Make a commit using NB if this doesn t work make an upddate NB too .. . Do you have rights to write the directory Any difference if you ran RapidSVN as sudo Check these settings in NB : Tools - Options - Miscellaneous - Versioning - Subversion : Preffered Client What do you have here If not set yet : try with SvnKit .. . .. . If all fails have a look at following free alternate clients : .. . .. . SmartSVN http : www.smartsvn.com Linux Win .. . TortoiseSVN http : tortoisesvn.net Win only .. . eSvn http : zoneit.free.fr esvn Linux Win .. . .. . See : NetBeans FAQ - SVN Client http : wiki.netbeans.org FaqSubversionClients", "Question : I want to study the changes made to Google Chrome s source code which is managed by SVN . A web interface can be found at http : src.chromium.org viewvc chrome .. . .. . I d like to know if there s a GUI frontend that allows me to examine the timeline locally . With git I can simply run gitk foo.c . I tried qsvn and rapidsvn but couldn t figure out how to make them do the job . It seems that I have to import the repository in the GUI but I already have the repository checked out . .. . Answer : Unlike distributed VCS like git and mercurial in subversion we do not get a clone of the repository when we do a checkout - just a particular version . In RapidSVN we can click on a file right-click choose Log.. . to get a history of file changes but this involves a connection to the server to download the info . Some clients like TortoiseSVN cache some of these but not sure about RapidSVN .", "Question : I have been using RapidSVN for quite sometime now . When i was updating some of the directories my ubuntu system hanged and i had to restart the rapidSVN after it was back to normal . Since then i m not been able to access the directories through RapidSVN . Observing Error : Error while updating filelist Unknown error . What should i do now to make it work again .. . Answer : Issue is resolved . First i tried cleanup through command-line and after about 20 minutes i had to abort it since it was taking too much time . Then i was able to see files in RapidSVN and i tried update but it showed me error saying try cleanup . Then i ran cleanup through RapidSVN and it was again taking too much time and i switched off my wifi and cleanup was complete . Now rapidSVN is again working . : D", "Question : My svn-client is rapidsvn and ide is netbeans.suddenly got an error when i am going to commit my updates.Give 777 permission and change owner of project . But still i coudn t fix that issue . When i commit the file in netbeans it gives below error .. . .. . Any one can help me .. . Answer : I ve posted some steps you can check here : Netbeans RapidSVN and respositories http : stackoverflow.com questions 14431304 netbeans-rapidsvn-and-respositories 14446718 14446718 . Please try an alternate client too - maybe it s a problem of rapidsvn .", "Question : For some reason each time I reach a bookmark on RapidSVN the app crashes . It doesn t even show me the error . Just closes itself . I ve tried to do a complete removal of the app via Synaptic package manager and then re-install it but it still has the problematic bookmark . My question is : how can I clear RapidSVN s app settings .. . Answer : The settings of RapidSVN is apparently stored in the home-directory . To purge the config file of the app is as easy as running this command : .. . .. . This command will reset all of the configurations that you have made for RapidSVN . I would suggest you make a backup of the configurations before you purge it though . Comment : this works but i still keep getting crashes no matter what SVN working copy i use . is it possible that i need to re-install some SVN components if so how i also wonder how come linux ubuntu uninstall apps completely including their configuration-files .. . Comment : I think once you open rapidsvn it segfaults . I suggest you file a bug report and compile a newer version from source . Comment : i m not that hardcore . i ve used this tool for a very long time but now it just doesn t work . i use PySVN WorkBench instead . Comment : I am afraid it falls well beyond the scope of this question . You might want to ask a new question and I ll see if I can nail a proper solution for that question . Comment : well technically you ve answered the question but the question was asked in order to avoid the crash .", "Question : My svn-client is rapidsvn and ide is netbeans.suddenly got an error when i am going to commit my updates.Give 777 permission and change owner of project . But still i coudn t fix that issue . When i commit the file in netbeans it gives below error .. . .. . Any one can help me .. . Answer : I had the same issue after upgrading NetBeans from 7.2 to 7.2.1 . I had to Tools Options Miscellaneous Versioning . Than choose Subversion and CLI under Preferred client . After that I was able to svn as usual . Hope this helps someone .", "Question : I have a programming project with 20 files where I m currently using TortoiseSVN as a versioning software . The repository is on a local harddrive and I m the only one accessing the files . However I work on the code on multiple PCs all Windows between 7 and 10 but I don t want to upload the files somewhere or make my home-pc a server . So I was considering using the portable version of RapidSVN instead on a USB device . Now I would like to keep the history so I have access to all the commits . I ve heard RapidSVN is using Subversion 1.5 libraries so I would need to downgrade to Tortoise 1.5 I have 1.9.3 at the moment to let them both use the same repository.. . .. . .. . Is it possible to migrate from tortoiseSVN to RapidSVN including past revisions Or might there be a better way Comment : You want to move your repo from local drive to flash Comment : @Y.N well in principle yes.. . I just didn t know that a repository created with Tortoise can also be used by other portable SVN software.. . .. . Answer : So I tried some things out moved to smartSVN . It s still the testing period of the pro-version but the foundation version also seems to offer what I need . Apparently both recent versions smartSVN and Tortoise can open the same Repository . smartSVN also comes with a better graphical user-interface in my opinion though it s a little hard to learn for a beginner that you have working-copies working copy files etc . So I now I can just copy the repository on my USB drive and start SmartSVN on every PC to hang in a working Copy . It also doesn t seem to support relative Paths to repositories but calling the relocate dialog is pretty easy e.g . to change the drive letter . .. . .. . However when I wanted to get rid of some early mistakes in revisions like submitting a bunch of binary files within the first 10 revisions - bloating repository up to 300MB I still need the command-line tools from TortoiseSVN : .. . .. . svnadmin dump -r11 : 100 repositoryPath dumpfile .. . svndumpfilter exclude -targets file.txt dumpfile filteredDump .. . delete repository .. . create repository at repositoryPath .. . svnadmin load repositoryPath filteredDump .. . another checkout is required .. . .. . Repository got shrunken from 100 300MB to 90 30MB revisions", "Question : I want to study the changes made to Google Chrome s source code which is managed by SVN . A web interface can be found at http : src.chromium.org viewvc chrome .. . .. . I d like to know if there s a GUI frontend that allows me to examine the timeline locally . With git I can simply run gitk foo.c . I tried qsvn and rapidsvn but couldn t figure out how to make them do the job . It seems that I have to import the repository in the GUI but I already have the repository checked out . .. . Answer : To answer the second part of my own question both qsvn and rapidsvn can be used to view the logs when I ve already checked out a working copy . In qsvn go to Menu - Working Copy - Add . In rapidsvn go to Menu - Bookmarks - Add Existing Working Copy . Viewing the log is much slower than in git as explained by @Raghuram . Comment : In rapidsvn I didn t find a way to see commit messages + changed files with diffs on the same screen . gitk not on a specific file is REALLY useful for flipping through recent changes to see what s been happening . Sometimes seeing the diffs is essential to figuring out what kind of change it was .", "Question : I have a programming project with 20 files where I m currently using TortoiseSVN as a versioning software . The repository is on a local harddrive and I m the only one accessing the files . However I work on the code on multiple PCs all Windows between 7 and 10 but I don t want to upload the files somewhere or make my home-pc a server . So I was considering using the portable version of RapidSVN instead on a USB device . Now I would like to keep the history so I have access to all the commits . I ve heard RapidSVN is using Subversion 1.5 libraries so I would need to downgrade to Tortoise 1.5 I have 1.9.3 at the moment to let them both use the same repository.. . .. . .. . Is it possible to migrate from tortoiseSVN to RapidSVN including past revisions Or might there be a better way Comment : You want to move your repo from local drive to flash Comment : @Y.N well in principle yes.. . I just didn t know that a repository created with Tortoise can also be used by other portable SVN software.. . .. . Answer : If you have can have SVN-client on every workplace it will be better to have portable repository than portable extremely outdated client Comment : That s right but I don t have a SVN client on each workplace unless I bring in a portable one.. . so far smartSVN seems to work fine.. .", "Question : I want to study the changes made to Google Chrome s source code which is managed by SVN . A web interface can be found at http : src.chromium.org viewvc chrome .. . .. . I d like to know if there s a GUI frontend that allows me to examine the timeline locally . With git I can simply run gitk foo.c . I tried qsvn and rapidsvn but couldn t figure out how to make them do the job . It seems that I have to import the repository in the GUI but I already have the repository checked out . .. . Answer : I tried a few SVN clients looking for something that s like gitk without a file argument . I think showing the history for a specific file is easier in most SVN clients than showing history with diffs across the whole project . If there s a way to see commit messages affected files AND diffs at the same time but I didn t find it in the UI please leave a comment to let me know what I missed . I doubt any native SVN clients do this though because old versions to diff against would have to be fetched from the server . best but doesn t work with an existing SVN checkout : .. . .. . git-svn to checkout the svn repo in the first place then you get the full GIT capabilities . The initial checkout takes a REALLY long time for projects with long history unless you make a shallow clone : How to git-svn clone the last n revisions from a Subversion repository http : stackoverflow.com questions 747075 how-to-git-svn-clone-the-last-n-revisions-from-a-subversion-repository .. . .. . others : .. . .. . rapidsvn http : www.rapidsvn.org : Add the existing repo as a bookmark . Right click on . - Log . This fetches ALL the revisions so it s really slow to come up . The Log History dialog box has the log message and affected files in separate tabs so you can t see both at once . You can see the beginning of the log message as a column in the revision table though . Development stalled https : github.com RapidSVN RapidSVN last change 2013-May .. . .. . eclipse with subclipse http : subclipse.tigris.org : Open Perspective - SVN Repository Exploring . Right click on something - Show History . The revision list of SVN revs affecting that file or subtree comes up quickly as it only fetches the first 25 by default . you can fetch more or all . The affected paths are displayed and you can see the current version but I don t see a way to get a diff . except maybe for one file at a time by right clicking on a file and doing Compare.. . which brings up a menu of what to compare with . RabbitVCS http : wiki.rabbitvcs.org wiki about screenshots : screenshot shows the usual revisions log message affected files 3 pane setup without diffs . Implemented on top of a graphical file browser Nautilus GNOME Thunar Xfce not available as a stand-alone app . Also not available for Dolphin KDE . subcommander http : subcommander.tigris.org : last release 2.0.0beta5 from 2009 . Crashed a couple times while trying to use it . svn-workbench http : pysvn.stage.tigris.org docs WorkBench.html : Affected files opens in a new window from the revision list . It s much less usable than other things . Also I think it s abandoned and should prob . get dropped from Debian Ubuntu so it doesn t show up package searches . qsvn http : anrichter.github.io qsvn : Didn t try it since upstream development stopped when the author switched to git for everything . http : svn-ref.assembla.com linux-svn-client-reviews.html mentions a couple closed-source commercial SVN clients which I didn t try . I got tired of looking for gitk behaviour outside of gitk and just went ahead and git-svn cloned the repo I was interested in . No wonder people switch away from SVN since it apparently can t efficiently show the diffs for a commit .", "Question : My svn-client is rapidsvn and ide is netbeans.suddenly got an error when i am going to commit my updates.Give 777 permission and change owner of project . But still i coudn t fix that issue . When i commit the file in netbeans it gives below error .. . .. . Any one can help me .. . Answer : thanks every one Finally i got the issue . i have set and apply a local proxy for system wide . for jmeter performance-testing After stop that is working well .", "Question : I was using RapidSVN for the first time and played around with the features . I wanted to download a file to my home folder and now all of my files have a question mark on them . How can I remove it I m using Windows 7 . .. . Answer : It s probably the icon to show that the file is not in your repository . To remove them you ll need to delete the working copy delete the .svn directory from your home-directory assuming you don t already have a legitimate use for that and then delete the bookmark from within RapidSVN . Generally you would check out files from a repository into a new directory not one that contains other files already . There is a getting started guide at http : www.rapidsvn.org index.php Getting to know RapidSVN .. . .. . Edit : If you want to keep the working copy you could also choose to not show files from the repository . From the Edit menu uncheck the Show unversioned files . Comment : I tried everything but I m unable to remove the question mark . I went as far as uninstalling RapidSVN using Revo Uninstaller Pro and deep cleaning registry and junk files using Advanced SystemCare . But the icon is still there . Help", "Question : I have been using RapidSVN on a Linux machine for the past few years - it has become an excellent tool for managing my source . Yesterday my trusty Linux laptop had a couple of strokes so I decided it was time to replace it . Today I went out and purchased a new Mac Book Pro with the flashy display and solid state drives . Then I went hunting for an SVN tool to run on Mac . I found that RapidSVN will run on a Mac as it was developed using wxWidgets cross-platform windowing . So I needed to install wxWidgets however this doesn t come as an executable so I had to download the tar ball . To compile I realised I don t have a compiler installed yet.. . so install Xcode 4.4 then learn that doesn t install a compiler either.. . find the Xcode preference to install the command-line tools compiler . So now I have Xcode installed a gcc compiler and tracking back up it comes to wxWidgets . It takes a little working out but I manage to extract the files into a directory in my home folder following instructions of course and from the build folder I run the . . configure command which seems to work and then the make command which fails : .. . .. . So I go hunting for a solution only to find this bug : http : trac.wxwidgets.org ticket 14536 which unfortunately indicates this is not going to be fixed . A dismal day in the land of computers . I am now stuck for the next 5-6 years on a computer that will never be able to compile anything using wxWidgets - I rather feel like taking it back to Apple and getting my money back . So where to from here Is there a binary version of wxWidgets available Is there a binary version of RapidSVN available Should I downgrade to OSX 10.x something less than I am currently on Should I upgrade to unstable wxWidgets Comment : Why Xcode 4.4 Why not use the latest version 4.6.x .. . Answer : I have Mac OSX Lion and just did this : .. . .. . and was able to get through the install with no issues . Comment : When this came up 4 months ago it was clearly not working due to the different versions of various SDKs being incompatible . I eventually went away from the idea of trying to compile anything and decided to only load binaries . RapidSVN was not to be . I m now using Eclipse with the SVN plugin - it s working fine .", "Question : I m using RapidSVN as svn-client and to set the svn : keywords I have to go to each file right-click Properties New Name svn : keywords Value Id OK .. . .. . This is not a problem yet because the project doesn t have a lot of files but I can t get this to work properly . When I commit a new version to my GoogleCode repository my local files change the Id value but it doesn t happen in the remote GoogleCode repository . When I see the remote file s content the Id is unchanged . Can anyone tell me why .. . Answer : When I commit a new version to my GoogleCode repository my local files change the Id value but it doesn t happen in the remote GoogleCode repository .. . .. . Just don t worry and forget if on client-side you get expected result : expanded keyword . Some server-side repo-browsers use fair methods for accessing data as svn-client some - not . Because SVN-keywords are expanded only in client not in repository-data directly you can see keywords instead of real-data in server view but it s meaningless : compare output of top 3 lines of File inside Repo-Browser https : www.assembla.com code customlocations-greylink subversion nodes trunk Local Local.ini rev 1191 and real output to any user", "Question : My svn-client is rapidsvn and ide is netbeans.suddenly got an error when i am going to commit my updates.Give 777 permission and change owner of project . But still i coudn t fix that issue . When i commit the file in netbeans it gives below error .. . .. . Any one can help me .. . Answer : For me it was a proxy issue I restarted again after disabling the proxy and it worked fine .", "Question : I have been using RapidSVN on a Linux machine for the past few years - it has become an excellent tool for managing my source . Yesterday my trusty Linux laptop had a couple of strokes so I decided it was time to replace it . Today I went out and purchased a new Mac Book Pro with the flashy display and solid state drives . Then I went hunting for an SVN tool to run on Mac . I found that RapidSVN will run on a Mac as it was developed using wxWidgets cross-platform windowing . So I needed to install wxWidgets however this doesn t come as an executable so I had to download the tar ball . To compile I realised I don t have a compiler installed yet.. . so install Xcode 4.4 then learn that doesn t install a compiler either.. . find the Xcode preference to install the command-line tools compiler . So now I have Xcode installed a gcc compiler and tracking back up it comes to wxWidgets . It takes a little working out but I manage to extract the files into a directory in my home folder following instructions of course and from the build folder I run the . . configure command which seems to work and then the make command which fails : .. . .. . So I go hunting for a solution only to find this bug : http : trac.wxwidgets.org ticket 14536 which unfortunately indicates this is not going to be fixed . A dismal day in the land of computers . I am now stuck for the next 5-6 years on a computer that will never be able to compile anything using wxWidgets - I rather feel like taking it back to Apple and getting my money back . So where to from here Is there a binary version of wxWidgets available Is there a binary version of RapidSVN available Should I downgrade to OSX 10.x something less than I am currently on Should I upgrade to unstable wxWidgets Comment : Why Xcode 4.4 Why not use the latest version 4.6.x .. . Answer : VZ is right . If you need to use wxWidgets 2.8 on OS X and there are legitimate reasons for needing to do so get the 10.6 SDK . Copy it alongside the already installed 10.7 and or 10.8 and select it in the project target s build settings . Comment : Another case of you should be using the same version as the developer . I m guessing your suggestion will work - I m simply disappointed it s not working on my brand new Mac running all the latest stable software .", "Question : I want to study the changes made to Google Chrome s source code which is managed by SVN . A web interface can be found at http : src.chromium.org viewvc chrome .. . .. . I d like to know if there s a GUI frontend that allows me to examine the timeline locally . With git I can simply run gitk foo.c . I tried qsvn and rapidsvn but couldn t figure out how to make them do the job . It seems that I have to import the repository in the GUI but I already have the repository checked out . .. . Answer : if you like to browse the source from a svn-repo and you like gitk why not using gitk just do .. . .. . and you have the svn repo converted to a local git-repo where you can use gitk .. . If you want to update your local git-repo just rerun fetch rebase .. . for more info take a look at git-svn 1 http : git-scm.com docs git-svn Comment : Cool solution . : Depending on the size of the repo the conversion to git might be slow though . Comment : why rebase is needed Comment : See stackoverflow.com questions 747075 http : stackoverflow.com questions 747075 how-to-git-svn-clone-the-last-n-revisions-from-a-subversion-repository . The initial checkout will be PAINFULLY slow getting all revs of a big project .", "Question : I have been using RapidSVN on a Linux machine for the past few years - it has become an excellent tool for managing my source . Yesterday my trusty Linux laptop had a couple of strokes so I decided it was time to replace it . Today I went out and purchased a new Mac Book Pro with the flashy display and solid state drives . Then I went hunting for an SVN tool to run on Mac . I found that RapidSVN will run on a Mac as it was developed using wxWidgets cross-platform windowing . So I needed to install wxWidgets however this doesn t come as an executable so I had to download the tar ball . To compile I realised I don t have a compiler installed yet.. . so install Xcode 4.4 then learn that doesn t install a compiler either.. . find the Xcode preference to install the command-line tools compiler . So now I have Xcode installed a gcc compiler and tracking back up it comes to wxWidgets . It takes a little working out but I manage to extract the files into a directory in my home folder following instructions of course and from the build folder I run the . . configure command which seems to work and then the make command which fails : .. . .. . So I go hunting for a solution only to find this bug : http : trac.wxwidgets.org ticket 14536 which unfortunately indicates this is not going to be fixed . A dismal day in the land of computers . I am now stuck for the next 5-6 years on a computer that will never be able to compile anything using wxWidgets - I rather feel like taking it back to Apple and getting my money back . So where to from here Is there a binary version of wxWidgets available Is there a binary version of RapidSVN available Should I downgrade to OSX 10.x something less than I am currently on Should I upgrade to unstable wxWidgets Comment : Why Xcode 4.4 Why not use the latest version 4.6.x .. . Answer : From here I have given up trying to compile anything on my current OSX . I am not going to downgrade or install multiple versions of different libraries in order to satisfy the lack of support for the latest current stable versions . From here I will download and install binaries only .", "Question : null .. . Answer : I ve been using rapid svn for a while . Now I got this strange problem . When I checkout a folder rapid svn shows file transferring but the checkout folder is empty . When I try to update or commit it shows the folder does not exist error I tried reinstalling rapidsvn removed all .svn files it didnt work . Any help Comment : What error do you get", "Question : I m using RapidSVN as svn-client and to set the svn : keywords I have to go to each file right-click Properties New Name svn : keywords Value Id OK .. . .. . This is not a problem yet because the project doesn t have a lot of files but I can t get this to work properly . When I commit a new version to my GoogleCode repository my local files change the Id value but it doesn t happen in the remote GoogleCode repository . When I see the remote file s content the Id is unchanged . Can anyone tell me why .. . Answer : You ll have to explain exactly how you re doing this . Unlike other RCS and possibly CVS Subversion doesn t automatically expand Keywords . There are two parts to using keywords : .. . .. . 1 . Setting the svn : keywords property in the file to the keywords you want to expand . These are limited to : .. . URL .. . Author .. . Date .. . Id .. . Revision .. . 2 . Putting the Keyword inside your file surrounded by dollar signs . Like this : .. . .. . This will expand to : .. . .. . Are you doing all of that The whole idea of keyword expansion is now considered an out of date concept that wasn t really all that good an idea . As long as your code is in Subversion you can get all of this and more without doing Keyword expansion . A lot of time this was used to see what versions of the software was used in compilation . However if you re compiling code there are simply better ways of embedding in the revision data . For example you probably are using a build-system that creates build-numbers . A better thing to do is to simply embed the build number in a single file as its compiled so you can view it in an About Box . So if you really can t get this to work it isn t all that bad . It s saving you from a practice that is no longer considered a good idea for CM ." ] }
[ "yes-answer-long", "yes-answer-short" ]
svn
UNK_RELATION
mapper@algorithm@108
mapper -- the mapper is the first step in map reduce step a component of a larger scalable parallel-izable @placeholder .
{ "confidence": [ 38.40663146972656, 36.86528015136719, 36.318817138671875, 33.70478820800781, 33.63669204711914, 33.30324172973633, 33.21376037597656, 32.92109680175781, 32.52064514160156, 32.28246307373047, 32.28246307373047, 32.28246307373047, 32.28246307373047, 32.28246307373047, 32.11756896972656, 31.89942169189453, 31.89942169189453, 31.89942169189453, 31.89942169189453, 31.538070678710938, 31.166271209716797, 31.116825103759766, 31.116825103759766, 31.116825103759766, 31.116825103759766, 30.968120574951172, 30.968120574951172, 30.67324447631836, 30.13425064086914, 30.13425064086914, 30.13425064086914, 30.13425064086914, 30.13425064086914, 30.13425064086914, 30.13425064086914, 30.05874252319336, 30.053438186645508, 29.851932525634766, 29.4476318359375, 29.4476318359375, 29.20294952392578, 29.20294952392578, 29.20294952392578, 29.20294952392578, 29.20294952392578, 29.16103744506836, 29.147045135498047, 29.0693359375, 29.022184371948242, 29.022184371948242, 28.51633071899414, 28.090885162353516, 28.090885162353516, 28.086761474609375, 28.086761474609375, 28.086761474609375, 28.086761474609375, 28.086761474609375, 28.024972915649414, 28.024972915649414, 28.023168563842773, 27.825422286987305, 27.743227005004883, 27.743227005004883, 27.743227005004883, 27.743227005004883, 27.743227005004883, 27.743227005004883, 27.743227005004883, 27.743227005004883, 27.743227005004883, 27.743227005004883, 27.743227005004883, 27.743227005004883, 27.743227005004883, 27.743227005004883, 27.743227005004883, 27.743227005004883, 27.743227005004883, 27.743227005004883, 27.743227005004883, 27.743227005004883, 27.743227005004883, 27.743227005004883, 27.743227005004883, 27.743227005004883, 27.743227005004883, 27.743227005004883, 27.743227005004883, 27.400142669677734, 27.23130226135254, 27.23130226135254, 26.974693298339844, 26.974693298339844, 26.842159271240234, 26.811927795410156, 26.811927795410156, 26.811927795410156, 26.811927795410156, 26.811927795410156 ], "content": [ "But now I want to : .. . .. . run it in one map step and plot the solution in the reduce step .. . .. . or .. . .. . break it in two and add the first part in map and the second part in reduce .", "Glass Mapper can t map this fields correctly .", "-- Add a custom mapper or withIgnoreFields on @Mapper or @Maps to fix this", "How to map User class to UserModel class using Emit Mapper", "try to fulfill your Mapper parameter like this :", "My mapper class is very simple .", "Mapper configuration from code .", "This happens in the mapper .", "Each mapper can be processed multiple blocks based on mapper numbers you are setting .", "And this file will be the input to my mapper .", "MultipleInputs mapper runs .", "The issue is definitely with glass-mapper", "Does BizTalk mapper support that", "Turn off validation on the mapper .", "Driver Class .. . .. . Mapper Class .. . .. . Reducer Class .. . .. . custom writablecomparable class .. . .. . Problems is : code is working fine upto mapper as sysout in mapper gives perfect output but after mapper reducer us never gets called .", "It seems that output is Mapper instead of reducer .", "So how many mapper is used", "I m becoming convinced this is a bug in the mapper .", "How can it be done in Biztalk Mapper", "Any way to make the mapper configuration much simpler", "Which version of Glass Mapper", "I m writing a mapper and would like to know if it is possible to get the nodename where the mapper is running .", "glass.lu Mapper Sc Documentation VersionCountDisabler http : www.glass.lu Mapper Sc Documentation VersionCountDisabler I think he was referring to this .", "glass.lu Mapper Sc Tutorials Tutorial12 http : glass.lu Mapper Sc Tutorials Tutorial12", "As an avid BizTalker I NEVER use the mapper always XSLT but then again the question is on the mapper not how to do it in XSLT .", "Map1 is a Mapper and Map2 is a TableMapper .. . 3 .", "In this example code the Mapper is static-class .", "BTW : is gzip has the same feature multiple mapper process different parts of one gzip file in parallel .", "I want this to be represented as MappedBoolean in Lift Mapper .", "Change the mapper class by passing the condition class", "I m searching for mapper with next requirements : .. . .. . 1 .", "It allows to provide some context for mapper in runtime .", "There is a bit a better example on how to register the mapper .", "You should not use this mapper for all your properties .", "Unfortunately there s no easy way to do this in the BizTalk mapper .", "In the Convert method I am mapping each item of Role to RoleModel by creating mapper like var mapper ObjectMapperManager.DefaultInstance.GetMapper TEntity TModel and then calling Map method on each item and adding the return-value to the collection of models", "jackson core and mapper are from 1.7.1 and its with out mongo .", "The Mapper will reuse instances of external assemblies .", "I use Glass Mapper as my ORM do I have to use one to map the objects in the external database", "I indeed meant Mapper - the whole class not only the map method which you ve already shared .", "Already set up a mapper http : i.stack.imgur.com qZCHA.png", "Execution working up until Mapper .. . 2 .", "Only the last mapper is running i.e TableMapReduceUtil .", "The mapper in Map1 would be different from Map2 .", "Have you considered using XSLT instead of the mapper", "First two jobs with only mappers and a third job Merge step with a plain Mapper that practically writes the input to output as is and then a reducer that actually does a merge task on these files .", "Here is my VO design and mapper.xml .. . .. . This is BoardVO .. . .. . This is MemberVO .. . .. . This is QuestionTypeVO .. . .. . This is my mapper", "glass.lu Mapper Sc Tutorials Tutorial17 http : glass.lu Mapper Sc Tutorials Tutorial17", "The Glass website has a tutorial on how to save items : glass.lu Mapper Sc Tutorials Tutorial11 http : glass.lu Mapper Sc Tutorials Tutorial11", "@TMalik did you read my blog post ctor.io shared-field-references-in-glass-mapper http : ctor.io shared-field-references-in-glass-mapper", "It is possible however to include this but you would need to convert your mapper to XSLT Use validate map output xslt .", "did you see the code in this link : github.com vznet mongo-jackson-mapper commit https : github.com vznet mongo-jackson-mapper commit 7726bf2a4973c36dc4986333f81d6f4476775451", "Also I know you were asking for the mapper I just am convinced the mapper is utterly inferior to the native xslt approach .", ".. . .. . What exactly is happening here in mapper and reducer function", "Reference http : glass.lu Mapper Sc Tutorials Tutorial22", "It seems like the support for Glass Mapper in Umbraco is lacking .", "BizTalk mapper scripting functoid http : i.stack.imgur.com k7Pql.png", "I have created a custom mapper to handle this .", "I am trying to create a Mapper class called WordMapper but it throws be the below error .", "Mapper is a generic interface it s parameterized with type parameters for the input and output key and value types .", "First the mapper class is static-class that has some static-methods to map objects from one type to another .", "My mapper needs to send the following tuples : .. . .. . And I want to send to reducer the custID as a key and as value the prodID and rate together as they are needed for the reduce phase .", "Is Ruby Object Mapper the only ORM you can use here", "This happen because Orika will create a mapper on the fly using byDefault settings .", "I want to share my Cache across Mapper reducers .", "But I want to know that How to set the mapper and reducer what is the command to set it", "I am trying to pass a string as value in the mapper but getting error that it is not Writable .", "Please share complete code of your Mapper to get a quick solution .", "I m trying to setup Glass Mapper to generate my Sitecore items .", "So I guess Lift-Mapper may have provide similar support .", "While working with hadoop it s good to say number of split number of mapper .", "Available parameters are 0 1 param1 param2 .. . .. . The following is the code in the mapper class .", "Currently my system has a basic interface that contains 4 methods for the mapper .", "Hadoop will send several files to my mapper but at least one of the file is partial .", "Is there a way to use wildcards or a mapper function that upacks without the root folder", "There s actually a separate mapper specifically made for this called cutdirsmapper .", "don t know how I missed it on the ant mapper page.. .", "Also we are using the following classes for Mapper and Context : org.apache.hadoop.mapreduce.Mapper org.apache.hadoop.mapreduce.Context", "Using GlassUserControl http : glass.lu Mapper Sc Tutorials Tutorial5", "http : www.seanholmesby.com sitecore-mvc-page-editor-friendly-views-with-glass-mapper", "I m setting up a carousel in Sitecore using Glass Mapper .", "Is there a comparable method in Glass Mapper for setting up an item rendering", "Try Html.Glass .BeginEditFrame functionality built into Glass Mapper wrapped in a @using block .", "Is there a way to check the template ID of a Sitecore item with glass-mapper", "I m struggling with Glass Mapper and can find little on Google .", "See the documentation on that here : http : glass.lu Mapper Sc Documentation VersionCountDisabler .", "I am trying to implement Auto Mapper using omu.ValueInjector .", "I want to the same for docker but I m using device mapper and not a regular partition .", "Using biztalk-mapper I need a target node to be duplicated. .", "I am using jackson mapper to map the json request to an java object directly .", "Here s a literal interpretation of the docs into a mapper for Foos which doesn t work : .. . .. . How does one write a mapper or rework the relation to work with the mapper to get the simple result-of a foo with a bars attribute having all the bars linked by the foos bars table", "Like in your another question about Mapper in Hadoop java change the type of Mapper output values http : stackoverflow.com questions 35762385 hadoop-java-change-the-type-of-mapper-output-values you should get exception here .", "I think this is a bug http : stackoverflow.com a 22380363 1218297 in Glass Mapper Try updating Glass Mapper to latest version and see if that fix the issue .", "I ve recently followed this post http : bluetubeinc.com blog 2014 6 glass-mapper-and-umbraco-7 on how to set up Umbraco and Glass Mapper .", "Anyways I ve created a composite Schema with two tables that I d like to insert into it s basically like this : .. . .. . In the mapper I m able to map anything to mxstoreloc : Insert with no issue .", "Driver Class : .. . .. . Mapper class is : .. . .. . Reducer class is : .. . .. . Thanks in advance", "My mapper and counter look similar with the totalTransaction enum counter .", "Driver class : .. . .. . Mapper Class : .. . .. . Reducer Class : .. . .. . .. . .. . Problems : .. . .. . 1 .", "I am writing code in 3 seperate files driver mapper reducer .", "We are using Lift + Mapper version 2.4 in our project ." ] }
{ "confidence": [ 39.84000778198242, 39.52650833129883, 38.85380935668945, 38.69261169433594, 38.31052780151367, 37.955440521240234, 37.649112701416016, 37.45170593261719, 37.021724700927734, 36.94586181640625, 36.14326477050781, 36.13139343261719, 36.066162109375, 36.03743362426758, 35.56621551513672, 35.329803466796875, 35.296974182128906, 35.296974182128906, 34.82432556152344, 34.80638122558594 ], "content": [ "Question : I ve recently encountered an issue with the multi-threaded nature of the BizTalk Mapper and how it handles external assemblies . As this quote from MSDN indicates : .. . .. . Important Any code written in an external assembly for use in a scripting functoid needs to be thread safe . This is required because multiple instances of a map can use these .NET instances at run time under stress conditions . The Mapper will reuse instances of external assemblies . In a utility assembly my team was using we had the following code : .. . .. . This was causing storereferences from one file to be mapped to different files . I appear to have fixed this by decorating the private field with ThreadStatic .. . .. . My question is - does anyone know of any issues with this in the BizTalk Mapper I m aware that there are issues using ThreadStatic in Asp.Net for examble due to threads being reused but can find no documentation on the way the BizTalk mapper deals with threads . .. . Answer : I have used ThreadStatic to set a variable is custom receive pipeline and then access its value within BizTalk Map through a helper class . have not got any problem so far - tested with 50 invocations in parallel .", "Question : I m using Hadoop s map reduce to parse xml files . So I have a class called Parser that can have a method parse to parse the xml files . And So I should use it in the Mapper s map-function . However it means that every time when I want to call a Parser I need to create a Parser instance . But this instance should be the same for each map job . So I m wondering if I can just instantize this Parser just once And just another add-on question why the Mapper class is always static Comment : In a distributed-computing environment sharing instances of a variable isn t possible.. . Also not sure if the Mapper is always static . Where do you see that Comment : Scratch that second statement.. . I haven t written mapreduce recently but here s the explanation stackoverflow.com questions 11570674 http : stackoverflow.com questions 11570674 why-declaring-mapper-and-reducer-classes-as-static Comment : In this example code the Mapper is static-class . link https : hadoop.apache.org docs current hadoop-mapreduce-client hadoop-mapreduce-client-core MapReduceTutorial.html Comment : +1 cricket 007 . Need not be static except its inner class . above link by cricket 007 describes When declaring mapper and reducer classes as inner classes to another class they have to be declared static such that they are not dependent on the parent class . @Yilinkg Liu : In your example also your class WordCount2 is driver where all other classes were nested . Isnt it Comment : The Mapper and Reducer need to be static unless they are nested in the driver program primarily because the main method is static . I was correct that they are not always static as-in you can write MyMapper.java MyReducer.java and MyDriver.java and non of those contain static-classes . .. . Answer : To ensure one parser instance per Mapper please use mappers setup method for instantiating your parser instance and clean using cleanup method . Same thing we applied for protobuf parser which we had but need to make sure that your parser instance is thread safe and no shared data . Note : setup and cleanup method will be called only once per mapper so we can initialize private variables there . To clarify what cricket 007 said in In a distributed-computing environment sharing instances of a variable isn t possible.. . .. . .. . we have a practice of reusing of writable classes instead of creating new writables every time we need . we can instantiate once and re-set the writable multiple times as described by Tip 6 http : blog.cloudera.com blog 2009 12 7-tips-for-improving-mapreduce-performance Similarly parser objects also can be re-used Tip-6 style . as described in below code . For ex :", "Question : My mapper needs to send the following tuples : .. . .. . And I want to send to reducer the custID as a key and as value the prodID and rate together as they are needed for the reduce phase . Which is the best way of doing this Comment : Why can t you just send multiple values Nothing limits the number of key-value pairs a single map task can produce . .. . Answer : The best way is to write CustomWritables .. . .. . This is for double value . You can change that to Text or String .. . .. . And from mapper you can just emit it as .. . .. . Hope this helps . Comment : its good solutions but i stuck-up with string how to override equals method.. . Comment : @RaviHTapela : If you are using Eclipse IDE - equals hashCode can be generated automatically", "Question : I have an input schema input schema as such : .. . .. . Each one of child nodes to the ContactNo can only occur once one Contact 1 one Contact 2 and one Contact 3 . I need to apply some business logic for the Contact-Type SubType to construct the Contact-No but my question is how best would you map this structure across to the relevant out put schema nodes these nodes are max occurs 20 but can only have a max of three based on the input schema schema structure below : .. . .. . Sample Input Output .. . .. . Currently I am checking Contact-Type Home then mapping the output through a value mapper to a script functoid for data confirmation before mapping the output . This seems to be causing duplicate nodes . .. . Answer : Have you considered using XSLT in your mapping Not only a lot easier to use than the BizTalk mapper also a lot more flexible and widely used you can use XSLT natively in a lot of products . An appropriate XSLT would result in something like the following : .. . .. . This should loop through the first 3 contacts and list them accordingly . Let me know if this suits your needs . Disclaimer : haven t tested this out due to time constraints beware of syntax and typing mistakes . Also I know you were asking for the mapper I just am convinced the mapper is utterly inferior to the native xslt approach . Comment : Thank you for your response . Could you explain the test position lt 4 . The map has mainly been completed with functoids script nodes etc . this is a minor updated that we need to cater for so was looking for a solution within the map . Comment : This is to iterate over the first 3 contacts only which is one of the requirements as far as I can see . the sign does not translate well into xml so I escape it . I know you prefer a mapper solution hence the disclaimer . It is possible however to include this but you would need to convert your mapper to XSLT Use validate map output xslt . So in fact a valid answer in my humble opinion . For you to decide .", "Question : Driver class : .. . .. . Mapper Class : .. . .. . Reducer Class : .. . .. . .. . .. . Problems : .. . .. . 1 . Execution working up until Mapper .. . 2 . Reducer never gets called .. . 3 . If I set setNumReduceTasks 0 then Mapper is not getting called .. . .. . Any ideas what is wrong .. . Answer : You have set the number of reduce tasks as zero . Even after that if it did not work check you have permissions on the output path on following line - Comment : even if i remove 0 or dont put that code still reducer not working Comment : I checked it by running the program . It works just fine . If I give number of reduce tasks as zero it simply skips the reduce and exits successfully without any errors . If you are still getting errors post the stack-trace or any logged information which you should have done while posting this question . Comment : you are life saver.. . thanks mate . . output worked for me...appreciate", "Question : Suppose I have 15 blocks of data and two clusters . The first cluster has 5 nodes and a replication factor is 1 while the second one has a replication factor is 3 . If I run my map job should I expect any change in the performance or the execution-time of the map job In other words how does replication affect the performance of the mapper on a cluster .. . Answer : EDIT : This part of my answer is obsolete now that the other answer was edited : The other answer is not entirely correct . This was meant to address the incorrect implication that less replicas fewer paralelism . The rest of my answer below still applies . Any node can execute your tasks regardless of whether the data is located in that node or not . Hadoop will try to achieve data locality preference order is : node-local then rack-local then any node but if it can t then it will chose any node that has available compute capacity to run your task . Performance wise in a typical multi-rack installation rack-local performs almost as good as node-local since the bottleneck occurs when transmitting data across racks . However with high-end networking equipment i.e . full-bisection bandwidth then it wouldn t matter if your computation is rack-local or not . For more details on this read this paper http : www.cs.berkeley.edu ganesha disk-irrelevant hotos2011.pdf . How much performance improvement can you expect from having more replicas and thus achieving higher data locality Not much 5-20 maximum improvement . But this is an upper limit when you implement additional popularity-based replication as in this http : assured-cloud-computing.illinois.edu sites default files PID1974767.pdf and this http : www.cs.berkeley.edu ganesha euro118-ananthanarayanan.pdf projects . NOTE : I did not just make-up those performance improvement numbers they come from the papers I linked . Since vanilla Hadoop does not have these mechanisms in-place I would expect your performance to improve at most 1-5 . This is just a ballpark guess but you can easily run some tests yourself . The reason for this is that more replicas could improve the performance of some of your map tasks the ones that are now able to run with a data-local copy of the block but it would not improve your shuffle and reduce phases . Furthermore even if just one mapper takes longer than the rest this one will determine the length of your whole map phase so for many jobs it is likely that increasing locality will not improve their running times at all . Finally I O bound jobs can be map-input IO bound shuffle IO bound map output heavy or reduce output IO bound . Only the first type map-input IO bound would benefit from locality . More details on MapReduce workload characterization in this paper http : www.eecs.berkeley.edu ychen2 professional MapReduceWorkloadMASCOTSPublished.pdf . If you are further interested in this you can also read this paper http : www.cs.berkeley.edu ganesha pacman nsdi12.pdf in which they improve the running times of mappers but having the input data of ALL the mappers in memory . Comment : The question was what effect replication would have on the mapper and this is a big question because data locality has been found important see citations to performance . A better understanding of the OP s workload is needed . Comment : Ok I get that . But let me explain better : A single mapper can see its performance improved by data locality . However the map phase I guess this is what he means by map job will not be affected by this since the map phase duration is affected by stragglers single tasks that take longer for whatever reason . That is why it doesn t really matter . I am not making this up . I ve tested 100 locality easy to do just use replication factor number of nodes in cluster and observed the results . Improvement is minimal at the job level the reason for this is : stragglers + shuffle phase .", "Question : I am wrote 2 mappers Map1 and Map2 .. . .. . Map1- reads a seq file in HDFS and processes it . Map2- reads from HBASE and produces same key-value pair as Map1 . Finally I merge them in ReducerAll . The problem is that only one of the mappers is running and the job completes wihtout any kind of error . Only the last mapper is running i.e TableMapReduceUtil . If I exchange the lines TableMapReduceUtil and MultipleInputs then the last one i.e . MultipleInputs mapper runs . What am I doing wrong here No errors are thrown for both scenarios . I also read 2 files using addCacheFile for processing but that does not matter here I guess . .. . Answer : I believe the behaviour is because of the following two lines : - .. . .. . 1 . There is only one job job3 .. . 2 . Although you have mentioned that there are two mappers look at the mapper types . The mapper in Map1 would be different from Map2 . Map1 is a Mapper and Map2 is a TableMapper .. . 3 . Keeping the two statements together does not mean that they are essentially clubbed in a MultipleInputs setup for job3 . The MultipleInputs still only has one setup for Map1 . The other setup of Map2 is still separate . 4 . Now for the execution . The latter of the two configurations MultipleInputs or TableMapReduceUtil overwrites the previous one in the job3 and hence only a single mapper executes .. . .. . PS : - Please let me know if this is incorrect I am yet to validate my understanding I have presented here on my machine . Comment : Ah I understand now . So if I want to run both mappers and direct it to the same mapper should I define another job But then how will I be able to give it to the same reducer Comment : direct it to the same reducer Comment : @gambit I think we can use three jobs . First two jobs with only mappers and a third job Merge step with a plain Mapper that practically writes the input to output as is and then a reducer that actually does a merge task on these files . I am still trying think of a way to do it in better manner which gives a better performance . Please let me know if this helps . Will post if I find anything better . Comment : stackoverflow.com questions 17456369 http : stackoverflow.com questions 17456369 mapreduce-job-with-mixed-data-sources-hbase-table-and-hdfs-files The answer supposedly works and the OP used the same job . The comment has a user facing my problem . Any idea on this Comment : My bad . Your scenario is different . For a moment it seemed like his solution can be used to work in this scenario as well . Deleting the older comment to avoid any confusions .", "Question : The glass-mapper will return null object or no items for SitecoreQuery and SitecoreChildren attribute that are placed on the GlassModels . These attributes don t take any such parameter where I can specify them to return items if they don t exist in the the context lanaguge . The items e.g . exist in EN but don t exist in en-ES . I need to put a lot of null-check in my views to avoid Null exception and makes the views or controller very messy . It is lot of boiler plate code that one has to write to make it work . In Page Editor the SitecoreChildren returns item and content authors can create items in that langauge version by editing any field on the item . This automatically creates the item in that langauge . However the same code will fail in Preview mode as SitecoreChidren will return null and you see null-pointer exception . SitecoreQuery doesn t return any items in page-editor and then Content Authors wont be able to create items in Page editor . To make the experience good if we can pass a parameter to SiteocreQuery attribute so it disable VsersionCount and returns the items if they dont exist in that langauge . Comment : Could you send me an example of the model rendering and error message you receive to mike @ glass.lu Comment : Michael I will try to formulate an email and send it over to you . What Kevin suggested below is working like a charm . .. . Answer : This is actually not possible . There is an issue on GitHu https : github.com mikeedwards83 Glass.Mapper issues 81 b which would make it easy to create a custom attribute to handle this very easy . Currently you need to create a new type mapper and copy all the code from the SitecoreQueryMapper . I have written a blog post here http : ctor.io shared-field-references-in-glass-mapper about how you can create a custom type mapper . You need to create the following classes example for the SitecoreQuery . New configuration : .. . .. . New attribute : .. . .. . New type mapper : .. . .. . And configure the new type mapper in your glass config mapper and parameters for the constructor : .. . .. . You can then simply change the SitecoreQuery attribute on your model to SitecoreSharedQuery : .. . .. . For the children you could either use the shared query mapper and querying the children or create the same classes for a new SitecoreSharedChildren query . Edit : Added bindings for IEnumerable ISitecoreQueryParameter as they are missing and therefor it threw an error . Comment : Thanks Kevin . It is quite tricky to get this to work . I haven t tried this and will give it a try . After puting more thought into it to me it seems that Glass mapper is sort of doing the right thing . Otherwise how would you handle scenarios where Content don t want to show certain items in that langauge and if we are forcing it like this then we will never be able to achieve it . I know that if we use Fallback module than it helps it by putting setting the tempaltes for which version enfrocing is required . Comment : In addition I think that this solution gives us some flexibility and we can choose to have this behavior for certain templates . So it is definitely worth a try and thanks again for taking your time to document it . Hopefully I will give it a try in day or 2 and mark it answered . Comment : Couldn t resit and tried it I am getting this error When I register the component : Can t create component Company.GlassExtensions.SitecoreSharedQueryTypeMapper as it has dependencies to be satisfied . Company.GlassExtensions.SitecoreSharedQueryTypeMapper is waiting for the following dependencies : - Service System.Collections.Generic.IEnumerable 1 Glass.Mapper.Sc.DataMappers.SitecoreQ ueryParameters.ISitecoreQueryParameter Glass.Mapper.Sc Version 3.2.2.44 Culture neutral PublicKeyToken null which was not registered . Comment : Also Just to calrify I tried to register before and after container.Install new SitecoreInstaller config but same result . In the SitecoreInstaller class I do see these components being registered . So not sure what is going on . Comment : @TMalik did you read my blog post ctor.io shared-field-references-in-glass-mapper http : ctor.io shared-field-references-in-glass-mapper There is a bit a better example on how to register the mapper . And you are completely right with your first comment . You should not use this mapper for all your properties . We use this property only if all items we want to map only have shared fields and therefor don t need a version in each language . Otherwise consider to use the normal SitecoreQuery attribute .", "Question : How to map User class to UserModel class using Emit Mapper There several problems : .. . .. . I need to flatten the object such that I will have CompanyId instead of the Company object . Company object has property Id in the UserModel I have CompanyId which corresponds to the company id but property names do not match . I need to map List Role to List RoleModel Comment : I have a similar problem...did you solve it .. . Answer : For flattering I was using configuration from the samples in Emit Mapper source files : http : emitmapper.codeplex.com SourceControl changeset view 69894 1192663 .. . .. . To make the names to match in Company class should be the field with the name Id .. . .. . For mapping List Role to List RoleModel I was using custom converter : .. . .. . public class EntityListToModelListConverter TEntity TModel .. . .. . public List TModel Convert IList TEntity from object state .. . .. . if from null .. . return null .. . .. . var models new List TModel .. . var mapper ObjectMapperManager.DefaultInstance.GetMapper TEntity TModel .. . .. . for int i 0 i from.Count i++ .. . .. . models.Add mapper.Map from.ElementAt i .. . .. . .. . return models .. . .. . .. . .. . .. . So all together : .. . .. . var userMapper ObjectMapperManager.DefaultInstance.GetMapper User UserModel .. . new FlatteringConfig .ConvertGeneric typeof IList typeof IList .. . new DefaultCustomConverterProvider typeof EntityListToModelListConverter .. . .. . .. . There is a problem using Flatterning Configuration with Custom converters check my question : Emit Mapper Flattering with Custom Converters http : stackoverflow.com questions 9632519 emit-mapper-flattering-with-custom-converters Comment : Thanks that solved my issue . Anyway it is still not clear to me how I should specify the way TEntity and TModel should be mapped.. . Let s suppose that I have type A with a collection of type B and I would like to map it to AMapped with a collection of BMapped...how should I setup the configuration should I use PostProcess I really like the idea of this library but it really misses configurations and examples.. . Comment : It depends on the type of the collection . In my example I have a generic collection so I was using a custom converter for generic types emitmapper.codeplex.com http : emitmapper.codeplex.com wikipage title Customization 20using 20default 20configurator referringTitle Documentation ANCHOR Custom converters for generics . You need to provide custom converter for converting from B to BMapped in the case of generics you will register it as new FlatteringConfig .ConvertGeneric typeof B typeof BMapped new DefaultCustomConverterProvider typeof CustomConverterClass Comment : In the Convert method I am mapping each item of Role to RoleModel by creating mapper like var mapper ObjectMapperManager.DefaultInstance.GetMapper TEntity TModel and then calling Map method on each item and adding the return-value to the collection of models Comment : Thank you very much . I understood it better and I m beginning taking advantage from it . Comment : one last thing : that is the FlatteringConfig object you used I couldn t find it .", "Question : I am new to Hadoop and this is my first Hadoop program . I am trying to create a Mapper class called WordMapper but it throws be the below error . The type WordMapper must implement the inherited abstract method Mapper.map Object Object OutputCollector Reporter .. . .. . Can someone please tell me where i am going wrong and suggest to overcome the problem .. . Answer : try to fulfill your Mapper parameter like this :", "Question : I heard we can use multiple mappers to read different parts of one bzip2 file in parallel in Hadoop to increase performance . But I cannot find related samples after search . Appreciate if anyone could point me to related code snippet . Thanks . BTW : is gzip has the same feature multiple mapper process different parts of one gzip file in parallel . .. . Answer : If you look at : http : comments.gmane.org gmane.comp.jakarta.lucene.hadoop.user 30662 you will find that bzip2 format is indeed splittable and multiple mappers can work on one file . The patch was submitted at : https : issues.apache.org jira browse HADOOP-4012 . However it seems it is available only above HADOOP 0.21.0 . From personal experience in order to use this technique of bzip2 there is nothing different that you need to do . hadoop should pick it up automatically depending on your min split size . bzip2 compressed data by blocks and therefore it is possible to decompress it in blocks and send each block to a separate mapper . However gzip does not have such a technique and therefore this cannot be sent to different mappers . Comment : Thanks Varun However gzip does not have such a technique and therefore this cannot be sent to different mappers . -- is there any Hadoop document claims that Comment : As I stated it is not possible to decompress gzip in parallel unless you have already decompressed that same file once serially and built a map of entry points or the gzip file has been specially prepared for parallel decompression which requires custom software for that purpose . Comment : @Varun Shingal does one has to add bzip2 to hadoop in order to use it or does it come shipped with hadoop by default thanx Comment : @theexplorer Hadoop has supported this by default I think since release 0.21.0 in 2010 . It s great . issues.apache.org jira browse HADOOP-4012 https : issues.apache.org jira browse HADOOP-4012", "Question : null .. . Answer : I have just a few weeks knowledge about Hadoop single node-cluster and map-reduce word-count and I could successfully run the mapper.py and reducer.py mentioned in Michael Noll site.But then now I am trying to modify mapper.py to suite for another algorithm and I am not getting the expected result . I have a small file containing 3 rows and 3 features only self-created and have broken down my code for mapper to find where exactly is the issue....I am unable to read files correctly.The file is read but the output of mapper broken is displaying read lines twice.There is no issue when I use stdin . Output shown .. . output of mapper.py enter image description here http : i.stack.imgur.com ajnDu.png 1 http : i.stack.imgur.com ajnDu.png .. . .. . It seems the file read operation reads twice from the input file given and so displays each input twice despite giving a for-loop that iterates 3 times only . My file contains .. . .. . .. . and my code is : .. . .. . .. . The file I have given in outf above reads form local machine but then I have copied only the same file to hdfs.I saw a few sites talking about hadoopy for file read but i would like to figure out whats going wrong here.Thanks in advance .", "Question : I have a Hive table t1 which has 104 files . Out of the 104 files 1 file is 61 MB and remaining 103 files are less than 1 MB . When I execute the query .. . .. . 29 mappers are executed along with 1 reducer . I m trying to figure out why 29 mappers and how can reduce the number of mappers Thanks .. . Answer : Try Setting the mappers using below options .. . .. . set mapred.map.tasks 20 .. . .. . also check the total blocks of your data . hdfs dfs -du -s -h apps hive warehouse .. . .. . Each block will be processed independently . Each mapper can be processed multiple blocks based on mapper numbers you are setting .", "Question : I am new to Hadoop and this is my first Hadoop program . I am trying to create a Mapper class called WordMapper but it throws be the below error . The type WordMapper must implement the inherited abstract method Mapper.map Object Object OutputCollector Reporter .. . .. . Can someone please tell me where i am going wrong and suggest to overcome the problem .. . Answer : You haven t provided any of the type parameters . Mapper is a generic interface it s parameterized with type parameters for the input and output key and value types . Fill in K1 V1 K2 and V2 in the following code with the types you need :", "Question : null .. . Answer : I am trying to implement Auto Mapper using omu.ValueInjector . My Model is like : .. . .. . View Model is like : .. . .. . Above is just an example my Model Entities will have many sub classes and sub classes will have further classes which might flatten into view model or kept as subclass . Can anyone help me to define generic mapper for transforming entities to view model or view model to entity . thanks Patrick Question is how to implement the Mapper using ValueInjector .. . .. . If i need to Map entity to model or model to entity .. . .. . The above code converts the entity s properties but not the PersonAddress properties . Even i have tried CloneInjection still not working . If you can provide some generic solution for same which help to map the classes like PersonAddress . Also would like to know which approach will be better in terms of performance and flexibility omu.ValueInjector EmitMapper Auto Mapper . Comment : Yes we can help you . What s your question Comment : maybe this will help valueinjecter.codeplex.com http : valueinjecter.codeplex.com wikipage title Automapper 20Simulation referringTitle Home Comment : Thanks I have tried MapperInjection also still it doesn t seems working as expected . PersonContacts is getting map but PersonAddress Fields are not getting map . If anyone can provide sample will be very helpful . Thanks again . Comment : Any Suggestion please... . Comment : do it manually and where possible automate it could happen that you will gradually automate all the mapping code you have", "Question : null .. . Answer : I am trying to use Hadoop MapReduce to evolve a GA system . I have written a Java program and it is working fine . But now I want to : .. . .. . run it in one map step and plot the solution in the reduce step .. . .. . or .. . .. . break it in two and add the first part in map and the second part in reduce . How can I achieve this I searched on the internet but didn t found any substantial result . My java code is :", "Question : How to map User class to UserModel class using Emit Mapper There several problems : .. . .. . I need to flatten the object such that I will have CompanyId instead of the Company object . Company object has property Id in the UserModel I have CompanyId which corresponds to the company id but property names do not match . I need to map List Role to List RoleModel Comment : I have a similar problem...did you solve it .. . Answer : To get flattened model you could check this example http : emitmapper.codeplex.com SourceControl changeset view 42128 691132 . But it seems that by default it has a convention of having sub class property name as a prefix in the target . Source .. . .. . Target .. . .. . Second one options is to let the default settings copy those properties that it can copy and manually do the rest .. . .. . Or if you need to reuse the mapping the create custom mapper .. . .. . Custom mapper .. . .. . Usage .. . .. . Update .. . .. . What comes to the Role RoleModel mapping . It seems that in this case you need to have Deep copy enabled and depending on the class es definitions you can either copy it directly or do some custom mapping .", "Question : Using biztalk-mapper I need a target node to be duplicated. . I have created a simplified version of my issue . Please see below map link for source and destination schema.. . Ooopps sorry not enough points to post images. . I need the target Option node to be duplicated for each OptionNotes . The value of OptionNotes is to be split by a pipe then map to target Code and Description . The input is as below : .. . .. . The output should be as below : .. . .. . Tried to use Looping and combination with Value Mapping but to no avail . Do I have to resort to inline xslt Comment : I know nothing about BizTalk . Why wouldn t you use XSLT to transform XML That s what it is for . Comment : As an avid BizTalker I NEVER use the mapper always XSLT but then again the question is on the mapper not how to do it in XSLT . Comment : @PieterVandenheede Why is tagged XSLT then Comment : OK didn t see that one I stand corrected . Comment : @michael.hor257k sorry thought this touches xslt . I ll remove the xslt tag . .. . Answer : We have used Mapforce which has done this easily . We then get the XSLT and import it as part of Inline XSLT scripting functoid . The XSLT produced was as below : .. . .. . Thanks everyone .", "Question : null .. . Answer : I have following type of token that as to be send as it is in request . token contains following value token ABCD saljljlkljljljl .. . .. . class Token public String token .. . .. . when I try to convert it to string using object mapper class it converts it as follows . ObjectMapper mapper new ObjectMapper mapper.writeValueAsString token .. . .. . token : ABCD saljljlkljljljl .. . .. . Note one more added in front of due to which my calls are failing.Don t no why its not reflecting even in stackoverflow reader pane also . Please help out on this . Comment : What version of everything Have you tried it in Jackson without mongo Comment : jackson core and mapper are from 1.7.1 and its with out mongo .", "Question : Hi I m currently using Sitecore 8.1 update 1 with MVC5.2.3 and Glass Mapper . I m having some issues with the Glass Mapper link field . I have created a template which is derived from Standard Rendering Parameters template in which I have used Sitecore General Link field . Also I have created Model for that : .. . .. . My model : .. . .. . My View : .. . .. . Everything is fine if I add the link from presentation details at Sitecore backend . But when I click on this component at Sitecore Page Experience Editor and insert link-to Rendering Parameters then it will give An error occurred red line indication at top of the page . I cant insert link from Page Editor mode . Please help me in this issue whether it is Glass Mapper bug or I am making any mistake Thanks . Will appreciate your suggestions . Comment : Are there any errors in your log files Check the browser console and the AJAX xhr calls that are made and check the messages of the response to tell us what error is being thrown . Comment : Your RelatedArticleParams class has a HeaderText property but your view uses @parameters.Text . Was this just a typo when creating the SO question or is that the real code .. . Answer : You should use .. . @Editable Property name of glass-mapper using the Model property . Reference http : glass.lu Mapper Sc Tutorials Tutorial22" ] }
[ "yes-answer-long", "yes-answer-short" ]
algorithm
UNK_RELATION
visual-studio-test-runner@visual-studio@164
visual-studio-test-runner -- microsoft visual-studio-2012 and later provides an open framework that allows 3rd parties to integrate their test frameworks into the @placeholder and team-build experience .
{ "confidence": [ 62.545379638671875, 58.9235725402832, 55.72637939453125, 48.94843673706055, 48.94843673706055, 47.01314926147461, 46.674495697021484, 46.52253723144531, 46.45512390136719, 45.192726135253906, 44.86151885986328, 44.512718200683594, 43.99234390258789, 43.258087158203125, 43.169647216796875, 43.07572937011719, 43.07572937011719, 43.07572937011719, 42.375633239746094, 42.09680938720703, 41.353572845458984, 41.27074432373047, 40.56812286376953, 40.54441833496094, 40.15769958496094, 39.98831558227539, 39.26554870605469, 39.26554870605469, 39.26554870605469, 38.702762603759766, 38.419593811035156, 37.62042999267578, 36.86137771606445, 36.3173942565918, 35.80766296386719, 35.455841064453125, 35.369590759277344, 35.16169738769531, 35.07628631591797, 35.07628631591797, 35.07628631591797, 34.859962463378906, 34.754981994628906, 34.03090286254883, 33.31985855102539, 33.302215576171875, 33.13946533203125, 32.671958923339844, 32.51236343383789, 32.51236343383789, 32.41998291015625, 32.37957000732422, 32.02577209472656, 31.497913360595703, 31.497913360595703, 31.497913360595703, 31.294570922851562, 31.129789352416992, 31.129789352416992, 31.129789352416992, 31.129789352416992, 31.064023971557617, 30.82625389099121, 30.584091186523438, 30.584091186523438, 30.41351318359375, 30.011730194091797, 30.004451751708984, 29.97679328918457, 29.97679328918457, 29.640682220458984, 29.490863800048828, 29.44634437561035, 29.44634437561035, 29.44634437561035, 29.44634437561035, 28.965850830078125, 28.909591674804688, 28.813905715942383, 28.69609832763672, 28.452919006347656, 28.241857528686523, 28.241857528686523, 28.241085052490234, 28.239513397216797, 28.126079559326172, 28.036930084228516, 27.402450561523438, 27.23824691772461, 27.171981811523438, 27.02492904663086, 26.767824172973633, 26.767824172973633, 26.615867614746094, 26.615867614746094, 26.615867614746094, 26.557640075683594, 26.557640075683594, 26.557640075683594 ], "content": [ "At least not with the Visual Studio 2012 Test Runner that the OP asked about which is behind the scenes vstest or vstest.console.exe .", "There is a Visual Studio Test Task .", "I m using Visual Studio Test for C++ and am debugging a specific test .", "I have implemented a custom test type for Visual Studio .", "I copied my test dll to the PrivateAssemblies directory of Visual studio .", "If you want to install a test runner manually copy all the necessary dlls to : .. . .. . C : Program Files x86 Microsoft Visual Studio version Common7 IDE CommonExtensions Microsoft TestWindow Extensions .. . .. . Replacing version with the appropriate number .", "The Visual Studio Test Runner is a simple command-line tool which needs to be called in order to find and execute the tests .", "I installed Test Controller and Test Agent and config it in visual-studio and testsettings file in Role item and set to Remote execution .", "We are using Visual Studio 2012 - update 2 .", "I am using Visual Studio Team Service with the new scriptable Build system .", "I am trying to change the Settings under BuildDefinition-- Procees-- Test-- Automated tests-- Test Source-- Add Edit Test Run in visual-studio-2013 .", "Just close and re-open Visual Studio 2015 may help .", "I found just one warning in the build log under Run Visual Studio Test Runner for Test Sources : Dependent Assembly Newtonsoft.Json Version 4.5.0.0 Culture neutral PublicKeyToken 30ad4fe6b2a6aeed of C : Builds2 56 614 bin External Microsoft.TeamFoundation.TestManagement.Common.dll not found .", "When I open Visual Studio 2013 and load my solution I m greeted by an error message telling me the Test Window is unable to load .", "It appears that NuGet somehow instructs Visual Studio to create the VisualStudioTestExplorerExtensions folder on each build putting the necessary XUnit test adapter dll s e.g . xunit.runner.visualstudio.testadapter.dll in that folder .", "After some research found that I will need to pass the test adapter for visual-studio which makes the tests discover-able .", "Here s the complete command .. . .. . There is a nuget packahe available for xunit visual studio test adapter xunit.runner.visualstudio.0.99.2", "I think this has something to do with the XUnit test adapter that Visual Studio uses to find XUnit tests .", "Visual Studio is unable to run tests at all .", "The MS Test Explorer then uses this test adapter to find XUnit test see SO Question http : stackoverflow.com questions 29399970 visual-studio-and-nuget-based-test-runners-adapters .", "Also see this connect issue http : visualstudio.uservoice.com forums 121579-visual-studio suggestions 3377237-run-unit-tests-in-parallel .", "I am using Visual Studio 2012 with Update 4 and Resharper 8.1 build 8.1.23.546 .", "Environment .. . .. . TFS2013.Update 2 12.0.30324.0 .. . C .. . Visual Studio 2013 .. . Visual Studio Test Runner .. . Gated Check-In .. . .. . Problem .. . .. . As shown here https : msdn.microsoft.com en-us library dd286683.aspx I decorated my TestMethod like .. . .. . As shown here https : msdn.microsoft.com en-us library ms253138.aspx Runner VS Filter I filtered like .. . .. . When I build without any filter the TestRun run successfully with all unit tests .", "LOCALAPPDATA Microsoft VisualStudio 12.0 ComponentModelCache .. . .. . Now restart Visual Studio and it should work again .", "You can use Chutzpah http : chutzpah.codeplex.com for that .. . .. . With Chutzpah you can run your tests from command-line and integrate your tests with Visual Studio Test Explorer .", "If have used the below filter cases with no joy : .. . .. . I am running this on Visual Studio 2012 Update 4 with TFS 2012 Update 4 .. . .. . Many Thanks", "You can install Chutzpah from Visual Studio Tools Extensions and updates .", "Close all instances of Visual Studio then navigate to folder and delete it .", "I don t have the component model cache in visual-studio-2013 .", "I tried without success .. . .. . .. . to put the filter in quotation : .. . .. . .. . to separate the attributes : .. . .. . .. . a similar question has been posted here http : stackoverflow.com questions 27799259 visual-studio-test-runner-criteria-is-filtering-all-tests but I can t revert back to using the old default.xaml .", "Recently I came to know about the nuget based adapter runner http : xunit.github.io docs running-tests-in-vs.html .. . .. . I was trying to understand how these runners adapters are recognized by Visual Studio and then used by the TestWindow .", "This is how I m running tests in Visual Studio for TypeScript : stevefenton.co.uk Content Blog Date 201302 Blog http : www.stevefenton.co.uk Content Blog Date 201302 Blog Include-JavaScript-And-TypeScript-Tests-In-Visual-Studio", "MSTest did which was the test runner in VS2010 and which the link you provided is about .", "I just started with Microsoft Test Manager 2015 and build two test cases .", "The adapter does work when installed by copying the relevant files to C : Program Files x86 Microsoft Visual Studio 12.0 Common7 IDE CommonExtensions Microsoft TestWindow Extensions .", "I am looking for some specific information around it and have posted a question @ stackoverflow.com questions 29399970 http : stackoverflow.com questions 29399970 visual-studio-and-nuget-based-test-runners-adapters .", "To do that I need to know which tests are going to run dynamicly whether it s started by vs test-plan or resharper test runner .", ".. . vstest.executionengine.exe Managed v4.0.30319 : Loaded C : PROGRAM FILES X86 MICROSOFT VISUAL STUDIO 11.0 COMMON7 IDE COMMONEXTENSIONS MICROSOFT TESTWINDOW Extensions CppUnitFramework Microsoft.VisualStudio.TestTools.CppUnitTestFramework.TestEngine.dll vstest.executionengine.exe Managed v4.0.30319 : Loaded C : PROGRAM FILES X86 MICROSOFT VISUAL STUDIO 11.0 COMMON7 IDE COMMONEXTENSIONS MICROSOFT TESTWINDOW Extensions CppUnitFramework Microsoft.VisualStudio.TestTools.CppUnitTestFramework.Discoverer.dll .. . .. . The thread 0xa64 has exited with code 0 0x0 .", "I want Remove Cookies of application in visual-studio webtest how can i do it", "xunit.runner.visualstudio on Visual Studio following the documentation http : xunit.github.io docs getting-started-desktop.html .", "It s almost as-if i need to instruct Visual Studio to look in that folder but I can t see any obvious way of doing that .", "Are you starting your tests using MTM Microsoft Test Manager", "I am trying to implement a custom Test Adapter all the files are bellow : .. . .. . TSTestDiscoverer.cs http : pastebin.com UYdS0Tcg .. . TSTestExecutor.cs http : pastebin.com YAWXzLcM .. . TSTestContainer.cs http : pastebin.com H02Npyzg .. . TSTestContainerDiscoverer.cs http : pastebin.com D6uP0G7J .. . VsSolutionHelper.cs http : pastebin.com 8VH9wgkp from XMLTestDiscoverer source code http : blogs.msdn.com b visualstudioalm archive 2012 07 31 writing-a-visual-studio-2012-unit-test-adapter.aspx .. . .. . Using .. . .. . I confirmed that the extension is installed and it is listed on the test discoverers .", "I always get the following exceptions after my test has already completed and the test runner is in the process of shutting down .", "When using Microsoft Visual Studio s built-in unit-testing framework how do I compare two collections that contain nested collections for equality when child collections are considered equal if their contents are equal", "Each test looks like this : .. . .. . This is the output.. .", "But this is not a solution since you don t copy each unit test dll to Visual Studio s PrivateAssemblies directory .", "We are using Visual Studio 2012 with the nUnit Test Runner extension as shown here : http : nunit.org index.php p vsTestAdapter r 2.6.2 http : nunit.org index.php p vsTestAdapter r 2.6.2 .. . .. . Is there some hidden timeout in nUnit or the test runner that we need to change to get our tests no matter how long they take to pass or is there some other problem at work here", "Hint for people with a similiar problem : It may also help to increase the MaxLevelsForItemContainer value in the mtm.exe.config file that is located in Common7 IDE of your Visual Studio installation folder .", "I still doesn t make sense to me that it is working locally on every developer machine when i run the tests from Visual Studio .", "It appears to be a problem setting with the test runner plugin itself", "Though I have given test-plan details .", "Microsoft has provided all kinds of ways to run the test in the debugger but none that I really like .", "I have R set to be my unit test runner and I ve noticed that as soon as I run any unit tests one or many pass or fail makes no difference the Visual Studio text-editor becomes almost unusable .", "I then tried the R performance optimisation tips as described here - The Ultimate Guide to speeding up Resharper http : confluence.jetbrains.com display NETCOM Ultimate+Guide+to+Speeding+Up+ReSharper+ 28and+Visual+Studio 29 and the only one that worked after many restarts was the disabling the Unit Test Runner .", "More detail here : social.msdn.microsoft.com Forums vstudio en-US https : social.msdn.microsoft.com Forums vstudio en-US d187aeb9-eac1-4f24-81f4-de0b153b0bc2 visual-studio-test-runner-criteria-is-filtering-all-tests forum tfsbuild 9a3cc591-ec84-4706-967f-9b9c32a93048", "Had the same question and found the answer : how-to-retrieve-the-id-of-the-workitem-that-started-an-automated-test http : stackoverflow.com questions 17995330 how-to-retrieve-the-id-of-the-workitem-that-started-an-automated-test 18272068 18272068 .. . .. . Basically you get it from the TestContext with string tcId TestContext.Properties Tfs TestCaseId .ToString", "Or does each individual test run in it s own thread", "What I found interesting is that the TestClass is constructed once for EACH test .", "It has been changed by default there isn t test interleaved execution .", "I am trying below C code to create TFS test run .", "You can use the test frameworks that support multiple threaded execution to run the testing in parallel with multiple cores machines or distribute your test to multiple machines .", "How to capture Current Test Case ID that s current being run in the MTM using C code .. . .. . thanks Regards .. . .. . woodson", "In VS 2013 there seems to be no option to select MSTest instead of VsTest in the Test Runner Dropdown which is also grayed out .", "Do we need to upgrade to TFS2015 do I need to point TFS2013s Test Runner at 2015 if so how", "@CarloV.Dango Stated question is test if equal .", "As soon as I re-enable the R test runner the problem comes back .", "I ve tried setting my test project as startup but that makes F5 unable to start because the test is a DLL .", "I have a few test sets in a single TFS build definition .", "Below is a screen shot of my build definition and my automated test configurations .", "I suspect that this is an actual bug in Visual studio and that it ll be fixed in a future timeframe but until then these two options might help someone else figure out what s going wrong as well .", "And that would cost several minutes per test .", "All tests run on the same thread .. . .. . Or does each individual test run in it s own thread", "I built a test project that contains 3 unit tests just outputting info to a file using Nlog .", "I thought each class s cleanup would run after the last test for that class was done .", "Error .. . .. . An exception of type Microsoft.TeamFoundation.TestManagement.WebApi.TestObjectNotFoundException occurred in mscorlib.dll but was not handled in user code .. . .. . Additional information : Test plan 0 not found .", "I m not seeing a setting in the build definition and I ve seen test setting files being used to set this but I m not sure where to set the test setting file in the build definition .", "For example if i selected TestMethod1 and TestMethod3 in my test-plan and run those two testcases i need to get the test method information of TestMethod1 and TestMethod3 .", "All of them are based on referencing both ts and js file like .. . .. . Unfortunately when I try to reference js file I am getting the following error : .. . .. . If there is no reference test runner doesn t load js file under test and test fails to execute .", "My next action is to exclude from code-coverage the auto-generated web proxy classes that are created by Visual Studio when you add a service-reference .", "You can still create a custom build-process template that runs the old runner but be aware that the old MsTest runner is in fact considered deprecated .", "The custom test type reads its test elements from dlls .", "The test elements are loaded and are displayed on the Test View tool window .", "Is there a way to hook F5 to run the selected test s in the debugger", "I could of course wrap each test with try-catch and add a flag which I can later query but I was wondering if there is something built-in to the testing framework .", "The ability to select MsTest in the Build Definitions of Team Build 2013 is no longer available in the default build-process templates .", "Make sure that installed test discoverers executors platform framework version settings are appropriate and try again .", "Usually you need to run test from 2015 when build from 2015 .", "I put my dll in Visual studio s PrivateAssemblies directory an it solve the problem .", "The post by the Chutzpah creator Matthew Manela is also very useful http : matthewmanela.com blog anatomy-of-the-chutzpah-test-adapter-for-vs-2012-rc", "That test fails and the other tests proceed .", "I guess I need to launch some test runner exe with appropriate command-line but am struggling to find information on this .", "As long as the test runner is installed properly it should just pick up these tests and execute them .", "Ideally I want to run tests in VS test explorer or Resharper test session .", "If my test code throws an exception it seems it is just swallowed up even when I run the test in Debug mode .", "How I solved it : .. . .. . I inspected the UI test that was generated by MTM by loading it into a Coded UI Test Project .", "For example if I install xunit.runner.visualstudio nuget-package all the xUnit based tests in my project are discovered and displayed in the Test Window .", "I am trying to understand how does VS hook the Test Discovery using the package installed in packages folder", "Something triggers test discovery - rebuild always does sometimes incremental builds do too ." ] }
{ "confidence": [ 65.42414855957031, 64.23027801513672, 61.035186767578125, 58.84280776977539, 56.99638748168945, 55.51282501220703, 55.50591278076172, 52.246219635009766, 51.845245361328125, 51.43278503417969, 50.156028747558594, 50.07701110839844, 49.78688049316406, 49.71767044067383, 49.46048355102539, 49.176971435546875, 48.98637390136719, 48.367774963378906, 46.38768005371094, 46.13517379760742 ], "content": [ "Question : Does each Class containing tests run in it s own thread Or does each individual test run in it s own thread If each Class containing tests has its own thread are these run concurrently ie would tests from class A run concurrently with tests from Class B Or would class A s tests run each on their own thread followed by tests from Class B each on their own thread Comment : VSTest.Console.Exe use single thread which is opposite to MSTest that uses multiple threads Forcing MSTest to use a single thread http : stackoverflow.com q 5037447 .. . Answer : Also note that if your unit tests are thread safe you do have the option to apply threading and have the tests execute in parallel . See this blog post from Microsoft http : blogs.msdn.com b vstsqualitytools archive 2009 12 01 executing-unit-tests-in-parallel-on-a-multi-cpu-core-machine.aspx . Comment : No you don t . At least not with the Visual Studio 2012 Test Runner that the OP asked about which is behind the scenes vstest or vstest.console.exe . That does not support threading . MSTest did which was the test runner in VS2010 and which the link you provided is about . Also see this connect issue http : visualstudio.uservoice.com forums 121579-visual-studio suggestions 3377237-run-unit-tests-in-parallel .", "Question : I recently installed XUnit and the XUnit VS runner i.e . xunit.runner.visualstudio on Visual Studio following the documentation http : xunit.github.io docs getting-started-desktop.html . The installation process uses NuGet and on completion I can successfully see all tests in the MS Test Explorer . However if I start a new solution and reference all the required XUnit dll s i.e . I want to use XUnit without using NuGet to install it the tests never show up in MS Test Explorer no problems seeing them in the ReSharper test explorer . I think this has something to do with the XUnit test adapter that Visual Studio uses to find XUnit tests . It appears that NuGet somehow instructs Visual Studio to create the VisualStudioTestExplorerExtensions folder on each build putting the necessary XUnit test adapter dll s e.g . xunit.runner.visualstudio.testadapter.dll in that folder . The MS Test Explorer then uses this test adapter to find XUnit test see SO Question http : stackoverflow.com questions 29399970 visual-studio-and-nuget-based-test-runners-adapters . When I attempt to use XUnit without NuGet the VisualStudioTestExplorerExtensions folder never gets created on build . Adding the folder manually with all XUnit dll s in it also doesn t work . It s almost as-if i need to instruct Visual Studio to look in that folder but I can t see any obvious way of doing that . How do I use install XUnit without using NuGet Or how do I get VS to look in the VisualStudioTestExplorerExtensions when looking for tests .. . Answer : If you want to install a test runner manually copy all the necessary dlls to : .. . .. . C : Program Files x86 Microsoft Visual Studio version Common7 IDE CommonExtensions Microsoft TestWindow Extensions .. . .. . Replacing version with the appropriate number . The drawback here is that this is machine wide maybe desirable in your case and that you can t quite as easily replicate this setup on a build-server . You also will probably have to restart VS whenever you make changes to these files .", "Question : Environment .. . .. . TFS2013.Update 2 12.0.30324.0 .. . C .. . Visual Studio 2013 .. . Visual Studio Test Runner .. . Gated Check-In .. . .. . Problem .. . .. . As shown here https : msdn.microsoft.com en-us library dd286683.aspx I decorated my TestMethod like .. . .. . As shown here https : msdn.microsoft.com en-us library ms253138.aspx Runner VS Filter I filtered like .. . .. . When I build without any filter the TestRun run successfully with all unit tests . But when I tried to filter over TestCaterory no TestRun started at all . I tried without success .. . .. . .. . to put the filter in quotation : .. . .. . .. . to separate the attributes : .. . .. . .. . a similar question has been posted here http : stackoverflow.com questions 27799259 visual-studio-test-runner-criteria-is-filtering-all-tests but I can t revert back to using the old default.xaml . .. . I found just one warning in the build log under Run Visual Studio Test Runner for Test Sources : Dependent Assembly Newtonsoft.Json Version 4.5.0.0 Culture neutral PublicKeyToken 30ad4fe6b2a6aeed of C : Builds2 56 614 bin External Microsoft.TeamFoundation.TestManagement.Common.dll not found . Can be ignored if not a NUnit project . - I added the reference to Newtonsoft.Json in every single NUnit-Project in all the solutions that were build during the gated check-in - also without success . .. . Answer : The problem was not the TestCategory but another pretty simple one : .. . The unittest-project in which the broken testmethod resides was not part of projects to Build of the Build Definition .", "Question : I ve found couple of examples of running unit tests for typescript . All of them are based on referencing both ts and js file like .. . .. . Unfortunately when I try to reference js file I am getting the following error : .. . .. . If there is no reference test runner doesn t load js file under test and test fails to execute . Any ideas Ideally I want to run tests in VS test explorer or Resharper test session . Comment : Can you share an example of one of the articles - I can t imagine why you would include a reference comment that links to a JavaScript file Comment : This is how I m running tests in Visual Studio for TypeScript : stevefenton.co.uk Content Blog Date 201302 Blog http : www.stevefenton.co.uk Content Blog Date 201302 Blog Include-JavaScript-And-TypeScript-Tests-In-Visual-Studio Comment : Nice setup @SteveFenton .. . Answer : You can use Chutzpah http : chutzpah.codeplex.com for that .. . .. . With Chutzpah you can run your tests from command-line and integrate your tests with Visual Studio Test Explorer . Chutzpah allows you decide if you want to run the tests from .ts files .js files .html files or from all of them . It also allows you to load external .js files e.g . dependent libraries from your .ts unit test file with its specific : .. . .. . Your unit tests can be written in TypeScript . You can install Chutzpah from Visual Studio Tools Extensions and updates . Comment : That is cool but I guess it does not support Generics yet v2.4 . Is there any alternative", "Question : In VS 2013 there seems to be no option to select MSTest instead of VsTest in the Test Runner Dropdown which is also grayed out . Is there a way I can add Mstest to this list as was the case in Vs 2010 . Thanks Comment : The short answer is probably : No . But I m a little unclear about the place you re trying to set this option . Could you edit your question and add a little more detail where you re expecting the setting you re trying to change Comment : I am trying to change the Settings under BuildDefinition-- Procees-- Test-- Automated tests-- Test Source-- Add Edit Test Run in visual-studio-2013 . .. . Answer : The ability to select MsTest in the Build Definitions of Team Build 2013 is no longer available in the default build-process templates . You can still create a custom build-process template that runs the old runner but be aware that the old MsTest runner is in fact considered deprecated . The dropdown is disabled and there is no way to enable it in the out-of-the-box build-process templates . Comment : ok that is what is thought I might have to do to build a custom template . Agreed will definitely want to avoid it . Thanks", "Question : null .. . Answer : I am using Visual Studio Team Service with the new scriptable Build system . There is a Visual Studio Test Task . The problem I am facing is that the app.configs of a unit-test project are not always deployed into the TestResult.. . Out folder . But this files contain important settings we are using CSLA . What is interesting is that for some test projects the files get copied . I checked the property window but there is no difference . We are using VS2015 . Comment : You may need to specify DeploymentItem as described in Test environment does not copy my files http : stackoverflow.com q 9096884 Comment : I am going now a complete different way . Wrote my own script to deploy all config files necessary for the test . I still doesn t make sense to me that it is working locally on every developer machine when i run the tests from Visual Studio .", "Question : When I open Visual Studio 2013 and load my solution I m greeted by an error message telling me the Test Window is unable to load . Visual Studio is unable to run tests at all . Closing an re-opening the test window shows the same error . .. . Answer : This seems to be caused by a corruption in the Component Model Cache . Close all instances of Visual Studio then navigate to folder and delete it . LOCALAPPDATA Microsoft VisualStudio 12.0 ComponentModelCache .. . .. . Now restart Visual Studio and it should work again . Comment : I don t have the component model cache in visual-studio-2013 . How do I fix this error Comment : I have the same error and although I did have component model cache removing it did not solve the problem for me . Comment : I will keep that suggestion in my toolbox . As it turns out after I removed the component model cache AND THEN EXITED AND RESTARTED VS the problem was cleared .", "Question : When I open Visual Studio 2013 and load my solution I m greeted by an error message telling me the Test Window is unable to load . Visual Studio is unable to run tests at all . Closing an re-opening the test window shows the same error . .. . Answer : Just close and re-open Visual Studio 2015 may help .", "Question : I ve got a fairly small C solution with about 5 projects in it . I am using Visual Studio 2012 with Update 4 and Resharper 8.1 build 8.1.23.546 . It s on an I7 with an SSD and 16GB RAM with oodles of disk space . Performance on this machine is fantastic for everything else . I have R set to be my unit test runner and I ve noticed that as soon as I run any unit tests one or many pass or fail makes no difference the Visual Studio text-editor becomes almost unusable . Typing into the editor window suffers such extreme lag up to 1 second between keystrokes that it completely breaks down the development flow . Sometimes I actually have to stop typing to let the keystrokes catch up so that I can look up something in Intellisense . The problem persists until I close down and then reopen VS at which point everything is fine again . Until I run another unit test . Then it s back again . I ve run Process Monitor to see if that turned up anything it didn t and I ve tried various things like cleaning out various caches temporary asp.net files resetting settings all to no effect in fact basically pretty much all the options presented at Google search results for VS being really slow http : www.google.com.au search q Visual 20studio 202012 20typing 20really 20slowly .. . .. . However process of elimination did eventually narrow everything down to being a problem with Resharper and specifically the test runner . I then tried the R performance optimisation tips as described here - The Ultimate Guide to speeding up Resharper http : confluence.jetbrains.com display NETCOM Ultimate+Guide+to+Speeding+Up+ReSharper+ 28and+Visual+Studio 29 and the only one that worked after many restarts was the disabling the Unit Test Runner . I ve since disabled the R test runner and reverted to the built-in VS one which I hate and the problem went away immediately . As soon as I re-enable the R test runner the problem comes back . Has anyone else experienced this problem and found a solution Cheers : Comment : I am having the same issue . Typing is fast in normal files but when I edit a unit test file it lags . I thought it was code-analysis that was doing it because using Ctrl+Alt+Shift+8 disable code-analysis for the current file seemed to help . However non-unit test files were fine . Then I unchecked Enable Unit Testing and the problem went away regardless of the code-analysis settings . I do not have a solution . Comment : @JeremyRoberts I think this may have been fixed with a new R version 8.2.x EAP see my answer below Hopefully it works for you too .. . Answer : This appears to have been fixed in the latest 8.2 EAP build I downloaded and installed 8.2.0.1139 this morning . I closed VS2012 install R and get it to remove conflicting products . When I reopened VS it had clobbered all the R extension tools presumably because it s not a stable build . I also told it to disable support for NUnit because we re not using it in the unit-testing options tho this made no difference before . I can now run unit tests using the R runner it s a LOT quicker as well and there s no enforced typing-speed slowdown in the IDE any more .", "Question : I ve written a native unit test dll that uses VS2012 s CppUnitTestFramework . I can run these tests in the VS2012 s IDE in the Test Explorer window . But I d like to also run these tests from our MsBuild script . I guess I need to launch some test runner exe with appropriate command-line but am struggling to find information on this . Can you help point me in the right direction . Thanks . Comment : Yes I might need help with the tag on this question . Note that this is not CppUnit and it s not MSTest . .. . Answer : The Visual Studio Test Runner is a simple command-line tool which needs to be called in order to find and execute the tests . Creating a small msbuild-task or using the standard exec task would be enough to invoke the tests after the build . As long as the test runner is installed properly it should just pick up these tests and execute them . See this blog post explaining all the command-line intricacies of the new vstest.console.exe http : blogs.msdn.com b bhuvaneshwari archive 2012 06 16 vstest-console-exe-commandline-test-runner.aspx .", "Question : null .. . Answer : We have some Selenium tests built with nUnit that take quite a while to complete . We are finding that they stay in the Not run tests grouping even though they should pass . After some initial investigation we found that if we remove some long running steps the tests will pass correctly but as soon as we shove a sleep in the code that waits for a couple of minutes the problem comes back . We are using Visual Studio 2012 with the nUnit Test Runner extension as shown here : http : nunit.org index.php p vsTestAdapter r 2.6.2 http : nunit.org index.php p vsTestAdapter r 2.6.2 .. . .. . Is there some hidden timeout in nUnit or the test runner that we need to change to get our tests no matter how long they take to pass or is there some other problem at work here Comment : Do you get the same issue running it on the command-line or using the NUnit GUI Comment : If we use nUnit directly it passes fine . It appears to be a problem setting with the test runner plugin itself Comment : Seems to be a bug in the adapter . It would be cool if you would open a bug with some reproduction code on the project s github page : github.com nunit nunit-vs-adapter https : github.com nunit nunit-vs-adapter", "Question : I have implemented a custom test type for Visual Studio . The custom test type reads its test elements from dlls . My ITip implementation is working like a charm . The test elements are loaded and are displayed on the Test View tool window . When I select the test elements and run them they end up in a Not Executed status . While debugging this issue I found out that a FileNotFoundException is thrown from QTAgent32.exe . It tells me that it cannot find the dll that defines the test cases . Also it fails before my TestAdapter.Initialize method is called . I copied my test dll to the PrivateAssemblies directory of Visual studio . When I do that my test elements pass . I can also debug the code in my custom test adapter . So the meaning of all of this is that QTAgent32.exe cannot find my test dll in its original directory . My question is what should I do to make QTAgent32 find my test dll in the original directory For completenes I add my Tip Load method code : Comment : Always Highlight the Question to understand the key points very quickly : Comment : @Venkat - what do you mean highlight Make it bold .. . Answer : Have you tried just putting the dll in the same directory as the executable Forgive the obviousness of that but sometimes its the really simple things that bite us . But it s in the GAC right Comment : Like I said in the question I did it . I put my dll in Visual studio s PrivateAssemblies directory an it solve the problem . But this is not a solution since you don t copy each unit test dll to Visual Studio s PrivateAssemblies directory . Comment : Ah I didn t read that correctly . Some things to try - have you stopped and started the agent Perhaps it needs to be fully restarted according to this link given that it is misbehaving : blogs.msdn.com b girishp archive 2012 03 09 http : blogs.msdn.com b girishp archive 2012 03 09 tfs-2010-build-controlling-qtagent32-exe-the-test-agent-process-startup-and-termination-from-within-build-workflow.aspx It doesn t state your specific issue but I m wondering if perhaps there is something related here.. . you can use sc mymachine stop vsttagent and sc mymachine start vsttagent Comment : sorry I don t think this is relevant since I am running my tests from visual studion and not from TFS . Comment : That is correct and as I mentioned I most certainly would have left it as a comment rather than an answer but it just isn t an answer . But thankfully this morning I find myself over the comment hurdle in terms of reputation . I hope you find a solution to the problem . Rgds....Matt", "Question : I ve got a fairly small C solution with about 5 projects in it . I am using Visual Studio 2012 with Update 4 and Resharper 8.1 build 8.1.23.546 . It s on an I7 with an SSD and 16GB RAM with oodles of disk space . Performance on this machine is fantastic for everything else . I have R set to be my unit test runner and I ve noticed that as soon as I run any unit tests one or many pass or fail makes no difference the Visual Studio text-editor becomes almost unusable . Typing into the editor window suffers such extreme lag up to 1 second between keystrokes that it completely breaks down the development flow . Sometimes I actually have to stop typing to let the keystrokes catch up so that I can look up something in Intellisense . The problem persists until I close down and then reopen VS at which point everything is fine again . Until I run another unit test . Then it s back again . I ve run Process Monitor to see if that turned up anything it didn t and I ve tried various things like cleaning out various caches temporary asp.net files resetting settings all to no effect in fact basically pretty much all the options presented at Google search results for VS being really slow http : www.google.com.au search q Visual 20studio 202012 20typing 20really 20slowly .. . .. . However process of elimination did eventually narrow everything down to being a problem with Resharper and specifically the test runner . I then tried the R performance optimisation tips as described here - The Ultimate Guide to speeding up Resharper http : confluence.jetbrains.com display NETCOM Ultimate+Guide+to+Speeding+Up+ReSharper+ 28and+Visual+Studio 29 and the only one that worked after many restarts was the disabling the Unit Test Runner . I ve since disabled the R test runner and reverted to the built-in VS one which I hate and the problem went away immediately . As soon as I re-enable the R test runner the problem comes back . Has anyone else experienced this problem and found a solution Cheers : Comment : I am having the same issue . Typing is fast in normal files but when I edit a unit test file it lags . I thought it was code-analysis that was doing it because using Ctrl+Alt+Shift+8 disable code-analysis for the current file seemed to help . However non-unit test files were fine . Then I unchecked Enable Unit Testing and the problem went away regardless of the code-analysis settings . I do not have a solution . Comment : @JeremyRoberts I think this may have been fixed with a new R version 8.2.x EAP see my answer below Hopefully it works for you too .. . Answer : I have improved my performance by going to CodeMaid - Configuration.. . - Digging Spade - General and unchecking Synchronize outlining with the code file . Resharper code-analysis and unit-testing is on .", "Question : I ve found couple of examples of running unit tests for typescript . All of them are based on referencing both ts and js file like .. . .. . Unfortunately when I try to reference js file I am getting the following error : .. . .. . If there is no reference test runner doesn t load js file under test and test fails to execute . Any ideas Ideally I want to run tests in VS test explorer or Resharper test session . Comment : Can you share an example of one of the articles - I can t imagine why you would include a reference comment that links to a JavaScript file Comment : This is how I m running tests in Visual Studio for TypeScript : stevefenton.co.uk Content Blog Date 201302 Blog http : www.stevefenton.co.uk Content Blog Date 201302 Blog Include-JavaScript-And-TypeScript-Tests-In-Visual-Studio Comment : Nice setup @SteveFenton .. . Answer : There is absolutely no reason to include a reference to a JS file : .. . .. . The use for reference is to provide the compiler with information about type info present in another file . It has no runtime implications only compile-time implications . And all the compile-time implications typeinfo code generation are taken into account when you did : Comment : Back at that time test runners were using these references to load modules", "Question : When I open Visual Studio 2013 and load my solution I m greeted by an error message telling me the Test Window is unable to load . Visual Studio is unable to run tests at all . Closing an re-opening the test window shows the same error . .. . Answer : Deleting solution.v12.suo and solution.suo can help resolve the problem as well .", "Question : I always get the following exceptions after my test has already completed and the test runner is in the process of shutting down . Is this normal I always feel rather concerned when I get a bunch of random exceptions. . .. . .. . The thread 0xc04 has exited with code 0 0x0 . .. . A first-chance-exception of type System.ComponentModel.Win32Exception occurred in System.ServiceModel.dll .. . .. . A first-chance-exception of type System.Threading.ThreadAbortException occurred in mscorlib.dll .. . .. . System.Transactions Critical : 0 : http : msdn.microsoft.com TraceCodes System ActivityTracing 2004 07 Reliability Exception Unhandled Unhandled exceptionvstest.executionengine.exeSystem.AppDomainUnloadedException mscorlib Version 4.0.0.0 Culture neutral PublicKeyToken b77a5c561934e089Attempted to access an unloaded AppDomain . System.AppDomainUnloadedException : Attempted to access an unloaded AppDomain . .. . The thread 0xdd8 has exited with code 0 0x0 . .. . vstest.executionengine.exe Managed v4.0.30319 : Loaded C : PROGRAM FILES X86 MICROSOFT VISUAL STUDIO 11.0 COMMON7 IDE COMMONEXTENSIONS MICROSOFT TESTWINDOW Extensions CppUnitFramework Microsoft.VisualStudio.TestTools.CppUnitTestFramework.TestEngine.dll vstest.executionengine.exe Managed v4.0.30319 : Loaded C : PROGRAM FILES X86 MICROSOFT VISUAL STUDIO 11.0 COMMON7 IDE COMMONEXTENSIONS MICROSOFT TESTWINDOW Extensions CppUnitFramework Microsoft.VisualStudio.TestTools.CppUnitTestFramework.Discoverer.dll .. . .. . The thread 0xa64 has exited with code 0 0x0 . .. . A first-chance-exception of type System.InvalidOperationException occurred in Microsoft.VisualStudio.TestPlatform.TestExecutor.Core.dll .. . .. . A first-chance-exception of type System.ServiceModel.CommunicationObjectAbortedException occurred in System.ServiceModel.dll .. . .. . etc . .. . Answer : Configuring DTC solved my problem . http : www.devexpress.com Support Center Question Details Q434480 Comment : Absolutely helped In case the image will disappear in the future : Goto Control Panel Admin Tools - Component Service . In the UI tree on the left choose Console Root - Component Service - Computers - Distributed - Local DTC rightclick - properties . In this UI on the tab Security toggle the checkboxes on : Allow remove clients allow remote administration allow inbound allow outbound no authentication required . Comment : same problem unstable VS2013 update 4 I say . - - Comment : This doesn t seem like a very safe thing to do .", "Question : Using VS 2013 and TFS 2013 I have 4 unit tests but I want a TFS build to run only one of them . For this I have assigned TestCategory bvt as an attribute of the method . enter image description here http : i.stack.imgur.com zcFcZ.png .. . .. . I edit the build definition and within the Add Edit Test Run dialog I give a value for Test case filter : of TestCategory bvt .. . .. . enter image description here http : i.stack.imgur.com ul9Ax.png .. . .. . With the filter added no tests are executed . If I remove the filter then a team-build using ReleaseTfvcTemplate.12.xaml result in all 4 tests being executed . I ve tried wrapping the filter in quotes etc but haven t been able to get it to work - where am I going wrong Comment : Given TestMethod this seems to be MSTest as opposed to NUnit right Comment : Yes I m using MS Test . More detail here : social.msdn.microsoft.com Forums vstudio en-US https : social.msdn.microsoft.com Forums vstudio en-US d187aeb9-eac1-4f24-81f4-de0b153b0bc2 visual-studio-test-runner-criteria-is-filtering-all-tests forum tfsbuild 9a3cc591-ec84-4706-967f-9b9c32a93048 .. . Answer : I solved this by reverting back to using the old default.xaml rather the the new TfsDefault.xaml", "Question : null .. . Answer : I m using Visual Studio Test for C++ and am debugging a specific test . Microsoft has provided all kinds of ways to run the test in the debugger but none that I really like . I am getting tired of having to go find the test code and then press Ctrl+R Ctrl+T or mousing around which I hate . I want Ctrl+R Ctrl+T behavior from any source code context . Is there a way to hook F5 to run the selected test s in the debugger I ve tried setting my test project as startup but that makes F5 unable to start because the test is a DLL . Comment : I would really like this behavior as well .", "Question : I am trying to run below command on my build-server .. . .. . It generates TestResults folder which is empty but doesnt have any TRX files . Edit : Getting below warning from command-line . However dont see that when I run command in my local machine . Am I missing something in my testproject Warning : No test is available in C : UnitTest MyTests.dll . Make sure that installed test discoverers executors platform framework version settings are appropriate and try again . Comment : What does the output say There should be a line in there like Result File : .. . . Comment : I am doing it from custom utility which runs this command using process . But let me see if i can capture the command output . I will get back to you . Comment : I am getting below output from command-line : Comment : Warning : No test is available in C : UnitTest MyTests.dll . Make sure that installed test discoverers executors platform framework version settings are appropriate and try again . Comment : And that could be the reason why you re not getting a TRX file : no tests have been found and executed . .. . Answer : After some research found that I will need to pass the test adapter for visual-studio which makes the tests discover-able . Here s the complete command .. . .. . There is a nuget packahe available for xunit visual studio test adapter xunit.runner.visualstudio.0.99.2 Comment : I had same problem and this fixed my issue . Thanks", "Question : I currently have around 6000+ tests running on over 30+ projects . Some of these tests are only able to run locally so have been decorated with the attribute : .. . .. . this also applies to any functional tests these are decorated with : .. . .. . I have read a number of MSDN and user articles on this and have setup a build to run only the Functional Tests .. . .. . Question is is there a test case filter I could use that will ignore both the TestCategory Functional Tests and Manual Tests and only run the tests that have not been decorated with a TestCategory Attribute . If have used the below filter cases with no joy : .. . .. . I am running this on Visual Studio 2012 Update 4 with TFS 2012 Update 4 .. . .. . Many Thanks .. . Answer : Fix the issue by using around your filter . Also is or and is and so using x y or y z will not work . Use for not equal to evaluations . TestCaseFilter : TestCategory PreTest TestCategory PostTest TestCategory CleanUp" ] }
[ "yes-answer-long", "yes-answer-short" ]
visual-studio
UNK_RELATION
pimple@lines-of-code@126
pimple -- pimple is a small dependency-injection container for php-5 .3 that consists of just one file and one class about 50 @placeholder .
{ "confidence": [ 55.48548889160156, 54.490272521972656, 50.058799743652344, 47.986297607421875, 45.50505065917969, 44.020668029785156, 43.7243766784668, 40.586639404296875, 32.91230773925781, 30.105539321899414, 25.092391967773438, 24.96639633178711, 20.50442886352539, 20.21417999267578, 19.571697235107422, 19.561738967895508, 19.394893646240234, 17.483699798583984, 17.483699798583984, 17.349674224853516, 15.883294105529785, 15.550226211547852, 14.785039901733398, 14.049673080444336, 14.049673080444336, 14.049673080444336, 14.049673080444336, 14.049673080444336, 14.049673080444336, 14.049673080444336, 14.049673080444336, 14.049673080444336, 14.049673080444336, 14.049673080444336, 14.049673080444336, 14.049673080444336, 14.049673080444336, 14.049673080444336, 14.049673080444336, 14.049673080444336, 14.049673080444336, 13.355850219726562, 10.929092407226562, 10.929092407226562, 10.929092407226562, 10.929092407226562, 10.929092407226562, 10.929092407226562, 10.929092407226562, 10.929092407226562, 10.929092407226562, 10.929092407226562, 10.929092407226562 ], "content": [ "as pimple s namespace is in root would the php ext pimple replace the php pimple", "Your problem is the upgrade of the Pimple container .", "When i have the Pimple C extension installed do i still need the php Pimple package", "The Pimple version of Silex 2 freezes services once you get them https : github.com silexphp Pimple blob master src Pimple Container.php L116 .", "I have the Pimple C extension installed and in my phpinfo i can see that the Pimple extension is active .", "if i look at silex dev-master f.e . pimple is ofc in the composer.json and so the php class will be loaded .", "Just for you to know Pimple container which Silex application extends had the ability to pass itself the container to the services from the very first version https : github.com silexphp Pimple commit e677a530fd580e5e6036c7e0b9ce994b06480fee diff-553037d9adc48bbece4ab185700cf095R19 .", "I think if you install Pimple as a PHP extension you don t need to get it throught composer anymore .", "And particularly Pimple always passes itself into the closure - there is simply no way to pass anything else such as a subcontainer .", "PHP will use the extension s one .", "Is it common behaviour that php will first check if a class is present in php itself and then fallback to a php implementation", "Will the C extension silently override the php class", "The main reason for a container to do that would be if you have a complex setup with multiple containers that are chained one after another : ParentContainer - SubContainer .", "What follows is just if you are curious .. . .. . The advantage of passing the container again in the parameters is that it allows Silex to pass another container instance instead .", "I thought about possibility of passing different container in a parameter but couldn t find any practical way of using this .", "I also have pimple pimple in my composer.json and the php package is loaded .", "Is it just personal taste or one of them has benefits over another such as in performance memory usage or code isolation", "As far as I remember you don t need to load extension s class and namespace is the root", "This is because autoloading will only happen if you are attempting to access a class which does not already exist .", "But I understand that in theory some other container could do this .", ".. . .. . Edit : I ve run perfromance comparison of use vs parameter vs simple function : .. . .. . The first one is the slowest but overall difference is less than 25 .", "When you define an entry in the SubContainer you want to be able to fetch dependencies from the parent container which will automatically look in the subcontainer too .", "If I define a service in Silex application I can either expect the main container Application to be passed as a parameter or can take it from the current scope using use app statement .", "I have the following base lass for controller tests : .. . .. . At Silex 1.3 it worked fine but after upgrade for v2 it fails at marked line .", "Once I comment it - everything is fine .", "UPD 1 : I figured out why it fails : Cannot override frozen service helper . I understand the meaning of error but can t understand how to fix it .", "It isa test case so I need to replace it with mock test implementation of object but can t. .", "So your problem is that you are getting the helper service previously on your code .", "You should refactor your code so that you won t get the service when booting your application .", "Hi thanks for your reply .", "Actually I got it already question is - how to refactor event-listeners such as app- error or app- before", "This is part of boot process .", "In addition what is the best practices of redefining objects during the tests", "I would opt to have different config files depending on the environment dev prod test .", "Define the environment early and then configure the services based on it like the official Silex Skeleton https : github.com silexphp silex-skeleton .", "As far as i see they dont collide as i dont get any errors but how do i know that the extension is in use", "Pimple s object became available as other extension you used to PDO for instance .", "I reformulate your question here http : stackoverflow.com questions 28716313 priority-between-spl-autoload-register-and-extensions-function .", "great thx there is already an answer there feel free to place an answer here i will gladly accept", "Extension functions and classes will exist after PHP s startup meaning before the code starts to run .", "answers from hek2mgl user http : stackoverflow.com a 28716384 2814253", "And as any micro-optimization it s noticeable only if you have tens of thousands of these as the time difference between the fastest and slowest was about 1 10 000 000th of a second 0.05s for 1 million reps .", "The official documentation at http : silex.sensiolabs.org doc services.html has this snippet : .. . .. . But it can be equally written as .. . .. . and I ve seen a lot of examples of such code .", "So performance difference should not be considered .", "I think this is the preferred way because you don t need to import parent scoped variables into clousure and this should be more efficient though I didn t tested .", "Let s wait if someone provides a better answer than my comment : -", "Here is a direct answer : there is no practical difference .", "The only scenario I can see where use app wouldn t work is if you define some entries in separate files .", "Silex doesn t do that so it doesn t affect you .", "But some other containers do .", "So the subcontainer will pass the parentcontainer in the closure parameter .", "That s an advanced and rare use-case but it s interesting to know", "Thanks ." ] }
{ "confidence": [ 65.0947265625, 55.81885528564453, 52.60227584838867 ], "content": [ "Question : I have the Pimple C extension installed and in my phpinfo i can see that the Pimple extension is active . I also have pimple pimple in my composer.json and the php package is loaded . As far as i see they dont collide as i dont get any errors but how do i know that the extension is in use When i have the Pimple C extension installed do i still need the php Pimple package Will the C extension silently override the php class Is it common behaviour that php will first check if a class is present in php itself and then fallback to a php implementation Comment : I think if you install Pimple as a PHP extension you don t need to get it throught composer anymore . Pimple s object became available as other extension you used to PDO for instance . As far as I remember you don t need to load extension s class and namespace is the root Comment : if i look at silex dev-master f.e . pimple is ofc in the composer.json and so the php class will be loaded . as pimple s namespace is in root would the php ext pimple replace the php pimple Comment : I reformulate your question here http : stackoverflow.com questions 28716313 priority-between-spl-autoload-register-and-extensions-function . Comment : great thx there is already an answer there feel free to place an answer here i will gladly accept .. . Answer : PHP will use the extension s one . This is because autoloading will only happen if you are attempting to access a class which does not already exist . Extension functions and classes will exist after PHP s startup meaning before the code starts to run . answers from hek2mgl user http : stackoverflow.com a 28716384 2814253", "Question : I have the following base lass for controller tests : .. . .. . At Silex 1.3 it worked fine but after upgrade for v2 it fails at marked line . Once I comment it - everything is fine . UPD 1 : I figured out why it fails : Cannot override frozen service helper . I understand the meaning of error but can t understand how to fix it . It isa test case so I need to replace it with mock test implementation of object but can t. . .. . Answer : Your problem is the upgrade of the Pimple container . The Pimple version of Silex 2 freezes services once you get them https : github.com silexphp Pimple blob master src Pimple Container.php L116 . So your problem is that you are getting the helper service previously on your code . You should refactor your code so that you won t get the service when booting your application . Comment : Hi thanks for your reply . Actually I got it already question is - how to refactor event-listeners such as app- error or app- before This is part of boot process . In addition what is the best practices of redefining objects during the tests Comment : I would opt to have different config files depending on the environment dev prod test . Define the environment early and then configure the services based on it like the official Silex Skeleton https : github.com silexphp silex-skeleton .", "Question : If I define a service in Silex application I can either expect the main container Application to be passed as a parameter or can take it from the current scope using use app statement . The official documentation at http : silex.sensiolabs.org doc services.html has this snippet : .. . .. . But it can be equally written as .. . .. . and I ve seen a lot of examples of such code . Is it just personal taste or one of them has benefits over another such as in performance memory usage or code isolation .. . .. . Edit : I ve run perfromance comparison of use vs parameter vs simple function : .. . .. . The first one is the slowest but overall difference is less than 25 . And as any micro-optimization it s noticeable only if you have tens of thousands of these as the time difference between the fastest and slowest was about 1 10 000 000th of a second 0.05s for 1 million reps . So performance difference should not be considered . Comment : Just for you to know Pimple container which Silex application extends had the ability to pass itself the container to the services from the very first version https : github.com silexphp Pimple commit e677a530fd580e5e6036c7e0b9ce994b06480fee diff-553037d9adc48bbece4ab185700cf095R19 . I think this is the preferred way because you don t need to import parent scoped variables into clousure and this should be more efficient though I didn t tested . Let s wait if someone provides a better answer than my comment : - .. . Answer : Here is a direct answer : there is no practical difference . The only scenario I can see where use app wouldn t work is if you define some entries in separate files . What follows is just if you are curious .. . .. . The advantage of passing the container again in the parameters is that it allows Silex to pass another container instance instead . Silex doesn t do that so it doesn t affect you . But some other containers do . The main reason for a container to do that would be if you have a complex setup with multiple containers that are chained one after another : ParentContainer - SubContainer . When you define an entry in the SubContainer you want to be able to fetch dependencies from the parent container which will automatically look in the subcontainer too . So the subcontainer will pass the parentcontainer in the closure parameter . That s an advanced and rare use-case but it s interesting to know Comment : Thanks . I thought about possibility of passing different container in a parameter but couldn t find any practical way of using this . And particularly Pimple always passes itself into the closure - there is simply no way to pass anything else such as a subcontainer . But I understand that in theory some other container could do this ." ] }
[ "yes-answer-long", "yes-answer-short" ]
lines-of-code
UNK_RELATION
struts2-jquery-plugin@struts2@43
struts2-jquery-plugin -- a plugin for the @placeholder web framework that provides ajax functionality and ui widgets based on the jquery javascript-framework .
{ "confidence": [ 90.60540771484375, 52.935028076171875, 41.08906555175781, 41.004730224609375, 39.020545959472656, 38.683128356933594, 38.573219299316406, 36.2358283996582, 33.884830474853516, 33.14460754394531, 30.249248504638672, 28.927764892578125, 28.439695358276367, 27.889606475830078, 26.367740631103516, 25.36728286743164, 24.00113296508789, 23.113872528076172, 21.17529296875, 20.60379409790039, 19.496768951416016, 19.367671966552734, 19.352054595947266, 16.9361629486084, 16.290512084960938, 16.033653259277344, 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 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 .", "I wanted to know the difference between Struts2 and Struts2 jQuery tags", "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 .", "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 :", "Added struts2-jquery tag because it has 31 followers while your other sj tags have 3 followers.. .", "the second is added via plugin .", "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", "I am new to Struts2 .", "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 .", "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 .", "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 .", "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 .", "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 .", "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", "Currently I am doing struts up-gradation task struts2.0 to struts2.5 .I want to replace struts dojo tag with struts-jquery .", "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 .", "The data is obtained via an AJAX call and should be a valid HTML select element with the desired options One .", "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 .", "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": [ 87.91340637207031, 54.455265045166016, 52.86867141723633, 49.96804428100586, 47.71613693237305, 41.900665283203125, 40.35508346557617, 36.91646194458008, 30.551599502563477 ], "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" ]
struts2
UNK_RELATION
jetbrains@rubymine@205
jetbrains -- please try to avoid using this tag use one of the more specific product tags if you have a specific product question.for issues relating to using any of the jetbrains tools such as resharper @placeholder etc .
{ "confidence": [ 52.857730865478516, 44.3401985168457, 42.05474853515625, 41.818824768066406, 40.381614685058594, 39.12568664550781, 38.679298400878906, 38.48591995239258, 37.125282287597656, 36.533836364746094, 36.144290924072266, 35.44363784790039, 35.224369049072266, 34.85872268676758, 34.61976623535156, 34.60832977294922, 33.670352935791016, 33.65345001220703, 33.54523468017578, 33.40218734741211, 33.395484924316406, 33.3841552734375, 32.795108795166016, 32.63941192626953, 32.63941192626953, 32.533058166503906, 32.16657257080078, 32.03448486328125, 32.007652282714844, 31.97230339050293, 31.92095375061035, 31.254215240478516, 31.239574432373047, 31.122913360595703, 31.05528450012207, 30.98784637451172, 30.98784637451172, 30.22081756591797, 30.22081756591797, 29.77587890625, 29.679494857788086, 29.441253662109375, 29.18987464904785, 28.938722610473633, 28.928539276123047, 28.928539276123047, 28.928539276123047, 28.787202835083008, 28.693275451660156, 28.332630157470703, 27.907779693603516, 27.75625991821289, 27.502111434936523, 27.374523162841797, 27.374523162841797, 26.807100296020508, 26.477527618408203, 26.34358024597168, 26.34358024597168, 26.34358024597168, 25.81729507446289, 25.812484741210938, 25.725265502929688, 25.388029098510742, 25.36288070678711, 25.225034713745117, 25.16309356689453, 25.107967376708984, 25.07121467590332, 25.058284759521484, 24.896690368652344, 24.862327575683594, 24.68740463256836, 24.47273826599121, 24.12726593017578, 23.724369049072266, 23.566055297851562, 23.497314453125, 23.443042755126953, 23.12522315979004, 22.68621063232422, 22.68621063232422, 22.64580535888672, 22.467693328857422, 22.333099365234375, 21.90542221069336, 21.882314682006836, 21.78394317626953, 21.655269622802734, 21.62269401550293, 21.59441375732422, 21.50870704650879, 21.2913818359375, 21.112993240356445, 21.112993240356445, 20.85137176513672, 20.779083251953125, 20.599424362182617, 20.56783676147461, 20.555599212646484 ], "content": [ "Choose Jetbrains product you use .. . 3 .", "The jetbrains applications comes to mind first webstorm etc .", "I imagine this would be a problem between other combinations of JetBrains IDEs as well hence the use of the generic jetbrains tag .", "You can try to open an issue on jetBrains website.. .", "I m running the below code using POSTGRESQL in Jetbrains .", "I use SVN with JetBrains Upsource .", "Is this possible in the JetBrains IDE s", "I am using Data Grip of JetBrains in my work .", "it is a all JetBrains issue .", "Resharper is only available as a paid product .", "Too many moving parts are there and the fact that it occurs in Jetbrains product suggests that there may be something fishy with it .", "Hub allows you to manage users groups and permissions across all JetBrains team tools .", "Is there a fast way to fix spelling mistakes in jetbrains", "What gives JetBrains", "Post the actual plugin.xml or ask jetbrains .", "I want to use doT.js-Templates in JetBrains PHPStorm .", "I m newbie in github integration VCS with JetBrains products .", "You can override this default behavior by creating what Jetbrains calls a Live Template this feature exists in other Jetbrains products as well .", "I wanted to install Jetbrains Hub Youtrack on my host .", "Is there an easy way to differentiate keyword colors in WebStorm or any JetBrains IDE", "I have installed Jetbrains new Database IDE - 0XDBE .", "In Jetbrains PhpStorm 2016 it works with Run .", "It s easy to change Jetbrains products to use jdk1.7 : .. . .. . 1 .", "Apple 1.6 is still required to run JetBrains IDEs .", "Is there a JetBrains API call to attach the profiler to a child-process", "This seems to be an error with the JetBrains Resharper 9.1 Ultimate Test Runner referencing an older version of NUnit .", "Any Ideas to get this to work for version JetBrains IntelliJ 13", "I use many of the Jetbrains IDEs on a regular basis specifically Intellij Webstorm Pycharm and Rubymine and have performance issues with all of them .", "I have created my own small DSL using jetBrains MPS tool .", ".. . .. . You can find more info in this thread on the JetBrains forum : http : devnet.jetbrains.com thread 455251", "I would like to see which Vim mode I am currently in while using IdeaVIM in PyCharm or any other JetBrains IDE .", "I am using : JRE : 1.8.0 76-release-b216 x86 JVM : OpenJDK Server VM by JetBrains s.r.o", "I was trying to use the TODO window from WebStorm or any other JetBrains IDE but I get tons of TODOs from node-modules : .. . .. .", "I deleted the files in the following folder thanks to a response on the JetBrains forum from Ilya Chernikov : ProgramData JetBrains Profiler RemoteAgent SysToolsCache .. . .. . I then redeployed the current version of RemoteAgent to the server .", "Hello smart people from stackoverflow .. . .. . I own an copy of the JetBrain Suite including JetBrains ReSharper Ultimate https : www.jetbrains.com resharper .", "Can someone show me how to download jetbrains upsource on CentOS with configurations", "I m trying to run a complex PostgreSQL query on JetBrains DataGrip IDE .", "I m editing a html file in JetBrains but the root-relative URLs of stylesheets or JavaScript or any other reference is not working .", "In JetBrains IDEs PhpStorm -- is there any way to compare two fragments of a single file or parts of two distinct files", "Can you actually commit etc using PhpStorm s VCS integration", "I have reported this to the JetBrains Team https : youtrack.jetbrains.com issue RSRP-446977", "Is there a way to run code inspection provided by intelliJ-JetBrains https : www.jetbrains.com help idea 2016.1 code-inspection.html using the java code .", "None of JetBrains IDEs provide support for maxscript : and I m not aware of any custom plugins for this language .", "I have a project that uses both PHP and Python and I would like to use JetBrains IDEs in this case PhpStorm and PyCharm to work with both languages .", "I pay monthly for PyCharm and most of my projects are Python so I don t want to pay for another jetbrains IDE .", "I had to delete files from C : Users user name AppData Local JetBrains Profiler as well", "Is there a feature in JetBrains AppCode allowing to display automatically the .h associated with the opened .m file and the other way around .", "Sounds like you should contact Jetbrains support they re usually pretty good. .", "As a side note not sure if it helps but still could you please try to move ssl-certificate etc letsencrypt live example.com fullchain.pem ssl-certificate key etc letsencrypt live example.com privkey.pem to server blocks", "I have a question about debugging mode in JetBrains IDEs PyCharm WebStorm IntelliJ . . .", "Unfortunately those of us who need to use this software for our livelihood do not have much choice until JetBrains updates their software .", "If with Assembly Browsing you mean looking at the decompiled sources then JetBrains dotPeek is a free solution .", "If I can get stuff that I thought was PHPStorm specific PHP debugging support phing build tasks etc .", "On my machine this is located at : C : Program Files x86 JetBrains 0xDBE 138.551 jre jre bin .. . 3 .", "jetbrains http : i.stack.imgur.com InzKi.png .. . .. . Below image of custom.css path doesn t shows untitled as root folder .", "I am new to unit-testing please explain me how can I use unit-testing specially jsTestDriver or karma in jetBrains software .", "This is a commercial product with great support .", "Android Studio is based on JetBrains Intellij IDEA so most of the information you re looking for would be the same regarding the IDE .", "This alternative PhpStorm 9 distribution bundles JDK 1.8 customized by the JetBrains team for better performance .", "JetBrains provide an end-to-end example for ASP.Net in their on-line documentation search for Continuous Delivery to Windows Azure Web Sites or IIS", "A clearer error message would be nice but it s fair for JetBrains to require an upgrade - we can t expect them to support all future versions of NUnit in old versions of ReSharper indefinitely .", "2 If you want to use your custom domain http : local.mycompany.com then you will have to use your own web server Apache nginx IIS etc .", "14.0.23107.0 D14REL .. . .. . I also contacted the JetBrains support but when I stated that I m a student using the student discount they just silenced .", "Regarding installing a specific older package please look at this thread .", "I m a very happy JetBrains customer and I can assure you their official support channels are way better than asking for the help of volunteers in StackOverflow .", "It seems like JetBrains supports https : www.jetbrains.com help webstorm 2016.1 using-the-flow-type-checker.html flow http : flowtype.org Flow type checker but I m not seeing the flow error in the IDE .", "jetbrains 2 http : i.stack.imgur.com D6gaM.png .. . .. . All my files on server are based on root-relative reference so I need it to work here too .", "I found a plugin on the JetBrains Plugin-Site http : plugins.jetbrains.com plugin 7327 pr idea for doT-Templates .", "This is something you should inform Jetbrains about at support@jetbrains.com they would probably like to know about this problem .", "With these kinds of issues you better contact JetBrains support directly : intellij-support.jetbrains.com hc en-us requests new https : intellij-support.jetbrains.com hc en-us requests new as resolving such issue quite often requires quite a bit of information performance report IDE logs thread dumps and other stuff", "Have you set the interpreter for this specific project in the settings to the correct python instance", "WebStorm have specific JSX code autocomplete for React.js .", "I do not have any issues in youtrack but the project is present it was created when I added youtrack to it using the hub .", "@ya dimon - you asked a specific question providing a specific example and I have provided an answer that addresses what has been asked .", "UPD : .. . .. . It looks like a WebStorm bug tested on the latest release : .. . .. . I think you could contact JetBrains support probably they will fix it .", "enter image description here http : i.stack.imgur.com 32sOV.png .. . .. . Note : I found a similar post https : devnet.jetbrains.com thread 313041 on the jetbrains forum but there did not seem to be any resolution posted there either .", "dashDB shares technology with DB2 LUW and you need to use the DB2 LUW-specific connection type not the one for DB2 on IBM i AS 400 .", "But I m not sure what another problem is that I need the app to run from local.mycompany.com instead of localhost in my machine it s set up in the hosts-file and works fine but when I try to set the debugger url as http : local.mycompany.com : 63342 angular index.html I just get jetbrains 404 page .", "try RC3 of 9.2 : confluence.jetbrains.com display ReSharper ReSharper+9.2+EAP https : confluence.jetbrains.com display ReSharper ReSharper+9.2+EAP", "Same thing with gv go view gm go model etc .", "I am building a plugin for the jetbrains intellij platform in java and I am depending on user input from .. . .. . But the code continues executing before the response from the user has come back .", "Basically can I import the intelliJ engine Or factory from plugins of a community edition https : github.com JetBrains intellij-community to create a project on my own to inspect a piece of code", "I ve tried all the usual performance recommendations such as increasing VM options disabling plugins exluding folders using scopes etc .", "I do not know what you are using it . . but in front end these days tools like Gulp Grunt npm webpack etc are widely used for your building packing needs .", "How can I connect a task card to a specific agile board", "run-time config caches for debugging etc .", "I m using dotTrace to profile a compiler that s having some performance issues .", "It shows that 96 of calls are coming from one specific place so now I know where to focus on.. .", "I am trying to deploy my plugin to the JetBrains Plugin Repository But getting the following error- .. . .. . ID of edited plugin is null but uploaded plugin has ID package name .", "There should be a window with the suggestion to install Java when you start the product for the first time but it could be hidden by other application windows .", "No more issues with java.. .", "Try using JSDoc : .. . .. . works for me", "I will be using it for 8-10 users now and is there any option to purchase access to custom logo private projects and ssl without upgrading to more users .", "Do I need to install a specific version to do this", "is there a way in RubyMine to change color of a specific keyword string", "Using it makes your Mac vulnerable to well known security issues .", "This is of course if this deployment entry is marked as project-specific visible for this project only .", "Such functionality is called Contexts in PhpStorm and you can switch between them using Tools Tasks Contexts Load Context .", "I know all about F2 going to next error etc .", "it s Emmet comment tag filter docs.emmet.io filters http : docs.emmet.io filters Comment tags : c ." ] }
{ "confidence": [ 52.826385498046875, 49.87376403808594, 45.80605697631836, 40.63047790527344, 40.47372817993164, 40.419559478759766, 40.410400390625, 39.69483947753906, 38.207435607910156, 37.53636169433594, 37.28586959838867, 37.125083923339844, 36.75830841064453, 36.62331008911133, 36.52536392211914, 36.50575256347656, 36.14423370361328, 36.14088439941406, 35.7578125, 35.46546936035156 ], "content": [ "Question : null .. . Answer : I m planning to install Jet brains resharper for assembly browsing but not sure if it is paid or free to use with Visual Studio express edition . Can someone please help me to know this Comment : Resharper is only available as a paid product . If with Assembly Browsing you mean looking at the decompiled sources then JetBrains dotPeek is a free solution . As alternatives you could also look at Red-Gate Reflector .NET and ILSpy . Comment : Also you cannot install and load extensions in VS Express . use VS Community instead .", "Question : I have a project that uses both PHP and Python and I would like to use JetBrains IDEs in this case PhpStorm and PyCharm to work with both languages . However when I open the project using both IDEs concurrently I get a pop-up whenever I switch from one to the other as the newly focused IDE detects metadata that has been written to the project directory by the other IDE . I imagine this would be a problem between other combinations of JetBrains IDEs as well hence the use of the generic jetbrains tag . I have a work around I will post in an answer for others to view but it is somewhat awkward to set up and I may well be working with other projects that use the same combination of languages . Is there an easier solution Comment : Yes -- use full IntelliJ IDEA -- supports all languages via plugins except AppCode CLion AFAIK . Other than that -- your solution is the only one too keep .idea subfolder project settings in separate places . Comment : If I can get stuff that I thought was PHPStorm specific PHP debugging support phing build tasks etc . working in IntelliJ then this solution would be perfect for me as I have a full tools licence . I d dismissed IntelliJ as solely Java other JVM languages previously . Comment : It should be the same at least that s what they state . . plus there are many people that use it this way . AFAIK when you launch IntelliJ IDEA for a first time at one of the steps it will ask what other technologies except java-oriented you want to activate -- PHP Python Ruby should be there on a list at least this is what I remember when testing it over 1-1.5 years ago . if not -- PHP Python plugins can be installed manually via standard plugins interface . Comment : In the past . . when every product had separate release cycle . . the PHP support in IntelliJ could lag behind a bit . . but these days . . with unified versioning and release cycle it s no longer the case . The possible downside -- PhpStorm has simplified project configuration structure and therefore should be easier to use for new users for sure . Also there are some rare cases when something works in PhpStorm but does not in IntelliJ -- but I personally remember only few tickets like this I ve been PhpStorm user since v0.6 or so Comment : If you can use IntelliJ -- definitely try it and see how it does for you . .. . Answer : My current workaround : .. . .. . Create a new directory separate to the main project directory - using the language specific IDE for the second-most used language in the project-open the new directory as a project and using the options in Settings Project Project Structure add the main project directory as a separate content root . Whenever needing to work on the parts of the project written in the secondary language you can now open the new directory instead this keeps metadata for both IDEs separate .", "Question : This seems to be an error with the JetBrains Resharper 9.1 Ultimate Test Runner referencing an older version of NUnit . I am using NUnit 3.0 in my assembly . EDIT : Problem goes away with upgrade to version 10 of Resharper . .. . Answer : As Yousefi mentioned this is fixed by updating to version 10 of ReSharper . I had the same issue and that resolved it . Comment : Unfortunately not. . I did a fresh install of resharper 10 ultimate but the problem remains the same . Comment : @rob I also had to restart Visual Studio . Did you try that Comment : Would like to point out that Upgrading to Resharper 10 is not an acceptable fix for this issue . This is only possible if your license allows this . There should be a better solution that works on 9.1 as well . I m using version 9.2 and have encountered the same issue . VS2015 Comment : Downgrading nunit to a pre-3.0 version seems to do the trick . Although this is also not an acceptable solution to me it is one that everyone can do . Comment : A clearer error message would be nice but it s fair for JetBrains to require an upgrade - we can t expect them to support all future versions of NUnit in old versions of ReSharper indefinitely .", "Question : null .. . Answer : I use many of the Jetbrains IDEs on a regular basis specifically Intellij Webstorm Pycharm and Rubymine and have performance issues with all of them . I ve tried all the usual performance recommendations such as increasing VM options disabling plugins exluding folders using scopes etc . I was looking for other solutions and came across this answer on SO : http : stackoverflow.com a 26337863 1220355 . It seems as though performance of Intellij can be related to JRE version though I haven t experienced this personally . Are Intellij and its sibling IDEs affected by what JRE is being used", "Question : This seems to be an error with the JetBrains Resharper 9.1 Ultimate Test Runner referencing an older version of NUnit . I am using NUnit 3.0 in my assembly . EDIT : Problem goes away with upgrade to version 10 of Resharper . .. . Answer : As mentioned in the other answer the real fix is to upgrade to ReSharper 10 . But if you can t do that you can disable ReSharper 9 s unit-test functionality and fall back to Visual Studio s built-in Test Explorer . To do this : .. . .. . 1 . Choose the ReSharper Options.. . menu item go to the Unit Testing panel and uncheck the Enable Unit Testing box . 2 . Restart Visual Studio . 3 . Use the Test Windows Test Explorer menu item to display Visual Studio s Test Explorer . Comment : that worked except there was no tests in the test explorer instead I right clicked the project and selected run all unit tests I have VS2015 and resh 10", "Question : This seems to be an error with the JetBrains Resharper 9.1 Ultimate Test Runner referencing an older version of NUnit . I am using NUnit 3.0 in my assembly . EDIT : Problem goes away with upgrade to version 10 of Resharper . .. . Answer : As mentioned in the accepted answer ReShaper 9 does not support NUnit 3 . The solution as stated does work i.e . update to ReSharper 10 however for those who do not have this option e.g . licensing you can downgrade your version of NUnit by following the below steps : .. . .. . 1 . Open Nuget Package Manager Console by going to Tools - Nuget Package Manager - Package Manager Settings .. . 2 . In the console that pops up usually at the bottom under the dropdown for Default project : choose the test project you wish to downgrade .. . 3 . Run the following commands Uninstall-Package NUnit followed by Install-Package NUnit -Version 2.6.4 .. . .. . Your tests should now run using ReSharper 9 .", "Question : null .. . Answer : I wonder if SmartType completion would work in the case shown in the code image below . I am using PyCharm 5.0.4 professional edition with Python 3.5.1 Anaconda . Am I right to say that Basic Code completion is not working in this case because PyCharm is not aware of the type of datasets here SmartType Code completion not working http : i.stack.imgur.com LIWCx.jpg Comment : This is a commercial product with great support . I m a very happy JetBrains customer and I can assure you their official support channels are way better than asking for the help of volunteers in StackOverflow . Comment : @PauloScardine thanks i would ask it there too .", "Question : Hello smart people from stackoverflow .. . .. . I own an copy of the JetBrain Suite including JetBrains ReSharper Ultimate https : www.jetbrains.com resharper . I ve already installed it on my Laptop but whatever I try - it s not working on my Windows 7 PC where I do 99 + of my programming . I tried running as admin and in every compatibility properity windows has to offer . I right clicked on the JetBrains.ReSharperUltimate.2015.1.3.exe and confirmed the licensor . I also downloaded the SHA-256 checksum and tried to install it which was stupid because it doesn t seem to be anything to install . I redownloaded the installer multiple times and I also did a reinstall of Visual Studio itself . When I tried running the silence installation it just did nothing . I didn t even got an error response . I currently have Visual Studio 2015 installed . 14.0.23107.0 D14REL .. . .. . I also contacted the JetBrains support but when I stated that I m a student using the student discount they just silenced . I love how ReSharper enhances Visual Studio but I somehow cannot get the installer working . Whenever I open it it s just a plain blank form . It showed it s visuals without problems on my Laptop . I suspect that the visuals are there but not visible or completely white because when I click at the upper right corner it closes as-if the X was still there . I do not provide an screenshot because it s just a completely white square without header and everything . I suspect that they are using some windows resources that I don t have installed for some reason . I ve double checked Windows Update - I have everything installed . I tried everything I could think of . Maybe someone of you guys is able of helping me . Thanks . Have a nice day Comment : try RC3 of 9.2 : confluence.jetbrains.com display ReSharper ReSharper+9.2+EAP https : confluence.jetbrains.com display ReSharper ReSharper+9.2+EAP Comment : RC3 doesnt work neither . But thanks to your comment i was able to resolve it myself . The installer suddenly worked once i copied it onto my desktop . I have absolutely no clue why the installer works this way but thanks anyway for your help .. . Answer : I found a solution to my problem . The installer works fine once i removed it out of my cluttered download folder .. . .. . I ran various tests and I m pretty sure that i found the root to the problem . The installer stops working when It s together with an .dll file called d3d9.dll . It s an .dll file that belongs-to DirectX . An exact copy of the file I have inside my download folder can be found here : .. . .. . Mirror 1 http : www.xup.in dl 61652710 d3d9.dll .. . Mirror 2 https : mega.nz F U01DWTxT JtrE2kd-yIu3poJu9dWoIw .. . Mirror 3 http : www.mediafire.com download z0flokhvobekz9l d3d9.dll .. . .. . I ve ran enough tests to be sure that it is exactly this .dll file . I have reported this to the JetBrains Team https : youtrack.jetbrains.com issue RSRP-446977 Comment : This is something you should inform Jetbrains about at support@jetbrains.com they would probably like to know about this problem . In my experience with emailing support they usually respond pretty quick . If you think you have information to just open up a bug issue in their issue tracker you should go here https : youtrack.jetbrains.com oauth state 2Fissues 2FRSRP log in and then create a new issue . Comment : Off the top of my head . Some browsers internet-explorer included tags files as Downloaded from the internet . Opening up such a file will run it with reduced access rights could this be the culprit Please try right-clicking the original file in your Downloads directory and picking Properties the seeing if there are some funky stuff near the bottom of the dialog box along these lines and then if you can remove this Downloaded from the internet flag does the installer then appear to work Comment : @LasseV.Karlsen I tought about that one too . But when I copy it to my desktop it works fine and when I copy it back it doesnt work again . It makes no sense to me thst the vrowser should store that information somewhere else when not the file meta data but the meta would be cooied to when copying or moving the file . I downloaded via Mozilla Firefox", "Question : there is currently maxscript programming support inside sublime text . I was wondering bacause now the syntax-highlighting and everything alreay exists for maxscript how to go about it to make maxscript a supported programming language inside other ide s or editors The jetbrains applications comes to mind first webstorm etc . or even inside open online IDE s like Ace of Codemirror . Because that would be great . Does anyone knows if that is at all possible and how to do that .. . Answer : None of JetBrains IDEs provide support for maxscript : and I m not aware of any custom plugins for this language . If all you need is a basic syntax-highlighting you can either try searching for MaxSript textmate bundles see Is it possible to get Ruby syntax-highlighting in PHPStorm http : stackoverflow.com questions 16451359 is-it-possible-to-get-ruby-syntax-highlighting-in-phpstorm 16451778 16451778 or register your own file-type defining a syntax-highlighting for it http : www.jetbrains.com webstorm webhelp new-file-type.html . If none of these options look suitable for you try developing your own language plugins - see http : confluence.jetbrains.com display IDEADEV Developing+Custom+Language+Plugins+for+IntelliJ+IDEA", "Question : null .. . Answer : I m editing a html file in JetBrains but the root-relative URLs of stylesheets or JavaScript or any other reference is not working . Root folder is not included in preview . It is taking localhost as root . I had already added content root by going to preference and selecting the root folder . Here is the screenshot where untitled is the root folder and while reference to root-relative path of custom css it takes localhost as root folder . jetbrains http : i.stack.imgur.com InzKi.png .. . .. . Below image of custom.css path doesn t shows untitled as root folder . jetbrains 2 http : i.stack.imgur.com D6gaM.png .. . .. . All my files on server are based on root-relative reference so I need it to work here too . I had also tried setting up php interpreter but it was of no good . Comment : You are using PhpStorm s own built-in simple web server . It uses URLs like this : localhost : 63342 PROJECT NAME path to file.html . It has to have PROJECT NAME path in URL in order to identify what resource to serve just like domain-name in ordinary URL . As you can clearly see the the PROJECT NAME part is missing in your css custom.css link . Either use relative URL . . or use modified URL some extra work is required for setting it up -- stackoverflow.com a 32990633 783119 http : stackoverflow.com a 32990633 783119", "Question : Is there a fast way to fix spelling mistakes in jetbrains A keyboard shortcut or some setting to change the menu If I have a typo in a word it requires 4 clicks large mouse movements to fix . This is incredibly slow and painful . 1 . Right click on the word .. . 2 . Go to spelling on the menu .. . 3 . Click on Typo : change to .. . 4 . Click one of the suggestions in the new menu .. . .. . stage 1 http : i.stack.imgur.com ZfsHD.png stage 2 http : i.stack.imgur.com 9CWoI.png .. . .. . The standard method browser sublime MS Word etc.. . requires 2 steps . 1 . right-click .. . 2 . click on the suggestion . Also in the standard way of doing it your mouse is already in the correct location so you dont need to move it across the screen . .. . Answer : With your cursor on the misspelled word you should be able to press alt-enter then press enter then either click on the corrected spelling or use the arrow keys and enter to select the correct spelling .", "Question : I have installed Jetbrains new Database IDE - 0XDBE . I having trouble connecting with sql-server DB . I have already downloaded sqljdbc 4.0 driver and specified the location of this driver . But when i try to connect as trusted connection I am getting following error . java.sql.SQLException : This driver is not configured for integrated authentication . To fix that i have to put sqljdbc auth.dll to a particular location . I have tried many location but unable to locate the right one and keep getting the same error . Do I need to install whole java to make it run .. . Answer : I got this error when trying to connect to SQL server using integrated security . Download the .tar.gz version of the JDBC driver for SQL Server from Microsoft : http : www.microsoft.com en-us download details.aspx displaylang en id 11774 http : www.microsoft.com en-us download details.aspx displaylang en id 11774 .. . .. . 1 . Open the archive using 7zip or something similar and find x86 version of the file sqljdbc auth.dll It should be in sqljdbc 4.0 enu auth x86 .. . 2 . Extract sqljdbc auth.dll to the 0xDBE java runtime binary folder . On my machine this is located at : C : Program Files x86 JetBrains 0xDBE 138.551 jre jre bin .. . 3 . Make sure you have integrated security enabled in the driver options for your connection and then it should work correctly . .. . .. . You can find more info in this thread on the JetBrains forum : http : devnet.jetbrains.com thread 455251 Comment : Thanks you saved my day", "Question : Is there a way to run code inspection provided by intelliJ-JetBrains https : www.jetbrains.com help idea 2016.1 code-inspection.html using the java code . Basically can I import the intelliJ engine Or factory from plugins of a community edition https : github.com JetBrains intellij-community to create a project on my own to inspect a piece of code I have tried seeking any such dependency but to no use . Creating a jar of plugins was another failed attempt . .. . Answer : IntelliJ provides code inspection from the command-line . As per the manual https : www.jetbrains.com help objc 2016.1 working-with-appcode-features-from-command-line.html simply run : .. . .. . From there it should be straightforward to apply to your desired case scenario . Comment : How about not being dependent on IntelliJ as a whole but use just the inspect library Comment : @nullpointer I d have to dig further but if I d were to bet I d say it wont comply with IntelliJ s TOS .", "Question : This is a tip in reference to Yosemite s users 10.10 . Yosemite erase 1.6 apple jdk and install 1.7 but JAVA s IDE for example Intellij or Eclipse needs 1.6 if you haven t reinstalled this version your ide will crash at the beginning.. . after this process you can configure your ide with 1.7 version . Here the link : Apple JDK 1.6 http : support.apple.com kb DL1572 .. . Answer : It s easy to change Jetbrains products to use jdk1.7 : .. . .. . 1 . Open Application folder .. . 2 . Choose Jetbrains product you use .. . 3 . RightClick and choose show package content - I dont know how exactly it is in english version of OS .. . 4 . Choose Contents .. . 5 . Double Click Info.plist .. . 6 . Find : .. . .. . key JVMVersion key string 1.6 string .. . .. . 7 . and change to : .. . .. . key JVMVersion key string 1.7 string .. . .. . 8 . Save and quit .. . .. . 9 . Enjoy Comment : That worked great . You can also edit the file from the terminal : nano Applications IntelliJ IDEA 13.app Contents Info.plist Comment : people over at jetbrain do not recommend https : intellij-support.jetbrains.com entries 27854363-IDE-doesn-t-start-after-updating-to-Mac-OS-Yosemite-or-Mavericks using version 1.7 for having several critical issues . In addition the discourage to modify Info.plist as it will prevent future updates . I ll better go for installing jdk 1.6 Comment : It Works for jdk1.8 too thanks Comment : Per @Deoxyseia s statement yes it works with 1.8 as well but you must use string 1.8 string . Comment : it doesnt work . Updated to 1.8.45 and updated the JVMVersion and still webstorm doesnt start .", "Question : This is a tip in reference to Yosemite s users 10.10 . Yosemite erase 1.6 apple jdk and install 1.7 but JAVA s IDE for example Intellij or Eclipse needs 1.6 if you haven t reinstalled this version your ide will crash at the beginning.. . after this process you can configure your ide with 1.7 version . Here the link : Apple JDK 1.6 http : support.apple.com kb DL1572 .. . Answer : Apple 1.6 is still required to run JetBrains IDEs . There should be a window with the suggestion to install Java when you start the product for the first time but it could be hidden by other application windows . See https : intellij-support.jetbrains.com entries 27854363-IDE-doesn-t-start-after-updating-to-Mac-OS-Yosemite-or-Mavericks", "Question : How can I troubleshoot the following error message in the dotTrace Profiler Configuration dialog I have a RemoteAgent configured and running on a server firewall port 9000 open . Attempting to connect to it I specify the IP address port and endpoint and I get the message above . That is it...it ends-with the letter f and I m not sure what it is referring to . I checked the logs unfortunately this is all I m getting : .. . .. . There doesn t seem to be any information on the server either . All I see in the event log is the following which is logged on startup of RemoteAgent but makes sense as it likely doesn t want itself to be profiled : .. . .. . There are no other log files or artifacts that I can find . Other info : .. . .. . I m on Windows 8.1 .. . dotTrace version is 5.5.4 .. . Server is 2012 .. . All apps run with admin privileges .. . .. . I have been able to connect to other RemoteAgents on other servers . Don t know what the missing piece is here . .. . Answer : If anyone else runs into this the fix is pretty simple . There were at one point more than one version of the RemoteAgent deployed to the server . I deleted the files in the following folder thanks to a response on the JetBrains forum from Ilya Chernikov : ProgramData JetBrains Profiler RemoteAgent SysToolsCache .. . .. . I then redeployed the current version of RemoteAgent to the server . When I connected the caches were restored and I was able to connect . Comment : I had to delete files from C : Users user name AppData Local JetBrains Profiler as well", "Question : null .. . Answer : I m newbie in github integration VCS with JetBrains products . Currently I m want to run a project with a partner and though it would be an opportunity to work with VCS tools . Can someone navigate me how to create a repository and connect me and my partner that particular one . Is this even possible P.S : We are working on PhpStorm 2016.2 platform .", "Question : null .. . Answer : I wanted to install Jetbrains Hub Youtrack on my host . I ve downloaded .zip files and extracted them to opt . I ve configured them in the following way : .. . .. . bin hub.sh configure --listen-port 3334 --base-url http : hub.example.com .. . .. . bin youtrack.sh configure --listen-port 3333 --base-url http : youtrack.example.com .. . .. . So I though youtrack would start at 3333 port and hub at 3334 . I ve disabled SELinux which previously caused some problems and created Nginx rules . Now the problem is that I can start youtrack and access it from outside as far as hub is not running and vice versa . But if both of them run they restart each other . But I don t really understand they shouldn t block each other should they Do you have any idea about what I m doing wrong Comment : what does listen 80 do is it saying listen on port 80 Comment : Hello J n Thank you for details . What exactly happens when both YouTrack and Hub are running at the same time Is one inaccessible or just stuck As a side note not sure if it helps but still could you please try to move ssl-certificate etc letsencrypt live example.com fullchain.pem ssl-certificate key etc letsencrypt live example.com privkey.pem to server blocks Is it possible to send us hub userhome logs and youtrack userhome logs folders You can send them to youtrack-feedback@jetbrains.com", "Question : The numbers column is very wide and this is bothers me . I want to open more workspaces . Therefore I want it to be narrow . How do I do this Screenshot http : i.stack.imgur.com hrWOj.jpg Comment : How many lines are they in your file Comment : There are only 60 lines . .. . Answer : It seems that is not possible because the place is used by others functionality of PHPStorm . Others questions on StakOverflow deal with disable this other functionality on this place but is not possible too . We have nothing action on this place of PHPStorm . Use or no functionality . You can try to open an issue on jetBrains website.. .", "Question : I am using Data Grip of JetBrains in my work . It is ok but I don t know how to create relationships between tables . Like on this picture : .. . .. . enter image description here http : i.stack.imgur.com 4gL2J.png .. . Answer : Generally : from the context menu or by pressing Ctrl+Alt+U . If you have found this picture one more step was to go deeper in the website and you would get to this page : https : www.jetbrains.com datagrip features other.html .. . .. . And there is an explanation how to do it . Comment : I get this picture without arrows . And there is no help on that page how could I draw them Comment : You need to have relation with the foreign-keys in your tables . Do you have them Comment : no . How could I do that Comment : What DBMS do you use Comment : I am using MySQL" ] }
[ "yes-answer-long", "yes-answer-short" ]
rubymine
UNK_RELATION
uploadifive@uploadify@53
uploadifive -- uploadifive is the html 5 version of @placeholder .
{ "confidence": [ 52.38800811767578, 52.15863800048828, 49.457763671875, 49.12847900390625, 48.268394470214844, 45.666770935058594, 44.96839141845703, 44.503150939941406, 43.04218673706055, 43.04218673706055, 41.305763244628906, 41.305763244628906, 41.005531311035156, 40.389549255371094, 39.487037658691406, 39.487037658691406, 39.487037658691406, 39.23588180541992, 38.28048324584961, 36.83439636230469, 36.516998291015625, 36.516998291015625, 36.516998291015625, 34.953853607177734, 34.698272705078125, 34.698272705078125, 34.698272705078125, 34.698272705078125, 34.698272705078125, 34.698272705078125, 34.698272705078125, 34.698272705078125, 33.58617401123047, 33.49171829223633, 32.045631408691406, 31.767446517944336, 31.767446517944336, 31.22194480895996, 30.560894012451172, 28.484813690185547, 27.27825927734375, 27.27825927734375, 27.27825927734375, 26.739593505859375, 26.07799530029297, 25.861732482910156, 24.920867919921875, 24.756919860839844, 23.714313507080078, 22.26822853088379, 21.23529052734375, 21.186063766479492, 19.427791595458984, 19.19472312927246, 18.008399963378906, 17.37599754333496, 17.041898727416992, 16.866483688354492, 16.480485916137695, 16.480485916137695, 16.480485916137695, 16.480485916137695, 16.480485916137695, 16.480485916137695, 16.480485916137695, 16.480485916137695, 16.480485916137695, 16.480485916137695, 16.480485916137695, 16.480485916137695, 16.480485916137695, 16.480485916137695, 16.480485916137695, 16.480485916137695, 16.480485916137695, 16.480485916137695, 16.480485916137695, 16.480485916137695, 16.480485916137695, 16.087318420410156, 15.882207870483398, 15.708126068115234, 15.708126068115234, 15.608609199523926, 15.293951034545898, 14.955660820007324, 14.680007934570312, 14.554076194763184, 14.501571655273438, 14.501571655273438, 14.501571655273438, 14.501571655273438, 13.761602401733398, 13.761602401733398, 13.761602401733398, 13.761602401733398, 13.761602401733398, 13.761602401733398, 13.761602401733398, 13.761602401733398 ], "content": [ "UploadiFive is for HTML 5 browsers that support the HTML 5 file API .", "I bought uploadifive today .", "hello there is no php.ini file with the latest uploadifive-v1.2.2-standard.zip 5 download .", "uploadify.com documentation uploadifive dnd http : www.uploadify.com documentation uploadifive dnd", "I m using the HTML5 version of uploadify questions tagged uploadify called uploadifive questions tagged uploadifive .", "I am using UploadiFive v1.1.2 .", ".. . .. . Please note that this is uploadiFIVE not uploadify .", "I am using uploadifive http : www.uploadify.com download download-uploadifive-standard to upload files on to my server .", "I m trying to get uploadifive to work in Safari .", "I use Uploadifive to upload big files .", "I am using the uploadifive jquery plugin for uploading obituary mugshots .", "Uploadifive didnt work with my Chrome Browser on my Galaxy Note 4 .", "I am using Uploadifive 1.2.2 latest with this configuration .. . .. . I tried to upload multiple-files simulatanuously 5-10 files .", "I am using uploadifive to upload my files .", "I have implemented an image upload page using uploadifive .", "Finally I implemented image resize functionality and included into uploadifive js .", "I am using uploadifive http : www.uploadify.com documentation to upload files on the server .", "This is my uploadifive setup : .. . .. . Inside body : .. . .. . While this is the javascript part : .. . .. . All works as expected .", "I am using uploadifive as file uploader in my application .", "UploadiFive JS .. . .. . How do I get this to work on mobile-devices", "Looking at the code I discovered that UploadiFive create a new input field type file each time you upload a file .", "According to this post http : www.uploadify.com forum discussion 8328 on their forums a user in March 2012 had Uploadifive working on their Galaxy Nexus .", "I m testing the uploadifive plugin file-upload restrictions and I cannot seem to get it to accept .docx files .", "I think this is best anwser .. . .. . How to submit dynamic variables with uploadifive http : stackoverflow.com questions 19017530 how-to-submit-dynamic-variables-with-uploadifive .. . .. . replace this : .. . .. . by this : .. . .. . and this is full code :", "Have looked at uploadifive code but it s way beyond my limited knowledge of jQuery .", "I m using Uploadifive v1.1.1 Safari 5.1.7 and .NET 3.5 with ASP.NET MVC 3 . .. . .. . how to resolve this", "When selecting an uploadfile from Google Drive that file is first downloaded to the tablet and then uploaded using uploadifive .", "I m trying to implement Uploadifive plugin into my website but I don t see the files which are uploaded .", "I have tried adding blade form tag also but uploadifive actually does not depends upon form element at all .", "When i am uploading multifile in uploadifive and it is saving only last file name in database .", "I am trying to use UploadiFive to upload some files and as they are uploaded add information to a database about them .", "I have successfully implemented UploadiFive plugin in my web application and it is working fine in Chrome and Firefox .", "Instead of using the usual uploadifive-generated button I would like the user to be able to double-click on the placeholder image and have that trigger the file dialog box .", "You have to create a controller using the uploadifive logics and create a route to serve that controller .", "Sorry a bit late here - but I think you will find Uploadifive doesn t actually work on iPads .", "I m trying to customize the button of Select File using UploadiFive plugin and all works fine but only a portion of the area of the button is able to open the Load Dialog .", ".. . .. . .. . .. . .. . .. . This is quite different from what is in your code : .. . .. . I could not test UploadiFive but did a quick check with Uploadify : .. . .. . Which returned this output :", "Am using uploadifive the HTML5 version not the the Flash based uploadify as follows : .. . .. . With this simple-form : .. . .. . If I load one or two files into an empty folder all works fine .", "Include both plugins and call one or the other based on this test if window.FormData undefined use uploadifive else use uploadify I will add this to the answer", "The details .. . .. . The documentation for onUploadComplete http : www.uploadify.com documentation uploadifive onuploadcomplete-2 tells us the following : .. . .. . onUploadComplete .. . .. . Input Type .. . function .. . .. . Overridable .. . N A .. . .. . Triggered once for each file-upload that completes .", "Worth doing if you have loads of sites needing this . .. . .. . You can include both uploadify and uploadifive in the same page just choose between them with the following test :", "In a nutshell I m implementing the Uploadifive file uploader into my app and I have the js and css loading correctly by including them in my base.html.twig which I extend on different pages within the app .", "I m sure I m missing something very simple here but I cannot fix it : .. . .. . upload.html.twig .. . .. . The files are located in app Resources uploadifive . . .. . .. . Can anyone help me out", "In the documentation http : www.uploadify.com documentation uploadifive filetype I have followed the instructions bar a small mistake - the pipe character does not work and have used the media types it refers to http : www.iana.org assignments media-types media-types.xhtml .", "Unfortunately the API of uploadify and uploadifive are very slightly different so you need two lots of code we wound up wrapping both in our own JQuery plugin which chooses between them based on browser capabilities and modifies a single set of options HTML templates to suit .", "Uploadifive version 1.1.2 is not working on iPhone and iPad running iOS 8 .. . .. . Try the demo using iPad or iPhone running iOS 8 at : .. . .. . http : www.boxorox.net .. . .. . Clicking the Select File button allows you to choose a file from the mobile device .", "Arguments .. . .. . file .. . The file object that was uploaded .. . data .. . The data returned from the server-side upload script echoed in uploadifive.php .. . .. . Demo .. . .. . .. . function .. . file-upload .uploadifive .. . uploadScript : uploadifive.php .. . onUploadComplete : function file data .. . alert The file + file.name + uploaded successfully .", "please note i am using the HTML 5 version not the free flash version .", "Open your uploadifive js either minify or normal which you used then search input-type-file and then add your required validation attributes like this input-type-file accept image gif image jpeg image png It would help to you .", "I am using a plugin called Window postMessage Plugin http : postmessage.freebaseapps.com along with UploadiFive http : www.uploadify.com documentation to upload a file to my server and insert the file link onto a webpage that has my upload script embedded on it .", "I have my route : .. . .. . Now i have uploadifive setup on my file route and sending post request to uploadfile .. . .. . code for uploadfile is here : .. . .. . but always i am getting 500 Internal Server Error .. . .. . I checked my directory CHMOD is 0777 and i am linking to right route as when i remove above code from uploadfile and place .. . .. . it returns success .", "IE 9 does not support the HTML 5 File API .", "I finally got the work around when you see the var-dump of the response from a normal file posting form via blade Laravel approach you will find the Uploadfile object is created with the name of file specified in the form field but on the other hand when you send the same request via Uploadifive you will find that it sends an array which include a node called FileData which holds an object for that file so basically you need to assign that object pointer to the file variable like this and it will work perfectly : .. . .. . Works like charm :", "Also at the end of the day it s only 5 for the standard license .", "html5 version is the paid version", "There could be 4 or 5 numbers in the start or 8 or 10 numbers in the end .", "I m using Uploadify on my website which uses flash and it doesn t work on Android Chrome but does the paid HTML5 version work on mobile", "I have tried a number of different suggestions including the suggestion on the uploadify forum : http : www.uploadify.com forum discussion 8232 upload-five-html-5-file-type-filter-capability p1 .. . .. . But these do not seem to restrict the user from changing the file-type .", "I managed to get it to work with firefox and opera .", "However I can only upload small files .", "The filesizelimit or sizeLimit or uploadlimit option does not seem to work for me", "Do I have to format it in a certain way or maybe I have to change something in the uploadifive.php file too", "here is the index file below .", "Any help would be great .", "thanks :", "There s a upload max filesize and post max filesize inside your php.ini file that you have to edit .", "@Joshua Terrill thank you i found the php.ini for my localhost testing server wampserver and changed both post max size and upload max size .", "thanks again :", "No problem", "Just remember that if you ever take this to a public server the php-ini file may be configured in a different directory so just uploading your php-ini file to the root may not make a difference .", "You ll have to find out where it s located on that specific server .", "@user3434591 could you please give the values of upload max filesize and post max size you used", "I still have the same problem .", "The uploader reaches 100 then start from 0 again .", "The file row div is being cloned but when clicking on the Add Another File and choosing the local file nothing happens .", "There is no upload .", "If I maually copy the file row div more times then the upload works fine even more uploads at once .", "What am I doing wrong", "I think you need a unique id in your file input to have multiple instances on one page .", "Code below : .. . .. . The HTML page : .. . .. . Then my controller : .. . .. . For debugging purposes I just did an echo of image file .", "The first version of IE that does is IE 10 .", "would be grat if the code would work also with uplodifive as well as I would like to purchase that version .", "When I use the non-minified version I track the error message to line 631 of the uploadifive.js script : .. . .. . Any thought", "I use a custom plugin that wraps both the free Flash version and the paid HTML5 version so have both depending on browser upload support .", "I am using uploadify HTML5 version just brought and downloaded the latest .", "Here is my code : .. . .. . html .. . .. . js .. . .. . php .. . .. . On output I get 1 as result which indicated there is not errors but I can t find uploaded file in attachments folder .", "I m following the instructions to the letter and I m getting the following error message : .. . .. . Uncaught TypeError : Cannot read property addEventListener of undefined .. . .. . I m using the latest version of Chrome .", "1 for file 1 returns 0 ie file does not exist .. . 2 for file 2 both return 0 .. . 3 for file 3 all return 0 .. . 4 for file 4 1 returns 0 and 3 return 1 ie file-exists .. . 5 for file 5 2 return 0 3 return 1 .. . The multiple returns of 0 I can live with though it s very inefficient as they are invisible to the user but the 6 returns of 1 each generate a warning msg to which the user has to respond .", "I also find that the HTML5 version has no control over the file selection filter .", "According to the uploadify creators the file extension filter business on the file selector is a feature of flash and will not work in the HTML5 version .", "You asked about the paid version and why the filters don t work for file types .", "Yes i have made an attempt and included in the demo but when check in the IE version it fails to load and then in search for the solution", "I want to hide all the other uploadify elements .", "I am able to use this : .. . .. . and this opens the dialog box but when I choose a file the dialog box opens again 2-3 more times .", "Is there an even that I can fire this so that it works correctly", "I had the same problem .", "Due to this behavior is impossible to trigger the event like you are currently doing .", "My solution is to always trigger only the last created input field .. . .. . Hope it helps -", "I d say that most modern phones should run it if the Galaxy Nexus can do it .", "I tried using Firefox browser and it worked ." ] }
{ "confidence": [ 56.540157318115234, 55.70718765258789, 51.164005279541016, 50.202354431152344, 49.97553253173828, 48.75802230834961, 48.75802230834961, 48.75802230834961, 48.65743637084961, 48.24847412109375, 47.15146255493164, 46.31201171875, 46.21390151977539, 45.66572952270508, 45.347564697265625, 45.0517463684082, 44.670745849609375, 43.96576690673828, 43.53871154785156, 43.30575180053711 ], "content": [ "Question : null .. . Answer : I m using the HTML5 version of uploadify questions tagged uploadify called uploadifive questions tagged uploadifive . I m following the instructions to the letter and I m getting the following error message : .. . .. . Uncaught TypeError : Cannot read property addEventListener of undefined .. . .. . I m using the latest version of Chrome . When I use the non-minified version I track the error message to line 631 of the uploadifive.js script : .. . .. . Any thought Comment : Note : I was able to get rid of the the error message by setting dnd drag-and-drop setting to false . Hope this helps someone . Comment : uploadify.com documentation uploadifive dnd http : www.uploadify.com documentation uploadifive dnd", "Question : I have integrated Uploadfive html5 in my project and its working Good in Firefox Chrome and Safari . But it fails to work in IE 9 . Let me know the solution patch to include in the project inorder to make it work in IE 9 as well . Waiting for the Successful solution . Comment : It does not sound as-if you have made any attempt to solve this . What have you tried so far Comment : Yes i have made an attempt and included in the demo but when check in the IE version it fails to load and then in search for the solution .. . Answer : UploadiFive is for HTML 5 browsers that support the HTML 5 file API . IE 9 does not support the HTML 5 File API . The first version of IE that does is IE 10 . Use the older and free uploadify instead on older browsers . It uses a flash plugin to do the same job . Unfortunately the API of uploadify and uploadifive are very slightly different so you need two lots of code we wound up wrapping both in our own JQuery plugin which chooses between them based on browser capabilities and modifies a single set of options HTML templates to suit . Worth doing if you have loads of sites needing this . .. . .. . You can include both uploadify and uploadifive in the same page just choose between them with the following test : Comment : HI thanks for info . Can i merge both flash and html5 and set any condition about browser type and bind as appropriate Comment : Include both plugins and call one or the other based on this test if window.FormData undefined use uploadifive else use uploadify I will add this to the answer", "Question : I am using the uploadifive jquery plugin for uploading obituary mugshots . Instead of using the usual uploadifive-generated button I would like the user to be able to double-click on the placeholder image and have that trigger the file dialog box . I want to hide all the other uploadify elements . I am able to use this : .. . .. . and this opens the dialog box but when I choose a file the dialog box opens again 2-3 more times . Is there an even that I can fire this so that it works correctly .. . Answer : I had the same problem . Looking at the code I discovered that UploadiFive create a new input field type file each time you upload a file . Due to this behavior is impossible to trigger the event like you are currently doing . My solution is to always trigger only the last created input field .. . .. . Hope it helps -", "Question : null .. . Answer : I bought uploadifive today . I managed to get it to work with firefox and opera . However I can only upload small files . The filesizelimit or sizeLimit or uploadlimit option does not seem to work for me Do I have to format it in a certain way or maybe I have to change something in the uploadifive.php file too here is the index file below . Any help would be great . thanks : Comment : There s a upload max filesize and post max filesize inside your php.ini file that you have to edit . Comment : hello there is no php.ini file with the latest uploadifive-v1.2.2-standard.zip 5 download . Comment : @Joshua Terrill thank you i found the php.ini for my localhost testing server wampserver and changed both post max size and upload max size . thanks again : Comment : No problem Just remember that if you ever take this to a public server the php-ini file may be configured in a different directory so just uploading your php-ini file to the root may not make a difference . You ll have to find out where it s located on that specific server . Comment : @user3434591 could you please give the values of upload max filesize and post max size you used I still have the same problem . The uploader reaches 100 then start from 0 again .", "Question : I m using Uploadify on my website which uses flash and it doesn t work on Android Chrome but does the paid HTML5 version work on mobile .. . Answer : According to this post http : www.uploadify.com forum discussion 8328 on their forums a user in March 2012 had Uploadifive working on their Galaxy Nexus . I d say that most modern phones should run it if the Galaxy Nexus can do it . Also at the end of the day it s only 5 for the standard license .", "Question : null .. . Answer : I m trying to get uploadifive to work in Safari . My script works great with Chrome and Firefox . However if I select multiple-files at once from the dialog box or via drag n drop the content-length of each file is 0 on the server . This problem does not occur if I upload the files one by one . I m using Uploadifive v1.1.1 Safari 5.1.7 and .NET 3.5 with ASP.NET MVC 3 . .. . .. . how to resolve this", "Question : I have implemented an image upload page using uploadifive . Is there a way to re-size images on client-side rather than do it on server-side If images can be re-size on client-side it will reduce the time for upload the images . Can anyone give me some example to do it . .. . Answer : Finally I implemented image resize functionality and included into uploadifive js . I modified data.uploadFile method line no 363 .. . .. . and added helper methods as below", "Question : I am using uploadifive http : www.uploadify.com download download-uploadifive-standard to upload files on to my server . But before the files are moved to the permanent folder eg . move uploaded file tempFile targetFile they are renamed . In the past I used uplodify and I user to be able to return the new file name like so .. . .. . Unfortunately the onUploadSuccess method is not available for uplodifive . How can I return to the client the new filename here is the code I use to rename and upload the file .. . .. . Thanks .. . Answer : I figured it out finally", "Question : I am trying to use UploadiFive to upload some files and as they are uploaded add information to a database about them . The user enters some details in a form and then clicks upload at which point the file is uploaded and the information from the form is added to the database with corresponding file name . I ve got it working uploading files but I need the form to post every time a file is completed uploading . It s posting the form but I m struggling to get the file name from the uploaded file . Code below : .. . .. . The HTML page : .. . .. . Then my controller : .. . .. . For debugging purposes I just did an echo of image file . It seems to be submitting everything except the response from the uploadifive.php script . When I use Firebug I can see that I do get a response and it looks correct but the response filearray isn t being posted to the form to be decoded . Any ideas as to why I can t get the filename from the response Comment : can onSelect event help uploadify.com documentation uploadify onselect http : www.uploadify.com documentation uploadify onselect .. . Answer : TL DR .. . .. . Use event.name in onUploadComplete : function event data .. . .. . If you really need the server s response then you might want to use data unfortunately I can t test it but the documentation wouldn t lie would it . The details .. . .. . The documentation for onUploadComplete http : www.uploadify.com documentation uploadifive onuploadcomplete-2 tells us the following : .. . .. . onUploadComplete .. . .. . Input Type .. . function .. . .. . Overridable .. . N A .. . .. . Triggered once for each file-upload that completes . Arguments .. . .. . file .. . The file object that was uploaded .. . data .. . The data returned from the server-side upload script echoed in uploadifive.php .. . .. . Demo .. . .. . .. . function .. . file-upload .uploadifive .. . uploadScript : uploadifive.php .. . onUploadComplete : function file data .. . alert The file + file.name + uploaded successfully . .. . .. . .. . .. . .. . .. . This is quite different from what is in your code : .. . .. . I could not test UploadiFive but did a quick check with Uploadify : .. . .. . Which returned this output : Comment : This worked Thanks very much", "Question : The problem below is that when the function is initiated of course MyInputVariable is empty . There must be a way to instigate onUpload onUploadComplete onUploadFile or something to update formData but I am at a loss as to how to do that . .. . .. . Please note that this is uploadiFIVE not uploadify . The functions methods differ significantly and solutions will probably not apply to both . .. . Answer : I think this is best anwser .. . .. . How to submit dynamic variables with uploadifive http : stackoverflow.com questions 19017530 how-to-submit-dynamic-variables-with-uploadifive .. . .. . replace this : .. . .. . by this : .. . .. . and this is full code : Comment : Looks like a more correct jQuery example to me Thanks", "Question : null .. . Answer : I am using Uploadifive 1.2.2 latest with this configuration .. . .. . I tried to upload multiple-files simulatanuously 5-10 files . Some files are being upload correctly others are not . The developer console show multiple cancelled POST requests to the configured upload URL . I don t see any errors on the backend...these requests do not reach the backend...so no HTTP POST at all...how to track this down", "Question : I m using Uploadify on my website which uses flash and it doesn t work on Android Chrome but does the paid HTML5 version work on mobile .. . Answer : Uploadifive didnt work with my Chrome Browser on my Galaxy Note 4 . I tried using Firefox browser and it worked . I uploaded the same files on different browsers . So I guess the issue must be with Chrome on android .", "Question : This is my uploadifive setup : .. . .. . Inside body : .. . .. . While this is the javascript part : .. . .. . All works as expected . The file row div is being cloned but when clicking on the Add Another File and choosing the local file nothing happens . There is no upload . If I maually copy the file row div more times then the upload works fine even more uploads at once . What am I doing wrong .. . Answer : I think you need a unique id in your file input to have multiple instances on one page .", "Question : I use Uploadifive to upload big files . That s working fine except for Firefox on Android . When selecting an uploadfile from Google Drive that file is first downloaded to the tablet and then uploaded using uploadifive . But Firefox is renaming this filename and puts in tmp before and some numbers behind the filename . So if test-1.mp3 is my filename i get tmp 20950-test-1-5487457458.mp3 . I don t think i can overcome the renaming done by Firefox . But i can rename it via the script . So far i can remove the tmp but not the numbers . There could be 4 or 5 numbers in the start or 8 or 10 numbers in the end . So i search for commands to clear those numbers . The difficulty is not knowing how many numbers to clear . The only fixed element is the stripe - after and before the number . Maybe can i use that in my command But don t know how . .. . Answer : You can try something like this pattern to get the filename : tmp d+- . - d+ . . the first match will be the filename and the second the extension . regex tester http : regex101.com r rR4eU9 1 Comment : wow didn t know that tool Thanks .", "Question : null .. . Answer : When i am uploading multifile in uploadifive and it is saving only last file name in database . How i can make loop when upload file", "Question : I m trying to implement Uploadifive plugin into my website but I don t see the files which are uploaded . I don t see any errors . Here is my code : .. . .. . html .. . .. . js .. . .. . php .. . .. . On output I get 1 as result which indicated there is not errors but I can t find uploaded file in attachments folder . I also tried to find attachments folder using public path function but then I get 500 error . Also permissions of attachments folder is set to 777 .. . Answer : try :", "Question : I m testing the uploadifive plugin file-upload restrictions and I cannot seem to get it to accept .docx files . In the documentation http : www.uploadify.com documentation uploadifive filetype I have followed the instructions bar a small mistake - the pipe character does not work and have used the media types it refers to http : www.iana.org assignments media-types media-types.xhtml . No other file-type seems to be causing a problem e.g . .doc .xlsx . Is there a solution for this I have checked multiple sources and the mime type application vnd.openxmlformats-officedocument.wordprocessingml.document is correct as far as i can tell .. . Answer : The issue was with Firefox assigning the MIME type application vnd.ms-word.document.12 to the file instead of application vnd.openxmlformats-officedocument.wordprocessingml.document to .docx files . Chrome and presumably others use the correct one . This post How to check file MIME type with javascript before upload https : stackoverflow.com questions 18299806 how-to-check-file-mime-type-with-javascript-before-upload proved helpful to see how the browser is treating it .", "Question : Am using uploadifive the HTML5 version not the the Flash based uploadify as follows : .. . .. . With this simple-form : .. . .. . If I load one or two files into an empty folder all works fine . If I load 3 or more I get a variable number of repeated calls to check info.php . For instance if I upload five files into an empty folder according to firebug there are 15 calls to check info . 1 for file 1 returns 0 ie file does not exist .. . 2 for file 2 both return 0 .. . 3 for file 3 all return 0 .. . 4 for file 4 1 returns 0 and 3 return 1 ie file-exists .. . 5 for file 5 2 return 0 3 return 1 .. . The multiple returns of 0 I can live with though it s very inefficient as they are invisible to the user but the 6 returns of 1 each generate a warning msg to which the user has to respond . I have no idea why this happening . Have looked at uploadifive code but it s way beyond my limited knowledge of jQuery . Appreciate any advice suggestions cures etc .. . Tx in advance Comment : Update your tags if possible with more relevant tags . That might attract more people towards your question . .. . Answer : I ran into this during my testing as well . I fixed this by modifying the source code.. . you ll have to hunt for the comment Loop through the files to find where it goes . Basically I simply run two loops.. . one for the check and the other for the upload to avoid conflicts . Sure wish I had a way to get my other fixes to the author but his forum is shutdown and he leaves no way to contact him . Suffice it to say this wasn t the only problem I had . Comment : This solved the issue . And I was close to buy the commercial license.. . Phew . Anyway support@uploadify.com doesn t exist it returns mails back .", "Question : I have my route : .. . .. . Now i have uploadifive setup on my file route and sending post request to uploadfile .. . .. . code for uploadfile is here : .. . .. . but always i am getting 500 Internal Server Error .. . .. . I checked my directory CHMOD is 0777 and i am linking to right route as when i remove above code from uploadfile and place .. . .. . it returns success . I have tried adding blade form tag also but uploadifive actually does not depends upon form element at all . It post with AJAX . Comment : I think you should use file- move on the last line Comment : The reason that file- move may work instead of your code is because you have two different field names you re trying to access for the file -- file-upload and file look at the first and last line . Change the first line to whatever you re specifying in your form and use file- move destinationPath filename in the last line . Comment : Hi i tried replacing it with file but no difference . Its still showing the same result : see the console http : scrumy.co.uk file Comment : my route : Route : : get file array as files uses fileController@getFileUpload Route : : post cdnUpload array as cdnUpload uses fileController@postFileUpload .. . Answer : I finally got the work around when you see the var-dump of the response from a normal file posting form via blade Laravel approach you will find the Uploadfile object is created with the name of file specified in the form field but on the other hand when you send the same request via Uploadifive you will find that it sends an array which include a node called FileData which holds an object for that file so basically you need to assign that object pointer to the file variable like this and it will work perfectly : .. . .. . Works like charm :", "Question : Uploadifive version 1.1.2 is not working on iPhone and iPad running iOS 8 .. . .. . Try the demo using iPad or iPhone running iOS 8 at : .. . .. . http : www.boxorox.net .. . .. . Clicking the Select File button allows you to choose a file from the mobile device . Then clicking Upload Files does nothing the upload never starts . .. . Answer : This issue has now been fixed for Safari in iOS update 8.0.2 .. . .. . Note : uploading is still broken on Chrome running iOS 8.0.2" ] }
[ "yes-answer-long", "yes-answer-short" ]
uploadify
UNK_RELATION
jsnetworkx@python@54
jsnetworkx -- jsnetworkx is a javascript port of the @placeholder graph library networkx .
{ "confidence": [ 70.73127746582031, 52.54667663574219, 52.226219177246094, 52.226219177246094, 50.45820617675781, 47.53688430786133, 43.647132873535156, 41.033729553222656, 40.46512985229492, 35.40681838989258, 33.381500244140625, 31.609411239624023, 30.59771156311035, 22.92290496826172, 21.56203842163086, 20.32166290283203, 19.13750648498535, 19.13750648498535, 18.412776947021484, 18.199928283691406, 18.199928283691406, 18.199928283691406, 17.579105377197266, 16.85580062866211, 16.136661529541016, 15.967416763305664, 15.568059921264648, 15.568059921264648, 15.568059921264648, 15.568059921264648, 15.568059921264648, 15.568059921264648, 15.568059921264648, 15.568059921264648, 15.568059921264648, 15.411931991577148, 15.018558502197266, 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, 10.509748458862305, 10.509748458862305, 10.509748458862305, 10.509748458862305, 10.509748458862305, 10.509748458862305, 10.509748458862305, 10.509748458862305, 10.509748458862305, 10.509748458862305, 10.509748458862305, 10.509748458862305, 10.509748458862305, 10.509748458862305, 10.509748458862305, 10.509748458862305, 10.509748458862305, 10.509748458862305, 10.509748458862305, 10.509748458862305, 10.509748458862305, 10.509748458862305, 10.509748458862305, 10.509748458862305, 10.509748458862305, 10.509748458862305, 10.509748458862305, 10.509748458862305 ], "content": [ "I have drawn a graph with jsNetworkx http : felix-kling.de JSNetworkX which is a JavaScript version of Networkx http : networkx.github.io .", "I m new to JSNetworkX .", "i m using JSNetworkX for graph exploration and rendering .", "JSNetworkX is using D3.js for graph render .", "I m trying to do some graph analysis with JSNetworkX http : jsnetworkx.org .", "How do I show edge properties in Jsnetworkx", "Here is the fiddle to play around with : https : jsfiddle.net mrpf5ybq .. . .. . I m not tied to JSNetworkX .", "Do I need to look at jsNetworkX for the graph related searches tracing the path etc .", "I am just following the examples on felix-kling http : felix-kling.de JSNetworkX getting started.html .", "Thanks for your comment and Thanks for JSNetworkX : I ll follow his developpement Thanks a lot :", "This port doesn t quite have all the features of Networkx yet .", "So this is index.html file : .. . .. . And this the code written in script.js : .. . .. . This is the output : 0 1 2 3 4 5 .. . .. . And this is the error i get : .. . .. . JSNetworkX error - TypeError : undefined is not an object evaluating M.layout.force", "Isn t there any built-in function to convert a networkx graph object to an xml json string and viceversa", "I just need a JS library for simple graph algorithms such as centrality cliques detection etc .", "I created a simple graph it will become more complex but for the purpose of this example it will do : .. . .. . This code successfully draws the graph .", "You will however have to implement the functionality that allows the user to change the graph yourself .", "In short : is d3.js just for visualization or does it allow to visually alter a graph too", "I created a graph using the examples from jsnetworkx.org but I can only log it I can t display it .", "you will need the asynchronous part of genFinClique as explain in the doc .. . .. . Graph algorithms can take a long time to run especially on larger graphs .", "So i ll use a D3 static graph .", "For 5mb graph it takes about 15 secondes to rendering.. .", "Once the graph gets rendered user interacts with it .", "My Javascript code is below .", "However as I work with large graph json file about 5Mb I would like to render this graph directly without any animations so in placing each node directly without force attraction .", "My final SVG document will consists of a moderately size directed-graph generated by Pydot GraphViz .", "What are the javascript components that can help me get it done quickly", "My work : http : jsfiddle.net mrcactu5 VGpRJ 4 .. . .. . I would like to be able to highlight a node and its neighbors upon mouseover and change their color to FEFEFE .", "I plan to make adding event handlers to the visualization easier in the future but for now you have to implement such things yourself with D3 .", "The basic idea is the following : Assign each SVG node element a unique ID based on the node name .", "Then on mouseover which you bind with D3 get all the neighbors of a node and use the names to find the corresponding SVG elements and change their style .", "Example : .. . .. . DEMO http : jsfiddle.net VGpRJ 7", "Try http : networkx.github.io documentation latest reference readwrite.graphml.html for GraphML and http : networkx.github.io documentation latest reference readwrite.json graph.html for some JSON formats .", "But it just complains Uncaught TypeError : Cannot read property getComputedStyle of null .I am using chrome .", "The same error happens when I copied the example from anotherOne http : jsfiddle.net mrcactu5 LMCxT 1 .Any ideas guys", "You dont have an element with an id of demo-canvas so there is not element for it to draw on.. . your element is called canvas so.. . : .. . .. . Working fiddle : https : jsfiddle.net mrcactu5 LMCxT 1", "FWIW if you really have a large graph even a static layout would be slow because you d still have too many SVG elements .", "Here is a sample of the document : .. . .. . I would like to load this document in my javascript page which in using JQuery .", "Now I d like the user to be able to select an edge with the mouse and when this edge is selected by pressing the canc key the edge should be deleted .", "Also if the user clicks on a node and then drags on another node he should be able to create an edge .", "In principle you can do this with D3 see here http : bl.ocks.org rkirsling 5001347 for example .", "That is D3 doesn t provide this functionality out of the box .", "I would like to be able to change the edge color and the end of the arrow style some edges to be arrows and some T s .", "Something like : http : upload.wikimedia.org wikipedia commons d dc DG Network in Hybrid Rice.png .. . .. . I am trying to adapt one of the examples : .. . .. . http : jsfiddle.net 3J3k4", "@user27815 To add edge style property I have used a function .", "The code snippet is given below .. . .. . You can refer to this JSFIDDLE http : jsfiddle.net 3J3k4 7 .", "Finding the centrality values works .", "According to the documentation http : jsnetworkx.org documentation.html async there is also a function called jsnx.findCliques .", "In my case it returns an empty object .", "have u tried the async method", "You may want to look at stackoverflow.com q 23667086 2336725 http : stackoverflow.com q 23667086 2336725 .", "It s a duplicate of your problem but possibly not of the way you formulated your question .", "This is usually not a problem for code running on the server though it can be but it is definitely a problem in the browser where the run time per script is limited .", ".. . To solve that issue most algorithms are provided as synchronous and as asynchronous functions .", "The asynchronous function has the same name as the synchronous function only prefixed with gen and returns a Promise .", "Since OP asked the question you may need to explain why the code is the way it is .", "The problem was including the latest version of D3.js .", "Changing .. . .. . script src https : d3js.org d3.v4.js script .. . .. . to .. . .. . script src https : d3js.org d3.v3.js script .. . .. . will fix it .", "I try to use D3.layout.force .stop after rendering but it s without effects .", "Because of that I m thinking that it has to be done in jsnx.draw see my code below .", "Unfortunately you can t do that with the current version .", "Do you need a force layout at all or do you already have positions for each node", "The next version will include a WebGL rendered for large graphs .", "Ow.. .", "Okay understood .", "I ve already approximative position for each nodes clustering .", "But it s enought for now.. .", "Unfortunately you can t do that with the current version .", "So we can t for the moment .", "As of v0.3.4 jsnx.draw returns the force layout object so you can do var force jsnx.draw .. . then force.stop .", "I am creating an svg document using Pydot .", "My intent is to add event handler e.g .", "mouse click on the circle to open up JQuery UI modal-dialog box or Accordian .", "In order to get it done I need access to SVG DOM .", "It doesn t seem to work the way I am doing .", "The alert box doesn t show up when the text in the circle is clicked .", "Can anybody please show me a working example", "Also I read that Jquery SVG plugin needs to be used for getting access to DOM since HTML DOM is different from SVG DOM .", "Is that correct", "Does JQuery SVG plug-in conflict with latest version of JQuery any insight is welcome .", "I need to have the chosen path or node highlighted one two levels in forward backward direction dialog boxes show node edge properties based on some user action .", "The reason I chose JQuery UI is primarily to get UI components .", "I will appreciate any help code snippet suggestion .", "Thanks Abhijit", "This sort of purpose is exactly why the jQuery SVG plugin was created .", "As far as I know it works with the latest versions of jQuery ." ] }
{ "confidence": [ 79.08112335205078, 57.991886138916016, 57.40817642211914, 56.60070037841797, 53.267581939697266, 46.130916595458984, 45.959373474121094, 41.46226501464844, 34.42028045654297, 21.15239906311035 ], "content": [ "Question : I have drawn a graph with jsNetworkx http : felix-kling.de JSNetworkX which is a JavaScript version of Networkx http : networkx.github.io . This port doesn t quite have all the features of Networkx yet . My work : http : jsfiddle.net mrcactu5 VGpRJ 4 .. . .. . I would like to be able to highlight a node and its neighbors upon mouseover and change their color to FEFEFE . .. . Answer : I plan to make adding event handlers to the visualization easier in the future but for now you have to implement such things yourself with D3 . The basic idea is the following : Assign each SVG node element a unique ID based on the node name . Then on mouseover which you bind with D3 get all the neighbors of a node and use the names to find the corresponding SVG elements and change their style . Example : .. . .. . DEMO http : jsfiddle.net VGpRJ 7", "Question : I m new to JSNetworkX . I created a graph using the examples from jsnetworkx.org but I can only log it I can t display it . So this is index.html file : .. . .. . And this the code written in script.js : .. . .. . This is the output : 0 1 2 3 4 5 .. . .. . And this is the error i get : .. . .. . JSNetworkX error - TypeError : undefined is not an object evaluating M.layout.force .. . Answer : The problem was including the latest version of D3.js . Changing .. . .. . script src https : d3js.org d3.v4.js script .. . .. . to .. . .. . script src https : d3js.org d3.v3.js script .. . .. . will fix it .", "Question : i m using JSNetworkX for graph exploration and rendering . JSNetworkX is using D3.js for graph render . However as I work with large graph json file about 5Mb I would like to render this graph directly without any animations so in placing each node directly without force attraction . I try to use D3.layout.force .stop after rendering but it s without effects . Because of that I m thinking that it has to be done in jsnx.draw see my code below . Comment : Unfortunately you can t do that with the current version . Do you need a force layout at all or do you already have positions for each node FWIW if you really have a large graph even a static layout would be slow because you d still have too many SVG elements . The next version will include a WebGL rendered for large graphs . Comment : Ow.. . Okay understood . I ve already approximative position for each nodes clustering . So i ll use a D3 static graph . For 5mb graph it takes about 15 secondes to rendering.. . But it s enought for now.. . Thanks for your comment and Thanks for JSNetworkX : I ll follow his developpement Thanks a lot : .. . Answer : As of v0.3.4 jsnx.draw returns the force layout object so you can do var force jsnx.draw .. . then force.stop .", "Question : I m trying to do some graph analysis with JSNetworkX http : jsnetworkx.org . Finding the centrality values works . According to the documentation http : jsnetworkx.org documentation.html async there is also a function called jsnx.findCliques . In my case it returns an empty object . Here is the fiddle to play around with : https : jsfiddle.net mrpf5ybq .. . .. . I m not tied to JSNetworkX . I just need a JS library for simple graph algorithms such as centrality cliques detection etc . Comment : have u tried the async method Comment : You may want to look at stackoverflow.com q 23667086 2336725 http : stackoverflow.com q 23667086 2336725 . It s a duplicate of your problem but possibly not of the way you formulated your question . .. . Answer : you will need the asynchronous part of genFinClique as explain in the doc .. . .. . Graph algorithms can take a long time to run especially on larger graphs . This is usually not a problem for code running on the server though it can be but it is definitely a problem in the browser where the run time per script is limited . .. . To solve that issue most algorithms are provided as synchronous and as asynchronous functions . The asynchronous function has the same name as the synchronous function only prefixed with gen and returns a Promise . Comment : Since OP asked the question you may need to explain why the code is the way it is .", "Question : i m using JSNetworkX for graph exploration and rendering . JSNetworkX is using D3.js for graph render . However as I work with large graph json file about 5Mb I would like to render this graph directly without any animations so in placing each node directly without force attraction . I try to use D3.layout.force .stop after rendering but it s without effects . Because of that I m thinking that it has to be done in jsnx.draw see my code below . Comment : Unfortunately you can t do that with the current version . Do you need a force layout at all or do you already have positions for each node FWIW if you really have a large graph even a static layout would be slow because you d still have too many SVG elements . The next version will include a WebGL rendered for large graphs . Comment : Ow.. . Okay understood . I ve already approximative position for each nodes clustering . So i ll use a D3 static graph . For 5mb graph it takes about 15 secondes to rendering.. . But it s enought for now.. . Thanks for your comment and Thanks for JSNetworkX : I ll follow his developpement Thanks a lot : .. . Answer : Unfortunately you can t do that with the current version . Do you need a force layout at all or do you already have positions for each node FWIW if you really have a large graph even a static layout would be slow because you d still have too many SVG elements . The next version will include a WebGL rendered for large graphs . So we can t for the moment .", "Question : I am just following the examples on felix-kling http : felix-kling.de JSNetworkX getting started.html . But it just complains Uncaught TypeError : Cannot read property getComputedStyle of null .I am using chrome . The same error happens when I copied the example from anotherOne http : jsfiddle.net mrcactu5 LMCxT 1 .Any ideas guys .. . Answer : You dont have an element with an id of demo-canvas so there is not element for it to draw on.. . your element is called canvas so.. . : .. . .. . Working fiddle : https : jsfiddle.net mrcactu5 LMCxT 1", "Question : How do I show edge properties in Jsnetworkx I would like to be able to change the edge color and the end of the arrow style some edges to be arrows and some T s . Something like : http : upload.wikimedia.org wikipedia commons d dc DG Network in Hybrid Rice.png .. . .. . I am trying to adapt one of the examples : .. . .. . http : jsfiddle.net 3J3k4 .. . Answer : @user27815 To add edge style property I have used a function . The code snippet is given below .. . .. . You can refer to this JSFIDDLE http : jsfiddle.net 3J3k4 7 .", "Question : I am creating an svg document using Pydot . Here is a sample of the document : .. . .. . I would like to load this document in my javascript page which in using JQuery . My intent is to add event handler e.g . mouse click on the circle to open up JQuery UI modal-dialog box or Accordian . In order to get it done I need access to SVG DOM . It doesn t seem to work the way I am doing . My Javascript code is below . The alert box doesn t show up when the text in the circle is clicked . Can anybody please show me a working example Also I read that Jquery SVG plugin needs to be used for getting access to DOM since HTML DOM is different from SVG DOM . Is that correct Does JQuery SVG plug-in conflict with latest version of JQuery any insight is welcome . My final SVG document will consists of a moderately size directed-graph generated by Pydot GraphViz . Once the graph gets rendered user interacts with it . I need to have the chosen path or node highlighted one two levels in forward backward direction dialog boxes show node edge properties based on some user action . What are the javascript components that can help me get it done quickly The reason I chose JQuery UI is primarily to get UI components . Do I need to look at jsNetworkX for the graph related searches tracing the path etc . I will appreciate any help code snippet suggestion . Thanks Abhijit .. . Answer : This sort of purpose is exactly why the jQuery SVG plugin was created . As far as I know it works with the latest versions of jQuery .", "Question : Isn t there any built-in function to convert a networkx graph object to an xml json string and viceversa .. . Answer : Try http : networkx.github.io documentation latest reference readwrite.graphml.html for GraphML and http : networkx.github.io documentation latest reference readwrite.json graph.html for some JSON formats .", "Question : I created a simple graph it will become more complex but for the purpose of this example it will do : .. . .. . This code successfully draws the graph . Now I d like the user to be able to select an edge with the mouse and when this edge is selected by pressing the canc key the edge should be deleted . Also if the user clicks on a node and then drags on another node he should be able to create an edge . In short : is d3.js just for visualization or does it allow to visually alter a graph too .. . Answer : In principle you can do this with D3 see here http : bl.ocks.org rkirsling 5001347 for example . You will however have to implement the functionality that allows the user to change the graph yourself . That is D3 doesn t provide this functionality out of the box ." ] }
[ "yes-answer-long", "yes-answer-short" ]
python
UNK_RELATION
evc@evc@50
evc -- this tag is used for questions related to @placeholder embedded visual-c + + .
{ "confidence": [ 55.427764892578125, 51.159637451171875, 51.159637451171875, 46.73480987548828, 45.07535934448242, 34.309295654296875, 29.41574478149414, 29.103530883789062, 28.931045532226562, 28.79265785217285, 28.34699058532715, 27.51327133178711, 26.309160232543945, 25.998886108398438, 23.807571411132812, 23.781375885009766, 23.52488136291504, 23.52488136291504, 23.313587188720703, 22.736297607421875, 22.736297607421875, 22.736297607421875, 22.4572811126709, 21.176776885986328, 21.176776885986328, 21.176776885986328, 20.911514282226562, 19.793926239013672, 19.739686965942383, 18.78375244140625, 18.547203063964844, 17.77325439453125, 17.77325439453125, 17.77325439453125, 17.77325439453125, 17.77325439453125, 17.77325439453125, 17.77325439453125, 17.77325439453125, 17.77325439453125, 17.77325439453125, 17.77325439453125, 17.77325439453125, 17.77325439453125, 16.832157135009766, 16.764392852783203, 16.563711166381836, 16.374267578125, 15.921631813049316, 14.841094970703125, 14.841094970703125, 14.841094970703125, 14.841094970703125, 14.841094970703125, 14.841094970703125, 14.841094970703125, 14.841094970703125, 14.665189743041992, 14.665189743041992, 13.56199836730957, 13.105669021606445, 12.879703521728516, 12.879703521728516, 12.879703521728516, 12.879703521728516, 12.879703521728516, 12.879703521728516, 12.879703521728516, 12.879703521728516, 12.879703521728516, 12.879703521728516, 12.879703521728516, 12.879703521728516, 12.879703521728516, 12.879703521728516, 12.879703521728516, 12.879703521728516, 12.879703521728516, 12.879703521728516, 12.879703521728516, 12.879703521728516, 12.879703521728516, 11.578506469726562, 11.578506469726562, 11.578506469726562, 11.578506469726562, 11.578506469726562, 11.578506469726562, 11.578506469726562, 11.578506469726562, 11.578506469726562, 11.578506469726562, 11.578506469726562, 11.578506469726562, 11.578506469726562, 11.578506469726562, 11.578506469726562, 11.578506469726562, 11.578506469726562, 11.578506469726562 ], "content": [ "Embedded Visual C++ .", "Process B is written in Embedded Visual C++ 4.0 .", "For this I m using Microsoft eMbedded Visual C++ 3 .", "We have a set of nightly builds that build of full suite of software using Embedded Visual C++ batch files .", "eMbedded Visual C++ 3 project building for PocketPC 2000 .", "Does EVC 4.0 support macros", "Program on the device is developed using EVC++ .", "Recently i see some eVC++ example and as i can see eVC++ remember : Plus Plus only uses C Without ++ code .", "Generally speaking we do not see this error when running inside of the IDE EVC++ 4.0 .", "What is eVC++", "The method of doing this varies by compiler and unfortunately I m not familiar with EVC++ .", "I am new in evc .", "I m learning C++ and i have the eVT eMbedded Visual Tools installed in my computer because of the eVB 3 eMbedded Visual Basic for my VB pocket programs but i m learning C++ then i want to use the eVC++ 3 for develop some command-line aplications then only to test i created an HelloWorld aplication just for test but when i try to compile it gave me this error : .. . .. . Fatal error C1083 : Cannot open include file : iostream : No such file or directory Error executing clarm.exe .", "I am using EVC++ and I want to compile the program which uses the sockets .", "Try running it all in the visual IDE it will be easier to catch this way .", "I m not familiar with this particular version of Visual C++ but Visual C++ Studio usually has an option to pick a GUI a.k.a .", "The article you referenced doesn t have evc in the text anywhere .", "Just curious have you tried EVC++ 4 to see if it builds", "I installed the SDK for EVC++ available on the products page and I was wondering if I can use that sdk on visual-studio 2008.I m rather new with this and I s kind of lost .", "Remember that i can t update to eVC++ 4 because i want to build programs for Windows CE 3.1 Thanks", "There s a minor problem : I ve never in my whole development experience have seen the eVC++3 .", "But I think that eVC++ don t use argc and argv for arguments then I want some help on how to determine the arguments on it .", "Is there a data type in eVC++ http : www.google.com search q embedded 2Bvisual 2Bc 2B 2B that is the equivalent of int64 http : msdn.microsoft.com en-us library s3f49ktz 28VS.80 29.aspx", "If you are on win mobile 5.0 and up and are still attempting to use EVC++4.0 I will fight you Ron Burgundy .", "Do you have access to the LargeInt http : doc.ddart.net msdn header include largeint.h.html library in eVC++", "Can anybody tell me what happening is this or any setting regarding to the evc help is changed", "Many embedded systems don t .", "Every night at least one or two builds fail with something like the following error : .. . .. . c : lc trunk server can svcangettracedrivelength.cpp 11 : fatal-error C1083 : Cannot open precompiled header file : SH4Rel CANWce.pch : Permission denied .. . .. . It is never the same file or precompile header that fails and it is rarely the same executable .", "Assuming you are using EVC++ 4.0.. . .. . .. . You ll first need to make sure you have the Pocket PC 2003 SDK installed .", "You need to supply more details about the embedded platform .", "The project also works when built for ARM on Visual C++ 2005 but I need to test builds specifically from eVC3 .", "There is probably a total of 30 builds that are done .", "As far as I know nothing else is happening on this build machine .", "Does anyone have a fix to make our nightly builds run more reliably", "You sure you don t have multiple compiler instances working on several builds at once", "One building a project lib whatever while another trying to access it", "Maybe as a last resort you can have a macro that triggers the builds : .. . .. . I don t understand your last statement .", "Clearly the trouble is at compile-time not at run time .", "Have you tried compiling without precompiled-headers", "What s the error then", "Encountered apparently same issue - was seemingly caused by Microsoft Security Essentials .", "I tried disabling it and it immediately fixed the issue and it has not returned since .", "We cannot run our nightly builds using the GUI however .", "As far as we know the build machine is idle while the nightly builds are running .", "Superceded by Visual Studio 2005 2008 2010", "Embedded platforms vary widely from desktop computers especially about their resources such as file systems I O memory capacity and hardware layout addressing .", "I m trying to set up my developing environment using Visual Studio 2008 to develop for the UNO-1019 .", "If computer have several NIC it s up to the routing rules to see which interface would be used to pass packets through .", "I d recommend that you switch the name of your function to main and confirm that your Visual Studio project is correctly configured for the correct application entry-point .", "I ve included .. . .. . include winsock2.h .. . .. . And I have included in project properties a path to Ws2.lib But still get the error at link step : .. . .. . error LNK2019 : unresolved external symbol WSAStartup referenced in function .. . .. . .. . How to resolve this problem", "You haven t linked your program with the winsock library .", "The Winsock 2 library is called ws2 32.lib static or ws2 32.dll dynamic .", "It should already be on your system you just need to tell your compiler linker to link your program against it .", "msdn.microsoft.com en-us library ms911778.aspx http : msdn.microsoft.com en-us library ms911778.aspx It is written there about how the WSAStartup works .", "It uses ws2.dll .", "But nothing is written about ws2 32.dll", "pragma comment lib WS2 32 after all include s", "Either edit the Addintional include directives in C++ section of the project properties or if you start the compiler from the command-line use -I command-line option .", "Next you should research on how WinCE is set up to execute a C function : does it use Windows WinMain tmain wmain or main", "Add the path - C : Program Files Windows CE Tools wce420 POCKET PC 2003 Include Armv4 .. . 4 .", "The error went away when I commented out a function that was extern C void declspec naked with no body body ifdef fed away .", "I got a WiFi router connected to my PC .", "What I want is to send from another device some data to my PC through the Wi-Fi adapter .", "The one on PC - on VC++ .", "EDIT 1 : PC has an IP address .", "Another device s IP is set at program execution .", "I mean WiFi IP address .", "And then connection to WiFi router is proceeded .", "EDIT 2 : What if it uses an ethernet and wifi together", "How should I make a connection through WiFi", "Is the other device capable of IP networking", "Does it have an ip-address", "@kazanaki please refer to the EDIT .", "WiFI is no different to usual Ethernel network .", "So you just usually find out IP of other computer in config ask user DNS establish usual TCP IP connection and send data on .", "What if I have both WiFi and ethernet", "Now I am triing to use sockets .", "Hope I am on the right way .", "Yes that s the right way .", "Also you may choose interface to use usually via specifying external IP of the interface .", "Thank you", "You helped much", "I have the handle of process A on a Pocket PC 2003 device .", "I need to determine if that process is still running from process B .", "GetExitCodeProcess will return STILL ACTIVE if the process was running when the function was called .", "Process handles are waitable .", "They are signalled - will release any waiting thread - when the process exits .", "You can use them with WaitForSingleObject WaitForMultipleObjects etc .", "You need to add the path to the directory where ostream file resides to the list of the compiler include paths usually -I directive .", "Is there a graphical interface and a project", "Or do you just edit files and then start compilation from the command-line", "However the problem you face is quite simple and typical but the details you provide are very vague .", "It doesn t matter whether the program will be command-line or not .", "I ask you how you start compilation - from IDE or from the command-line", "From the IDE of course", "Then there must be some setting in the IDE that tells the compiler where to look for header-files .", "It should be called somehow like include directories .", "Alternatively there could be an option for setting the additional command-line parameters .", "I managed to connect the UNO to VS for deployment and debug using the ethernet connection .", "Thanks in advance" ] }
{ "confidence": [ 53.40120315551758, 51.1605224609375, 49.91462707519531, 49.250465393066406, 47.80638885498047, 46.66096115112305, 45.6994514465332, 43.31183624267578, 41.97262954711914, 40.80387496948242, 40.75835037231445, 40.4810676574707, 39.529544830322266, 38.9213981628418, 37.51984405517578, 37.3843994140625, 30.68259048461914, 28.932098388671875, 28.797706604003906, 27.543663024902344 ], "content": [ "Question : We have a set of nightly builds that build of full suite of software using Embedded Visual C++ batch files . There is probably a total of 30 builds that are done . Every night at least one or two builds fail with something like the following error : .. . .. . c : lc trunk server can svcangettracedrivelength.cpp 11 : fatal-error C1083 : Cannot open precompiled header file : SH4Rel CANWce.pch : Permission denied .. . .. . It is never the same file or precompile header that fails and it is rarely the same executable . As far as I know nothing else is happening on this build machine . Does anyone have a fix to make our nightly builds run more reliably .. . Answer : Generally speaking we do not see this error when running inside of the IDE EVC++ 4.0 . We cannot run our nightly builds using the GUI however . As far as we know the build machine is idle while the nightly builds are running .", "Question : Is there a data type in eVC++ http : www.google.com search q embedded 2Bvisual 2Bc 2B 2B that is the equivalent of int64 http : msdn.microsoft.com en-us library s3f49ktz 28VS.80 29.aspx None of the aliases compile . And I cannot find any of the long types in Math.h . A third party library would also be acceptable . Comment : What is eVC++ The article you referenced doesn t have evc in the text anywhere . Comment : Embedded Visual C++ . The Wikipedia article noted it in a bullet point in the History section en.wikipedia.org wiki Visual C 2B 2B History http : en.wikipedia.org wiki Visual C 2B 2B History . I updated the link-to Google.. . I can t find a product page . Comment : No longer a seperate product . Superceded by Visual Studio 2005 2008 2010 .. . Answer : Do you have access to the LargeInt http : doc.ddart.net msdn header include largeint.h.html library in eVC++ IIRC this was a standard lib bundled with VC 6.0 . VC 6.0 did not support int64 natively .", "Question : Is there a data type in eVC++ http : www.google.com search q embedded 2Bvisual 2Bc 2B 2B that is the equivalent of int64 http : msdn.microsoft.com en-us library s3f49ktz 28VS.80 29.aspx None of the aliases compile . And I cannot find any of the long types in Math.h . A third party library would also be acceptable . Comment : What is eVC++ The article you referenced doesn t have evc in the text anywhere . Comment : Embedded Visual C++ . The Wikipedia article noted it in a bullet point in the History section en.wikipedia.org wiki Visual C 2B 2B History http : en.wikipedia.org wiki Visual C 2B 2B History . I updated the link-to Google.. . I can t find a product page . Comment : No longer a seperate product . Superceded by Visual Studio 2005 2008 2010 .. . Answer : long-long is a synonym for int64 in VC++.. . maybe that works Comment : Nope . None of the aliases long-long nor signed long-long are available .", "Question : We have a set of nightly builds that build of full suite of software using Embedded Visual C++ batch files . There is probably a total of 30 builds that are done . Every night at least one or two builds fail with something like the following error : .. . .. . c : lc trunk server can svcangettracedrivelength.cpp 11 : fatal-error C1083 : Cannot open precompiled header file : SH4Rel CANWce.pch : Permission denied .. . .. . It is never the same file or precompile header that fails and it is rarely the same executable . As far as I know nothing else is happening on this build machine . Does anyone have a fix to make our nightly builds run more reliably .. . Answer : Does EVC 4.0 support macros Maybe as a last resort you can have a macro that triggers the builds : .. . .. . I don t understand your last statement . Clearly the trouble is at compile-time not at run time . Have you tried compiling without precompiled-headers What s the error then", "Question : Is there a data type in eVC++ http : www.google.com search q embedded 2Bvisual 2Bc 2B 2B that is the equivalent of int64 http : msdn.microsoft.com en-us library s3f49ktz 28VS.80 29.aspx None of the aliases compile . And I cannot find any of the long types in Math.h . A third party library would also be acceptable . Comment : What is eVC++ The article you referenced doesn t have evc in the text anywhere . Comment : Embedded Visual C++ . The Wikipedia article noted it in a bullet point in the History section en.wikipedia.org wiki Visual C 2B 2B History http : en.wikipedia.org wiki Visual C 2B 2B History . I updated the link-to Google.. . I can t find a product page . Comment : No longer a seperate product . Superceded by Visual Studio 2005 2008 2010 .. . Answer : Assuming you are using EVC++ 4.0.. . .. . .. . You ll first need to make sure you have the Pocket PC 2003 SDK installed . If you are on win mobile 5.0 and up and are still attempting to use EVC++4.0 I will fight you Ron Burgundy . The PPC 2003 SDK can be found here http : www.microsoft.com downloadS details.aspx familyid 9996B314-0364-4623-9EDE-0B5FBB133652 displaylang en . After it s install update the linker to find the newly installed SDK header-files with the macro definition of LONGLONG . To do this : .. . .. . 1 . Tools - options .. . 2 . Directories tab - make sure the third drop down reads include files .. . 3 . Add the path - C : Program Files Windows CE Tools wce420 POCKET PC 2003 Include Armv4 .. . 4 . Make sure to include winnt.h in your class . In that header you will find the definition of LONGLONG which is an int64 .. . .. . Good luck", "Question : I m trying to develop a simple application that will read some files targeted for Windows CE . For this I m using Microsoft eMbedded Visual C++ 3 . This program that is for console will be called like this : .. . .. . Storage Card Test coms file.cmss .. . .. . As you can see file.cmss is the first argument but on my main I have a condition to show the help the normal how to use the program if the arguments are smaller than 2 : .. . .. . But when I execute the program on the command-line of Windows CE using all the necessary arguments I got the showHelp content . Then I ve checked all the code but it s entirelly correct . But I think that eVC++ don t use argc and argv for arguments then I want some help on how to determine the arguments on it . Comment : What does the signature declaration of your main function look like Comment : @Reuben : Now I ve added it to the question . .. . Answer : WinMain is defined as .. . .. . You d probably want something similar to", "Question : I m learning C++ and i have the eVT eMbedded Visual Tools installed in my computer because of the eVB 3 eMbedded Visual Basic for my VB pocket programs but i m learning C++ then i want to use the eVC++ 3 for develop some command-line aplications then only to test i created an HelloWorld aplication just for test but when i try to compile it gave me this error : .. . .. . Fatal error C1083 : Cannot open include file : iostream : No such file or directory Error executing clarm.exe . Remember that i can t update to eVC++ 4 because i want to build programs for Windows CE 3.1 Thanks .. . Answer : Recently i see some eVC++ example and as i can see eVC++ remember : Plus Plus only uses C Without ++ code .", "Question : eMbedded Visual C++ 3 project building for PocketPC 2000 . On the ARM build the linker throws the following error : .. . .. . fatal-error LNK1223 : invalid or corrupt file : file contains invalid pdata contributions .. . .. . On SH3 the project compiles links and works . The project also works when built for ARM on Visual C++ 2005 but I need to test builds specifically from eVC3 . Any ideas please What s a pdata contribution and how do I affect or disable those It s something to do with exception-handling I ve tried disabling SEH by specifying EHsc to no effect . Comment : Just curious have you tried EVC++ 4 to see if it builds Is there something EVC3 gives you for your legacy build that EVC4 would not Comment : eVC4 does not start for me claiming I don t have any CE SDKs installed . In fact I have plenty both PlatMan-compliant and CoreCon-compliant all the way from PPC2000 to WM6.1 . Rather than fight with eVC4 I went with eVC3 . .. . Answer : Very weird . I tried commenting out everything in the file . The error went away when I commented out a function that was extern C void declspec naked with no body body ifdef fed away . I have similar functions in the project but they did not throw any errors like this . Maybe a compiler bug.. .", "Question : We have a set of nightly builds that build of full suite of software using Embedded Visual C++ batch files . There is probably a total of 30 builds that are done . Every night at least one or two builds fail with something like the following error : .. . .. . c : lc trunk server can svcangettracedrivelength.cpp 11 : fatal-error C1083 : Cannot open precompiled header file : SH4Rel CANWce.pch : Permission denied .. . .. . It is never the same file or precompile header that fails and it is rarely the same executable . As far as I know nothing else is happening on this build machine . Does anyone have a fix to make our nightly builds run more reliably .. . Answer : Try running it all in the visual IDE it will be easier to catch this way . You sure you don t have multiple compiler instances working on several builds at once One building a project lib whatever while another trying to access it", "Question : I m trying to develop a simple application that will read some files targeted for Windows CE . For this I m using Microsoft eMbedded Visual C++ 3 . This program that is for console will be called like this : .. . .. . Storage Card Test coms file.cmss .. . .. . As you can see file.cmss is the first argument but on my main I have a condition to show the help the normal how to use the program if the arguments are smaller than 2 : .. . .. . But when I execute the program on the command-line of Windows CE using all the necessary arguments I got the showHelp content . Then I ve checked all the code but it s entirelly correct . But I think that eVC++ don t use argc and argv for arguments then I want some help on how to determine the arguments on it . Comment : What does the signature declaration of your main function look like Comment : @Reuben : Now I ve added it to the question . .. . Answer : You need to supply more details about the embedded platform . Embedded platforms vary widely from desktop computers especially about their resources such as file systems I O memory capacity and hardware layout addressing . For developing a WinCE application you must confirm that the platform supports a file system . Many embedded systems don t . Next you should research on how WinCE is set up to execute a C function : does it use Windows WinMain tmain wmain or main Also you need to research how parameters are passed to the program . Windowing programming is different than console programming .", "Question : We have a set of nightly builds that build of full suite of software using Embedded Visual C++ batch files . There is probably a total of 30 builds that are done . Every night at least one or two builds fail with something like the following error : .. . .. . c : lc trunk server can svcangettracedrivelength.cpp 11 : fatal-error C1083 : Cannot open precompiled header file : SH4Rel CANWce.pch : Permission denied .. . .. . It is never the same file or precompile header that fails and it is rarely the same executable . As far as I know nothing else is happening on this build machine . Does anyone have a fix to make our nightly builds run more reliably .. . Answer : Encountered apparently same issue - was seemingly caused by Microsoft Security Essentials . I tried disabling it and it immediately fixed the issue and it has not returned since .", "Question : I m trying to develop a simple application that will read some files targeted for Windows CE . For this I m using Microsoft eMbedded Visual C++ 3 . This program that is for console will be called like this : .. . .. . Storage Card Test coms file.cmss .. . .. . As you can see file.cmss is the first argument but on my main I have a condition to show the help the normal how to use the program if the arguments are smaller than 2 : .. . .. . But when I execute the program on the command-line of Windows CE using all the necessary arguments I got the showHelp content . Then I ve checked all the code but it s entirelly correct . But I think that eVC++ don t use argc and argv for arguments then I want some help on how to determine the arguments on it . Comment : What does the signature declaration of your main function look like Comment : @Reuben : Now I ve added it to the question . .. . Answer : The main function of a Windows application can take one of a few different forms . There s WinMain http : msdn.microsoft.com en-us library ms633559 28VS.85 29.aspx there s main and wmain http : msdn.microsoft.com en-us library aa299386 28VS.60 29.aspx . In your case you ve written a WinMain function that takes classic main parameters i.e . argc and argv . I d recommend that you switch the name of your function to main and confirm that your Visual Studio project is correctly configured for the correct application entry-point . Comment : Now I got this : unresolved external symbol WinMain . Comment : Are you compiling a console-application or a Windows GUI application Comment : I ve selected WCE Application . Comment : I m not familiar with this particular version of Visual C++ but Visual C++ Studio usually has an option to pick a GUI a.k.a . Win32 application vs . a console-application . Windows GUI applications usually use the WinMain function if this is what you re required to have then you ll need to change the parameters of your main function to match the documentation for WinMain i.e . lpCmdLine and others instead of argc argv .", "Question : I have the handle of process A on a Pocket PC 2003 device . I need to determine if that process is still running from process B . Process B is written in Embedded Visual C++ 4.0 . .. . Answer : GetExitCodeProcess will return STILL ACTIVE if the process was running when the function was called .", "Question : I m learning C++ and i have the eVT eMbedded Visual Tools installed in my computer because of the eVB 3 eMbedded Visual Basic for my VB pocket programs but i m learning C++ then i want to use the eVC++ 3 for develop some command-line aplications then only to test i created an HelloWorld aplication just for test but when i try to compile it gave me this error : .. . .. . Fatal error C1083 : Cannot open include file : iostream : No such file or directory Error executing clarm.exe . Remember that i can t update to eVC++ 4 because i want to build programs for Windows CE 3.1 Thanks .. . Answer : You need to add the path to the directory where ostream file resides to the list of the compiler include paths usually -I directive . Comment : Either edit the Addintional include directives in C++ section of the project properties or if you start the compiler from the command-line use -I command-line option . Comment : Is there a graphical interface and a project Or do you just edit files and then start compilation from the command-line Comment : There s a minor problem : I ve never in my whole development experience have seen the eVC++3 . However the problem you face is quite simple and typical but the details you provide are very vague . It doesn t matter whether the program will be command-line or not . I ask you how you start compilation - from IDE or from the command-line Comment : From the IDE of course Comment : Then there must be some setting in the IDE that tells the compiler where to look for header-files . It should be called somehow like include directories . Alternatively there could be an option for setting the additional command-line parameters .", "Question : I have the handle of process A on a Pocket PC 2003 device . I need to determine if that process is still running from process B . Process B is written in Embedded Visual C++ 4.0 . .. . Answer : Process handles are waitable . They are signalled - will release any waiting thread - when the process exits . You can use them with WaitForSingleObject WaitForMultipleObjects etc .", "Question : eMbedded Visual C++ 3 project building for PocketPC 2000 . On the ARM build the linker throws the following error : .. . .. . fatal-error LNK1223 : invalid or corrupt file : file contains invalid pdata contributions .. . .. . On SH3 the project compiles links and works . The project also works when built for ARM on Visual C++ 2005 but I need to test builds specifically from eVC3 . Any ideas please What s a pdata contribution and how do I affect or disable those It s something to do with exception-handling I ve tried disabling SEH by specifying EHsc to no effect . Comment : Just curious have you tried EVC++ 4 to see if it builds Is there something EVC3 gives you for your legacy build that EVC4 would not Comment : eVC4 does not start for me claiming I don t have any CE SDKs installed . In fact I have plenty both PlatMan-compliant and CoreCon-compliant all the way from PPC2000 to WM6.1 . Rather than fight with eVC4 I went with eVC3 . .. . Answer : No idea from me but the Google-mind dredged up this thread which might give you a clue how to fix workaround the problem.. . maybe : .. . .. . http : www.pocketpcjunkies.com Uwe Forum.aspx wince-pb 7477 Link-error-during-DEBUG-build .. . .. . After looking at the error more closely I finally figured out that this is a side-effect of my hijacking of SC SetDaylightTime in the kernel with my own version . Apparently something that I m doing in my code there is causing the compiler to generate pdata entries that are wrong in some way . A strategically-placed ifndef worked around it .", "Question : I am using EVC++ and I want to compile the program which uses the sockets . I ve included .. . .. . include winsock2.h .. . .. . And I have included in project properties a path to Ws2.lib But still get the error at link step : .. . .. . error LNK2019 : unresolved external symbol WSAStartup referenced in function .. . .. . .. . How to resolve this problem .. . Answer : You haven t linked your program with the winsock library . The Winsock 2 library is called ws2 32.lib static or ws2 32.dll dynamic . It should already be on your system you just need to tell your compiler linker to link your program against it . The method of doing this varies by compiler and unfortunately I m not familiar with EVC++ . Comment : msdn.microsoft.com en-us library ms911778.aspx http : msdn.microsoft.com en-us library ms911778.aspx It is written there about how the WSAStartup works . It uses ws2.dll . But nothing is written about ws2 32.dll", "Question : I m trying to set up my developing environment using Visual Studio 2008 to develop for the UNO-1019 . I managed to connect the UNO to VS for deployment and debug using the ethernet connection . I installed the SDK for EVC++ available on the products page and I was wondering if I can use that sdk on visual-studio 2008.I m rather new with this and I s kind of lost . Thanks in advance .. . Answer : Well this was me being dumb . I downloaded and installed the Windows CE 5.0 SDK from here : http : www.microsoft.com downloads details.aspx familyid FA1A3D66-3F61-4DDC-9510-AE450E2318C3 displaylang en http : www.microsoft.com downloads details.aspx familyid FA1A3D66-3F61-4DDC-9510-AE450E2318C3 displaylang en .. . .. . I didn t realize that I could use that sdk . I was under the impression that I had to use the sdk provided by the manufacturer .", "Question : I am using EVC++ and I want to compile the program which uses the sockets . I ve included .. . .. . include winsock2.h .. . .. . And I have included in project properties a path to Ws2.lib But still get the error at link step : .. . .. . error LNK2019 : unresolved external symbol WSAStartup referenced in function .. . .. . .. . How to resolve this problem .. . Answer : pragma comment lib WS2 32 after all include s", "Question : I am new in evc . I have a problem whenever I select any keyword and press F1 the help is opened and shows the index page in which the particular keyword is showed but the details regarding to the keyword is not shown . I have to search that keyword . Can anybody tell me what happening is this or any setting regarding to the evc help is changed .. . Answer : Make sure SDK is installed properly .. . .. . With F1 you should be able to search your help contents if the index page is opened as you had mentioned ." ] }
[ "yes-answer-long", "yes-answer-short" ]
evc
UNK_RELATION
uialertcontroller@uiactionsheet@59
uialertcontroller -- uialertcontroller class replaces the @placeholder and uialertview classes for displaying alerts .
{ "confidence": [ 98.14604187011719, 50.92085647583008, 48.063419342041016, 45.585323333740234, 45.577423095703125, 45.577423095703125, 44.639381408691406, 43.6478157043457, 43.571720123291016, 43.541419982910156, 43.541419982910156, 42.447452545166016, 41.47911071777344, 41.42862319946289, 41.42862319946289, 40.934593200683594, 40.71681213378906, 40.49058151245117, 40.49058151245117, 40.49058151245117, 40.48301315307617, 40.4639778137207, 39.54497528076172, 39.36631393432617, 39.36631393432617, 38.72230529785156, 38.72230529785156, 38.72230529785156, 38.419677734375, 38.40510177612305, 38.40510177612305, 38.39373779296875, 38.293426513671875, 37.55430603027344, 37.46706008911133, 37.312110900878906, 37.308326721191406, 37.308326721191406, 37.308326721191406, 37.308326721191406, 37.308326721191406, 37.308326721191406, 37.308326721191406, 37.308326721191406, 37.25419616699219, 36.37028503417969, 36.37028503417969, 36.37028503417969, 36.37028503417969, 36.37028503417969, 36.177711486816406, 35.918792724609375, 35.84021759033203, 35.84021759033203, 35.84021759033203, 35.77336120605469, 35.77336120605469, 35.77336120605469, 35.77336120605469, 35.77336120605469, 35.77336120605469, 35.77336120605469, 35.77336120605469, 35.77336120605469, 35.77336120605469, 35.77336120605469, 35.77336120605469, 35.75380325317383, 35.24602127075195, 35.185909271240234, 35.15280532836914, 35.12586975097656, 35.12586975097656, 35.12586975097656, 35.12586975097656, 35.07621383666992, 34.90217590332031, 34.90217590332031, 34.90217590332031, 34.859397888183594, 34.859397888183594, 34.859397888183594, 34.859397888183594, 34.859397888183594, 34.859397888183594, 34.83531951904297, 34.83531951904297, 34.83531951904297, 34.83531951904297, 34.83531951904297, 34.83531951904297, 34.83531951904297, 34.83531951904297, 34.83531951904297, 34.83531951904297, 34.83531951904297, 34.83531951904297 ], "content": [ "This class replaces the UIActionSheet and UIAlertView classes for displaying alerts .", "It does not use UIAlertController or UIAlertView .", "if NSClassFromString UIAlertController nil use UIAlertController else use UIAlertView", "I have written one class that wrap the UIAlertView and use UIAlertController .", "I try UIAlertView and UIAlertController but I failed .", "It manifests on both deprecated UIAlertView and the iOS8-only UIAlertController .", "The Old Way : UIAlertView .. . .. . The New Way : UIAlertController", "possible duplicate of UIAlertView UIAlertController iOS 7 and iOS 8 compatibility http : stackoverflow.com questions 25111011 uialertview-uialertcontroller-ios-7-and-ios-8-compatibility", "You should create different UIAlertController for different alerts .", "UIAlertController+MH.h .. . .. . UIAlertController+MH.m .. . .. . This code even handles the case where a previous alert was presented via the deprecated UIAlertView i.e .", "Since UIAlertView has been replaced with UIAlertController how can I check if the UIAlertController is available without checking the system version", "I am using new UIAlertController for showing alerts .", "I get a similar leak with UIAlertController and UIAlertView : stackoverflow.com questions 26273175 http : stackoverflow.com questions 26273175 leaks-with-uialertcontroller", "Under the old UIAlertView they would appear but it seems they will not under a UIAlertController .", "Is there a way to do this with UIAlertController without continuing to use the deprecated but modified UIAlertView", "How to dismiss UIAlertController when tap outside the UIAlertController", "In iOS8 system provide a new class UIAlertController replace UIAlertView and UIActionSheet In iOS8 after use UIAlertController and iOS8 before use UIALertView and UIActionSheet I think iOS8 add size classes that change UIAlertView display direction https : github.com wangyangcc FYAlertManage", "However ideally UIAlertView should only be used when UIAlertController is not available .", "UIAlertController is a functionally identical block-based replacement for both UIAlertView and UIActionSheet .", "Unfortunately Apple does not allow us to add images to UIAlertController or UIAlertView .", "I m wondering if it s possible to customize in app alerts with the UIAlertController .", "SpringBoard doesn t use the standard UIAlertView UIAlertController classes since they don t participate in the SpringBoard-wide alert system .", "I want use uialertcontroller show picture in alerts message box .", "Does anyone have any ideas on replicating UIAlertView show functionality for a UIAlertController", "I am converting all my UIActionSheet and UIAlertView with UIAlertController .", "It is not the UIAlertController that is already presenting it is MessagesMasterVC .", "The solution is to replace the UIActionSheet with a UIAlertController .", "There is no API to customize the buttons of a UIAlertController .", "UIAlertController : 0x1535b1cd0 .", "As noted conditional eval of UIAlertController class is the preferred strategy .", "The UIAlertController class is intended to be used as-is and does not support subclassing .", "Aha I think this may be answered by jcesarmobile in another thread : UIAlertController UIAlertView scrolling on iOS 8 http : stackoverflow.com questions 24671833 uialertcontroller-uialertview-scrolling-on-ios-8 .. . .. . The workaround a lot of folks added to deal with prior bugs with long text in UIAlertController now causes this crash in 8.3 .", "Check 1 : iOS verstion check UIAlertController https : iosdevcenters.blogspot.com 2016 03 uialertcontroller-in-swift.html Class .", "From UIAlertController documentation : .. . .. . A UIAlertController object displays an alert message to the user .", "The UIAlertController class is intended to be used as-is and does not support subclassing .", "Use UIAlertController with a preferredStyle of UIAlertControllerStyleAlert instead .. . .. . On iOS 8 you can do this : .. . .. . Now UIAlertController is a single class for creating and interacting with what we knew as UIAlertView s and UIActionSheet s on iOS 8 .", "However iOS8 introduced UIAlertController .", "change color a action in UIAlertController", "TExtView doesnt work with UIAlertcontroller .", "Are you sure about UIAlertController", "use UIAlertController instead of UIActionSheet", "Happy UIAlertController customizing .. . .. . PS .", "Here is a screenshot of a UIAlertController .", "But with UIAlertController is to make the blur effect", "Difference between the legacy UIAlertView and the new UIAlertController is that the latter needs to be presented onto a specific viewcontroller with presentViewController : animated : completion : .", "The modalPresentationStyle of a UIAlertController with this style is UIModalPresentationPopover .", "This question is about UIAlertController not UIActivityViewController", "I should use UIAlertController", "And also this behavior is for UIAlertController only", "So as UITextfields in UIAlertController is nil .", "Use UIAlertController for iOS8 or later .. . .. . Ref : UIAlertController https : developer.apple.com library prerelease ios documentation UIKit Reference UIAlertController class index.html apple ref occ cl UIAlertController .. . .. . Example : https : github.com KiritVaghela UIAlertController", "Apple does not encourage directly subclassing UIAlertController so I made a class that displays UIAlertController with centered UIActivityIndicator and handles the cancel condition with a class protocol .", "Here to check two-way of UIAlertView and UIAlertContoller https : iosdevcenters.blogspot.com 2016 03 uialertcontroller-in-swift.html .", "In iOS8 the UIAlertController have taken over and I cannot customize it anymore it will cut the height of the UIAlertView .", "I want to conform to the UIAlertController used in iOS 8 since UIAlertView is now deprecated .", "Only the UIAlertController has a textFields property .", "The functionality you re looking for is not provided by UIAlertController .", "Im using UIAlertController to do so .", "UIAlertController example http : i.stack.imgur.com uebPY.png", "I ve tried both UIActionSheet and UIAlertController .", "The scroll doesn t work on the UIAlertController either", "This is answer is irrelevant when it comes to UIAlertController .", "Best practice is to sublclass UIAlertController .. . uhhh no .", "Implement uipickerview delegates and present the uialertcontroller .", "@ViTUu self.removeFromFromParentController doesnt dismiss the uialertcontroller .", "I have a problem abount UIAlertController .", "You probably want to create a UIAlertController .", "If your using both iOS 7- UIAlertView and iOS 8+ UIAlertController as described above and you want your UIAlertController blocks to call your UIAlertView s delegate e.g .", "Not at the same time as UIAlertController .", "You can do it with just a one of line of code using my UIAlertController category and replace existing alerts in application check it here https : github.com m1entus UIAlertController-MZStyle .", "enter image description here http : i.stack.imgur.com qg4pS.png .. . .. . Also if I use the UIAlertView instead of the UIAlertController the instance of the UIAlertView will rotate accordingly .", "I m getting bellow exception when using the UIAlertController .", "Based on the validation I want to dismiss the UIAlertController or not .", "Whatever screenshots you have seen are not using UIAlertController .", "When you want to display your UIAlertController : .. . .. . 1 .", "From the docs : The UIAlertController class is intended to be used as-is and does not support subclassing .", "UIAlertView and UIActionSheet has been replaced by UIAlertController in iOS 8 have you looked at this", "Apparently UIAlertView has been deprecated in iOS 8 and we now use UIAlertController with a preferred style of UIAlertControllerStyleAlert .", ".. . .. . I recently read that UIAlertView is depreciated since iOS 8 and that we should now use UIAlertController .", "I present the UIAlertController before starting a long operation and then after the long operation I dismiss the UIAlertController .", "UIAlertController with example : iosdevcenters.blogspot.com 2016 03 https : iosdevcenters.blogspot.com 2016 03 uialertcontroller-in-swift.html", "possible duplicate of UIAlertController custom font-size color http : stackoverflow.com questions 26460706 uialertcontroller-custom-font-size-color", "But I want to add the function that when user tap outside the UIAlertController the UIAlertController will dismiss .", "UIAlertController controller UIAlertController alertControllerWithTitle : @ message : @ preferredStyle : UIAlertControllerStyleAlert style check .. . .. . write to perform action", "UIAlertcontroller is there any way to customize it with images on right side I already tried UIAlertcontroller but could not achieve the same requirement .", "It s not possible to modify the default UIAlertController .", "You should use UIAlertController instead .", "Use a UIAlertController the preferred replacement for UIActionSheet .", "Use UIAlertController with a preferredStyle of UIAlertControllerStyleAlert instead .", "UIAlertController should not be used multiple times .", "UIAlertController views are intended to be simple and not customizable .", "The self inside the block is the UIAlertController not the UIViewController .", "I want to add an image to UIAlertController .", "Instead of that UIAlertController with prefferedstyle .. . UIAlertControllerStyleActionSheet is used .", "I was trying to create a UIAlertController like this .", "The documentation says to use UIAlertController instead .", "UIAlertController with UITextField http : i.stack.imgur.com V9lhj.png" ] }
{ "confidence": [ 85.51871490478516, 60.58453369140625, 59.32269287109375, 58.4173583984375, 58.10198974609375, 57.54922866821289, 57.07965850830078, 56.47004699707031, 55.040626525878906, 54.692352294921875, 54.69050598144531, 54.252140045166016, 53.97245788574219, 53.78655242919922, 53.50458908081055, 53.24927520751953, 53.20886993408203, 53.16625213623047, 52.941429138183594, 52.445980072021484 ], "content": [ "Question : My app is ready to go to the App Store so I m still using Xcode 5 at the moment . However when I installed it on my iPad with iOS 8 there was a strange problem . I create an Alert just fine with delegate : self . But the function to dismiss the alert is just not working it s in another method and working fine on all other devices . I tried : .. . .. . and NO .. . .. . and NO .. . .. . and NO .. . .. . Anybody with the same problem Comment : it seems your application is not such ready yet . Comment : You re manually dismissing the alert Surely when they click on of the buttons on the alert it will hide Comment : Is alertLaden set when you run it on iOS 8 Comment : @CW0007007 there are some situations when there is no button on the UIAlertView and it has to be dismissed programmatically e.g . after a longer procedure or calculation . Comment : iOS8 is still beta so if it works correctly on iOS 7 then you have two choices - 1 release now and either hope that it is an iOS8 bug that is relaxed or release a new version when iOS8 ships or 2 wait for iOS8 to ship and figure out how to get it working by then .. . Answer : In iOS 8 Apple is trying to switch to UIAlertController https : developer.apple.com library prerelease ios documentation UIKit Reference UIAlertController class index.html apple ref occ instm UIAlertController addAction : instead of UIAlertView https : developer.apple.com library prerelease ios documentation UIKit Reference UIAlertView Class index.html apple ref occ cl UIAlertView and UIActionSheet https : developer.apple.com library prerelease ios documentation UIKit Reference UIActionSheet Class index.html apple ref occ cl UIActionSheet . From UIAlertController documentation : .. . .. . A UIAlertController object displays an alert message to the user . This class replaces the UIActionSheet and UIAlertView classes for displaying alerts . However Apple does not state in UIAlertView and UIActionSheet that they are deprecated . Using UIActionSheet I got warnings in Xcode 6 which were resolved when switching to UIAlertController . Comment : Thnx that makes sense", "Question : I am using Swift to write an app and I need to show an alert . The app must be iOS 7 and iOS 8 compatible . Since UIAlertView has been replaced with UIAlertController how can I check if the UIAlertController is available without checking the system version I have been hearing that Apple recommends that we should not check the system version of the device in order to determine the availability of an API . This is what I am using for iOS 8 but this crashes on iOS 7 with dyld : Symbol not found : OBJC CLASS UIAlertAction : .. . .. . If I use the UIAlertView for iOS 8 I get this warning : Warning : Attempt to dismiss from view controller UIAlertShimPresentingViewController : 0x7bf72d60 while a presentation or dismiss is in progress Comment : UIAlertController with example : iosdevcenters.blogspot.com 2016 03 https : iosdevcenters.blogspot.com 2016 03 uialertcontroller-in-swift.html .. . Answer : For non-swift code pure objective-C do this Comment : This code will not work as UIAlertAction does not have a textFields property . Only the UIAlertController has a textFields property . Comment : Not a good idea because the old and new alerts have different behaviours . E.g . the old alert can be queued up to show multiple error alerts the new one cannot it just skips showing more alerts while the first is shown . Warning : Attempt to present UIAlertController : 0x7fe17268afd0 on MasterViewController : 0x7fe172734310 which is already presenting null", "Question : I want to conform to the UIAlertController used in iOS 8 since UIAlertView is now deprecated . Is there a way that I can use this without breaking support for iOS 7 Is there some kind of if condition I can do to check for iOS 8 otherwise do something else for iOS 7 support Comment : FYI - Since your Deployment Target is iOS 7 or earlier you can just use UIAlertView . This will keep your code a lot simpler . Comment : I wasn t aware that Swift had a respondsToSelector.. . Also the UIAlertView is screwed up in ios8 it doesn t scroll where as it does in ios 7 which is why I want to try to use both Comment : The scroll doesn t work on the UIAlertController either Comment : possible duplicate of UIAlertView UIAlertController iOS 7 and iOS 8 compatibility http : stackoverflow.com questions 25111011 uialertview-uialertcontroller-ios-7-and-ios-8-compatibility .. . Answer : I have written one class that wrap the UIAlertView and use UIAlertController . For the programmer is transparently hence is sufficient import this classes in the project . The utility of this classes is when in a old project there are more UIAlertView to change . Link : https : github.com kennymuse UIAlertView", "Question : I want to conform to the UIAlertController used in iOS 8 since UIAlertView is now deprecated . Is there a way that I can use this without breaking support for iOS 7 Is there some kind of if condition I can do to check for iOS 8 otherwise do something else for iOS 7 support Comment : FYI - Since your Deployment Target is iOS 7 or earlier you can just use UIAlertView . This will keep your code a lot simpler . Comment : I wasn t aware that Swift had a respondsToSelector.. . Also the UIAlertView is screwed up in ios8 it doesn t scroll where as it does in ios 7 which is why I want to try to use both Comment : The scroll doesn t work on the UIAlertController either Comment : possible duplicate of UIAlertView UIAlertController iOS 7 and iOS 8 compatibility http : stackoverflow.com questions 25111011 uialertview-uialertcontroller-ios-7-and-ios-8-compatibility .. . Answer : I have created very simple wrapper in Objective-C that supports both - old iOS UIAlertView and new one UIAlertViewController .. . .. . https : github.com MartinPerry UIAlert .. . .. . It also brings the new action blocks usage to old UIAlertView .. . .. . Sample : Comment : Does this handle multiple alerts", "Question : I am using Swift to write an app and I need to show an alert . The app must be iOS 7 and iOS 8 compatible . Since UIAlertView has been replaced with UIAlertController how can I check if the UIAlertController is available without checking the system version I have been hearing that Apple recommends that we should not check the system version of the device in order to determine the availability of an API . This is what I am using for iOS 8 but this crashes on iOS 7 with dyld : Symbol not found : OBJC CLASS UIAlertAction : .. . .. . If I use the UIAlertView for iOS 8 I get this warning : Warning : Attempt to dismiss from view controller UIAlertShimPresentingViewController : 0x7bf72d60 while a presentation or dismiss is in progress Comment : UIAlertController with example : iosdevcenters.blogspot.com 2016 03 https : iosdevcenters.blogspot.com 2016 03 uialertcontroller-in-swift.html .. . Answer : In iOS8 system provide a new class UIAlertController replace UIAlertView and UIActionSheet In iOS8 after use UIAlertController and iOS8 before use UIALertView and UIActionSheet I think iOS8 add size classes that change UIAlertView display direction https : github.com wangyangcc FYAlertManage Comment : If you can explain answer then it will be helpful for others .", "Question : I have working iOS application In order to support iOS8 I am replacing UIAlertView UIActionSheet with UIAlertController . Problem : .. . For display UIAlertController I need presentViewController method of UIViewController class . But UIAlertView is display from classes which are inherited from UIView or NSObject .. . I can not get self presentViewController.. . method for obvious reason . My Work : .. . I tried getting rootViewController form current window and display UIAlertController . but have some rotation problems like if my current view controller do not have rotation support it will rotate if UIAlertController is open . Question : .. . Did any one faced same problem and have safe solution if yes please provide me some example or give some guide .. . Answer : It looks like you are currently pre-iOS8 triggering an alert view from within your view object . That s pretty bad practice as in general alerts should be triggered from actions and logic . And that code should live in controllers . I suggest you refactor your current code to move the logic that triggers the alert to the correct controller and then you can easily upgrade to iOS 8 by using self as the controller . If instead you re calling the alert from an outside object then pass in the controller to the method that calls the alert . Somewhere upstream you must have knowledge of the controller . Comment : +1 for suggestion you are right place for calling UIAlertView is wrong but in current state i can not refactor it i found same problem in many place waiting for suggestion with less modification any ways thanks will apply your logic if no other suggestion came . Comment : have u find the solution yet Comment : Previously UIAlertView has been working from any UIView or NSObject . For ex : Showing alert from UITableViewCell works . There is no need to show it from UIViewController instance . Now UIAlertController presents only from UIViewController which is not easy to show alerts from cells . Comment : in general alerts should be triggered from actions and logic . And that code should live in controllers . - I prefer to put my business logic away from the view controllers in my model . The controllers should only handle the visual side of the views they.. . control . So this all just doesn t make sense . Comment : @Jonny business logic lives in business classes but display logic lives in display controllers . When a display controller calls business logic that returns an error it is up to it to determine how to display it to the user . I hope that makes it clearer .", "Question : I am used to customize UIAlertViews through the alert setValue : someView forKey : @ accessoryView method . This creates customizable content for UIAlertViews with custom heights . However it only works on iOS7 and down . In iOS8 the UIAlertController have taken over and I cannot customize it anymore it will cut the height of the UIAlertView . Is it impossible because of misuse of the UIAlertController or how am I supposed to do it I am trying to incorporate a UITableView inside a UIAlertController with UIAlertControllerStyleAlert . Thx . Comment : I ended up using this library instead github.com wimagguc ios-custom-alertview https : github.com wimagguc ios-custom-alertview and abandoned the UIAlertController . .. . Answer : You can do it with just a one of line of code using my UIAlertController category and replace existing alerts in application check it here https : github.com m1entus UIAlertController-MZStyle . enter image description here https : camo.githubusercontent.com 294018e41fe7c794f6b83da40bc8f760f6af8a71 68747470733a2f2f7261772e6769746875622e636f6d2f6d31656e7475732f5549416c657274436f6e74726f6c6c65722d4d5a5374796c652f6d61737465722f53637265656e732f315f612e6a7067", "Question : I have an iPad app . I am creating an UIAlertController and adding a textfield . It crashes . It only crashes when I add a textfield . I get a fun crash telling me that the constraints are messed up . This code works fine in 8.3 with no warnings . Even on a clean project with nothing in it but this code it crashes - The project needs to be a splitview project on iPad . Here is the full stack-trace plus bizarre constraint warnings which appears only after trying to add the textfield to alertController . Comment : Just an FYI the project is a splitview running on iPad . Comment : I get the same error . In my case the uialertcontroller is triggered via a button in a section header of a uitableview . .. . Answer : There does seem to a bug in iOS 8.3 related alerts . It manifests on both deprecated UIAlertView and the iOS8-only UIAlertController . When I attempt to add a textfield to either of these controllers I get the following crash : .. . .. . Alerts without textfields are OK but showing a UIAlertView with style UIAlertViewStylePlainTextInput or showing a UIAlertController with a textfield added via addTextFieldWithConfigurationHandler will result in the above crash . The fix seems to be to set a prophylactic frame on the UIAlertController before calling show . This frame is overridden before show but prevents the crash . Comment : This did t do it for me . Still get the same error... . Comment : I was extremely hopeful that this would work for me but unfortunately it didn t Comment : Please see my answer below I had the same crash and fixed it . Comment : See my answer as well on this page fixed immediately . Had the same NSInternalInconsistencyException problem . Comment : Other way that worked for me - if you want to continue using UIAlertView alert UIAlertView alloc initWithTitle : @ Alert - prior to show call self.view endEditing : YES However I recommend moving to AlertController", "Question : Difference between the legacy UIAlertView and the new UIAlertController is that the latter needs to be presented onto a specific viewcontroller with presentViewController : animated : completion : . This poses an awkward problem for my use-case : what if there is already an UIAlertController showing e.g . a rating dialog when a second viewcontroller gets presented e.g . an error dialog due to failed network connection . I have experienced that in this case the second UIAlertController just does not show . Edit : At the moment I try to show an alert I do not know if there currently is anything presenting . How do you cope with this situation Comment : This thread 1 explain correctly how to solve similar issues 1 : stackoverflow.com questions 21179922 http : stackoverflow.com questions 21179922 can-i-check-if-any-uialertview-displaying-right-now Comment : The solutions in the other thread are fragile and ugly and probably will break in iOS8 . .. . Answer : Since UIAlertControllor is itself a UIViewController you can present a second UIAlertController on top of the first one by presenting from the existing one : Comment : The problem is that one has to find out the top presented viewcontroller first . Let s assume I don t know if there are amy alerts or other presented viewcontrollers showing . Comment : Use this to get the top ViewController : private UIViewController GetTopPresentedViewController UIViewController currentVC this.viewController while true UIViewController nextVC currentVC.PresentedViewController if nextVC null return currentVC currentVC nextVC Comment : see my answer - do not forget the isBeingDismissed flag .", "Question : I am using Swift to write an app and I need to show an alert . The app must be iOS 7 and iOS 8 compatible . Since UIAlertView has been replaced with UIAlertController how can I check if the UIAlertController is available without checking the system version I have been hearing that Apple recommends that we should not check the system version of the device in order to determine the availability of an API . This is what I am using for iOS 8 but this crashes on iOS 7 with dyld : Symbol not found : OBJC CLASS UIAlertAction : .. . .. . If I use the UIAlertView for iOS 8 I get this warning : Warning : Attempt to dismiss from view controller UIAlertShimPresentingViewController : 0x7bf72d60 while a presentation or dismiss is in progress Comment : UIAlertController with example : iosdevcenters.blogspot.com 2016 03 https : iosdevcenters.blogspot.com 2016 03 uialertcontroller-in-swift.html .. . Answer : Here to check two-way of UIAlertView and UIAlertContoller https : iosdevcenters.blogspot.com 2016 03 uialertcontroller-in-swift.html . Check 1 : iOS verstion check UIAlertController https : iosdevcenters.blogspot.com 2016 03 uialertcontroller-in-swift.html Class . Check 2 : check UIAlertController nil then iOS version below 8.0 .", "Question : I am using Swift to write an app and I need to show an alert . The app must be iOS 7 and iOS 8 compatible . Since UIAlertView has been replaced with UIAlertController how can I check if the UIAlertController is available without checking the system version I have been hearing that Apple recommends that we should not check the system version of the device in order to determine the availability of an API . This is what I am using for iOS 8 but this crashes on iOS 7 with dyld : Symbol not found : OBJC CLASS UIAlertAction : .. . .. . If I use the UIAlertView for iOS 8 I get this warning : Warning : Attempt to dismiss from view controller UIAlertShimPresentingViewController : 0x7bf72d60 while a presentation or dismiss is in progress Comment : UIAlertController with example : iosdevcenters.blogspot.com 2016 03 https : iosdevcenters.blogspot.com 2016 03 uialertcontroller-in-swift.html .. . Answer : Here is my drag-and-drop swift solution : .. . .. . Call like this : .. . .. . Beware this is only for the most basic alerts you might need additional code for advanced stuff .", "Question : I want to conform to the UIAlertController used in iOS 8 since UIAlertView is now deprecated . Is there a way that I can use this without breaking support for iOS 7 Is there some kind of if condition I can do to check for iOS 8 otherwise do something else for iOS 7 support Comment : FYI - Since your Deployment Target is iOS 7 or earlier you can just use UIAlertView . This will keep your code a lot simpler . Comment : I wasn t aware that Swift had a respondsToSelector.. . Also the UIAlertView is screwed up in ios8 it doesn t scroll where as it does in ios 7 which is why I want to try to use both Comment : The scroll doesn t work on the UIAlertController either Comment : possible duplicate of UIAlertView UIAlertController iOS 7 and iOS 8 compatibility http : stackoverflow.com questions 25111011 uialertview-uialertcontroller-ios-7-and-ios-8-compatibility .. . Answer : I think a much better way to check if a class exists since iOS 4.2 is : .. . .. . In your case that would be : Comment : This should be marked as correct answer . Always check for class feature constant function existence instead of checking the iOS version . Comment : Only OP can mark accept the answer . Comment : How to do it on Swift Comment : Yes but if someone is compiling code that was written by someone with the ios 8 sdk but they are now using the ios 7 sdk on xcode 5 the code will not compile . That s the problem @huey is getting because he s compiling on xcode 5 UIAlertController will not be recognized . If you are using the most recent SDK your answer is the correct one because when a phone running ios7 runs your app built with ios8 it will just return nil on UIAlertController class . Comment : right so @huey shouldn t try to compile on xcode 5 . he needs to use xcode 6 and use your code to prevent calling UIAlertController if a device uses ios7 . my comment was meant to point out that the reason it s not compiling is that the class is not available on the ios 7 sdk . however your first response said that it will work on ios7 and xcode 5 which is not true if that class is not available .", "Question : I have working iOS application In order to support iOS8 I am replacing UIAlertView UIActionSheet with UIAlertController . Problem : .. . For display UIAlertController I need presentViewController method of UIViewController class . But UIAlertView is display from classes which are inherited from UIView or NSObject .. . I can not get self presentViewController.. . method for obvious reason . My Work : .. . I tried getting rootViewController form current window and display UIAlertController . but have some rotation problems like if my current view controller do not have rotation support it will rotate if UIAlertController is open . Question : .. . Did any one faced same problem and have safe solution if yes please provide me some example or give some guide .. . Answer : My solution is below : .. . .. . Swift .. . .. . Here is sample usage :", "Question : Scenario : The user taps on a button on a view controller . The view controller is the topmost obviously in the navigation stack . The tap invokes a utility class-method called on another class . A bad thing happens there and I want to display an alert right there before control returns to the view controller . This was possible with UIAlertView but perhaps not quite proper . In this case how do you present a UIAlertController right there in myUtilityMethod Comment : Would be great if you accepted the answer by agility vision . .. . Answer : You can try to implement a category on UIViewController with mehtod like - void presentErrorMessage And and inside that method you implement UIAlertController and then present it on self . Than in your client code you will have something like : .. . .. . myViewController presentErrorMessage .. . .. . In that way you ll avoid unneccessary parametrs and warnings about view not being in window hierarchy . Comment : Except that I don t have myViewController in the code where the bad thing happens . That s in a utility method which knows nothing about the view controller that called it . Comment : IMHO presenting any views thus alerts to the user is the responsibility of ViewControllers . So if some part of the code knows nothing about viewController it shouldn t present any errors to user but rather pass them to viewController aware parts of the code Comment : I agree . But the convenience of the now deprecated UIAlertView led me to break that rule in a few spots .", "Question : I am used to customize UIAlertViews through the alert setValue : someView forKey : @ accessoryView method . This creates customizable content for UIAlertViews with custom heights . However it only works on iOS7 and down . In iOS8 the UIAlertController have taken over and I cannot customize it anymore it will cut the height of the UIAlertView . Is it impossible because of misuse of the UIAlertController or how am I supposed to do it I am trying to incorporate a UITableView inside a UIAlertController with UIAlertControllerStyleAlert . Thx . Comment : I ended up using this library instead github.com wimagguc ios-custom-alertview https : github.com wimagguc ios-custom-alertview and abandoned the UIAlertController . .. . Answer : I ran into the same issue right now . I looked at the private-header for UIAlertController https : github.com nst iOS-Runtime-Headers blob master Frameworks UIKit.framework UIAlertController.h and found a promising property : contentViewController .. . .. . And it turned out to be exactly the same as accessoryView used to be for UIAlertView the difference being that you need to assign a UIViewController to this property rather than a UIView . That piece of code will show a red view on the alert view Happy UIAlertController customizing .. . .. . PS . It is a private property but using KVC there shouldn t be a problem App Store wise I think . Edit : .. . .. . Some people complained that this isn t very safe . It s not a public API so yes Apple could change it in any release causing this method to fail . To make sure your entire app doesn t crash if that happens you could wrap the KVC call in a try block . If the property changes your controller won t show the content view but it also won t crash : .. . .. . Using this method in production can be risky and I don t recommend it for important alerts . Comment : You can override -preferredContentSize to return a custom size in the view controller that you are setting as contentViewController . Comment : Like I said in the answer because you re assigning it via KVO it can t and won t be detected by Apple s static analyzer and so it will pass the reviewing process . Comment : We did something similar using KVO to access the buttons on a UIAlertView a few years ago . Then they changed the name of the identifier and all our IAPs stopped working on iOS 8 . Not a fun few days rushing out fixes for 20 apps . I heavily advise against this solution Comment : Question is what do you strongly suggest instead Comment : I suggest not bothering to shoehorn this functionality into the native alert . Many people have gone and replicated the native alerts producing near perfect replicas that handle all of the rotation size interaction edge cases . I ve had success with SDCAlertView @ github.com sberrevoets SDCAlertView https : github.com sberrevoets SDCAlertView", "Question : I am using Swift to write an app and I need to show an alert . The app must be iOS 7 and iOS 8 compatible . Since UIAlertView has been replaced with UIAlertController how can I check if the UIAlertController is available without checking the system version I have been hearing that Apple recommends that we should not check the system version of the device in order to determine the availability of an API . This is what I am using for iOS 8 but this crashes on iOS 7 with dyld : Symbol not found : OBJC CLASS UIAlertAction : .. . .. . If I use the UIAlertView for iOS 8 I get this warning : Warning : Attempt to dismiss from view controller UIAlertShimPresentingViewController : 0x7bf72d60 while a presentation or dismiss is in progress Comment : UIAlertController with example : iosdevcenters.blogspot.com 2016 03 https : iosdevcenters.blogspot.com 2016 03 uialertcontroller-in-swift.html .. . Answer : download alert class from this link https : github.com it-sam CommonUiAlertClass and use it easily for ios 6 7 and 8 .. . .. . Old code .. . UIAlertView alert UIAlertView alloc initWithTitle : @ FreeWare message : @ Welcome to Common class delegate : self cancelButtonTitle : @ Cancel otherButtonTitles : @ Ok nil .. . .. . New code .. . .. . MyAlertView alert MyAlertView alloc initWithTitle : @ FreeWare message : @ Welcome to Common class delegate : self cancelButtonTitle : @ Cancel otherButtonTitles : @ Ok nil", "Question : I want to conform to the UIAlertController used in iOS 8 since UIAlertView is now deprecated . Is there a way that I can use this without breaking support for iOS 7 Is there some kind of if condition I can do to check for iOS 8 otherwise do something else for iOS 7 support Comment : FYI - Since your Deployment Target is iOS 7 or earlier you can just use UIAlertView . This will keep your code a lot simpler . Comment : I wasn t aware that Swift had a respondsToSelector.. . Also the UIAlertView is screwed up in ios8 it doesn t scroll where as it does in ios 7 which is why I want to try to use both Comment : The scroll doesn t work on the UIAlertController either Comment : possible duplicate of UIAlertView UIAlertController iOS 7 and iOS 8 compatibility http : stackoverflow.com questions 25111011 uialertview-uialertcontroller-ios-7-and-ios-8-compatibility .. . Answer : Solution for checking iOS version in Swift .. . .. . Con of this solution : it is simply bad practice to check against OS version numbers whichever way you do it . One should never hard code dependencies in this way always check for features capabilities or the existence of a class . Consider this Apple may release a backwards compatible version of a class if they did then the code you suggest would never use it as your logic looks for an OS version number and NOT the existence of the class . Source of this information http : nshipster.com swift-system-version-checking .. . .. . Solution for checking the class existence in Swift .. . .. . Do not use if NSClassFromString UIAlertController nil because it works correctly on the iOS simulator using iOS 7.1 and 8.2 but if you test on a real device using iOS 7.1 you will unfortunately notice that you will never pass-through the else part of the code snippet . Comment : Do not use if NSClassFromString UIAlertController nil because it works correctly on the iOS simulator using iOS 7.1 and 8.2 but if you test on a real device using iOS 7.1 you will unfortunately notice that you will never pass-through the else part of the code snippet . That is true . I wish I read this before .", "Question : I have been working to create a UIAlertView in Swift but for some reason I can t get the statement right because I m getting this error : .. . .. . Could not find an overload for init that accepts the supplied arguments .. . .. . Here is how I have it written : .. . .. . Then to call it I m using : .. . .. . As of right now it is crashing and I just can t seem to get the syntax right . Comment : UIAlertView and UIActionSheet has been replaced by UIAlertController in iOS 8 have you looked at this Comment : Make sure the class that self belongs-to adopts the protocol UIAlertViewDelegate the recommended way to do this in Swift is with an extension . Comment : iosdevcenters.blogspot.com 2016 03 http : iosdevcenters.blogspot.com 2016 03 uialertcontroller-in-swift.html .. . Answer : If you re targeting iOS 7 and 8 you need something like this to make sure you re using the right method for each version because UIAlertView is deprecated in iOS 8 but UIAlertController is not available in iOS 7 : Comment : Or you can save time and just use UIAlertView until you drop support for iOS 7 . Apple won t reject your app for that . Comment : Deprecation doesn t mean don t use this or that it would be the wrong method it just means it will not work later on . There s no need to specifically use UIAlertController on iOS8 if one just needs basic alerts . They will work as before . There are many APIs that have been deprecated in iOS4 or 5 and still work in iOS8 . But of course apps targeting a higher iOS level should not use them and that s why there is a deprecation-warning . Comment : @SamiKuhmonen No but it makes it clearer why you re doing what you re doing and makes it easier to remove support for deprecated methods when your minimum version is high enough to do so .", "Question : I m porting my app to iOS 8.0 and notice that UIAlertView is deprecated . So I ve changed things to use a UIAlertController . Which works in most circumstances . Except when my app opens it does several checks to report various states back to the user.. . .. . .. . E.g.. . Warning you haven t set X up and need to do Y before completing projects and Warning you are using a beta version and do not rely on results etc.. . these are just examples Under the UIAlertView I would say get two alert boxes concurrently which the user has to tap twice to dismiss both...but they both appear . Under UIAlertController with the code below to present a general alert I only get one alert message along with a console message : .. . .. . Warning : Attempt to present UIAlertController : 0x13f667bb0 on TestViewController : 0x13f63cb40 which is already presenting UIAlertController : 0x13f54edf0 .. . .. . So although the above probably isn t a good example I m thinking there may be times when more than one global alert may need to be presented due to events whilst operating an app . Under the old UIAlertView they would appear but it seems they will not under a UIAlertController . Can anyone suggest how this could be achieved with a UIAlertController Thanks .. . .. . Edit : I notice that on iOS8 presenting two AlertViews consecutively they are queued and appear sequentially whereas in iOS7 they appear concurrently . It seems Apple have altered UIAlertView to queue multiple instances . Is there a way to do this with UIAlertController without continuing to use the deprecated but modified UIAlertView Comment : did you have any luck in finding an answer to your question Comment : Sadly no . At the moment Im sticking with the apparently modified UIAlertView . Time constraints prevent me investigating further . Comment : Do we have any solution for this issue Comment : I just posted my solution check it out below . Comment : UIAlertController is more and more looking like a less than half-a ed job to me . .. . Answer : I fully understand the issue here and came up with the following solution via a category of UIAlertController . It s designed so that if an alert is already being presented it delays showing of the next alert until it receives a notification that the first has been dismissed . UIAlertController+MH.h .. . .. . UIAlertController+MH.m .. . .. . This code even handles the case where a previous alert was presented via the deprecated UIAlertView i.e . it waits on it to finish too . To test this out all you need to do is call show twice in a row with two different alert controllers and you will see the second one waits until the first has been dismissed before being presented . Comment : super viewDidDisappear : in your code will not do what you probably think . It won t call - UIAlertControl viewDidDisappear : but that one of the direct superclass - UIViewController viewDidDisappear : . As you can t know what is in the implementation of - UIAlertController viewDidDisappear : that you are omitting this is not dangerous this is a bug . There is a hacky technic to access the original implementation of a method from the override in the category search for method-swizzling but it is really overkill - go for the subclass approach . Comment : Thanks the docs are ambiguous about that and even thought I had tested it but must have been mistaken . I updated the code to swizzle the method and tested via a subclass and it is working . I m going to stick with the category because I m confident I ll eventually figure out how to achieve this without the swizzle or retaining the window . Comment : Looks nice based on the golden words method-swizzling and your SO scores.. . but did anyone successfully use this yet Is it safe Can I leave my kids in front of it while I go do something else Comment : Just another method I was thinking.. . subclass UIViewController add a - void showUialertController : UIAlertController alert or similar which underneath the hood carries out the queuing . Not sure if we d have to care about UIAlertViews then . Comment : Sometimes you want to show alerts from classes other than view controllers though .", "Question : I am using Swift to write an app and I need to show an alert . The app must be iOS 7 and iOS 8 compatible . Since UIAlertView has been replaced with UIAlertController how can I check if the UIAlertController is available without checking the system version I have been hearing that Apple recommends that we should not check the system version of the device in order to determine the availability of an API . This is what I am using for iOS 8 but this crashes on iOS 7 with dyld : Symbol not found : OBJC CLASS UIAlertAction : .. . .. . If I use the UIAlertView for iOS 8 I get this warning : Warning : Attempt to dismiss from view controller UIAlertShimPresentingViewController : 0x7bf72d60 while a presentation or dismiss is in progress Comment : UIAlertController with example : iosdevcenters.blogspot.com 2016 03 https : iosdevcenters.blogspot.com 2016 03 uialertcontroller-in-swift.html .. . Answer : I was annoyed that I kept having to write out both situations so I wrote a compatible UIAlertController that works for iOS 7 as well so I just threw it up on GitHub . I did my best to replicate the much better methods of adding buttons and actions of the UIAlertController . Works with both Objective-C and Swift . I m posting this as I found this question when searching on Google and figured it could be helpful for others . https : github.com BayPhillips compatible-alert-controller Comment : Good idea I m using your library and it makes maintaining compatibility with alerts a lot simpler . Comment : Glad to hear @Paludis . I d love any feedback as well as any PR s to make it more fully featured Comment : Thanks just found this and it works a treat" ] }
[ "yes-answer-long", "yes-answer-short" ]
uiactionsheet
UNK_RELATION
sysbench@cross-platform@35
sysbench -- sysbench is a modular @placeholder and multi-threaded benchmark tool for evaluating os parameters that are important for a system running a database under intensive load .
{ "confidence": [ 59.44200134277344, 46.67775344848633, 45.2734375, 45.14646911621094, 45.06350326538086, 42.94667053222656, 41.95225143432617, 37.883628845214844, 37.883628845214844, 35.06018829345703, 33.390342712402344, 30.053600311279297, 27.392807006835938, 26.174345016479492, 26.157413482666016, 25.148534774780273, 24.297042846679688, 23.955589294433594, 22.691692352294922, 22.137779235839844, 21.16326141357422, 18.825265884399414, 18.825265884399414, 17.559009552001953, 17.559009552001953, 17.514522552490234, 16.017248153686523, 16.017248153686523, 16.017248153686523, 13.90041732788086, 13.90041732788086, 13.90041732788086, 13.90041732788086, 13.90041732788086, 13.90041732788086, 13.90041732788086, 13.90041732788086, 13.90041732788086, 13.90041732788086, 13.90041732788086, 13.90041732788086, 13.90041732788086, 12.496099472045898, 12.496099472045898, 12.496099472045898, 12.496099472045898, 12.496099472045898, 12.496099472045898, 12.496099472045898, 12.496099472045898, 12.496099472045898, 12.496099472045898, 12.496099472045898, 12.496099472045898, 12.496099472045898, 12.496099472045898, 12.496099472045898, 12.496099472045898, 12.496099472045898, 12.496099472045898, 12.496099472045898 ], "content": [ "The tool used for benchmarking was sysbench .", "Then I installed sysbench with the command : .. . .. . It was installed successfully it said .", "What does Memory test in Sysbench actually mean", "I am trying to run a a mysql benchmark sysbench inside my docker-container .", "I use the sysbench-mongodb to test the performance of mongodb and the tool has a config file named config.bash .", "Sysbench a benchmarking tool its result is viewed in the shell but I can t export it s output to html file for analysis .", "With MySQL restarted try to clear cache before running each sysbench test i was puzzled with the findings .", "But when i run the sysbench tests without having to restart mysql allowing mysql cache 2 performed much better .", "I am having a really bad situation with the installation of sysbench on my Fedora 23 .", "I would also restart all the cluster nodes before performing each sysbench run to clear mysql cache being aware that some cache by OS would still exists .", "The problem is that with benchmarks Sysbench Mysqlslap and also custom scripts PHP the connection to the backend MariaDB gets lost when I shut down a node of the cluster .", "The results are not at all what I expected I obviously expected the multithreaded benchmark to severely outperform the single-threaded benchmark .", "Error log : .. . .. . Trace log : .. . .. . PHP test script .. . .. . Mysqlslap benchmark : .. . .. . Sysbench benchmark : .. . .. . Encountered errors : .. . .. . Maxscale configuration : .. . .. . Session monitoring shows that the sessions gets invalid like in the following example : .. . .. . I also played around with different timeouts variables and monitor interval in Maxscale and also in my PHP testing script PDO timeout but the problem seems to be how Maxscale handles MySQL sessions .", "Using following command : .. . .. . sysbench --test memory --memory-block-size 1K --memory-scope global --memory-total-size 100G --memory-oper write run .. . .. . During the Run : .. . .. . TOP command result .. . .. . I never found Mem is increased .", ".. . .. . My docker file is : FROM ubuntu : 14.04 .. . .. . RUN apt-get -y update apt-get install -y sysbench .. . .. . ADD . script.sh code script.sh .. . .. . WORKDIR code .. . .. . ENTRYPOINT . script.sh .. . .. . .. . .. . And my script is : .. . .. . export DEBIAN FRONTEND noninteractive .. . .. . sudo debconf-set-selections mysql-server mysql-server root password password root .. . .. . sudo debconf-set-selections mysql-server mysql-server root password again password root .. . .. . sudo apt-get -y install mysql-server .. . .. . sudo mysql --user root --password root -e create database dbtest .. . .. . sudo sysbench --test oltp --oltp-table-size 1000000 --mysql-db dbtest --mysql-user root --mysql-password root prepare .. . .. . sudo sysbench --test oltp --oltp-table-size 1000000 --oltp-test-mode complex --oltp-read-only off --num-threads 6 --max-time 60 --max-requests 0 --mysql-db dbtest --mysql-user root --mysql-password root run .. . .. . .. . .. . How can I fix this because the same script works in a normal Linux machine", "Raspberry pi Model B v1.1 - running Raspbian Jessie .. . Raspberry pi Model B+ v1.2 - running Raspbian Jessie .. . .. . I installed sysbench on both systems and ran : sysbench --num-threads 1 --test cpu --cpu-max-prime 10000 --validate run on the first and changed --num-threads 4 on the second as its quadcore and ran both .", "I have 2 raspberry-pi s that I wanted to benchmark for load-balancing purpose .", "Who had used these tool", "The benchmark was done on a Percona Xtradb Cluster with three nodes and connection via HAPRoxy .", "The script works well and performs the benchmark while running in the host terminal but when I try to run it inside a container I get an error as : .. . .. . FATAL : unable to connect to MySQL server aborting.. .", "I was trying to benchmark innodb flush log at trx commit to see whether setting it to 0 or 2 produces better performance .", "I initially installed mysql and made sure its running .", "what is your docker build command and where are you running it from", "I installed it successfully on one system but when I tried to install it on another its throwing up some really random error .", "But when I tried to run the program the system shows the following error : .. . .. . This is the first time I see such an error file too short . .", "ALERT : MySQL error : Can t connect to local MySQL server through socket var run mysqld mysqld.sock 2 FATAL : failed to get database capabilities", "In this file has two parameter : .. . .. . I do not know what s the difference between these two parameter .", "Anyone can help me", "Thank you .", "For the initial set of test with threads 1 - 128 1 2 4 8 16 32 64 128 i found out that 0 performed better .", "I did several tests and got the same results .", "Why would this be the case that caching favors 2 and restarting mysql favors 0", "What should I do with it", "I am in an emergency situation. . Could someone help me with it", "Regards.. .", "FATAL : error 2002 : Can t connect to local MySQL server through socket var run mysqld mysqld.sock 2 ALERT : Error : failed to determine table sbtest type", "What are the contents of entrypoint.sh", "is entrypoint.sh executable", "Can you add some formatting to your question particularly to make the script more readable", "Can you include any output that you get from trying to run the container", "The error message is already mentioned in the question .", "Their is a problem in connecting with the locally installed mysql", "I have done memory test on my cloud instance with Sysbech utility .", "but CPU usage increased upto 100 .. . .. . is it strange", "I m currently testing Maxscale with a Galera Cluster of 3 nodes in Read Write Split mode .", "By default Maxscale defines one node as a master and the other as slaves my configuration says 100 of the slaves .", "My intend is to check how Maxscale handles node shutdowns .", "I also read about the optimistic way of Maxscale which is forwarding the quickest response it gets from one of the nodes but not sure if this is the cause .", "Is there a way to make node shutdowns unharmful for any SQL requests propagated by Maxscale to all slave nodes of a cluster", "When I ran a the command with a single thread performance was about the same on both systems .", "But when I changed the number of threads to 4 on the second Pi it still took the same amount of time except that the per request statistics showed that the average request took about 4 times as much time .", "I can seem to grasp why this is .", "Here are the results : .. . .. . .. . .. . Raspberry pi v1.1 .. . Single thread .. . Maximum prime number checked in CPU test : 20000 .. . .. . Test execution summary : .. . .. . total time : 1325.0229s .. . total number of events : 10000 .. . total time taken by event execution : 1324.9665 .. . .. . per-request statistics : .. . .. . min : 131.00ms .. . avg : 132.50ms .. . max : 171.58ms .. . approx .", "95 percentile : 137.39ms .. . .. . Threads fairness : events avg stddev : 10000.0000 0.00 execution-time avg stddev : 1324.9665 0.00 .. . .. . .. . .. . Raspberry pi v1.2 .. . Four threads .. . Maximum prime number checked in CPU test : 20000 .. . .. . Test execution summary : .. . .. . total time : 1321.0618s .. . total number of events : 10000 .. . total time taken by event execution : 5283.8876 .. . .. . per-request statistics : .. . .. . min : 486.45ms .. . avg : 528.39ms .. . max : 591.60ms .. . approx .", "95 percentile : 553.98ms .. . .. . Threads fairness : events avg stddev : 2500.0000 0.00 execution-time avg stddev : 1320.9719 0.03 .. . .. .", "Raspberry pi Model B+ v1.2 has the same CPU as Raspberry pi Model B v1.1 .", "Both boards are from the first generation of Raspberry Pi and they have 1 core CPU .", "For 4 CPU you need Raspberry Pi 2 Model B instead of Raspberry pi Model B+ .", "Yeah the naming is a bit confusing :", "Ah so I did misinterpreted it .", "I even looked it up before I started but was probably sleeping ." ] }
{ "confidence": [ 71.70585632324219, 60.14252471923828, 58.37392807006836, 55.74747848510742, 55.477237701416016, 53.64836883544922, 51.51127624511719, 46.293312072753906 ], "content": [ "Question : null .. . Answer : I was trying to benchmark innodb flush log at trx commit to see whether setting it to 0 or 2 produces better performance . The benchmark was done on a Percona Xtradb Cluster with three nodes and connection via HAPRoxy . The tool used for benchmarking was sysbench . I would also restart all the cluster nodes before performing each sysbench run to clear mysql cache being aware that some cache by OS would still exists . With MySQL restarted try to clear cache before running each sysbench test i was puzzled with the findings . For the initial set of test with threads 1 - 128 1 2 4 8 16 32 64 128 i found out that 0 performed better . But when i run the sysbench tests without having to restart mysql allowing mysql cache 2 performed much better . I did several tests and got the same results . Why would this be the case that caching favors 2 and restarting mysql favors 0", "Question : null .. . Answer : I am trying to run a a mysql benchmark sysbench inside my docker-container . The script works well and performs the benchmark while running in the host terminal but when I try to run it inside a container I get an error as : .. . .. . FATAL : unable to connect to MySQL server aborting.. . FATAL : error 2002 : Can t connect to local MySQL server through socket var run mysqld mysqld.sock 2 ALERT : Error : failed to determine table sbtest type ALERT : MySQL error : Can t connect to local MySQL server through socket var run mysqld mysqld.sock 2 FATAL : failed to get database capabilities .. . .. . My docker file is : FROM ubuntu : 14.04 .. . .. . RUN apt-get -y update apt-get install -y sysbench .. . .. . ADD . script.sh code script.sh .. . .. . WORKDIR code .. . .. . ENTRYPOINT . script.sh .. . .. . .. . .. . And my script is : .. . .. . export DEBIAN FRONTEND noninteractive .. . .. . sudo debconf-set-selections mysql-server mysql-server root password password root .. . .. . sudo debconf-set-selections mysql-server mysql-server root password again password root .. . .. . sudo apt-get -y install mysql-server .. . .. . sudo mysql --user root --password root -e create database dbtest .. . .. . sudo sysbench --test oltp --oltp-table-size 1000000 --mysql-db dbtest --mysql-user root --mysql-password root prepare .. . .. . sudo sysbench --test oltp --oltp-table-size 1000000 --oltp-test-mode complex --oltp-read-only off --num-threads 6 --max-time 60 --max-requests 0 --mysql-db dbtest --mysql-user root --mysql-password root run .. . .. . .. . .. . How can I fix this because the same script works in a normal Linux machine Comment : What are the contents of entrypoint.sh Comment : what is your docker build command and where are you running it from Comment : is entrypoint.sh executable Comment : Can you add some formatting to your question particularly to make the script more readable Can you include any output that you get from trying to run the container Comment : The error message is already mentioned in the question . Their is a problem in connecting with the locally installed mysql", "Question : null .. . Answer : I am having a really bad situation with the installation of sysbench on my Fedora 23 . I installed it successfully on one system but when I tried to install it on another its throwing up some really random error . I initially installed mysql and made sure its running . Then I installed sysbench with the command : .. . .. . It was installed successfully it said . But when I tried to run the program the system shows the following error : .. . .. . This is the first time I see such an error file too short . . What should I do with it I am in an emergency situation. . Could someone help me with it Regards.. .", "Question : null .. . Answer : I use the sysbench-mongodb to test the performance of mongodb and the tool has a config file named config.bash . In this file has two parameter : .. . .. . I do not know what s the difference between these two parameter . Who had used these tool Anyone can help me Thank you .", "Question : null .. . Answer : Sysbench a benchmarking tool its result is viewed in the shell but I can t export it s output to html file for analysis .", "Question : null .. . Answer : I m currently testing Maxscale with a Galera Cluster of 3 nodes in Read Write Split mode . By default Maxscale defines one node as a master and the other as slaves my configuration says 100 of the slaves . My intend is to check how Maxscale handles node shutdowns . The problem is that with benchmarks Sysbench Mysqlslap and also custom scripts PHP the connection to the backend MariaDB gets lost when I shut down a node of the cluster . Error log : .. . .. . Trace log : .. . .. . PHP test script .. . .. . Mysqlslap benchmark : .. . .. . Sysbench benchmark : .. . .. . Encountered errors : .. . .. . Maxscale configuration : .. . .. . Session monitoring shows that the sessions gets invalid like in the following example : .. . .. . I also played around with different timeouts variables and monitor interval in Maxscale and also in my PHP testing script PDO timeout but the problem seems to be how Maxscale handles MySQL sessions . I also read about the optimistic way of Maxscale which is forwarding the quickest response it gets from one of the nodes but not sure if this is the cause . Is there a way to make node shutdowns unharmful for any SQL requests propagated by Maxscale to all slave nodes of a cluster", "Question : null .. . Answer : I have done memory test on my cloud instance with Sysbech utility . Using following command : .. . .. . sysbench --test memory --memory-block-size 1K --memory-scope global --memory-total-size 100G --memory-oper write run .. . .. . During the Run : .. . .. . TOP command result .. . .. . I never found Mem is increased . but CPU usage increased upto 100 .. . .. . is it strange What does Memory test in Sysbench actually mean", "Question : I have 2 raspberry-pi s that I wanted to benchmark for load-balancing purpose . Raspberry pi Model B v1.1 - running Raspbian Jessie .. . Raspberry pi Model B+ v1.2 - running Raspbian Jessie .. . .. . I installed sysbench on both systems and ran : sysbench --num-threads 1 --test cpu --cpu-max-prime 10000 --validate run on the first and changed --num-threads 4 on the second as its quadcore and ran both . The results are not at all what I expected I obviously expected the multithreaded benchmark to severely outperform the single-threaded benchmark . When I ran a the command with a single thread performance was about the same on both systems . But when I changed the number of threads to 4 on the second Pi it still took the same amount of time except that the per request statistics showed that the average request took about 4 times as much time . I can seem to grasp why this is . Here are the results : .. . .. . .. . .. . Raspberry pi v1.1 .. . Single thread .. . Maximum prime number checked in CPU test : 20000 .. . .. . Test execution summary : .. . .. . total time : 1325.0229s .. . total number of events : 10000 .. . total time taken by event execution : 1324.9665 .. . .. . per-request statistics : .. . .. . min : 131.00ms .. . avg : 132.50ms .. . max : 171.58ms .. . approx . 95 percentile : 137.39ms .. . .. . Threads fairness : events avg stddev : 10000.0000 0.00 execution-time avg stddev : 1324.9665 0.00 .. . .. . .. . .. . Raspberry pi v1.2 .. . Four threads .. . Maximum prime number checked in CPU test : 20000 .. . .. . Test execution summary : .. . .. . total time : 1321.0618s .. . total number of events : 10000 .. . total time taken by event execution : 5283.8876 .. . .. . per-request statistics : .. . .. . min : 486.45ms .. . avg : 528.39ms .. . max : 591.60ms .. . approx . 95 percentile : 553.98ms .. . .. . Threads fairness : events avg stddev : 2500.0000 0.00 execution-time avg stddev : 1320.9719 0.03 .. . .. . .. . Answer : Raspberry pi Model B+ v1.2 has the same CPU as Raspberry pi Model B v1.1 . Both boards are from the first generation of Raspberry Pi and they have 1 core CPU . For 4 CPU you need Raspberry Pi 2 Model B instead of Raspberry pi Model B+ . Yeah the naming is a bit confusing : Comment : Ah so I did misinterpreted it . I even looked it up before I started but was probably sleeping ." ] }
[ "yes-answer-long", "yes-answer-short" ]
cross-platform
UNK_RELATION
sigsegv@segmentation-fault@126
sigsegv -- on posix-compliant platforms sigsegv is the signal sent to a process when it makes an invalid memory reference or @placeholder .
{ "confidence": [ 53.68283462524414, 48.255126953125, 45.81821823120117, 44.0062141418457, 43.484832763671875, 43.111576080322266, 40.257041931152344, 39.78103256225586, 39.347904205322266, 38.82090377807617, 38.31602096557617, 38.31602096557617, 38.10258102416992, 37.38469696044922, 37.35589599609375, 37.35589599609375, 37.35121154785156, 37.34412384033203, 37.30168914794922, 36.17927932739258, 35.95847702026367, 35.83667755126953, 35.83667755126953, 35.360687255859375, 35.3006706237793, 35.3006706237793, 35.28942108154297, 35.26137161254883, 34.956214904785156, 34.956214904785156, 34.93209457397461, 34.93209457397461, 34.864784240722656, 34.864784240722656, 34.23992919921875, 34.18110656738281, 34.18110656738281, 34.18110656738281, 34.135826110839844, 34.135826110839844, 33.796363830566406, 33.796363830566406, 33.796363830566406, 33.796363830566406, 33.796363830566406, 33.73329162597656, 33.6999397277832, 33.3270263671875, 32.97294235229492, 32.824466705322266, 32.824466705322266, 32.824466705322266, 32.824466705322266, 32.824466705322266, 32.824466705322266, 32.49764633178711, 32.35512924194336, 32.04436492919922, 31.659622192382812, 31.659622192382812, 31.30919075012207, 31.190284729003906, 31.035736083984375, 31.032634735107422, 31.032634735107422, 31.032634735107422, 31.032634735107422, 31.032634735107422, 31.032634735107422, 31.032634735107422, 31.024580001831055, 30.686614990234375, 30.681015014648438, 30.273651123046875, 30.06073760986328, 30.06073760986328, 30.06073760986328, 30.06073760986328, 30.06073760986328, 30.06073760986328, 30.06073760986328, 30.06073760986328, 30.06073760986328, 30.06073760986328, 29.91099739074707, 29.91099739074707, 29.91099739074707, 29.91099739074707, 29.524799346923828, 29.405166625976562, 29.301753997802734, 29.301753997802734, 28.953208923339844, 28.939102172851562, 28.939102172851562, 28.939102172851562, 28.932235717773438, 28.89589500427246, 28.89589500427246, 28.89589500427246 ], "content": [ "In POSIX your process will get sent SIGSEGV when you do that .", "SIGSEGV is a synchronous signal .", "The signal name is SIGSEGV .", "When the main thread restarts I restore the default signal handler by signal SIGSEGV SIG DFL and then I get another SIGSEGV .", "I have a signal handler to catch SIGSEGV .", "SIGSEGV is delivered to the specific thread that caused the invalid access not the process as a whole .", "When the memory is requested a SIGSEGV is thrown which I listen for using a signal call .", "there is no compile-time error.. . but at run time this show signal sigsegv segmentation-fault .", "Why would assigning an invalid value to a pointer and not dereferencing that pointer SIGSEGV", "Here is an example of SIGSEGV .", "I would like to convert SIGSEGV signal to break loop .", "signal SIGSEGV signal handler .. . .. . signal handler .. . post sem .. . .. . .. . calling thread wait sem clean up .. .", "Example : .. . .. . Here is the resulting output : .. . .. . Received signal number : 11 .. . Signal originates from process 0 .. . SIGSEGV caused by this address :", "if one thread generates SIGSEGV does that signal go to all threads or just to the thread that generated the signal", "but still getting SIGSEGV", "OS said sigsegv", "I was getting a sigsegv when calling free .", "In particular note that the signal you re getting is SIGBUS 10 not SIGSEGV 11 .", "And of course this is not a good example to illustrate SIGSEGV :", "It stops randomly by giving Fatal signal 11 SIGSEGV error .", "It has nothing to do with SIGSEGV that s just the way the process crashes once it runs out-of-memory .", "Explain to me how this guarantees a SIGSEGV .", "How can malloc cause a SIGSEGV", "I know that we get SIGSEGV when trying to access elements out of bound or when there s not enough memory .", "If I remember correctly SIGSEGV is mostly connected to memory-management issues .", "As I mentioned in comment SIGSEGV is mostly connected to memory-management issues .", "If this process dies with a return code that indicates SIGSEGV you know it has failed .", "And here is the detail http : en.wikipedia.org wiki SIGSEGV .", "When debugging a C++ program emit a SIGSEGV with gdb it is possible to handle the signal and asked to nostop .", "I m having a Fatal signal 11 SIGSEGV error when I try to remove a mouseJoint .", "Possbile to hijack the SIGSEGV then in SIGSEGV hander return to another thread to perform some clean up", "On Linux and every other UNIX I can think of the SIGSEGV handler will run in the thread which caused SIGSEGV in the first place .", "You cannot automatically ignore SIGSEGV .", "There is no normal execution flow after SIGSEGV .", "But when I m trying to allocate this in the GPU memory but I continue to receive SIGSEGV.. . Any ideas", "But when I did that I started having SIGSEGV errors .", "I have next code : .. . .. . But when there is no next - program is crashing on dirIt.hasNext with SIGSEGV .", "So I want to know what reason or when will EXC CRASH SIGSEGV appear", "it make senses since SIGSEGV should be caused by bad memory allocation manipulation .", "I have searched around and it appears that the SIGSEGV has something to do with memory .", "but the SIGSEGV is only occur on C C++ code", "What on earth would you try to do with a SIGSEGV", "should there then be any other output than the usual SIGSEGV", "I need handle the SIGSEGV in my Linux app .", "You want to cleanup after a SIGSEGV i.e .", "Application will then encounter seamingly random SIGSEGV-triggered crashes looking like race conditions or invalid memory access that are very difficult to trace down .", "SIGSEGV segmentation-fault in native-code .", "The following code fragment is causing the error .. . .. . terminated with signal SIGSEGV in NS3 .. . .. . The code is for insertion-sort .", "The LLVM IR given in the gist is as follows : .. . .. . Compiling this using clang trampolines.ll and executing it however results in a SIGSEGV the exact error that fish gives is fish : Job 1 . a.out terminated by signal SIGSEGV Address boundary error .", "Very strange with valgrind I do not receive a sigsegv.. .", "A SIGSEGV should not be possible from Java code .", "I claim the OS will not allow this and send SIGSEGV instead .", "Read operations can also cause SIGSEGV .", "did I say they don t cause SIGSEGV", "SIGSEGV comes under program error signals", "Yes - both SIGBUS and SIGSEGV are somewhat system and or processor specific .", "See this answer http : stackoverflow.com questions 8456085 why-cant-i-ignore-sigsegv-signal for more information .", "But when it mprotect s an area that will be accessed by libc a SIGSEGV occurs .", "But the application doesn t work it crashes with sigsegv fault .", "It is the derefenence at this point that actually caused the SIGSEGV segmentation-fault .", "http : stackoverflow.com questions 3444052 can-i-write-protect-every-page-in-the-address-space-of-a-linux-process http : stackoverflow.com questions 2663456 write-a-signal-handler-to-catch-sigsegv .. . .. . I am able to handle SIGSEGV gracefully when the protection needs to be set to either PROT READ or PROT WRITE in the handler .", "There are these two questions which discuss the error you are receiving in detail : .. . .. . Android Fatal signal 11 SIGSEGV at 0x636f7d89 code 1 .", "This is a related post to this one http : stackoverflow.com questions 7640089 sigsegv-with-a-recursive-algorithm as it deals with the same program but i now implemented it iterative and not recursive anymore but I still get SIGSEGV but later while running the program .", "blackboxB also passes all tests but upon termination it raises a SIGSEGV .", "I guess these are the some of the major requirements for having a SIGSEGV error .", "The following code end in a SIGSEGV error : .. . .. . Gdb gives me the following :", "However calling nfc init to set things up causes a SIGSEGV error .", "And no the SIGSEGV is called on the main thread while the segfault happened on another thread .", "@skwllsp is there a way to know exactly which thread caused the SIGSEGV", "I am getting SIGSEGV SEGV MAPERR crash in my live iOS app .", "In the SIGSEGV handler you can set the memory protection of the pages which access caused the segfault to allow the access .. . .. . It is important to understand that this kind of SIGSEGV handler is well behaved and defined only if the segfault was caused by access to an actually allocated memory objects and if the signal handler action only sets memory protection flags on memory objects owned by the process . You can t use it to make broken code magically work", "Recovering from SIGSEGV is undefined behaviour technically although it can be made to work on quite a few platforms it is neither robust nor portable .", "Well behaviour is undefined after ignor ing a SIGFPE SIGILL or SIGSEGV signal that was not generated by kill 2 or raise 3 but not necessarily during catching such a signal .", "So I plan in signal handler to pass the control to the calling thread after the clean up finished then use raise SIGSEGV to generate the core-dump .", "I ve got a program that s SIGSEGV ing in library code .", "If the latter gdb handle SIGSEGV nostop noprint pass will do exactly that .", "GDB shows sigsegv exception at the very first line pushl ebp .", "Most time this works very well but sometimes I get a SIGSEGV error .", "This is a snippet of the output where you can see actual SIGSEGV in the middle .", "Ivan your real question is how do I debug a SIGSEGV", "aBuffer will contain a random value after recovering from the first SIGSEGV .", "is 0 or points into a read only segment it will raise another SIGSEGV .", "In your case you will have to wait for the SIGSEGV indicating a segmentation-fault .", "Well at least I m not getting this SIGSEGV so let s hope so.. .", "Second point is very dangerous when you do JNI and that part blocks all signals respectively SIGSEGV .", "Is there any means I am not aware of for detecting the actual object that the libc is trying to clean up when the SIGSEGV happens", "When I use the JVM flag -Dfile.encoding UTF-16BE to launch a JavaFX application libfreetype.so.6 catches a SIGSEGV .", "When you catch a SIGSEGV in a handler you can then map an address back to a page with simple arithmetic operations .", "I get errors like this one : .. . Fatal signal 11 SIGSEGV code 1 fault addr 0x750057 in tid 10206 FinalizerDaemon .. . or this one : .. . Fatal signal 11 SIGSEGV code 1 fault addr 0x94789680 in tid 24605 FinalizerDaemon .. . .. . and they make my app crash .", "http : stackoverflow.com questions 17840521 android-fatal-signal-11-sigsegv-at-0x636f7d89-code-1-how-can-it-be-tracked .. . .. . Fatal signal 11 SIGSEGV at 0x00000000 code 1 - PhoneGap http : stackoverflow.com questions 14023291 fatal-signal-11-sigsegv-at-0x00000000-code-1-phonegap .. . .. . 2 In terms of parsing your geobounds values as it would seem is where the problem may lie ensure you are handling your parsing between Gson and Json correctly with the correct geobound values .", "stackoverflow.com questions 17840521 http : stackoverflow.com questions 17840521 android-fatal-signal-11-sigsegv-at-0x636f7d89-code-1-how-can-it-be-tracked", "The last section in the application logs reads as : .. . .. . My limited understanding of this is that our application s signal handler might be neutralising the SIGSEGV exception that got thrown .", "From signal 7 http : www.kernel.org doc man-pages online pages man7 signal.7.html : .. . .. . A signal may be generated and thus pending for a process as a whole e.g . when sent using kill 2 or for a specific thread e.g . certain signals such as SIGSEGV and SIGFPE generated as a consequence of executing a specific machine-language instruction are thread directed as are signals targeted at a specific thread using pthread kill 3 .", "Nothing is jumping out at me when looking at the statement that s causing the SIGSEGV see below .", "When I selected natural earth as map the application has trhow a SIGSEGV error segmentation-fault .", "However if it runs for a while and the log file gets longer and longer the program will receive a SIGSEGV when it tries to send the data .", "SIGSEGV is a problem the occurs when your application tries to access an address of memory that doesn t exists or some address where is already reserved to another program .", "Most of the times it works but sometimes I get the dreaded SIGSEGV crash .", "It mostly works but any attempt to throw an exception result in a SIGSEGV .", "Some animations play for a minute or so before causing the SIGSEGV fault ." ] }
{ "confidence": [ 64.15321350097656, 58.09375762939453, 53.307106018066406, 52.05002975463867, 51.653411865234375, 51.391456604003906, 48.66294860839844, 46.060821533203125, 45.699501037597656, 45.646297454833984, 45.62702178955078, 45.57624435424805, 45.234954833984375, 45.21971893310547, 45.11077117919922, 44.594722747802734, 44.366249084472656, 44.22698974609375, 43.55780792236328, 43.174686431884766 ], "content": [ "Question : I have a system with 10+ threads . I have a signal handler to catch SIGSEGV . if one thread generates SIGSEGV does that signal go to all threads or just to the thread that generated the signal .. . Answer : SIGSEGV is a synchronous signal . It ll be delivered to the thread that caused the invalid memory access . From signal 7 http : www.kernel.org doc man-pages online pages man7 signal.7.html : .. . .. . A signal may be generated and thus pending for a process as a whole e.g . when sent using kill 2 or for a specific thread e.g . certain signals such as SIGSEGV and SIGFPE generated as a consequence of executing a specific machine-language instruction are thread directed as are signals targeted at a specific thread using pthread kill 3 . A process-directed signal may be delivered to any one of the threads that does not currently have the signal blocked . If more than one of the threads has the signal unblocked then the kernel chooses an arbitrary thread to which to deliver the signal . Comment : Thanks . This verbiage is not in the MacOS X signal documentation .", "Question : I need handle the SIGSEGV in my Linux app . The reason is some clean up 3-partry lib must be done before generate core-dump . What is more the clean up must be performed in the context of calling thread cannot do in signal handler . So I plan in signal handler to pass the control to the calling thread after the clean up finished then use raise SIGSEGV to generate the core-dump . The real problem seems the signal handler cannot pass the control to calling thread no matter I use post sem or some others . Any idea to handle this case Possbile to hijack the SIGSEGV then in SIGSEGV hander return to another thread to perform some clean up signal SIGSEGV signal handler .. . .. . signal handler .. . post sem .. . .. . .. . calling thread wait sem clean up .. . Comment : The method you ve described is actually the closest thing to valid . sem post the POSIX version is required by the standard to be async-signal-safe . .. . Answer : You want to cleanup after a SIGSEGV i.e . serious error .. . I find this a little weird because 1 if you were debugging the application you should leave everything intact to be stored in the core-file so you can accurately identify what happened and 2 if you have a release application for a customer let s say well...it shouldn t SIGSEGV : not my problem anyway just saying. . .. . .. . On topic .. . .. . I think you could try to block SIGSEGV in all threads except the one in which you are trying to do the cleanup this should make the os deliver the signal to that specific thread . Other solution I could think of is something along the lines of setjmp longjmp haven t tested any of these though . Be careful that once your program got a SEGV you re on shaky ground i.e . your cleanup might fail as well and generate another SEGV etc etc so you should consider just crashing with a core . Comment : Will not help . SIGSEGV is delivered to the specific thread that caused the invalid access not the process as a whole .", "Question : I need handle the SIGSEGV in my Linux app . The reason is some clean up 3-partry lib must be done before generate core-dump . What is more the clean up must be performed in the context of calling thread cannot do in signal handler . So I plan in signal handler to pass the control to the calling thread after the clean up finished then use raise SIGSEGV to generate the core-dump . The real problem seems the signal handler cannot pass the control to calling thread no matter I use post sem or some others . Any idea to handle this case Possbile to hijack the SIGSEGV then in SIGSEGV hander return to another thread to perform some clean up signal SIGSEGV signal handler .. . .. . signal handler .. . post sem .. . .. . .. . calling thread wait sem clean up .. . Comment : The method you ve described is actually the closest thing to valid . sem post the POSIX version is required by the standard to be async-signal-safe . .. . Answer : Its not possible to reliable run any code after you have encountered a SIGSEGV . You might get away with it sometimes but you can t trust your program to work as intended afterwards . If for example you have a SIGSEGV because of a corrupted heap you will have problems if your 3rd party lib is cleaning up any memory . To get a reliable solution i would think about if you really need to run that cleanup code or if there is another way to handle the situation check for an unclean shutdown on the next startup .. . .", "Question : Is it possible to restore the normal execution flow of a C program after the Segmentation Fault error I want a mechanism similar to NullPointerException that is present in Java C etc . Note : Please don t tell me that there is an exception-handling mechanism in C++ because I know that dont tell me I should check every pointer before assignment etc . What I really want to achieve is to get back to normal execution flow as in the example above . I know some actions can be undertaken using POSIX signals . How should it look like Other ideas Comment : Where do you want to return control to after you got a nullpointer exception Comment : it would be best to return control to the first instruction that follows the one that caused the sigsegv but any other safe place is appreciated . Comment : There is no normal execution flow after SIGSEGV . The fault might have happened in something like if p 12 and since p is undefined your program will continue to run as-if you had written if random 1 0 Comment : @Marc the reason you shouldn t do this is that you have literally no idea what the state of your program is after a segfault . Your stack may be corrupted your heap may be corrupted your global-variables may be squashed your instruction pointer may be in neverland your secure data may be flying over the internets your CPU might be on fire . You will regret trying to continue after a segfault as-if nothing has happened . The right way to handle calling buggy third-party code is to spawn a new process to call it--a lot more work but the only thing remotely reliable . Comment : I guess you are hoping the error inside the functions you can t rewrite is of little or none consequences to your own code . The problem with that reasoning is that as you said you don t have the sources . For all you know they could be writing inside your own allocated memory erasing your own data or even your stack . If this happen even using your own handlers won t get back your process memory to its correct state . Thus ignoring the segmentation-fault produced by their code will just delay until the next one raised from your code.. . I m so happy I m not in your situation.. . .. . Answer : In POSIX your process will get sent SIGSEGV when you do that . The default handler just crashes your program . You can add your own handler using the signal call . You can implement whatever behaviour you like by handling the signal yourself .", "Question : I m constructing a program which uses mprotect to restrict a block of memory from accessing . When the memory is requested a SIGSEGV is thrown which I listen for using a signal call . Once the SIGSEGV has been detected I need to somehow access the pointer to the memory that was requested that threw the fault and the size of the segment requested . Is this possible Additionally is there a way to determine the level of mprotect a block of memory is currently assigned PROT NONE PROT READ etc. . .. . Answer : You are looking for libsigsegv http : libsigsegv.sourceforge.net .. . .. . But beware that calling mprotect is only signal-safe in Linux other POSIX systems may not support this . I am afraid that in Linux the only way to get memory protection bits is to read in proc pid meminfo .. . .. . On a side note Linux only : If you are worried about memory consumption and intend to enable pages of a larger mapping one by one then I would advise to create your mapping using mmap with MAP NORESERVE in which case you will get a mapping to zero-filled copy-on-write pages which will allocate physical RAM on the first write . MAP NORESERVE instructs the kernel not to back your memory with swap space allowing you to allocate up to 64TB of virtual-address-space . Only downside is that if you do run out-of-memory terrible things can happen oom-killer .", "Question : I need handle the SIGSEGV in my Linux app . The reason is some clean up 3-partry lib must be done before generate core-dump . What is more the clean up must be performed in the context of calling thread cannot do in signal handler . So I plan in signal handler to pass the control to the calling thread after the clean up finished then use raise SIGSEGV to generate the core-dump . The real problem seems the signal handler cannot pass the control to calling thread no matter I use post sem or some others . Any idea to handle this case Possbile to hijack the SIGSEGV then in SIGSEGV hander return to another thread to perform some clean up signal SIGSEGV signal handler .. . .. . signal handler .. . post sem .. . .. . .. . calling thread wait sem clean up .. . Comment : The method you ve described is actually the closest thing to valid . sem post the POSIX version is required by the standard to be async-signal-safe . .. . Answer : I think you should not try to run anything which cleans up in-memory state especially writing it to disc as-if successful you make cause data corruption . Recording some state information if possible may aid debugging but you should not rely on being able to . Instead the program should after logging state information either return to the default handler and dump core etc or call exit and quit without any cleanup whatsoever . If you need to do cleanup work to start again after a crash do it on the next startup instead .", "Question : I m constructing a program which uses mprotect to restrict a block of memory from accessing . When the memory is requested a SIGSEGV is thrown which I listen for using a signal call . Once the SIGSEGV has been detected I need to somehow access the pointer to the memory that was requested that threw the fault and the size of the segment requested . Is this possible Additionally is there a way to determine the level of mprotect a block of memory is currently assigned PROT NONE PROT READ etc. . .. . Answer : You have to use sigaction with SA SIGINFO instead of signal to establish your handler and then you will get called back with useful information in a siginfo t including si addr . si addr as explained in sigaction 2 will contain the address . As for the length well you re out of luck unless you re willing to parse instructions . Best you can do is take action for the page reported in si addr and then if that s not enough you ll get another signal soon enough . At least that s how we did things in ObjectStore . Comment : How do we reference this useful information Specifically the pointer and size to the requested memory", "Question : I m moving a project http : chris.boyle.name projects android-puzzles to the new Android Native Development Kit i.e . JNI and I d like to catch SIGSEGV should it occur possibly also SIGILL SIGABRT SIGFPE in order to present a nice crash reporting dialog instead of or before what currently happens : the immediate unceremonious death of the process and possibly some attempt by the OS to restart it . Edit : The JVM Dalvik VM catches the signal and logs a stack-trace and other useful information I just want to offer the user the option to email that info to me really . The situation is : a large body of C code which I didn t write does most of the work in this application all the game logic and although it s well-tested on numerous other platforms it s entirely possible that I in my Android port will feed it garbage and cause a crash in native-code so I want the crash dumps both native and Java that currently show up in the Android log I guess it would be stderr in a non-Android situation . I m free to modify both C and Java code arbitrarily although the callbacks both going in and coming out of JNI number about 40 and obviously bonus points for small diffs . I ve heard of the signal chaining library in J2SE libjsig.so and if I could safely install a signal handler like that on Android that would solve the catching part of my question but I see no such library for Android Dalvik . Comment : If you can start the Java VM through a wrapper script you can check if the app exited abnormally and do the error reporting . That would allow you to cleanly catch all kinds of abnormal exits be they SIGSEGV SIGKILL or whatever . However I don t think this is possible with stock Android apps so posting this as a comment converted from answer . Comment : Also see : Can t run a Java Android program with Valgrind http : stackoverflow.com questions 13531496 cant-run-a-java-android-program-with-valgrind 19235439 19235439 for how to start an Android app with a wrapper script in adb shell . .. . Answer : In my limited experience non-Android SIGSEGV in JNI code will generally crash the JVM before control is returned to your Java code . I vaguely recall hearing about some non-Sun JVM which lets you catch SIGSEGV but AFAICR you can t expect to be able to do so . You can try to catch them in C see sigaction 2 although you can do very little after a SIGSEGV or SIGFPE or SIGILL handler as the ongoing behaviour of a process is officially undefined . Comment : Well behaviour is undefined after ignor ing a SIGFPE SIGILL or SIGSEGV signal that was not generated by kill 2 or raise 3 but not necessarily during catching such a signal . Current plan is to try a C signal handler that calls back to Java and somehow terminates the thread without terminating the process . This may or may not be possible . : - Comment : C backtrace instructions : stackoverflow.com questions 76822 http : stackoverflow.com questions 76822 how-to-generate-a-stacktrace-when-my-c-app-crashes-using-gcc-compiler 77281 77281 Comment : ...except I can t use backtrace because Android doesn t use glibc it uses Bionic . : - Something involving Unwind Backtrace from unwind.h will be needed instead .", "Question : I am working on a lock-free shared variable class and I want to be able to generate a SIGSEGV fault to see if my implementation works as I planned . I ve tried creating a function that modifies a pointer and read it 100 times . I then call this function in both threads and have the threads run infinitely within my program . This doesn t generate the error I want . How should I go about doing this edit I don t handle segfaults at all but they are generated in my program if I remove locks . I want to use a lock-less design therefore i created a shared variable class that uses CAS to remain lockless . Is there are way that I can have a piece of code that will generate segfaults so that i can use my class to test that it fixes the problem Comment : What the heck What on earth would you try to do with a SIGSEGV This makes no sense at all . Please explain to us what problem you re trying to solve . Have you created a program that attempts to react to problems by intercepting and discarding segmentation faults Doesn t this concern you at all How should I go about doing this A 180 about turn is step one . Comment : @LightnessRacesinOrbit I think that a shared-memory application where one of the clients can survive a segfault in the other by having clients clean up if they segfault is a reasonable application . Reading between the lines this sounds like what the OP is doing . Comment : @Lightness : If you were trying to write an exception-safe smart pointer don t you think you ought to unit test behavior when an exception occurs This looks like a similar idea . Comment : @LightnessRacesinOrbit : So it would be ok to leave a shared resource permanently locked if the process which held the lock dies Your approach turns possible data loss into guaranteed data loss . Comment : Relax this kind of thing is fairly common when writing testing fault-tolerant code . .. . Answer : Will cause an appropriate signal to be raised . Comment : I need the signal to be generated by something like dereferencing an invalid pointer Comment : @RaptorIV : Explain why you care what it is that generates the signal . Comment : it needs to be generated in a real environment as though a multithreaded program had caused it . Im not handling it at all I just need to see my program crash because of it so i can see if it doesn t exist when i implement my class Comment : Raising the signal like that will with a few caveats get treated exactly like a real segfault the signal will get delivered the exception handler will be invoked if one is present . It s still a real signal in every sense and if it s for testing then it s quite a good starting point if nothing else .", "Question : When debugging a C++ program emit a SIGSEGV with gdb it is possible to handle the signal and asked to nostop . How gdb handles this kind of scenario Have searched gdb source code and couldn t find a starting point . .. . Answer : You cannot automatically ignore SIGSEGV . I also wouldn t recommend doing that anyway . Although you can make gdb ignore the signal and not pass it to the program the kernel will attempt to re-run the offending instruction once the signal handler returns and results in an infinite-loop . See this answer http : stackoverflow.com questions 8456085 why-cant-i-ignore-sigsegv-signal for more information . One way to work around it is to the skip the instruction or change register values so that it does not segfault . The link shows an example of setting a register . You can also use the jump command to skip over an instruction . Comment : Yes understood handling signal anyway and the question is how gdb does it self", "Question : I have to use c++ classes which is not properly written - there is no information if one function in loop is executed properly or not . If it is not I receive segmentation-fault and I m loosing everything what was calculated . I would like to convert SIGSEGV signal to break loop . Is there any possibility Using signal handlers from include doesn t help . Comment : If something is segfaulting there s a very good chance that it s also scribbling over other memory . Continuing to run after a segfault seems like a really dangerous thing to do even if you find a way to make it happen . Comment : If you really truly have to use someone else s code that s so badly written it segfaults consider writing a separate program to do that communicating with yours via pipes or files or shared-memory or something . Then if it fails the damage it can do to the rest of your program is limited . Comment : siglongjmp out of the signal-handler to a previously set sigsetjmp Comment : @JSB Quit and find a better job . Being forced to use a library that crashes without the ability to fix it is unacceptable . When the desk in your office catches fire once a week the correct action is not to find an umbrella for the sprinklers . Same goes for code . Code is your work environment . Comment : A segment violation is either a signal of defective OS or hardware or your application invoking undefined behaviour . Concentration on the latter you can avoid this completely by writting correct code at least in the incriminated loop . Just get your code correct and there is no need to try catching UB . To state it very clear : If you get segfaults your code is broken .. . Answer : A segmentation-fault may happen in two ways : .. . .. . uncontrolled segfaults where a process is accessing addresses for which this access is not well defined . @JSB this is the case you re dealing with and there s little you can do about it other then getting the offending code fixed . .. . .. . When an uncontrolled segfault happens which is the case for buggy code in 99.999 of all cases the only reasonable thing to do is cover your losses you may write to already opened files from a SIGSEGV handler and terminate the process . .. . .. . @JSB the following does not apply to you This is just for completenes .. . .. . controlled segfaults where a process accesses addresses which are allocated by the process but read-write execute access is disabled . A controlled segfault may be induced in the following way .. . .. . So why is this a controlled segfault Because you can actually react to it in a sensible way . In the SIGSEGV handler you can set the memory protection of the pages which access caused the segfault to allow the access .. . .. . It is important to understand that this kind of SIGSEGV handler is well behaved and defined only if the segfault was caused by access to an actually allocated memory objects and if the signal handler action only sets memory protection flags on memory objects owned by the process . You can t use it to make broken code magically work .. . .. . So why would one actually do this One example would be client-side implementation of APIs that allow network distribution and also allow to map objects into memory like OpenGL which has the API functions glMapBuffer glUnmapBuffer . To avoid unneccesary round trips and transfer you d want to transfer only those parts of the buffer actually read from and or modified . For this you have to somehow detect which pages a program touches . Some OSs like Windows have a dedicated API for this but in nix-es you have to work with mmap + mprotect + SIGSEGV handler tricks to implement this . Comment : So I understand that I am lost and I have to write backup files every correct iteration . Comment : @JSB : No you have the option to get that rubbish code fixed or get rid of it and get your money back . Not sure how your company handles such problems but I have the strict policy not to accept broken code I pay for . I m very much for being tolerant but not when it comes to quality stability in production code . Comment : @Olaf This is University this is DAQ software for ASIC which uses their own custom data format which is slightly useless . They provide software to rewrite it to Cern Root tree however this tree is still usless without definitions from their class . This class have problems . We have to deal with it in another way . Comment : @JSB : Yes you re pretty much SOL . As a workaround you could try forking the inner loop into a separate process adding the trouble of somehow getting the data back shared-memory writing it through a anonymous pipe . Using any kind of workaround to implement this will be a kludge and come with a very noticeable performance hit . Comment : @JSB : I realize the tough spot you are in . As already told using a separate process is the only half-sane way to deal with this . You don t have to write a separate program for this . You can fork the main program just fine . I wrote you a little example program that adds a small proxy helper function that does the fork and implements a channel to transfer back the data . gist.github.com datenwolf faf828e9facb53929482a94220441a15 http : gist.github.com datenwolf faf828e9facb53929482a94220441a15", "Question : Is it possible to restore the normal execution flow of a C program after the Segmentation Fault error I want a mechanism similar to NullPointerException that is present in Java C etc . Note : Please don t tell me that there is an exception-handling mechanism in C++ because I know that dont tell me I should check every pointer before assignment etc . What I really want to achieve is to get back to normal execution flow as in the example above . I know some actions can be undertaken using POSIX signals . How should it look like Other ideas Comment : Where do you want to return control to after you got a nullpointer exception Comment : it would be best to return control to the first instruction that follows the one that caused the sigsegv but any other safe place is appreciated . Comment : There is no normal execution flow after SIGSEGV . The fault might have happened in something like if p 12 and since p is undefined your program will continue to run as-if you had written if random 1 0 Comment : @Marc the reason you shouldn t do this is that you have literally no idea what the state of your program is after a segfault . Your stack may be corrupted your heap may be corrupted your global-variables may be squashed your instruction pointer may be in neverland your secure data may be flying over the internets your CPU might be on fire . You will regret trying to continue after a segfault as-if nothing has happened . The right way to handle calling buggy third-party code is to spawn a new process to call it--a lot more work but the only thing remotely reliable . Comment : I guess you are hoping the error inside the functions you can t rewrite is of little or none consequences to your own code . The problem with that reasoning is that as you said you don t have the sources . For all you know they could be writing inside your own allocated memory erasing your own data or even your stack . If this happen even using your own handlers won t get back your process memory to its correct state . Thus ignoring the segmentation-fault produced by their code will just delay until the next one raised from your code.. . I m so happy I m not in your situation.. . .. . Answer : This glib http : www.gnu.org s libc manual html node Defining-Handlers.html Defining-Handlers manual gives you a clear picture of how to write signal handlers . In your case you will have to wait for the SIGSEGV indicating a segmentation-fault . The list of other signals can be found here http : www.gnu.org s libc manual html node Standard-Signals.html Standard-Signals . Signal handlers are broadly classified into tow categories .. . .. . 1 . You can have the handler function note that the signal arrived by tweaking some global data-structures and then return normally . 2 . You can have the handler function terminate the program or transfer control to a point where it can recover from the situation that caused the signal . SIGSEGV comes under program error signals", "Question : I m getting a few SIGBUS 7 and SIGSEGV 11 crashes that I am having difficult tracking down . The thread that appears to be causing the crash is primarily used for loading images to be displayed which makes sense since the logs indicate something failing with the SkJPEGImageDecoder . I re-use memory for Bitmaps in accordance with this guide https : developer.android.com training displaying-bitmaps manage-memory.html .. . .. . Could it have something to do with that LogCat output : .. . .. . As per this document http : publib.boulder.ibm.com infocenter realtime v1r0 index.jsp topic 2Fcom.ibm.rt.doc.10 2Fuser 2Fsighand.html it appears that SIGBUS 7 is a data misalignment issue and SIGSEGV 11 is a write to inaccessible memory . Comment : Have a look at this http : stackoverflow.com questions 13077791 fatal-signal-7-sigbus-at-0x00000000-code-2 Comment : Thanks so now I know that it is a data alignment issue - still not sure to fix it though Comment : I ve put answer below.please accept if its useful to you.Cheers . .. . Answer : Its Data alignment issue.Your code is not able to put used data-structures in computer s right memory successfully that caused this issue .. . .. . This http : stackoverflow.com questions 13077791 fatal-signal-7-sigbus-at-0x00000000-code-2 link explains this fact correctly . Comment : Your link has gotten me closer to the answer but I still don t know exactly why I am getting a SIGBUS SIGSEGV", "Question : I have a test program for part of a C library where I handle signals . There is a lot of code in this test program - so much that I feel that posting it here would only make it more difficult to answer my question . Basically what s happening is that I am forcing the system to send me a SIGSEGV inside a background-thread . I handle that signal and then the test is over . The main thread will be waiting for this and part of the signal handler is to restart the main thread . When the main thread restarts I restore the default signal handler by signal SIGSEGV SIG DFL and then I get another SIGSEGV . I understand that I have a lot of code and this could very well be my fault but is there a common explanation of why a SIGSEGV would fire twice It is not happening when I cause other signals though I haven t tried all of them . To clarify I am on OS X writing in C compiling with gcc . .. . Answer : If you have any problem inside the signal handler for example memory overwrite trying to access beyond the allocated area then a new signal will be raised . Check the following page for details . http : www.gnu.org software libc manual html node Signals-in-Handler.html .. . .. . You should also use reentrant functions inside the signal handlers For example localtime r instead of localtime . Moreover it is recommended to use sigaction instead of signal . More details here : What is the difference between sigaction and signal http : stackoverflow.com questions 231912 what-is-the-difference-between-sigaction-and-signal", "Question : When debugging a C++ program emit a SIGSEGV with gdb it is possible to handle the signal and asked to nostop . How gdb handles this kind of scenario Have searched gdb source code and couldn t find a starting point . .. . Answer : is possible to handle the signal and asked to nostop . It s unclear whether you want GDB to handle the signal or the program itself . If the latter gdb handle SIGSEGV nostop noprint pass will do exactly that .", "Question : I have looked at the various topics relating to this but couldn t find this specific issue I am having . Things I looked at : Injecting code into executable at runtime http : stackoverflow.com questions 6231486 injecting-code-into-executable-at-runtime http : stackoverflow.com questions 2705792 c-sigsegv-handler-mprotect Can I write-protect every page in the address space of a Linux process http : stackoverflow.com questions 3444052 can-i-write-protect-every-page-in-the-address-space-of-a-linux-process http : stackoverflow.com questions 2663456 write-a-signal-handler-to-catch-sigsegv .. . .. . I am able to handle SIGSEGV gracefully when the protection needs to be set to either PROT READ or PROT WRITE in the handler . However when I try to inject instructions with mmap and then use mprotect to set it to PROT READ only and then I execute the instructions via inline-assembly it causes a SIGSEGV as intended but the handler is unable to get the originating address causing the signal so I am unable to mprotect it to PROT READ PROT EXEC . Example : .. . .. . Here is the resulting output : .. . .. . Received signal number : 11 .. . Signal originates from process 0 .. . SIGSEGV caused by this address : nil .. . .. . the above output repeatedly loops since it fails to re mprotect that page . Architecture : x86 32-bit OS : Ubuntu 11.04 - Linux version 2.6.38-12-generic buildd@vernadsky gcc version 4.5.2 Ubuntu Linaro 4.5.2-8ubuntu4 .. . .. . Any ideas The above logic works fine for simply read and writing into memory . Is there a better way to execute instructions at runtime as opposed to inline-assembly Thanks in advance Comment : Please indent your code to make it more readable Comment : Excuse me for that . The Preview was a bit deceiving . It s corrected now . .. . Answer : In that case the faulting address is the instruction pointer . Cast your third argument ptr of your signal handler installed with SA SIGINFO to a ucontext t and retrieve the appropriate register perhaps as untested code .. . .. . Read carefully usr include sys ucontext.h for more . I m interested to know why you are asking Comment : Basile I am trying to simulate virtual-memory by triggering page faults when executing instructions like how a real OS would do . Comment : The idea is that I ll parse an executable and feed it into this VM simulator . I tried using above the logic to re-mprotect to have execute permissions but still the same issue . The EIP is pointing correctly at the instruction causing the fault the context is correct but the same issue occurs . Any other ideas I can post the results if you like Comment : the si- code under the siginfo type yields a value of 128 which is either SEGV MAPERR or SEGV ACCERR . Do you know which one it is Comment : So just as a test if I save off the baseAddr with a gbl variable then use mprotect on that saved off value then it works fine . The problem is that sigHandler does not know the originating address causing the fault I have a feeling this has to do with the inline-assembly . Plus the EIP is pointing to the text section which is already executable so the EIP won t help here unless I m missing something .", "Question : null .. . Answer : Similar question : WebView causes application restart - Fatal signal 11 SIGSEGV http : stackoverflow.com questions 18520844 webview-causes-application-restart-fatal-signal-11-sigsegv .. . .. . Another similar quesion is about pulltorefresh also setlayertype but I don t think my quesion is the same because in my code setlayertype won t be called USE HW LAYERS is false : .. . .. . enter image description here http : i.stack.imgur.com FcjPA.png .. . .. . Can any one help Below is the log device : samsung sgh i337 :", "Question : I need to know the root cause of the segmentation-fault and also can anyone tell me how to handle it . Comment : The root cause is bugs in your program . Comment : @GMan - The root cause is probably a sloppy understanding of pointers . Not saying anything about the OP - it may not be his code - just that someone didn t know how to use pointers properly . Comment : Learn about paging : stackoverflow.com questions 18431261 how-does-x86-paging-work http : stackoverflow.com questions 18431261 how-does-x86-paging-work .. . Answer : Here is an example of SIGSEGV . And here is the detail http : en.wikipedia.org wiki SIGSEGV . How to handle it 1 . Avoid it as much as possible in the first place . Program defensively : use assert check for NULL pointer check for buffer-overflow . Use static-analysis tools to examine your code . compile your code with -Werror -Wall . Has somebody review your code . 2 . When that actually happened . Examine you code carefully . Check what you have changed since the last time you code run successfully without crash . Hopefully gdb will give you a call stack so that you know where the crash happened . .. . .. . EDIT : sorry for a rush . It should be p 0x1234 instead of p 0x1234 Comment : Why would assigning an invalid value to a pointer and not dereferencing that pointer SIGSEGV Comment : This program will not compile with any C++ compiler . If you add the necessary cast it will then not crash as it doesn t actually have any invalid memory access . Comment : Strictly speaking forcing an arbitrary value into a pointer object can cause a C C++ program to crash right away without a dereference attempt read up on trap representations but that s not something most of us are likey to encounter in practice . And of course this is not a good example to illustrate SIGSEGV : Comment : Whenever I get segfaults I just debug with the classic printf method of slowly honing in on where the problem is . Actually puts is possibly the best function for this purpose since it automatically appends a newline and thus autoflushes the output . But occasionally I need to print out variable values too .", "Question : Interesting stuff occurred while I debug one of the unit tests on CI server maven build actually . I connect to java process with strace -ff -e trace network -p pid to trace network activity of build-process . And that s what I saw : .. . .. . So there we have some network activity it s what I am actually search for and a lot of SIGSEGV signals . Build finished correctly just one broken test . Situation determinable and reproduced over and over again . What does this mean .. . Answer : Since this is java it means that your JVM is using SIGSEGVs for something . Common uses include .. . .. . null-pointer dereferences -- the JVM catches SIGSEGVs to address 0 and turns them into NullPointerExceptions .. . .. . garbage-collection write barriers -- rarely changed pages are marked read only and SEGVs catch writes to them . This way the garbage collector doesn t have to rescan all of memory all of the time . Comment : Very interesting thank you Can you provide some links where I can find more information about this stuff Comment : Is this harmless then or should it be addressed I am seeing similar occuring on my application running on solaris via truss . Comment : I think there is no need to be worried : Comment : Second point is very dangerous when you do JNI and that part blocks all signals respectively SIGSEGV . Application will then encounter seamingly random SIGSEGV-triggered crashes looking like race conditions or invalid memory access that are very difficult to trace down .", "Question : Is it possible to restore the normal execution flow of a C program after the Segmentation Fault error I want a mechanism similar to NullPointerException that is present in Java C etc . Note : Please don t tell me that there is an exception-handling mechanism in C++ because I know that dont tell me I should check every pointer before assignment etc . What I really want to achieve is to get back to normal execution flow as in the example above . I know some actions can be undertaken using POSIX signals . How should it look like Other ideas Comment : Where do you want to return control to after you got a nullpointer exception Comment : it would be best to return control to the first instruction that follows the one that caused the sigsegv but any other safe place is appreciated . Comment : There is no normal execution flow after SIGSEGV . The fault might have happened in something like if p 12 and since p is undefined your program will continue to run as-if you had written if random 1 0 Comment : @Marc the reason you shouldn t do this is that you have literally no idea what the state of your program is after a segfault . Your stack may be corrupted your heap may be corrupted your global-variables may be squashed your instruction pointer may be in neverland your secure data may be flying over the internets your CPU might be on fire . You will regret trying to continue after a segfault as-if nothing has happened . The right way to handle calling buggy third-party code is to spawn a new process to call it--a lot more work but the only thing remotely reliable . Comment : I guess you are hoping the error inside the functions you can t rewrite is of little or none consequences to your own code . The problem with that reasoning is that as you said you don t have the sources . For all you know they could be writing inside your own allocated memory erasing your own data or even your stack . If this happen even using your own handlers won t get back your process memory to its correct state . Thus ignoring the segmentation-fault produced by their code will just delay until the next one raised from your code.. . I m so happy I m not in your situation.. . .. . Answer : No it s not possible in any logical sense to restore normal execution following a segmentation-fault . Your program just tried to dereference a null-pointer . How are you going to carry on as normal if something your program expects to be there isn t It s a programming bug the only safe thing to do is to exit . Consider some of the possible causes of a segmentation-fault : .. . .. . you forgot to assign a legitimate value to a pointer .. . a pointer has been overwritten possibly because you are accessing heap-memory you have freed .. . a bug has corrupted the heap .. . a bug has corrupted the stack .. . a malicious third party is attempting a buffer-overflow exploit .. . malloc returned null because you have run out-of-memory .. . .. . Only in the first case is there any kind of reasonable expectation that you might be able to carry on .. . .. . If you have a pointer that you want to dereference but it might legitimately be null you must test it before attempting the dereference . I know you don t want me to tell you that but it s the right answer so tough . Edit : here s an example to show why you definitely do not want to carry on with the next instruction after dereferencing a null-pointer : Comment : +1 for calling the question out on wanting to do the wrong thing . : - Comment : thanks for the example but will this copy operation be performed I claim the OS will not allow this and send SIGSEGV instead . what is more assignment is not the only operation that violates memory . reading memory does not cause such threat . Comment : @MarcAnderson : that is not true . Read operations can also cause SIGSEGV . Comment : did I say they don t cause SIGSEGV The threat I mentioned applies to overwriting invalid memory location . Comment : @MarcAnderson : the copy operation may or may not be performed . aBuffer will contain a random value after recovering from the first SIGSEGV . If that random value points to protected memory e.g . is 0 or points into a read only segment it will raise another SIGSEGV . If however it happens to point into the stack you ll overwrite a stack frame or two or if it points into the heap you ll corrupt the heap ." ] }
[ "yes-answer-long", "yes-answer-short" ]
segmentation-fault
UNK_RELATION
sip-server@pbx@59
sip-server -- a sip-server is the main component of an ip @placeholder dealing with the setup of all sip calls in the network .
{ "confidence": [ 58.63090515136719, 57.11354446411133, 56.86412048339844, 55.43626403808594, 55.34735107421875, 54.708229064941406, 54.531524658203125, 54.074913024902344, 53.97816467285156, 53.397918701171875, 53.397918701171875, 53.0572395324707, 52.9589729309082, 52.31358337402344, 52.31358337402344, 50.79622268676758, 50.100616455078125, 50.024559020996094, 50.024559020996094, 50.024559020996094, 50.024559020996094, 50.024559020996094, 50.024559020996094, 50.024559020996094, 49.847530364990234, 49.847530364990234, 49.847530364990234, 49.68488311767578, 49.46379852294922, 49.46379852294922, 49.24030685424805, 49.20777130126953, 49.20777130126953, 49.18965148925781, 49.140865325927734, 48.83367156982422, 48.581504821777344, 48.581504821777344, 48.581504821777344, 48.581504821777344, 48.581504821777344, 48.581504821777344, 48.581504821777344, 48.151580810546875, 48.151580810546875, 47.991790771484375, 47.59815216064453, 47.31935501098633, 47.299827575683594, 47.064144134521484, 47.064144134521484, 47.064144134521484, 47.064144134521484, 46.93596267700195, 46.74171447753906, 46.727256774902344, 46.727256774902344, 46.469539642333984, 46.469539642333984, 46.469539642333984, 46.41637420654297, 46.03380584716797, 46.03380584716797, 46.0006217956543, 45.86998748779297, 45.78894805908203, 45.208404541015625, 45.203514099121094, 45.15602493286133, 44.946754455566406, 44.946754455566406, 44.946754455566406, 44.899009704589844, 44.899009704589844, 44.887779235839844, 44.352622985839844, 44.352622985839844, 44.30002975463867, 44.03913116455078, 43.887115478515625, 43.686153411865234, 43.686153411865234, 43.686153411865234, 43.68073272705078, 43.68073272705078, 43.68073272705078, 43.68073272705078, 43.68073272705078, 43.64006805419922, 43.329017639160156, 43.18367385864258, 42.52177047729492, 42.465850830078125, 42.163368225097656, 42.163368225097656, 42.163368225097656, 42.163368225097656, 42.163368225097656, 42.163368225097656, 42.163368225097656 ], "content": [ "I am able to create a SIP server and SIP clients between them .", "Basically I want to create a SIP-Stack and send the SIP Packets to the Server .", "When testing SIP calls on the SIP server that we are developing i came across a case where the 200Ok response for UPDATE message arrives after 180 ringing is received on the SIP server .", "They are using this SIP server : https : www.kamailio.org", "The server handling only a few thousands subscribers are usually acting as endpoint like asterisk : they are not at all SIP server as described in rfc3261 ie : SIP proxy server .", "Is it another implementation of SIP servlets or is it a SIP server built using SIP servlets API", "I used the inbuilt sip-stack for sip call .", "SIP Proxy .. . .. . A SIP proxy server receives a SIP request from a user-agent or another proxy and acts on behalf of the user-agent in forwarding or responding to the request .", "JAIN-SIP is light SIP stack .", "I want build SIP server like iptel.org .", "I have FreePBX server with SIP trunk to ISP .", "So scenario is : .. . .. . SIP User 1 --------------- SIP User 2 only and if SIP User 1 --------------- SIP User 3 Access should be denied", "So after decompiling the APK I understood they are using SIP server for calls .", "I m trying to implement a sip-server for connecting to from an HTML sip client made using sipml5 .", "You could use a SIP server that supports both traditional SIP over TCP UDP and WebSockets to implement a gateway function .", "If Not then how I build signalling sip-server for jain-sip stack that connect to webrtc", "No the app server has to support SIP Servlets .", "I m little bit confused about sip proxy and sip outbound proxy", "What is the basic difference between sip proxy and sip outbound proxy", "Is it mandatory to use sip outbound proxy along with sip proxy", "And no it s not mandatory to use SIP Outbound Proxy along with SIP Proxy .", "I am working simulating SIP traffic and came across SIP simulator .", "calling from SIP over web-sockets to true SIP .", "An alternate way is to use kamailio as it understands both sip and ws sip .", "We have a Kamailio SIP server up and running with authentication .", "I want to get Call Details from Genesys Platform SIP Server .", "What information do you have to query SIP Server for the call", "I have an IP phone but not a SIP Registry .", "SIP over UDP : It s necessary to have SIP response 100 Trying for SIP over UDP to shut the Timer-A off that would have been started by caller and hence stopping the re-transmission of the SIP message .", "You can do this on Restcomm SIP Servlets https : github.com RestComm sip-servlets there is an example of a B2BUA at https : github.com RestComm sip-servlets tree master sip-servlets-examples call-forwarding .", "Having a TCP Connection does not guarantee that the SIP Application is working or if its a SIP - Aware application at all .", "I am trying to analyses Genesys SIP server logs with sip-viewer Ref link https : code.google.com p sip-viewer Unfortunately i am getting the below error while running .", "So is it possible to connect to a compatible SIP server using SIP over web-sockets then make a call from this user-agent to another that does not support SIP over web-sockets without using a gateway", "To debug use asterisk s sip set debug on command and look for the SIP headers and verify the correct IP addresses .", "You can setup Viber - SIP easily .", "Brief signaling scheme is : .. . .. . Browser - Websockets - Web Call Server - SIP TCP UDP - any SIP Server .. . .. . Brief streaming scheme : .. . .. . Browser - WebRTC SRTP DTLS ICE STUN - Web Call Server - RTP UDP - any SIP RTP Server", "I am doing some POC on presence server using SIP servlets .", "I m assuming here we are talking about a SIP proxy server .", "Incoming request are handled on a SIP server either using stateful or stateless mode .", "of traffic will become RTP instead of SIP only and the bandwidth will be the limitation for your server .", "So for sip registration which registrar server should I use", "do you own register server or have a sip account", "Therefore it is compatible with any server that supports RFC3261 - standard SIP specification .", "Basically they are the same the only difference is that SIP Proxy treats requests both for UAC client and UAS server but SIP Outbound Proxy receives requests from UAC .", "For example Flashphoner Web Call Server is implemented as a gateway which works through websockets with browser and works via SIP TCP and UDP with SIP servers .", "I configured sip.conf and extensions.conf files I am Able to reload the dialplan but whenever I type sip reload sip show users or sip show peers I am getting no such commands type core sip show help sip reload .. .", "Mobicents SIP Servlets https : github.com Mobicents sip-servlets is an implementation of the SIP Servlets API specification .", "Now we want that a SIP User say abc@localhost.com can only communicate to a specific SIP User say xyz@locahost.com and not to all other SIP users that are stored in a database-table .", "Extra Notes : .. . .. . Call Details : especially i wanted to get AgentId for a given call .. . .. . and .. . .. . From Sip Server : I am not sure if Sip Server is the best candiate to take call details .", "You need to know what codecs and protocols this SIP server will support .", "I have installed Kamailio as sip-server registrar and using default config .", "Later I ve started the server for listening SIP messages and added test user .", "Generally SIP server managers hide their topology for security reasons .", "Maybe SIP configuration .", "incoming-calls exten X . Dial SIP provider mobilenumber 60 .. . .. . Set default context of sip trunk registered in sip.conf to incoming-calls .", "I found SIP servlet API and there s also Mobicents SIP servlets .", "As such Mobicents SIP Servlets extends Tomcat to provide SIP capabilities to it .", "It makes life easier if the SIP transaction layer is the same irrespective of the SIP transport that is used .", "SIP signaling level if you have SIP session refresh it may timeout and call will be dropped .", "It work properly for sip to sip calling But when I call on any real number SIM Number then it properly ended .", "Gives SIP 923 No DNS result .", "From a pure standard - rfc3261 https : www.ietf.org rfc rfc3261.txt - point of view a SIP server handles SIP traffic with the purpose of routing finding users or other server and nothing else .", "The sip logs on the mediation server does not show the history-info header so it seems that the Lync 2015 mediation server is tampering with the INVITE requests from the PSTN trunk even before it is logging inbound sip messages .", "If you want to use SIP over websockets you can build both the server and the client part with JAIN-SIP stack as shown here JAIN-SIP WebRTC signaling http : stackoverflow.com questions 27985127 jain-sip-webrtc-signaling but you will have to ditch socket.io .", "I am using ngn stack library to make sip calls .", "My task is to create a app which enable the user to call using WiFi or Cellular Network and SIP Server of my client .", "With that set up you would be able to send https : www.twilio.com docs api twilio-sip sending-sip-how-it-works and receive https : www.twilio.com docs api twilio-sip receiving-sip-how-it-works SIP via Twilio .", "There are a lot of factors that can affect the scalability of SIP servlet applications that rely on a SIP servlet container .", "SIP is really interesting for me", "I have a trivial doubt with respect to SIP .", "Probably because it makes the SIP stack implementation easier .", "I have written a service for handling sip call .", "Then start capture and put the sip filter .", "2 And what about sip-proxy", "Follow the guide which I have mentioned above to setup a WebRTC externsion it is like other SIP extension and WebRTC can talk with SIP once configured .", "Calls are made between 2 sip clients but voice is not getting transferred .", "Calls are made between 2 sip clients using AMI .", "I am sending request to server on IP-Address 127.0.0.1 : 5080 udp and my Sip Stack is on port 5060 .", "@lenz i am just using the third party jar sip-viewer to analyses the log. . Ref - code.google.com p sip-viewer downloads list https : code.google.com p sip-viewer downloads list", "I have build android Sip Stack on using IP address 10.0.2.2 and Port number 5060 and my mobicent-jbossAS7.2 sip-server is running on port 5080 UDP and TCP both .", "We have authentication module.. . which should map user into a SIP account without specifying SIP account password in the webpage .", "I created table realtime dynamic database SIP register and loading for sip but not for extensions voicemail etc .", "For SIP check the SIP RFC ietf.org rfc rfc3261.txt https : www.ietf.org rfc rfc3261.txt or some simpler tutorial .", "Check firewall check sip show peers on asterisk", "do you register your sip account", "I need to test an application that processes SIP requests .", "You are right SIP over Websockets is a draft not specification .", "Possible solution is truly websocket-SIP gateway .", "I am running a B2C outbound Campaign on VicidialNow C.E 1.1 as Asterisk Server SIP Server .", "So all internal SIP Extension go out with the same number .", "You need to negotiate ports for RTP and RTCP first using SIP and SDP before those messages can be sent so if the server doesn t respond with any SIP message then something else is wrong .", "Check oracle.com technetwork java jain-sip-tutorial-149998.pdf http : www.oracle.com technetwork java jain-sip-tutorial-149998.pdf to get the idea but you must understand the SIP protocol before that .", "I have provisioned a Twilio Elastic SIP Trunk which has it s Origination SIP URI set to the IP address of the OpenSIPS server but it prepended with the protocol sip : .. . .. . I have two iPhones with some VoIP apps that allow me to specify Auth Name Auth Password Username Display Name Domain and SIP Proxy .", "SIP does not send and deal with ANY data packets .", "SIP is the Session Initiation Protocol and it handles the NEGOTIATION OF SESSIONS .", "For SIP it is usually G.729 or G.722.x .", "I am using PjSIP for SIP calling .", "I am using Callcentric as the SIP provider for Asterisk .", "Here are SIP logs 1111 call 9999 :", "Is there any book you can recommend for Jain-Sip" ] }
{ "confidence": [ 66.7975082397461, 65.82787322998047, 65.14175415039062, 64.41976928710938, 64.41604614257812, 64.27871704101562, 63.7344970703125, 63.63330078125, 62.768775939941406, 62.0355339050293, 61.93442916870117, 61.78620529174805, 61.20466232299805, 61.0274772644043, 60.91722869873047, 60.1456184387207, 60.10532760620117, 59.80953598022461, 59.757694244384766, 59.61039352416992 ], "content": [ "Question : I m very very new to the world of VoIP so please forgive my terminological inaccuracies . I have just installed on to a remote-server the OpenSIPS software . I have provisioned a Twilio Elastic SIP Trunk which has it s Origination SIP URI set to the IP address of the OpenSIPS server but it prepended with the protocol sip : .. . .. . I have two iPhones with some VoIP apps that allow me to specify Auth Name Auth Password Username Display Name Domain and SIP Proxy . In OpenSIPS i have created a domain with the IP of my server also i created two users on that domain and gave them Aliases of 100 and 101 . The software on the iPhones claims that it has registered with the OpenSIPS server so I have to accept that . I believe that my configuration of the Twilio SIP Trunk is correct on the basis that there aren t many settings to set and they all look correct and make some kind of logical sense . What i cant figure out from here and not for lack of searching the web watching hours of webinars etc is how do I get OpenSIPS to send outbound calls through to the Twilio Trunk and also get the handsets to ring on incomming calls and Twilio s SIP Trunk has a Termination SIP URI of xxxxxx.pstn.twilio.com which is im guessing supposed to be entered somewhere in to OpenSIPS but I cannot see how to configure this . I m looking for something that is a guide on how to connect OpenSIPS to the Twilio Elastic Sip Trunking service . Any help appreciated.. . .. . Answer : So I m guessing you want to set up an OpenSIPS instance which acts both as SIP registrar and basic SBC by simply forwarding all outgoing traffic to the Twilio SIP trunk . SIP Registrar .. . .. . It looks like you ve already handled the registrar part of OpenSIPS scripting . You can always generate a basic configuration that handles user registrations with : .. . .. . To list the currently registered OpenSIPS users : .. . .. . SIP Session Border Controller basic routing .. . .. . - managing outgoing traffic .. . .. . Here are a few useful scripting mechanisms : .. . .. . ru rU rd variables management of Entire SIP Request URI http : www.opensips.org Documentation Script-CoreVar-2-2 toc75 Just username of R-URI Just domain of R-URI - do all necessary changes i.e . force the R-URI to be xxxxxx.pstn.twilio.com.. . .. . du variable - management of Outbound Proxy http : www.opensips.org Documentation Script-CoreVar-2-2 toc36 - this will help us route to the Twilio SIP trunk . Setting a destination URI then doing t relay http : www.opensips.org html docs modules 2.1.x tm.html trelay-1 will simply proxy the current request to the specified destination . For a more advanced routing mechanism i.e . you need to route to a bunch of trunks consider using the dispatcher http : www.opensips.org html docs modules 2.2.x dispatcher module which supports using an SQL table populated with SIP destinations . - managing incoming traffic .. . .. . the registrar module functions should be enough for this test with lookup http : www.opensips.org html docs modules 2.2.x registrar.html id294366 or registered http : www.opensips.org html docs modules 2.2.x registrar.html id294613 then just do t relay http : www.opensips.org html docs modules 2.1.x tm.html trelay-1 . They will verify if your iPhones are currently registered on the OpenSIPS server .", "Question : I am using csipsimple as sip client and asterisk server to set up call . Calls are made between 2 sip clients but voice is not getting transferred . Calls are made between 2 sip clients using AMI . I can give my asterisk cli log . Can anybody please give me some idea to solve this issue Thanks Comment : please show your logs .. . Answer : More info would be useful . First make sure both clients are registered and can use at least one common codec . In most cases these aren t the problem . It s usually a NAT Firewall issue . Are the two clients on the same subnet Is there any firewall rules blocking the communication SIP signaling usually goes on udp : 5060 . But that seems working . Media is tricky . In each call the ports for RTP audio changes in the range specified in rtp.conf . This RTP traffic goes over UDP as well . By default it t 10000-20000 . If there is only routing done between the two endpoints it should still be fine . NAT Network Address Translation is your main concern . Take a look at iptables sip nat conntrack . To debug use asterisk s sip set debug on command and look for the SIP headers and verify the correct IP addresses . Comment : Thanks for the info . Can you please tell me what info you need I will provide you info that you need . Comment : Networking information . Maybe SIP configuration .", "Question : I am using a free caller android app and they restrict me with limited credits . I would like to explore more about how this app works . So I started decompiling the APK file and intercepting networking requests using Fiddler . I intercepted requests but none of those are creating the actual call . So after decompiling the APK I understood they are using SIP server for calls . I couldn t intercept any SIP call with fiddler or wireshark . They are using this SIP server : https : www.kamailio.org .. . Answer : Kamailio is one of the powerful SIP Servers and they have good documentation and big mail-user list . You can check their wiki : .. . .. . http : www.kamailio.org wiki .. . .. . For understanding this case first you should learn how voip works subject . You already can not inrecept any SIP call with fiddler or wireshark . Generally SIP server managers hide their topology for security reasons . Thats why you can not observe SIP traffic to the end of the tunnel . Even Kamailio has its own module that provides hide your network topology with one click : .. . .. . https : www.kamailio.org wiki tutorials tls testing-and-debugging decoding of tls connections with wireshark", "Question : I m trying to implement a sip-server for connecting to from an HTML sip client made using sipml5 . During my research into doing this I ve come across sip over web-sockets which might be useful to me however I am unsure if a user-agent connecting through sip over web-sockets to a compatible server would then be able to successfully make a call to some one using an incompatible server i.e . calling from SIP over web-sockets to true SIP . I know webrtc2sip can be used for connecting to legacy networks but I would rather avoid using another proxy if at all possible . So is it possible to connect to a compatible SIP server using SIP over web-sockets then make a call from this user-agent to another that does not support SIP over web-sockets without using a gateway Comment : You could use a SIP server that supports both traditional SIP over TCP UDP and WebSockets to implement a gateway function . An example enabling technology would be Mobicents SIP Servlets see code.google.com p sipservlets wiki Welcome tm 6 https : code.google.com p sipservlets wiki Welcome tm 6 . Comment : Would making a gateway be as simple as just connecting the user agents though a proxy that supports both or would certain headers need to patched media encoded etc . Comment : The answer to this depends on the interoperability of your endpoints sipml5 and some other unspecified SIP UAs . To be clear you would need to implement a proxy in Mobicents SIP Servlets . The gateway function has to be done somewhere after all . .. . Answer : You are right SIP over Websockets is a draft not specification . And I do not know many SIP vendors who support this draft . Possible solution is truly websocket-SIP gateway . For example Flashphoner Web Call Server is implemented as a gateway which works through websockets with browser and works via SIP TCP and UDP with SIP servers . Therefore it is compatible with any server that supports RFC3261 - standard SIP specification . Brief signaling scheme is : .. . .. . Browser - Websockets - Web Call Server - SIP TCP UDP - any SIP Server .. . .. . Brief streaming scheme : .. . .. . Browser - WebRTC SRTP DTLS ICE STUN - Web Call Server - RTP UDP - any SIP RTP Server", "Question : I am testing a setup with one sip client tested with sipp and a softphone and an IMS server that auto answers so it is a two-way RTP-communication between those 2 network elements . In RTCP must both the two entities communicating in such a scenario send RTCP packets I am asking that because when i use the sipphone it sends some RTCP packets at first and then the server answers whereas the sipp scenario doesn t send rtcp packets at all and gets no response from that protocol . Also all the ports for RTP+RTCP are open both in the router and in the testing machine . Can an IMS server be configured to send RTCP packets one direction only on an RTP flow Does it say anywhere in the RTCP Protocol that a client has to send RTCP paskets to receive such packets from the server .. . Answer : You need to negotiate ports for RTP and RTCP first using SIP and SDP before those messages can be sent so if the server doesn t respond with any SIP message then something else is wrong . Please check all the IP addresses in the outgoing INVITE from SIPP . Comment : Of course and i set the RTP port in the INVITE and the proper IPs so the server sends his own RTP packets in the respected prespecified ports . In my test all SIP signaling is taking place correctly - that s why i think that the RTCP needs both entities to support and send such messages but i need verification", "Question : I m trying to implement a sip-server for connecting to from an HTML sip client made using sipml5 . During my research into doing this I ve come across sip over web-sockets which might be useful to me however I am unsure if a user-agent connecting through sip over web-sockets to a compatible server would then be able to successfully make a call to some one using an incompatible server i.e . calling from SIP over web-sockets to true SIP . I know webrtc2sip can be used for connecting to legacy networks but I would rather avoid using another proxy if at all possible . So is it possible to connect to a compatible SIP server using SIP over web-sockets then make a call from this user-agent to another that does not support SIP over web-sockets without using a gateway Comment : You could use a SIP server that supports both traditional SIP over TCP UDP and WebSockets to implement a gateway function . An example enabling technology would be Mobicents SIP Servlets see code.google.com p sipservlets wiki Welcome tm 6 https : code.google.com p sipservlets wiki Welcome tm 6 . Comment : Would making a gateway be as simple as just connecting the user agents though a proxy that supports both or would certain headers need to patched media encoded etc . Comment : The answer to this depends on the interoperability of your endpoints sipml5 and some other unspecified SIP UAs . To be clear you would need to implement a proxy in Mobicents SIP Servlets . The gateway function has to be done somewhere after all . .. . Answer : An alternate way is to use kamailio as it understands both sip and ws sip . when you say implementing a sip-server is it a simple registrar or proxy server or you want cal control logic presence other features In all cases kamailio fulfills all requirements plus it is opensource .", "Question : I have just installed Kamailio SIP Server followed instructions on official site . Later I ve started the server for listening SIP messages and added test user . So now the tutorial http : www.kamailio.org wiki install 4.3.x git is ended up and i have no idea how i can test whether it works correctly or not . I mean if there is some hello world simple config to run or how to write simple test and execute in that environment . What I ve found in google it s just module and function descriptions . Thanks for any help and real examples are vital : Comment : I m afraid this isn t on topic on SO it may be better suited for the product s own support resources .. . Answer : I assume you have choosen a domain for your sip-server mysipserver.com in the tutorial . I m also assuming that you have choosen a domain-name that you owns . Step1 : check NAPTR SRV record optional but at least SRV is good to have .. . .. . In theory SIP Applications will do some NAPTR and SRV requests to locate your server for your service . This is described in rfc3263 https : www.ietf.org rfc rfc3263.txt and means you are supposed to configure your DNS entries to let SIP applications find the IP of your server . Check this page http : web.mit.edu sip sip.edu dns.shtml for an example Then you can test NAPTR for your service replace antisip.com with your domain-name .. . .. . Then use one the answers to test the SRV queries : .. . .. . In the example above sip.antisip.com and sip2.antisip.com are running the sip services for antisip.com .. . .. . Step2 : Without NAPTR SRV at least check DNS .. . .. . To make it simple if you have one server just make sure your domain resolve to your server s IP address : .. . .. . Note that for me antisip.com is also the sip.antisip.com server . Step3 : Testing from a windows .. . .. . The easiest from this point is to test on your favorite desktop OS . This will allow you to start a network capture . You can download this very simple demo . It s a very basic SIP app but that s easier for testing : VoipByAntisip.exe for Windows http : sip.antisip.com VoipByAntisip.exe .. . .. . Install wireshark and start it . Then start capture and put the sip filter . You may also later add the DNS filter and the RTP filter . 1 . Test UDP TCP and then TLS : .. . .. . To test UDP in settings configure : .. . .. . To test TCP in settings modify : .. . .. . To test TLS without certificate verification in settings modify : .. . .. . After applying the change the box on the left of REFRESH button should become green with 200 OK written . If not UDP doesn t work and either the answer code is written or a 408 Timeout is provided to indicate no answer . If you have registered correctly : that means you have received a 200 Ok then the location table of your kamailio database should contains the new registered user . 2 . Test calls : .. . .. . Of course you also need to test calls . The tutorial doesn t indicate that you need a rtp relay But usually if you wish to makes calls between SIP User-Agents an application relaying RTP like rtpproxy will need to be installed and configured to work with kamailio on your server . Without the relay you should be able to call talk between two SIP applications running on the same LAN . In order to test calls you will need to create a second user test2 and configure another PC to use this account . Then in Voip By Antisip for windows use the start call box and enter sip : test2@mysipserver.com . The network capture should show an INVITE being sent to your server . This INVITE should be relayed to second user and received by test2 SIP application . Comment : thanks for the brilliant explanation . I ve already started with installation of dns server 2 days ago . About To test UDP in settings configure - which config is that Comment : configure is the verb I have written that you need to configure proxy username password and protocol entries in settings The settings are accessible via the menu Voip By Antisip in the top left of app.. .", "Question : I m trying to implement a sip-server for connecting to from an HTML sip client made using sipml5 . During my research into doing this I ve come across sip over web-sockets which might be useful to me however I am unsure if a user-agent connecting through sip over web-sockets to a compatible server would then be able to successfully make a call to some one using an incompatible server i.e . calling from SIP over web-sockets to true SIP . I know webrtc2sip can be used for connecting to legacy networks but I would rather avoid using another proxy if at all possible . So is it possible to connect to a compatible SIP server using SIP over web-sockets then make a call from this user-agent to another that does not support SIP over web-sockets without using a gateway Comment : You could use a SIP server that supports both traditional SIP over TCP UDP and WebSockets to implement a gateway function . An example enabling technology would be Mobicents SIP Servlets see code.google.com p sipservlets wiki Welcome tm 6 https : code.google.com p sipservlets wiki Welcome tm 6 . Comment : Would making a gateway be as simple as just connecting the user agents though a proxy that supports both or would certain headers need to patched media encoded etc . Comment : The answer to this depends on the interoperability of your endpoints sipml5 and some other unspecified SIP UAs . To be clear you would need to implement a proxy in Mobicents SIP Servlets . The gateway function has to be done somewhere after all . .. . Answer : Mobicents SIP Servlets Example already provides a B2BUA Application taking care of that for you . The Media is peer to peer or through a TURN Relay Server but if you need to bridge to a Media Server you can indeed patch the SDP Body to make the media of each party go through the Media Server pending it supports Media related codecs from WebRTC DTLS-SRTP etc to add conferencing recording type of capabilities .", "Question : I m little bit confused about sip proxy and sip outbound proxy What is the basic difference between sip proxy and sip outbound proxy Is it mandatory to use sip outbound proxy along with sip proxy Can anyone point me out from the below image which one is the sip proxy and outbound proxy enter image description here http : i.stack.imgur.com N3Hr1.png .. . Answer : SIP Proxy .. . .. . A SIP proxy server receives a SIP request from a user-agent or another proxy and acts on behalf of the user-agent in forwarding or responding to the request . Sip Outbound Proxy .. . .. . An outbound Proxy : A proxy that receives requests from a client even though it may not be the server resolved by the Request-URI . Typically a SIP user-agent is manually configured with an outbound proxy or can learn about one through auto-configuration protocols . Basically they are the same the only difference is that SIP Proxy treats requests both for UAC client and UAS server but SIP Outbound Proxy receives requests from UAC . And no it s not mandatory to use SIP Outbound Proxy along with SIP Proxy . What about scheme from your image these are not proxy servers but are registrar servers which are used to register requests of the users and keep the information from these requests . Comment : So for sip registration which registrar server should I use Comment : do you own register server or have a sip account Comment : I own a register server .", "Question : There are some SIP Servers which handle few thousand subscribers and some other which can handle millions of subscribers with similar underlying hardware . What are the design and development factors to be considered for implementing SIP Servers which can handle such massive amount of traffic .. . Answer : First I m going to assume you re interested in building your own SIP signaling applications so your question is directed at SIP applications servers and the applications running on top of them . I m not going to talk about products like Asterisk . There aren t that many choices when it comes to Java app servers that include SIP servlet containers . Basically the big three are IBM s WebSphere server Oracle s Communications server and Mobicents . I m mostly familiar with WebSphere which you can download for free at www.wasdev.net but I m sure all of these products scale on the signaling side very well . Well beyond a couple of thousand endpoints and if you re willing to cluster the servers you could support into the thousands of calls per second fairly easily . This is how tier one providers like AT T scale their Voip services to massive numbers of endpoints . If you are including media processing in your question that is when you quickly start getting into scalability issues . Server-side media processing record playback multiway mixing SFUs etc . can be extremely processor intensive . In the SIP servlet world media servers are controlled via the media control API JSR 309 which delineates the signaling plane form the media plane . So its hard to provide an answer to your question without knowing more about the types of applications you SIP server needs to host . There are a lot of factors that can affect the scalability of SIP servlet applications that rely on a SIP servlet container . Threading is the key . You want to make sure you are never blocking threads in your application code . Everything must be asynchronous to scale . For developers not used to writing asynchronous code this can take a little getting used to but its critical to figure this out before taking on any real-time signaling development . In terms of Java servers you also want to tune your JVM for the best possible results . This goes beyond making sure you have enough heap space to accommodate the number of calls per second you server must support . There are many JVM Garbage Collection GC knobs that can be turned to adjust the nursery size etc . Its critical that the GC configuration is right for your server . Most JVMs also have specific GC algorithms that are designed to work better for real-time applications . For instance the JVM used with IBM WebSphere supports a GC algorithm called metronome which trades of GC activity for low-latency . This is an enormous subject so if you can provide some more details about what your trying to accomplish with a SIP server I might be able to provide more insight . Comment : Thank you for the detail explanation . The third paragraph in your answer is what I am more interested in i.e the coding techniques that should be used to implemented a scalable SIP server or other telecom software like LTE packet core EPC . It would be great if you can suggest books or papers that can guide me on building carrier grade software . Comment : This book on SIP Servlet 1.1 development looks like it has some good reviews and covers subjects like SIP clustering which are critical for scalability : amzn.to 1SlsU7x http : amzn.to 1SlsU7x Hope this helps .", "Question : I want to develop a Android App which will use a SIP Server of my client . My client is exposing couple of REST API from the SIP server for communicating with the apps . I want to know which would be the best codec type for this app Basically I want to create a SIP-Stack and send the SIP Packets to the Server . So there should be a coding and decoding system for the packets . My client prefers 16 kb sec but I am not sure which should I use . Comment : I am totally new in VOIP area . In details my client has a API which is based on REST . My task is to create a app which enable the user to call using WiFi or Cellular Network and SIP Server of my client . So my client wanted to know the type of the codec i will use which I am not sure . I also have to fetch user s data using the API i mentioned earlier . Please suggest me the working procedure that I should follow . .. . Answer : It sounds like a bad idea to do it yourself . Developing a sip client is not a trivial task since there are several protocols you would have to implement . Choosing the coding is not very important decision compared to the rest . imho you should use one of the open-source sip stacks available like pjsip or build your application on top of an open-source sip client like sipdroid . But since you asked for codec : Use the GSM codec . Saved bandwidth and sounds OK . G.711 is otherwise the standard codec that 99 of all sip servers support . Comment : could you add any usefull information on the build your application on top of an open-source sip client like sipdroid . I m very interested in this . Thank you Comment : Take sipdroid change the GUI a bit and call it your own application . don t forget to keep their copyright info Comment : oh : it s sounds really easy but it might not be : P you re right about the copyright info they had issues in 2009 according to their wiki . thanks anyway", "Question : I have one simple question which stuck me . I have FreePBX server with SIP trunk to ISP . ISP Dedicated one PSTN number . So all internal SIP Extension go out with the same number . Does it mean that at any time just one Extension can call outside Thank you . Best Regards .. . Answer : Just a hint . It would depend on your VoIP provider the number of simultaneous-calls they allow you to do with one account you can try SIP Trunk providers such as Switch2Voip Call Center VoIP http : switch2voip.us they allow unlimited concurrent calls with very low rates .", "Question : I am doing some POC on presence server using SIP servlets . I have connected softphone to the presence server using 127.0.0.1 . Now I am trying to use the ip given by connected wifi router instead of 127.0.0.1 to connect to the server but the softphone is not able to register to the server . Gives SIP 923 No DNS result . error . The softphone is Zoiper . I am not able to figure out what exactly is the problem . Probably I may need some extra configurations . So how can I connect to local server using my machine ip instead of localhost . Application setup : Mobicents presence server on JBoss . What could be the solution I guess something like port forwarding I have no idea about this just got some idea by searching for the solution . Help appreciated . Thanks Comment : Not related to programming so you probably won t get an answer here . Comment : Thanks Dijkgraaf . Actually it is related but yes question does not contain anything in that regards . Can you suggest appropriate forum to post this Comment : Possibly superuser.com http : superuser.com .. . Answer : We have to make server listen on the IP address instead of loaclhost or 127.0.0.1 .. . .. . We can do this from some configuration file provided by the server where the ip binding is defined .", "Question : I have an IP phone but not a SIP Registry . Is it possible for me to set up my IP phone directly with Twilio SIP without having to depend on OpenPBX or FreePBX just Twilio directly to my IP phone .. . Answer : I m Megan from Twilio . At this time you need a PBX https : www.twilio.com docs api sip-trunking sample-configuration to connect IP phones to our service . With that set up you would be able to send https : www.twilio.com docs api twilio-sip sending-sip-how-it-works and receive https : www.twilio.com docs api twilio-sip receiving-sip-how-it-works SIP via Twilio . Hope you find this helpful .", "Question : I have webrtc application and its signalling server is on node.js using socket.io . Now I am going to create android jain-sip stack . I want to connect my webrtc application with jain-sip application . My question is can I connect jain-sip stack using node.js server with websocket to connect to webrtc application If Not then how I build signalling sip-server for jain-sip stack that connect to webrtc I search alot about my question but I cannot find any proper guide or forum etc . EDIT : I have found this stackoverflow link here http : stackoverflow.com questions 27985127 jain-sip-webrtc-signaling . But the answer is not clear enough . .. . Answer : Socket.io is a different alternative protocol and it s not compatible with SIP over websockets . If you want to use SIP over websockets you can build both the server and the client part with JAIN-SIP stack as shown here JAIN-SIP WebRTC signaling http : stackoverflow.com questions 27985127 jain-sip-webrtc-signaling but you will have to ditch socket.io . You can also consume socket.io with your own client library from android without having to use SIP just as well for webrtc . See Java socket.io client http : stackoverflow.com questions 5783086 java-socket-io-client . Beware socket.io has different versions so you have to match the versions you use right now as they are not very compatible . Comment : Is there any book you can recommend for Jain-Sip Comment : JAIN-SIP is light SIP stack . Check oracle.com technetwork java jain-sip-tutorial-149998.pdf http : www.oracle.com technetwork java jain-sip-tutorial-149998.pdf to get the idea but you must understand the SIP protocol before that . For SIP check the SIP RFC ietf.org rfc rfc3261.txt https : www.ietf.org rfc rfc3261.txt or some simpler tutorial .", "Question : When testing SIP calls on the SIP server that we are developing i came across a case where the 200Ok response for UPDATE message arrives after 180 ringing is received on the SIP server . In other words the device at B sends 180 Ringing to the server before sending the 200OK response for UPDATE . The call flow is per the attached image - Late 200OK response image . http : i.stack.imgur.com f043R.jpg The question is- Is this correct with respect to call flow . Does the standard allow this . Is the device B at fault I tried to get answer from web and RFCs but unable to get correct information . Can someone point me in the right direction on how to handle this situation Comment : This is off topic here as it s not a programming question . Comment : Not a programming question . I recommend you to add more details for the SIP stack you are using or contacting the correct email alias . Asterisk Freeswitch Kamailio etc. . .. . Answer : It s valid from the standard . And there is no reason it should break anything in your app . 200 Ok for UPDATE has one meaning : the UPDATE was correctly received handled on remote side . No matter when you receive it As a sidenote User B should not send 183 and later a 180 : provisionnal response status code sent by one same User-Agent should always increase . That doesn t look to be your question but worth to be pointed out", "Question : We have a Kamailio SIP server up and running with authentication . Now we want that a SIP User say abc@localhost.com can only communicate to a specific SIP User say xyz@locahost.com and not to all other SIP users that are stored in a database-table . I tried to find the solution but could find a way to do it . Any help will be appreciated . So scenario is : .. . .. . SIP User 1 --------------- SIP User 2 only and if SIP User 1 --------------- SIP User 3 Access should be denied .. . Answer : You have to keep the relation between an user and what it can dial . One option is to create your own table in database and use sqlops to check it . Say the table named dialrules will have src and dst columns to tell if src is allowed to call dst . Some sample records for alice to be allowed to call bob carol david : .. . .. . Then when someone alice is calling have a condition like : Comment : Thanks I shall give this approach a try and post my feedback soon .", "Question : SIP over UDP : It s necessary to have SIP response 100 Trying for SIP over UDP to shut the Timer-A off that would have been started by caller and hence stopping the re-transmission of the SIP message . Its really important because other responses provisional and final might take a while for initial INVITE message as we have to consider the scenario of forking UE-B not reachable fallback.. . etc It might take some time . SIP over TCP : Timer-A will not be started by caller and thus no re-transmission of message . TCP being reliable not re-transmission required . Even then why do most implementation sends 100 Trying over TCP .. . Answer : There are few reasons that 100 Trying is still needed for SIP over TCP . 1 . Having a TCP Connection does not guarantee that the SIP Application is working or if its a SIP - Aware application at all . The 100 Trying provides you the feedback that your request is being processed by a SIP Application . 2 . The lack of 100 Trying can also be the right trigger for not just re-transmissions but to re-attempt to maybe a different server in the configuration . You may not want to elapse 32 seconds for every Server in configuration even when the connection is TCP . 3 . In deployment scenarios if there are elements like a SBC or Load Balancer the TCP Connection is established with them . The Application behind it can be a different entity and usually these edge elements pass on all messaging or generate messaging to indicate the call in action state .", "Question : I want to develop a Android App which will use a SIP Server of my client . My client is exposing couple of REST API from the SIP server for communicating with the apps . I want to know which would be the best codec type for this app Basically I want to create a SIP-Stack and send the SIP Packets to the Server . So there should be a coding and decoding system for the packets . My client prefers 16 kb sec but I am not sure which should I use . Comment : I am totally new in VOIP area . In details my client has a API which is based on REST . My task is to create a app which enable the user to call using WiFi or Cellular Network and SIP Server of my client . So my client wanted to know the type of the codec i will use which I am not sure . I also have to fetch user s data using the API i mentioned earlier . Please suggest me the working procedure that I should follow . .. . Answer : Any SIP does not send and deal with ANY data packets . SIP is the Session Initiation Protocol and it handles the NEGOTIATION OF SESSIONS . The sessions then arae - in case of auio and video - are based on RTP and use RTSP for signalling . So your question indicates a REAL lack of knowledge of what you need to do - the real uestion is : you need a RTP compatible codec . Which is similar senseless . RTP is jsut a carrier protocol . THis is like asking what is a HTTP compatioble image format . HTTP does not care . The browser does . In case of RTP it means - RTP does not care . It can transport ANY data . WHat is important is that BOTH SIDES know the same codec . So in your case it means : .. . .. . If you program both sides then it is your choice . If you program only one sidwe like a SIP phone system then the question is waht normal programs handle . Comment : speed-typing ehh Comment : Actually yes Need to work on my typing accuracy .", "Question : I have one simple question which stuck me . I have FreePBX server with SIP trunk to ISP . ISP Dedicated one PSTN number . So all internal SIP Extension go out with the same number . Does it mean that at any time just one Extension can call outside Thank you . Best Regards .. . Answer : Ask that question to your provider . Usualy no limit if no special limit on provider s side . Comment : arheops Thank you for your reply . But I am still confused regarding unlimited number . How PSTN network can process unlimited number of calls from one Number at the same time . This is like dynamic NAT with one public IP can give access to Internet just one PC in a time . Please correct me if I m wrong . Comment : if you connected via pstn you have SINGLE port per single line but still can have same number of 2 lines . Any digital connection can support any number on any port . There are no any limit in network itself . Digital network can have 300lines capacity with same single number connected via sip or 10x PRI E1 for example . So if you have isp which connected via plain lines sure u will have limit . But even small providers most likly connected via network or pri ." ] }
[ "yes-answer-long", "yes-answer-short" ]
pbx
UNK_RELATION
datalife-engine@blogs@148
datalife-engine -- datalife-engine dle is a commercial content-management-system written in php and mysql aimed primarily at news distribution and @placeholder .
{ "confidence": [ 70.73493957519531, 68.46458435058594, 66.29493713378906, 66.20018005371094, 66.20018005371094, 66.20018005371094, 65.76405334472656, 64.38992309570312, 62.22027587890625, 62.212982177734375, 61.00254440307617, 60.680824279785156, 60.680824279785156, 56.7009162902832, 56.7009162902832, 55.27708435058594, 53.24627685546875, 51.436012268066406, 49.2663688659668, 48.532989501953125, 48.15155029296875, 46.88392639160156, 46.88392639160156, 44.716270446777344, 43.59989547729492, 42.024654388427734, 35.51294708251953, 34.466182708740234, 34.2085075378418, 33.97539138793945, 32.33980941772461, 32.043968200683594, 31.88369369506836, 31.42737579345703, 31.331892013549805, 31.331892013549805, 31.154682159423828, 30.314319610595703, 29.691478729248047, 27.209148406982422, 27.130401611328125, 26.07608985900879, 25.058401107788086, 24.42809295654297, 24.307220458984375, 24.163265228271484, 24.142093658447266, 23.953392028808594, 23.811199188232422, 23.430646896362305, 23.430646896362305, 23.430646896362305, 23.430646896362305, 22.472332000732422, 22.472332000732422, 22.472332000732422, 22.472332000732422, 22.472332000732422, 22.334259033203125, 22.331832885742188, 21.885822296142578, 21.885822296142578, 21.765531539916992, 21.765531539916992, 21.765531539916992, 21.765531539916992, 21.459251403808594, 21.128538131713867, 20.162189483642578, 19.715312957763672, 19.450740814208984, 18.354351043701172, 17.918581008911133, 17.918581008911133, 17.918581008911133, 17.918581008911133, 17.918581008911133, 17.918581008911133, 17.918581008911133, 17.918581008911133, 17.918581008911133, 17.918581008911133, 17.918581008911133, 17.918581008911133, 17.918581008911133, 17.918581008911133, 17.918581008911133, 17.918581008911133, 17.918581008911133, 17.918581008911133, 17.918581008911133, 17.918581008911133, 17.918581008911133, 17.918581008911133, 17.918581008911133, 17.918581008911133, 17.918581008911133 ], "content": [ "Datalife Engine does not use smarty template-engine .", "What is your Datalife Engine version", "I am using Datalife Engine .", "Now how can I do this in datalife-engine", "i need some help with javascript and datalife-engine .", "I am testing Datalife Engine on my PC .", "The language is Russian and the system is integrated with a Russian CMS called DataLife Engine .", "I have to upload the code this code for Datalife engine .", "Datalife engine template are build with .tpl files .", "I php files on datalife-engine are a litle bit diferent .", "The website is made using datalife-engine and as little as I know about DLE there are no way to use plug-ins .", "I m migrating my blog from wordpress to datalife-engine .", "I ve tested but i don t think this will work in Datalife Engine .", "I have a problem on my datalife-engine post url .", "For datalife-engine display just on the first page we use :", "Does datalife accept the PHP condition on her script", "I m trying to change the looks of a DataLife Engine template and I m wondering if you could help me with alignment .", "I m using datalife-engine to make a blog and I m trying to tweak the default rating module .", "you must add below code in the top of index.php file of Datalife Engine : .. . header X-Frame-Options : GOFORIT", "I m using DataLife Engine 10.1 and applied this script : .. . .. . Only when I m logged into their website image in tag xfvalute slika is displayed when I share news on facebook .", "Datalife Engine using article ID based article so if the article ID in your database even if the alt name is incorrect DLE still can find your article regardless of your SEO URL is .", "Datalife security filter that url and shown loop error .", "You say you re using Datalife right", "So if category ID is 2 then display the block.. . Datalife engine has a tag that automaticly does this but for some reason it s not working right.. .", "The module is for Datalife Engine 10.0 it was working on previous versions but somehow this jquery function is not adapted to jQuery library 1.8.3 but I think the problem is not with jquery library so that s why I ask here .", "And i can t find any info where they are because all the readme files of datalife are in russian .", "It has it s on custom engine .", "Datalife Engine use the module files in folder engine modules to define which .tpl files to use for which function so there is no single file that declare all tpl files you have to check which module or which function you want to edit in your case it seems like you are looking for full page of content which in DLE called fullstory the module that handle this module is engine modules show.full.php and the theme file to use for this module are fullstory.tpl to dispaly the rest of fullstory addcomment.tpl for add comment form and relatednews.tpl to display related news about rating there are at least 3 modules use this tag which are show.short.php show.custom.php and show.full.php however the DLE structure is each module use its own tpl file to display as content I think if you go to dlestarter.com you can get all answer you need from them I think they are not so advanced team but they do speak English so they can help you more effectively to any questions you may have...good luck", "DLE has some issue for php file placing in templates folder that must be the reason why rorate.php isn t working", "this hack replace id to end of url : find this : engine modules show.short.php engine modules show.full.php .. . .. . find .", "I am DLE not uploading .", "the option can be set in system settings for both files and images the new version of DLE settings are moved to Usergroup Manager", "Open file index.php newest versions engine modules main.php .. . .. . Find : .. . .. . Replace to : .. . .. . and .. . .. . in to main.tpl you can place php", "as far as I know php-5.4 only supported by DLE 9.8 UTF-8 and DLE 10.0 so if you use one of those versions then the problem you have seems to be related to jQuery popup more than script issue but I can be easily wrong .", "I m working on a DLE autoposter for a customer .", "DLE CMS http : i.stack.imgur.com VAzOF.jpg", "Back in DLe 8.x this option can be modified but in 9.x and 10.x are out of luck and I fully agree with IMSoP due to DLE use ID base to generate the seourl .", "In DLE the default rating displays 5 stars and the number of votes .", "you must set tag in Engine Modules show.short.php near this line :", "why don t you use CDN services like cloudflare.com or any CDN it will help you a lot more than modify the php code especially if your site that getting heavy with ton of posts in DLE will save you bunch", "I have two databases : first is taken from DLE website I took 4 fields Title content thumbnail date with this query .. . .. . I need to place them into the wordpress database and there are some problems : 1 Wordpress database has more fields and their names are different .", "the shortstory.tpl is build by the engine modules show.short.php file witch will call the db for the data or memcached if enabled and the data was cached replace the the engin tags with the necessary data like title and many others .", "Only the PHP configuration changed .", "The problem you have is not problem on both rotate.php and dle script but it s problem where to place rotate.php file location you can t place any php files in your theme folder it will be blocked by script and htaccess so the solution is simple create new folder in your root directory outside templates folder example : header or background .. . .. . Then place all images and rotate.php inside that folder so you can access to the folder and images like .. . .. . Your main.tpl should be like this .. . .. . Keep any php files out from templates folder .", "But i can t write it on the tpl files.. . .. . .. . What i want to know is where are functions like rating content or related-news declared.. . .. . .. . i want to query the database but for what i know i can t do it on the tpl files direcly .", "try to disable spam filter in dle admin cp because this option give false invalid all the time especially on any server that use server cache .", "have you solved problem with php-5.4 version .", "We call the posts using a tag named content .", "One important think to note is that you cannot add php in the tpl files at least not out of the box but you can include files with php in them .", "Unfortunately not still using PHP 5.3.x for the website in question .", "For what i figured it out by searching is writen in smarty php.. .", "Open rotate.php in browser and check if php renders image correctly .", "if you are trying to change based on a certain condition..try if loop php", "I ve checked modules php files and changed codes where was necessary but in .htaccess couldn t unable to set .", "By default pages generated with PHP are not cached by browsers or proxies as they are generated anew every time the page is loaded by the server .", "By adding appropriate code to your PHP pages you can allow your pages to be cached and reduce the required bandwidth .", "Because of the nature of the problem unfortunately I could not wait more time and downgraded PHP which solved the problem .", "If anyone still has the answer on how to make it work with PHP 5.4 it would be very interesting to read it", "Note that I ve had to paste the entire jQuery.bPopup.min.js into the JavaScript window so scroll down to check out the real content .", "You cannot input php codes into tpl files .", "I recently upgraded a server for my client and the new server runs PHP 5.4.4 instead of 5.3.x as the old one did .", "I did everything like described here PHP Random Image Rotation http : www.marcofolio.net webdesign php random image rotation.html .But there picture showing up .", "You can t create a URL that doesn t contain the information needed to retrieve the right content because the URL is the only input the server gets .", "I have some info displayed in a colum like this : .. . .. . This looks like .. . .. . I want them to display like this : .. . .. . The content of each cell can be different .", "When the user clicks the button the JS event is fired and the correct trailer is loaded into the content div in the ready and waiting popup based on that all important data attribute .", "The button doesn t fetch individual content.. . what i mean is if the 1 post when i see the trailer of the 2 post it will be the same.. .", "my apology user2969578 I guess the file was removed because I forgot to login to add the code...and I have edited the link above which is codepaste.net gbrj2j http : codepaste.net gbrj2j also I have found that the problem seems to be with server running php 5.2.x because this problem doesn t exist in php 5.3.x so I am not sure would it make any senses but it is working on php 5.3.x however problem is my websites till running php 5.2.x because it s shared host so will have to wait for host provider to upgrade otherwise I am stuck here for the time being...thank you for your reply and hope can find solution .", "If you have repeat visitors to your website or even many visitors that use the same proxy this means that a lot of bandwidth is wasted transferring content that hasn t changed since last time .", "But my looks are defined by tpl files not php .", "I looked in logs error and so many time written .. . .. . firs time I turned off rss feed Becouse I thought it need more resourses but not helped", "I guess php will not work in the TPL files keep that in mind .", "and then use java Script functions such as split substring etc to get the content which you need .", "I want to change rewrite url to remove id number so .. . .. . site 2-post.html -- Normally .. . site post.html -- That I want .. . .. . Is it possible", "my .htaccess is here I guess there is necessarry part when I changed it some problems happend", "I don t think what you want to achieve is possible because the application will need to know the ID in order to do anything useful .", "If the only thing the browser requests is site post.html the server cannot magically reinvent the ID that would previously have been in the URL .", "The only way this is possible is if the application can look up an article based purely on the seourl parameter in which case you can simply remove the newsid part from the URL leaving a rule like this : .. . .. . The easy way to test whether this will work is to type a URL into your browser of the form that rule would map to so e.g .", "http : yoursite.example.com index.php seourl some-post-that-exists", "IMSoP thanks to reply but seourl parameter only change seo type not relevant url construction also i want to create url without index.php or the other parameters such as id i think there is no way to create this url construction", "So you can change the way parameters are put together and remove things which are always the same such as index.php but somewhere there needs to be enough information to actually select the right post .", "I see what you want to say .", "So is it possible by using 301", "I m not sure how you think 301 would help .", "If you have too little information in the URL a 301 can t magically add it if you have all the information in the URL telling the browser to try again with less information isn t going to be useful .", "Your web server only sees the URL the browser is currently requesting so information that isn t in that URL has nowhere else to exist .", "There are so many web sites using URL that I want and by using 301 may be possible because of examples given in other web sites that could find the solution to solve this problem .", "So speaking with authority is no necessary .", "Thanks .", "row id .", "- .", "row alt name .", ".html .. . .. . replace with : .", ".html .. . .. . put this code in .htaccess", "Lots of things changed and I had to go around and fix htmlspecialchars session register and other problems but one problem remains a complete mystery : .. . .. . Now when I click the image manager in TinyMCE the language pack doesn t seem to work at all it shows labels like : common.filter view.thumbnail etc .", "Other functions in TinyMCE like regular text editing work fine .", "I looked at this similar question : Tinymce filemanager not working at all + language not loading http : stackoverflow.com questions 11741188 tinymce-filemanager-not-working-at-all-language-not-loading but it doesn t seem to be quite the same issue since it worked and no changes were made in the configuration of TinyMCE and the paths on the website and even the whole server are exactly the same .", "Is there some kind of well-known issue upon 5.4 upgrade" ] }
{ "confidence": [ 90.66511535644531, 78.48927307128906, 76.10957336425781, 75.9227294921875, 74.64176177978516, 70.21649169921875, 70.21649169921875, 68.5634765625, 67.63508605957031, 66.43887329101562, 65.70095825195312, 63.10881423950195, 60.790794372558594, 60.790794372558594, 59.7537841796875, 57.611907958984375, 55.94709777832031, 55.94709777832031, 55.499507904052734, 51.390865325927734 ], "content": [ "Question : I m migrating my blog from wordpress to datalife-engine . For what i figured it out by searching is writen in smarty php.. . I never worked with it before and i want to query the database to implement something on the theme.. . But i can t write it on the tpl files.. . .. . .. . What i want to know is where are functions like rating content or related-news declared.. . .. . .. . i want to query the database but for what i know i can t do it on the tpl files direcly . And i can t find any info where they are because all the readme files of datalife are in russian . Can someone help me to figure out how is this structure done .. . Answer : Datalife Engine use the module files in folder engine modules to define which .tpl files to use for which function so there is no single file that declare all tpl files you have to check which module or which function you want to edit in your case it seems like you are looking for full page of content which in DLE called fullstory the module that handle this module is engine modules show.full.php and the theme file to use for this module are fullstory.tpl to dispaly the rest of fullstory addcomment.tpl for add comment form and relatednews.tpl to display related news about rating there are at least 3 modules use this tag which are show.short.php show.custom.php and show.full.php however the DLE structure is each module use its own tpl file to display as content I think if you go to dlestarter.com you can get all answer you need from them I think they are not so advanced team but they do speak English so they can help you more effectively to any questions you may have...good luck", "Question : I have a problem on my datalife-engine post url . In some of the my posts I get The page isn t redirecting properly on firefox and other browser . It seems this problem became from htaccess properties . What can I do for solving this problem .. . Answer : Why don t you enable option Check invalid SEO URL : Yes Datalife Engine using article ID based article so if the article ID in your database even if the alt name is incorrect DLE still can find your article regardless of your SEO URL is . the file .htaccess should be remain untouched unless you are using other mod-rewrite than apache . Comment : The problem goes from alt name when it has a invalid character like . Datalife security filter that url and shown loop error . I changed all urls like that and problem solved . thanks guys by the way .", "Question : By default pages generated with PHP are not cached by browsers or proxies as they are generated anew every time the page is loaded by the server . If you have repeat visitors to your website or even many visitors that use the same proxy this means that a lot of bandwidth is wasted transferring content that hasn t changed since last time . By adding appropriate code to your PHP pages you can allow your pages to be cached and reduce the required bandwidth . Now how can I do this in datalife-engine .. . Answer : why don t you use CDN services like cloudflare.com or any CDN it will help you a lot more than modify the php code especially if your site that getting heavy with ton of posts in DLE will save you bunch", "Question : I m migrating my blog from wordpress to datalife-engine . For what i figured it out by searching is writen in smarty php.. . I never worked with it before and i want to query the database to implement something on the theme.. . But i can t write it on the tpl files.. . .. . .. . What i want to know is where are functions like rating content or related-news declared.. . .. . .. . i want to query the database but for what i know i can t do it on the tpl files direcly . And i can t find any info where they are because all the readme files of datalife are in russian . Can someone help me to figure out how is this structure done .. . Answer : Datalife Engine does not use smarty template-engine . It has it s on custom engine . The Flow of the cms its simple every article has a short story and optionally a full story . In the template folder you have a bunch of tpl files with build up the final page . main.tpl beeing the file called for every page you display . Now typically once you call the front page the main.tpl along with shortstory.tpl are called along with other blocks for the front page . the shortstory.tpl is build by the engine modules show.short.php file witch will call the db for the data or memcached if enabled and the data was cached replace the the engin tags with the necessary data like title and many others . You should really look at the documentation to undestand witch tags are found in witch section . One important think to note is that you cannot add php in the tpl files at least not out of the box but you can include files with php in them . I recommend heading over to dlestarter.com they are a good reference for documentation in English and pretty much the only once as well . They also have a forum where i look into sometimes .", "Question : I am DLE not uploading . My upload form no showing chrome firebug : Load denied by X-Frame-Options : url does not permit cross-origin framing . Pls help me DLE CMS http : i.stack.imgur.com VAzOF.jpg .. . Answer : you must add below code in the top of index.php file of Datalife Engine : .. . header X-Frame-Options : GOFORIT", "Question : Datalife engine template are build with .tpl files . What i want to do is to display a div only on a certain category . So if category ID is 2 then display the block.. . Datalife engine has a tag that automaticly does this but for some reason it s not working right.. . I guess php will not work in the TPL files keep that in mind . .. . Answer : Ok so i got the right tags .. . .. . The 2 is the ID of the category you want it to display on .", "Question : Datalife engine template are build with .tpl files . What i want to do is to display a div only on a certain category . So if category ID is 2 then display the block.. . Datalife engine has a tag that automaticly does this but for some reason it s not working right.. . I guess php will not work in the TPL files keep that in mind . .. . Answer : in main.tpl and shortstory.tpl you can use category x-tag in shortstory.tpl and fullstory.tpl you can use catlist x-tag", "Question : I have to upload the code this code for Datalife engine . How do I make the file size limit 5Mb . And where to put the code Sorry I m bad speaking English . Thanks for help . I wrote to google-translate Comment : This is related to your web server settings not Javascript options . Comment : The amount of error suppression operators in your code is ridiculous . Comment : and can be removed from the javascript server settings and make javascript help .. . Answer : why do you want to play around with your code while you can set it in admin cp the option can be set in system settings for both files and images the new version of DLE settings are moved to Usergroup Manager", "Question : I have a div block that I only want to display on the first page . I mean if the user is on .. . .. . it displays the div . But if he navigates to the second page of the posts .. . .. . it hides that div . I am using Datalife Engine . Div example : .. . .. . Can this be done Comment : You say you re using Datalife right That wouldn t happen to have anything to do with www2.datalife.com would it Comment : @MrLister nah . It s a russian plataform . : I don t have any HTML files . Template files are .TPL and .CSS Comment : Ah I see . Sorry . .. . Answer : For datalife-engine display just on the first page we use :", "Question : I have a div block that I only want to display on the first page . I mean if the user is on .. . .. . it displays the div . But if he navigates to the second page of the posts .. . .. . it hides that div . I am using Datalife Engine . Div example : .. . .. . Can this be done Comment : You say you re using Datalife right That wouldn t happen to have anything to do with www2.datalife.com would it Comment : @MrLister nah . It s a russian plataform . : I don t have any HTML files . Template files are .TPL and .CSS Comment : Ah I see . Sorry . .. . Answer : follow this and all be worked fine . hope it helps you .. . .. . example http : jsfiddle.net viktorino 56ea5 Comment : I php files on datalife-engine are a litle bit diferent . : I am not using wordpress Comment : this use is not only in wordpress . you can use it where you want Comment : if i help you please mark my answer Comment : But my looks are defined by tpl files not php . I have my div on tpl files : Comment : then do this with jquery . check on what page you and if it main page set the div with display block", "Question : I recently upgraded a server for my client and the new server runs PHP 5.4.4 instead of 5.3.x as the old one did . Lots of things changed and I had to go around and fix htmlspecialchars session register and other problems but one problem remains a complete mystery : .. . .. . Now when I click the image manager in TinyMCE the language pack doesn t seem to work at all it shows labels like : common.filter view.thumbnail etc . The language is Russian and the system is integrated with a Russian CMS called DataLife Engine . Other functions in TinyMCE like regular text editing work fine . I looked at this similar question : Tinymce filemanager not working at all + language not loading http : stackoverflow.com questions 11741188 tinymce-filemanager-not-working-at-all-language-not-loading but it doesn t seem to be quite the same issue since it worked and no changes were made in the configuration of TinyMCE and the paths on the website and even the whole server are exactly the same . Only the PHP configuration changed . Is there some kind of well-known issue upon 5.4 upgrade Please let me know what other information is necessary . P.S . Upgrading TinyMCE is not an option . Comment : Because of the nature of the problem unfortunately I could not wait more time and downgraded PHP which solved the problem . If anyone still has the answer on how to make it work with PHP 5.4 it would be very interesting to read it Comment : have you solved problem with php-5.4 version . I m experience the same problem . Comment : Unfortunately not still using PHP 5.3.x for the website in question . .. . Answer : as far as I know php-5.4 only supported by DLE 9.8 UTF-8 and DLE 10.0 so if you use one of those versions then the problem you have seems to be related to jQuery popup more than script issue but I can be easily wrong .", "Question : null .. . Answer : I am testing Datalife Engine on my PC . I want to run a Anime Video site . E.G : .. . .. . then post an article to Category A and B . So how can i get two URLs . Best Regards", "Question : Since two days I m trying to add some condition in which I compare the date-expiration of my promotion added with the date of today . If it s expired then I want to display on the text of promotion : promo expired. . .. . .. . So something like this : .. . .. . But no result How can I get the date of today Does datalife accept the PHP condition on her script Ps : I added my code to page shortstory . Comment : Fixed grammar . Put code in code markdown . .. . Answer : You cannot input php codes into tpl files . you must set tag in Engine Modules show.short.php near this line :", "Question : Since two days I m trying to add some condition in which I compare the date-expiration of my promotion added with the date of today . If it s expired then I want to display on the text of promotion : promo expired. . .. . .. . So something like this : .. . .. . But no result How can I get the date of today Does datalife accept the PHP condition on her script Ps : I added my code to page shortstory . Comment : Fixed grammar . Put code in code markdown . .. . Answer : Open file index.php newest versions engine modules main.php .. . .. . Find : .. . .. . Replace to : .. . .. . and .. . .. . in to main.tpl you can place php", "Question : I m using datalife-engine to make a blog and I m trying to tweak the default rating module . In DLE the default rating displays 5 stars and the number of votes . I want to add an actual score from 0 to 10 based on that info . In the SQL db the info is stored in the table dle post extras and it has two columns rating and vote num . So I need the final result to be rating dividing vote num in that specific id . For what i could figure out rating and rating that are used on the tpl files to display the rating info they are defined in show.full.php like this .. . .. . I don t want to change this part i need to be able to still use it . Can you help me how to query the db for that two values and dividing them one by each other and how to display them Oh the final score can only have one decimal number . The output can only be for ex : 7.1 8.6 4.2 etc etc .. . .. . EDIT : .. . .. . Ok so i want something like this .. . .. . and this value rounded to 1 decimal house .. . Answer : Ok solved it : .. . .. . and to use just use rating num on the template file", "Question : I m trying to change the looks of a DataLife Engine template and I m wondering if you could help me with alignment . I have some info displayed in a colum like this : .. . .. . This looks like .. . .. . I want them to display like this : .. . .. . The content of each cell can be different . E.g . if B has more contents I d like to adjust the columns as follows : .. . .. . So it would stretch down until all info is displayed . The class odd just changes the color of that cell . Here is the jsfiddle demo http : jsfiddle.net 2tEQX . Comment : make jsfiddle next time Comment : Oh sorry i never worked with it . I ll try putting it in and i ll let you know when it s edited . Comment : @oboshto i ve added the link . : .. . Answer : Look at jsfiddle http : www.jsfiddle.net oboshto 3cF3z Comment : Thank you : It was missing the vertical-align : top :", "Question : I have a problem on my datalife-engine post url . In some of the my posts I get The page isn t redirecting properly on firefox and other browser . It seems this problem became from htaccess properties . What can I do for solving this problem .. . Answer : First suggestion Consider an MVC framework to mitigate hairy .htaccess files like this . Second suggestion enable debugging and view the logs http : stackoverflow.com questions 669189 popular-techniques-to-debug-htaccess to track down where the redirect is occurring .", "Question : I have a problem on my datalife-engine post url . In some of the my posts I get The page isn t redirecting properly on firefox and other browser . It seems this problem became from htaccess properties . What can I do for solving this problem .. . Answer : Add this rule before all these rules : Comment : Unfortunately it does t work for me . Comment : Edited it can you try again .", "Question : null .. . Answer : I have problem with og : image in my website . og : image is displayed correctly only if I m logged into their website sharethis.com with my facebook account . If I m not logged in og : image picke some random image from my website . I m using DataLife Engine 10.1 and applied this script : .. . .. . Only when I m logged into their website image in tag xfvalute slika is displayed when I share news on facebook . When I logout and try to share again og : image choose some random image from website and display . Even if I look at source code the image path is taken correctly but not displayed on facebook . As previous said random image is shared on facebook-wall . Comment : stackoverflow.com questions 12404868 http : stackoverflow.com questions 12404868 changing-the-value-of-ogimage-with-jquery-click 12405500 12405500 Comment : I allready have working og : image but it s only displayed when you re logged into their websiste : sharethis.com . Something need to be changed into their script those hashtags securities .", "Question : i need some help with javascript and datalife-engine . I have a youtube video on my posts that are displayed calling on the .tpl files template files the tag .. . .. . Basicly this fetches the info that is on the field treyler on that specific post . In my case that value is the iframe code to the youtube video . I have been researching and i found this javascript code for what i want to use . and i call it by using .. . .. . I gave some random css just to define the class element to pop-up but for some reason this doesn t seem to work . Can you give me a example of this code working on a jsfiddle page please Comment : Have you tried changing element to pop-up to .element to pop-up Comment : I did now . What i basicly have is the trailer wrapped in the box that i defined for the CSS style . I guess i m calling it the wrong way.. . Comment : jsfiddle.net BHLmD 1 http : jsfiddle.net BHLmD 1 This is basicly what i have . As you know i can t use the tag xfvalue treyler in there so i have to use the iframe code itself .. . Answer : Ok by the looks of things you are having trouble with jQuery.bPopup.js http : dinbror.dk bpopup so here is a basic example which should hopefully point you in the right direction . HTML : .. . .. . JavaScript : .. . .. . CSS : .. . .. . In my example I have chosen to popup trailers via a button with a common class of trailerbutton . This allows me to use common JS code for all trailerbutton click events . I have also chosen to hide my YouTube iframe inside a div just below the button . Note that this has a class of hiddenTrailer which is hidden via the CSS . As you can see I store the ID of the trailer div I want to show for each button in the data-trailerid attribute . I also have a hidden popup placeholder called my-popup which again is hidden with CSS . When the user clicks the button the JS event is fired and the correct trailer is loaded into the content div in the ready and waiting popup based on that all important data attribute . Here is a JSFiddle http : jsfiddle.net vqJy4 . Note that I ve had to paste the entire jQuery.bPopup.min.js into the JavaScript window so scroll down to check out the real content . EDIT : .. . .. . Should you wish this to work for multiple posts you can do something like this : .. . .. . HTML : .. . .. . JavaScript : .. . .. . The updated line here is var trailerhtml this .next .hiddenTrailer .html - I am now using jQuery to select the next hiddenTrailer element i.e . - the one just under the button you pressed . See this updated Fiddle . http : jsfiddle.net vqJy4 3 Comment : It helps thank you : Comment : I got a problem i don t know if you can help . The button doesn t fetch individual content.. . what i mean is if the 1 post when i see the trailer of the 2 post it will be the same.. . But it should be another one Comment : @PedroLino - See my update - hopefully this will help . Comment : thank you for the patience . I ve tested but i don t think this will work in Datalife Engine . We call the posts using a tag named content . This tag retrieves the posts and uses a .tpl file that defines the style You could call it the default html for one post i guess . I m editing this file to put the code of the trailer . But i can only change one that will have to work on all : I ve puted the div trailercontainer but it doesn t work . Still getting the same for all Comment : Perfect 5 stars : D Thank you" ] }
[ "yes-answer-long", "yes-answer-short" ]
blogs
UNK_RELATION
pandoc@markup@109
pandoc -- pandoc is an open-source command-line universal document converter for converting between various @placeholder formats .
{ "confidence": [ 46.53219985961914, 46.306278228759766, 45.73685073852539, 45.35104751586914, 43.87059783935547, 42.200164794921875, 41.79228210449219, 41.76606750488281, 41.494232177734375, 41.24493408203125, 40.24434280395508, 40.153839111328125, 40.136993408203125, 40.136993408203125, 40.05433654785156, 40.027366638183594, 39.81629943847656, 39.20931625366211, 39.19905090332031, 39.19905090332031, 39.181758880615234, 39.181758880615234, 39.09910583496094, 38.94420623779297, 38.94420623779297, 38.67184066772461, 38.60832977294922, 38.53202819824219, 38.40562438964844, 38.40562438964844, 38.40562438964844, 38.38072204589844, 38.05501937866211, 37.90522003173828, 37.840003967285156, 37.840003967285156, 37.78571319580078, 37.76942443847656, 37.76942443847656, 37.76942443847656, 37.76942443847656, 37.595367431640625, 37.5767936706543, 37.45039367675781, 37.25308609008789, 37.086891174316406, 36.87100601196289, 36.81418991088867, 36.81418991088867, 36.621604919433594, 36.621604919433594, 36.621604919433594, 36.621604919433594, 36.621604919433594, 36.621604919433594, 36.621604919433594, 36.621604919433594, 36.621604919433594, 36.57347106933594, 36.57347106933594, 36.54819869995117, 36.43492126464844, 36.421653747558594, 36.421653747558594, 36.421653747558594, 36.30552291870117, 36.17433547973633, 35.79877853393555, 35.68745422363281, 35.68745422363281, 35.68745422363281, 35.68745422363281, 35.68745422363281, 35.675315856933594, 35.66931915283203, 35.66637420654297, 35.66637420654297, 35.66637420654297, 35.66637420654297, 35.66637420654297, 35.66637420654297, 35.552772521972656, 35.47969055175781, 35.47693634033203, 35.47693634033203, 35.448143005371094, 35.341304779052734, 35.247989654541016, 35.133575439453125, 35.133575439453125, 35.133575439453125, 35.133575439453125, 35.133575439453125, 35.133575439453125, 35.133575439453125, 35.133575439453125, 35.133575439453125, 35.133575439453125 ], "content": [ "Since version 1.2 knitr has a new function pandoc to convert markdown document to other formats via pandoc directly in R See here http : yihui.name knitr demo pandoc .", "Some limitations of docutils to note : .. . .. . Less output formats than Pandoc .", "I am writing a research paper in Markdown and use Pandoc as a converter between multiple file formats to cater to the preferences of different project partners .", "https : www.dokuwiki.org plugin : latexit pandoc can export Latex to all other formats", "There are a couple of filters available to make figure reference work with all output formats pandoc-fignos https : github.com tomduck pandoc-fignos and pandoc-crossref https : github.com lierdakil pandoc-crossref", "The first sed command-line before the Pandoc transformation could look like this : .. . .. . Then use Pandoc on source.i.md as usual to create source.tex .", "I am converting a MS Word-document .docx with Pandoc to LaTeX .tex .", "Pandoc is v1.13.2 pandoc-citeproc is v0.6 .", "I m writing a function that uses pandoc in R through the command-line .", "As Pandoc export is just a wrapper around Pandoc.convert you can use the options argument to pass command-line options to pandoc .", "It is a rather long list that you can browse by running man pandoc in the command-line and navigating to Variables set by pandoc section under TEMPLATES .", "One option is to add the caption manually http : johnmacfarlane.net pandoc README.html tables below the table or use my R Pandoc writer package http : rapporter.github.com pander : .. . .. . Then use Pandoc to convert this markdown file to HTML LaTeX docx odt or any other popular document formats .", "pandoc version 1.15.2.1 pandoc-citeproc version 0.8.1.3 .", "system which pandoc returns usr bin pandoc .", "Is there a simple solution using knitr pandoc linux command-line I m missing", "I use pandoc to convert docx to markdown with the following : .. . .. . pandoc -f docx -t markdown --extract-media pandoc-output filename -o pandoc-output filename full.md fullfile .. . .. . Which works OK .", "Yes as can be seen in the pandoc source code https : github.com jgm pandoc blob master src Text Pandoc Writers Docx.hs L782 the format should be : .. . .. . or", "This should be reported on the pandoc bug tracker http : github.com jgm pandoc issues .", "Pandoc variables can only be used in pandoc templates http : pandoc.org README.html templates not the document itself .", "Is it possible to use pandoc or pandoc-citeproc directly to render a bibliography and references in an HTML document", "in the pandoc Yaml header some pandoc option", "The tools used are pandoc-1.12.1 and pandoc-citeproc-0.2 .", "Pass it to your pandoc command with --csl or with a csl : line in the YAML title block .", "currently not supported natively for multiple output formats but there s a huge discussion.. . https : github.com jgm pandoc issues 813", "Thanks and yes the ability for pandoc to process different reference formats in the compiling step was the solution", "I saw on this StackOverflow question http : stackoverflow.com questions 2839304 convert-textile-markup-to-markdown a suggestion to use Pandoc to convert between formats .", "For pandoc 1.11", "Then I just must misunderstand the pandoc documentation http : johnmacfarlane.net pandoc README.html internal-links where it says Internal links are currently supported for HTML formats including HTML slide shows and EPUB LaTeX and ConTeXt .", "According to pandoc 1 http : johnmacfarlane.net pandoc README.html internal-links pandoc supports internal links in HTML slides .", "And then ran : .. . .. . pandoc was installed in .cabal bin pandoc Thus when I ran pandoc it was still seeing the old version .", "The pandocCompilerWithTransform M functions are for a direct Pandoc- Pandoc function - it will be applied to the Pandoc hakyll comes up with .", "Use this command : .. . .. . with this input : .. . .. . Pandoc s citation format is documented in the Pandoc User s Guide http : johnmacfarlane.net pandoc README automatic-citations .", "This is because pandoc really makes a distinction between metadata like the document title author etc and the document itself .", "I m not aware of such an option for pandoc to set the floating option of figures when converting a Markdown document to LaTeX .", "However the media is stored in : .. . .. . pandoc-output filename media .. . .. . I want the media to be stored in .. . .. . pandoc-output media filename .. . .. . Is this possible", "I ve read you can specify papersize by pandoc -V papersize : a4paper .. . https : github.com jgm pandoc issues 600 .", "It converts document formats .", "Try installing the newest pandoc and make sure you re using that with pandoc -v", "See Scripting with pandoc http : johnmacfarlane.net pandoc scripting.html for an explanation .", "I am using : Windows 7 - pandoc 1.17.0.2 - pandoc-citeproc 0.9.1.1", "I then use Pandoc with the --filter pandoc-citeproc option to manage the citations .", "I ve tried copy-pasting the definition of a table from the pandoc documentation into my source document but when running it through the pandoc program the resulting document is all crammed into one big table .", "Importantly if bibliography filename suffixes are recognized you can use different bibliography formats .medline is the ncbi s xml format and pandoc seems to put everything together : .. . .. . pandoc --bibliography bib.medline --bibliography R.citations.bib file.md -o file.docx", "This problem was permanently fixed in pandoc 1.12.3.1 http : johnmacfarlane.net pandoc releases.html pandoc-1.12.3-10-jan-2014 .", "I am struggling to convince pandoc to set the language for a listing automatically when converting from extended markdown pandoc to latex with the --listings argument .", "+1 The function looks good Do you have a recommended one-liner pandoc command for converting R Markdown to PDF", "I need to create a file and then run the pandoc terminal command .", "the CSL file is under the Pandoc folder AppData Local Pandoc", "pandoc-citeproc.exe : InvalidUrlException appdata local pandoc biomed-central.csl Invalid scheme", "It works for me with pandoc 1.11.1 .", "Your problem is not with Pandoc but with Slidy .", "pandoc version is 1.17.0.2-1 .", "Pandoc doesn t like that at all .", "And then use the odt in the pandoc conversion", "I d like to use pandoc .", "Must be a pandoc thing. .", "This is currently not possible with Pandoc .", "not Pandoc that this could be done", "The solution to this is to set launchPath to the Pandoc executable .", "It doesn t look like pandoc-markdown .", "There is a discussion on this topic at https : groups.google.com d msg pandoc-discuss nVk-uWY1in8 DxJecBenQn0J and there is an open pull request to add an option to pandoc-citeproc to suppress the bibliography at https : github.com jgm pandoc-citeproc pull 40 .", "I ve written a basic nanoc pandoc filter which calls pandoc directory without pandoc-ruby : .. . .. . You can just pass your own options to pandoc according to item : extension .", "Similarly pandoc templates have a body variable where the document text is placed .", "I am using pandoc to generate pdf document through latex .", "You can check by compiling your document with pandoc -t native", "Is it happening even if you use vim-pandoc-syntax https : github.com vim-pandoc vim-pandoc-syntax", "I m wondering if pandoc might be a little different though since it s mainly a command-line utility", "How can I prevent Pandoc from converting special-characters", "Note : I m using a pandoc-bin https : github.com toshgoodson pandoc-bin which is a node wrapper .", "And the Pandoc docs http : johnmacfarlane.net pandoc README.html didn t mention this option to control table of contents using the YAML header .", "Testing both solutions on windows computers that had pandoc and didn t have pandoc.. . it looks like both work .", "If none are matched prompt the user for the path to their Pandoc installation or provide a message on how to install Pandoc .", "For linking see github.com jgm pandoc issues 1117 https : github.com jgm pandoc issues 1117 not yet possible .", "If I clicked the .Rproj file to open RStudio it didn t recognize that pandoc was installed .", "There are also the pandoc-eqnos and pandoc-tablenos filters for equations and tables respectively .", "Isn t pandoc 1.17", "How are comments formatted in Pandoc", "Very new to pandoc .", "Can it be plugged to Pandoc", "Thank you for Pandoc as well .", "In the terminal : .. . .. . pandoc result : .. . .. .", "I m running pandoc like this : .. . .. . If a code line is longer than the pdf document width it just gets cutoff .", "1 . .. . .. . Emacs and Pandoc Markdown .. . .. . There is a Pandoc-Mode http : wwwuser.gwdg.de jkremer pandoc-mode.html for interacting with Pandoc through Emacs which can be combined with Markdown-Mode http : jblevins.org projects markdown-mode .", "The command I use is : .. . .. . The reference.docx is picked up by Pandoc from docs rendering and Pandoc renders mydoc.docx with the same styles as the reference doc .", "I could not find this anywhere but you can get pandoc to print the contents of the template to the console with this command : pandoc -D latex .. . .. . 4 .", "I m trying to use pandoc to generate a PDF from Markdown source .", "I think you need to add writerHtml5 True as can be seen in the pandoc source commandline args parsing https : github.com jgm pandoc blob 676b800993fffcc0e2ba44c88cfb6d552a37a136 src Text Pandoc.hs L292 and HTML writer https : github.com jgm pandoc blob 09b4f294bf4584f0010abc331b7e44bb26189865 src Text Pandoc Writers HTML.hs L316 .. .", "Pandoc-style citations .. . .. . Pandoc http : www.johnmacfarlane.net pandoc uses a Markdown format that supports automatic citations using keys from BibTeX files .", "I m using the following pandoc version :", "Now I have pandoc 1.17.0.2 .", "I m using Pandoc v . 1.12.0.2 .", "Or write a pandoc filter to remove the widths .", "For example : R knitr rmarkdown and pandoc .", "It seems that pandoc produced error because of it .", "Pandoc on Windows is not great at handling paths .", "The solution I suggested detects Pandoc .", "I am not using the pandoc executable .", "pypandoc and pandoc are installed correctly e.g ." ] }
{ "confidence": [ 64.24781799316406, 61.14838790893555, 59.11460876464844, 56.901702880859375, 55.555572509765625, 54.4608268737793, 54.40428161621094, 54.057777404785156, 53.008697509765625, 52.990875244140625, 52.358680725097656, 51.986854553222656, 51.62016296386719, 50.93150329589844, 50.89902877807617, 50.64255905151367, 50.622467041015625, 50.55922317504883, 50.51564407348633, 50.35948181152344 ], "content": [ "Question : I am trying to convert my libre office document into an ms-word document through the following command .. . .. . but I m getting the following errors .. . .. . What is the correct command to achieve this Comment : pandoc can write to odt but not read from it . See this list of input formats http : pandoc.org README.html description . You can use the built-in converter in libreoffice : libreoffice --convert-to docx CS141Exam.odt Comment : @scoa per your link pandoc shd be able to read it : It can read Markdown CommonMark PHP Markdown Extra GitHub-Flavored Markdown and subsets of Textile reStructuredText HTML LaTeX MediaWiki markup TWiki markup Haddock markup OPML Emacs Org mode DocBook txt2tags EPUB ODT and Word docx .. . Answer : You ve got pandoc trying to convert from -f markdown to -t docx . But you re giving it an odt file . So it s trying to read that odt as though it were markdown and choking because it isn t markdown . You want something closer to : .. . .. . but .. . odt isn t supported until pandoc 1.15.1 http : pandoc.org releases.html pandoc-1.15.1-15-oct-2015 so do pandoc -v to make sure you ve got a current version too . My Ubuntu stable repo gave me 1.12.4.2 -- I had to get the latest directly from pandoc https : github.com jgm pandoc releases latest but then this worked fine for me : .. . .. . Though I don t have MS Word so all I know is that example.docx looks fine in LibreOffice Writer Comment : You can also install pandoc from source to get the latest version pandoc.org installing.html http : pandoc.org installing.html . I would still recommend using libreoffice or openoffice stackoverflow.com questions 21845789 http : stackoverflow.com questions 21845789 how-to-convert-docx-to-odt-with-libreoffice-on-ubuntu-bash since pandoc will first translate the odt to native pandoc then back to docx losing some formatting in the process .", "Question : For me it is important that I can make references from within the main body of a text to figures and tables that are not part of the main document . For example can I define Figure xx where xx is the number of the figure as one prefix for all figures inside the main document and Suppl.Figure xx as a second prefix for figures that will not show up in the main part of a text I am writing a research paper in Markdown and use Pandoc as a converter between multiple file formats to cater to the preferences of different project partners . Moreover I have downloaded pandoc-crossref https : github.com lierdakil pandoc-crossref which is nice for general referencing needs but I have not yet found a way around this issue . .. . Answer : This is currently not possible with Pandoc . Internal references to figures are discussed https : github.com jgm pandoc issues 813 and will probably make it into Pandoc at some later time . For now I suggest to include LaTeX snippets instead assuming PDF is the final format . Comment : Thanks for the pointer . That saved me some time of fruitless research . I ll keep this question open for now hope you won t mind . Comment : @mattw I don t mind at all glad I could help . If things change one can always change the accepted answer if a better one comes up later . Anyway have fun with pandoc and try it s org-mode reader sometime", "Question : Since version 1.2 knitr has a new function pandoc to convert markdown document to other formats via pandoc directly in R See here http : yihui.name knitr demo pandoc . For example .. . .. . I wonder how to convert Markdown document See knitr-slides.md for MWE http : yihui.name knitr demo slides to HTML5 slides . Thanks .. . Answer : First add the following to your .Rmd document : .. . .. . Then use the command .. . .. . This will still create the file foo.html but will use the pandoc command .. . .. . to create it which will result in the output being in HTML5 slides . Comment : Thanks @David for your answer . But this does not work as expected . Output is in html format but these are not slides . Comment : I suspect you need to add the option -s or --standalone . Comment : @JohnMacFarlane : Yep I had just remembered the same thing . Comment : Thanks @DavidRobinson for your answer . If --pandoc s : S : i : mathjax : -- in the start of the .Rmd document these words disturb the title . Comment : @MYaseen208 : Then don t put it at the start- put it at the end or after the title .", "Question : I m currently writing a document in markdown and I d like to make a reference to an image from my text . I want to do that reference because after converting my markdown to pdf images get placed in one or two pages after and the document doesn t make any sense . UPDATE : .. . .. . I ve tried Ryan s answer http : groups.google.com group pandoc-discuss msg 4a42442657a96414 in that post http : groups.google.com group pandoc-discuss browse thread thread 33118abe7348d3c7 4a42442657a96414 4a42442657a96414 and I can t make it working . Apparently the code : .. . .. . should produce : .. . .. . instead I obtain : .. . .. . I ve noticed two problems : .. . .. . label image doesn t appear : no reference is created . autoref image becomes href image image : no cross reference is detected . And then when I convert that to pdf it obviously doesn t link-to the image . There s a link but it doesn t link-to anything . Any help would be much appreciated Comment : Have you tried the method mentioned in groups.google.com group pandoc-discuss msg 4a42442657a96414 http : groups.google.com group pandoc-discuss msg 4a42442657a96414 Comment : I ve tested it and it doesn t produce an autoref . weird.. . Comment : Maybe you should edit your question to include what you tried what you got and what you want so that it will be easier to help you . Comment : I ve edited my question .. . Answer : In pandoc you can even do : Comment : This only helps if you convert to TeX but not if you also want to create HTML from the same Markdown source . Comment : There are a couple of filters available to make figure reference work with all output formats pandoc-fignos https : github.com tomduck pandoc-fignos and pandoc-crossref https : github.com lierdakil pandoc-crossref", "Question : Seems like a simple problem : I have an assembled bibliography from pubmed in medline xml format . This works well with pandoc-citeproc to format citations and produce a list of references at the end of the document . I now want to integrate citations from R packages I am using and produce a unified bibliography in pandoc via pandoc-citeproc . pandoc-citeproc will write yaml and json bibliographies from my medline xml . I m ok with a possibly manual merge of R and medline citations before running pandoc . But I don t see anything in citation nor pandoc-citeproc that will transform to a medline and citation output to common format that can be used to create the unified bibliography . Thanks for any pointers you have . Comment : I don t know pandoc-citeproc . Can it handle mixed medline and BibTeX input If so toBIbtex citation .. . would get you partway there . Or can it convert medline to BibTeX Note that you do have to do some manual editing on the toBibtex entry . Comment : Thanks and yes the ability for pandoc to process different reference formats in the compiling step was the solution .. . Answer : 1 . I used the bibtex package to write R citations to a file .. . .. . library ggplot2 .. . library plyr .. . library limma .. . library bibtex .. . write.bib c bibtex ggplot2 plyr Biobase limma file R.citations.bib .. . .. . .. . 2 . pandoc accepts multiple --bibliography arguments . Importantly if bibliography filename suffixes are recognized you can use different bibliography formats .medline is the ncbi s xml format and pandoc seems to put everything together : .. . .. . pandoc --bibliography bib.medline --bibliography R.citations.bib file.md -o file.docx", "Question : I ve previously asked about the commands for converting R Markdown to HTML http : stackoverflow.com q 10646665 180892 . What is a good way to convert R Markdown files to PDF documents .. . .. . A good solution would preserve as much as possible of the content e.g . images equations html tables etc . . The solution needs to be able to be run from the command-line . A good solution would also be cross-platform and ideally minimise dependencies to make it easier to share makefiles and so forth . Specifically there are a lot of options : .. . .. . Whether to convert RMD to MD to HTML to PDF or RMD to MD to PDF or RMD to PDF .. . If using the markdown package in R which options to specify .. . Whether to use pandoc a package built into R or something else .. . .. . Here s an example rmd file https : gist.github.com jeromyanglim 2716336 that presumably provides a reasonable test of any proposed solution . It was used as the basis for this blog post http : jeromyanglim.blogspot.com.au 2012 05 getting-started-with-r-markdown-knitr.html . Comment : I believe pandoc should be the best way to go . It does not make much sense to me to build it into R and I do not think it is possible either it is written in Haskell . I have some very early work here : github.com yihui knitr-book https : github.com yihui knitr-book see two shell scripts knit and mdconvert.sh . It may be hard to come up a general approach since LaTeX is too flexible you can use all kinds of templates for pandoc . Comment : What is R Markdown rstudio.com ide docs r markdown http : www.rstudio.com ide docs r markdown Comment : markdowntopdf.com http : www.markdowntopdf.com this site is pretty good actually . However there is no latex support .. . Answer : rmarkdown package .. . .. . update 10 Feb 2013 : There is now an rmarkdown package available on github https : github.com rstudio rmarkdown that interfaces with pandoc . It includes a render function . The documentation makes it pretty clear how to convert rmarkdown to pdf among a range of other formats . This includes including output formats in the rmarkdown file or running supplying an output format to the rend function . E.g . .. . .. . .. . .. . Old Answer .. . .. . So a number of people have suggested that pandoc is the way to go . See notes below about the importance of having an up-to-date version of pandoc . Using pandoc .. . .. . I used the following command to convert R Markdown to HTML i.e . a variant of this makefile http : stackoverflow.com a 10969107 180892 where RMDFILE is the name of the R Markdown file without the .rmd component it also assumes that the extension is .rmd and not .Rmd . and then this command to convert to pdf .. . .. . .. . .. . I removed the reference in the example file which exports plots to imgur to host images . I removed a reference to an image that was hosted on imgur . Figures appear to need to be local . The options in the markdownToHTML function meant that image references are to files and not to data stored in the HTML file i.e . I removed base64 images from the option list . The resulting output looked like this http : cloud.github.com downloads jeromyanglim assorted-files example-r-markdown.pdf . It has clearly made a very LaTeX style document in contrast to what I get if I print the HTML file to pdf from a browser . Getting up-to-date version of pandoc .. . .. . As mentioned by @daroczig it s important to have an up-to-date version of pandoc in order to output pdfs . On Ubuntu as of 15th June 2012 I was stuck with version 1.8.1 of pandoc in the package manager but it seems from the change log http : johnmacfarlane.net pandoc releases.html that for pdf support you need at least version 1.9+ of pandoc . Thus I installed caball-install . And then ran : .. . .. . pandoc was installed in .cabal bin pandoc Thus when I ran pandoc it was still seeing the old version . See here for adding to the path http : askubuntu.com a 33443 2521 . Comment : Thanks for this answer . I just want to comment that my experience was that giving the .md file to pandoc rather than the .html file gave a better output . So it s worth to experiment . Comment : This is the closest I ve come to a good process as well . Is there any way of changing the figure text from plot chunk of .. . to something else Comment : pandoc is in version 1.12 even in my now outdated Ubuntu 13.04 .", "Question : My problem is similar to this post http : stackoverflow.com questions 18427446 how-to-maintain-html-internal-links-when-converting-with-pandoc but not identical . I somehow can t figure out the correct pandoc command-line parameters for maintaining resolving cross-document links when using a couple of interlinked HTML files as the input . Let s say I have two files chapter1.xhtml and chapter2.xhtml located in the home user Documents folder with the following contents : .. . .. . which contains a link-to the next document . and .. . .. . which contains a link-to the previous document . I used the following command-line parameters : .. . .. . And I got the following output : .. . .. . This problem also occurs when I select docx or latex pdf as the output format . I also tried to use relative links but nothing worked . What are the correct parameters for resolving cross-document links tl dr I.e . I don t want link references that contain the original paths I want them to point to the new output document . Comment : so you want the links to point to the markdown files I guess you ll have to write a pandoc filter http : pandoc.org scripting.html to change the links.. . Comment : Actually I don t need to convert to markdown I actually want to create docx pdf files with working hyperlinks . I merely chose markdown output to illustrate a problem that occurs with all output formats . pandoc should be able to parse and resolve all hyperlinks and make them point to the output file before generating the output file . Generating files with broken-links by default isn t very helpful . IMHO this is a major bug . Comment : if you know the name of the generated output files you can link-to them without any problem e.g . file2.pdf header-id .. . Answer : The problem is that your links contain absolute paths home user Documents chapter1.xhtml instead of relative ones chapter1.xhtml . I cannot imagine the ePUB file containing absolute paths and if it does the links in the file will only ever work correctly on your computer . So the solution will have to be fixing those ePUB files before feeding them to pandoc . Note that roundtripping from pandoc from markdown to epub and back to html works as expected : .. . .. . P.S . Using two input documents like : .. . .. . works as the pandoc README states : .. . .. . If multiple input files are given pandoc will concatenate them all with blank lines between them before parsing . So for the parsing done by pandoc it sees it as one document.. . so no wonder that cross-file links won t work . Comment : Thanks for your feedback . However your idea won t work because href ch001.xhtml foo is an invalid html URI . Comment : @NemoXXX in HTML5 it s valid.. . mathiasbynens.be notes html5-id-class https : mathiasbynens.be notes html5-id-class Comment : Since both documents are in the same folder I tested it without absolute path names . E.g . p a href chapter1.xhtml Previous chapter a br p and p a href chapter2.xhtml Next chapter a br p and I got the link format that you mentioned which appears to be indeed valid in HTML5 but it s not valid in DOCX ODT or LaTex PDF and will cause broken-links . Unless I get a better suggestion I ll simply switch to Calibre https : en.wikipedia.org wiki Calibre 28software 29 which doesn t break links . Comment : I just generated a LaTeX-PDF from the ePUB I generated with pandoc see in the answer and the link worked : pandoc foo.epub -o foo.pdf Comment : Unfortunately it didn work for me . BTW I used XeTex . So maybe this is a LaTex configuration issue . Can you please post the original ePub and the generated pdf file to a one-click file hoster dropbox and indicate the exact command-line parameters that you used Also include any customized LaTex templates or other non-standard files that were used to generate the output . If I can reproduce your results I ll immediately close the question and award you the 50 bounty points .", "Question : Mainly I m looking for a tool which supports batch conversion to PDF HTML from some markup language reST Markdown Textile but.. . there are few conditions : .. . .. . Markup language has to be reST Markdown or like them .. . there should be simple editor with preview for example Gedit3 + Markdown plugin or something like that .. . there has to be batch converter between many formats - just like Pandoc but with full markup language support .. . .. . Pandoc is great but unfortunately it doesn t support reST directives ex . ..container .. . .. . Right now I can t decide which markup lang is the best for me . I was using Markdown because I had quite simple Gedit s plugin to preview output during writing . Right now I m testing Sphinx because I have to find a tool to create good documentation and Sphinx uses reST . reST also supports custom directives and today I found out that container directive would help me a lot . I ve never tried Textile . I m trying to write almost all documents in some markup language - I d like to avoid DOC DOCX pure Latex but still I can t find the one . Some of them supports tables other with extensions another ones has no simple editor with preview etc . .. . Answer : The reference Python implementation of reStructuredText is docutils http : docutils.sourceforge.net which obviously has full support for the reStructuredText language specification and which Sphinx is in fact built upon . It is not as versatile as Pandoc but if you are looking for a full implementation of reStructuredText and are already using Sphinx then docutils may be a good bet . Some limitations of docutils to note : .. . .. . Less output formats than Pandoc . Only supports reStructuredText as an input format Pandoc supports reStructuredText markdown HTML LaTeX etc . One way only conversion Pandoc for example can convert say reStructuredText to HTML and then HTML to reStructuredText docutils can only perform the former conversion . I have never come across a markdown or reStructuredText editor with a built-in preview window . Docutils is very easy to script so should be more than suitable for batch-processing of text-files . I have seen a number of websites written in reStructuredText which use a simple makefile rule to build the HTML and deploy to a server .", "Question : I am using the IEEE citation style from http : www.zotero.org styles ieee with Pandoc in a project . When I cite a reference it shows up as 1 in the text whereas I would like it to show up as 1 . I have located this fragment in the ieee.csl file that I assume I need to edit : .. . .. . I have two questions : .. . .. . How do I make it show the square brackets on single citations How do I make it link-to the citation at the end of the document Comment : For linking see github.com jgm pandoc issues 1117 https : github.com jgm pandoc issues 1117 not yet possible . Comment : How are you citing references The style should already include brackets see the brackets on line 218 in your snippet . Comment : @RintzeZelle : It s starting to work now as of 5 days ago.. . -- see link you linked to : .. . Answer : For linking back to the citation this is starting to work now . See .. . .. . https : github.com jgm pandoc issues 1117 which says : .. . .. . I have just pushed a change to pandoc-citeproc that gives you clickable years which link-to the corresponding bibliography entry in author-year citation formats . Note that this does not yet work with numerical citation styles . JGM .. . .. . This will likely arrive in the next major release of Pandoc v1.14 . Comment : Thanks for the update . I will give it a try as soon as the homebrew distribution gets updated .", "Question : I am using markdown pandoc for scientific writing I know I can change margins of the final pdf using .. . .. . Set margin size when converting from Markdown to PDF with pandoc http : stackoverflow.com questions 13515893 set-margin-size-when-converting-from-markdown-to-pdf-with-pandoc .. . .. . but very often the journals require double lines and line numbers in submitted manuscripts the question is how to change these I don t know much about LaTex so I am lost in that jungle . Thanks Comment : LaTeX provides the setspace package http : ctan.org pkg setspace as well as lineno http : ctan.org pkg lineno . I m unfamiliar with Pandoc s interface or usage so I m of no help there . If this turns out to be a purely TeX LaTeX problem consider flagging your own post and request migration to TeX.SE http : tex.stackexchange.com . Don t repost there rather flag for migration . .. . Answer : You ll need to use a custom LaTeX template . First use pandoc to create a copy of the default template : .. . .. . Now edit this template . Somewhere in the preamble between documentclass .. . and begin document insert the lines .. . .. . Then to use your custom template : Comment : To add line numbers I read the lineno package documentation but can t figure out how to add them .", "Question : Only by chance did I see an example document using the toc : true line in their YAML header options in a Markdown file to be processed by Pandoc . And the Pandoc docs http : johnmacfarlane.net pandoc README.html didn t mention this option to control table of contents using the YAML header . Furthermore I see somewhat arbitrary lines in example documents on the same Pandoc readme site . Main question : .. . .. . What Pandoc options are available using the YAML header Meta-question : .. . .. . What determines the available Pandoc options that are available to set using the YAML header Note : my workflow is to use Markdown files .md and process them through Pandoc to get PDF files . It has hierarchically organized manuscript writing with math . Such as : Comment : If you can read Haskell then the answer is available at github.com jgm pandoc search utf8 E2 9C 93 q yaml https : github.com jgm pandoc search utf8 E2 9C 93 q yaml Comment : @xmojmr I might be able to learn it . But I was hoping for a natural language explanation or overview . E.g . a description of the architecture or something . Thanks though I ll look at it Comment : I cannot read Haskell myself and don t want to learn it and I don t know about credible description of internal pandoc s behavior other then its source code so I don t know what is the answer just tried to be helpful until pandoc s author stackoverflow.com users 1261777 john-macfarlane http : stackoverflow.com users 1261777 john-macfarlane shows up .. . Answer : It is a rather long list that you can browse by running man pandoc in the command-line and navigating to Variables set by pandoc section under TEMPLATES . The top of the list includes the following among many other options : .. . .. .", "Question : Environment : Win 7 R 3.2.3 RStudio latest .. . .. . I have a knitr .Rmd document to be an article where I want to label sections as in .. . .. . and then reference that section so it appears in the text as In Section 3.2 I discuss .. . I can see that something like this is possible using bookdown https : bookdown.org and there is some mention of Internal links in the pandoc documentation http : rmarkdown.rstudio.com authoring pandoc markdown.html links but I can t make it work . I recall seeing something on this in RStudio-related docs or blogs but can t find it now . I tried various things like .. . .. . However the PDF produced renders this just as .. . .. . The YAML header I m using is : .. . .. . There aren t so many such cross-references that I can t do them manually but if I m missing something about syntax having them done by pandoc would make it easier . Comment : currently not supported natively for multiple output formats but there s a huge discussion.. . https : github.com jgm pandoc issues 813 Comment : this might be useful : rpubs.com ajlyons autonumfigs https : rpubs.com ajlyons autonumfigs Comment : You may try bookdown : bookdown.org https : bookdown.org Comment : You could also try pandoc-crossref https : github.com lierdakil pandoc-crossref works with every output . .. . Answer : Ah since I m generating LaTeX I can just use it to do the cross-references while the label s are generated by markdown pandoc .. . .. . In the preamble .. . .. . then in the text", "Question : Main Question : Is there a way to flag Pandoc to turn off appending the bibliography but still have it insert the correct inline citations .. . .. . I am writing a Markdown Knitr document that has a main file article.Rmd and several child files that are included in the main file using Knitr s child chunk option . The child files are basically sections of the main article file just separated for easier editing and management . Throughout these child section files I use the citations http : johnmacfarlane.net pandoc README.html citations in the Markdown text e.g . @author title 1999 to cite various papers . The main file and each child file has a YAML header that provides the BibTex file location e.g . : .. . .. . Including this YAML entry more than once is not a problem see the readme on metadata-blocks http : johnmacfarlane.net pandoc README.html metadata-blocks . When I compile the entire document using Knitr a big Markdown document is created . I then use Pandoc with the --filter pandoc-citeproc option to manage the citations . Pandoc inserts nice citations and appends a list of the cited papers as references bibliography . Cool . As I write and edit the individual child sections I use the same citation compiling which produces the correct inline citations but unfortunately also appends the references at the end even though it s just a section of the larger document . I would like to compile these small child sections with inline citations but without the bibliography at the end . .. . Answer : There is a discussion on this topic at https : groups.google.com d msg pandoc-discuss nVk-uWY1in8 DxJecBenQn0J and there is an open pull request to add an option to pandoc-citeproc to suppress the bibliography at https : github.com jgm pandoc-citeproc pull 40 . In conclusion pandoc currently doesn t allow the bibliography to be suppressed . However it s relatively easy to create a custom CSL style that doesn t produce a bibliography . You just have to delete the cs : bibliography child element see http : citationstyles.org downloads specification.html child-elements-of-cs-style .", "Question : Only by chance did I see an example document using the toc : true line in their YAML header options in a Markdown file to be processed by Pandoc . And the Pandoc docs http : johnmacfarlane.net pandoc README.html didn t mention this option to control table of contents using the YAML header . Furthermore I see somewhat arbitrary lines in example documents on the same Pandoc readme site . Main question : .. . .. . What Pandoc options are available using the YAML header Meta-question : .. . .. . What determines the available Pandoc options that are available to set using the YAML header Note : my workflow is to use Markdown files .md and process them through Pandoc to get PDF files . It has hierarchically organized manuscript writing with math . Such as : Comment : If you can read Haskell then the answer is available at github.com jgm pandoc search utf8 E2 9C 93 q yaml https : github.com jgm pandoc search utf8 E2 9C 93 q yaml Comment : @xmojmr I might be able to learn it . But I was hoping for a natural language explanation or overview . E.g . a description of the architecture or something . Thanks though I ll look at it Comment : I cannot read Haskell myself and don t want to learn it and I don t know about credible description of internal pandoc s behavior other then its source code so I don t know what is the answer just tried to be helpful until pandoc s author stackoverflow.com users 1261777 john-macfarlane http : stackoverflow.com users 1261777 john-macfarlane shows up .. . Answer : You can see the documentation of pandoc for a clue : http : pandoc.org getting-started.html .. . .. . But to know exactly where it will be used you can look for templates sources of pandoc : https : github.com jgm pandoc-templates .. . .. . For example for the html5 output the file is : https : github.com jgm pandoc-templates blob master default.html5 .. . .. . Here s an section of the code : .. . .. . As you can see it has title-prefix and pagetitle . You can look the documentation but the best solution is to look for the source code of the version you are using .", "Question : I am using markdown pandoc for scientific writing I know I can change margins of the final pdf using .. . .. . Set margin size when converting from Markdown to PDF with pandoc http : stackoverflow.com questions 13515893 set-margin-size-when-converting-from-markdown-to-pdf-with-pandoc .. . .. . but very often the journals require double lines and line numbers in submitted manuscripts the question is how to change these I don t know much about LaTex so I am lost in that jungle . Thanks Comment : LaTeX provides the setspace package http : ctan.org pkg setspace as well as lineno http : ctan.org pkg lineno . I m unfamiliar with Pandoc s interface or usage so I m of no help there . If this turns out to be a purely TeX LaTeX problem consider flagging your own post and request migration to TeX.SE http : tex.stackexchange.com . Don t repost there rather flag for migration . .. . Answer : In more recent version of Pandoc you can use a YAML header http : pandoc.org README.html extension-yaml metadata block and include a bunch of metadata in that instead of using options on the command-line . So for instance you can put this at the top of your .md file : .. . .. . and pandoc will read those options and apply them automatically .", "Question : With Sphinx-doc http : sphinx-doc.org you can create a bunch of ReStructureText files with an index.rst file which includes a table of contents macro that auto generates a table of contents from the other included files and a conf.py that acts as a compilation config . You can then compile the lot into a single python-doc-style site complete with index navigation tools and a search function . Is there any comparable tool for markdown preferably pandoc-style markdown Comment : Is there also some markdown documentation tool which can produce PDF and ePub as easy as Sphinx does Comment : @white gecko Edit in Markdown http : daringfireball.net projects markdown syntax overview convert to XHTML with pandoc http : johnmacfarlane.net pandoc README.html and lastly convert to PDF with PrinceXML http : www.princexml.com which you may or may not use for free see CSO license http : www.princexml.com license . Again check out my website http : hamwaves.com cl-ocfd en index.html for details . There is an open-source alternative called wkhtmltopdf http : wkhtmltopdf.org which is not good at page breaking though . .. . Answer : Pandoc http : johnmacfarlane.net pandoc README.html the GNU make http : www.gnu.org software make and sed http : www.grymoire.com Unix Sed.html commands sprinkled with some CSS http : reference.sitepoint.com css are all you need to fully automate the creation of a static website starting from Markdown http : daringfireball.net projects markdown syntax overview . Pandoc offers three command-line options which can provide navigation between pages as well as the creation of a table of contents TOC based on the headings inside the page . With CSS you can make the navigation and TOC look and behave the way you want . -B FILE --include-before-body FILE .. . .. . Include contents of FILE verbatim at the beginning of the document body e.g . after the tag in HTML or the begin document command in LaTeX . This can be used to include navigation bars or banners in HTML documents . This option can be used repeatedly to include multiple-files . They will be included in the order specified . Implies --standalone . .. . --toc --table-of-contents .. . .. . Include an automatically generated table of contents . .. . --toc-depth NUMBER .. . .. . Specify the number of section levels to include in the table of contents . The default is 3 which means that level 1 2 and 3 headers will be listed in the contents . As a matter of fact my personal website is built this way http : hamwaves.com gedit en index.html . Check out its makefile http : hamwaves.com pandoc article en makefile for more details . It is all free-libre open-source licensed under the GNU GPL version 3 http : www.gnu.org licenses gpl.html . Comment : Er.. . those TOC options relate to the headers within a markdown file . I m talking about a TOC across multiple-files each a separate page . Your personal website is a single page.. . Comment : @naught101 I have edited my answer . Navigation between pages can easily be handled with the --include-before-body FILE option . Comment : No you re missing the point . Sphinx-doc lets you write multiple pages as separate files and then generates an HTML file for each page with a TOC in the side bar as well as a full-page TOC html file that doesn t have an .rst source but it automatically generated . That s what I m asking about . Comment : @naught101 Then Sphinx-doc is indeed doing more than some of the engines Gouda Rippledoc .. . cited by the original poster . Comment : on4aa : I am the OP . I see the lack of clarity in the question though and have edited it .", "Question : I have created an RMarkdown file in RStudio and managed to knit it with knitr into an HTML and .md file . Next I used pandoc to convert the .md file into a PDF file I get an error if I try and convert from the .html file . However the PDF that is produced have massive margins like this http : johnmacfarlane.net pandoc demo example13.pdf . How can I get pandoc to produce something with smaller margins I have looked through the pandoc user guide but haven t found anything useful . .. . Answer : In more recent versions of pandoc you can set a number of parameters in the YAML header http : johnmacfarlane.net pandoc demo example9 pandocs-markdown.html extension-yaml metadata block . You can set the geometry here for example : .. . .. . When pandoc converts it to a pdf it should have correct margins . Comment : Related source : rmarkdown.rstudio.com pdf document format.html http : rmarkdown.rstudio.com pdf document format.html Comment : This is a much better solution It is quite useful when you are automatically building the document in an editor like Kile or Sublime Text 2 3 and changing command-line-arguments would be a pain .", "Question : I am trying to convert docx to markdown using pandoc but I am unable to figure out how to override specific cases while converting to markdown using pandoc . I am using command .. . .. . But the equations output is still coming in the form of latex and not MathMl .. . .. . The equation output is of the form .. . .. . I want to override some other markdown using my custom Markdown Grammar which . Any help will be appreciated . Any other libraries or sources can also be suggested . .. . Answer : You are converting to markdown and the --mathml option is only for HTML output . Math in Pandoc Markdown http : pandoc.org README.html math is basically LaTeX Math between dollar signs . Comment : Yes i read it in the doc --mathml is not supported for docx but i want to convert equations it to mathml Is it possible to customize my markdown I have read filters but they modify the value and not the end conversion . Comment : yes with pandoc filters http : pandoc.org scripting.html you can modify the document AST . so there you could change the math parts to normal text or raw html before it s rendered to markdown by the markdown writer .", "Question : I ve been trying to use Pandoc to convert some Markdown into a PDF file . This is a sample that Pandoc will not convert for me : .. . .. . That s just something I grabbed from the top of the wikipedia database dump . Pandoc doesn t like that at all . This is the error message it gives me : .. . .. . Is there a command switch I can give it to get around this I tried following the advice to do something like this but it failed : .. . .. . Update Before following John s advice below see this https : groups.google.com forum fromgroups topic pandoc-discuss urzu6dQU R4 . Update 2 This is the command that ultimately got it working . Hopefully this will help someone : .. . .. . pandoc test2.md -o test2.pdf --latex-engine xelatex --template my.latex --variable mainfont DejaVu Serif --variable sansfont Arial .. . .. . And this is the contents of my.latex : .. . Answer : Use the --latex-engine xelatex option . Comment : That created the document but now I have a bunch of blank characters where the greek word is supposed to be . I think it is not recognizing the characters in question . Comment : The blank characters show up when you have a font selected which does not contain greek glyphs . Use the --variable mainfont .. . option on the command-line . See johnmacfarlane.net pandoc demos.html http : johnmacfarlane.net pandoc demos.html Example 14 Xe Latex", "Question : I am wondering if it is possible to use the table captions like figure captions using knitr in .Rmd file I saw options for figure caption but I couldn t see the option for the table caption . I also want to remove the message such as latex table generated in R 2.15.2 by xtable 1.7-0 package Wed Mar 06 15 : 02 : 11 2013 . I used X table to create the table : The sample code I used is as follows : .. . .. . The table I got after processing through pandoc is as follows : .. . .. . enter image description here http : i.stack.imgur.com lX0Ya.png .. . .. . I tried to use message FALSE in Rmd file to get rid of the message shown above . I also want to know if it is possible to automatically add the caption for table in Rmd By caption I mean something like below this is for the figure and the figure number is automatically updated . This output is a snapshot from the pdf generated by pdf using the markdown file created by knitr . enter image description here http : i.stack.imgur.com pfinJ.png .. . .. . Thank you . Comment : I think that much of the answers you seek are through using xtable and print.xtable . Look at type and caption Comment : for the LaTeX comment the issue has been solved in xtable see github.com yihui knitr-book issues 3 https : github.com yihui knitr-book issues 3 the new version of xtable is on CRAN now Comment : @ Yihui : I upgraded my xtable from CRAN and now I have latest version and I am still getting the same output . I used the code pre r table2 results asis message FALSE echo FALSE library xtable print xtable head iris pre . Did I do anything wrong Comment : @Jdbaba read the documentation print.xtable and see the comment argument Comment : So here is the solution : print xtable yourtable comment getOption xtable.comment FALSE .. . Answer : If you do not insist on using a LaTeX HTML-only solution with the otherwise awesome xtable package you might achieve the same with Pandoc s markdown . One option is to add the caption manually http : johnmacfarlane.net pandoc README.html tables below the table or use my R Pandoc writer package http : rapporter.github.com pander : .. . .. . Then use Pandoc to convert this markdown file to HTML LaTeX docx odt or any other popular document formats . Comment : I m trying to use your nice pander package but couldn t find an option to control the position of a table s caption by default the position is below the table but I need above . I looked through documentation and on the Web but to no avail . Any advice I understand that I can produce caption independently as R Markdown text but then there is an issue of margin between the caption and the table . It would be nice to be able to specify both the position above below and the margin . Comment : @AleksandrBlekh having the caption above the table is not a valid markdown syntax it should stay below the table . On the other hand you can render that to be above the table image in e.g . HTML or LaTeX . For the prior use JavaScript for the latter I suggest the caption and floatrow LaTeX packages like floatsetup table capposition top Comment : Thanks for fast reply and nice suggestions One of the reasons I m trying to use pander and R Markdown format is to be able to produce multi-format output as needed . Going the format-specific route is not optimal in this regard no single codebase I actually implemented some stuff in a LaTeX-specific way and it took a while just for that . Can t imagine spending more time to support HMTL etc . Actually I found a solution : I need pandoc 1.13+ which contains this fix caption should be on top : search for table captions above tables here : johnmacfarlane.net pandoc releases.html http : johnmacfarlane.net pandoc releases.html . Comment : @AleksandrBlekh This fix sounds great but it seems to be LaTeX-only to me . RStudio has released some binaries : s3.amazonaws.com rstudio-buildtools pandoc-1.13.1.zip https : s3.amazonaws.com rstudio-buildtools pandoc-1.13.1.zip Anyway you can still use markdown with multiple output formats and captions above tables images but this way you have to develop your custom templates for HTML PDF etc . This is a one-time investment that you can use for all future reports so besides the above mentioned one-liner LaTeX call you d need also another one-liner JavaScript call in your custom HTML template to move caption above the objects . Comment : @AleksandrBlekh the changelog you linked above has the quote part below the LaTeX writer section so I think this update has nothing to do with the other output formats . Also I think the markdown specification of captions to have it below the table has not changed either . About templates : probably I should have written stylesheets instead see e.g . --template and -H at johnmacfarlane.net pandoc README.html general-writer-options http : johnmacfarlane.net pandoc README.html general-writer-options In short : you can override the bundled design of Pandoc created documents ." ] }
[ "yes-answer-long", "yes-answer-short" ]
markup
UNK_RELATION
functional-java@open-source@45
functional-java -- functional-java is is an @placeholder library to learn and implement functional-programming concepts in java .
{ "confidence": [ 60.81672286987305, 60.41197204589844, 53.30689239501953, 50.502742767333984, 49.703304290771484, 49.703304290771484, 49.4090576171875, 49.17583465576172, 46.821754455566406, 46.5380744934082, 44.82203674316406, 44.82203674316406, 43.49045944213867, 43.49045944213867, 43.418148040771484, 42.59508514404297, 42.24002456665039, 40.75360107421875, 40.74085235595703, 40.38738250732422, 40.24671173095703, 40.24671173095703, 40.24671173095703, 39.88119888305664, 39.78019332885742, 39.78019332885742, 39.33714294433594, 39.33714294433594, 38.6417121887207, 38.33837890625, 38.24699783325195, 38.24699783325195, 38.24699783325195, 37.51226043701172, 36.968204498291016, 36.64199447631836, 36.64199447631836, 36.29603958129883, 35.867671966552734, 35.313079833984375, 35.301048278808594, 34.22293472290039, 33.24787139892578, 32.57926559448242, 32.57926559448242, 32.51658248901367, 31.715551376342773, 31.385217666625977, 30.805980682373047, 30.805980682373047, 30.805980682373047, 30.2103271484375, 30.2103271484375, 29.715835571289062, 29.592483520507812, 29.44784927368164, 29.016279220581055, 28.969526290893555, 28.75226402282715, 28.34195327758789, 28.15532684326172, 27.857229232788086, 27.812973022460938, 27.812973022460938, 27.335803985595703, 27.335803985595703, 26.24565887451172, 26.24565887451172, 26.24565887451172, 26.24565887451172, 26.11251449584961, 25.405223846435547, 25.405223846435547, 25.405223846435547, 24.96686553955078, 24.789730072021484, 24.176029205322266, 24.176029205322266, 24.176029205322266, 23.7906551361084, 23.767330169677734, 23.767330169677734, 23.58685302734375, 23.530214309692383, 23.530214309692383, 23.530214309692383, 23.405506134033203, 23.405506134033203, 23.405506134033203, 23.405506134033203, 23.405506134033203, 23.405506134033203, 22.991230010986328, 22.1267147064209, 22.0816593170166, 22.0816593170166, 21.628833770751953, 21.530498504638672, 21.530498504638672 ], "content": [ "To use the functional-java library or to produce java code", "I am playing with functional-programming and in particular with Functional Java .", "One such case is fj.Effect of Functional java .", "But let s face it Java is not a functional language even with all of the functional-programming libraries that exist .", "Functional Java does not require BGGA but does support it .", "Guava s goal is not to provide functional idioms in Java .", "Since Guava is more of a general purpose library that happens to have functional idioms and Functional Java is purely about implementing functional idioms in Java Functional Java sounds like a better fit with probably a more complete set of FP-like features .", "Even so I think it would be most valuable for most students to learn how to do functional-programming in straight Java .", "It does not even seem that earlier versions of functional Java are available from maven .", "But an open-source project called functional-java http : code.google.com p functionaljava has implemented functional features including closures .", "I also spent a bit more time looking at Functional Java .", "How will the students appreciate the high noise to signal ratio in functional Java", "Trying to do full fledged functional-programming in java would be clumsy and inelegant at best .", "Just curious : why would you prefer Java over Scala for teaching functional-programming", "Functional Java does not requires that you use closures -- the source compiles with any Java 1.5 compiler .", "http : hamletdarcy.blogspot.com 2008 12 java-7-update-from-mark-reinhold-at.html .. . .. . The Functional Java library is thoroughly tested and actively developed .", "Although there are lots of functional languages that run on the JVM I d like to stick to something that looks as much like Java as possible i.e . something that will be most compatible conceptually and syntactically with the functional features expected in Java 8 .", "Ideally I d like to lift this from the functional Java library but the concept eludes me thus far .", "I was reading the following question - How safe would it be to use functional-java to add closures to a Java production project http : stackoverflow.com questions 766745 how-safe-would-it-be-to-use-functional-java-to-add-closures-to-a-java-production and I had been thinking of using the Functional Java project http : functionaljava.org as well in my current project .", "In my opinion if you must use Java you should be using something like Functional Java to make your life easier .", "I would like to use functional Java 3.0 http : functionaljava.org download in a maven project .", "I have copied the functional-java code in a maven repository project called externals and it compiles fine .", "In functional-java I expected the following to create an infinite stream : .. . .. . But it stops after one full enumeration .", "This leads to heavy and ugly code Java 6 is definitely not the best for this : .. . .. . Is there a more idiomatic why to handle my use-case in functional-programming", "Yes it does have some stuff that will allow you to program in a functional-style way but it is not really especially focussed on functional-programming .", "If you re trying to teach functional-programming it s probably better to stick to a more or less pure functional language .", "I was wondering what are Stack Overflow s users experiences with using the Functional Java project", "http : stackoverflow.com questions 5328007 why-doesnt-option-have-a-fold-method but for functional-java .", "FunctionalJava uses the functional-programming FP approach - data is immutable .", "I should also point out the preceding sentence in that article : As of Java 7 functional-programming in Java can only be approximated through awkward and verbose use of anonymous classes .", "Functional Java is far more complete than Google collections and just happens to allow you to use it well with BGGA .", "I d like to use either Functional Java or Guava or less likely Scala in a course I ll be teaching .", "It looks like Functional Java http : functionaljava.org and Guava http : code.google.com p guava-libraries are the best candidates .", "Any functions added after the future is complete happen synchronously .. . .. . So this seems to be a design pattern from functional-programming that we re jamming into Java .", "For instance in Functional Java there is the Effect http : functionaljava.googlecode.com svn artifacts 3.0 javadoc fj Effect.html class .", "When we teach functional-programming as a paradigm we use Haskell .", "The position of Guava on functional-programming is summed up by Kevin Bourrillion : .. . .. . The syntax sucks .", "I am trying to understand reasons behind different Option Optional semantics in probably 3 most used implementations in Java ecosystem : Java 8 Functional Java and Guava .", "Functional Java s collections implement functors as well as monads cofunctors and comonads .", "Ok so I have points which is a List GeoPoint .. . .. . The following piece of code is written using java-8 functional API .", "It seems to have nice features for functional approaches .", "Java just hasn t caught up yet to the FP functional concurrency revolution albeit it has made further strides than most languages .", "Also I know the functional features are seen as stop gap until Java 8 but you have to realize that Java 8 is some time off and adoption of it will not be immediate .", "A more functional style of programming discourages mutable state which eliminates a large class of bugs .", "In real functional-programming languages you do that with flip f b a f a b and then flip myfunc b", "From the Functional Explained http : code.google.com p guava-libraries wiki FunctionalExplained Guava wiki page : .. . .. . Excessive use of Guava s functional-programming idioms can lead to verbose confusing unreadable and inefficient code .", "unfortunately I am working on a codebase that s already using this functional-java heavily and I have to finish some code by tomorrow : once that s done I will have more time to go back and change everything", "Code written in a functional style is more concise hence more clear .", "I understand the basic bind syntax for Option with functional-java as .. . .. . That works well for single input functions but I can t figure out how to use multiple input functions like F2 F3 etc .", "Lurking I discovered the State Monad...but I am kind of scared to see what it is going to happen if I apply a State Monad on top of a IO Monad in Functional Java .", "I actually took great inspiration from Functional-Java s DB combinators https : github.com functionaljava functionaljava tree master core src main java fj control db to solve similar problems .", "If appicable what can be considered most pure or correct from functional-programming point of view", "I know one of the goals of pure functional-programming is to eliminate mutability and therefore to preclude side-effects .", "Leaning too heavily on functional idioms makes not too much sense up to Java 7 as the overhead is too high see vertical problem http : cr.openjdk.java.net briangoetz lambda lambda-state-4.html .", "As stated above Guava is just a Java library -- a Java 5 compatible library even as of release 11 .", "In that case you can simply say : .. . .. . And using NIO2 for getting the directory entries it may look like : .. . .. . .. . .. . If you want to stay within the functional-java API a solution can look like : .. . .. . The key point is that you don t need shouldn t re-implement the way String s are compared .", "It would also interesting to know how this is handled in functional languages that allow nulls .", "I was reading the source code of the Functional Java library and noticed this : .. . .. . I was wondering why they don t always return a singleton parameter specially because of None s equality implementation : .. . .. . So I did a search at Functional Java s forum and I found this question and answer : .. . .. . Is it possible to set this up so it doesn t create a new None for every call to none can we use a single object to represent None in all cases", "In the Jedi FP library there is the Command http : jedi.codehaus.org javadoc jedi functional Command.html interface .", "At least I think they re monads I m still not comfortable with that term and whether or not I m using it correctly.. . I m going off of the Atlassian Fugue https : bitbucket.org atlassian fugue library I tried looking into the Functional Java http : functionaljava.org library and it s much bigger than I m ready for at the moment .", "It s pretty sucky news as this means there is a whole lot of work ahead if you want to port this or any other functional library to imperative world .", "As for the other two it depends how the author defined null values : .. . .. . java-8 defined null value to be the absence of value thus you get an Optional.empty .. . functional-java seemed to have defined null as a possible value distinct from no value .", "At the same time this stuff is now has always been and will always be nothing but a stopgap measure until the right language change can come along at which time we can finally really decide on the optimal syntax and have functional-style programming start actually making lives better in Java for once .", "Okay so I m a long time OO developer trying to get into this newfound world of functional-programming - at the very least as it pertains to this I m trying to code like null and throw don t exist in Java land by playing around with Option and Either monads .", "Have a look at the Functional Java s class fj.Function it contains functions for currying and partially applying your n-arity functions .", "You could use Scala Clojure or Frege to write the functional parts of your program .", "none of that category-theory level functional stuff that you have in Haskell Scala OCaml etc .", ".. . Please be sure when using Guava s functional utilities that the traditional imperative way of doing things isn t more readable .", "Was that more readable than the preposterously awkward functional approach you were about to try", "Unfortunately not all of the functional libraries do this ie Guava does not have flatMap on its Optional .", "Guava is just a Java library with lots of useful utility methods .", "No Java VMs I know don t perfom such optimizations .", "Indeed it doesn t compile in Java 7 or earlier .", "Possibly utilizing some Java 8 magick", "Kevin Bourrillion the Guava project lead has said on Guava s functional features : .. . .. . The syntax sucks .", "At least Java now has lambda s : .", "This will-change with Java 8 which will-change the way Java libraries and programs are design on the detail level .", "Things that make sense in Java up to 7 will be discouraged to some extent in Java 8 .", "This is expected to change in Java 8 but Guava is currently aimed at users of Java 5 and above .", "I am unfamiliar with FoldMap but some of functional-java s List https : github.com functionaljava functionaljava blob master core src main java fj data List.java functions also Arrays https : github.com functionaljava functionaljava blob master core src main java fj data Array.java and Streams https : github.com functionaljava functionaljava blob master core src main java fj data Stream.java are implemented internally using a constant stack space check out foldLeft https : github.com functionaljava functionaljava blob master core src main java fj data List.java L650 and foreach https : github.com functionaljava functionaljava blob master core src main java fj data List.java L265 for example maybe they can help. .", "On the flip side I prefer Guava because it is more general purpose and therefore I find myself using several of the features that are unrelated to functional idioms .", "One of the problems with both libraries as noted on Guava s Wiki in the above posts is the vertical noise of anonymous inner classes for your functional objects .", "BTW there is a try-monad github.com jasongoodwin better-java-monads blob master src main https : github.com jasongoodwin better-java-monads blob master src main java com jasongoodwin monads Try.java", "I don t see any chance for Java 5-7 compile this for example :", "Java 8 code examples are at http : www.functionaljava.org examples-java8.html .", "Compare with Java 8 factory-method Comparator.comparing used in the second code example .", "I would love to use closures in Java .", "Is there a better way to add closures to Java currently", "I would love to use closures in Java .", "It too is still weighed down by current Java syntax .", "That leads to the question : when is Java 8 expected", "Even in Java you ll have lambdas but still almost", "Creating the Function anonymous-inner-class requires more awkward cruft than just writing the normal for-loop you d have without any fancy functional techniques .", "There are still projects stuck Java 5 luckily not mine .", "Another thing causing stack overflows is the fact that imperative languages just use a call stack which very easily becomes a problem when using functional style recursion .", "You are going to hate my answer as it is just a real pain to convert code from a functional language to an imperative one even if it doesn t appear so up front .", "you should check out 2 https : github.com functionaljava functionaljava blob master core src main java fj P2.java L300 as in two underscores .", "I have read that they may or may not make it into Java 7 .", "Google collection nicely fits that gap for collections in java way" ] }
{ "confidence": [ 60.762237548828125, 60.45443344116211, 58.1384162902832, 57.3343620300293, 53.51198959350586, 52.818416595458984, 50.755096435546875, 48.51810836791992, 48.00899124145508, 47.50004959106445, 45.881431579589844, 45.11935043334961, 44.72480773925781, 43.68894958496094, 43.646175384521484, 43.2006721496582, 42.66147232055664, 41.63642501831055, 41.556068420410156, 41.068336486816406 ], "content": [ "Question : I d like to use either Functional Java or Guava or less likely Scala in a course I ll be teaching . Although there are lots of functional languages that run on the JVM I d like to stick to something that looks as much like Java as possible i.e . something that will be most compatible conceptually and syntactically with the functional features expected in Java 8 . It looks like Functional Java http : functionaljava.org and Guava http : code.google.com p guava-libraries are the best candidates . I haven t been able to find anything comparing them in terms of capabilities ease of use conceptual closeness to straight Java etc . Does anyone know of a good comparison between these libraries Comment : What is the question here You might want to edit your Q to make it more clear what you re asking.. . edit The Q is in the title yes but you may want to rephrase it in the Q itself . Comment : Guava is just a Java library with lots of useful utility methods . Yes it does have some stuff that will allow you to program in a functional-style way but it is not really especially focussed on functional-programming . Comment : Thanks for the answers below . I had mis-understood the goals of Guava . I also spent a bit more time looking at Functional Java . It too is still weighed down by current Java syntax . This leads me now to lean toward Scala . I realize that Scala is becoming more and more mainstream . Even so I think it would be most valuable for most students to learn how to do functional-programming in straight Java . When we teach functional-programming as a paradigm we use Haskell . I doubt that students learn enough though to get it into their blood . That leads to the question : when is Java 8 expected Comment : Plans for the next version of Java SE 8 are moving forward and Oracle is announcing a revised roadmap for a release with expanded scope with availability expected in summer 2013 . Source : oracle.com us corporate press 512956 http : www.oracle.com us corporate press 512956 Comment : Just curious : why would you prefer Java over Scala for teaching functional-programming How will the students appreciate the high noise to signal ratio in functional Java Even in Java you ll have lambdas but still almost none of that category-theory level functional stuff that you have in Haskell Scala OCaml etc . .. . Answer : Since Guava is more of a general purpose library that happens to have functional idioms and Functional Java is purely about implementing functional idioms in Java Functional Java sounds like a better fit with probably a more complete set of FP-like features . On the flip side I prefer Guava because it is more general purpose and therefore I find myself using several of the features that are unrelated to functional idioms . One of the problems with both libraries as noted on Guava s Wiki in the above posts is the vertical noise of anonymous inner classes for your functional objects . Another library that attempts to fix this via annotations and the APT is Jedi http : jedi.codehaus.org . Another approach that makes any of the above libraries Guava FJ or Jedi less-noisy without annotations is a library that I wrote Funcito http : funcito.googlecode.com inspired by the syntax of Mockito . It is more limited in what it can simplify at this point essentially wrapping single method calls but that s what I currently find myself doing most of the time already . Comment : When you mean vertical noise . Are you talking about the verbose coding as it relates to adding the anonymous inner classes or the overhead in your jar libraries in creating a bunch of those bytecode class files Comment : The former : anonymous inner classes .", "Question : I d like to use either Functional Java or Guava or less likely Scala in a course I ll be teaching . Although there are lots of functional languages that run on the JVM I d like to stick to something that looks as much like Java as possible i.e . something that will be most compatible conceptually and syntactically with the functional features expected in Java 8 . It looks like Functional Java http : functionaljava.org and Guava http : code.google.com p guava-libraries are the best candidates . I haven t been able to find anything comparing them in terms of capabilities ease of use conceptual closeness to straight Java etc . Does anyone know of a good comparison between these libraries Comment : What is the question here You might want to edit your Q to make it more clear what you re asking.. . edit The Q is in the title yes but you may want to rephrase it in the Q itself . Comment : Guava is just a Java library with lots of useful utility methods . Yes it does have some stuff that will allow you to program in a functional-style way but it is not really especially focussed on functional-programming . Comment : Thanks for the answers below . I had mis-understood the goals of Guava . I also spent a bit more time looking at Functional Java . It too is still weighed down by current Java syntax . This leads me now to lean toward Scala . I realize that Scala is becoming more and more mainstream . Even so I think it would be most valuable for most students to learn how to do functional-programming in straight Java . When we teach functional-programming as a paradigm we use Haskell . I doubt that students learn enough though to get it into their blood . That leads to the question : when is Java 8 expected Comment : Plans for the next version of Java SE 8 are moving forward and Oracle is announcing a revised roadmap for a release with expanded scope with availability expected in summer 2013 . Source : oracle.com us corporate press 512956 http : www.oracle.com us corporate press 512956 Comment : Just curious : why would you prefer Java over Scala for teaching functional-programming How will the students appreciate the high noise to signal ratio in functional Java Even in Java you ll have lambdas but still almost none of that category-theory level functional stuff that you have in Haskell Scala OCaml etc . .. . Answer : As stated above Guava is just a Java library -- a Java 5 compatible library even as of release 11 . The position of Guava on functional-programming is summed up by Kevin Bourrillion : .. . .. . The syntax sucks . At the same time this stuff is now has always been and will always be nothing but a stopgap measure until the right language change can come along at which time we can finally really decide on the optimal syntax and have functional-style programming start actually making lives better in Java for once . So I m undecided how much effort to put into the Function Predicate stuff it s in the library more because it sort of had to be not so much because we think it s a crown jewel .", "Question : I d like to use either Functional Java or Guava or less likely Scala in a course I ll be teaching . Although there are lots of functional languages that run on the JVM I d like to stick to something that looks as much like Java as possible i.e . something that will be most compatible conceptually and syntactically with the functional features expected in Java 8 . It looks like Functional Java http : functionaljava.org and Guava http : code.google.com p guava-libraries are the best candidates . I haven t been able to find anything comparing them in terms of capabilities ease of use conceptual closeness to straight Java etc . Does anyone know of a good comparison between these libraries Comment : What is the question here You might want to edit your Q to make it more clear what you re asking.. . edit The Q is in the title yes but you may want to rephrase it in the Q itself . Comment : Guava is just a Java library with lots of useful utility methods . Yes it does have some stuff that will allow you to program in a functional-style way but it is not really especially focussed on functional-programming . Comment : Thanks for the answers below . I had mis-understood the goals of Guava . I also spent a bit more time looking at Functional Java . It too is still weighed down by current Java syntax . This leads me now to lean toward Scala . I realize that Scala is becoming more and more mainstream . Even so I think it would be most valuable for most students to learn how to do functional-programming in straight Java . When we teach functional-programming as a paradigm we use Haskell . I doubt that students learn enough though to get it into their blood . That leads to the question : when is Java 8 expected Comment : Plans for the next version of Java SE 8 are moving forward and Oracle is announcing a revised roadmap for a release with expanded scope with availability expected in summer 2013 . Source : oracle.com us corporate press 512956 http : www.oracle.com us corporate press 512956 Comment : Just curious : why would you prefer Java over Scala for teaching functional-programming How will the students appreciate the high noise to signal ratio in functional Java Even in Java you ll have lambdas but still almost none of that category-theory level functional stuff that you have in Haskell Scala OCaml etc . .. . Answer : Guava s goal is not to provide functional idioms in Java . From the Functional Explained http : code.google.com p guava-libraries wiki FunctionalExplained Guava wiki page : .. . .. . Excessive use of Guava s functional-programming idioms can lead to verbose confusing unreadable and inefficient code . These are by far the most easily and most commonly abused parts of Guava and when you go to preposterous lengths to make your code a one-liner the Guava team weeps . .. . Please be sure when using Guava s functional utilities that the traditional imperative way of doing things isn t more readable . Try writing it out . Was that so bad Was that more readable than the preposterously awkward functional approach you were about to try Leaning too heavily on functional idioms makes not too much sense up to Java 7 as the overhead is too high see vertical problem http : cr.openjdk.java.net briangoetz lambda lambda-state-4.html . This will-change with Java 8 which will-change the way Java libraries and programs are design on the detail level . Things that make sense in Java up to 7 will be discouraged to some extent in Java 8 . This will motivate a new edition of Effective Java and a lot of new APIs . If you re trying to teach functional-programming it s probably better to stick to a more or less pure functional language . Every language that is a melange or emulation of FP and OOP will be a distraction . Comment : I should also point out the preceding sentence in that article : As of Java 7 functional-programming in Java can only be approximated through awkward and verbose use of anonymous classes . This is expected to change in Java 8 but Guava is currently aimed at users of Java 5 and above .", "Question : I would love to use closures in Java . I have read that they may or may not make it into Java 7 . But an open-source project called functional-java http : code.google.com p functionaljava has implemented functional features including closures . How safe would it be to use such a library in an enterprise production app Is there a better way to add closures to Java currently Comment : You could try using scala or clojur instead .. . Answer : BGGA is still a prototype implementation not sure how comfortable you are putting prototype code into production . check out google collections http : code.google.com p google-collections it gets you closer to the goal albeit more verbosely Comment : Interesting but it doesn t seem to have anything like closures - just collections . Comment : Functional Java does not require BGGA but does support it . Comment : Google Collections does have a Function A B type and most of their collections implement a functor . Functional Java s collections implement functors as well as monads cofunctors and comonads . Comment : yes depends on what you are shooting for . Trying to do full fledged functional-programming in java would be clumsy and inelegant at best . Google collection nicely fits that gap for collections in java way", "Question : I was reading the following question - How safe would it be to use functional-java to add closures to a Java production project http : stackoverflow.com questions 766745 how-safe-would-it-be-to-use-functional-java-to-add-closures-to-a-java-production and I had been thinking of using the Functional Java project http : functionaljava.org as well in my current project . I was wondering what are Stack Overflow s users experiences with using the Functional Java project In particular I m curious about some of these specifics : .. . .. . Did it increase code quality or clarity Improve productivity Reduce potential points of failure Impact performance .. . Answer : I ve been on a team that uses the FJ library and I know of others . On one team it was used as a replacement for a home-grown library that was less polished on another it replaced Google Collections . I also know some folks that copycat the source code from FJ to roll their own implementation . In my opinion if you must use Java you should be using something like Functional Java to make your life easier . Did it increase code quality or clarity Code written in a functional style is more concise hence more clear . The library comes with and encourages the use of immutable data-structures which improves quality . The library also encourages composition over inheritance which improves the reusability of your code . Improve productivity Definitely . Developers with more powerful tools are more productive . In my experience developers feel that first-class functions make programming easier and more enjoyable . Happy programmers are productive programmers . Reduce potential points of failure A more functional style of programming discourages mutable state which eliminates a large class of bugs . Also more powerful abstractions lead to less repetition which reduces the number of places where something is wrong . Impact performance There s no reason to believe that performance would be impacted one way or the other . The provided datastructures are designed for ease of use and expressiveness rather than performance but they re written optimally for what they are . As with anything else how you drive is more important than what you re driving . For example fj.data.List is a linked-list so it has O n random-access and concatenation therefore you avoid it for those purposes . fj.data.Stream has O 1 concatenation by comparison .", "Question : I am playing with functional-programming and in particular with Functional Java . I have implemented with success my version of the IO Monad and I am writing IO actions for my core . It is basically serializing objects to Xml files the object-type extends the custom XmlWritable interface . Unfortunately in order to do that an instance of OutputStream AND one instance of XmlSerializer needs to be created . The scope of the OutputStream is wider than XmlSerializer s which means that the only way I can see to be able to correctly handle both lifecycles within my IO monad is to carry both of them with me in a tuple closing OutputStream after having written using XmlSerializer . This leads to heavy and ugly code Java 6 is definitely not the best for this : .. . .. . Is there a more idiomatic why to handle my use-case in functional-programming Lurking I discovered the State Monad...but I am kind of scared to see what it is going to happen if I apply a State Monad on top of a IO Monad in Functional Java . Comment : I m slogging through reading your code right now Sorry Java 6 is painful for FP but the IO is the state-monad in a more specialized form Comment : Ok no problem : Is it a common pattern to pass around tuples when you need to maintain some state across Monadic functions Comment : Allow me a question : why are you doing this stuff in a language that is not very well suited for it You could use Scala Clojure or Frege to write the functional parts of your program . Comment : Your question is good indeed : I have this constraint unfortunately . But I know Scala so any Scala answer is accepted as well Thanks Comment : What exactly is the constraint To use the functional-java library or to produce java code .. . Answer : Here is what I have come up with . Feedback is very appreciated . I followed the answer above taking inspiration from the linked https : groups.google.com forum msg functionaljava AMcLld-78fI KOoOzczRX4MJ discussion :", "Question : I would love to use closures in Java . I have read that they may or may not make it into Java 7 . But an open-source project called functional-java http : code.google.com p functionaljava has implemented functional features including closures . How safe would it be to use such a library in an enterprise production app Is there a better way to add closures to Java currently Comment : You could try using scala or clojur instead .. . Answer : Functional Java does not requires that you use closures -- the source compiles with any Java 1.5 compiler . Functional Java is far more complete than Google collections and just happens to allow you to use it well with BGGA . Hope this helps .", "Question : In java.util we can use the containsAll method to compare two java.util.Set . What s the best way to compare two fj.data.Set Is there really any valuable benefit of using fj over java.util Comment : what is fj.data.Set Are you using libraries Comment : @exception1 I think it s a library called functionaljava.. . haven t really had much contact but i m always very suspicious about librarys that are reimplementing java basics like arrays and lists Comment : @exception1 I am totally with you on that unfortunately I am working on a codebase that s already using this functional-java heavily and I have to finish some code by tomorrow : once that s done I will have more time to go back and change everything But for now I need to find the best way to compare two sets without writing a whole new method to do the job of containsAll Comment : I can t really help because I haven t ever used this library . It seems to have nice features for functional approaches . But fj.data.Set and java.util.Set are incompatible and I can t find any conversion functions or something similar . At least the fj data types implement the Iterable interface the native one - there is also a fj interface - so you can iterate and check the entries yourself . Unfortunately the don t implement Collection - would have made things a much easier Comment : that was pretty much my conclusion I was hoping some magic answer comes through .. . Answer : To compare two sets use Set.subsetOf . So s1.subsetOf s2 if s1 is a subset of s2 in contains terms s2 contains s1 . To create sets use Set.set which takes an ordering of elements that is how to know whether an item is less than another so the set can be stored in a red-black tree . FunctionalJava uses the functional-programming FP approach - data is immutable . That makes the Collection interface inappropriate for implementing . Note all the mutation and updating of objects in the Collection interface in methods like add addAll remove etc . There should be better support for converting to and from java.util.Set but to convert a fj.data.Set to a java.util class call set.toStream .toCollection or set.toList .toJavaList .", "Question : I would love to use closures in Java . I have read that they may or may not make it into Java 7 . But an open-source project called functional-java http : code.google.com p functionaljava has implemented functional features including closures . How safe would it be to use such a library in an enterprise production app Is there a better way to add closures to Java currently Comment : You could try using scala or clojur instead .. . Answer : Closures will definitely not make it into Java 7 due to a lack of consensus around a single implementation . See here . http : hamletdarcy.blogspot.com 2008 12 java-7-update-from-mark-reinhold-at.html .. . .. . The Functional Java library is thoroughly tested and actively developed . If you browse the source you will see that it s just simple bog-standard Java and there s not a lot that could go wrong . I know at least one mission-critical enterprise app that uses it in production . This application has more than a million users . Go for it .", "Question : I would love to use closures in Java . I have read that they may or may not make it into Java 7 . But an open-source project called functional-java http : code.google.com p functionaljava has implemented functional features including closures . How safe would it be to use such a library in an enterprise production app Is there a better way to add closures to Java currently Comment : You could try using scala or clojur instead .. . Answer : Too old question to answer . Here we have lamdas in java8 to make your life easier .", "Question : I know one of the goals of pure functional-programming is to eliminate mutability and therefore to preclude side-effects . But let s face it Java is not a functional language even with all of the functional-programming libraries that exist . In fact it seems that some of the FP-libraries know and expect this . For instance in Functional Java there is the Effect http : functionaljava.googlecode.com svn artifacts 3.0 javadoc fj Effect.html class . In the Jedi FP library there is the Command http : jedi.codehaus.org javadoc jedi functional Command.html interface . This allows you to -- among other things -- apply a command-pattern with type-safety to elements of an Iterable without the nasty for-loop boilerplate . So the question is is there anything like that in Guava EDITED AFTER ANSWER ACCEPTED FOR CLARIFICATION .. . .. . I am developing a framework http : funcito.googlecode.com that helps with the vertical problem inherent in most Java FP-libraries under a certain set of circumstances . So I would not actually make the code example as shown above : i.e . explicitly declare a new class implementation of Command with all of its vertical-noise icky-ness simply for the purpose of immediately applying it right after the declaration . I was thinking more along the lines of the actual command-pattern where there may be several possible commands declared elsewhere and only one of them gets passed into the code which wants to apply it iteratively . Furthermore the goal of my framework is to make it more idiomatic to create functional-interface objects functions predicates commands other simple lambdas without simply moving the vertical problem elsewhere . I have long realized this is not within the scope of Guava . But as Command-like interface are available in other FP libraries I just wanted to know if an analog existed in Guava . A more complete code example using my framework might be something like this : .. . Answer : Nope Kevin Bourrillion the Guava project lead has said on Guava s functional features : .. . .. . The syntax sucks . At the same time this stuff is now has always been and will always be nothing but a stopgap measure until the right language change can come along at which time we can finally really decide on the optimal syntax and have functional-style programming start actually making lives better in Java for once . So I m undecided how much effort to put into the Function Predicate stuff it s in the library more because it sort of had to be not so much because we think it s a crown jewel . .. . .. . We will probably change our strategy significantly when Java 8 comes along but that won t be for a while yet . Also we haven t found many use cases for which we think the Command interface you describe would be the best solution . For example we think that your above code would be much better written as .. . .. . the old-fashioned way . We could potentially be convinced of the merit of Command but I think the for-each use-case is almost always better done the old-fashioned way . Comment : Why is the old-fashioned way better for commands but not better for filters and transformations Also I know the functional features are seen as stop gap until Java 8 but you have to realize that Java 8 is some time off and adoption of it will not be immediate . There are still projects stuck Java 5 luckily not mine . Comment : If you read the user guide http : code.google.com p guava-libraries wiki FunctionalExplained Caveats you ll see that we think the old-fashioned way is better for filters and transformations most of the time . Not all of the time -- which is why we provide those features -- but most of the time . Comment : In addition the original post s code appears to be an example of the very thing that makes the Guava team weep http : code.google.com p guava-libraries wiki FunctionalExplained . Comment : I have read that section ample times and I agree with it in principle but think that it is way too amplified . In my tastes it is much more readable my one-line way than what you showed not just because it s one line but because it actually reads more naturally . The example given in the Caveats section of the user guide is clearly one where you are combining a Function and Predicate . Also I make an FOSS library that helps produce Functions and Predicates that wrap existing getters in a single line . So there is definitely a net code savings too . Comment : @KevinWelker : There s a huge difference between this and filter transform . Filter transform do something that cannot be done using a loop : they produce a view in constant-time . A for-each like in your example is inherently replaceable with a loop .", "Question : I am playing with functional-programming and in particular with Functional Java . I have implemented with success my version of the IO Monad and I am writing IO actions for my core . It is basically serializing objects to Xml files the object-type extends the custom XmlWritable interface . Unfortunately in order to do that an instance of OutputStream AND one instance of XmlSerializer needs to be created . The scope of the OutputStream is wider than XmlSerializer s which means that the only way I can see to be able to correctly handle both lifecycles within my IO monad is to carry both of them with me in a tuple closing OutputStream after having written using XmlSerializer . This leads to heavy and ugly code Java 6 is definitely not the best for this : .. . .. . Is there a more idiomatic why to handle my use-case in functional-programming Lurking I discovered the State Monad...but I am kind of scared to see what it is going to happen if I apply a State Monad on top of a IO Monad in Functional Java . Comment : I m slogging through reading your code right now Sorry Java 6 is painful for FP but the IO is the state-monad in a more specialized form Comment : Ok no problem : Is it a common pattern to pass around tuples when you need to maintain some state across Monadic functions Comment : Allow me a question : why are you doing this stuff in a language that is not very well suited for it You could use Scala Clojure or Frege to write the functional parts of your program . Comment : Your question is good indeed : I have this constraint unfortunately . But I know Scala so any Scala answer is accepted as well Thanks Comment : What exactly is the constraint To use the functional-java library or to produce java code .. . Answer : I actually took great inspiration from Functional-Java s DB combinators https : github.com functionaljava functionaljava tree master core src main java fj control db to solve similar problems . I made my very own XML combinators and more from this pattern so its worth learning . You might find this discussion https : groups.google.com d msg functionaljava AMcLld-78fI KOoOzczRX4MJ on google groups useful . edit - replying to the comment : .. . .. . follow the code : .. . notice how you start a new connection using the StateDb https : github.com functionaljava functionaljava blob master core src main java fj control db DbState.java L41 see that you have a few options to start a connection one that eventually commits and one that eventually rollback . these are just two examples of things you can carry with the computation . Essentially every computation that you bind https : github.com functionaljava functionaljava blob master core src main java fj control db DB.java L103 a plain modaic bind could potentially carry information . here is an example i gave in the discussion above : .. . .. . So in this example you can pass extra information namely the sql query as a parameter to the function that gets bound . you could just as well had more parameters to runStatement . to put it all together you get something like : .. . .. . Hope this helps Comment : Nice thanks I am close too see how to handle this but I still don t see it . Basically following your page how can I handle the fact that I need to carry Connection with me to the end of the computation so that I can close it Comment : hey kap i tried answering your question in the body above. . Comment : I see now the Connection is carried as part of the DBState object and closed inside DBState.run passing from one DB Monad to another in the DB A .run final Connection c . Well this is acceptable for this kind of application but it is not very generic...for generic IO Monads I need to come up with another solution I guess following the DBState implementation though . Maybe passing one or more Closable object . So...thank you", "Question : I would like to use functional Java 3.0 http : functionaljava.org download in a maven project . I have been googling a little but I can t find valid information to include the corresponsding dependency in my pom.xml . Someone mentioned http : groups.google.com group functionaljava browse thread thread 2bc8b030f358f2eb 7ecce5bcb12eb5de 7ecce5bcb12eb5de that he would upload the artifacts to the scala-tools maven repository but it does not seem like he followed-up on his announcement . It does not even seem that earlier versions of functional Java are available from maven . Does anyone have valid and recent information about this issue Thanks P.S . : Yes I know I can download and manually include the .jar in my project but this is only a workaround solution.. . .. . Answer : Fact is I don t like to manually include .jars in repositories because it is not a distributed solution . I have copied the functional-java code in a maven repository project called externals and it compiles fine . I can generate the artifacts and have no need to upload them manually anymore . Comment : Fair enough . Had I known that you have a repository available I d have suggested this also : -", "Question : I am trying to understand reasons behind different Option Optional semantics in probably 3 most used implementations in Java ecosystem : Java 8 Functional Java and Guava . Considering following three snippets . 1 . java.util.Optional.of 100 .map i - null results in Optional.empty . 2 . fj.data.Option.some 100 .map i - null results in Some null . 3 . com.google.common.base.Optional.of 100 .transform i - null results NullPointerException . What are the reasons behind 3 choices If appicable what can be considered most pure or correct from functional-programming point of view For example in terms of viewing Option type as monad what would be most correct or what can be considered most composable It would also interesting to know how this is handled in functional languages that allow nulls . Comment : Different Objective of coding optimise secure or without crash I think you should read for example Java good practice book . For example avoid null when return list you should return emptyList . Exception should remain as their name Exceptions . Comment : The same reason why C and Java aren t exactly equal . Different developers with different opinions how it should work . Asking us why they thought so is quite strange . Comment : @Tom slightly expanded the question to be more specific .. . Answer : I dont see a real reason for Guava s behavior . As for the other two it depends how the author defined null values : .. . .. . java-8 defined null value to be the absence of value thus you get an Optional.empty .. . functional-java seemed to have defined null as a possible value distinct from no value . For a more concrete reason lets take a look at map https : github.com functionaljava functionaljava blob master core src main java fj data Option.java L194 definition : .. . .. . public final B Option B map final F A B f .. . return isSome some f.f some : Option.none .. . .. . .. . .. . As long as the container is not None its transformed value will not be None . To get a result similar to java-8 fromNull https : github.com functionaljava functionaljava blob master core src main java fj data Option.java L677 could be used . As for pure or correct probably a similar answer to the old is 0 a natural number http : math.stackexchange.com a 293 339674 :", "Question : I understand the basic bind syntax for Option with functional-java as .. . .. . That works well for single input functions but I can t figure out how to use multiple input functions like F2 F3 etc . ie : .. . .. . I know I m missing something but documentation is a bit sparse . Ideas .. . Answer : I m not sure what you re asking but if you re trying to bind a two-arity function into the Option you should partially apply the two-arity function before binding it . Thus that ll result into a unary function with a fixed first parameter : .. . .. . bind the first parameter to 5 returning a new unary function . I ve searched and haven t found a partial applicator for the second parameter . This is weird . Comment : In real functional-programming languages you do that with flip f b a f a b and then flip myfunc b", "Question : I would like to use functional Java 3.0 http : functionaljava.org download in a maven project . I have been googling a little but I can t find valid information to include the corresponsding dependency in my pom.xml . Someone mentioned http : groups.google.com group functionaljava browse thread thread 2bc8b030f358f2eb 7ecce5bcb12eb5de 7ecce5bcb12eb5de that he would upload the artifacts to the scala-tools maven repository but it does not seem like he followed-up on his announcement . It does not even seem that earlier versions of functional Java are available from maven . Does anyone have valid and recent information about this issue Thanks P.S . : Yes I know I can download and manually include the .jar in my project but this is only a workaround solution.. . .. . Answer : Version 3.0 is now in Maven Central : http : repo1.maven.org maven2 org functionaljava functionaljava 3.0", "Question : I was reading the source code of the Functional Java library and noticed this : .. . .. . I was wondering why they don t always return a singleton parameter specially because of None s equality implementation : .. . .. . So I did a search at Functional Java s forum and I found this question and answer : .. . .. . Is it possible to set this up so it doesn t create a new None for every call to none can we use a single object to represent None in all cases .. . No but then who cares The JIT optimiser can take care of these things quite well nowadays . My question is how the JIT optimiser handles this in a way that it isn t necessary to return a singleton . I know that object creation is cheap but I think a singleton would be cheaper and in this case it doesn t add any complexity . Comment : I don t think they meant to imply the JVM would re-use an instance a new is a new . A singleton might be very marginally faster but I d be surprised if it was a gating issue performance-wise in this case . .. . Answer : It is more type safe otherwise we need to rely on erasure . Creating an object is probably still more expensive than looking up a cached one . See java8 s Optional : .. . .. . http : hg.openjdk.java.net lambda lambda jdk file ad394630273b src share classes java util Optional.java", "Question : In functional-java I expected the following to create an infinite stream : .. . .. . But it stops after one full enumeration . The javadoc kind of confirms this stating that it may only stream until the enumeration is exhausted . So how do I make an infinite stream .. . Answer : You could look at Stream.cycle https : github.com functionaljava functionaljava blob ce5db48c01cd53bc745e8ceb2e7cd4858dc4e39a core src main java fj data Stream.java L1652 it makes an infinite stream out of the input stream Comment : And there it is . Great . Though why not have cycle Enumeration in the API", "Question : I have a class currently called Promise that works as follows : .. . .. . 1 . It holds a future value .. . 2 . It can always accept a subsequent action to take that uses the future value as the parameter .. . 3 . When the value is completed the function queue launches .. . 4 . Any functions added after the future is complete happen synchronously .. . .. . So this seems to be a design pattern from functional-programming that we re jamming into Java . The important thing is that we can daisy-chain on delayed events which I understand is a feature more built into C 3.0 language but you have to hack together with Java classes . Unfortunately one I don t know a better name for this than promise or future which seem misleading since the focus is more on the DelayedCallStack then the value at hand and two I don t know of any way to do this beyond writing our own fairly complicated Promise class . Ideally I d like to lift this from the functional Java library but the concept eludes me thus far . Note Java doesn t even give language library support for an asynchronous callback that takes a parameter which is one reason I m so pessimistic about being able to find this . So what is this pattern can it be done in libraries Comment : I don t know of anything in any library that does this . As for a name if the focus is on a set of actions that you hope to take in the future when the time is ripe how about an Ambition .. . Answer : Take a look a ListenableFuture in Guava : .. . .. . http : code.google.com p guava-libraries wiki ListenableFutureExplained .. . .. . ListenableFuture allows you to add callbacks to be executed when the Future computation is completed . You can control what thread pool the callbacks get executed under so they can be executed synchronously or asynchronously .", "Question : I have a very simple Java bean WatchedFile which has a fileName field . I would like to sort a fj.data.List of WatchedFile objects but I m struggling with defining an fj.Ord for the list s sort method . This is what I came up with : .. . .. . This is ugly I m sure there is a better way of instantiating an Ord object.. . Possibly utilizing some Java 8 magick .. . Answer : It s recommended to have a method public String getFileName in your class WatchedFile . In that case you can simply say : .. . .. . And using NIO2 for getting the directory entries it may look like : .. . .. . .. . .. . If you want to stay within the functional-java API a solution can look like : .. . .. . The key point is that you don t need shouldn t re-implement the way String s are compared . Instead specify the function to get the property value to compare . Compare with Java 8 factory-method Comparator.comparing used in the second code example . Comment : You can do the equivalent of the question s code utilizing some Java 8 magick : .sort Ord.ord a- b- Ord.stringOrd.compare a.fileName b.fileName but it s still ugly compared to the alternatives Comment : This is great Ord.stringOrd.comap was exactly what I was looking for . I will also try to re-evaluate the need for functionaljava in the light of Java 8 features . Thanks a lot ." ] }
[ "yes-answer-long", "yes-answer-short" ]
open-source
UNK_RELATION
gecko@seamonkey@98
gecko -- an open-source browser engine developed by mozilla and used in browsers such as firefox @placeholder and others .
{ "confidence": [ 41.288963317871094, 34.307193756103516, 33.92375564575195, 33.31880569458008, 33.0146598815918, 32.39570999145508, 31.714706420898438, 31.2100887298584, 30.508485794067383, 30.465213775634766, 30.453353881835938, 30.44458770751953, 30.265209197998047, 30.060497283935547, 30.023012161254883, 29.968379974365234, 29.805700302124023, 29.754444122314453, 29.440895080566406, 29.34634780883789, 29.08661651611328, 29.028472900390625, 28.832794189453125, 28.655305862426758, 28.176071166992188, 27.423442840576172, 27.205354690551758, 27.171939849853516, 27.171939849853516, 26.789331436157227, 26.78152847290039, 26.725433349609375, 26.59954261779785, 26.4675350189209, 26.36153793334961, 26.36153793334961, 25.588422775268555, 25.56519889831543, 25.466480255126953, 25.1433048248291, 25.04729461669922, 24.881458282470703, 24.841354370117188, 24.739032745361328, 24.729846954345703, 24.584129333496094, 24.528369903564453, 24.367305755615234, 24.303409576416016, 24.303409576416016, 24.18081283569336, 24.032703399658203, 23.882423400878906, 23.846101760864258, 23.787559509277344, 23.59441375732422, 23.389741897583008, 23.389741897583008, 23.381568908691406, 23.350862503051758, 23.350862503051758, 23.34929847717285, 23.164369583129883, 22.875347137451172, 22.853132247924805, 22.78321075439453, 22.726125717163086, 22.724578857421875, 22.689363479614258, 22.677656173706055, 22.577972412109375, 22.332855224609375, 22.13262939453125, 22.06873321533203, 22.041213989257812, 21.984848022460938, 21.94664192199707, 21.857582092285156, 21.857582092285156, 21.857582092285156, 21.836688995361328, 21.823387145996094, 21.653453826904297, 21.6378173828125, 21.553226470947266, 21.395309448242188, 21.395309448242188, 21.359739303588867, 21.25004768371582, 21.230382919311523, 20.99113655090332, 20.923748016357422, 20.910951614379883, 20.857778549194336, 20.830768585205078, 20.70287322998047, 20.621376037597656, 20.621376037597656, 20.618457794189453, 20.594146728515625 ], "content": [ "Gecko is the rendering engine for Firefox .", "It is important to note the Gecko engine used in ABCpdf is independent from the engine used in any local Firefox installation it should be assumed that it will be different in both version and configuration .", "Gecko engine crashed .", "Gecko engine crashed.. . .. . .. . We re using the Gecko engine instead of the default MSHTML engine to render PDFs .", "I have a windows application that uses gecko 31 firefox embeded browser .", "Now I want to try building the Firefox Android using chromium rendering Engine Blink replacing the Gecko rendering Engine .", "To embed Gecko browser in your winform application you need : .. . .. . XulRunner : XULRunner is a Mozilla runtime package that can be used to bootstrap XUL+XPCOM applications that are as rich as Firefox and Thunderbird .", "Gecko engine crashed.. . .. . Failed to add HTML : Gecko engine crashed .", "When I start the Firefox OS simulator does it use the Gecko of the browser or does it use its own Gecko", "I m asking about Firefox specifically because I thought that browser used the same Gecko rendering engine as ABCPDF did so I thought it would be 100 the same .", "That s because in the case of Firefox the right bugzilla product to use for browser-engine Gecko bugs is actually Core not the Firefox component and there is no Gecko component .", "Our first attempt at a Gecko rendering engine based internal browser was built using Delphi and Gecko 1.8 .", "Is this a browser you built yourself using the Mozilla libraries", "You can send events to Gecko and arrange for JavaScript to handle them using code like this https : dxr.mozilla.org mozilla-central source mobile android base java org mozilla gecko GeckoView.java 493 .", "After the upgrades I got errors similar to the following whenever I tried to generate a PDF : .. . .. . Gecko engine failed to render the page : Gecko engine crashed .", "I m not sure what you mean by gecko browser class .", "I am trying to build it from mozilla firefox source code .", "Are there any alternative functions for gecko browser", "Update 2016 : .. . .. . BrowseEmAll.Gecko http : www.browseemall.com CoreAPI Gecko .. . .. . A .Net component which can be used to integrate the Firefox engine into your .Net application .", "The last version is based on Gecko 1.7.12 and I believe Gecko is currently up to 1.9.x used in Firefox 3", "I m looking for a solid answer on whether or not there is an equivalent to -webkit-mask in Gecko browsers Firefox", "The development of Gecko is very tied with Firefox .", "Has anyone tried to implement tags using the ABCPDF Gecko engine", "I have developed a web app that works on Firefox Nightly so it works in Gecko :", "In such cases with Firefox I understand enough to know when the cause of the programming problem I m seeing is in the core Gecko browser-engine code in Firefox rather than instead being say a bug in the Firefox user-interface code the code for the so-called browser chrome .", "Chrome User Agent : Mozilla 5.0 -OS- AppleWebKit 535.19 KHTML like Gecko Chrome 18.0.1025.11 Safari 535.19 .. . .. . Firefox User Agent : Mozilla 5.0 -OS- Gecko 20100101 Firefox 10.0.1 .. . .. . .. . .. . Tally .. . .. . Gecko : .. . .. . Works : Firefox 10 .. . .. . WebKit : .. . .. . Doesn t : Safari 5 Chrome 18 .. . .. . Trident : .. . .. . Works : Internet Explorer 8 9 .. . Doesn t : Internet Explorer 7 .. . .. . Presto : .. . .. . Doesn t : Opera", "is there a way of randomizing the user-agent using Gecko Browser", "I need to access several sites simultaneously in my gecko-based browser under different proxies and cookies .", "Problem is that you can only setup cookies proxies for entire gecko browser class not for separate objects of it .", "I m using gecko webbrowser-control in my winforms app it s belonging to firefox browser .", "I understand that KHTML is the HTML Layout Engine used but what significance does the like Gecko part have", "While Gecko is primarily the rendering engine of a single browser which just happens to offer an API for embedding .", "Konquerer began to pretend to be like Gecko to get the good pages and called itself Mozilla 5.0 compatible Konqueror 3.2 FreeBSD KHTML like Gecko .", "like calc : for open a link in calc program .. . .. . Now we would use it on firefox-5 but the Gecko 2.0 refuse that .", "enter image description here http : i.stack.imgur.com 2uLRR.png .. . .. . In Firefox Gecko : .. . .. .", "So it might be a Gecko iframe rendering bug not just something to do with Firefox .", "That s been developed with the intention to be used among different web browser .", "so i tested the first link and that is correct in a WebKit browser too and it s maybe a Gecko bug i dont know in now but try it by FireFox", "I ve seen a few COM controls which wrap the Gecko rendering engine GeckoFX http : code.google.com p geckofx as well as the control shipped by Mozilla - mozctlx.dll http : stackoverflow.com questions 26147 is-it-possible-to-embed-gecko-or-webkit-in-a-cnet-win-form-just-like-a-webview .", "A lot of modifications made to Gecko are done because Firefox dictates them .", "I mean that proxies are applied to gecko via some static fields so if you open site1 with proxy1 and then in other process open site2 with proxy2 proxy2 will be applied to further work with site1 .", "I am using .NET Gecko webbrowser 46 version to make custom browser for specific http aplication .", "The relevant code is : .. . .. . In debug mode theDoc.Chainable pageRef returns true when the rendering engine is MSIE but false when the rendering engine is Gecko .", "I just got to know about gecko and used it in my application .", "Or maybe libflashplayer.so exists in source somewhere on Mozilla .", "Gecko or WebKit", "I need a gecko webbrowser-control .. . .. . I need a sample code or a link which explains how to use GECKO .. . .. . If anyone has used Gecko I could do with some advice", "Since the Firefox 26 does not cause the problem this should be resolved when ABCpdf is eventually updated to use a newer version of Gecko .", "Right now I m using the latest ABC PDF version and use the Gecko rendering engine .", "My understanding from the reading I ve done is that I need to embed a rendering layout engine such as Gecko or Webkit .", "On every browser except Firefox this works as desired .", "To Quote from the web site .. . .. . GeckoFX is a Windows Forms control written in clean commented C that embeds the Mozilla Gecko browser control in any Windows Forms Application .", "update : an actual answer from dbaron via mozilla.dev.platform : .. . .. . by adding entries to : https : mxr.mozilla.org mozilla-central source layout style nsCSSPropAliasList.h", "Having said that fitting Blink with Firefox instead of Gecko will be a new project by itself probably you can try building Webview so that you can build a simple browser itself in android .", "When Mozilla releases Gecko 2.0 I think it will become a lot easier to embed in Delphi .", "It worked on webbroswer but gecko is not .", "It was working on one server failing on another with Gecko .", "It has a method that performs Gecko Navigate and is async .", "There s documentation about implementing new CSS properties https : developer.mozilla.org en-US docs Mozilla Adding a new style property which might be hard to follow but browsers are complex pieces of software .", "I use Gecko SDK to build a C++ tool to inspect web pages along with their internals opened in Firefox .", "furthermore this is an old libary which is designed for firefox-3 . .. . .. . which is the best libary strategy to use the current gecko in wpf", "As the title says how can i know if the gecko browser completed loading a web page", "I want to transfer winform data to Firefox browser .", "I solved it by creating a separate application with browser for each site I need to open but its ugly .", "Is there a property that I need to overwrite on Gecko", "Given that is there a URL that will take me directly the form where I can quickly get to the right bugzilla product and component to report a Gecko browser-engine bug against", "http : www.websupergoo.com helppdfnet source 5-abcpdf xhtmloptions 2-properties addtags.htm .. . .. . In Gecko your tag has to have a visible impact on the page for it to be picked up .", "Open it in chrome and firefox you will see the difference .", "Firefox 4 5 don t support this : .. . .. . Firefox 4 Support for remote XUL has long been a potential security concern support for it was disabled in Gecko 2.0 .", "mxr.mozilla.org mozilla-beta source toolkit components printing http : mxr.mozilla.org mozilla-beta source toolkit components printing content printUtils.js 69", "This only works on Gecko .", "In an HAM RADIO application written in Visual Basic VS2015 I use the Gecko web browser in a VB form .", "I ve seen several examples but for libraries with Gecko 1.9.2 or earlier how do I create a plugin for Firefox 5 in C++", "When Apple was considering which engine to use in making Safari they looked at Gecko but decided to go with KHTML fork it and called it WebKit .", "Since Gecko 45 I use the other EvaluateScript overload to make it work :", "I have downloaded and used the Gecko SDK to build an XPCOM component and that seems to work but I can t figure out which interfaces to implement to make the component available as an embedded native UI component in Firefox .", "I have it working fine on the MSHTML engine Internet Explorer as soon as I use Gecko which is rendering my HTML better it can t find the tags specified in the HTML .", "How data flow from Gaia to Gecko then Gonk .", "The version of gecko i am using is 21.0", "This allows you to embed Gecko in a Java application .", "Question is about Gecko not webkit blink", "So before going deeper and deeper into Webkit Gecko source code does somebody know how do they do", "Does anyone know if it is still free for open-source", "I wonder is the behaviour of Gecko is different respect to IE maybe the first browser doesn t hold the variable environment once loaded the page .", "Is there a good way to implement this in Mozilla", "Gecko Rendered http : i.stack.imgur.com sXlqL.png .. . .. . Gecko is rendering this code how I want it .", "If you re interested : xxm.svn.sourceforge.net viewvc xxm trunk Delphi gecko http : xxm.svn.sourceforge.net viewvc xxm trunk Delphi gecko", "It sounds exciting with Gecko 2.0", "I am trying to build Gecko Code Which I have clone from Github : git-clone https : github.com mozilla gecko-dev.git .. . .. . and I am getting autoconf 2.13 not found error Which already installed in my Mac Machine : .. . .. . Please help me and tell me the solution .", "I ve asked them if there a Gecko-based workaround or an estimated date to the update of ABCpdf to use a newer version of Gecko will post a response when I get one .", "Note : i use vs 2015 community .. . .. . here is my code : .. . .. . Edit Note : Before i think it was problem with gecko but seems i cannot do any drawtobitmap with others controls either so i guess this is related with memory.read answer from @HansPassant below", "It means that you need Mozilla installed .", "I use gecko browsers in VS 2013 For example .. . .. . For next my step i need click on my link but i cant because the browser does it all at once as I make him perform on queue all I want", "In JavaScript development I frequently return from execution to have an inartificial breakpoint : .. . .. . Chrome and others are okay with it but unfortunately for debugging in Firefox : .. . .. . Starting with Gecko 40 Firefox 40 Thunderbird 40 SeaMonkey 2.37 a warning is shown in the console if unreachable code is found after a return https : developer.mozilla.org en docs Web JavaScript Reference Statements return statement .", "I think it s safe to say that the restructuring Mozilla did for Firefox 3 had no relevance in Googles decission to go with Webkit .", "This is a destructuring assignment https : developer.mozilla.org en New in JavaScript 1.7 Destructuring assignment 28Merge into own page.2Fsection 29 something that is currently only implemented by the SpiderMonkey JavaScript engine which is used by Firefox .", "NOTE : Another control I need on the same site the Mute checkbox is working by using the following VB-code : .. . .. . GWB SDR1 MyCall is the Gecko browser on the VB form .", "I m trying to host Gecko as a web browser control in a desktop application and would prefer a direct API rather than going through COM .", "@TomC Gecko for Delphi is long dead. .", "Ok people here is how my problem was solved and thanks for the others who tried to help" ] }
{ "confidence": [ 48.691341400146484, 45.803565979003906, 45.54573440551758, 44.719581604003906, 43.90892791748047, 42.84917068481445, 42.31694030761719, 42.23722839355469, 39.328704833984375, 39.23717498779297, 39.06201934814453, 37.99930953979492, 36.69330978393555, 36.63801193237305, 36.3494987487793, 36.01700973510742, 36.01700973510742, 35.9085807800293, 35.87737274169922, 35.760528564453125 ], "content": [ "Question : I built the chromium for android following these instructions https : code.google.com p chromium wiki AndroidBuildInstructions . I got the content shell only not the full browser . Then I built the Firefox for Android . I successfully got the Full web browser . But the performance of the chrome content shell was much much better than that of Firefox Android build . Now I want to try building the Firefox Android using chromium rendering Engine Blink replacing the Gecko rendering Engine . How much is the difficulty level and how can I start . Thanks .. . Answer : Chromium uses Blink earlier Webkit as its rendering and V8 for Javascript interpretation along with various 3rd party dependencies . Even though Content shell is a small browser sans complex UI of Chromium it is functional and a wrapper over Blink . Having said that fitting Blink with Firefox instead of Gecko will be a new project by itself probably you can try building Webview so that you can build a simple browser itself in android . http : developer.android.com reference android webkit WebView.html .. . .. . Chromium - Open Source project Chrome- Google s proprietary software + Chromium .. . .. . In Android only Google Chrome can be installed as APK wherease Chromium can be built as content shell or used through WebView .. . .. . https : groups.google.com a chromium.org forum topic chromium-dev zMDKC2x9o5w Comment : Do Yandex.Browser or Opera browser provide their UI as described in the chromium discusion groups.google.com a chromium.org forum topic chromium-dev https : groups.google.com a chromium.org forum topic chromium-dev zMDKC2x9o5w Comment : Thanks subbul for your reply . I have got a reply from Mozilla Forums too . here is the link : forums.mozillazine.org viewtopic.php f 47 t 2820443 http : forums.mozillazine.org viewtopic.php f 47 t 2820443 and got the reply from the chromium forums about the UI the Yandex.browser and Opera browser are not providing their UI as an open-source .", "Question : At the moment our application uses the Trident Win32 component but we want to move away from that for a few reasons chief among them being our desire to go cross-platform . We re looking at WebKit http : webkit.org and Gecko http : developer.mozilla.org en Gecko but I d love to get some feedback before I make a decision . Here are some of the most important requirements : .. . .. . 1 . It should be relatively fast with a small footprint . Ideally we would be able to trim away anything we don t need without too much effort . 2 . Decent documentation is important . I don t anticipate needing to do anything too unusual with it but you never know . 3 . We re using C++ and would like to work with a well-designed object-oriented architecture if possible . 4 . Cross-platform is a must and good performance would be helpful in the long run we may end up porting to mobile platforms . Are there any considerations I need to take into account before making a decision Has anyone worked with WebKit or Gecko before If so are there any articles or tutorials I might find useful Update : .. . .. . Thanks for the responses guys . We ended up going with Qt 4.5 which includes WebKit . We re really pleased with it so far in fact I think Qt is probably the best UI framework I ve ever used the difference between coding with the native Win32 APIs and this is staggering . It s also real easy to learn the only major issue we had was getting used to the signals-slots paradigm . Comment : Are you or can you be open-source If no that may limit what you can use . I think WebKit is LGPL Those restrictions aren t too bad if you re closed source Comment : We re not far enough along yet to make that decision but it s certainly a possibility . Comment : This question should be merged or linked with What embedded-browser for C++ project stackoverflow.com questions 835201 http : stackoverflow.com questions 835201 Although that question is about embedding web browser engine with rendering stripped off . .. . Answer : Try to opt for Webkit as it is used by many different browsers Konqueror Safari and Google chrome . This makes Webkit more versatile and more adaptable to other needs . The development of Gecko is very tied with Firefox . A lot of modifications made to Gecko are done because Firefox dictates them . For instance Firefox 3 decided that it was going to block all self-signed certificates for security purposes . The implementation has been done into Gecko s engine which means that any application that decides to embed Gecko has this security-constraint added to them . If you can stay with Webkit as it mainly a rendering engine for HTML pages . That s been developed with the intention to be used among different web browser . While Gecko is primarily the rendering engine of a single browser which just happens to offer an API for embedding . Comment : I would also hasten to add that Adobe AIR uses WebKit .", "Question : Right now I m using the latest ABC PDF version and use the Gecko rendering engine . However I notice that there are small differences between the way Firefox renders the HTML I m adding to my PDF and the way ABC PDF interprets the HTML . I was wondering if there is anything that can be done against this I m asking about Firefox specifically because I thought that browser used the same Gecko rendering engine as ABCPDF did so I thought it would be 100 the same . Does anyone know about this Couldn t find much about this on the internet though I do admit that I find it hard to come up with the correct search terms . .. . Answer : By default ABCpdf will use the print-css media type whereas Firefox will be using screen this can be changed by setting the media property http : www.websupergoo.com helppdfnet source 5-abcpdf xhtmloptions 2-properties media.htm . If the differences are more subtle it may be worth taking a look at engine configuration http : www.websupergoo.com helppdfnet source 5-abcpdf xhtmloptions 2-properties 1-engine.htm . It is important to note the Gecko engine used in ABCpdf is independent from the engine used in any local Firefox installation it should be assumed that it will be different in both version and configuration .", "Question : I understand that KHTML is the HTML Layout Engine used but what significance does the like Gecko part have Why is it there Is there a historical reason similar to the Mozilla part of the User Agent String .. . Answer : Konquerer began to pretend to be like Gecko to get the good pages and called itself Mozilla 5.0 compatible Konqueror 3.2 FreeBSD KHTML like Gecko . Read here for more information : http : webaim.org blog user-agent-string-history Comment : In case you see this answer and are Konfused Konqueror is the browser for KDE that WebKit is based on and Chrome and Safari are based on WebKit . Comment : The the good pages @Melad is talking about I learned were pages with frame s and iframe s which I guess are kinda like today s experimental CSS features and the whole idea of saying like Gecko would I guess be like Firefox starting to obey -webkit- CSS vendor prefixes because Mozilla got tired of developers only including the -webkit- prefixed rules and leaving out the -moz- ones .", "Question : Using the default TWebBrowser makes things easy to embed a web browser . Unfortunately the one that comes in by default is IE n . I m wondering how does one integrate a Gecko or WebKit one . 1 . Are there VCL examples somewhere 2 . If not how would one go about doing it 3 . Where s the best place to find the core for Gecko and or WebKit in an embeddable format .. . Answer : Edit : Lars beat me to it unfortunately .. . .. . Well there is an ActiveX control based on the Gecko engine that tries to present an exact copy of the IWebBrowser API which TWebBrowser uses . You can find it here : http : www.iol.ie locka mozilla control.htm Unfortunately it looks like it hasn t been updated in a while . The last version is based on Gecko 1.7.12 and I believe Gecko is currently up to 1.9.x used in Firefox 3", "Question : I need to access several sites simultaneously in my gecko-based browser under different proxies and cookies . Problem is that you can only setup cookies proxies for entire gecko browser class not for separate objects of it . Is there any workaround Comment : I m not sure what you mean by gecko browser class . Is this a browser you built yourself using the Mozilla libraries Also cookies are stored per site so I don t see how they can be a problem unless your browser is very different from the standard.. . Comment : I mean that proxies are applied to gecko via some static fields so if you open site1 with proxy1 and then in other process open site2 with proxy2 proxy2 will be applied to further work with site1 . Comment : And for cookies I need to be able to open same site in different threads with different cookies . .. . Answer : I solved it by creating a separate application with browser for each site I need to open but its ugly .", "Question : Id like to have Gecko Webkit other webbrowser embeded in Java as a swing awt control . I like something different to Jrex or JWebPane . Comment : It sure is a pity JwebPane hasn t seen the light of day . groups.google.com group javaposse browse thread thread http : groups.google.com group javaposse browse thread thread 5e9d30b484e084b4 may be of interest . .. . Answer : You could use JxBrowser . It lets you embed a browser instance in your Java application . It s compliant with Firefox Safari and Internet Explorer . It s easy to use : .. . .. . All infos here : .. . .. . http : www.teamdev.com jxbrowser .. . .. . Javadoc : .. . .. . http : www.teamdev.com downloads jxbrowser javadoc2 index.html .. . .. . Programmer s guide : .. . .. . http : www.teamdev.com downloads jxbrowser docs JxBrowser-PGuide.html .. . .. . Only one drawback : it s not free except for open-source projects . Further informations here : .. . .. . http : www.teamdev.com company specialprograms openSourceProgram Comment : It s used by Selenium for example Comment : I know but I am talking about JxBrowser . You mentioned it supports Firefox Safari and Internet Explorer but it seems it only supports Safari on Mac . Comment : @Supuhstar : not really . They are selling a component to embed browsers in a Java application . Comment : Update : since 4.0 version JxBrowser integrates only with Chromium 25 engine . Comment : All JXBrowser free for open-source information seems to have been removed from their website . Does anyone know if it is still free for open-source AS @Supuhstar said it is quite an expensive product . They can charge whatever they want for it but very few open-source projects can afford to pay 4 600 for a project license And the per-developer price of 1 600 doesn t make any sense for open-source plus it s also too expensive for open-source projects . Unfortunately this seems to be the only java component which is ready for serious browser-based applications .", "Question : At the moment our application uses the Trident Win32 component but we want to move away from that for a few reasons chief among them being our desire to go cross-platform . We re looking at WebKit http : webkit.org and Gecko http : developer.mozilla.org en Gecko but I d love to get some feedback before I make a decision . Here are some of the most important requirements : .. . .. . 1 . It should be relatively fast with a small footprint . Ideally we would be able to trim away anything we don t need without too much effort . 2 . Decent documentation is important . I don t anticipate needing to do anything too unusual with it but you never know . 3 . We re using C++ and would like to work with a well-designed object-oriented architecture if possible . 4 . Cross-platform is a must and good performance would be helpful in the long run we may end up porting to mobile platforms . Are there any considerations I need to take into account before making a decision Has anyone worked with WebKit or Gecko before If so are there any articles or tutorials I might find useful Update : .. . .. . Thanks for the responses guys . We ended up going with Qt 4.5 which includes WebKit . We re really pleased with it so far in fact I think Qt is probably the best UI framework I ve ever used the difference between coding with the native Win32 APIs and this is staggering . It s also real easy to learn the only major issue we had was getting used to the signals-slots paradigm . Comment : Are you or can you be open-source If no that may limit what you can use . I think WebKit is LGPL Those restrictions aren t too bad if you re closed source Comment : We re not far enough along yet to make that decision but it s certainly a possibility . Comment : This question should be merged or linked with What embedded-browser for C++ project stackoverflow.com questions 835201 http : stackoverflow.com questions 835201 Although that question is about embedding web browser engine with rendering stripped off . .. . Answer : A little history might help in your decision . When Apple was considering which engine to use in making Safari they looked at Gecko but decided to go with KHTML fork it and called it WebKit . Their reasons for doing this was that Gecko had tons of legacy cruft still leftover from Netscape and was far more complicated . KHTML WebKit was newer and thus had less legacy . It was also cleaner quicker and better documented . One of the goals of Firefox 3 was to clean up the codebase and simplify it . From what I ve heard they did do this but I don t know how it compares with current iterations of WebKit . It apparently wasn t enough for Google when they made Chrome and they have a significant stake in Firefox . See here http : arstechnica.com articles paedia mozilla-committed-to-gecko.ars 1 for more details . Comment : Firefox 3 was released on June 17th 2008 and by then Chrome had already been in development for 2 years if I recall correcly . I think it s safe to say that the restructuring Mozilla did for Firefox 3 had no relevance in Googles decission to go with Webkit .", "Question : I ve seen a few COM controls which wrap the Gecko rendering engine GeckoFX http : code.google.com p geckofx as well as the control shipped by Mozilla - mozctlx.dll http : stackoverflow.com questions 26147 is-it-possible-to-embed-gecko-or-webkit-in-a-cnet-win-form-just-like-a-webview . Is there a wrapper for Webkit that can be included in a .NET Winform application Comment : Jon what have you finally chosen Gecko or WebKit .. . Answer : There is OpenWebKitSharp a fork of WebKit.NET 0.5 and very advanced . Details : http : code.google.com p open-webkit-sharp", "Question : I m looking for a solid answer on whether or not there is an equivalent to -webkit-mask in Gecko browsers Firefox If not is there any way of degrading -webkit-mask in CSS to a straight background-image deal or should I just give up and use Javascript Thanks a lot Comment : Haven t seen a -moz-mask yet . I should totally make one for this year s Halloween . .. . Answer : You can apply svg-filters with css to HTML content in Gecko . Here http : weblogs.mozillazine.org roc archives 2008 06 applying svg ef.html is an example from a guy who likes to fiddle with mozilla code . It is from 2008 so it might be a bit outdated .", "Question : I ve seen a few COM controls which wrap the Gecko rendering engine GeckoFX http : code.google.com p geckofx as well as the control shipped by Mozilla - mozctlx.dll http : stackoverflow.com questions 26147 is-it-possible-to-embed-gecko-or-webkit-in-a-cnet-win-form-just-like-a-webview . Is there a wrapper for Webkit that can be included in a .NET Winform application Comment : Jon what have you finally chosen Gecko or WebKit .. . Answer : You can take a look at DotNetBrowser http : www.teamdev.com dotnetbrowser library that provides Chromium-based .NET WPF component that can be used in your .Net application to display modern web pages . Chromium is based on WebKit as well . The component displays graphics that is rendered by Chromium engine in separate process . The library supports Chromium s Multi-Process Architecture . There are no differences in web page rendering between DotNetBrowser and Google Chrome . The web page will look exactly as in Google Chrome . Here s code example that demonstrates how to create Browser instance and load some URL : .. . .. . To find out how to configure MS Visual Studio 2013 Project with DotNetBrowser you can take a look at Quick Start Guide http : www.teamdev.com downloads dotnetbrowser docs Quick-Start.html .. . .. . It s free for Open-Source projects Comment : This product looks like a reasonable solution but note that you must disclose your affiliation in your answers . stackoverflow.com help promotion http : stackoverflow.com help promotion", "Question : I need a gecko webbrowser-control .. . .. . I need a sample code or a link which explains how to use GECKO .. . .. . If anyone has used Gecko I could do with some advice Comment : What have you tried What have you explored as options Comment : possible duplicate : stackoverflow.com questions 26147 http : stackoverflow.com questions 26147 is-it-possible-to-embed-gecko-or-webkit-in-a-windows-form-just-like-a-webview Comment : Your answer is in your tags . What s the problem .. . Answer : Original tutorial with detailed snapshots can be found here https : xinyustudio.wordpress.com 2015 07 04 embedding-web-browsers-in-winform-applications more-3695 . To embed Gecko browser in your winform application you need : .. . .. . XulRunner : XULRunner is a Mozilla runtime package that can be used to bootstrap XUL+XPCOM applications that are as rich as Firefox and Thunderbird . It provides mechanisms for installing upgrading and uninstalling these applications . XULRunner can be downloaded here https : bitbucket.org geckofx . Choose the version you like . GeckoFx .net-assembly file which you can download from here https : bitbucket.org geckofx . Also choose the correct version which matches the XulRunner version . Unpack the GeckoFX-330.zip you will get below files : .. . .. . enter image description here http : i.stack.imgur.com 9mbqP.png .. . .. . Add references to the dlls as shown above click browse and select the Geckofx-Core.dll and Geckofx-Winforms.dll .. . .. . enter image description here http : i.stack.imgur.com s00bQ.png enter image description here http : i.stack.imgur.com uKTKb.png .. . .. . In the toolbox right-click and then select Choose Item select Geckofx-Winforms.dll and the Gecko winform control will be shown in the toolbox .. . .. . enter image description here http : i.stack.imgur.com 3SYDj.png enter image description here http : i.stack.imgur.com ImHPN.png .. . .. . Drag a GeckoWebBrowser control to the winform designer and let s call it browser enter image description here http : i.stack.imgur.com uozf1.png .. . .. . In the form1.cs file add below code : enter image description here http : i.stack.imgur.com ZrxlJ.png .. . .. . The line Gecko.Xpcom.Initialize @ . . xulrunner specifies where the xulrunner runtime is located . In this case we put it into a folder @ . . xulrunner . Now run the application yeah .. . .. . enter image description here http : i.stack.imgur.com UoWW2.png Comment : Thank you very much for taking your time to write this answer even though the question itself is a couple of years old.. .", "Question : I d love to know if there is such a thing as a Gecko.NET I mean just like we can embed a WebView and that is an instance of IE7 inside any Windows Forms application and tell it to navigateto fancy url . I d love to use Firefox or WebKit . Anybody tried this UPDATE : Please bear in mind that although it is possible to embed Gecko using the mentioned controls it is still impossible to print while using Gecko . UPDATE March 2010 : It s still not possible to print natively using GeckoFX however a couple of methods exist that may be enough depending upon what you re trying to do . See : http : geckofx.org viewtopic.php id 796 for more information . UPDATE October 2013 : I am no longer doing Windows development so I have no interest in this but seems like the development of Gecko can be found here : https : bitbucket.org geckofx and it seems to be recently updated . Leaving this here for future Windows devs .. . Answer : I Belive Gecko FX 1 is the thing you need . To Quote from the web site .. . .. . GeckoFX is a Windows Forms control written in clean commented C that embeds the Mozilla Gecko browser control in any Windows Forms Application . It also contains a simple class model providing access to the HTML and CSS DOM . 1 I can t post a link as new users aren t allowed to add hyperlinks Search for geckofx on google-code . Comment : The link is at code.google.com p geckofx http : code.google.com p geckofx Comment : Active developed vesrion of GeckoFX is available at : bitbucket.org geckofx https : bitbucket.org geckofx", "Question : I ve seen a few COM controls which wrap the Gecko rendering engine GeckoFX http : code.google.com p geckofx as well as the control shipped by Mozilla - mozctlx.dll http : stackoverflow.com questions 26147 is-it-possible-to-embed-gecko-or-webkit-in-a-cnet-win-form-just-like-a-webview . Is there a wrapper for Webkit that can be included in a .NET Winform application Comment : Jon what have you finally chosen Gecko or WebKit .. . Answer : I was able to do this using CefSharp which uses chromium browser http : www.chromium.org Home . Here are a couple posts that show this in action : .. . .. . Running Chrome inside O2 http : diniscruz.blogspot.co.uk 2012 05 running-chome-inside-o2.html .. . Video : Installing and running CefSharp C Chrome with WPF Browser http : diniscruz.blogspot.co.uk 2012 05 video-installing-and-running-cefsharp-c.html .. . Video : Running Chrome Natively in O2 and VisualStudio http : diniscruz.blogspot.co.uk 2012 05 video-running-chrome-natively-in-o2-and.html", "Question : I d love to know if there is such a thing as a Gecko.NET I mean just like we can embed a WebView and that is an instance of IE7 inside any Windows Forms application and tell it to navigateto fancy url . I d love to use Firefox or WebKit . Anybody tried this UPDATE : Please bear in mind that although it is possible to embed Gecko using the mentioned controls it is still impossible to print while using Gecko . UPDATE March 2010 : It s still not possible to print natively using GeckoFX however a couple of methods exist that may be enough depending upon what you re trying to do . See : http : geckofx.org viewtopic.php id 796 for more information . UPDATE October 2013 : I am no longer doing Windows development so I have no interest in this but seems like the development of Gecko can be found here : https : bitbucket.org geckofx and it seems to be recently updated . Leaving this here for future Windows devs .. . Answer : Update 2016 : .. . .. . BrowseEmAll.Gecko http : www.browseemall.com CoreAPI Gecko .. . .. . A .Net component which can be used to integrate the Firefox engine into your .Net application . This is based on Geckofx https : bitbucket.org geckofx but unlike the current version of Geckofx this will work with a normal release build of Firefox . To use Geckofx you will need to build Firefox yourself . Again commercial support is available but the component itself is fully open-source . Full disclosure : I work for this company so take everything I say with a grain of salt", "Question : I ve seen a few COM controls which wrap the Gecko rendering engine GeckoFX http : code.google.com p geckofx as well as the control shipped by Mozilla - mozctlx.dll http : stackoverflow.com questions 26147 is-it-possible-to-embed-gecko-or-webkit-in-a-cnet-win-form-just-like-a-webview . Is there a wrapper for Webkit that can be included in a .NET Winform application Comment : Jon what have you finally chosen Gecko or WebKit .. . Answer : The Windows version of Qt 4 includes both WebKit and classes to create ActiveX components . It probably isn t an ideal solution if you aren t already using Qt though . Comment : Can one use Qt4 from within c", "Question : I ve seen a few COM controls which wrap the Gecko rendering engine GeckoFX http : code.google.com p geckofx as well as the control shipped by Mozilla - mozctlx.dll http : stackoverflow.com questions 26147 is-it-possible-to-embed-gecko-or-webkit-in-a-cnet-win-form-just-like-a-webview . Is there a wrapper for Webkit that can be included in a .NET Winform application Comment : Jon what have you finally chosen Gecko or WebKit .. . Answer : try this one http : code.google.com p geckofx hope it ain t dupe or this one i think is better http : webkitdotnet.sourceforge.net", "Question : null .. . Answer : I have a windows application that uses gecko 31 firefox embeded browser . I want something like F12 to debug my javascript files in it same html file in local that uses jquery refrences and accordion is ok but when open it in embeded gecko app it won t work . how can I debug my app remember I ve tested a simple javascript alert in another js file and add refrence to it and it worked but jquery won t . also added jquery in local not load it from intenet it works in firefox but not in embeded", "Question : My ultimate goal is to build a web-crawler capable of downloading all of the images on a webpage . My understanding from the reading I ve done is that I need to embed a rendering layout engine such as Gecko or Webkit . Unfortunately I m running windows so PyWebkit is out http : www.velocityreviews.com forums t734935-ann-pywebkit-python-bindings-for-webkit-dom-alpha.html and short learning C++ for Gecko or Java to use Rhino I m not sure where to turn . Is there a reliable rendering engine with python bindings that will work in windows 64-bit Windows 7 Is there an easy way to execute javascript within a python script on windows Comment : if this is just for personal use you might consider installing linux in VirtualBox and use pyWebkit from there . Comment : Ideally it would run on windows so it could run on someone else s computer so the data can live on their system . That said by the time I showed them how to install python and whatever library I wind up using I might as well just do it on my laptop and carry a jump drive over . .. . Answer : You don t need Webkit to do that . All you need it an engine to run Javascript code so take a look at Gogole V8 http : code.google.com p v8 or Mozilla SpiderMonkey http : www.mozilla.org js spidermonkey . If you re prefer Python to build your crawler you may want to use PyV8 http : code.google.com p pyv8 as it provides all necessary bindings . Comment : Splitting tiny hairs : PyV8 appears to only have a version for 32-bit windows http : code.google.com p pyv8 downloads list . Also for others reading installing SpiderMonkey on Windows appears to be nontrivial but I found this article how to do it http : www.mailsend-online.com blog extending-spidermonkey-javascript-on-windows.html . Comment : 32-bit shouldn t stop you . Just install matching version of Python and you re good to go .", "Question : Working on part of my website . Here s my code : http : jsfiddle.net firelizzard ASdMq http : jsfiddle.net L59wY 10 .. . .. . In Chrome Beta WebKit : .. . .. . enter image description here http : i.stack.imgur.com 2uLRR.png .. . .. . In Firefox Gecko : .. . .. . Gecko Rendered http : i.stack.imgur.com sXlqL.png .. . .. . Gecko is rendering this code how I want it . What is up with webkit Chrome User Agent : Mozilla 5.0 -OS- AppleWebKit 535.19 KHTML like Gecko Chrome 18.0.1025.11 Safari 535.19 .. . .. . Firefox User Agent : Mozilla 5.0 -OS- Gecko 20100101 Firefox 10.0.1 .. . .. . .. . .. . Tally .. . .. . Gecko : .. . .. . Works : Firefox 10 .. . .. . WebKit : .. . .. . Doesn t : Safari 5 Chrome 18 .. . .. . Trident : .. . .. . Works : Internet Explorer 8 9 .. . Doesn t : Internet Explorer 7 .. . .. . Presto : .. . .. . Doesn t : Opera Comment : This is how it looks in Opera : i.imgur.com 5gITr.png http : i.imgur.com 5gITr.png Comment : td class dm other horz 2 td td class dm other horz 3 td makes it look adequate in Opera 11.61. . Comment : @vines would you post that as an answer so I can credit you Using that I fixed all of the problems except in IE 8 : http : jsfiddle.net firelizzard ASdMq 3 Comment : Well why not whether it was helpful.. . : .. . Answer : The issue definetely looked as a bug to me . While playing with the code posted on jsfiddle I ve noticed that adding some content to cells makes Opera 11.61 behave closer to what was expected : .. . .. . I ve came to try it because it reminded me of the notorious whitespace problems http : www.42inc.com estephen htmlner whitespacebugs.html I m hearing about from time to time :" ] }
[ "yes-answer-short" ]
seamonkey
UNK_RELATION
qpdf@command-line@24
qpdf -- qpdf is a free @placeholder program that can convert one pdf file to another equivalent pdf file .
{ "confidence": [ 51.740875244140625, 48.21721649169922, 34.03643035888672, 31.690908432006836, 28.177701950073242, 20.932010650634766, 13.973240852355957, 13.540389060974121, 11.483552932739258, 11.483552932739258, 11.483552932739258, 11.483552932739258, 11.483552932739258, 11.483552932739258, 11.483552932739258, 11.483552932739258, 11.483552932739258, 11.483552932739258, 11.483552932739258, 11.483552932739258, 11.483552932739258, 11.483552932739258, 11.483552932739258, 11.483552932739258, 11.483552932739258, 11.483552932739258 ], "content": [ "The open-source qpdf https : github.com qpdf qpdf library seems like it should be able to do that for example it has sample code for inverting some of the images in a PDF .", "Is it possible to do this with qpdf", "good-uc.pdf : https : drive.google.com file d 0B-Nxr9ySWJnNX2dZSmVscEZIRmc view usp sharing bad-uc-pdf : https : drive.google.com file d 0B-Nxr9ySWJnNN2t6X2hFNTBxa0U view usp sharing .. . .. . I have tried : pdftk pdftops ghostscript pdf2ps ps2pdf and qpdf but still couldn t get the images to load before the text.. . Can someone experts in PDF shed some lights on why these two PDFs behave differently.. . .. . .. . My guess is infix restructure the PDF so the images get loaded before the embedded text but I cannot find a Linux command-line tool that can do this kind of PDF structure Optimization .", "I d like to create a tool to remove all images from a PDF file .", "But using that code as a starting point I have not had success with the following : .. . .. . All the images remain in the output PDF file .", "I have been trying to find a way to get our OCRed PDF bad-uc.pdf to behave the same as the infix saved good-uc.pdf .", "Do you know if there is any Linux tool can alter the rendering mode", "So I can ge tthe bad-uc.pdf to render in mode 3 invisible .", "If so what am I doing wrong", "If not is there a better open-source tool", "If you open the following two files in Acrobat Reader any version should show the same problem you will see the bad-uc.pdf loads the text before the page image very slowly .. . where the good-uc.pdf loads everything together seems much faster and responsive .", "Greatly appreciated", "Jeffrey", "shed some lights on why these two PDFs behave differently.. . .. . .. . Actually both your PDFs take about the same time until being properly displayed by Adobe Reader on my computer .", "But while your bad-uc.pdf first shows the OCR ed text and then covers it with the scan the good-uc.pdf first seems to show a plain page and then covers it with the scan .", "The cause for this is that good-uc.pdf paints the OCR ed text in rendering mode 3 invisible while bad-uc.pdf paints it normally in rendering mode 0 fill outline with fill color black .", "As invisible painting may require less time than actual painting in black on white there might even be an objective difference between the rendering times but I think it mostly is subjective .", "Thank you very much mkl for the great information", "I don t know such tools i merely have an idea how to implement such a tool .", "Thanks a lot sir", "That was a great hint .", "I have managed to wrote a simple script that inserts the rendering mode tags into appropriate places .", "However that script might only be useful to our application as all of our PDFs are generated by ABBYY and we have control over the PDF s format consistency to allow my script to insert tags in the correct places .", "P.S .", "Sorry I really wanted to press the useful arrow but my reputation is not high enough.. . Again thanks a lot for the great hint", "AWESOME" ] }
{ "confidence": [ 74.67232513427734, 45.35368347167969 ], "content": [ "Question : null .. . Answer : I d like to create a tool to remove all images from a PDF file . The open-source qpdf https : github.com qpdf qpdf library seems like it should be able to do that for example it has sample code for inverting some of the images in a PDF . But using that code as a starting point I have not had success with the following : .. . .. . All the images remain in the output PDF file . Is it possible to do this with qpdf If so what am I doing wrong If not is there a better open-source tool", "Question : I have been trying to find a way to get our OCRed PDF bad-uc.pdf to behave the same as the infix saved good-uc.pdf . If you open the following two files in Acrobat Reader any version should show the same problem you will see the bad-uc.pdf loads the text before the page image very slowly .. . where the good-uc.pdf loads everything together seems much faster and responsive . good-uc.pdf : https : drive.google.com file d 0B-Nxr9ySWJnNX2dZSmVscEZIRmc view usp sharing bad-uc-pdf : https : drive.google.com file d 0B-Nxr9ySWJnNN2t6X2hFNTBxa0U view usp sharing .. . .. . I have tried : pdftk pdftops ghostscript pdf2ps ps2pdf and qpdf but still couldn t get the images to load before the text.. . Can someone experts in PDF shed some lights on why these two PDFs behave differently.. . .. . .. . My guess is infix restructure the PDF so the images get loaded before the embedded text but I cannot find a Linux command-line tool that can do this kind of PDF structure Optimization . Greatly appreciated Jeffrey .. . Answer : shed some lights on why these two PDFs behave differently.. . .. . .. . Actually both your PDFs take about the same time until being properly displayed by Adobe Reader on my computer . But while your bad-uc.pdf first shows the OCR ed text and then covers it with the scan the good-uc.pdf first seems to show a plain page and then covers it with the scan . The cause for this is that good-uc.pdf paints the OCR ed text in rendering mode 3 invisible while bad-uc.pdf paints it normally in rendering mode 0 fill outline with fill color black . As invisible painting may require less time than actual painting in black on white there might even be an objective difference between the rendering times but I think it mostly is subjective . Comment : Thank you very much mkl for the great information Do you know if there is any Linux tool can alter the rendering mode So I can ge tthe bad-uc.pdf to render in mode 3 invisible . Comment : I don t know such tools i merely have an idea how to implement such a tool . Comment : Thanks a lot sir That was a great hint . I have managed to wrote a simple script that inserts the rendering mode tags into appropriate places . However that script might only be useful to our application as all of our PDFs are generated by ABBYY and we have control over the PDF s format consistency to allow my script to insert tags in the correct places . P.S . Sorry I really wanted to press the useful arrow but my reputation is not high enough.. . Again thanks a lot for the great hint AWESOME" ] }
[ "yes-answer-long", "yes-answer-short" ]
command-line
UNK_RELATION
wincrypt@api@36
wincrypt -- the portion of windows @placeholder dealing with cryptography .
{ "confidence": [ 28.85609245300293, 27.49578094482422, 26.973007202148438, 26.973007202148438, 26.973007202148438, 26.973007202148438, 22.4307804107666, 21.766021728515625, 20.168663024902344, 19.120113372802734, 18.772869110107422, 18.014448165893555, 18.006561279296875, 17.316198348999023, 17.316198348999023, 17.316198348999023, 17.179885864257812, 16.507125854492188, 16.45860481262207, 16.45860481262207, 16.065134048461914, 15.933738708496094, 15.933738708496094, 15.246674537658691, 15.202371597290039, 14.04759407043457, 12.595372200012207, 12.472834587097168, 12.383466720581055, 12.383466720581055, 12.383466720581055, 12.383466720581055, 12.383466720581055, 12.383466720581055, 12.383466720581055, 12.383466720581055, 12.383466720581055, 12.383466720581055, 12.383466720581055, 12.383466720581055, 12.383466720581055, 12.383466720581055, 12.383466720581055, 12.383466720581055, 12.383466720581055, 12.383466720581055, 12.383466720581055, 12.383466720581055, 12.383466720581055, 12.383466720581055, 12.383466720581055, 12.383466720581055, 12.383466720581055, 12.383466720581055, 12.383466720581055, 12.383466720581055, 12.383466720581055, 12.383466720581055, 12.383466720581055, 12.383466720581055, 12.383466720581055, 12.383466720581055, 12.383466720581055, 12.383466720581055, 12.383466720581055, 12.383466720581055, 12.383466720581055, 12.383466720581055, 12.383466720581055, 12.383466720581055, 12.383466720581055, 12.383466720581055, 12.383466720581055, 12.383466720581055, 12.383466720581055, 12.383466720581055, 12.383466720581055, 12.383466720581055, 12.383466720581055, 12.383466720581055, 12.383466720581055, 12.383466720581055, 12.383466720581055, 12.383466720581055, 12.383466720581055, 12.383466720581055, 12.383466720581055, 12.383466720581055, 12.383466720581055, 12.383466720581055, 12.383466720581055, 12.383466720581055, 12.383466720581055, 12.383466720581055, 12.383466720581055, 12.383466720581055, 12.383466720581055, 12.383466720581055, 12.383466720581055, 12.383466720581055 ], "content": [ "...disable the encryption which is encrypted in Wincrypt API .", "The data was encrypted with RC4 using WinCrypt .", "I am trying to use wincrypt api to implement AES encryption decryption .", "I want to disable the encryption which is encrypted in Wincrypt API .", "- are you saying you want to decrypt content encrypted with the Wincrypt API", "I am a novice in C++ and started learning wincrypt yesterday .", "The important part of it is that it uses the wincrypt.h library to add cryptography to strings .", "See MSDN document : https : msdn.microsoft.com query dev14.query appId Dev14IDEF1 l EN-US k k Wincrypt 2FCryptDecrypt k CryptDecrypt k DevLang-C 2B 2B k TargetOS-Windows rd true https : msdn.microsoft.com query dev14.query appId Dev14IDEF1 l EN-US k k Wincrypt 2FCryptDecrypt k CryptDecrypt k DevLang-C 2B 2B k TargetOS-Windows rd true .. . .. . Based on your code you should use the same SessionKey as the one used in the Encrypt method to decrypt the encrypted message .", "https : msdn.microsoft.com en-us library windows desktop aa379932 v vs.85 .aspx .. . .. . I m aware that one can t use it with newer version of wincrypt just because it is not present in header file but can a program based on old wincrypt.h and crypt32.lib still retrieve private key from certificate store in Windows 10", "The application is major C but it has a small portion an independent module in fact of it written in C++ .", "You ve run into an idiosyncrasy of Windows .", "On 64-bit Windows if a 32-bit application attempts to access that directory it gets redirected https : msdn.microsoft.com en-us library windows desktop aa384187 28v vs.85 29.aspx to C : Windows SysWow64 .", "Also I see this post : .. . .. . similar problem http : stackoverflow.com questions 30090556 certcreatecertificatechainengine-returning-invalid-parameter-0x80070057 .. . .. . and other http : stackoverflow.com questions 6429251 vs2010-structure-change-in-cryptoapi-v7-0a-vs-v6-0a-wincrypt-h .. . .. . but I can not find solution .", "The file you re reading is inside the C : Windows System32 directory .", "I m using Visual Studios 2012 on Windows 8.1 on a 64 bit machine .", "Can the Windows Crypto API be used to develop a simple https client", "As there are cmd.exe files in both C : Windows System32 and C : Windows SysWow64 but they re different builds and so different hashes programs checking the hash of C : Windows System32 cmd.exe will give different results depending on whether they re 32-bit or 64-bit .", "I am reading a line of encrypted text generated with the WinCrypt API using Visual Studio C++ 2010 express like this : .. . .. . The debugger shows that element is pointing to : .. . .. . element has data type wchar-t however in order for decryption to take place I need it as a char .", "The source code looks correct to me based on my reading of it unfortunately I don t have a Windows machine to test it on .", "The question to answer is then - how to get the parent certificate or all certificates in chain using Windows Certificate Store", "I use visual-studio-2013 and windows-7 32bit .", "I want to get parent certificate or all certificates in chain for that matter from Windows Certificate Store assuming I know the location of the end certificate .", "Windows SDK 7.x offers RSAKey sample Samples security cryptoapi encryptdecrypt rsakey which features use of CryptGenKey and CryptEncrypt .", "I am mainly interested in this two functions : .. . .. . CryptProtectData .. . .. . https : msdn.microsoft.com en-us library windows desktop aa380261 v vs.85 .aspx .. . .. . CryptUnprotectData .. . .. . https : msdn.microsoft.com en-us library windows desktop aa380882 v vs.85 .aspx .. . .. . This functions are part of Crypt32.dll .. . .. . https : msdn.microsoft.com en-us library aa380261 VS.85 .aspx .. . .. . What would be the best way to do this", "Seems a bit odd for Windows API functions to insist on that .", "I made a c++ application that computes MD5 hash digest for files following microsoft implementation in this link http : msdn.microsoft.com en-us library windows desktop aa382380 28v vs.85 29.aspx the case is the md5 hash digest is correct for any type file when comparing it with any ready tool that computes the md5 digest .", "SysStringLen http : msdn.microsoft.com en-us library windows desktop ms221240 28v vs.85 29.aspx expects a BSTR as its argument which is a string type used in COM .", "I use QtCreator with MinGW and Qt 5.4.0 .. . .. . When I try to compile this simple line gets me some errors : .. . .. . with DATA BLOB data.password and DATA BLOB data.uncryptedPassword .. . .. . Gets me : .. . .. . As said on the title I included the Crypt32.Lib file in my .pro : .. . .. . And as instructed in the MSDN api https : msdn.microsoft.com en-us library windows desktop aa380882 28v vs.85 29.aspx included wincrypt.h : .. . .. . The error being still there I checked wincrypt.h to make sure CryptUnprotectData is defined and it is : .. . .. . I ve been trying for the whole day .. . does anyone have a clue", "I am new here I hope I am doing this right .", "except when the file in hands is an executable like cmd.exe .", "the hash digest is different and depends on the location of the exe .", "if you move the cmd.exe to another location then the digest becomes different again .", "so I went on implementing the same functionality using openssl library to face the same problem .", "I noticed that the hash digest from microsoft implementation and openssl is the same .", "so I think there is something missing in reading the file before passing it to compute the digest .", "but I searched alot to find nothing .", "I tried reading the file using createfile from win API and fopen to give the same result.. . so please help me with this what am I missing", "here is the source code .. . .. . this code computes the hash 59a1d4facd7b333f76c4142cd42d3aba on the other hand digital volcano hash tool and md5 and sha checksum utility v2.1 computes the hash fc0b4a626881d7c5980d757214db2d25", "We can t know what you re missing - we don t know what you have .", "Please read stackoverflow.com help mcve http : stackoverflow.com help mcve", "A md5 hash of a file should be independent of path if it is not there is a problem with the md5 code .", "I ve added the source code", "any update thanks in advance", "Your code is correct", "You can see this for yourself by building your example program both 32-bit and 64-bit and observing that they give different answers .", "thanks very much dear .", "I m having trouble compiling the following code for c++ getting the above error : .. . .. . However this seems to be the way this is called here is one which has the same call and gives me the same error https : github.com sakbhav PassWd Mgr blob master passcrypt.cpp .", "VS suggests a couple of possible fixes which I ll try but does anyone know why this behaviour is happening and how to avoid it", "The suggested fixes are : .. . .. . error C2664 : CryptCreateHash : cannot convert parameter 5 from unsigned long to HCRYPTHASH Types pointed to are unrelated .. . .. . conversion requires reinterpret-cast C-style cast or function-style cast .. . .. . Thanks .. . .. . Aodh n .. . .. . Edit : It doesn t happen for 32-bit compilation so I guess that s what the examples I ve read were done in .", "I ll update whether the suggested fixes worked for 64 bit compilation .", "conversion requires reinterpret-cast C-style cast or function-style cast Doesn t this help you", "Yes I m going to try out those and see if they work - but none of the examples I ve seen used those so I m asking the question why it should be the case that it happens here .", "Your MD5Context.hHash member isn t big enough in 64-bit mode .", "The simple workaround is to declare it as HCRYPTHASH instead of unsigned long .", "Thank you I m glad I know that now .", "I ve written this code but it doesn t work .", "CryptEncrypt returns FALSE and GetLastError ERROR MORE DATA .", "Whatever value I specify in pdwDataLen it always returns FALSE and increases value in pdwDataLen by 0x10 .", "what am I doing wrong", "stackoverflow.com questions 9091108 https : stackoverflow.com questions 9091108 cryptencrypt-aes-256-fails-at-encrypting-last-block maybe relevant", "It doesn t complain about pdwDataLen its beef is with dwBufLen .", "Which is 1024 in your code not test data len .", "And must be more than pdwDataLen .", "You reversed the arguments .", "Thank you @Hans", "Now it works .", "CONTEXT : I m developing an application that requires a licensing process to add some security to it .", "The latter already has a licensing process implemented which in summary consists of : when the app initializes it looks for a license file containing encrypted info generated by the developers based on some customer info a string .", "If the file is valid the app continues your execution otherwise it shuts down .", "DESIRE : Both parts or modules must have a license-based security and should share the same license file .", "PROBLEM : I m trying to adapt the security process described before to C in order to use it on the other part of the app .", "I haven t found a way of using wincrypt.h functions to do so maybe because my knownledge of C is not that great or maybe because I simply can t do that .", "I ended up using RSA but I ended up with two different cryptograph methods .", "QUESTION : Is there a way of using wincrypt.h in C", "If not is there any other way of developing a en de cription of a string process that can be used in both C++ and C", "Any help is appreciated .", "check this previous question it should have everything you need : stackoverflow.com questions 935664 http : stackoverflow.com questions 935664 possible-to-call-c-code-from-c", "@MarcoFatica Thanks for the link even thought doesn t seem that simple deep down I knew it wouldn t be I ll study it and give it a shot .", "We are in the process of debugging roaming credentials .", "We realized there are AD user objects containing more then 2000 RSA keys .", "Now I have to find out which process application causes havoc and calls the DPAPI functions to create all those keys .", "Please note I have only very basic WinDBG skills as I am no developer .", "Debugging questions are notoriously hard to answer because - in general - you have access to much more information and access to systems than we have .", "This question probably doesn t contain enough information to answer it .", "What does it mean that a function in particular CryptExportPKCS8 is deprecated", "Or is it impossible to access such data without using more up-to-date API", "Deprecated means going away change your code .", "In this case it appears that MS wants you to use PFXExportCertStoreEx instead .", "That doesn t answer my question at all - I can read the first line of the link I provided myself .", "The question is whether the deprecated function still works given deprecated API correct implementation and modern system .", "Who knows .", "The only way to know is to try it .", "But even if it does work you are playing with fire any future update could make it stop working .", "I need to get each one in order to build my own custom X509 STORE using OpenSSL .", "I think the proper course of action would be : .. . .. . 1 . obtain first certificate using CertFindCertificateInStore done .. . 2 . get the certificate chain using CertGetCertificateChain done .. . 3 . extract the certificates from chain", "4 . for each certificate in chain convert it using d2i X509 done .. . .. . or .. . .. . 1 . obtain first certificate using CertFindCertificateInStore done .. . 2 . get the parent certificate if exists", "3 . convert it using d2i X509 go to 2 .", "done .. . .. . Then create the store .", "I m probably missing some more or less occult function here .", "as the CertFindCertificateInStore outputs a chain context one can access it s members using the beautiful construction : .. . .. . chainContext- rgpChain 0 - rgpElement iCertIndex - pCertContext- pbCertEncoded .. . .. . where iCertIndex is between 0 end-certificate and chainSize -1 self-signed root certificate ." ] }
{ "confidence": [ 34.91358184814453, 30.5293025970459, 29.248443603515625, 28.074735641479492, 27.273162841796875, 25.309856414794922, 22.927087783813477, 17.13959312438965, 16.059125900268555, 16.059125900268555, 15.923206329345703, 14.64517593383789, 13.83411979675293, 11.190834999084473, 11.190834999084473, 9.66196346282959, 9.66196346282959, 9.66196346282959 ], "content": [ "Question : I want to disable the encryption which is encrypted in Wincrypt API . Please give me suggestions how to do that general sugestions are also welcomed .. . Below is the Code Samples from EncryptedMessage.cpp : .. . .. . Useful Code Snipped from another class Below : Comment : ...disable the encryption which is encrypted in Wincrypt API . - are you saying you want to decrypt content encrypted with the Wincrypt API Your phrasing is not helping the clarity of your question . Comment : Flagged : Unclear Comment : @WhoizCraig : yes thats what i want to say Comment : So are you saying you want to have a function that takes a EncryptedMessage and KeyBlob and returns a TextMessage The question is very unclear . We don t have access to your classes as well it seems . Please provide a MCVE help mcve . Comment : Start by changing the title . .. . Answer : If you want to decrypt the encrypted message you should use the CryptDecrypt function . See MSDN document : https : msdn.microsoft.com query dev14.query appId Dev14IDEF1 l EN-US k k Wincrypt 2FCryptDecrypt k CryptDecrypt k DevLang-C 2B 2B k TargetOS-Windows rd true https : msdn.microsoft.com query dev14.query appId Dev14IDEF1 l EN-US k k Wincrypt 2FCryptDecrypt k CryptDecrypt k DevLang-C 2B 2B k TargetOS-Windows rd true .. . .. . Based on your code you should use the same SessionKey as the one used in the Encrypt method to decrypt the encrypted message .", "Question : null .. . Answer : I am a novice in C++ and started learning wincrypt yesterday . I have written this piece of code .. . .. . and I am stuck on the CryptEncrypt function . I read the MSDN page and have not understood anything after hKey 0 True 0 . Explain me for example what a A pointer to a buffer that contains the plaintext to be encrypted is . Thank you in advance Comment : Windows SDK 7.x offers RSAKey sample Samples security cryptoapi encryptdecrypt rsakey which features use of CryptGenKey and CryptEncrypt . Comment : Thank you but 1 . I can t find the folder 2 . I need the functions explained and some help with my AES code .", "Question : I use visual-studio-2013 and windows-7 32bit . I want to verify digital-signature by root and chain of certificate . So I get 0x80070057 error-code in certcreatecertificatechainengine . Also I see this post : .. . .. . similar problem http : stackoverflow.com questions 30090556 certcreatecertificatechainengine-returning-invalid-parameter-0x80070057 .. . .. . and other http : stackoverflow.com questions 6429251 vs2010-structure-change-in-cryptoapi-v7-0a-vs-v6-0a-wincrypt-h .. . .. . but I can not find solution . .. . Answer : I found the solution . In the project property page I change the platform toolset to : .. . .. . enter image description here http : i.stack.imgur.com bOJXC.png", "Question : What does it mean that a function in particular CryptExportPKCS8 is deprecated https : msdn.microsoft.com en-us library windows desktop aa379932 v vs.85 .aspx .. . .. . I m aware that one can t use it with newer version of wincrypt just because it is not present in header file but can a program based on old wincrypt.h and crypt32.lib still retrieve private key from certificate store in Windows 10 Or is it impossible to access such data without using more up-to-date API .. . Answer : Deprecated means going away change your code . In this case it appears that MS wants you to use PFXExportCertStoreEx instead . Comment : That doesn t answer my question at all - I can read the first line of the link I provided myself . The question is whether the deprecated function still works given deprecated API correct implementation and modern system . Comment : Who knows . The only way to know is to try it . But even if it does work you are playing with fire any future update could make it stop working .", "Question : null .. . Answer : I am trying to use wincrypt api to implement AES encryption decryption . I ve written this code but it doesn t work . CryptEncrypt returns FALSE and GetLastError ERROR MORE DATA . Whatever value I specify in pdwDataLen it always returns FALSE and increases value in pdwDataLen by 0x10 . what am I doing wrong Comment : stackoverflow.com questions 9091108 https : stackoverflow.com questions 9091108 cryptencrypt-aes-256-fails-at-encrypting-last-block maybe relevant Comment : It doesn t complain about pdwDataLen its beef is with dwBufLen . Which is 1024 in your code not test data len . And must be more than pdwDataLen . You reversed the arguments . Comment : Thank you @Hans Now it works .", "Question : null .. . Answer : I have seen the other links on this site about this topic but they are not helpful . If anyone can help me with this I would greatly appreciate it . I am reading a line of encrypted text generated with the WinCrypt API using Visual Studio C++ 2010 express like this : .. . .. . The debugger shows that element is pointing to : .. . .. . element has data type wchar-t however in order for decryption to take place I need it as a char . The data was encrypted with RC4 using WinCrypt . I have tried wcstombs and it does not work at all . Results in cmds being . I am not sure what I am doing wrong but I need to somehow have this data as a char or perhaps I am missing something completely . From what I have read here http : msdn.microsoft.com en-us library 78zh94ax.aspx on MSDN it would appear that I would need to specify a new locale..but I am not sure which locale to specify in order for this data to make sense.. . Here is the full code : Comment : wchar-t element anything wouldn t compile show your actual code . SysStringLen only works on a BSTR properly allocated with SysStringAlloc which element apparently isn t . The result-of encryption is binary-data - how on earth did you manage to get it as a Unicode string Comment : SysStringLen http : msdn.microsoft.com en-us library windows desktop ms221240 28v vs.85 29.aspx expects a BSTR as its argument which is a string type used in COM . It has the string-length in the first 2 or 4 bytes with the actual characters following . Use wcslen http : en.cppreference.com w cpp string wide wcslen to find the length of your string . And are you sure about the need to convert to a char string Seems a bit odd for Windows API functions to insist on that . Comment : How to convert wchar-t to-char https : www.daniweb.com software-development cpp threads 87362 how-to-convert-wchar t-to-char Comment : @Praetorian turns out his I tried this wasn t actually the real code Comment : I recommend you modify the server to encode the binary-data with Base64 or Hex encoding . Just dumping binary-data into a text format like HTML and hoping it will come out intact on the other end - you are gonna have a bad time .", "Question : null .. . Answer : CONTEXT : I m developing an application that requires a licensing process to add some security to it . The application is major C but it has a small portion an independent module in fact of it written in C++ . The latter already has a licensing process implemented which in summary consists of : when the app initializes it looks for a license file containing encrypted info generated by the developers based on some customer info a string . If the file is valid the app continues your execution otherwise it shuts down . The important part of it is that it uses the wincrypt.h library to add cryptography to strings . DESIRE : Both parts or modules must have a license-based security and should share the same license file . PROBLEM : I m trying to adapt the security process described before to C in order to use it on the other part of the app . I haven t found a way of using wincrypt.h functions to do so maybe because my knownledge of C is not that great or maybe because I simply can t do that . I ended up using RSA but I ended up with two different cryptograph methods . QUESTION : Is there a way of using wincrypt.h in C If not is there any other way of developing a en de cription of a string process that can be used in both C++ and C Any help is appreciated . Comment : check this previous question it should have everything you need : stackoverflow.com questions 935664 http : stackoverflow.com questions 935664 possible-to-call-c-code-from-c Comment : @MarcoFatica Thanks for the link even thought doesn t seem that simple deep down I knew it wouldn t be I ll study it and give it a shot .", "Question : I am new here I hope I am doing this right . I made a c++ application that computes MD5 hash digest for files following microsoft implementation in this link http : msdn.microsoft.com en-us library windows desktop aa382380 28v vs.85 29.aspx the case is the md5 hash digest is correct for any type file when comparing it with any ready tool that computes the md5 digest . except when the file in hands is an executable like cmd.exe . the hash digest is different and depends on the location of the exe . if you move the cmd.exe to another location then the digest becomes different again . so I went on implementing the same functionality using openssl library to face the same problem . I noticed that the hash digest from microsoft implementation and openssl is the same . so I think there is something missing in reading the file before passing it to compute the digest . but I searched alot to find nothing . I tried reading the file using createfile from win API and fopen to give the same result.. . so please help me with this what am I missing here is the source code .. . .. . this code computes the hash 59a1d4facd7b333f76c4142cd42d3aba on the other hand digital volcano hash tool and md5 and sha checksum utility v2.1 computes the hash fc0b4a626881d7c5980d757214db2d25 Comment : We can t know what you re missing - we don t know what you have . Please read stackoverflow.com help mcve http : stackoverflow.com help mcve Comment : A md5 hash of a file should be independent of path if it is not there is a problem with the md5 code . Comment : I ve added the source code Comment : any update thanks in advance Comment : The source code looks correct to me based on my reading of it unfortunately I don t have a Windows machine to test it on . .. . Answer : Your code is correct You ve run into an idiosyncrasy of Windows . The file you re reading is inside the C : Windows System32 directory . On 64-bit Windows if a 32-bit application attempts to access that directory it gets redirected https : msdn.microsoft.com en-us library windows desktop aa384187 28v vs.85 29.aspx to C : Windows SysWow64 . As there are cmd.exe files in both C : Windows System32 and C : Windows SysWow64 but they re different builds and so different hashes programs checking the hash of C : Windows System32 cmd.exe will give different results depending on whether they re 32-bit or 64-bit . You can see this for yourself by building your example program both 32-bit and 64-bit and observing that they give different answers . Comment : thanks very much dear .", "Question : null .. . Answer : We are in the process of debugging roaming credentials . We realized there are AD user objects containing more then 2000 RSA keys . Now I have to find out which process application causes havoc and calls the DPAPI functions to create all those keys . I am mainly interested in this two functions : .. . .. . CryptProtectData .. . .. . https : msdn.microsoft.com en-us library windows desktop aa380261 v vs.85 .aspx .. . .. . CryptUnprotectData .. . .. . https : msdn.microsoft.com en-us library windows desktop aa380882 v vs.85 .aspx .. . .. . This functions are part of Crypt32.dll .. . .. . https : msdn.microsoft.com en-us library aa380261 VS.85 .aspx .. . .. . What would be the best way to do this Please note I have only very basic WinDBG skills as I am no developer . Comment : Debugging questions are notoriously hard to answer because - in general - you have access to much more information and access to systems than we have . This question probably doesn t contain enough information to answer it .", "Question : I want to get parent certificate or all certificates in chain for that matter from Windows Certificate Store assuming I know the location of the end certificate . I need to get each one in order to build my own custom X509 STORE using OpenSSL . I think the proper course of action would be : .. . .. . 1 . obtain first certificate using CertFindCertificateInStore done .. . 2 . get the certificate chain using CertGetCertificateChain done .. . 3 . extract the certificates from chain 4 . for each certificate in chain convert it using d2i X509 done .. . .. . or .. . .. . 1 . obtain first certificate using CertFindCertificateInStore done .. . 2 . get the parent certificate if exists 3 . convert it using d2i X509 go to 2 . done .. . .. . Then create the store . The question to answer is then - how to get the parent certificate or all certificates in chain using Windows Certificate Store I m probably missing some more or less occult function here . .. . Answer : as the CertFindCertificateInStore outputs a chain context one can access it s members using the beautiful construction : .. . .. . chainContext- rgpChain 0 - rgpElement iCertIndex - pCertContext- pbCertEncoded .. . .. . where iCertIndex is between 0 end-certificate and chainSize -1 self-signed root certificate .", "Question : null .. . Answer : Can the Windows Crypto API be used to develop a simple https client as an alternative to libcurl Do any examples exist Comment : I don t know what you mean exactly . You can use WinInet or WinHTTP to access https : websites . I am not familiar with libcurl I assume it too can access secure websites", "Question : null .. . Answer : I m using Visual Studios 2012 on Windows 8.1 on a 64 bit machine . I m having trouble compiling the following code for c++ getting the above error : .. . .. . However this seems to be the way this is called here is one which has the same call and gives me the same error https : github.com sakbhav PassWd Mgr blob master passcrypt.cpp . VS suggests a couple of possible fixes which I ll try but does anyone know why this behaviour is happening and how to avoid it The suggested fixes are : .. . .. . error C2664 : CryptCreateHash : cannot convert parameter 5 from unsigned long to HCRYPTHASH Types pointed to are unrelated .. . .. . conversion requires reinterpret-cast C-style cast or function-style cast .. . .. . Thanks .. . .. . Aodh n .. . .. . Edit : It doesn t happen for 32-bit compilation so I guess that s what the examples I ve read were done in . I ll update whether the suggested fixes worked for 64 bit compilation . Comment : conversion requires reinterpret-cast C-style cast or function-style cast Doesn t this help you Comment : Yes I m going to try out those and see if they work - but none of the examples I ve seen used those so I m asking the question why it should be the case that it happens here . Comment : Your MD5Context.hHash member isn t big enough in 64-bit mode . The simple workaround is to declare it as HCRYPTHASH instead of unsigned long . Comment : Thank you I m glad I know that now .", "Question : I have a problem with my one of my projects . I use QtCreator with MinGW and Qt 5.4.0 .. . .. . When I try to compile this simple line gets me some errors : .. . .. . with DATA BLOB data.password and DATA BLOB data.uncryptedPassword .. . .. . Gets me : .. . .. . As said on the title I included the Crypt32.Lib file in my .pro : .. . .. . And as instructed in the MSDN api https : msdn.microsoft.com en-us library windows desktop aa380882 28v vs.85 29.aspx included wincrypt.h : .. . .. . The error being still there I checked wincrypt.h to make sure CryptUnprotectData is defined and it is : .. . .. . I ve been trying for the whole day .. . does anyone have a clue Thank you very much .. . Answer : The clue is that crypt32 library is not built with mingw this is why you are getting linking errors . Bad news is that there is no simple way to resolve that . You can read about some ways to resolve here : .. . .. . MingW missing some functions from the Win32 Crypto API http : stackoverflow.com questions 8536864 mingw-missing-some-functions-from-the-win32-crypto-api .. . .. . Discussion on Qt forum about this question can be found here : .. . .. . https : forum.qt.io topic 25527 cannot-find-how-to-link-to-crypt32-dll Comment : Damn Thanks for your answer I ll look into this", "Question : null .. . Answer : I m trying to encrypt text block with AES128 ECB mode to test resulted encryption decryption functionality I m using using ECB-AES123 test vectors from Recommendation for Block Cipher Modes of Operation : Methods and Techniques NIST Special Publication 800-38A 2001 Edition http : csrc.nist.gov publications nistpubs 800-38a sp800-38a.pdf . For example : .. . .. . For OpenSSL following code works perfectly : .. . .. . But at the same time I need implement same functionality with Microsoft s Crypto API . Following is code which should do it : .. . .. . But this code will produce different result . 1 . If Final will be TRUE as was shown above input data will have size 32 bytes which doesn t match expected value at all . According to MSDN it s OK since in this case one additional block of padding is appended to the data . 2 . If Final will be FALSE input data will have expected size 16 bytes but also wrong result . I have stuck with this case and I don t understand what I have missed . Is it possible to produce same result as OpenSSL which is expected according specs Why AES128 in ECB mode changes size of result In ECB mode it shouldn t do it Comment : Setting NoPadding or its equivalent will get rid of the second block . Best to check that your keys and IVs are byte-for-byte the same . OpenSSL and MS are likely to have different defaults so if you rely on system defaults you will get a mismatch . Wherever possible explicitly specify everything so you know they are the same in both systems . Comment : Yep I agree . I have thought about padding disabling . But the problem is that typically padding should be added when the last plain text block is short Sample from MSDN : if the block length is 64 bits and the last block contains only 40 bits then 24 bits of padding must be added to the last block . But in our case all blocks have same size - 16 bytes . Also don t found any possibility to disable padding for incoming data . Looks like it s default behavior . Comment : @AlexZeydel 1 I don t get your point . If you use PKCS 7 padding a 16 byte plaintext will map to a 32 byte ciphertext since it adds between 1 and 16 bytes of padding . It will automatically be removed when decrypting if you use PKCS 7 padding during decryption as well . If you don t want padding you need to disable it . 2 Why are you using an IV ECB doesn t support IVs . Comment : Also it s a little bit tricky to set the same default behavior for both OpenSSL and MS Crypto API libraries since we don t know what is default MS behavior . OpenSSL can be easily checked since all src are available . As for me the problem looks like I have missed something in configuration steps before call CryptoEnctypt Comment : @CodesInChaos 1 yep looks like pkcs 7 is default behavior for MS CryptoApi but at the same time we cannot disable it there . Also as far as I know AES cannot use for example pkcs 5 . 2 Why you have made such decision about IV . In ECB mode we don t need it at all.In my case I have just the key password 16 bytes plain data also 16 bytes and result which should be also 16 bytes", "Question : null .. . Answer : Hello there so I am having a very weird issue while trying to decrypt AES text that has been encrypted with AES using phpseclib . I RSA encrypt an AES key that I use to encrypt a message to the server . the server decrypt s the RSA encrypted AES key and uses it to decrypt the incoming message . also to encrypt the reply . I verify that the key is the same by exporting the AES key as a PLAINTEXTKEYBLOB . The problem comes when I go to decrypt the AES encrypted text from the server with WCAPI using the hKey HANDLE that was generated to encrypt the original message . CryptDecrypt only leaves me with junk . the Decryption does not produce the original message . I ve also verified that I am in fact decrypting the encrypted message and not some random buffer . Also before I attempt to decrypt this message I send an encrypted message that contains my public-key so that the server can encrypt the next AES key . This is successful . I am able to encrypt decrypt from C++ to PHP but not vice versa . Here is the PHP . Here is the C++ Comment : Ive tried using the AES hKey as a session key where by i encrypt the message with the same key used to decrypt the message . server-side . Ive verified the keys match both sever client-side but still no success . I just get garbage... . Comment : Update : Ive verified the keys and the message . so it leads me to believe im missing some sort of flags in WCAPI or some flags in phpseclib but have yet to figure out which ones.. . any suggestions are appreciated", "Question : Ok so I have 5 files I am encrypting . I am not setting the IV . The fist file decrypt s fine .. . .. . then the first block of the remaining files is not decrypted . So the files decrypt 99 . .. . .. . Ive tried setting the IV to a static value and a random value same result . The first file i encrypt does NOT have to be the first file I decrypt for it to be 100 decrypted . Which leads me to believe it has to do with decryption .. . .. . So for encryption I import an aes key to create a key handle . then I encrypt a file and move to another file using the same key handle.. . .. . .. . Should I have a new key handle for every file. . Is there a function to clear the key handle .. . .. . Something is telling me WCAPI is using the last block of the last file as the IV for the next file forgive me if i may be misunderstanding something . Here is the decrypt file function : Comment : I think you are right about it bringing the last block of one file forward to the first of the next . If you aren t setting the IV anyway may as well specify ECB mode keeping in mind ECB is not very secure . Otherwise if you want to stay with CBC mode reset the IV to all 0 bytes before decrypting each new file . Comment : But just to clarify CBC with an IV of all 0 bytes is exactly the same as ECB . But that would only apply to the first block of the file . After that as the chaining kicks in the CBC mode would protect the other blocks . Comment : @WDS I think you know what you mean but your statement is misleading . To clarify CBC with an IV of all 0s and ECB are not the same thing . The first block s result is the same but the subsequent blocks are calculated differently between the two . See en.wikipedia.org wiki Block cipher mode of operation https : en.wikipedia.org wiki Block cipher mode of operation for a picture of ECB and CBC . Comment : @RussSchultz Would you mind explaining how my statement is misleading Especially in light of the fact that your statement is saying exactly the same things with slightly different words . As for the Wikipedia link if it is meant for me I assure you I know what CBC mode is and how to implement it even if you are unhappy with my explanation of it in the cramped space of a comment box . Comment : @WDS Your first sentence CBC with an IV of all 0 bytes is exactly the same as ECB when taken alone is incorrect . The algorithms are different . That along with the first comment If you aren t setting the IV anyway may as well specify ECB mode which is also factually wrong when taken alone lead the uninitiated down an incorrect path of understanding . .. . Answer : Yes this suggests that you ve got the IV different on a given encrypt decrypt pair . The reason only the first block is corrupted is that CBC block errors only propagate to the next block and not further . You re either chaining from a previous operation if you re reusing the context across files or you re not initializing the context to the same value for both the encrypt and decrypt . Looking at your code you ve commented out CryptSetKeyParam ... . KP IV ... . meaning your AES context is likely having unknown data in the IV . A relatively common practice is always use 0 s for the IV but put a block of random salt at the beginning of the data . You then ignore the first block of the data when you re decrypting . It s only there to randomize the data . OR you could randomize the IV but send it prepended in plain text to the encrypted message . This is also very common . Or you could randomize the IV on encrypt put in a block of random data before the real message . Use any IV on decrypt and throw away that first block because it will be garbage . It s all pretty much the same result you end up transmitting 16 bytes as overhead but you should put some randomness into your message either through the IV or the first block to thwart short cut attacks .", "Question : Ok so I have 5 files I am encrypting . I am not setting the IV . The fist file decrypt s fine .. . .. . then the first block of the remaining files is not decrypted . So the files decrypt 99 . .. . .. . Ive tried setting the IV to a static value and a random value same result . The first file i encrypt does NOT have to be the first file I decrypt for it to be 100 decrypted . Which leads me to believe it has to do with decryption .. . .. . So for encryption I import an aes key to create a key handle . then I encrypt a file and move to another file using the same key handle.. . .. . .. . Should I have a new key handle for every file. . Is there a function to clear the key handle .. . .. . Something is telling me WCAPI is using the last block of the last file as the IV for the next file forgive me if i may be misunderstanding something . Here is the decrypt file function : Comment : I think you are right about it bringing the last block of one file forward to the first of the next . If you aren t setting the IV anyway may as well specify ECB mode keeping in mind ECB is not very secure . Otherwise if you want to stay with CBC mode reset the IV to all 0 bytes before decrypting each new file . Comment : But just to clarify CBC with an IV of all 0 bytes is exactly the same as ECB . But that would only apply to the first block of the file . After that as the chaining kicks in the CBC mode would protect the other blocks . Comment : @WDS I think you know what you mean but your statement is misleading . To clarify CBC with an IV of all 0s and ECB are not the same thing . The first block s result is the same but the subsequent blocks are calculated differently between the two . See en.wikipedia.org wiki Block cipher mode of operation https : en.wikipedia.org wiki Block cipher mode of operation for a picture of ECB and CBC . Comment : @RussSchultz Would you mind explaining how my statement is misleading Especially in light of the fact that your statement is saying exactly the same things with slightly different words . As for the Wikipedia link if it is meant for me I assure you I know what CBC mode is and how to implement it even if you are unhappy with my explanation of it in the cramped space of a comment box . Comment : @WDS Your first sentence CBC with an IV of all 0 bytes is exactly the same as ECB when taken alone is incorrect . The algorithms are different . That along with the first comment If you aren t setting the IV anyway may as well specify ECB mode which is also factually wrong when taken alone lead the uninitiated down an incorrect path of understanding . .. . Answer : I used CryptDuplicateKey with an appropriate call to DestroyKey that solved my problems . Using the duplicated key to set parameters on keeping the original key un-touched .", "Question : null .. . Answer : I have the rsa public-key in DER format and the session key . My goal is encrypting session key by RSA . I have tried several variants of doing this but unsuccessfully . This is the RSA key : .. . .. . This is how I import RSA key : .. . .. . And this is how I try to encrypt session key with imported RSA key : .. . .. . But CryptExportKey returns FALSE and GetLastError returns 0x80090015 NTE BAD PUBLIC KEY . What is wrong with my code" ] }
[ "yes-answer-long", "yes-answer-short" ]
api
UNK_RELATION
ibm-wcm@deployment@94
ibm-wcm -- ibm web content manager is designed to accelerate digital content development and @placeholder through all your digital channels .
{ "confidence": [ 57.257118225097656, 50.78852081298828, 44.741031646728516, 44.63561248779297, 42.713706970214844, 42.07607650756836, 38.81853485107422, 38.41886901855469, 37.896759033203125, 37.35325622558594, 36.7475471496582, 36.16535186767578, 34.70996856689453, 33.303443908691406, 32.87126541137695, 32.768089294433594, 32.50299835205078, 32.348575592041016, 31.703201293945312, 31.703201293945312, 31.434988021850586, 31.343395233154297, 30.17512321472168, 29.87482452392578, 28.37421417236328, 28.312747955322266, 27.774566650390625, 26.018451690673828, 25.855457305908203, 24.371639251708984, 23.966318130493164, 23.63399887084961, 23.33533477783203, 22.6806640625, 22.51312255859375, 21.694644927978516, 21.511455535888672, 20.656890869140625, 20.359086990356445, 20.26676368713379, 20.26676368713379, 20.26676368713379, 20.26676368713379, 20.26676368713379, 20.26676368713379, 20.26676368713379, 20.26676368713379, 20.26676368713379, 20.26676368713379, 20.26676368713379, 20.26676368713379, 20.101682662963867, 20.101682662963867, 20.002220153808594, 19.84724998474121, 19.84724998474121, 19.84724998474121, 19.84724998474121, 19.84724998474121, 19.84724998474121, 18.582191467285156, 17.588319778442383, 17.588319778442383, 17.588319778442383, 17.588319778442383, 17.588319778442383, 17.588319778442383, 17.588319778442383, 17.588319778442383, 17.588319778442383, 17.588319778442383, 17.588319778442383, 17.588319778442383, 17.588319778442383, 17.588319778442383, 17.588319778442383, 17.588319778442383, 17.588319778442383, 17.588319778442383, 17.588319778442383, 17.588319778442383, 17.588319778442383, 17.588319778442383, 17.588319778442383, 17.588319778442383, 17.588319778442383, 17.588319778442383, 17.588319778442383, 17.588319778442383, 17.588319778442383, 16.09566879272461, 15.811424255371094, 15.811424255371094, 13.681767463684082, 13.681767463684082, 13.681767463684082, 13.681767463684082, 13.681767463684082, 13.681767463684082, 13.681767463684082 ], "content": [ "I encountered several problems which led to my question : What is the difference s between IBM Portal Express and Web Content Manager WCM", "We have IBM WCM 8.5 and created content which contains Rich Text component in AT field .", "Could any one guide me how to achieve the communication between two portlets Web Content Viewer portlet in IBM WCM 8 by providing some code-snippets and required screen shots .", "I need to use REST API to query IBM WCM 8.0 on the contents stored in it .", "I have a requirement to communicate between two portlets Web Content Viewer portlet in IBM WCM.There are many ways for the custom portlets to communicate in between but I dont have any idea to implement the functionality for the ibm provided portlets Web Content Viewer portlet .", "We have a WCM COntent Library .", "The link type is TYPE MANAGEDCONTENT ftp : public.dhe.ibm.com software websphere-portal javadoc vrm 850 api docs com ibm workplace wcm api LinkComponent.html TYPE MANAGEDCONTENT", "I developed a website using portal express 8 and tried replicating it on a web content manager 8 installation .", "Web content viewers can broadcast and receive links to communicate with other viewers : .. . .. . http : www-01.ibm.com support knowledgecenter SS3JLV 8.0.0 wcm wcm config delivery portlet linking.dita", "This value was set through the UI in WCM Administration .", "I believe you showing content component from WCM in jsr286 portelt maybe it possible to do with javascript", "I want to pass some parameters from one Web Content Viewer Portlet to other Web Content Viewer Portlet .", "I tried the approach given in below link .. . .. . How to query pending my approval items in IBM WCM 7.0 http : stackoverflow.com questions 11464224 how-to-query-pending-my-approval-items-in-ibm-wcm-7-0 .. . .. . but I am using portal server 8.5 and WorkflowSelectors.approversContains is deprecated so kindly tell me what to use instead of this method to get the list of pending approvals of currently logged in user .", "Yup..Code change is not possible for Web Content Viewer Portlets right", "I m kind of new in using IBM websphere .", "Also is it possible to search WCM based on user defined metadata", "I m thinking I need following code to query the content libraries : .. . .. . The last line in above script is a faked one which doesn t exist in WCM API .", "On WCM some background images were missing on desktop appeared blank .", "We are accessing the same using the WCM API .", "I need to implment following code using WCM .", "We acquired the Content and the LinkComponent in it .", "What kind of data information do you want to store in your content item", "On WCM js files I uploaded as Components were reported by browser as files with unknown mime-types unknown unknown .", "Apologies Im new to this WCM", "I m working in a project which reques me to display a list of pending my approval my items to content manager of my client .", "I ve checked the new Query API inside WCM 7 .", "This can be achieved using the a pre-defined query : http : infolib.lotus.com resources portal 8.0.0 doc en us PT800ACD004 wcm wcm rest defined.html .. . .. . For example you could use the following user defined query :", "Got answer from IBM forum provided by David De Vos and document it here : .. . .. . Try using the WorkflowSelectors.approversContains selector which expects you to supply one or more strings representing the distinguished names of the approvers to look for .", "Could you plz suggest if we can create our own element type in element manager in Authoring Templates .", "Then it shows only tabs without any content from the inner component .", "When a user accesses the WCM servlet using the authenticated context www.mywebsite.com wps wcm myconnect xyz if user is not login it is redirect user to hostname : port wps wcm webinterface login login.jsp .. . .. . I would like if user is not login user should be redirected to http : www.mywebsite.com wps wcm webinterface login login.jsp instead of http : hostname : 10039 wps wcm webinterface login login.jsp .", "On mobile all background images were missing .", "It s not possible to create your own element type .", "When i use the following query format it works fine : .. . .. . This returns all the contents which has both ABC and DEF as values in keywords .", "Actually it was a problem with Libraries - I simply put wanted content in single library and now it works fine .", "All the images are in the same site area .", "You have to configure WCM HOST and WCM PORT variables with the fully qualified host name used to access the WCM .", "But how you want communicate between your portlets", "I am using portal 8.5 with no fix packs and I have tries all possible ways .", "I need to create my own element type same as what comes in the dropdown of element type like HTML RichText etc. .", "No .", "My requirement is to search contents that matches either ABC or DEF keywords .", "Kindly let me know what query I need use for the same", "The dynamic adhoc queries do not have a query parameter that can perform an OR for multiple keywords .", "Getting authentication problem when trying to access file resource component using zFileCOmonent.getresourceURL method and convert the url to absolute .", "When i tried accessing URL in browser it is displaying authentication error .", "The user you are using to access the object doesn t have sufficient access rights they are either anonymous or no Read access .", "Check that the user has at least READ access via the Portal Administration Interface to the : 1 .", "Library 2 .", "Resource Type Components 3 .", "File Resource if it is Workflowed - Components aren t usually Workflowed by default", "The internal component is using Location Site Areas set by Query string as a criteria and in the main component I use Plugin : RequestAttribute .. . to set the Site Area I want the content from in specific tab .", "Everything works fine while using Preview option - content is generated properly I can even use Preview on site I actually want the component to be used on and this will give me desired result .", "The other possibility would be that you inadvertently put some value in the rich-text-editor in the authoring template and all contents created from it took this value .", "The problems I encountered were : .. . .. . 1 .", "On portal express I was able to upload javascript file as Components and linked to it fine .", "2 .", "On portal express I linked background images from the theme and it worked fine .", "Was there some configurations I m missing", "Thanks in advance .", "Is there a way to query the whole library and get all items pending on approval of current user", "Regards Brijith", "What type of communication you need", "Standard ways are public render parameters and events but to get custom-events parameters you need change portlet code I suppose you don t want to do this .", "Right .", "You need pass data from one portlet to another", "Are portlets on same page or different", "yes..I need to pass data from one portlet to another in same page .", "What type of information you want pass to another portlet", "I want to check whether the value of Rich Text is empty or not in one of my Menu Component .", "I have tried to use IfEmpty Plugin Component but it doesn t work .", "If any one have solution to this it is of great help to me .", "After applying CF 07 and above resolves this problem .", "I have tried using Plugin : ifEmpty in WebSphere Portal 8.5 and they worked fine with Rich Text Editors .", "This was the code that I used in the presentation template : - .. . .. . It worked pretty well and responded appropriately .", "May be you need to update to the latest fix pack .", "Check the source of the rich-text-editor to make sure that it is empty .", "The source of empty rich-text-editor contains p nbsp p-value and hence it is not working .", "We have not assign default-value to elements in AT .", "For me this is not the case are you sure you updated the Websphere Portal to the latest fix pack", "Are you using the default rich-text-editor of the Portal", "Did you try ifEquals instead", "It is possible that they have fixed this issue in one of the fix pack .", "I have a LinkComponent and it has a URL value .", "But we are unable to udpate the URL value .", "Here is my code for the retrieval .", "I am designing a carousel with three images .", "I am able to design with a single result design .", "Please guide me how to get three links in a set .", "Using websphere-portal I want pending approvals list in webspehere portlet .", "I already tried to put the main menu component tag in the actual Article inside InContext .. . InContext with all of possible options but it gave no good result .", "com.ibm.wcm.workplace.wcm.api.WorkSpace has an hasManagerAccess DocumentId boolean method but it can only check one document .", "Thanks a lot", "I ve made a menu component to create tabs which contains rendered results from another menu component .", "In order to do so I put the internal component inside InContext .. . InContext tags - in this case Result design code of the main component is : .. . .. . The header ends-with div class tab selected while separator is set as div class tab which in the end construct a valid HTML structure of that I m sure .", "Tabbing is held by javascript I put in the beggining of header and works fine .", "The problem occurs when I put the main menu component tag in published Article .", "It looks as-if the Plugin : RequestAttribute .. . tag that is used as substitute for Query string stops working .", "Any suggestions", "Inside the Components area we have created an EXE folder as seen below ." ] }
{ "confidence": [ 69.58222961425781, 63.39896011352539, 61.34730911254883, 58.65363311767578, 51.73683166503906, 51.29627990722656, 41.584999084472656, 34.61186218261719, 33.20156478881836, 32.90094757080078, 32.827117919921875, 29.377058029174805, 20.206212997436523 ], "content": [ "Question : null .. . Answer : I developed a website using portal express 8 and tried replicating it on a web content manager 8 installation . I encountered several problems which led to my question : What is the difference s between IBM Portal Express and Web Content Manager WCM The problems I encountered were : .. . .. . 1 . On portal express I was able to upload javascript file as Components and linked to it fine . On WCM js files I uploaded as Components were reported by browser as files with unknown mime-types unknown unknown . 2 . On portal express I linked background images from the theme and it worked fine . On WCM some background images were missing on desktop appeared blank . On mobile all background images were missing . Was there some configurations I m missing Thanks in advance .", "Question : I have a requirement to communicate between two portlets Web Content Viewer portlet in IBM WCM.There are many ways for the custom portlets to communicate in between but I dont have any idea to implement the functionality for the ibm provided portlets Web Content Viewer portlet . Could any one guide me how to achieve the communication between two portlets Web Content Viewer portlet in IBM WCM 8 by providing some code-snippets and required screen shots . Regards Brijith Comment : What type of communication you need Standard ways are public render parameters and events but to get custom-events parameters you need change portlet code I suppose you don t want to do this . Comment : Yup..Code change is not possible for Web Content Viewer Portlets right I want to pass some parameters from one Web Content Viewer Portlet to other Web Content Viewer Portlet . Comment : Right . But how you want communicate between your portlets You need pass data from one portlet to another Are portlets on same page or different Comment : yes..I need to pass data from one portlet to another in same page . Comment : What type of information you want pass to another portlet I believe you showing content component from WCM in jsr286 portelt maybe it possible to do with javascript .. . Answer : Web content viewers can broadcast and receive links to communicate with other viewers : .. . .. . http : www-01.ibm.com support knowledgecenter SS3JLV 8.0.0 wcm wcm config delivery portlet linking.dita", "Question : null .. . Answer : I have a LinkComponent and it has a URL value . This value was set through the UI in WCM Administration . We are accessing the same using the WCM API . We acquired the Content and the LinkComponent in it . But we are unable to udpate the URL value . Here is my code for the retrieval . The link type is TYPE MANAGEDCONTENT ftp : public.dhe.ibm.com software websphere-portal javadoc vrm 850 api docs com ibm workplace wcm api LinkComponent.html TYPE MANAGEDCONTENT", "Question : I m working in a project which reques me to display a list of pending my approval my items to content manager of my client . I ve checked the new Query API inside WCM 7 . I m thinking I need following code to query the content libraries : .. . .. . The last line in above script is a faked one which doesn t exist in WCM API . com.ibm.wcm.workplace.wcm.api.WorkSpace has an hasManagerAccess DocumentId boolean method but it can only check one document . Is there a way to query the whole library and get all items pending on approval of current user Thanks a lot .. . Answer : Got answer from IBM forum provided by David De Vos and document it here : .. . .. . Try using the WorkflowSelectors.approversContains selector which expects you to supply one or more strings representing the distinguished names of the approvers to look for .", "Question : null .. . Answer : Using websphere-portal I want pending approvals list in webspehere portlet . I tried the approach given in below link .. . .. . How to query pending my approval items in IBM WCM 7.0 http : stackoverflow.com questions 11464224 how-to-query-pending-my-approval-items-in-ibm-wcm-7-0 .. . .. . but I am using portal server 8.5 and WorkflowSelectors.approversContains is deprecated so kindly tell me what to use instead of this method to get the list of pending approvals of currently logged in user .", "Question : I need to use REST API to query IBM WCM 8.0 on the contents stored in it . When i use the following query format it works fine : .. . .. . This returns all the contents which has both ABC and DEF as values in keywords . My requirement is to search contents that matches either ABC or DEF keywords . Kindly let me know what query I need use for the same Also is it possible to search WCM based on user defined metadata .. . Answer : The dynamic adhoc queries do not have a query parameter that can perform an OR for multiple keywords . This can be achieved using the a pre-defined query : http : infolib.lotus.com resources portal 8.0.0 doc en us PT800ACD004 wcm wcm rest defined.html .. . .. . For example you could use the following user defined query :", "Question : We have IBM WCM 8.5 and created content which contains Rich Text component in AT field . I want to check whether the value of Rich Text is empty or not in one of my Menu Component . I have tried to use IfEmpty Plugin Component but it doesn t work . If any one have solution to this it is of great help to me . Comment : After applying CF 07 and above resolves this problem . .. . Answer : I have tried using Plugin : ifEmpty in WebSphere Portal 8.5 and they worked fine with Rich Text Editors . This was the code that I used in the presentation template : - .. . .. . It worked pretty well and responded appropriately . May be you need to update to the latest fix pack . The other possibility would be that you inadvertently put some value in the rich-text-editor in the authoring template and all contents created from it took this value . Check the source of the rich-text-editor to make sure that it is empty . Comment : The source of empty rich-text-editor contains p nbsp p-value and hence it is not working . We have not assign default-value to elements in AT . Comment : For me this is not the case are you sure you updated the Websphere Portal to the latest fix pack Are you using the default rich-text-editor of the Portal Did you try ifEquals instead Comment : I am using portal 8.5 with no fix packs and I have tries all possible ways . It is possible that they have fixed this issue in one of the fix pack .", "Question : Could you plz suggest if we can create our own element type in element manager in Authoring Templates . I need to create my own element type same as what comes in the dropdown of element type like HTML RichText etc. . .. . Answer : No . It s not possible to create your own element type . What kind of data information do you want to store in your content item", "Question : I ve made a menu component to create tabs which contains rendered results from another menu component . The internal component is using Location Site Areas set by Query string as a criteria and in the main component I use Plugin : RequestAttribute .. . to set the Site Area I want the content from in specific tab . In order to do so I put the internal component inside InContext .. . InContext tags - in this case Result design code of the main component is : .. . .. . The header ends-with div class tab selected while separator is set as div class tab which in the end construct a valid HTML structure of that I m sure . Tabbing is held by javascript I put in the beggining of header and works fine . Everything works fine while using Preview option - content is generated properly I can even use Preview on site I actually want the component to be used on and this will give me desired result . The problem occurs when I put the main menu component tag in published Article . Then it shows only tabs without any content from the inner component . It looks as-if the Plugin : RequestAttribute .. . tag that is used as substitute for Query string stops working . I already tried to put the main menu component tag in the actual Article inside InContext .. . InContext with all of possible options but it gave no good result . I m kind of new in using IBM websphere . Any suggestions .. . Answer : Actually it was a problem with Libraries - I simply put wanted content in single library and now it works fine .", "Question : We have a WCM COntent Library . Inside the Components area we have created an EXE folder as seen below . This exe folder contains exe files . enter image description here http : i.stack.imgur.com DU63k.png .. . .. . Now whenever I am trying to place a link-to the .exe files on any HTML page Link is generated but when viewed in browser it throws 404 error . enter image description here http : i.stack.imgur.com HzP7T.png .. . .. . As seen the HREF value seems fine but not sure why this doesn t works . Also When i create a link-to any other Components Images : JPG GIF PDFs the links work perfectly normal . Why this is NOT working for EXE files .. . Answer : Use Insert link button in Presentation template to create a link-to the File component having exe file . Firebug element .. . .. . Same gets generated in template as well .. . .. . Portal is 8.5 Comment : Thank you for the much awaited reply . However this doesn t seems to help . I have used Insert Link button to create the links to EXE files but NO luck till now . Also the link is generated the same as you have mentioned but still when viewed on a browser it doesn t works Comment : what is the portal version Comment : How to check the Portal Version Apologies Im new to this WCM", "Question : null .. . Answer : I am designing a carousel with three images . I need to implment following code using WCM . I am able to design with a single result design . Please guide me how to get three links in a set . All the images are in the same site area .", "Question : I have a query that is surrounded by a fair bit of grey area . When a user accesses the WCM servlet using the authenticated context www.mywebsite.com wps wcm myconnect xyz if user is not login it is redirect user to hostname : port wps wcm webinterface login login.jsp .. . .. . I would like if user is not login user should be redirected to http : www.mywebsite.com wps wcm webinterface login login.jsp instead of http : hostname : 10039 wps wcm webinterface login login.jsp . So is it possible to achieve this and if so would anyone have a suggestion .. . Answer : You have to configure WCM HOST and WCM PORT variables with the fully qualified host name used to access the WCM . In admin console : .. . .. . slect Environment WebSphere Variables .. . From the Scope drop-down menu select the Node nodename Server servername .. . Update the WCM HOST and WCM PORT variables .. . Save Restart .", "Question : Getting authentication problem when trying to access file resource component using zFileCOmonent.getresourceURL method and convert the url to absolute . When i tried accessing URL in browser it is displaying authentication error . .. . Answer : The user you are using to access the object doesn t have sufficient access rights they are either anonymous or no Read access . Check that the user has at least READ access via the Portal Administration Interface to the : 1 . Library 2 . Resource Type Components 3 . File Resource if it is Workflowed - Components aren t usually Workflowed by default" ] }
[ "yes-answer-long", "yes-answer-short" ]
deployment
UNK_RELATION
cp866@ascii@38
cp866 -- code page 866 is a extended @placeholder character table to support cyrillic characters .
{ "confidence": [ 32.497596740722656, 30.94184112548828, 30.42447280883789, 29.541818618774414, 28.985260009765625, 27.96932029724121, 26.62501335144043, 26.60490608215332, 26.60490608215332, 26.60490608215332, 26.381418228149414, 26.355457305908203, 25.24750518798828, 24.756729125976562, 24.756729125976562, 24.756729125976562, 24.752559661865234, 23.327116012573242, 21.792827606201172, 18.456573486328125, 15.268392562866211, 15.208752632141113, 15.044294357299805, 14.795413970947266, 14.795413970947266, 14.525856971740723, 14.300199508666992, 13.419605255126953, 13.419605255126953, 13.417905807495117, 13.417905807495117, 13.417905807495117, 13.417905807495117, 13.417905807495117, 13.417905807495117, 13.417905807495117, 13.417905807495117, 13.417905807495117, 12.901168823242188, 12.228493690490723, 12.062335014343262, 12.062335014343262, 12.062335014343262, 12.062335014343262, 12.062335014343262, 12.062335014343262, 10.437646865844727, 10.437646865844727, 10.437646865844727, 10.437646865844727, 10.437646865844727, 10.437646865844727, 10.437646865844727, 10.437646865844727, 10.437646865844727, 10.437646865844727, 10.437646865844727, 10.437646865844727, 10.437646865844727, 10.437646865844727, 10.437646865844727, 10.437646865844727, 10.437646865844727, 10.437646865844727, 10.437646865844727, 10.437646865844727, 10.437646865844727, 10.437646865844727, 10.437646865844727, 10.437646865844727, 10.437646865844727, 10.437646865844727, 10.437646865844727, 10.437646865844727, 10.437646865844727, 10.437646865844727, 10.437646865844727, 10.437646865844727, 10.437646865844727, 10.437646865844727, 10.437646865844727, 10.437646865844727, 10.437646865844727, 10.437646865844727, 10.437646865844727, 10.437646865844727, 10.437646865844727, 10.437646865844727, 10.437646865844727, 10.437646865844727, 10.437646865844727, 10.437646865844727, 10.437646865844727, 10.437646865844727, 10.437646865844727, 10.437646865844727 ], "content": [ "The canonical name for the charset is Cp866 not CP866 .", "if I am trying convert cyrillic character to character code my function in question description returns negative values :", "How get int code of qchar in this table http : www.ascii-codes.com cp866.html", "Unfortunately the device from which I m printing an Android device does not support CP866 resulting in abc .getBytes CP866 throwing the UnsupportedEncodingException .", "Cp866 among them .", "abc .getBytes Cp866 throws an exception .", "So either .. . .. . you are using an old version of Java that doesn t support Cp866 e.g .", "Nah the receiving device supports only Cp866 .", "The class java.nio.charset.Charset supports both Cp866 and of course Unicode .", "I was needed to encode string with Cp866 in android .", "Build a QString consisting only of that char then use QTextCodec to encode the string in CP866 .", "Note that it s unspecified what you get if your code point is not encodeable in CP866 .", "std.encoding http : dlang.org phobos std encoding.html will help but it doesn t look like cp866 is supported", "I m trying to print to a device which supports CP866 encoding only .", "So I guess I have to do Unicode to CP866 encoding myself .", "According to the Oracle documentation Cp866 is a supported encoding for Java 7 .", "The sollution for Windows is something like fixed fromMBSz cast immutable toMBSz broken 866 65001", "http : msdn.microsoft.com en-us goglobal cc305166 has the list of characters should no pre-made option work writing code to iterate through an array translating Unicode characters to bytes suitable for CP866 shouldn t take much time at all .", "According to this page http : docs.oracle.com javase 7 docs technotes guides intl encoding.doc.html CP866 is supported out-of-the-box on every install of the Oracle Java 7 Runtime .", "Chapter 6 Character sets", "For example OCS Agent resident program on target PC which collects data and sends them to OCS Server may get response as Realtek PCIe GBE Family Controller 1 Gb s pure English encoding is not an issue or as Intel R 82566DM-2 100 Mb s incorrect Russian CP1251 or as Realtek RTL8169 8110 Family Gigabit Ethernet NIC - 100 Mb s incorrect Russian CP866 .", "I d like to fix it and I ve already written the code in Python which solves the task : .. . .. . However at first I was trying to solve this issue in D but failed to find an answer .", "Here is my code : .. . .. . getCp866Code returns -90 not 166", "I assume they only support a small set of encodings because there s less of a legacy story on Android .", "How can I add support for Cp866ukr for Ukrainian language encoding in my Android application", "QChar is a UTF-16 code unit which also means it can be part of a surrogate pair .", "so the code runs on Android", "So do I use any other code instead", "The digit itself is determined by the @altered variable and its code is self-explaining .", "I ve got some wrongly decoded text fragment .", "It was decoded like cp866 but in fact it should be utf-8 -- .", "So how can this task be solved in D", "At the moment D does not have extensive native facilities for converting text between encodings .", "Here are some options : .. . .. . As ratchet freak mentioned D does have std.encoding http : dlang.org phobos std encoding.html but it does not cover many encodings at the moment .", "On Windows you could use std.windows.charset.fromMBSz and toMBSz which wrap MultiByteToWideChar and WideCharToMultiByte .", "You could simply embed the encodings that interest you in your program example https : github.com CyberShadow ae blob master utils iconv.d .", "On POSIX you could invoke the iconv program example https : github.com CyberShadow ae blob master sys cmd.d L523-L526 or use the libiconv library D1 binding http : www.algonet.se afb d libiconv.d .", "The advice about std.windows.charset was very useful .", "enter image description here http : i.stack.imgur.com sHdfG.jpg .. . .. . Let see the code .. . .. . @castbin variable used just for clarification and readability .", "Here s the very inoptimal but working code of this function taken from MySQL Studio .. . .. . First we looking if the string is convertable then doing two conversions - for 0xC2 and 0xC3 prefixes because these prefixes means different encoding errors .", "Does this make sense : QChar c A int ci c.unicode ci 65", "for example : QChar c in unicode int representation returns 1078 not 166", "The question is ill posed .", "Your best shot would be .. . .. . 1 .", "Check that it s not part of a surrogate pair QChar : : isSurrogate .. . 2 .", "Then extract the first byte of it .", "Is there any freeware java library that does that", "What JRE JDK do you use", "Which version", "Sidenote : freeware is an .. . ancient term with a very specific meaning .", "Hardly any software these days is released as freeware .", "You re probably looking for either open-source or free software or simply freely available software .", "1.6 because my sending device is an Android phone", "Then chances are they ve got an entirely different and probably much smaller set of supported encodings .", "Why not just transmit data as UTF-8 http : utf8everywhere.org", "Everyone supports that .", "It s a Russian device .", "Turned out I ve spent less time on that than on searching for any library .", "Thanks a lot", "see @Joachim s comment", "or .. . the Java runtime is not recognizing the name you are using .", "UPDATE - it is unlikely to be the latter .", "From what I can make out from the source http : grepcode.com file repository.grepcode.com java root jdk openjdk 6-b14 sun nio cs FastCharsetProvider.java the charset lookup mechanism used by the standard provider is case insensitive .", "References : .. . .. . Supported Encodings in Java 7 http : docs.oracle.com javase 7 docs technotes guides intl encoding.doc.html .. . Supported Encodings in Java 6 http : docs.oracle.com javase 6 docs technotes guides intl encoding.doc.html .. . Supported Encodings in Java 5 http : docs.oracle.com javase 1.5.0 docs guide intl encoding.doc.html", "In Java 5 that encoding was provided by charsets.jar http : docs.oracle.com javase 1.5.0 docs guide intl encoding.doc.html which isn t always installed depending on the language settings of the computer .", "Java 6 already had it in rt.jar http : docs.oracle.com javase 6 docs technotes guides intl encoding.doc.html .", "In Java 6 this is supported according to the documentation http : docs.oracle.com javase 6 docs technotes guides intl encoding.doc.html .", "My sending device is an Android device .", "It has Java 1.6 .", "@Alex : Android is not Java 1.6 .", "It s something similar to Java google for Dalvik .", "@Joachim Sauer Right right so how to overcome", "I guess you could use that with the encode and decode methods .", "You can use java library with made up charset classes .", "This is the link : http : www.doc.ic.ac.uk awl03 cgi-bin trac.cgi miro browser trunk gcc libjava classpath gnu java nio charset .. . .. . If you want extend Charset class and add you private Charset : Java NIO http : rads.stackoverflow.com amzn click 0596002882 .", "I need to extend Charset http : developer.android.com reference java nio charset Charset.html class .", "Is there any open-source implementation of this charset for Java like this http : grepcode.com file repository.grepcode.com java root jdk openjdk 7u40-b43 sun nio cs IBM866.java for default Cp866", "I use OCS Inventory for inventorying of our PCs .", "It works almost fine but.. . but 99 of these PCs works under Windows R : XP and Seven .", "And there no any standard for WMI information .", "Or VIA Rhine III Fast Ethernet Adapter - 100 Mb s correct Russian UTF8 or another Unicode .. . .. . I have no way to make Windows return these results in only one encoding : it seems to be up to the minds of driver manufacturers : which encoding was used in the driver s .INF file that encoding will be returned by WMI .", "Mostly it is not a problem but my bosses very dislike to see hieroglyphs in quarterly reports about the state of our IT infrastructure .", "And they seems to be right .", "Is there any way to re-encode single fields from one encoding into another on-the-fly", "I will not re-encode the entire column because of mixed contents .", "I can roughly determine which encoding was used but I don t know how to re-encode using only MySQL s SQL language to produce correct reports .", "Any working suggestions please", "It looks like the only way was writing the stored procedure .", "I made it .", "Left column castbin is the text before processing right converted is the same text after processing .. . .. .", "All the job done by repCxAxEx function named after replace 0xCx 0xAx with 0xCx 0xEx .", "UPDATE : Thorough testing catched some mistakes .", "Somewhere inside the query I use group-concat operator to merge the values of several properties of same PC into one long string with n as separator .", "In such cases the conversion may not work .", "On exit the function adds one digit into the beginning of returned string .", "More correct form of invocation is :" ] }
{ "confidence": [ 51.39417266845703, 40.48275375366211, 39.34550857543945, 37.932342529296875, 36.539405822753906, 36.03428649902344, 19.888385772705078, 13.86734390258789 ], "content": [ "Question : How get int code of qchar in this table http : www.ascii-codes.com cp866.html Here is my code : .. . .. . getCp866Code returns -90 not 166 Comment : Does this make sense : QChar c A int ci c.unicode ci 65 Comment : for example : QChar c in unicode int representation returns 1078 not 166 .. . Answer : The question is ill posed . QChar is a UTF-16 code unit which also means it can be part of a surrogate pair . Your best shot would be .. . .. . 1 . Check that it s not part of a surrogate pair QChar : : isSurrogate .. . 2 . Build a QString consisting only of that char then use QTextCodec to encode the string in CP866 . Then extract the first byte of it . Note that it s unspecified what you get if your code point is not encodeable in CP866 . Comment : if I am trying convert cyrillic character to character code my function in question description returns negative values :", "Question : I m trying to print to a device which supports CP866 encoding only . Unfortunately the device from which I m printing an Android device does not support CP866 resulting in abc .getBytes CP866 throwing the UnsupportedEncodingException . So I guess I have to do Unicode to CP866 encoding myself . Is there any freeware java library that does that Comment : According to this page http : docs.oracle.com javase 7 docs technotes guides intl encoding.doc.html CP866 is supported out-of-the-box on every install of the Oracle Java 7 Runtime . What JRE JDK do you use Which version Comment : Sidenote : freeware is an .. . ancient term with a very specific meaning . Hardly any software these days is released as freeware . You re probably looking for either open-source or free software or simply freely available software . Comment : 1.6 because my sending device is an Android phone Comment : so the code runs on Android Then chances are they ve got an entirely different and probably much smaller set of supported encodings . Why not just transmit data as UTF-8 http : utf8everywhere.org Everyone supports that . Comment : Nah the receiving device supports only Cp866 . It s a Russian device . .. . Answer : http : msdn.microsoft.com en-us goglobal cc305166 has the list of characters should no pre-made option work writing code to iterate through an array translating Unicode characters to bytes suitable for CP866 shouldn t take much time at all . Comment : Turned out I ve spent less time on that than on searching for any library . Thanks a lot", "Question : I m trying to print to a device which supports CP866 encoding only . Unfortunately the device from which I m printing an Android device does not support CP866 resulting in abc .getBytes CP866 throwing the UnsupportedEncodingException . So I guess I have to do Unicode to CP866 encoding myself . Is there any freeware java library that does that Comment : According to this page http : docs.oracle.com javase 7 docs technotes guides intl encoding.doc.html CP866 is supported out-of-the-box on every install of the Oracle Java 7 Runtime . What JRE JDK do you use Which version Comment : Sidenote : freeware is an .. . ancient term with a very specific meaning . Hardly any software these days is released as freeware . You re probably looking for either open-source or free software or simply freely available software . Comment : 1.6 because my sending device is an Android phone Comment : so the code runs on Android Then chances are they ve got an entirely different and probably much smaller set of supported encodings . Why not just transmit data as UTF-8 http : utf8everywhere.org Everyone supports that . Comment : Nah the receiving device supports only Cp866 . It s a Russian device . .. . Answer : I was needed to encode string with Cp866 in android . You can use java library with made up charset classes . Cp866 among them . This is the link : http : www.doc.ic.ac.uk awl03 cgi-bin trac.cgi miro browser trunk gcc libjava classpath gnu java nio charset .. . .. . If you want extend Charset class and add you private Charset : Java NIO http : rads.stackoverflow.com amzn click 0596002882 . Chapter 6 Character sets", "Question : I m trying to print to a device which supports CP866 encoding only . Unfortunately the device from which I m printing an Android device does not support CP866 resulting in abc .getBytes CP866 throwing the UnsupportedEncodingException . So I guess I have to do Unicode to CP866 encoding myself . Is there any freeware java library that does that Comment : According to this page http : docs.oracle.com javase 7 docs technotes guides intl encoding.doc.html CP866 is supported out-of-the-box on every install of the Oracle Java 7 Runtime . What JRE JDK do you use Which version Comment : Sidenote : freeware is an .. . ancient term with a very specific meaning . Hardly any software these days is released as freeware . You re probably looking for either open-source or free software or simply freely available software . Comment : 1.6 because my sending device is an Android phone Comment : so the code runs on Android Then chances are they ve got an entirely different and probably much smaller set of supported encodings . Why not just transmit data as UTF-8 http : utf8everywhere.org Everyone supports that . Comment : Nah the receiving device supports only Cp866 . It s a Russian device . .. . Answer : The class java.nio.charset.Charset supports both Cp866 and of course Unicode . I guess you could use that with the encode and decode methods .", "Question : I ve got some wrongly decoded text fragment . It was decoded like cp866 but in fact it should be utf-8 -- . I d like to fix it and I ve already written the code in Python which solves the task : .. . .. . However at first I was trying to solve this issue in D but failed to find an answer . So how can this task be solved in D Comment : std.encoding http : dlang.org phobos std encoding.html will help but it doesn t look like cp866 is supported .. . Answer : At the moment D does not have extensive native facilities for converting text between encodings . Here are some options : .. . .. . As ratchet freak mentioned D does have std.encoding http : dlang.org phobos std encoding.html but it does not cover many encodings at the moment . On Windows you could use std.windows.charset.fromMBSz and toMBSz which wrap MultiByteToWideChar and WideCharToMultiByte . You could simply embed the encodings that interest you in your program example https : github.com CyberShadow ae blob master utils iconv.d . On POSIX you could invoke the iconv program example https : github.com CyberShadow ae blob master sys cmd.d L523-L526 or use the libiconv library D1 binding http : www.algonet.se afb d libiconv.d . Comment : The advice about std.windows.charset was very useful . The sollution for Windows is something like fixed fromMBSz cast immutable toMBSz broken 866 65001", "Question : I m trying to print to a device which supports CP866 encoding only . Unfortunately the device from which I m printing an Android device does not support CP866 resulting in abc .getBytes CP866 throwing the UnsupportedEncodingException . So I guess I have to do Unicode to CP866 encoding myself . Is there any freeware java library that does that Comment : According to this page http : docs.oracle.com javase 7 docs technotes guides intl encoding.doc.html CP866 is supported out-of-the-box on every install of the Oracle Java 7 Runtime . What JRE JDK do you use Which version Comment : Sidenote : freeware is an .. . ancient term with a very specific meaning . Hardly any software these days is released as freeware . You re probably looking for either open-source or free software or simply freely available software . Comment : 1.6 because my sending device is an Android phone Comment : so the code runs on Android Then chances are they ve got an entirely different and probably much smaller set of supported encodings . Why not just transmit data as UTF-8 http : utf8everywhere.org Everyone supports that . Comment : Nah the receiving device supports only Cp866 . It s a Russian device . .. . Answer : According to the Oracle documentation Cp866 is a supported encoding for Java 7 . So either .. . .. . you are using an old version of Java that doesn t support Cp866 e.g . see @Joachim s comment or .. . the Java runtime is not recognizing the name you are using . The canonical name for the charset is Cp866 not CP866 . UPDATE - it is unlikely to be the latter . From what I can make out from the source http : grepcode.com file repository.grepcode.com java root jdk openjdk 6-b14 sun nio cs FastCharsetProvider.java the charset lookup mechanism used by the standard provider is case insensitive . References : .. . .. . Supported Encodings in Java 7 http : docs.oracle.com javase 7 docs technotes guides intl encoding.doc.html .. . Supported Encodings in Java 6 http : docs.oracle.com javase 6 docs technotes guides intl encoding.doc.html .. . Supported Encodings in Java 5 http : docs.oracle.com javase 1.5.0 docs guide intl encoding.doc.html Comment : In Java 5 that encoding was provided by charsets.jar http : docs.oracle.com javase 1.5.0 docs guide intl encoding.doc.html which isn t always installed depending on the language settings of the computer . Java 6 already had it in rt.jar http : docs.oracle.com javase 6 docs technotes guides intl encoding.doc.html . Comment : In Java 6 this is supported according to the documentation http : docs.oracle.com javase 6 docs technotes guides intl encoding.doc.html . Comment : My sending device is an Android device . It has Java 1.6 . abc .getBytes Cp866 throws an exception . So do I use any other code instead Comment : @Alex : Android is not Java 1.6 . It s something similar to Java google for Dalvik . I assume they only support a small set of encodings because there s less of a legacy story on Android . Comment : @Joachim Sauer Right right so how to overcome", "Question : I use OCS Inventory for inventorying of our PCs . It works almost fine but.. . but 99 of these PCs works under Windows R : XP and Seven . And there no any standard for WMI information . For example OCS Agent resident program on target PC which collects data and sends them to OCS Server may get response as Realtek PCIe GBE Family Controller 1 Gb s pure English encoding is not an issue or as Intel R 82566DM-2 100 Mb s incorrect Russian CP1251 or as Realtek RTL8169 8110 Family Gigabit Ethernet NIC - 100 Mb s incorrect Russian CP866 . Or VIA Rhine III Fast Ethernet Adapter - 100 Mb s correct Russian UTF8 or another Unicode .. . .. . I have no way to make Windows return these results in only one encoding : it seems to be up to the minds of driver manufacturers : which encoding was used in the driver s .INF file that encoding will be returned by WMI . Mostly it is not a problem but my bosses very dislike to see hieroglyphs in quarterly reports about the state of our IT infrastructure . And they seems to be right . Is there any way to re-encode single fields from one encoding into another on-the-fly I will not re-encode the entire column because of mixed contents . I can roughly determine which encoding was used but I don t know how to re-encode using only MySQL s SQL language to produce correct reports . Any working suggestions please .. . Answer : It looks like the only way was writing the stored procedure . I made it . Left column castbin is the text before processing right converted is the same text after processing .. . .. . enter image description here http : i.stack.imgur.com sHdfG.jpg .. . .. . Let see the code .. . .. . @castbin variable used just for clarification and readability . All the job done by repCxAxEx function named after replace 0xCx 0xAx with 0xCx 0xEx . Here s the very inoptimal but working code of this function taken from MySQL Studio .. . .. . First we looking if the string is convertable then doing two conversions - for 0xC2 and 0xC3 prefixes because these prefixes means different encoding errors . UPDATE : Thorough testing catched some mistakes . Somewhere inside the query I use group-concat operator to merge the values of several properties of same PC into one long string with n as separator . In such cases the conversion may not work . On exit the function adds one digit into the beginning of returned string . The digit itself is determined by the @altered variable and its code is self-explaining . More correct form of invocation is :", "Question : null .. . Answer : How can I add support for Cp866ukr for Ukrainian language encoding in my Android application I need to extend Charset http : developer.android.com reference java nio charset Charset.html class . Is there any open-source implementation of this charset for Java like this http : grepcode.com file repository.grepcode.com java root jdk openjdk 7u40-b43 sun nio cs IBM866.java for default Cp866" ] }
[ "yes-answer-long", "yes-answer-short" ]
ascii
UNK_RELATION
mirrorlink@android-auto@130
mirrorlink -- mirrorlink is a technology to make applications useable in a vehicle while it is in motion.similar to carplay oder @placeholder .
{ "confidence": [ 64.1307601928711, 54.64418029785156, 53.06349182128906, 49.217002868652344, 44.035804748535156, 44.035804748535156, 44.035804748535156, 44.035804748535156, 43.871253967285156, 43.871253967285156, 43.871253967285156, 43.871253967285156, 40.86479949951172, 39.07982635498047, 38.6900520324707, 38.6900520324707, 38.6900520324707, 38.6900520324707, 38.6900520324707, 38.6900520324707, 30.33718490600586, 26.848224639892578, 19.415632247924805, 19.415632247924805, 19.415632247924805, 19.415632247924805, 19.415632247924805, 19.415632247924805, 19.415632247924805, 19.415632247924805, 19.415632247924805, 19.415632247924805, 19.415632247924805, 19.415632247924805, 19.415632247924805, 19.415632247924805, 19.415632247924805, 19.415632247924805, 19.415632247924805, 19.415632247924805, 14.0698823928833, 14.0698823928833, 14.0698823928833, 14.0698823928833, 14.0698823928833, 14.0698823928833, 14.0698823928833, 14.0698823928833, 14.0698823928833, 14.0698823928833, 14.0698823928833, 14.0698823928833 ], "content": [ "This ensures the validity of the MirrorLink capable phone against the MirrorLink capable vehicle .", "I m trying to link Samsung Note 5 with Mirrorlink activated with Mirrorlink 1.1 QT Simulator in Ubuntu 15.10 .", "The MirrorLink CommonAPI service calls the IDeviceStatusListener s onMicrophoneStatusChanged method .", "I am writing mirrorlink-server data services CDB SBP module .", "I receive in Debug Window a series of message : .. . .. . But Mirrorlink Simulator screen shows Start Mirrolink on the Mobile Device as-if the mobile is not detected .", "How can I check if anything is wrong and right using Mirrorlink QT Simulator with my Note 5", "which api is trigerred when the user clicks on the voice control of carkit in mirrorlink mode .", "suppose user click on the steering mounted voice control button .How to capture that event in mirrorlink app .", "With Mirrorlink you can control your phone by touching on sink s screen .", "Can we implement MirrorLink on Android devices which are not currently supported", "I m currently using OnePlus Two but it doesn t support MirrorLink .", "To be a fully MirrorLink 1.1 capable phone it has to be certified by the Car Connectivity Consortium .", "The following kernels are known to work with MirrorLink devices tested with HTC One M8 : .. . .. . 3.13.0-88-generic .. . 3.13.0-86-generic .. . 3.13.0-83-generic", "As the HTC ONE M8 is certified for MirrorLink usage it also has a customized car app which comes with an activity that allows phone calls while driving .", "I know that Miracast peer-to-peer wireless screencasting standard uses wifi-direct and Mirrorlink doesn t .", "Miracast applies to an any two devices having wifi-direct where as Mirrorlink applies to car infotainment devices and mobile .", "MirrorLink allows you to use a supporting head unit as a remote terminal for supporting phones .", "You can run MirrorLink over WiFi if the devices support but most devices use USB connectivity .", "So unfortunately the manufacturer of the phone has to implement MirrorLink no weekend coding fun for normal users .", "If you would like to implement MirrorLink in the so called 1.0 version it would be possible to do it I guess .", "But this implementation would not be useable while driving in any cars as far as I know .", "This is implemented to make sure the device will only send content applications which are safe to use while driving .", "However all the common APIs of Data Services 8 manager and 5 listener seem to be useful only when server is in sink mode .", "When I will get a GET SET or SUBSCRIBE command from client which common API is to be used to notify the server application about the request so that application can fill the object and response can be sent back to the client", "Otherwise what data will server send as response if it can t notify to the server application", "The phone server can be data source for the head unit client but support is optional for both the phone and the head unit .", "There aren t many phones or head units that support it at this time .", "The Common API does not currently define how to provide a data object as a source .", "This will be defined in a future revision as an additional service module .", "There is a problem in Qt 4.8 which may cause some Linux kernels to not correctly work with Qt s QUdpSocket implementation .", "There is a bug reported but it won t get fixed .", "The Qt Client has been developed and tested for 12.04 LTS .", "It needs a 2.3 Linux Kernel", "Newer Linux 3.13 kernels should work now without a problem .", "If the argument is true the microphone was opened false if it was closed .", "CommonAPI in General : https : causeway.carconnectivity.org wg DevWG document 1989 Java Doc for the Android Version of the CommonAPI : https : causeway.carconnectivity.org wg DevWG document 2119 .. . .. . Example : .. . .. . And where you set up your CommonAPI service acccess do not forget to link the listener to the service :", "I want to differentiate between setMicrophoneOpen api and voicebutton click as both will result in on microphone status changed callback", "I think this is best done with an internal state machine .", "If setMicOpen was called and onMicStatusChange true came it is the setMicOpen method .", "Otherwise it was the external mic open call .", "Other then the above mentioned are there any other difference I should know", "It provides framebuffer replication like Miracast but it also provides control events application selection support via UPnP bi-directional audio and bi-directional data exchange .", "Miracast just mirror you can t do anything else", "Is there a way to start this activity from an external application", "Is the only way to call this activity if the app or rather that activity has implemented the ACTION CALL intent", "thanks", "Is there a way to start this activity from an external application", "Yes you can do that with an intent filter http : developer.android.com guide topics manifest intent-filter-element.html here s the information : .. . .. . http : developer.android.com training basics intents filters.html .. . .. . but if you only want to open the application knowing the application package is enough with :", "To do this the other application has to have the intent filter set and I have to know the package name of the application right", "This includes implementing a function called device attestation protocol DAP .", "Let me know how OnePlus replies to your feature request .", "This version has not the requirement of DAP ." ] }
{ "confidence": [ 89.78192138671875, 66.79056549072266, 65.32711791992188, 61.35003662109375, 59.09059143066406, 58.70589828491211, 48.10650634765625, 45.46582794189453 ], "content": [ "Question : Can we implement MirrorLink on Android devices which are not currently supported I m currently using OnePlus Two but it doesn t support MirrorLink . .. . Answer : To be a fully MirrorLink 1.1 capable phone it has to be certified by the Car Connectivity Consortium . This includes implementing a function called device attestation protocol DAP . This ensures the validity of the MirrorLink capable phone against the MirrorLink capable vehicle . This is implemented to make sure the device will only send content applications which are safe to use while driving . So unfortunately the manufacturer of the phone has to implement MirrorLink no weekend coding fun for normal users . Let me know how OnePlus replies to your feature request . If you would like to implement MirrorLink in the so called 1.0 version it would be possible to do it I guess . This version has not the requirement of DAP . But this implementation would not be useable while driving in any cars as far as I know .", "Question : I m trying to link Samsung Note 5 with Mirrorlink activated with Mirrorlink 1.1 QT Simulator in Ubuntu 15.10 . I receive in Debug Window a series of message : .. . .. . But Mirrorlink Simulator screen shows Start Mirrolink on the Mobile Device as-if the mobile is not detected . How can I check if anything is wrong and right using Mirrorlink QT Simulator with my Note 5 .. . Answer : Newer Linux 3.13 kernels should work now without a problem . The following kernels are known to work with MirrorLink devices tested with HTC One M8 : .. . .. . 3.13.0-88-generic .. . 3.13.0-86-generic .. . 3.13.0-83-generic", "Question : I m trying to link Samsung Note 5 with Mirrorlink activated with Mirrorlink 1.1 QT Simulator in Ubuntu 15.10 . I receive in Debug Window a series of message : .. . .. . But Mirrorlink Simulator screen shows Start Mirrolink on the Mobile Device as-if the mobile is not detected . How can I check if anything is wrong and right using Mirrorlink QT Simulator with my Note 5 .. . Answer : There is a problem in Qt 4.8 which may cause some Linux kernels to not correctly work with Qt s QUdpSocket implementation . There is a bug reported but it won t get fixed . The Qt Client has been developed and tested for 12.04 LTS . It needs a 2.3 Linux Kernel", "Question : which api is trigerred when the user clicks on the voice control of carkit in mirrorlink mode . suppose user click on the steering mounted voice control button .How to capture that event in mirrorlink app . .. . Answer : The MirrorLink CommonAPI service calls the IDeviceStatusListener s onMicrophoneStatusChanged method . If the argument is true the microphone was opened false if it was closed . CommonAPI in General : https : causeway.carconnectivity.org wg DevWG document 1989 Java Doc for the Android Version of the CommonAPI : https : causeway.carconnectivity.org wg DevWG document 2119 .. . .. . Example : .. . .. . And where you set up your CommonAPI service acccess do not forget to link the listener to the service : Comment : I want to differentiate between setMicrophoneOpen api and voicebutton click as both will result in on microphone status changed callback Comment : I think this is best done with an internal state machine . If setMicOpen was called and onMicStatusChange true came it is the setMicOpen method . Otherwise it was the external mic open call .", "Question : I know that Miracast peer-to-peer wireless screencasting standard uses wifi-direct and Mirrorlink doesn t . Miracast applies to an any two devices having wifi-direct where as Mirrorlink applies to car infotainment devices and mobile . Other then the above mentioned are there any other difference I should know .. . Answer : With Mirrorlink you can control your phone by touching on sink s screen . Miracast just mirror you can t do anything else", "Question : I know that Miracast peer-to-peer wireless screencasting standard uses wifi-direct and Mirrorlink doesn t . Miracast applies to an any two devices having wifi-direct where as Mirrorlink applies to car infotainment devices and mobile . Other then the above mentioned are there any other difference I should know .. . Answer : MirrorLink allows you to use a supporting head unit as a remote terminal for supporting phones . It provides framebuffer replication like Miracast but it also provides control events application selection support via UPnP bi-directional audio and bi-directional data exchange . You can run MirrorLink over WiFi if the devices support but most devices use USB connectivity .", "Question : I am writing mirrorlink-server data services CDB SBP module . However all the common APIs of Data Services 8 manager and 5 listener seem to be useful only when server is in sink mode . When I will get a GET SET or SUBSCRIBE command from client which common API is to be used to notify the server application about the request so that application can fill the object and response can be sent back to the client Otherwise what data will server send as response if it can t notify to the server application .. . Answer : The phone server can be data source for the head unit client but support is optional for both the phone and the head unit . There aren t many phones or head units that support it at this time . The Common API does not currently define how to provide a data object as a source . This will be defined in a future revision as an additional service module .", "Question : As the HTC ONE M8 is certified for MirrorLink usage it also has a customized car app which comes with an activity that allows phone calls while driving . Is there a way to start this activity from an external application Is the only way to call this activity if the app or rather that activity has implemented the ACTION CALL intent thanks .. . Answer : Is there a way to start this activity from an external application Yes you can do that with an intent filter http : developer.android.com guide topics manifest intent-filter-element.html here s the information : .. . .. . http : developer.android.com training basics intents filters.html .. . .. . but if you only want to open the application knowing the application package is enough with : Comment : To do this the other application has to have the intent filter set and I have to know the package name of the application right" ] }
[ "yes-answer-long", "yes-answer-short" ]
android-auto
UNK_RELATION
affinetransform@scaling@120
affinetransform -- an affine transform is a special 3x3 matrix used to apply translation rotation shearing or skew and @placeholder to coordinate-systems in two dimensional graphic contexts .
{ "confidence": [ 40.74758529663086, 37.455387115478516, 34.94136428833008, 33.65533447265625, 32.82701110839844, 32.14923858642578, 31.676485061645508, 31.39202117919922, 31.292814254760742, 30.60418701171875, 30.547134399414062, 30.489044189453125, 30.437175750732422, 30.010211944580078, 30.003849029541016, 29.917991638183594, 29.866512298583984, 28.949743270874023, 28.64867401123047, 28.628854751586914, 28.522193908691406, 28.41600227355957, 28.245290756225586, 28.159992218017578, 28.145160675048828, 27.875993728637695, 27.76038360595703, 27.721973419189453, 27.608308792114258, 27.602216720581055, 27.573938369750977, 27.4495849609375, 27.36280632019043, 27.238937377929688, 27.223400115966797, 26.822229385375977, 26.569272994995117, 26.511878967285156, 26.487577438354492, 26.255252838134766, 26.204439163208008, 26.016029357910156, 26.016029357910156, 25.870351791381836, 25.793102264404297, 25.793102264404297, 25.7193546295166, 25.664260864257812, 25.62384796142578, 25.6200008392334, 25.339691162109375, 25.339080810546875, 25.320087432861328, 25.18819236755371, 25.1135311126709, 25.01903533935547, 25.01903533935547, 24.84619140625, 24.756620407104492, 24.57530403137207, 24.481006622314453, 24.4186954498291, 24.37543296813965, 24.30384063720703, 24.233816146850586, 24.132396697998047, 24.132396697998047, 24.081451416015625, 24.055465698242188, 23.9815673828125, 23.92308807373047, 23.829944610595703, 23.797374725341797, 23.535974502563477, 23.53230857849121, 23.512611389160156, 23.508874893188477, 23.460155487060547, 23.402448654174805, 23.397857666015625, 23.397857666015625, 23.14992904663086, 23.11614990234375, 23.11614990234375, 23.09202766418457, 23.085840225219727, 23.076337814331055, 22.835941314697266, 22.812068939208984, 22.766523361206055, 22.685558319091797, 22.665206909179688, 22.56874656677246, 22.523601531982422, 22.523601531982422, 22.523601531982422, 22.523601531982422, 22.356964111328125, 22.230260848999023 ], "content": [ "If you define an appropriate affine transformation https : en.wikipedia.org wiki Transformation matrix Affine transformations you can apply a rotation and translation to a vector by a single matrix-multiplication .", "Also when that happens is it possible to do Affine transfotmation rotation translation scaling shearing etc of small triangles in the mesh to form a 2D shirt .", "I was looking at some code in python skimage toolkit regarding representing affine transformations in 2D and there is an AffineTransform class which is defined as : .. . .. . I notice that the shearing only takes one parameter shearing angle in counter-clockwise direction .", "Or alternative function in opencv for similarity transform rotation + scale + translation", "An affine transform is a matrix that is applied to transform coordinates in one image into the image space of the other .", "I made an assumption that affine transform would suffice because in your animation the transform is affine parallel lines stay parallel .", "do you mean the rotation matrix part of the affine transformation or the alignment of a transformed line", "The order in PAffineTransform is related to the fact that each node in Piccol2D has an affine transform that defines a local coordinate system for that node .", "The other strange thing is that the output is matrix 3x3 but I need to get just two vectors or two column matrix .", "How should I set affineTransform to have proper moving after rotation", "Got computer graphic assignment to draw a fractal using webgl and affine transformations .", "How can I find transformation matrix camera-matrix rotation translation using OpenCV", "M is an affine transformation matrix that can transform coordinates from one coordinate system to another as follows : .. . .. . Now I ve got coordinates on the form of ndgrid meshgrid : .. . .. . How can I convert these to X new etc", "Expressing this in matrix form gives .. . .. . Now find the inverse of the 3x3 matrix on the right .", "The AffineTransform associated with the graphics context passed to paintComponent is not always the identity transform .", "translation rotation shear and scaling .", "But the key point is finding the inverse of the 3x3 matrix .", "I ve tracked a plane through an image sequence using OpenCV and produced a chain of 3x3 TRS homogenous transform matrices actually affine homographies but I m simplifying .", "I have used cv : : estimateRigidTransform rect1 coners rect1 coners to calculate the transform matrix .", "I can calculate transform matrix from .. . .. . T X Xp .. . .. . but it will give me affine matrix due to small errors in points coordinates .", "http : stackoverflow.com questions 22174959 how-to-apply-an-affine-transformation-4x4-matrix-to-ndgrid-meshgrid-results rq 1 .. . .. . Interpolating 2D Matrix Data http : stackoverflow.com questions 24329891 interpolating-2d-matrix-data .. . .. . scattered data interpolation http : stackoverflow.com questions 21275574 matlab-interpolation-for-specific-points 21277035 21277035 .. . .. . Python PIL affine transformation http : stackoverflow.com questions 17056209 python-pil-affine-transformation .. . .. . How do I rotate a 3D matrix by 90 degrees counterclockwise", "The code I have so far calculates the bounding-box for a given rotation using basic trigonometry it then applies a translation to the rotation matrix .", "First does this affine transformation matrix look correct", "Hi i am trying to create the affine transform that will allow me to transform a triangle into another one .", "From the nifti header its easy to get the affine matrix .", "I get the angle of the line and use that angle to get the rotation matrix and perform wrap affine on the whole image using opencv functions .", "They are at different scales resolutions and in a different coordinate system but of both I know the affine transformation to world coordinates .", "If you have 3 vertices you can compute the affine transform matrix using : Affine transformation algorithm http : stackoverflow.com questions 2755771 affine-transformation-algorithm .. . .. . To achieve the infinite repeat use UIImageResizingMode.Tile https : developer.apple.com library ios documentation UIKit Reference UIImage Class index.html apple ref c tdef UIImageResizingMode .", "The object can only be modified in scene by similarity transform in 2D space scaled rotated translated so I need to estimate 2x2 transform matrix instead of 3x3 homography matrix in 3D space .", "To solve for its entries you ll end up having to invert a 3x3 matrix .", "There does not seem to be a simple way to apply an affine transformation to a node in SpriteKit .", "Plugging these in and converting to matrix form yields : .. . .. . Solving this 6x6 system of equations yields you your affine transformation matrix A .", "You can use find an affine transformation between the point sets using opencv this is slightly more general than the case you are describing known as a similarity transform as it describes shearing transformations of the shapes as well .", "- Which transformation s will be needed translation rotation scaling", "I ve noted that it doesn t matter how I use the AffineTransform translation only rotation only scale only I seem to get the same results .. . .. . Updated with example image .. . .. . Example showing resizing frame.. .", "It will make the translation and rotation matrix simpler and the memory required to perform the operation less...IMHO", "The upper left 3x3 part of it will be not a rotation because of errors in points .", "This takes 2 sets of three points and calculates an affine transform between them .", "We can use all the 3x3 rotation matrices discussed previously by fitting them into a 4x4 matrix in the following pattern : .. . .. . For example the y-axis rotation above is now represented by .. . .. . As before we use MultiplyMatrixVector to apply a transformation to a point and MultiplyMatrices to do transformations in sequence .", "It can be computed by applying the matrix .. . .. . and then dropping the z coordinate .", "Instead of the AffineTransform it works fine .", "I assume I could use an AffineTransform with rotation only as opposed to having to perform a supersampling .", ".. . .. . I assume I could use an AffineTransform with rotation only as opposed to having to perform a supersampling .", "Is there an example with the AffineTransform as a parameter to PdfContentByte addImage call using an AffineTransform as a parameter", "Typically you need both a forward and inverse transform to translate between the two co-ordinate systems .", "It sounds like you need both a forward and inverse transform to translate between the two co-ordinate systems .", "Before I used estimateRigidTransform for estimating the affine matrix and the transform function for transforming the images all was fine for color images until I needed to register grayscale images then this method failed .", "AffineTransform first and currently only use : .. . .. . And a button :", "This is used to construct a destination BufferedImage of the correct dimensions and to append a translation to your AffineTransform so the image center is placed at the center of the destination image .", "So I should get a similar transform but with opposite direction of rotation .", "The purpose of this GUI is to open an buffered image in a JLabel as icon and apply Affine transforms on it .", "Given 3 points x and y coordinates in coordinate system A and 3 corresponding points in coordinate system B how can I derive an AffineTransform that will convert from A to B .", "I can understand this behavior of AffineTransform .", "I need AffineTransform object .", "I m not sure if this will fix the issue but I would work with a single transform and apply each action against it rather then concatenating it at the end I would also play around with the ordering...take a look at AffineTransform translate and AffineTransform scale .. . That many translations are probably not a great idea either : P", "@Micka the rotation matrix part .Thank you for your comment .", "You can modify the model-view matrix to do the rotation and scaling if needed .", "Since you only need 90 degree rotation you can avoid using the AffineTransform stuff : .. . .. . This also avoids cutting off edges of rectangular images .", "What is the best way to do affine image registration for those 2 images meaning finding the affine transformation matrix between them", "This results in this affine formula : .. . .. .", "Everything should be in the right spot with the Affine Transform but the transformation is coming out all wrong .", "It fits here because values of transform matrix are in fact integers .", "My first thought was to decompose each matrix into T R S translation rotation scale components and then filter each component with Gaussian convolution .", "Thanks for the clarification on the use of AffineTransform in Graphics2D .", "I want to find 3d-affine transformation translation rotation and scale of 3D-model so that projection of this 3D-model give me 2D points on plane the same as I have .", "I have some problems with using AffineTransform .", "So that the JComponent is not affected by the JPanel s AffineTransform", "If you must express the transform as a single rotation the anchor point depends on the direction of rotation : Either w 2 w 2 or h 2 h 2 .", "However when I use AffineTransform my JButtons disappear .", "Am I correct in thinking I can use Apache commons-math library to do the matrix inversion and multiplication then use that result in the AffineTransform constructor", "This simple code draw nothing.. . Save current transform context AffineTransform current g2d.getTransform g2d.setPaint new Color 255 255 255 Rectangle r new Rectangle 10 10 100 10 AffineTransform at new AffineTransform at.rotate Math.PI 6 g2d.transform at g2d.fill r g2d.draw r restore original transform context g2d.setTransform current if I remove the g2d.transform the rectangle appear.. . Why", "Possible dup : stackoverflow.com questions 9749121 http : stackoverflow.com questions 9749121 java-image-rotation-with-affinetransform-outputs-black-image-but-works-well-whe", "I think that the solution may be to either and : .. . .. . invert the order-of-operations on your AffineTransform put translate after rotate .. . use -x and -y for your translation values", "Now the problem that i have is that i don t believe that one can model such a behaviour with a pure 3x3 matrix in an easy way .", "If we require that a7 0 a8 0 and a9 1 then the solution will be unique this choice is natural since it means if the input point is x y 1 then the output point will always have homogeneous coordinate 1 so the resulting transform is just a 2x2 transform plus a translation .", "An other solution would be to use the SURF or SIFT algorithms to detect and match the points then apply the affine transformation .", "Can someone point me to a tutorial that allows the user to affine transform a certain shape as well as move the shape ONLY when the shape itself is clicked + dragged .", "An affine transformation satisfying P A P where P is the projection and A is the affine transformation would be A u u .. . u +I where you form a matrix from the nullspace vector u to match the dimension of A likely 4x4 to include translation .", "Sequential transform modification means matrix-multiplication from the right .", "if I use the commented line without the transform it works perfectly adding the image to the PDF generated but with the AffineTransform setToIdentity it does not show up .", "To transform from a b - c d to e f - g h you can perform the following computation : .. . .. . Here is the corresponding AffineTransform code :", "If you just need the angle of a single line it is ok to transform 2 points on the line and compute their angle to the coordinate system axis", "Shape with AffineTransform in order to draw it in a defined bounding Rectangle .", "Graphics2D g2d Graphics2D g .. . AffineTransform at g2d.getTransform .. . .. . .. . 2 .", "What happens is you load the direction cosines http : en.wikipedia.org wiki Direction cosine in a rotation matrix to align the basis vectors and you load the the pixel spacing and slice spacing in a matrix to scale the basis vectors and you load the image position to translate the new coordinate system .", "Can I do this with AffineTransform too", "An affine transformation matrix has 9 values in it : .. . .. . There are 3 input vertices x1 x2 and x3 which when transformed should become y1 y2 y3 .", "I have a large image A and another image B which has an alpha channel that I would like to paste into A . I want to apply an affine transform to B before I stick it on to A .", "Instead your visual artifacts stem from the limited 8-bit fixed-point precision in the affine transformation used by the hardware .", "The affine matrix A is .. . .. . This form is useful when x and A are knowns and you wish to recover x .", "Post-multiply both sides of the equation above by the inverse of the 3x3 matrix to get the values of p q r s t u v .", "I m trying to apply an affine transformation to a CALayer using the following code : .. . .. . But am met with the error .. . .. . cannot assign to property : myLayer is immutable .", "Now I scale the svg image and showed it in the sub canvas with AffineTransform but the red point is not on the center of the sub canvas as the sketch my code is : .. . .. . it seems that the sub canvas s coordinate should be considered I try a lot but cannot correct that .", "Is it possible to provide an example of Java code that would build an AffineTransform object", "I have created an AffineTransform object at and called the rotate method .", "I have some problems with rotating images in Java using the AffineTransform class .", "If I remove the setRotation and setScale calls from the AffineTransform it doesn t fix it .", "My corrected code is as follows : .. . .. . I d still appreciate seeing alternative methods people are using to perform rotation and translation", "So I need to calculate the transformation matrix and then apply it to p4 ." ] }
{ "confidence": [ 66.17672729492188, 62.327415466308594, 58.60841751098633, 54.709136962890625, 54.027374267578125, 53.900882720947266, 52.639434814453125, 52.53003692626953, 51.67569351196289, 51.469940185546875, 50.35037612915039, 49.24070739746094, 49.00163269042969, 47.54542541503906, 46.377689361572266, 46.07953643798828, 45.48993682861328, 44.68251037597656, 43.999385833740234, 43.917362213134766 ], "content": [ "Question : Given 3 points x and y coordinates in coordinate system A and 3 corresponding points in coordinate system B how can I derive an AffineTransform that will convert from A to B . My question is similar to Create transform to map from one rectangle to another http : stackoverflow.com questions 14015456 create-transform-to-map-from-one-rectangle-to-another except that question only deals with 2 points - i.e . it assumes there is no rotation . Comment : Hint : express your transformation as a 3x2 matrix . To solve for its entries you ll end up having to invert a 3x3 matrix . If nobody else posts an answer I ll try to find some time later . .. . Answer : Suppose your transform is of the form .. . .. . and write your six points as A1x A1y A2x A2y A3x A3y B1x B1y B2x B2y B3x B3y . Expressing this in matrix form gives .. . .. . Now find the inverse of the 3x3 matrix on the right . You ll find plenty of algorithms online telling you how to do this . There s one at http : www.econ.umn.edu undergrad math An 20Algorithm 20for 20Finding 20the 20Inverse.pdf for example . Post-multiply both sides of the equation above by the inverse of the 3x3 matrix to get the values of p q r s t u v . Comment : Thanks for your answer but the matrix stuff is a bit of a mystery to me . Is it possible to provide an example of Java code that would build an AffineTransform object Or if not that do you know of any tutorial that starts from the basics The information I ve been able to find so far either starts right off with matrices and loses me immediately or it only deals with straightforward uses of the AffineTransform methods . Comment : You re asking me for a LOT of code there . But the key point is finding the inverse of the 3x3 matrix . Why don t you either find a library that will do that or start working on converting the algorithm that I linked to into code Comment : Am I correct in thinking I can use Apache commons-math library to do the matrix inversion and multiplication then use that result in the AffineTransform constructor Comment : I don t know . Probably . I ve never used it .", "Question : Given 3 points x and y coordinates in coordinate system A and 3 corresponding points in coordinate system B how can I derive an AffineTransform that will convert from A to B . My question is similar to Create transform to map from one rectangle to another http : stackoverflow.com questions 14015456 create-transform-to-map-from-one-rectangle-to-another except that question only deals with 2 points - i.e . it assumes there is no rotation . Comment : Hint : express your transformation as a 3x2 matrix . To solve for its entries you ll end up having to invert a 3x3 matrix . If nobody else posts an answer I ll try to find some time later . .. . Answer : In case this is useful to anyone else here is the Java code I used to do this .", "Question : I find the following code inside PAffineTransform http : www.piccolo2d.org doc piccolo2d.java release-1.3 core apidocs edu umd cs piccolo util PAffineTransform.html : .. . .. . Wouldn t it correct to do reverse : .. . .. . All used methods are the same as in AffineTransform http : docs.oracle.com javase 7 docs api java awt geom AffineTransform.html . UPDATE .. . .. . My mistake . Sequential transform modification means matrix-multiplication from the right . So the last applied modification works first while transforming because transforming is matrix-multiplication from the left . .. . Answer : The order in PAffineTransform is related to the fact that each node in Piccol2D has an affine transform that defines a local coordinate system for that node . Usually to scale about a particular point you first translate the object so that the point is at the origin . You then perform the scaling and then the inverse of the original translation to move the fixed-point back to its original position . PNode has its own local coordinate system with origin at 0 0 . So when scaleAboutPoint is performed on a node the order defined in PAffineTransform makes sense . First translate to the point so it becomes the new origin then scale then inverse the translation .", "Question : Hi i am trying to create the affine transform that will allow me to transform a triangle into another one . What i have are the coordinates for the 2 triangles . Can you help me Following the answer by Adam Rosenfield i came up with this code in case anyone is bored to solve the equation himself : Comment : So you need to move the one triangle in a way that the coordinates match the second coordinates without changing the appearance of the triangle What kind of coordinates do you have Comment : 2 completely different triangles both in shape and location . They both reside in the same coordinate system . Comment : Very useful thanks Just a quick reminder that if using javascript html5-canvas the context.setTransform function takes in the exact outputs of your function so this is a great tool for mapping images from one coordinate system to another when you have a triangle of points registered for each . .. . Answer : If I understand this correctly your triangles have the same size and angles so you should be able to tranform them so that they have at least one point in common . After this they should only differ in rotation or could be mirrored so you could f.e . get the angles between the triangle lines and try these for rotation and could mirror one of the triangles if none of the angles works . EDIT : OK that s not enough affine transformations also can contain shear and scaling.. . Scaling could be done easily just divide the length of the lines this will also give you some information about corresponding lines of the triangles but shearing will be harder.. . .. . .. . OTOH couldn t you just solve some equation system for this After all there should be a transformation matrix and 3 points new and old .. . Comment : Nope . I want to mirror 1 triangle to a completely different one same coordinate system", "Question : null .. . Answer : Now I got two sets of corner points from two rectangles and the angle from rect1 . I have used cv : : estimateRigidTransform rect1 coners rect1 coners to calculate the transform matrix . How can I use the matrix to calculate the rect2 angle enter image description here http : i.stack.imgur.com kqcFR.jpg Comment : do you mean the rotation matrix part of the affine transformation or the alignment of a transformed line Please keep in mind that transforming a rectangle doesnt necessarily result in a rectangle . If you just need the angle of a single line it is ok to transform 2 points on the line and compute their angle to the coordinate system axis Comment : the question has a broken chain. . if you have the four points if the second rectangle why you want a transformation matrix to solve this problem Comment : @HumamHelfawi Because i want to get the angle which cannot get from coner points Comment : @Micka the rotation matrix part .Thank you for your comment . But if i do not know the points on line just the angle value.How can i get the transform angle Comment : Google for homography matrix-decomposition But I think if you have your rectangle untransformed you can simply transform the corner vertices .", "Question : I was looking at some code in python skimage toolkit regarding representing affine transformations in 2D and there is an AffineTransform class which is defined as : .. . .. . I notice that the shearing only takes one parameter shearing angle in counter-clockwise direction . However why should this not be two parameters I can shear in x AND in y direction . How come these two operations map into one free parameter in 2D .. . Answer : Currently in the code we have for the transformation matrix : .. . .. . I wonder if this is indeed the most intuitive way to specify shear . I have opened an issue : https : github.com scikit-image scikit-image issues 1779 Comment : Thanks . I was wondering if you would be kind enough to explain the algebra behind it . Comment : I agree that this is not the most common way of expressing shear . Feel free to open an issue on that . In the mean time you can use the more generic ProjectiveTransform .", "Question : null .. . Answer : I ve tracked a plane through an image sequence using OpenCV and produced a chain of 3x3 TRS homogenous transform matrices actually affine homographies but I m simplifying . I now want to smooth the motion over time to stabilize the movement of the plane . I don t want to just smooth out translation I also want to smooth away jerks in rotation and scale . My problem comes up when dealing with pivots . My first thought was to decompose each matrix into T R S translation rotation scale components and then filter each component with Gaussian convolution . I don t think this will work . The problem is that if you have a pure rotational movement about a pivot that does not lie at the origin then when decomposed as TRS both translation and rotation will need to vary in-synch over time . If I then smooth T and R separately odd things could happen because in this case the translation is not real translation but translation induced by the pivot . For example imagine the case where I want to smooth T very little and smooth rotation a lot - this will cause wobble because the linked variation of T and R together is responsible for the rotation about the pivot . In this particular example if I instead decomposed as SRT rather than TRS then there would be no problem . My second thought was that I could somehow figure out the pivots afterwards by looking at the sequence of transforms . I could assume the existence of pivots for rotation scale that are constant over the entire image sequence and then try to minimize via gradient descent the variation in the leftover translation component over the entire sequence . I m not sure this will work . In general I m not sure this is even a solvable problem . Comment : Have you tried with a Kalman filter Comment : @Steve do you find any useful hints in the answers to stackoverflow.com questions 4099369 http : stackoverflow.com questions 4099369 interpolate-between-rotation-matrices Comment : @Catree I don t know very much about Kalman filters but reading the wikipedia entry it seems its intended to solve a different kind of problem than this . Comment : @Alessandro I don t see anything useful . Quaternions are useful for representing 3D rotations but in the case of a homography relating a planar region as seen in two images there is only a single 2D rotation involved . I m decomposing the transform into TRS + shear as they do here math.stackexchange.com questions 612006 http : math.stackexchange.com questions 612006 decomposing-an-affine-transformation and then separately interpolating each component . They also discuss how to interpolate between 2 affine transforms but I don t see how to extend that to interpolate between a Gaussian weighted-average of affine transforms Comment : To expand on my previous comment I don t want to interpolate between the entire affine transform I want to do something like a Gaussian convolution of just the TRS values but leave shear perspective unchanged because changing shear perspective would introduce weird distortions .", "Question : From the nifti header its easy to get the affine matrix . However in the DICOM header there are lots of entries but its unclear to me which entries describe the transformation of which parameter to which new space . I have found a tutorial http : nipy.org nibabel dicom dicom orientation.html which is quite detailed but I cant find the entries they refer to . Also that tutorial is written for Python not Matlab . It lists these header entries : .. . .. . I cant find these if I load the header with dicominfo . Maybe they are vendor specific or maybe they are nested away somewhere in the struct . Also the Pixel Spacing they refer to consists of two values so I think their tutorial will only work for single slice transformations . More header entries about slice thickness and slicegap would be needed . Its also not easy to calculate the correct transformation for the z coordinates . Does anybody know how to find these entries or how to transform image coordinates to patient coordinates with other information from a DICOM header I use Matlab . Comment : Please motivate downvotes so I can improve the question thank you . .. . Answer : Ok so they were nested away in what might be a vendor specific entry of the struct . When loaded in Matlab the name of the nest was inf.PerFrameFunctionalGroupsSequence.Item X . then the framenumber and then some more nesting which was more straightforward self explanatory so I wont need to add it here . But search for the entries you need there . The slice spacing is called SpacingBetweenSlices or slice thickness in the single slice case the pixel spacing is called PixelSpacing and then there are ImagePositionPatient for the translation and ImageOrientationPatient for the rotation . Below is the code I wrote when following the steps from the nipy link below . What happens is you load the direction cosines http : en.wikipedia.org wiki Direction cosine in a rotation matrix to align the basis vectors and you load the the pixel spacing and slice spacing in a matrix to scale the basis vectors and you load the image position to translate the new coordinate system . Finding the directoin cosines for the z direction takes some calculations because dicom apparently was designed for 2d images . In the single slice case the z direction cosines is the unit vector orthogonal to the x and y direction cosines the cross product between the two and in the multi slice case you can calculate it from all the differences in the translations between the slcies . After this you still want to apply the transformation http : stackoverflow.com questions 27550846 interpolating-or-resampling-algorithm-in-matlab-for-transformed-3d-image-prefer which is also not immediately straightforward . This results in this affine formula : .. . .. . enter image description here http : i.stack.imgur.com mszuc.png .. . .. . So basically I followed this http : nipy.org nibabel dicom dicom orientation.html dicom-voxel-to-patient-coordinate-system-mapping tutorial . What was the biggest struggle was getting the Z direction and the translation correct . Also finding identifying and converting the correct entries was not straightforward for me . I do think my answer adds something to that tutorial though because it was pretty hard to find the entries they refer to and now I wrote some Matlab code getting the affine matrix from a DICOM header . Before using the found affine matrix you also might need to find the Z coordinates for all of your frames which might not be trivial if your dataset has more than four dimensions dicomread puts all higher dimensions in one big fourth dimension http : stackoverflow.com questions 21755906 dicom-dimensions-in-matlab-array-all-frames-end-up-in-last-dimension-of-array .. . .. . -Edit- Corrected Z direction and translation of the transformation", "Question : I am on a team making some image interpreting software . I have made a real world distance measuring system that is fairly accurate for a given plane 0.3 difference with real life but when i asked my senior coworker how i could make it real world accurate he told me that i needed to calculate the affine parameters . I asked for more detail but I m not sure he quite knew it either either way he didn t go into more detail with me . After talking to a few different people about it i am certain that it is what i need to be doing . I have tried reading a lot of articles on how affine transformations work but matrix math has always been a big weakness for me and its been far too long since my calculus 3 classes . Can someone help me understand how you calculate affine transformations with object oriented logic because all these articles i am finding go way over my head when they start including nabla and matrixes and such in their equations its greek to me . I can learn how to use those things im assuming i will need to but it all just seems very convoluted to me . Help in understanding this topic would be greatly appreciated . I don t know if it helps but i am programming in c and start with 6 measurements of the sides and diagonals of a quadrilateral that the user inputs on the image . Comment : Are you familiar with using 3x3 matrices to represent rotations in space IMO it would be good to understand this first as affine transformations are usually represented by 4x4 matrices and in addition to rotations also include translations and projections . Comment : I am not . I am familiar with the fact that it is done i just have zero understanding of how it works .. . Answer : I ll just give some general information since more information about your particular problem would be needed to give more specific advice . Also I won t go into details about matrix-multiplication or about how to construct a matrix representing a rotation etc since I m sure there will be a library in whatever language you re using ie C that takes care of these . 3x3 matrices and rotations in space .. . .. . In this case after choosing an origin and coordinate system we d represent points in space by 3-dimensional vectors eg 0 0 0 would represent the origin and 1 0 0 a point 1 unit from the origin in the positive x direction . Now imagine rotating everything 90 degrees around the y-axis . 1 0 0 would move to 0 0 -1 while 0 1 0 wouldn t move . It turns out there is a matrix representing this rotation namely .. . .. . This means that if you multiply this matrix by a vector you ll get the result-of rotating the vector eg multiplying by 1 0 0 gives 0 0 -1 and multiplying by 0 1 0 gives 0 1 0 . Your matrix library will have a function MultiplyMatrixVector or similar name to do this and a function RotationY or similar name to construct the matrix representing a rotation around the y-axis by a given angle . It will probably represent the matrix by an array of 9 numbers read from the rows of the matrix 0 0 1 0 1 0 -1 0 0 or perhaps read from the columns 0 0 -1 0 1 0 1 0 0 you ll find out which from the documentation or trial-and-error . One advantage of representing rotations by matrices is that if you want to do several rotations in sequence you can just multiply the corresponding matrices . Again your library will have a function like MultiplyMatrices to do this . Note that generally the result depends on the order of the rotations . Again check the library documentation to know which rotation happens first when you use MultiplyMatrices A B . In practice to answer a question like If I rotate 30 degrees around the y-axis then 60 degrees around the z-axis what happens to the point 2 3 4 you would do something like this : .. . .. . 4x4 matrices and affine transformations .. . .. . The next part seems strange but we ll see how it s useful later : we re going to represent points in space by 4-dimensional vectors . Given a point in 3D like 2 3 4 we can get a 4D vector by just tacking a 1 on the end ie 2 3 4 1 . Conversely a 4D vector x y z w represents the point x w y w z w in 3D . Note that 2 3 4 1 and 4 6 8 2 both represent the same point 2 3 4 in 3D . Now we ll use 4x4 matrices to represent transformations . We can use all the 3x3 rotation matrices discussed previously by fitting them into a 4x4 matrix in the following pattern : .. . .. . For example the y-axis rotation above is now represented by .. . .. . As before we use MultiplyMatrixVector to apply a transformation to a point and MultiplyMatrices to do transformations in sequence . Why are 4D vectors useful We can represent some new transformations . For example panning everything 1 unit in the direction of the x-axis a translation is represented by .. . .. . More importantly we can represent a projection . Imagine your eye is at the origin and you are looking through a viewport in the plane at z 1 . Each point in 3D projects to some point in the viewport plane . It can be computed by applying the matrix .. . .. . and then dropping the z coordinate . For example consider the point p 2 3 4 represented by the 4D vector 2 3 4 1 . Applying the matrix gives 2 3 1 4 representing the 3D point 2 4 3 4 1 4 . Dropping the z coordinate p projects to 2 4 3 4 in the plane . This simulates how a camera maps points in 3D space to points in a 2D image . The projection can be more simply described without matrices - it just sends x y z to x z y z . The advantage of using matrices is that it can be easily combined with other transformations . eg if the camera is not located at the origin or pointing in the z direction you can account for this by multiplying by some rotation and translation matrices again being careful to get them in the right order . Comment : That was very informative thank you so much . So how do you go about reversing from 2d to 3d assuming you have measurements parallel to the observed plane I figure you use the inverse matrix and give it a projection into a z coordinate through some common factor of how shrunken a given point is correct", "Question : I am trying to affine rotate matrix in Android based on iOS Code .. . .. . iOS has two functions CGAffineTransformMakeRotation and CGPointApplyAffineTransform used for calculation .. . .. . I am able to calculate a b c d for step 1 using above formula .. . .. . Does anyone know the formula used in ApplyAffineTransform I need help for Step 2 .. . .. . I have tried with Android s Matrix class - Not Working .. . .. . I have also tried with Java s AffineTransform - Not working .. . Answer : The math behind the CGAffineTransform functions is described in The Math Behind the Matrices in the Quartz 2D Programming Guide https : developer.apple.com library mac documentation GraphicsImaging Conceptual drawingwithquartz2d dq affine dq affine.html apple ref doc uid TP30001066-CH204-CJBECIAD . The formulae for transforming a point using an affine transform are given as : .. . .. . x ax + cy + tx .. . y bx + dy + ty .. . .. . Incidentally in your step 1 you have reversed the signs of b and c which has the effect of reversing the direction of rotation . Comment : Thanks @rob It works : -", "Question : I m programming a function in Python in Autodesk Maya using PyMel for Maya .. . .. . I have three 3D points p0 p1 p2 . Then they make a rigid transformation so after the transformation an affine transformation I have their new positions q0 q1 q2 . I also have a fourth point before the transformation p3 . I want to calculate its position after the same transformation q4 . So I need to calculate the transformation matrix and then apply it to p4 . I don t know how to do either . List an array of objects .. . .. . The 3D points are read from animated objects in the Maya scene . So at another frame I run this code to get .. . .. . I tried to calculate with vectors but I ended up with errors due to divisions by zero.. . So I figured that a transformation matrix should solve it without problems . I ve got a deadline not far ahead and I REALLY need help solving this PLEASE HELP Edit : how to perform coordinates affine transformation using python http : stackoverflow.com questions 8873462 how-to-perform-coordinates-affine-transformation-using-python .. . .. . I need this function solve affine but it should take only 3 points from each set instead of 4 . And I can t use numpy.. . Comment : Considering that very few people on this site will understand your question because it is really specific your best course of action would be to post your code of what you were doing with the vectors since we may actually be able to help with that . Comment : Sorry didn t think my code would be of any help . All I ve done so far is assigning the points . I ve added it now hope it will make my problem easier to understand .. . Answer : Both the description and your code are confusing . Description is a bit vague while the code examples are missing important bits and pieces . So here is how I understand the question : .. . .. . Knowing three points in two spaces how to construct a transform from space A to space B .. . .. . two spaces transformed http : i.stack.imgur.com J1aQG.png .. . .. . Image 1 : How to form a transformation between 2 spaces . The answer depends on the type of transform the spaces have . You see three points always form a planar span . This means that you can know what the rotation transform and uniform scale of the new space is . You can also know the shear on the plane as well as nonuniform scale . However you can not know what the shear or nonuniform scale would be in the plane normal direction . Therefore to make sense the question mutates into how to rotate and translate two spaces to match this is pretty easy to do Translation part is directly : .. . .. . trans q0 - p0 .. . .. . That leaves you with rotation which has been explained in several posts : .. . .. . python + maya : Rotate Y axis to be along vector http : stackoverflow.com questions 22924225 python-maya-rotate-y-axis-to-be-along-vector 22936535 22936535 .. . How to convert three dimensional vector to an Euler rotation in software like Maya using python http : stackoverflow.com questions 23532329 how-to-convert-three-dimensional-vector-to-an-euler-rotation-in-software-like-ma 23585781 23585781 .. . .. . You can also calculate a scaling factor after this .", "Question : What is the simplest way to create AffineTransform which maps coordinates from one rectangle to another float double rectangles are given UPDATE 1 .. . .. . Rectangles can be absolutely different . For example 0 0 - 1 1 and 150 -14 - -1000 -14.1 . And transformation should transform uniformly . For example rectangle corners should be transformed one-to-one . For example coordinates 0 0 should turn to 150 -14 . UPDATE 2 .. . .. . I need AffineTransform object not just calculation . Because I want to apply it to Graphics object . Also I would like to have in the form of some concatenation of simple transforms . UPDATE 3 .. . .. . All the following 3 tests are failed : Comment : AffineTransform getTranslateInstance double double http : docs.oracle.com javase 7 docs api java awt geom AffineTransform.html getTranslateInstance 28double 20double 29 .. . You question is a little vague on details Comment : Do you mean you have two given rectangles and want do derive the transformation between them - Which transformation s will be needed translation rotation scaling Comment : @Hanno I will need all transformations required by rectangles . For example if rectangles are equal then it should be Identity transformation . Comment : @MadProgrammer this is just translation . I need also the scale if rectangles are of different size . Comment : all transformations required by rectangles - this includes rotation since a rotated rectangle is still a rectangle whereas for example a sheared rectangle is not a rectangle after the transformation . .. . Answer : To transform from a b - c d to e f - g h you can perform the following computation : .. . .. . Here is the corresponding AffineTransform code : Comment : I need AffineTransform object . Comment : Then you need to concatenate a getScaleInstance g - e c - a h - f d - b and a getTranslateInstance e-a f-b . Comment : @Hanno this is what I was thinking but it does not work Comment : @Dims I added the corresponding code . Comment : @Sam ah great I didn t think about such variant . Note that your exact version does not work you should inverse location of translates .", "Question : I m trying to search a specific object in input images by matching SIFT descriptors and finding the transformation matrix by RANSAC . The object can only be modified in scene by similarity transform in 2D space scaled rotated translated so I need to estimate 2x2 transform matrix instead of 3x3 homography matrix in 3D space . How can I achieve this in OpenCV .. . Answer : You can use find an affine transformation between the point sets using opencv this is slightly more general than the case you are describing known as a similarity transform as it describes shearing transformations of the shapes as well . It can be performed using the function getAffineTransform InputArray src InputArray dst . This takes 2 sets of three points and calculates an affine transform between them . Comment : This method is not robust it s not directly applicable to many pairs of points containing outliers . Perhaps I should implement RANSAC on top of it by myself . Comment : @lizarisk Yes I think you could do this yourself . Out of interest what are you using to match SIFT descriptors Comment : I m trying BFMatcher with L2 norm and cross-checking and FlannBasedMatcher . Comment : try estimateAffine3D function . Comment : Although the method getAffineTransform is not robust enough for your application if it is more than fast enough you can derive a more robust algorithm . For example you could call it with multiple triples of points . Each call returns a matrix . Expectation is that most of the matrices are similar to your expected result with some outliers . You can calculate an element-wise arithmetic average for a first more robust rough estimate . You can use this estimate to eliminate the outliers by calculating distance min sum of sign x square to your average and take the non-element-wise median .", "Question : Hi i am trying to create the affine transform that will allow me to transform a triangle into another one . What i have are the coordinates for the 2 triangles . Can you help me Following the answer by Adam Rosenfield i came up with this code in case anyone is bored to solve the equation himself : Comment : So you need to move the one triangle in a way that the coordinates match the second coordinates without changing the appearance of the triangle What kind of coordinates do you have Comment : 2 completely different triangles both in shape and location . They both reside in the same coordinate system . Comment : Very useful thanks Just a quick reminder that if using javascript html5-canvas the context.setTransform function takes in the exact outputs of your function so this is a great tool for mapping images from one coordinate system to another when you have a triangle of points registered for each . .. . Answer : I m going to assume you re talking about 2D here . An affine transformation matrix has 9 values in it : .. . .. . There are 3 input vertices x1 x2 and x3 which when transformed should become y1 y2 y3 . However since we re working in homogeneous coordinates applying A to x1 doesn t necessarily give y1 -- it gives a multiple of y1 . So we also have the unknown multipliers k1 k2 and k3 with the equations : .. . .. . Each of those is a vector so we really have 9 equations in 12 unknowns so the solution is going to be underconstrained . If we require that a7 0 a8 0 and a9 1 then the solution will be unique this choice is natural since it means if the input point is x y 1 then the output point will always have homogeneous coordinate 1 so the resulting transform is just a 2x2 transform plus a translation . Hence this reduces the equations to : .. . .. . So k1 k2 k3 1 . Plugging these in and converting to matrix form yields : .. . .. . Solving this 6x6 system of equations yields you your affine transformation matrix A . It will have a unique solution if and only if the 3 points of your source triangle are not collinear . Comment : Isn t a 6x6 system kinda heavy handed Comment : Since the question specified affine transformation doesn t that imply that a7 a8 a9 0 0 1 I know that s the result you ended up with it just seems like you went through some unnecessary contortions to get there . The k multiplier thing also seemed overly general .", "Question : hello i have a function and a problem : .. . .. . i should use this function transform vertices just ONCE to rotate translate but how can i use just once my code is Comment : The question is a bit unclear . Why can t you just use a single call to the function What are you actually trying to achieve Comment : @mikkola what i achieve is actually just simple rotation 30degree and translation -2 0 but just one call for function doesnt work or i cant figure i dont know Comment : If you define an appropriate affine transformation https : en.wikipedia.org wiki Transformation matrix Affine transformations you can apply a rotation and translation to a vector by a single matrix-multiplication . .. . Answer : I presume quad is a set of coordinates Your transform vertices function does nothing more than a left matrix-multiplication . So you would get the same result if you do : .. . .. . In fact you don t even need to use the function you can just do : Comment : thx yes quad is exactly how you think of and this form worked perfectly", "Question : I am using PdfStamper getOverContent so I can add an image to the output PDF file using an AffineTransform of Identity type . if I use the commented line without the transform it works perfectly adding the image to the PDF generated but with the AffineTransform setToIdentity it does not show up . could someone help me out with that I intend to use more sophisticated transform but the Identity should work first.. . .. . .. . .. . .. . EDIT copied from the invalid answer .. . .. . I removed the call to setAbsolutePosition and used a setToIdentity as the only transformation and the image is not show.. . Then added the setToTranslation X Y where X and Y are the same values used in the successful case where I do NOT give the transformation as the second parameter and still it does NOT show the image . Is there an example with the AffineTransform as a parameter to PdfContentByte addImage call using an AffineTransform as a parameter I have bought your book but could not fins any . Comment : What does your transform look like Maybe it rotates the image outside the visible area of the page . Also : AFAIK you can t combine setAbsolutePosition a convenience method so that you don t need to define a translation with adding the document defining your own transformation . Comment : I removed the call to setAbsolutePosition and used a setToIdentity as the only transformation and the image is not shown.. . Then added the setToTranslation X Y where X and Y are the same values used in the successful case where I do NOT give the transformation as the second parameter and still it does NOT show the image . Is there an example with the AffineTransform as a parameter to PdfContentByte addImage call using an AffineTransform as a parameter I have bought your book but could not find any . .. . Answer : I have examined your problem and I am pretty sure that your image gets added . However : you can t see it because the dimension of the image is 1 user unit by 1 user unit . I ve made an example to show you how to fix this problem : AddImageAffineTransform http : developers.itextpdf.com examples image-examples images-and-affine-transformations 1556-addimageaffinetransform.java .. . .. . In this example I start with a translation : 36 user units from the left border and 300 user units from the bottom . If I would add the image using this transformation I d add the image at those coordinates but it would be too small to see with the naked eye . To make sure the image is visible I concatenate a scale transformation scaling the image to its width in X direction and to its height in Y direction . Comment : Dear Bruno I appreciate your help . It works fine now that I have followed your directions . Honestly it does not make sense to me to the iText framework to require a scaling in order to render the image properly but once again I thank you for your time and wish I could collaborate more with your efforts if that sounds like proper to you . take care .", "Question : Hi i am trying to create the affine transform that will allow me to transform a triangle into another one . What i have are the coordinates for the 2 triangles . Can you help me Following the answer by Adam Rosenfield i came up with this code in case anyone is bored to solve the equation himself : Comment : So you need to move the one triangle in a way that the coordinates match the second coordinates without changing the appearance of the triangle What kind of coordinates do you have Comment : 2 completely different triangles both in shape and location . They both reside in the same coordinate system . Comment : Very useful thanks Just a quick reminder that if using javascript html5-canvas the context.setTransform function takes in the exact outputs of your function so this is a great tool for mapping images from one coordinate system to another when you have a triangle of points registered for each . .. . Answer : Hey guys Without Loss of Generality make the two triangles have the origin as one vertex you can tack on the affine shift later so they re defined by the points 0 a b c d then multiply your points x by the matrix NM .. . .. . where .. . .. . M inverse a b --- this is 2x2 matrix with the points a and b as its columns .. . .. . and .. . .. . N c d .. . .. . That should do it .", "Question : My program is supposed to allow users to input the first six numbers of a matrix into text fields and then hit an apply button changing the Path2D using the .transform method with the arguments being the six inputted numbers . My problem is that whenever I type something in and hit apply the transformation is extremely different than it should be and the original arrow remains behind as well . It s really bizarre and I have no clue where the problem is coming from . Everything should be in the right spot with the Affine Transform but the transformation is coming out all wrong . This is what it should look like : enter image description here http : i.stack.imgur.com vJqEd.png .. . .. . This is what it looks like for me : enter image description here http : i.stack.imgur.com T65AB.png .. . .. . I will put the full code below so you can run it yourself to see if you might be able to figure it out . Thank you Comment : Your transform order parameter is not what you re expecting it to be either . Note what happens when you place 1 s in the 2nd and 3rd JTextField on the top row and 0 s everywhere else . .. . Answer : Part of your problem seems to be the order of your AffineTransform parameters . You may be assuming that your JTextFields are in the same form as the 2x3 matrix but they re not . Add borders to the JTextFields to see what I mean : .. . .. . and : .. . .. . and you ll see how things are not in the order you are assuming . Instead add your JTextfields so that they ll match the matrix order : .. . .. . and this will improve your findings . Something like : .. . .. . I also used a queue as a stack to hold applied Transforms to allow them to be un-done in order when reset . Comment : Yes this worked perfectly Thank you so much for your help Would have never realized the matrix elements were in the wrong order lol", "Question : I m trying to apply an affine transformation to a CALayer using the following code : .. . .. . But am met with the error .. . .. . cannot assign to property : myLayer is immutable . What is necessary to fix this .. . Answer : If you want to set CALayer s AffineTransform use myLayer.setAffineTransform CGAffineTransformMakeRotation 0 .. . .. . You can t do like this : myLayer.affineTransform CGAffineTransformMakeRotation 0 because affineTransform it s method not a property .. . .. . For more information see : CALayer https : developer.apple.com library mac documentation GraphicsImaging Reference CALayer class apple ref occ instm CALayer affineTransform Comment : awesome works perfectly", "Question : I have 3D points of my model . And I have 2D points - projection of these 3D points of my model on plane . I want to find 3d-affine transformation translation rotation and scale of 3D-model so that projection of this 3D-model give me 2D points on plane the same as I have . How can I find 3d-affine transformation of my 3D model if I have 2D points of its projection .. . Answer : Just find the null space to your projection matrix e.g . in matlab you can use u null P or Python NumPy SciPy finding the null space of a matrix http : stackoverflow.com questions 5889142 python-numpy-scipy-finding-the-null-space-of-a-matrix in numpy . This will be a single vector as P is projecting one dimension down from 3D space . An affine transformation satisfying P A P where P is the projection and A is the affine transformation would be A u u .. . u +I where you form a matrix from the nullspace vector u to match the dimension of A likely 4x4 to include translation ." ] }
[ "yes-answer-long", "yes-answer-short" ]
scaling
UNK_RELATION
ppns@notifications@113
ppns -- the parse push-notification service ppns is a service that allows mobile-application developers to send @placeholder directly to users .
{ "confidence": [ 51.46626663208008, 49.05829620361328, 44.059444427490234, 32.79009246826172, 29.107624053955078, 26.930925369262695, 25.483232498168945, 22.396379470825195, 15.593063354492188, 15.121618270874023, 15.007405281066895, 13.765525817871094, 13.57616138458252, 11.04592514038086, 11.04592514038086, 11.04592514038086, 11.04592514038086, 11.04592514038086, 11.04592514038086, 11.04592514038086, 11.04592514038086, 11.04592514038086, 11.04592514038086, 11.04592514038086, 11.04592514038086, 11.04592514038086, 11.04592514038086, 11.04592514038086, 11.04592514038086, 11.04592514038086, 11.04592514038086, 11.04592514038086, 11.04592514038086, 11.04592514038086, 11.04592514038086, 11.04592514038086, 11.04592514038086, 11.04592514038086, 11.04592514038086, 11.04592514038086, 11.04592514038086, 11.04592514038086, 11.04592514038086, 11.04592514038086, 11.04592514038086, 9.029023170471191 ], "content": [ "Is PPNS from Parse.com written efficiently", "So for testing purposes I tried to force Parse to use PPNS instead of GCM but I always end up with a PPNS - Outdated Device in the delivery report .", "I saw PPNS from Parse.com and I am now using it .", "Does anybody know why the devices get marked as Outdated Device when GCM is disabled and how I can force the system to use PPNS", "I cannot use GCM and I am looking for solutions to support Push service in my application .", "TL DR : That s how push-notification works .", "My app will have to run on devices that have Google services but we are going full with parse and thus we will be using their push service unless I found out this cause an impact on the battery life .", "For our Android app we used Parse Push 1.10.1 to deliver notifications .", "Your users most likely already have a WakeLock in one many of their installed apps WhatsApp Skype etc .", "Long version : From what I understand and indeed have developed on my own App using my own MQ that s what most all other APIs that handle push notifications do i.e .", "In my case our users use our special tablets that runs AOSP without Google Services and there is only our applications installed .", "So far I ve tried disabling the GcmBroadcastReceiver in the Manifest and also manually removed the GCM PushType from the Parse database which should work according to the documentation .", "But there seems to be a big problem in China where GCM is not available where only a small percentage of our users receive the notifications .", "I starts a consistent websocket connection and checks the connection every 15min .", "And it also checks it on every device wake-up .", "What is the approximate battery impact of just this PushService system", "Is anyone using it and tested it", "Don t worry about the battery usage if it s a required feature in your app .", "they maintain a persistent connection to an MQ of sorts ActiveMQ MSMQ etc .", "and subscribe to a specific topic which pushes messages to clients .", "All of them require a WakeLock in order to keep this connection live in the event the phone is sleeping or network connection is recovered in order to make sure notifications are delivered .", "Some of them even maintain some level of persistence in case a message arrives when connection is lost so that they can playback the messages when they reconnect although this would be an expensive feature in terms of server resources .", "-- You can check this by looking at the permissions WhatsApp requires for instance .", "One of them would be preventing the phone from sleeping .", "This in turn means that adding an extra WakeLock will have no material effect as the phone never REALLY goes to complete sleep anyway .", "If yours is the only app that has this WakeLock then there would be a real cost to the battery but it s unavoidable unless you make sure you persist messages in the queue and only display notifications when the user unlocks the phone which is 1 expensive to maintain on your queue and 2 not very convenient as the user will miss notifications unless they re already actively using the phone so background notifications will go amiss .", "I also don t imagine battery life would be hugely impacted if you re simply pinging the server every 15 minutes or so the interval is usually the keep-alive time for the underlying message-queue .", "This link should help you understand how a local implementation for messaging works and should give you an idea why the ping is necessary and why you would want to maintain that WakeLock : .. . .. . http : dalelane.co.uk blog p 1599 .. . .. . edit : added TL DR", "As far as I know Whatsapp and all the similar apps uses GCM .", "GCM is holding that persistant connection once for all the apps .", "So adding another basically makes the battery effect double .", "Secondly I know that GCM and all of the systems are similar but I am also curious about the efficiency of them .", "Spesifically Parse.com in this case .", "That s the question .", "There are two things here that can have a detrimental effect on the battery usage : 1 preventing the phone from completely hibernating sleeping by allowing the network to work in the background and 2 the ping to your MQ .", "The first point will have a much higher effect on the battery than point 2 .", "GCM and all similar services using MQs will aquire a WakeLock .", "You can have as many of these locks as you want the effect is the same i.e the phone tablet doesn t sleep .", "If you re worried about the ping and reconnect when the connection status changes I wouldn t worry about it personally .. .", "Continued but I would do some test just to be sure .", "I highly doubt one ping every 15 minutes would be such a battery consuming activity to be perfectly honest but I wouldn t know for sure since I haven t done any detailed analysis .", "However I would be more worried about the first point WakeLock if your app is the only app running on the tablets and therefore potentially your tablets did not have a WakeLock before but now require one .", "This one would be a deal breaker for you if battery preservation is a must .", "Did you have a way to measure battery impact", "I m also concerned by this .", "The help says that the user might have uninstalled the app but this is definitely not the case ." ] }
{ "confidence": [ 71.17041015625, 50.34113311767578 ], "content": [ "Question : null .. . Answer : For our Android app we used Parse Push 1.10.1 to deliver notifications . But there seems to be a big problem in China where GCM is not available where only a small percentage of our users receive the notifications . So for testing purposes I tried to force Parse to use PPNS instead of GCM but I always end up with a PPNS - Outdated Device in the delivery report . The help says that the user might have uninstalled the app but this is definitely not the case . So far I ve tried disabling the GcmBroadcastReceiver in the Manifest and also manually removed the GCM PushType from the Parse database which should work according to the documentation . Does anybody know why the devices get marked as Outdated Device when GCM is disabled and how I can force the system to use PPNS", "Question : I cannot use GCM and I am looking for solutions to support Push service in my application . I saw PPNS from Parse.com and I am now using it . I starts a consistent websocket connection and checks the connection every 15min . And it also checks it on every device wake-up . What is the approximate battery impact of just this PushService system Is anyone using it and tested it .. . Answer : TL DR : That s how push-notification works . Don t worry about the battery usage if it s a required feature in your app . Long version : From what I understand and indeed have developed on my own App using my own MQ that s what most all other APIs that handle push notifications do i.e . they maintain a persistent connection to an MQ of sorts ActiveMQ MSMQ etc . and subscribe to a specific topic which pushes messages to clients . All of them require a WakeLock in order to keep this connection live in the event the phone is sleeping or network connection is recovered in order to make sure notifications are delivered . Some of them even maintain some level of persistence in case a message arrives when connection is lost so that they can playback the messages when they reconnect although this would be an expensive feature in terms of server resources . Your users most likely already have a WakeLock in one many of their installed apps WhatsApp Skype etc . -- You can check this by looking at the permissions WhatsApp requires for instance . One of them would be preventing the phone from sleeping . This in turn means that adding an extra WakeLock will have no material effect as the phone never REALLY goes to complete sleep anyway . If yours is the only app that has this WakeLock then there would be a real cost to the battery but it s unavoidable unless you make sure you persist messages in the queue and only display notifications when the user unlocks the phone which is 1 expensive to maintain on your queue and 2 not very convenient as the user will miss notifications unless they re already actively using the phone so background notifications will go amiss . I also don t imagine battery life would be hugely impacted if you re simply pinging the server every 15 minutes or so the interval is usually the keep-alive time for the underlying message-queue . This link should help you understand how a local implementation for messaging works and should give you an idea why the ping is necessary and why you would want to maintain that WakeLock : .. . .. . http : dalelane.co.uk blog p 1599 .. . .. . edit : added TL DR Comment : As far as I know Whatsapp and all the similar apps uses GCM . GCM is holding that persistant connection once for all the apps . So adding another basically makes the battery effect double . In my case our users use our special tablets that runs AOSP without Google Services and there is only our applications installed . Comment : Secondly I know that GCM and all of the systems are similar but I am also curious about the efficiency of them . Spesifically Parse.com in this case . Is PPNS from Parse.com written efficiently That s the question . Comment : There are two things here that can have a detrimental effect on the battery usage : 1 preventing the phone from completely hibernating sleeping by allowing the network to work in the background and 2 the ping to your MQ . The first point will have a much higher effect on the battery than point 2 . GCM and all similar services using MQs will aquire a WakeLock . You can have as many of these locks as you want the effect is the same i.e the phone tablet doesn t sleep . If you re worried about the ping and reconnect when the connection status changes I wouldn t worry about it personally .. . Comment : Continued but I would do some test just to be sure . I highly doubt one ping every 15 minutes would be such a battery consuming activity to be perfectly honest but I wouldn t know for sure since I haven t done any detailed analysis . However I would be more worried about the first point WakeLock if your app is the only app running on the tablets and therefore potentially your tablets did not have a WakeLock before but now require one . This one would be a deal breaker for you if battery preservation is a must . Comment : Did you have a way to measure battery impact I m also concerned by this . My app will have to run on devices that have Google services but we are going full with parse and thus we will be using their push service unless I found out this cause an impact on the battery life ." ] }
[ "yes-answer-long", "yes-answer-short" ]
notifications
UNK_RELATION
email-ext@configure@61
email-ext -- email-ext is a jenkins plugin it allows you to @placeholder every aspect of email-notifications .
{ "confidence": [ 75.92155456542969, 73.38190460205078, 73.21926879882812, 73.21926879882812, 73.21926879882812, 72.25779724121094, 72.00537109375, 71.63353729248047, 69.70927429199219, 69.70927429199219, 69.61298370361328, 68.41694641113281, 67.54425811767578, 66.6434555053711, 66.6434555053711, 66.09457397460938, 65.94461059570312, 65.48229217529297, 65.25818634033203, 65.04241943359375, 64.63854217529297, 64.63854217529297, 64.09905242919922, 64.04701232910156, 64.04701232910156, 63.15718078613281, 63.15718078613281, 63.05281448364258, 62.59983825683594, 61.383399963378906, 61.15227127075195, 61.15227127075195, 60.34107208251953, 60.31989288330078, 60.229698181152344, 59.22007751464844, 58.54155731201172, 58.524688720703125, 58.51972961425781, 58.278160095214844, 57.785865783691406, 57.64423370361328, 57.61281204223633, 56.97405242919922, 56.93400192260742, 56.34893035888672, 56.20013427734375, 56.20013427734375, 56.20013427734375, 56.20013427734375, 55.87016296386719, 55.87016296386719, 55.85493469238281, 55.569488525390625, 55.03569793701172, 55.0334587097168, 55.0334587097168, 54.76320266723633, 54.44091796875, 54.44091796875, 54.299591064453125, 54.27721405029297, 53.96961975097656, 52.963134765625, 52.963134765625, 52.963134765625, 52.963134765625, 52.48719024658203, 52.364830017089844, 52.21149444580078, 51.71619415283203, 51.37740707397461, 51.226226806640625, 51.096351623535156, 51.096351623535156, 51.096351623535156, 51.096351623535156, 51.08253860473633, 51.07451629638672, 51.07451629638672, 51.07451629638672, 51.07451629638672, 51.07451629638672, 51.07451629638672, 50.90146255493164, 50.17649841308594, 49.61819076538086, 49.48878479003906, 49.48878479003906, 49.48878479003906, 49.476863861083984, 49.19580841064453, 48.556983947753906, 47.94707489013672, 47.76364517211914, 47.664466857910156, 47.57667922973633, 46.96638488769531, 46.603843688964844, 46.51788330078125 ], "content": [ "Hi I m using Jenkins Email-ext plugin https : wiki.jenkins-ci.org display JENKINS Email-ext+plugin .", "I am using Jenkins email-ext plugin to send email messages .", "Is this possible by using the Email-ext Jenkins plugin", "I have email-ext plugin configured on Jenkins .", "I installed jenkins email-ext plugin .", "We installed email-ext https : wiki.jenkins-ci.org display JENKINS Email-ext+plugin 2.24.1 into Jenkins 1.447 .", "The Email-ext of Jenkins allows you to write a Jelly email template .", "Uninstall email-ext plugin from Jenkins .. . 2 .", "I think a Jelly script email template for the Email-ext+plugin https : wiki.jenkins-ci.org display JENKINS Email-ext+plugin is the way to go .", "I know there is BUILD STATUS and BUILD URL variables in Email-ext https : wiki.jenkins-ci.org display JENKINS Email-ext+plugin Email-extplugin-JiveFormatter plugin .", "I am using Jenkins Email-ext plugin to send email-notifications when the job starts and in the end if the job succeeded .", "I am trying to create a custom email content using the Jenkins email-ext plugin https : wiki.jenkins-ci.org display JENKINS Email-ext+plugin .", "After the build Jenkins sends a notification email with email-ext .", "This worked before but the I upgraded to jenkins 2.7.1 and the email-ext plugin 2.44 .", "I m facing a little problem using Email-ext plugin on Jenkins .", "We are using Jenkins with PMD https : wiki.jenkins-ci.org display JENKINS PMD+Plugin and Email-ext https : wiki.jenkins-ci.org display JENKINS Email-ext+plugin plugin .", "I am using the email-ext plugin in Jenkins to send email messages upon build completion in Jenkins .", "there is no email or email-ext keywords on config.xml .", "Email-ext plugin is configured to send the email when the build is failed .", "I experienced the following with Jenkins v1.595 and Email Ext .", "The Jenkins Email-ext plugin is able to send an email to the culprits during a Post-Build action .", "In Jenkins I need a groovy script to cancel sending email in Email-Ext plugin by below condition .", "For more info check : e-mail ext https : wiki.jenkins-ci.org display JENKINS Email-ext+plugin", "I have email-ext plugin installed .", "I m using the Jenking email-ext plugin .", "I m using Jenkins with Email-Ext plugin to automate PHP Unit Testing .", "I am using Jenkins 1.520 In Ubuntu and Email-ext plugin 2.32 .", "See Version History Here https : wiki.jenkins-ci.org display JENKINS Email-ext+plugin Email-extplugin-VersionHistory", "Ultimately the email-ext plugin is sourcing its list from scm and generating the email addresses based on the following heuristic https : wiki.jenkins-ci.org display JENKINS Email-ext+plugin .. . .. . The plugin will generate an email-address based on the committer s id and an appended default email suffix from Jenkins s global configuration page .", "I am working with two Jenkins plugins Email-Ext https : wiki.jenkins-ci.org display JENKINS Email-ext+plugin and Log Parser https : wiki.jenkins-ci.org display JENKINS Log+Parser+Plugin .", "I m trying to send cppcheck report on an email using email-ext plugin from a Jenkins build .", "I want to edit email body in pre-send script in Email-ext Jenkins plugin .", "Just use a Groovy template see wiki.jenkins-ci.org display JENKINS https : wiki.jenkins-ci.org display JENKINS Email-ext+plugin Email-extplugin-Scriptcontent", "I know you can change the SysAdmin email-address globally in the Jenkins Configuration page and that is what the default FROM address is in the email-ext plugin .", "you need to give this jelly file to email-ext plugin .", "Well email-ext has access to all the Jenkins environment-variables for jobs .", "I m trying to use the email-ext plugin in a Jenkins pipeline job but most of the tokens I take for granted when using email-ext in a freestyle job aren t being expanded", "Given the email-ext only has access to AbstractBuild and AbstractProject how can I use this script in email-ext plugin", "As we know the email-ext plugin can help us .", "Look deeper into the plugin https : wiki.jenkins-ci.org display JENKINS Email-ext+plugin documentations .", "So I installed email-ext plugin into the jenkins but in the list of proposed triggers there is nothing like this .", "You can attach that file as an attachment to your email using Email-Ext .", "EDIT : Note that you must have the Jenkins version 1.532.1 or higher to support this feature with the email-ext plugin .", "Is it possible to include the download links to our mail-ext https : wiki.jenkins-ci.org display JENKINS Email-ext+plugin mail template", "I have been using this email-ext plugin for a while .", "I copied raw.githubusercontent.com jenkinsci email-ext-plugin master src https : raw.githubusercontent.com jenkinsci email-ext-plugin master src main resources hudson plugins emailext templates html.jelly into a new folder var lib jenkins email-templates and it works again .", "Is it possible to display XSLT report inside mail body using Email-ext plugin in Jenkins .", "I m running NUnit tests using Jenkins and the XUnit plugin and Email-Ext to send out build result summaries .", "Go to Jenkins home base folder Plugins and remove any instances of email-ext plugin e.g .", "Then in your jenkins configuration put JELLY SCRIPT template p4htmlmail in the DEFAULT CONTENT field of the email-ext plugin configuration .", "I m working on adding this feature to email-ext .", "https : jenkins.io doc pipeline steps email-ext", "In earlier versions of Jenkins these used to be located under the plugins email-ext directory in Jenkins home .", "Im quite new in customizing email-notifications for Jenkins .", "Unfortunately it seems like it s not possible according to this post : Email-ext comment https : wiki.jenkins-ci.org display JENKINS Email-ext 20plugin focusedCommentId 75893517 comment-75893517 .. . .. . Too bad :", "The Email-Ext plugin requires an Ant Fileset definition in the attachment field .", "do let me know how to downgrade the email-ext plugin", "Handling bcc was added in this commit https : github.com jenkinsci email-ext-plugin commit 4aacabf9b9fa9be326ebc362519e2f5d1bbb43fb on Feb 24 2014 according to the changelog there was a related fix https : wiki.jenkins-ci.org display JENKINS Email-ext+plugin Email-extplugin-2.40.3 28May20 2C2015 29 released as part of 2.40.3 on May 20 2015 .", "Has anybody tried sending Cppcheck result report over email using this email-ext plugin or otherwise", "This is the official help from the Email-ext plugin about the attachment field : .. . .. . This is the set of attachments that will be used for the email .", "I want to use the Groovy scripting feature in the email-ext plugin for Jenkins but I m new to this and there seems to be a lot of assumed knowledge .", "My question is kind of a follow up of this : How to place Email-Ext groovy script on the jenkins file system http : stackoverflow.com questions 25760914 how-to-place-email-ext-groovy-script-on-the-jenkins-file-system .. . .. . Here is my situation : I have a groovy script which constructs the email which will be send .", "Is it with Email-Ext also possible to inline the logs", "I can no longer add an email-ext post build step to my jenkins jobs .", "See stackoverflow.com questions 11967191 http : stackoverflow.com questions 11967191 jenkins-email-ext-pre-send-script", "I was thinking of using a pre-send groovy script setting the mimeMessage object was reading jenkins email-ext documentation .", "I tested today by clean installing Jenkins 1.651 email-ext 2.41.3 and Pipeline 1.14 .", "You can use the below line to get build number and svn comment in email-ext plugin default content .", "This was exactly my issue - I didn t realize that with the email-ext plugin installed there are two SMTP server fields when configuring jenkins", "Another post mentions about sending email to culprits with ext-email plugin but that doesn t work too .", "I am not getting mails on project success when using Jenkins Please tell me the stable plugins for jenkins email-ext plugin .", "Does any one have any idea what could have happened to Jenkins Email-ext", "One project sometimes seems to send the email-ext notifications don t know under what circumstances .", "This was a bug in email-ext 2.27.1 and is fixed in 2.28 Released today if you d believe it .", "Unfortunately the script seems to be deleted before Email-Ext can access it .", "Email-Ext already supports it even if it may be lacking some documentation .", "In emails that come out it s as-if email-ext doesn t exist .", "I am using the email-ext plugin v.2.38.1 post-build action Editable Email Notification on Jenkins v.1.566 to send e-mails after the build when certain conditions are met .", "Then inside the email-ext plugin try use this to read it ENV var content in the file content text area", "I am using email-ext plugin to trigger emails after the build fails or become unstable .", "My groovy script in email-ext plugin pre-send-script is : .. . .. . That resolve my problem .", "I was trying to make the email-ext plugin to work inside pipelines but it seems that that s impossible to find any usable examples .", "I m having trouble setting up the Watch Job feature of the Email-ext plugin .", "The configuration looks to be set once globally for all jobs using the Email-ext plugin .", "Sadly it seems you would need to modify the email-ext plugin as the search path is hardcoded into it .", "The sample that is included as part of email-ext here https : github.com jenkinsci email-ext-plugin blob master src main resources hudson plugins emailext templates groovy-html.template does something like that with Groovy i.e .", "I found myself wanting to do the same thing : Send a email-ext email with the results of the cppcheck analysis .", "Install email-ext plugin again .. . .. . And now everything should be working OK again", "Im using : .. . .. . OS : Ubuntu Server 11.04 Jekins : 1.532.1 Email-ext plugin : 2.37.2", "I have configured the Email-ext plugin to notify developers when a build breaks and also when it is fixed .", "I am trying to write a jelly script in Jenkins Email-Ext that returns part of the console output .", "By default only the failure trigger is added to the email-ext project configuration .", "I am can use the default html template from email-ext plugin but I cannot locate the template file under the plugin directory .", "Is the email-ext template+script contained in a single file as in here https : github.com jenkinsci email-ext-plugin blob master src main resources hudson plugins emailext templates groovy-html.template", "In the content field of Editable Email Notification Email-ext plugin in Jenkins I would like to escape the sign so I can email WORD which is an environment variable of the job defined using Build Environment- Properties Content without it being expanded to anything .", "eg : .. . .. . Which is the basic format that email-ext uses - You can get a full list of user properties from the documentation .", "I m trying to use Email-ext Version 2.27.1 with Jenkins Version 1.508 to send an email when a build fails to the committers who had worked on the project since the last success .", "Can I use import statement as above in the email-ext template script", "Put your template in Jenkins email-templates YOUR TEMPLATE.jelly .", "Creating custom trigger for Email-ext plugin which will check warning counts from previous builds is one solution but is there easy way around this" ] }
{ "confidence": [ 79.90045166015625, 77.25978088378906, 75.17619323730469, 75.16226196289062, 74.69963073730469, 74.56985473632812, 74.53031921386719, 74.37388610839844, 74.27851867675781, 74.16824340820312, 74.07676696777344, 73.93659973144531, 73.92292022705078, 73.74208068847656, 73.14515686035156, 72.529541015625, 72.1747055053711, 71.63949584960938, 71.42755889892578, 71.1677017211914 ], "content": [ "Question : I am using Jenkins Email-ext plugin to send email-notifications when the job starts and in the end if the job succeeded . And I want those notifications to be part of one email thread not separate emails with the same subject . I looked through all settings in global Jenkins config and experimented with different options of Editable Email Notification in Post Build section . No luck so far . There is a feature request for Email-ext plugin to add In-Reply-To filed which according to the request s description should make it possible to see emails for the same job in one thread . https : issues.jenkins-ci.org browse JENKINS-3089 The feature is implemented but I can t find this field anywhere . I am using the latest version of the plugin for now 2.40.5 .. . Answer : The In-Reply-To gets added automatically by the plugin it is not configurable .", "Question : null .. . Answer : We are using Jenkins with PMD https : wiki.jenkins-ci.org display JENKINS PMD+Plugin and Email-ext https : wiki.jenkins-ci.org display JENKINS Email-ext+plugin plugin . Currently we do static-code-analysis and report is published using PMD plugin . If there are any warnings in static-code-analysis the build fails . Email-ext plugin is configured to send the email when the build is failed . We are also supporting legacy code which has ton s of static-code-analysis warnings we are planning to fix them in near future or get rid of code but till then emails will be keep on sending to every committer and we don t want that as people will start ignoring these emails . But also we don t want new code-analysis warnings to be added in legacy code when some one does changes in it so .. . .. . Is there a way to trigger email only when there are new warning added to current analysis result Creating custom trigger for Email-ext plugin which will check warning counts from previous builds is one solution but is there easy way around this", "Question : I am can use the default html template from email-ext plugin but I cannot locate the template file under the plugin directory . Where can I edit this default html.jelly template In earlier versions of Jenkins these used to be located under the plugins email-ext directory in Jenkins home . .. . Answer : Put your template in Jenkins email-templates YOUR TEMPLATE.jelly . If there is no email-templates folder just create it . Comment : Lets say I ve created a template named mytemplate.jelly now how would I use this template for my email-body do I need to write something in Default Pre-send Script to use my customized template . I mean I am not clear how to use the template... . could you please guide me . Comment : you need to give this jelly file to email-ext plugin . Add Editable email-notification in postbuild actions . Then add following to Default content : JELLY SCRIPT template mytemplate Comment : I found your answer suffering this error : Jelly file html was not found in JENKINS HOME email-templates after a Jenkins upgrade . I copied raw.githubusercontent.com jenkinsci email-ext-plugin master src https : raw.githubusercontent.com jenkinsci email-ext-plugin master src main resources hudson plugins emailext templates html.jelly into a new folder var lib jenkins email-templates and it works again . Thanks for your hint . Could you add a link-to the documentation of this folder", "Question : Culprits is the list of users who committed a change since the last non-broken build till now . The Jenkins Email-ext plugin is able to send an email to the culprits during a Post-Build action . I want to use the list of emails defined by Culprits in a python script build step inside of my Jenkins job . Can anyone suggest how I can do this .. . Answer : The culprits list comes from the SCM plugin in jenkins and includes all users who have committed since the last successful build . Ultimately the email-ext plugin is sourcing its list from scm and generating the email addresses based on the following heuristic https : wiki.jenkins-ci.org display JENKINS Email-ext+plugin .. . .. . The plugin will generate an email-address based on the committer s id and an appended default email suffix from Jenkins s global configuration page . For instance if a change was committed by someone with an id first.last and the default email suffix is @somewhere.com then an email will be sent to first.last@somewhere.com .. . .. . If your email addresses have some sort of pattern and they must do otherwise the email-ext plugin would not be generating the correct addresses then you can generate them yourself inside a groovy script eg : .. . .. . This example would convert a culprit like Adam Smith to adam.smith@mydomain.com But you could replace the call to getFullName with a call to getId and manipulate that however appropriate . eg : .. . .. . Which is the basic format that email-ext uses - You can get a full list of user properties from the documentation . http : javadoc.jenkins-ci.org hudson model User.html .. . .. . Now you have the list in a groovy script but how to make that list available to your python script That will come down to what you are used to doing . You could write the list to your workspace and read it from python or save the result to an environmental variable or even save it to a build parameter . Comment : Thank you Worked great", "Question : I am using the email-ext plugin in Jenkins to send email messages upon build completion in Jenkins . I want to include certain email addresses as bcc and am using the following convention when specifying email addresses : .. . .. . email1@domain1.com bcc : email2@domain2.com cc : email3@domain3.com .. . .. . The first and last emails get sent correctly . However the bcc email gets sent in the To section of the email with b prefixed to the address . So instead of email2@domain2.com it tries unsuccessfully to send an email to bemail2@domain2.com . I looked at the email-ext issue list related to bcc and cc and did not find anything similar to this . Therefore I am posting it here . Thanks in advance . .. . Answer : Handling bcc was added in this commit https : github.com jenkinsci email-ext-plugin commit 4aacabf9b9fa9be326ebc362519e2f5d1bbb43fb on Feb 24 2014 according to the changelog there was a related fix https : wiki.jenkins-ci.org display JENKINS Email-ext+plugin Email-extplugin-2.40.3 28May20 2C2015 29 released as part of 2.40.3 on May 20 2015 . So I would first check if you have at least this version installed and if not try to upgrade to the latest one to see if it works then . Comment : Thanks . I checked and the version I am using is outdated . I will try and get the plugin updated to 2.40.3 or later and hopefully the issue will be resolved .", "Question : I know there is BUILD STATUS and BUILD URL variables in Email-ext https : wiki.jenkins-ci.org display JENKINS Email-ext+plugin Email-extplugin-JiveFormatter plugin . But I cant find anywhere what are all variables available to me.. . Where can I find them all like duration time date etc . .. . Answer : Well email-ext has access to all the Jenkins environment-variables for jobs . Below is a list in the Jenkins documentation . Some plugins also add their own variables .. . .. . https : wiki.jenkins-ci.org display JENKINS Building+a+software+project Buildingasoftwareproject-below .. . .. . Edit : .. . .. . The wiki page says this about tokens : To see a list of all available email tokens and what they display you can click the question mark associated with the Content Token Reference at the top bottom of the email-ext section on the project configuration screen . Comment : That is not it.. . I know this table . I know I can use BUILD STATUS but its nowhere in this table so may others the same . Comment : The wiki page says this about tokens : To see a list of all available email tokens and what they display you can click the question mark associated with the Content Token Reference at the top bottom of the email-ext section on the project configuration screen . Comment : Oh.. . There it is . Thank you.Please post it as an answer Comment : edited answer with token info", "Question : I am working with two Jenkins plugins Email-Ext https : wiki.jenkins-ci.org display JENKINS Email-ext+plugin and Log Parser https : wiki.jenkins-ci.org display JENKINS Log+Parser+Plugin . I have the regular expressions for the Log Parser plugin how I want them and I would like to include the output of the Log Parser plugin in the email that is sent out to users after a build . The Email-Ext plugin has access to the console output and I could rewrite my regular expressions for the console output in the email but since the Log Parser plugin has already done the hard work I was hoping there was some way I could just pull its output into the email . Does anyone know of any way like a Jenkins environment variable this can be done .. . Answer : If you are able to pull the logs and write into a file . You can attach that file as an attachment to your email using Email-Ext . Comment : Is it with Email-Ext also possible to inline the logs Couldn t find this at documentation Perhaps somehow via scripting Comment : Found the solution : Just add pre BUILD LOG maxLines 9999 escapeHtml false pre to content area", "Question : Does any one have any idea what could have happened to Jenkins Email-ext We have had this plugin working just fine for over two years and all of sudden our entire configs for this plugin have disappeared from all of our projects . We tried to uninstall and re-install the plugin but that didn t make any difference . Once you install this plugin there should be a checkbox under Post-build Actions section in the projects config page to enable it but this option is not shown any longer here . Any idea Thanks .. . Answer : if you haven t upgraded your jenkins then the issue might be a different one just to make sure email configuration section has completely removed from your job check the config.xml of your jenkins job for the keyword email-ext . how to check job s config.xml from GUI simple click on configure link of your job you will be redirected to something like below .. . .. . http : yourserver job jobname configure .. . .. . now change the last part of url configure to config.xml resulting in something like below .. . .. . http : yourserver job jobname config.xml .. . .. . now search for keywords like email and email-ext if you did not find anything then email-ext plugin is not functioning or its has completely removed the email configuration from your job if you find an entry do a uninstall install and then try a restart of jenkins might resolve your problem or else you can try the option of reloading configuration from disk . Comment : Thank you @prudviraj but this did not help . there is no email or email-ext keywords on config.xml . On Plugin page we have the latest Email Extension Plugin 2.42 but for some reason we can t activate this plugin to use it We also have the latest Jenkins upgrade in-place . Jenkins 2.2", "Question : I want to send email-notifications to different recipients when my tests fail in different folders . Is this possible by using the Email-ext Jenkins plugin .. . Answer : You can create an environment variable for the recipient list Then use Conditional Step plugin to determine where was the failure . Inside the Conditional step use Inject Environment Variables plugin to set the mailing list on each case . Then use this environment var at the Recipient List .. . .. . enter image description here http : i.stack.imgur.com 35AUn.png", "Question : We installed email-ext https : wiki.jenkins-ci.org display JENKINS Email-ext+plugin 2.24.1 into Jenkins 1.447 . We set Extended Email Notification Default Content to .. . .. . PROJECT NAME - Build BUILD NUMBER - BUILD STATUS : .. . .. . Check console output at BUILD URL to view the results . .. . Failed tests regressions compared to previous builds : FAILED TESTS onlyRegressions true .. . .. . Changes : CHANGES showPaths true format a : r p n-- m pathFormat n t- p .. . .. . We went to a project and selected Editable Email Notification and left the default settings where Default Subject says DEFAULT SUBJECT and Default Content says DEFAULT CONTENT . In emails that come out it s as-if email-ext doesn t exist . I just see build information nothing about the tests that failed or the changes since last success . Why do the emails not show Failed tests and Changes And how do I debug this Are there logs somewhere showing what is getting run Edit : I added HALLOO to the project Default Content . Didn t show up . Screenshot of the email portion of the global configuration : global config http : i.stack.imgur.com bZYbq.png .. . .. . Screenshot of the email portion of the job configuration page : job config http : i.stack.imgur.com W0f3P.png Comment : Can you post a screen shot of the job configuration page Comment : Do you mean the Email Notification portion or the whole thing I ll attach the Email Notification portion . Comment : Hey @dfrankow from where you got the parameters to be used eg : FAILED TESTS Comment : I have no idea it was four years ago . Sorry . .. . Answer : In the Post build actions section delete the E-mail notification altogether . This will ensure your instance is using only Editable email notification .. . .. . This is possible in my version 1.477 not sure when this function of adding deleting post-build actions released . Comment : Thanks for this suggestion . I upgraded to Jenkins 1.484 deleted E-mail notification from the project config . The only post-build actions are now Publish Junit test result report and Editable Email Notification . I get no email . When I look in the log it says the build succeeded but it doesn t appear to be logging anything about email-ext . Comment : @dfrankow hmm. . once I upgraded Jenkins long back and my emails stopped altogether . Then I removed the email plugin and installed again. . it worked . Try this option if possible . Comment : @dfrankow did it work finally Comment : One project sometimes seems to send the email-ext notifications don t know under what circumstances . I gave up trying to get it to do the right thing . Our plan when we have time is to write our own scripts to use the Jenkins API to pull the data we want . Thanks for your help but . . no it didn t . :", "Question : I am using Jenkins 1.520 In Ubuntu and Email-ext plugin 2.32 . I didn t see like editable email notification options in configure system . Is it possible to add editable email-notifications . i can able to send test emails . or is it possible by down grading the email plugins . do let me know how to downgrade the email-ext plugin .. . Answer : As to down grading the email plugins enter Manage Jenkins - Manage Plugins - Installed . You will see the downgrade option of each plugin.If there s no downgrade option here try to uninstall the plugin . However I don t think you need to downgrade the plugin here.Enter Manage Jenkins - Extended E-mail Notification Default Content is what you need to edit . If you want to edit different content for each jobs enter - Configure - Post-build Actions - Add Editable Email Notification . Default Content is what you need to edit . Comment : i don t see downgrade for this plugin and i do see for only some plugin Comment : @krs I ve update the answer hope it helps", "Question : We use Jenkins as our ci server and we run integration test on firefox on xvfb . Sometime we receive the email about test failure caused by xvfb starting failed . So we want to ignore sending email by this case . As we know the email-ext plugin can help us . we should write pre-send scripts but we don t know how to write them . How do I write a script to cancel sending email when failure output message contains a specified error message Comment : See stackoverflow.com questions 11967191 http : stackoverflow.com questions 11967191 jenkins-email-ext-pre-send-script Comment : @DaidPostill thanks I got the solution . .. . Answer : My groovy script in email-ext plugin pre-send-script is : .. . .. . That resolve my problem .", "Question : null .. . Answer : I am trying to create a custom email content using the Jenkins email-ext plugin https : wiki.jenkins-ci.org display JENKINS Email-ext+plugin . The job I have is a Jenkins build flow https : wiki.jenkins-ci.org display JENKINS Build+Flow+Plugin job and I am going to have to use quite a bit of Groovy scripting in the email template beyond just hudson.model.AbstractBuild and hudson.model.AbstractProject . The build flow DSL has this : .. . .. . Conceptually the custom email content will have the following : .. . .. . I need some help with the following : .. . .. . 1 . Is the email-ext template+script contained in a single file as in here https : github.com jenkinsci email-ext-plugin blob master src main resources hudson plugins emailext templates groovy-html.template 2 . Can I use import statement as above in the email-ext template script 3 . Can I access the build-flow object as flow in email-ext Groovy script 4 . Given the email-ext only has access to AbstractBuild and AbstractProject how can I use this script in email-ext plugin Or can this be used as a pre-send script", "Question : Does any one have any idea what could have happened to Jenkins Email-ext We have had this plugin working just fine for over two years and all of sudden our entire configs for this plugin have disappeared from all of our projects . We tried to uninstall and re-install the plugin but that didn t make any difference . Once you install this plugin there should be a checkbox under Post-build Actions section in the projects config page to enable it but this option is not shown any longer here . Any idea Thanks .. . Answer : This issue was fixed by following the below steps : .. . .. . 1 . Uninstall email-ext plugin from Jenkins .. . 2 . Stop Jenkins services . Run Services.msc find Jenkins and stop it .. . 3 . Go to Jenkins home base folder Plugins and remove any instances of email-ext plugin e.g . C : Program Files x86 Jenkins plugins .. . 4 . Restart Jenkins .. . 5 . Install email-ext plugin again .. . .. . And now everything should be working OK again", "Question : I m trying to use the email-ext plugin in a Jenkins pipeline job but most of the tokens I take for granted when using email-ext in a freestyle job aren t being expanded e.g . Generates the email : .. . .. . Subject : .. . .. . PROJECT NAME - Build BUILD NUMBER - BUILD STATUS Body : .. . .. . PROJECT NAME - Build BUILD NUMBER - BUILD STATUS : Check console output at BUILD URL to view the results . Which are in fairness what is set in the general configuration . However none of those tokens are expanded and if I use them directly from workflow they re not expanded either e.g . This would be okay if I was able to reference my existing Groovy-based email templates using SCRIPT but those aren t expanded either . Apologies if I m missing something incredibly obvious - I don t have much experience with Pipeline yet - the lack of email-ext support has stopped me from moving across thus far . I tested today by clean installing Jenkins 1.651 email-ext 2.41.3 and Pipeline 1.14 . Comment : Have you sorted it out Can you please provide a response with an example I am asking this because the plugin seems to lack documentation issues.jenkins-ci.org browse JENKINS-33980 https : issues.jenkins-ci.org browse JENKINS-33980 Comment : @sorin : I don t have any easily shareable code but I gave up on the templates and just implemented my own helper email builder code in the cps-global-lib plugin still calling into email-ext when I m done . Duplicated effort but I needed it . .. . Answer : The tokens are highly tied to AbstractBuild which workflow doesn t use . So the tokens won t be replaced correctly right now . I need to modify the token-macro plugin which is the basis for the token expansion so that it will work with a Run object instead of just AbstractBuild but this is a large task that I haven t had the change to do yet . You could generate the same content using the workflow DSL . Comment : Can you point us to a working example I was trying to make the email-ext plugin to work inside pipelines but it seems that that s impossible to find any usable examples . Check issues.jenkins-ci.org browse JENKINS-33980 https : issues.jenkins-ci.org browse JENKINS-33980", "Question : We are using Jenkins over a Subversion repository . After the build Jenkins sends a notification email with email-ext . We have Bugzilla Subversion integration : if a comment contains bug 1234 then Bugzilla s ticket 1234 is updated . I want Jenkin s notification email subject to contain the bug number associated with the Subversion commit . How can I do that I would like the subject of the email to be something like : Jenkins - build 44 - bug 1234 .. . .. . For bonus points : it would be awesome if after pulling the number the solution could also make a query to the Bugzilla server and get the bug s summary . Then the summary could be inserted in the email subject . Then the subject could be : Jenkins - build 44 - Name field is disabled on update .. . Answer : You can use the below line to get build number and svn comment in email-ext plugin default content . CHANGES SINCE LAST SUCCESS changesFormat m .. .", "Question : I m trying to use Email-ext Version 2.27.1 with Jenkins Version 1.508 to send an email when a build fails to the committers who had worked on the project since the last success . I d like to also attach the build log to the email and I see and check the Attach Build Log button but whenever I click Save or Apply and go back in to the configuration the button is unchecked again . What s going on and how can I fix this Jenkins Attach Build Log Settings http : i.stack.imgur.com m2kh0.png .. . Answer : This was a bug in email-ext 2.27.1 and is fixed in 2.28 Released today if you d believe it . See Version History Here https : wiki.jenkins-ci.org display JENKINS Email-ext+plugin Email-extplugin-VersionHistory Comment : thanks had the same problem .", "Question : Im quite new in customizing email-notifications for Jenkins . I wanted to send an email if build is failing for X hours lets say if status is failed 2h after it was triggered . If this is complicated then sending an email after 5th failed build will do the job . So I installed email-ext plugin into the jenkins but in the list of proposed triggers there is nothing like this . Can someone tell me which file should I change create in order to create a specific trigger Thank you .. . Answer : You would want to use a script trigger to do this . You would have to look at the schedule date time of the first failing job and then the scheduled date time of the current job to determine if the number of hours had passed . If you add a script trigger to the list of triggers in the Advanced section of the configuration there is a help button that will give you more information about how to use the script trigger .", "Question : Hi I m using Jenkins Email-ext plugin https : wiki.jenkins-ci.org display JENKINS Email-ext+plugin . Where can I find a list of all the things I can refer to in the html content of the email For instance : I recently found out that you can put parameters values inside the mail using : .. . .. . But say that I want to get build log or build number or build status passed fail . Do you know if there is a document listing all data that is referable in this plugin . Thanks .. . Answer : On job configurations page : .. . .. . Check Editable Email Notification box - find Content Token Reference it s between Attachments and Trigger for matrix projects - Click on to the right side of it . Comment : Indeed Thank you", "Question : My question is kind of a follow up of this : How to place Email-Ext groovy script on the jenkins file system http : stackoverflow.com questions 25760914 how-to-place-email-ext-groovy-script-on-the-jenkins-file-system .. . .. . Here is my situation : I have a groovy script which constructs the email which will be send . This works fine as long as I have the script directly written the code in : .. . .. . Pre-send Script .. . .. . .. . .. . If I take this script place it in the Jenkins filesystem ...jenkins email-templates as : email-presend.groovy and I try to call it with : .. . .. . I get the error message that I can t access the message object : .. . .. . Script1.groovy : 1 : expecting EOF found or @ line 1 column 17 . Error in script or template : groovy.lang.MissingPropertyException : No such property : msg for class : Script1 .. . .. . Code on the line : .. . .. . .. . .. . Am I missing something obvious since I can t find any code snippet which did this I want to use the javax.mail.Message msg which is available if the code is directly in jenkins . Comment : Nobody had this problem How did the rest write into the email trough groovy Comment : Try using SCRIPT script : email-presend instead . .. . Answer : Unfortunately it seems like it s not possible according to this post : Email-ext comment https : wiki.jenkins-ci.org display JENKINS Email-ext 20plugin focusedCommentId 75893517 comment-75893517 .. . .. . Too bad :" ] }
[ "yes-answer-long", "yes-answer-short" ]
configure
UNK_RELATION
empire-db@abstraction-layer@56
empire-db -- apache empire-db is a relational-database @placeholder and data persistence component that allows developers to take a much more sql-centric approach in application development than traditional object-relational mapping frameworks orm .
{ "confidence": [], "content": [] }
{ "confidence": [], "content": [] }
[ "yes-answer-long", "yes-answer-short" ]
abstraction-layer
UNK_RELATION
nose2@python@60
nose2 -- nose2 is the next generation of nicer testing for @placeholder .
{ "confidence": [ 50.39198303222656, 47.263946533203125, 46.620384216308594, 45.17359924316406, 45.03702163696289, 44.61237335205078, 43.61418151855469, 43.61418151855469, 43.46003723144531, 43.27367401123047, 42.353759765625, 42.353759765625, 42.01325225830078, 42.01325225830078, 41.94939041137695, 41.806312561035156, 41.65293884277344, 41.65293884277344, 41.65293884277344, 40.89915466308594, 39.753013610839844, 39.753013610839844, 39.753013610839844, 39.753013610839844, 39.753013610839844, 38.492591857910156, 37.890716552734375, 37.890716552734375, 36.9819450378418, 36.9819450378418, 36.9819450378418, 36.91063690185547, 36.91063690185547, 36.91063690185547, 36.63029479980469, 36.63029479980469, 35.4798583984375, 35.11964416503906, 35.010711669921875, 35.010711669921875, 35.010711669921875, 35.010711669921875, 35.010711669921875, 35.010711669921875, 34.00823974609375, 34.00823974609375, 33.75028991699219, 33.75028991699219, 33.75028991699219, 32.108314514160156, 32.108314514160156, 32.108314514160156, 30.757457733154297, 28.857532501220703, 28.857532501220703, 28.213979721069336, 27.597110748291016, 25.328163146972656, 25.328163146972656, 20.328876495361328, 14.76495361328125, 14.376008987426758, 14.376008987426758, 14.376008987426758, 14.376008987426758, 14.376008987426758, 14.376008987426758, 14.376008987426758, 14.376008987426758, 14.376008987426758, 14.376008987426758, 14.376008987426758, 14.376008987426758, 14.376008987426758, 14.376008987426758, 12.476083755493164, 12.476083755493164, 12.476083755493164, 12.476083755493164, 12.476083755493164, 12.476083755493164, 12.476083755493164, 12.476083755493164, 12.476083755493164, 12.476083755493164, 12.476083755493164, 12.476083755493164, 12.476083755493164, 12.476083755493164, 12.476083755493164, 12.476083755493164, 12.476083755493164, 12.476083755493164, 12.476083755493164, 12.476083755493164, 12.476083755493164, 12.476083755493164, 12.476083755493164, 12.476083755493164, 12.476083755493164 ], "content": [ "They refer to nose2 .", "I ve tried running from the command-line with nose2 and nose2 --plugin nose2.plugins.layers but I always get Ran 0 tests in 0.000s .", "I can t see any way in the nose2 docs https : nose2.readthedocs.org en latest to ignore a file or directory .", "Hoping someone can clarify nose2 config behavior .", "This is for nose but I m using nose2 .", "Python 2.7.5 running tests with nose2 .", "I am using nose2 as well and I have seen the attrib plugin https : nose2.readthedocs.org en latest plugins attrib.html but there is no decorator in nose2 just in nose1 .", "Using the nose2 attrib plugin .. . .. . You will see the nose2 attrib plugin https : nose2.readthedocs.org en latest plugins attrib.html allows for custom-attributes to be defined on test functions and classes .", "Nose2 has this awesome Such DSL https : nose2.readthedocs.org en latest such dsl.html that works similar to RSpec .", "https : nose2.readthedocs.org en latest configuration.html", "Also I just noticed that nose2 has parameterized tests nose2.readthedocs.org en latest plugins parameters.html https : nose2.readthedocs.org en latest plugins parameters.html .", "The question Skip a unit test from a Nose2 Plugin http : stackoverflow.com q 24639671 108197 describes a method for skipping all tests in nose2 https : nose2.readthedocs.org en latest .", "I m running nose2 tests with the coverage plugin .", "How would I do this via nose2", "I know how to run nose2 from a script already : nose2.discover argv fake arg mypkg.mymod.test foo s .", "The nose2 docs http : nose2.readthedocs.org en release-0.3 dev writing plugins.html recipes suggest using either matchPath http : nose2.readthedocs.org en release-0.3 dev hook reference.html matchPath or getTestCaseNames http : nose2.readthedocs.org en release-0.3 dev hook reference.html getTestCaseNames to do this .", "I have a nose.cfg file which i m porting to nose2 .", "In nose 1 this was done via these two flags : .. . .. . How can this be done in nose2", "This is made available by the dundertest plugin which comes with nose2 and is enabled by default .", "Also how come if in the tests directory and I do this : .. . .. . nose2 doesn t read from the config file but if I go up a level and do : .. . .. . dir nose2 -c tests another cfg.cfg tests.scenarios.default .. . .. . nose2 DOES read from the named config file", "With nose2 I can make test generators using layers but not use such .", "I m want to use the such DLS in nose2 with python-2.7 in Linux .", "With nose2 --plugin layers I get ImportError : No module named layers .", "So I have a little issue using Nose2 s such DSL .", "Is there a way to select a specific test or test case in nose2 or more generally in unittest2", "I m having trouble actually skipping a unit test from a Nose2 plugin .", "I got this working with nose2 by using the nose2 attrib plugin for discovery and some code copied from the nose1 attrib plugin which allowed me to decorate my tests .", "I would like to use nose2 https : github.com nose-devs nose2 with coverage plugin to get the coverage of a Python package but I m have a hard time configuring it to cover only the package I m working on .", "I generated and imported a module that contains a test that I want to run with nose2 .", "I now want to move to nose2 as nose is no longer in active development .", "However I could not find an option to specify the pylon configuration file in nose2 .", "This is such a simple question but I can t find it anywhere.. . how do I add color to the output of running tests with nose2", "nose2 does not have colored output built-in but a popular third-party plugin named green will color the output for you .", "With unittest I can check if there were failed tests during test run like this : .. . .. . How to do the same with nose2", "I can get it to work like this but it seems like losing the ability of passing in the unittest instance in the arguments https : github.com nose-devs nose2 blob master nose2 tools such.py L175-L189 .", "coverage run -m nose2 --plugin nose2.plugins.junitxml --junit-xml results in the non-test code being under-counted essentially reversing what s counted as covered .", "The closest help I could find was a somehwat related stackoverflow question regarding nose test generation http : stackoverflow.com questions 11189699 change-names-of-tests-created-by-nose-test-generators but it doesn t seem to work in nose2 .", "While working in an virtualenv 3.4 I was trying to run tox for running the tests when I got the error : .. . .. . I ve already tried to install nose2 using pip install nose2 but still the problem remains the same .", "Should it be the loadTestsFromModule http : nose2.readthedocs.org en latest dev hook reference.html loadTestsFromModule hook", "I got this working with nose2 using the attrib plugin and some code copied from nose1 .", "nose2 -v -A custom attr1 .. . will run all tests which have a custom attr1 specified with a truthy value .", "I wanted to use a decorator instead but nose2 didn t have a built-in decorator for doing this .", "How do I configure nose2 coverage plugin to cover only a given module", "I m still puzzled why using coverage plugin within nose2 doesn t works this way .", "When you use the test gen function with yield to generate tests of an existing test function nose2 s verbose output displays test gen and an iterator or parameters .", "I can make parameterized test functions and nose2 s command-line output shows the parameters but the output of just test gen : 1 isn t helpful .", "ETA : adding a coverage section with always-on True to my nose2.cfg didn t work .", "Normally I just run nose2 and my tests throughout the project will be discovered and executed .", "I was able to do this with some effort with nose but I would like to see if it is possible in nose2 .", "I am familiar with the Layers http : nose2.readthedocs.org en latest plugins layers.html plugin but I d rather have my tests follow a convention .", "So I thought I could make use of a nose2 layer which works fine as long as the layer class is defined in the same module .", "There s a mention https : nose2.readthedocs.org en latest differences.html test-discovery-and-loading in docs about different test discovery but that doesn t seem to be related .", "For example suppose I have a file test stuff.py which looks like this : .. . .. . Then I enter the command nose2 -v for verbose output and the console looks like this : .. . .. . But those outputs aren t informative .", "Then you can run a set of filtered tests by specifying -A or --attribute as a nose2 command-line argument to list the attribute s you to match against your test suite .", "I m trying out the beginning of the example from the documentation http : nose2.readthedocs.org en latest such dsl.html see code below but it doesn t run the tests no matter how I launch it from the command-line .", "In previous version of Nose testing framework there were several ways to specify only a subset of all tests : .. . .. . http : nose.readthedocs.org en latest usage.html selecting-tests .. . .. . However I can t find any information about similar test selection in Nose2 .", "you may want to write a nose2 test engine which extends ArcanistUnitTestEngine .. . .. . here s a good example : https : github.com tagview arcanist-extensions tree master tap test engine .. . .. . and refer to the .arcconfig settings", "You can even use the expression command-line argument https : nose2.readthedocs.org en latest plugins attrib.html select-tests-using-python-expressions of -E or --eval-attribute which allows more complex Python expressions for matching test attributes .", "The package is called vimhdl and the coverage section of my unittest.cfg looks like this : .. . .. . With nose2 the result doesn t include all files from the package maybe because of Coverage.py warning : Module vimhdl was previously imported but not measured . message but I don t know how to fix it .", "I ll see if I can improve upon this and make it nicer .", "Nose tests had an option to specify the testing environment configuration file for Pylons --with-pylons .", "well not an answer to your question but did you ever consider using py.test", "It s very nice.. .", "The exclude-dir is available when you install nose-exclude .", "This plugin is currently only available for nose1 : https : bitbucket.org kgrandis nose-exclude overview .. . .. . What is available is defining : .. . .. . test False .. . .. . in each TestCase or TestSuite inherited class .", "They must be inherited from these classes for this to work .", "I am wondering if this config file behavior is expected or not .", "I have a project like this : .. . .. . dir .. . tests .. . scenarios .. . default.py .. . another cfg.cfg .. . unittest.cfg .. . .. . A couple questions : I am in the tests directory .", "How come if I do : .. . .. . I don t get any error about not finding the config file specified", "For example I would like failures to show up as red .", "It can easily be installed with pip via : pip3 install green .. . .. . You can find more information on it within it s pypi page here : https : pypi.python.org pypi green .. . .. . Their GitHub page as well : https : github.com CleanCut green", "Finally found an answer .", "Is there a way to change the output to display the name of the yielded function instead", "Instead I want to see something like this : .. . .. . Yes I realize that I can add print statements to show the function names and parameters but that s not what I m trying to accomplish here .", "Can anyone suggest ways that would allow what I have in mind or something close to it", "I m writing a plugin that will separate treat my unit tests functional tests integration tests differently .", "My tests folder will have the following structure exactly : .. . .. . tests .. . -- unit .. . -- functional .. . -- integration .. . .. . Each unit test will reside in the unit directory and each functional test will reside in the functional directory and so on .", "Which hook exactly should I use to inject the appropriate Layer before tests are run", "Can you show me an example", "I d also like to separate the summary report for each type of test .", "Which hook should I use", "@Charles Oops I meant unittest2 not testsuite2 .", "Your tagging is correct though :", "Did you ever figure out a solution to your problem", "And all the answers below are for nose1 as well .", "See my answer http : stackoverflow.com a 35437984 346561 for details .", "You don t need to write a plug-in the built-in attr module http : nose.readthedocs.org en latest plugins attrib.html is designed for this purpose .", "It does not depend on your file hierarchy however .", "Instead you mark individual tests as unit functional or integration .", "This would look like : .. . .. . To run only the functional tests you would then do : .. . .. . If I were creating this test layout I would probably have 3 unittest.TestCase subclasses already marked with unit functional and integration .", "New tests could easily inherit the proper test type .", "For this to work you have to specify the attributes of the tests after defining the test function .", "e.g .", "Using decorators to specify test attributes .. . .. . This wasn t quite good enough for me though because I didn t like the idea of defining these attributes on tests after their definition .", "I went to the nose1 source code for its attrib plugin http : nose.readthedocs.org en latest plugins attrib.html source and copied the source for the attr function .", "I put this into a test attrib util.py file .", "Now I can specify attributes using the decorator instead .", "My original test class code from above can be converted to the IMO simpler : .. . .. . You will notice that the attributes can be specified as either args or kwargs all args will get a default-value of True .", "You can also even use this attr decorator on a test class or base-class and the attributes will be applied to all test functions defined within .", "This allows for very easy separation of unit and functional tests ." ] }
{ "confidence": [ 57.933807373046875, 56.41704559326172, 56.234519958496094, 56.026939392089844, 55.401939392089844, 54.42889404296875, 52.88315200805664, 52.57461929321289, 51.756866455078125, 51.3790168762207, 50.55461502075195, 50.55461502075195, 50.50794219970703, 50.10113525390625, 49.81932830810547, 49.300209045410156, 48.56903839111328, 48.56903839111328, 47.22271728515625, 46.4929313659668 ], "content": [ "Question : null .. . Answer : When you use the test gen function with yield to generate tests of an existing test function nose2 s verbose output displays test gen and an iterator or parameters . I can make parameterized test functions and nose2 s command-line output shows the parameters but the output of just test gen : 1 isn t helpful . Is there a way to change the output to display the name of the yielded function instead For example suppose I have a file test stuff.py which looks like this : .. . .. . Then I enter the command nose2 -v for verbose output and the console looks like this : .. . .. . But those outputs aren t informative . Instead I want to see something like this : .. . .. . Yes I realize that I can add print statements to show the function names and parameters but that s not what I m trying to accomplish here . The closest help I could find was a somehwat related stackoverflow question regarding nose test generation http : stackoverflow.com questions 11189699 change-names-of-tests-created-by-nose-test-generators but it doesn t seem to work in nose2 . Can anyone suggest ways that would allow what I have in mind or something close to it", "Question : Nose2 has this awesome Such DSL https : nose2.readthedocs.org en latest such dsl.html that works similar to RSpec . I used to use unittests directly and decorated the function with something like mock.patch http : www.voidspace.org.uk python-mock patch.html mock.patch . I am wondering how the should decorated functions differ from regular unittest functions and how can I use other decorators as for unittest functions . I can get it to work like this but it seems like losing the ability of passing in the unittest instance in the arguments https : github.com nose-devs nose2 blob master nose2 tools such.py L175-L189 . Any advise will be super appreciated . Thanks .. . Answer : So we know that decorator order matters and none of these work : .. . .. . because of the way patch and should are implemented . Both libraries make some assumptions about what the resulting decorated function will be so it s not possible to directly pass a result-of decoration from one to the other . But we can make a fix for that from the outside using an adapter decorator : .. . .. . Now this works and results in : .. . .. . This is rather quick and dirty but get s the job done . I ll see if I can improve upon this and make it nicer . Comment : Thanks @famousgarkin . This is very helpful and I am going to give it a try later . I really have to take a deeper look at the source of the decorator . Also I just noticed that nose2 has parameterized tests nose2.readthedocs.org en latest plugins parameters.html https : nose2.readthedocs.org en latest plugins parameters.html . Maybe this is something useful Thanks again", "Question : I have a nose.cfg file which i m porting to nose2 . I can t see any way in the nose2 docs https : nose2.readthedocs.org en latest to ignore a file or directory . In nose 1 this was done via these two flags : .. . .. . How can this be done in nose2 Comment : well not an answer to your question but did you ever consider using py.test It s very nice.. . .. . Answer : The exclude-dir is available when you install nose-exclude . This plugin is currently only available for nose1 : https : bitbucket.org kgrandis nose-exclude overview .. . .. . What is available is defining : .. . .. . test False .. . .. . in each TestCase or TestSuite inherited class . They must be inherited from these classes for this to work . This is made available by the dundertest plugin which comes with nose2 and is enabled by default .", "Question : null .. . Answer : Hoping someone can clarify nose2 config behavior . I am wondering if this config file behavior is expected or not . I have a project like this : .. . .. . dir .. . tests .. . scenarios .. . default.py .. . another cfg.cfg .. . unittest.cfg .. . .. . A couple questions : I am in the tests directory . How come if I do : .. . .. . I don t get any error about not finding the config file specified Also how come if in the tests directory and I do this : .. . .. . nose2 doesn t read from the config file but if I go up a level and do : .. . .. . dir nose2 -c tests another cfg.cfg tests.scenarios.default .. . .. . nose2 DOES read from the named config file", "Question : This might be really stupid but I can t get it to work.. . I m want to use the such DLS in nose2 with python-2.7 in Linux . I m trying out the beginning of the example from the documentation http : nose2.readthedocs.org en latest such dsl.html see code below but it doesn t run the tests no matter how I launch it from the command-line . My file is called test something.py it s the only file in the directory . I ve tried running from the command-line with nose2 and nose2 --plugin nose2.plugins.layers but I always get Ran 0 tests in 0.000s . With nose2 --plugin layers I get ImportError : No module named layers . How am I supposed to run this test from the command-line Thanks Code below : .. . Answer : DOH I forgot to add it.createTests globals at the end of the file", "Question : I m writing a plugin that will separate treat my unit tests functional tests integration tests differently . My tests folder will have the following structure exactly : .. . .. . tests .. . -- unit .. . -- functional .. . -- integration .. . .. . Each unit test will reside in the unit directory and each functional test will reside in the functional directory and so on . I am familiar with the Layers http : nose2.readthedocs.org en latest plugins layers.html plugin but I d rather have my tests follow a convention . Which hook exactly should I use to inject the appropriate Layer before tests are run Should it be the loadTestsFromModule http : nose2.readthedocs.org en latest dev hook reference.html loadTestsFromModule hook Can you show me an example I d also like to separate the summary report for each type of test . Which hook should I use Comment : @Charles Oops I meant unittest2 not testsuite2 . Your tagging is correct though : Comment : Did you ever figure out a solution to your problem I am using nose2 as well and I have seen the attrib plugin https : nose2.readthedocs.org en latest plugins attrib.html but there is no decorator in nose2 just in nose1 . And all the answers below are for nose1 as well . Comment : I got this working with nose2 using the attrib plugin and some code copied from nose1 . See my answer http : stackoverflow.com a 35437984 346561 for details . .. . Answer : I got this working with nose2 by using the nose2 attrib plugin for discovery and some code copied from the nose1 attrib plugin which allowed me to decorate my tests . Using the nose2 attrib plugin .. . .. . You will see the nose2 attrib plugin https : nose2.readthedocs.org en latest plugins attrib.html allows for custom-attributes to be defined on test functions and classes . For this to work you have to specify the attributes of the tests after defining the test function . Then you can run a set of filtered tests by specifying -A or --attribute as a nose2 command-line argument to list the attribute s you to match against your test suite . You can even use the expression command-line argument https : nose2.readthedocs.org en latest plugins attrib.html select-tests-using-python-expressions of -E or --eval-attribute which allows more complex Python expressions for matching test attributes . e.g . nose2 -v -A custom attr1 .. . will run all tests which have a custom attr1 specified with a truthy value . Using decorators to specify test attributes .. . .. . This wasn t quite good enough for me though because I didn t like the idea of defining these attributes on tests after their definition . I wanted to use a decorator instead but nose2 didn t have a built-in decorator for doing this . I went to the nose1 source code for its attrib plugin http : nose.readthedocs.org en latest plugins attrib.html source and copied the source for the attr function . I put this into a test attrib util.py file . Now I can specify attributes using the decorator instead . My original test class code from above can be converted to the IMO simpler : .. . .. . You will notice that the attributes can be specified as either args or kwargs all args will get a default-value of True . You can also even use this attr decorator on a test class or base-class and the attributes will be applied to all test functions defined within . This allows for very easy separation of unit and functional tests .", "Question : The question Skip a unit test from a Nose2 Plugin http : stackoverflow.com q 24639671 108197 describes a method for skipping all tests in nose2 https : nose2.readthedocs.org en latest . I would like to skip some test functions when a condition is met for example : .. . .. . In this example I expect the test method to be reported as skipped . I was able to do this with some effort with nose but I would like to see if it is possible in nose2 . .. . Answer : The built-in unittest.skipUnless https : docs.python.org 2 library unittest.html skipping-tests-and-expected-failures method and it should work with nose :", "Question : I m writing a plugin that will separate treat my unit tests functional tests integration tests differently . My tests folder will have the following structure exactly : .. . .. . tests .. . -- unit .. . -- functional .. . -- integration .. . .. . Each unit test will reside in the unit directory and each functional test will reside in the functional directory and so on . I am familiar with the Layers http : nose2.readthedocs.org en latest plugins layers.html plugin but I d rather have my tests follow a convention . Which hook exactly should I use to inject the appropriate Layer before tests are run Should it be the loadTestsFromModule http : nose2.readthedocs.org en latest dev hook reference.html loadTestsFromModule hook Can you show me an example I d also like to separate the summary report for each type of test . Which hook should I use Comment : @Charles Oops I meant unittest2 not testsuite2 . Your tagging is correct though : Comment : Did you ever figure out a solution to your problem I am using nose2 as well and I have seen the attrib plugin https : nose2.readthedocs.org en latest plugins attrib.html but there is no decorator in nose2 just in nose1 . And all the answers below are for nose1 as well . Comment : I got this working with nose2 using the attrib plugin and some code copied from nose1 . See my answer http : stackoverflow.com a 35437984 346561 for details . .. . Answer : If you already have the tests sorted into directories as you mentioned you could write a plugin that uses the wantDirectory https : nose.readthedocs.org en latest plugins interface.html nose.plugins.base.IPluginInterface.wantDirectory method . You will want to write options and configure methods for this plug-in to deal with enabling and disabling it and gleaning the user s choice of category . When running nosetests you would choose from the three categories : .. . .. . Since only one test category is run at a time you would get a separate report for each test category . You could always of course run all tests by not enabling this plugin . adding as a different answer because it is a completely different approach . Comment : See the tags . They refer to nose2 . Comment : whoops . sorry . I ll delete these answers .", "Question : null .. . Answer : Previously I was using nose to run my Python unit tests . I am using the Pylons web framework v0.9.7 with Python 2.7 . Nose tests had an option to specify the testing environment configuration file for Pylons --with-pylons . I now want to move to nose2 as nose is no longer in active development . However I could not find an option to specify the pylon configuration file in nose2 . Any pointers please", "Question : I m writing a plugin that will separate treat my unit tests functional tests integration tests differently . My tests folder will have the following structure exactly : .. . .. . tests .. . -- unit .. . -- functional .. . -- integration .. . .. . Each unit test will reside in the unit directory and each functional test will reside in the functional directory and so on . I am familiar with the Layers http : nose2.readthedocs.org en latest plugins layers.html plugin but I d rather have my tests follow a convention . Which hook exactly should I use to inject the appropriate Layer before tests are run Should it be the loadTestsFromModule http : nose2.readthedocs.org en latest dev hook reference.html loadTestsFromModule hook Can you show me an example I d also like to separate the summary report for each type of test . Which hook should I use Comment : @Charles Oops I meant unittest2 not testsuite2 . Your tagging is correct though : Comment : Did you ever figure out a solution to your problem I am using nose2 as well and I have seen the attrib plugin https : nose2.readthedocs.org en latest plugins attrib.html but there is no decorator in nose2 just in nose1 . And all the answers below are for nose1 as well . Comment : I got this working with nose2 using the attrib plugin and some code copied from nose1 . See my answer http : stackoverflow.com a 35437984 346561 for details . .. . Answer : You don t need to write a plug-in the built-in attr module http : nose.readthedocs.org en latest plugins attrib.html is designed for this purpose . It does not depend on your file hierarchy however . Instead you mark individual tests as unit functional or integration . This would look like : .. . .. . To run only the functional tests you would then do : .. . .. . If I were creating this test layout I would probably have 3 unittest.TestCase subclasses already marked with unit functional and integration . New tests could easily inherit the proper test type .", "Question : In previous version of Nose testing framework there were several ways to specify only a subset of all tests : .. . .. . http : nose.readthedocs.org en latest usage.html selecting-tests .. . .. . However I can t find any information about similar test selection in Nose2 . There s a mention https : nose2.readthedocs.org en latest differences.html test-discovery-and-loading in docs about different test discovery but that doesn t seem to be related . Is there a way to select a specific test or test case in nose2 or more generally in unittest2 Comment : Here is a good doc page to get you running just certain tests . https : nose2.readthedocs.org en latest configuration.html Comment : Well that s not exactly what I m looking for . The documentation is about configuring test discovery not selecting specific test to run . It isn t convenient to modify config file each time I d like to access different test . Comment : Can you describe in more detail what your situation is like I m curious as to why you d want to run your unit test in chunks like this when you could just run the whole thing . Comment : I would like to run simple test during development eg : when writing test or testcase I would like to run it without running all bunch of tests which could take several seconds minutes . .. . Answer : I have some tests in dev tests for example : .. . .. . I am able to run this with : .. . .. . Additionally I m able to run a specific test method in a test case as follows : .. . .. . Does that accomplish what you want Comment : great answer.. .", "Question : In previous version of Nose testing framework there were several ways to specify only a subset of all tests : .. . .. . http : nose.readthedocs.org en latest usage.html selecting-tests .. . .. . However I can t find any information about similar test selection in Nose2 . There s a mention https : nose2.readthedocs.org en latest differences.html test-discovery-and-loading in docs about different test discovery but that doesn t seem to be related . Is there a way to select a specific test or test case in nose2 or more generally in unittest2 Comment : Here is a good doc page to get you running just certain tests . https : nose2.readthedocs.org en latest configuration.html Comment : Well that s not exactly what I m looking for . The documentation is about configuring test discovery not selecting specific test to run . It isn t convenient to modify config file each time I d like to access different test . Comment : Can you describe in more detail what your situation is like I m curious as to why you d want to run your unit test in chunks like this when you could just run the whole thing . Comment : I would like to run simple test during development eg : when writing test or testcase I would like to run it without running all bunch of tests which could take several seconds minutes . .. . Answer : You d have to use a config file : .. . .. . nose2.cfg : .. . .. . You d probably want to just run all tests if you re considering writing a script that will modify that config file and re-run your nose tests . Unit tests should be pretty quick...but if you re just focusing on a specific section of tests it s worth it to jump into this file and change that line during development .", "Question : This is such a simple question but I can t find it anywhere.. . how do I add color to the output of running tests with nose2 For example I would like failures to show up as red . .. . Answer : nose2 does not have colored output built-in but a popular third-party plugin named green will color the output for you . It can easily be installed with pip via : pip3 install green .. . .. . You can find more information on it within it s pypi page here : https : pypi.python.org pypi green .. . .. . Their GitHub page as well : https : github.com CleanCut green", "Question : I generated and imported a module that contains a test that I want to run with nose2 . Here is the code that creates and import the module : .. . .. . .. . .. . Edit : I worked around the issue by using temporary files . It works for me but I m still curious about how to do by dynamically generating a module . Here is the code to do it with a temporary file : .. . Answer : There are two ways to execute nose . There is a standalone program that comes with the distribution called nosetests . You can pass your file with the unittests in as an option : .. . .. . nosetests unittests.py .. . .. . Or specify a module : .. . .. . nosetests mymodule.test .. . .. . Or alternatively in your test module you can call the nose library and ask it to run by calling nose.main or nose.run in your program . Comment : This is for nose but I m using nose2 . I know how to run nose2 from a script already : nose2.discover argv fake arg mypkg.mymod.test foo s . but this will load tests by importing modules whereas I want to load tests from a module that is already importer .", "Question : I would like to use nose2 https : github.com nose-devs nose2 with coverage plugin to get the coverage of a Python package but I m have a hard time configuring it to cover only the package I m working on . The package is called vimhdl and the coverage section of my unittest.cfg looks like this : .. . .. . With nose2 the result doesn t include all files from the package maybe because of Coverage.py warning : Module vimhdl was previously imported but not measured . message but I don t know how to fix it . Also when opening the HTML report for a given file statements such as import logging and modules doc strings are marked as not covered . On the other hand with nosetests the result include all files as expected . How do I configure nose2 coverage plugin to cover only a given module The source code is on github at https : github.com suoto vim-hdl tree unstable if it helps . Comment : I found a workaround that worked for a single test file by using the coverage.py API directly as show on coverage.py http : coverage.readthedocs.org en coverage-4.0.3 api coverage.html the-coverage-class docs . The problem is that it seems to work for only one file repeating it on a different test source file does not generate a report with combined results . .. . Answer : The simplest way to control coverage.py is to use it to run your tests : Comment : That worked perfectly thank you . I m still puzzled why using coverage plugin within nose2 doesn t works this way .", "Question : With unittest I can check if there were failed tests during test run like this : .. . .. . How to do the same with nose2 .. . Answer : Finally found an answer .", "Question : I m having trouble actually skipping a unit test from a Nose2 plugin . I am able to mark the test skipped and see the reason in the final result but the test still runs . This example code should basically skip any test as long as the plugin is active . If I call event.test.skipTest reason it actually raises the SkipTest exception like it should it s just that the exception isn t caught by the test runner it just raises inside of my startTest hook method . Any ideas .. . Answer : I don t think you can actually stop a test from running with the startTest hook . The nose2 docs http : nose2.readthedocs.org en release-0.3 dev writing plugins.html recipes suggest using either matchPath http : nose2.readthedocs.org en release-0.3 dev hook reference.html matchPath or getTestCaseNames http : nose2.readthedocs.org en release-0.3 dev hook reference.html getTestCaseNames to do this . Here s a working example using matchPath : .. . .. . The matchPath docs actually explictly explain how it can be used to stop tests from running : .. . .. . Plugins can use this hook to prevent python modules from being loaded by the test loader or force them to be loaded by the test loader . Set event.handled to True and return False to cause the loader to skip the module . Using this method will prevent the test case from ever being loaded . If you want the test to actually show up in the list as skipped rather than not have it show up in the list of tests at all you can do a little bit of hackery with the StartTestEvent : .. . .. . Here we replace the actual function the test is going to run with a dummy function that does nothing . That way when the test executes it no-ops and then reports that it was skipped . Comment : Yeah this was the best thing I could come up with too . To any future viewers you will want to make sure to patch the setUp and tearDown methods with the dummy function as well . Those would still execute which may be undesirable", "Question : I m running nose2 tests with the coverage plugin . I noticed that decorators class declarations and function definitions aren t being marked as covered even though the actual code underneath them is . I found this answer http : stackoverflow.com a 8637093 which suggests starting coverage earlier . How would I do this via nose2 I tried exporting NOSE WITH COVERAGE True but that didn t seem to do anything . Additional context : eventually we re hoping to plug these tests into Jenkins if that matters . ETA : adding a coverage section with always-on True to my nose2.cfg didn t work . .. . Answer : The fool-proof way to get coverage started earlier is to use coverage to run nose instead of using nose to run coverage . For example instead of : .. . .. . you can use : .. . .. . and then just leave out the nose coverage options from blah blah blah . Comment : @swizzard : You ll have to show exactly the command-line you used . Your problem is a common one and running nose inside coverage is the best solution . It will work for you . Comment : coverage run -m nose2 --plugin nose2.plugins.junitxml --junit-xml results in the non-test code being under-counted essentially reversing what s counted as covered . Comment : @swizzard : I don t know why that would be . If you could send more details including steps to reproduce in an email we can get to the bottom of it .", "Question : While working in an virtualenv 3.4 I was trying to run tox for running the tests when I got the error : .. . .. . I ve already tried to install nose2 using pip install nose2 but still the problem remains the same . .. . Answer : sudo clears the environment . You have to invoke the virtualenv inside of the sudo execution environment . Try : .. . .. . Replace venv bin activate with the path to your virtualenv activate script and replace tox with whatever command you are using to invoke it .", "Question : null .. . Answer : With nose2 I can make test generators using layers but not use such . With layers .. . .. . Code : .. . .. . Output : .. . .. . With such .. . .. . It seems that the test generator runs without generating any test . For instance the following code : .. . .. . produces this output :" ] }
[ "yes-answer-long", "yes-answer-short" ]
python
UNK_RELATION
web-storage@session-storage@144
web-storage -- the web-storage is a standardised way of providing larger amounts of client-side storage and of more appropriately partitioning @placeholder and locally persistent-storage .
{ "confidence": [ 67.82763671875, 57.531898498535156, 54.3619384765625, 51.811275482177734, 51.293487548828125, 50.79096603393555, 50.79096603393555, 50.52066421508789, 50.52066421508789, 49.809268951416016, 49.2010612487793, 49.2010612487793, 48.37450408935547, 48.37450408935547, 47.27348327636719, 46.423011779785156, 46.32567596435547, 45.953880310058594, 45.953880310058594, 45.953880310058594, 45.953880310058594, 45.873191833496094, 45.50334930419922, 45.381317138671875, 43.54580307006836, 43.482608795166016, 43.31854248046875, 42.60553741455078, 42.48748016357422, 42.2175178527832, 42.2175178527832, 41.59828567504883, 41.46806335449219, 40.89791488647461, 40.835296630859375, 40.76283645629883, 40.76283645629883, 40.76283645629883, 40.75795364379883, 40.066856384277344, 39.443233489990234, 39.443233489990234, 39.443233489990234, 39.443233489990234, 39.443233489990234, 39.443233489990234, 39.43834686279297, 39.43834686279297, 39.43834686279297, 39.43834686279297, 38.518898010253906, 38.323997497558594, 37.8952751159668, 37.8952751159668, 37.8903923034668, 37.8903923034668, 37.31584167480469, 37.22297668457031, 37.22297668457031, 36.77030944824219, 36.77030944824219, 36.77030944824219, 36.77030944824219, 36.77030944824219, 36.7334098815918, 36.5207405090332, 35.990970611572266, 35.90337371826172, 35.90337371826172, 35.90337371826172, 35.90337371826172, 35.90337371826172, 35.450706481933594, 35.350521087646484, 34.44301223754883, 34.404541015625, 34.35541534423828, 34.35541534423828, 34.35541534423828, 34.35541534423828, 34.35541534423828, 34.27893829345703, 34.03091812133789, 34.03091812133789, 33.902748107910156, 33.55582809448242, 33.55582809448242, 33.55582809448242, 33.55582809448242, 32.45480728149414, 32.45480728149414, 32.30400466918945, 32.30400466918945, 32.30400466918945, 32.22671127319336, 31.13520050048828, 31.13520050048828, 31.13520050048828, 31.13520050048828, 31.13520050048828 ], "content": [ "Web Storage Local and Session and IndexedDB are both client-side storage mechanisms .", "Web storage supports persistent data-storage similar to cookies but with a greatly enhanced capacity and no information stored in the HTTP request header .", "HTML5 Web Storage is exactly problem .", "Local storage is for storing data client-side .", "By Web Storage I am referring to : http : www.w3.org TR webstorage .. . .. . Since Web Storage is client-side will it still work without a current internet-connection", "Is that safari disallowed to use Cookies Web storage", "I have indexedDb on my app for web-storage .", "On the other hand feel free to make extensive use of the Storage interface https : developer.mozilla.org en docs Web API Storage .", "@JustinWood yes i want to use the local-storage method in the HTML5 web-storage .", "Is it possible to request for more localStorage of the Web Storage API on chrome", "According to the W3 Web Storage specs http : dev.w3.org html5 webstorage the-storage-interface values in localStorage are of type string .", "From what I ve read of web-storage in HTML5 there are a number of different storage options with varying support across different browsers .", "How can I view HTML5 web-storage in Chrome and Firefox", "I am trying to make a cart using web-storage in google-chrome .", "Im sorry I cannot create fiddle demo as this is using web-storage .", "Cookies local-storage etc .", "This is just an internal optimization to make Chrome faster not something you have acccess to you ll still need persistent-storage like cookies local-storage or the server .", "I have tried with JavaScript technical such jquery cookies HTML5 Web Storage .", "I would like to know about the Web Storage API", "Are there any popular libraries for abstraction of web-storage in HTML5 applications", "I was wondering if it is possible to view the contents of web-storage in the file system .", "Are the values stored in local-storage or server-side session", "HTML5 local-storage http : www.html5rocks.com en features storage could do it .", "There is no client-storage that would be secure by the definition above .", "There s absolutely no way for the server accessing directly this storage .", "Unless .. . you are using one of the predefined methods https : developer.mozilla.org en-US docs Web Guide API DOM Storage Storage names like of .key .", "Either increase the allowed storage limit or uncheck the option to allow websites to use local-storage .", "I don t know which type of client-side storage provide that much of space .", "To signal the first tab that a second tab has been opend you can use the storage-Event https : developer.mozilla.org en-US docs Web Events storage .", "wtfjs.com 2013 10 07 Local-storage-limitations http : wtfjs.com 2013 10 07 Local-storage-limitations", "To get and set local-storage session-storage or cookies the computer must be connected to itself .", "Server side session has nothing to do with local-storage .", "In my view this is a big mistake from the developers as they hide the web pages javascript from the extension but allow it to see web-storage .", "You can create your on storage provider by inheriting the Provider class and implement HTML 5 storage mechanism .", "The app would consist of some static pages with forms for users to enter data which would then be stored locally using Web Storage or IndexedDB .", "getting and setting keys in local session-storage", "Also check if it is storing to your Local Storage", "HTML5 local-storage http : www.w3schools.com html html5 webstorage.asp", "As much as cross-browser compatibility matters cookie is the only choice rather than web-storage .", "I have looked into using cookies web-storage local-storage window.name and several other methods that other people have used but none actually seem secure and I am not able to use php .", "You can t do that with javascript even with local-storage", "Most Session management systems use a token as the storage .", "Local storage is a solution aimed at replacing neither .", "The trick will be preventing others from accessing the local-storage .", "My guess is you are storing objects in the local-storage", "Basically the server will be nothing but a remote data-storage .", ".. . .. . I m building a web app that uses HTML-local-storage to replace PHP sessions and cookies .", "I m building a web app that uses HTML-local-storage to replace PHP sessions and cookies .", "Also the variable needs to be stored site wide I guess the solution to this would be Web Storage API .", "localStorage http : developer.mozilla.org en-US docs Web Guide API DOM Storage localStorage", "BACKGROUND .. . .. . The HTML5 Web Storage feature in modern browsers is accessed through Javascript commands such as : .. . .. . The site Can I use http : caniuse.com feat namevalue-storage indicates that browser support is near 90 .", "I think it shows up under Resources - Local Storage", "Issue : - HTML5 session-storage not supported in IE 7 .", "I learnt somewhere that it uses Html5 storage for this .", "In my view web-storage should also be included to allow some sort of privacy", "Storage APIs IndexedDB WebSQL LocalStorage are limited in size for online web-applications is this the same for packaged Google Chrome applications", "However I m having trouble seeing how to actually store it locally in storage I keep getting out-of-memory exception .", "I m getting a bit confused by the varied terminology for HTML5 offline storage .", "Again also remember that only the user has control over expiry of these storage .", "were already loaded if the user then lost connection or set their browser to offline mode would any web-storage processing still work", "I have been looking for assistance with setting up an IndexedDB for web-storage and I have run into a problem that I cannot find a good answer to .", "The main gotcha with Web Storage is that although the specification used to say that any object-type can be stored in fact all browsers currently coerce to strings .", "But the question really depends on what kind of data you are caching .. . .. . For what you are trying cookie and web-storage might not be needed at all .", "1 http : en.wikipedia.org wiki Web storage .. . .. . I would rather say it would be stupid to cache the entire page as cookie or web-storage both .", "Using Internet Explorer 11 to access my company s internal web application which uses web-storage it appears it exceeds the default limits of the browser then prompts me to allow to exceed .", "There are a couple of YUI-based libraries for abstracting the underlying storage away : .. . .. . YUI 2 : Storage Utility http : developer.yahoo.com yui storage .. . YUI 3 : Storage Lite http : yuilibrary.com gallery show storage-lite .. . .. . You d need to port them if you wanted to use them with another library though it looks like someone has already done that for jQuery https : github.com tarellel jquery.Storage .", "I m not sure you can do it easily the way in which you are asking but you can probably use these examples to create an app that both displays the web page and manages the data using normal android data-storage rather than browser based data-storage by passing data from js to the native app .", "you need to store numbers in local-storage or store the script", "Won t it be better to do all the data-storage work in the native app", "No if you wish to do this it ll have to be in your code accessing storage .", "The problem I have is saving the variable into local-storage and displaying the correct value .", "The DOM storage data is stored in the webappsstore.sqlite file in the profile folder .", "I m trying to store my script that counts numbers starting from 23 000 to always continue to appear it s live and always counting using Web Storage .", "Read on if you want the details : .. . .. . 1 : Detecting a functional local-storage .. . .. . I am currently using this code to detect whether local-storage is available and fall back to a shim if not : .. . .. . 2 .", "Using native JSON parsing and serialization methods provided by the browser is a good and common way for storing objects in string format . FROM : MDN Dom Storage https : developer.mozilla.org en-US docs Web Guide API DOM Storage", "I ve stored some strings in web-storage session and or local and am wondering if it is possible to check for such stored strings on page load or init on the server-side asp.net c in my case .. .", "Is there any difference between : .. . .. . and : .. . .. . From the point of view of storage requirements", "I am using session-storage to save link content and image .", "Is usage of session-storage my best option for the problem at hand", "I know that Safari will not allow any use of session or local-storage .", "Do you any other interesting use cases of Html5 storage .", "Local storage aka Web Storage stores values as strings so you need to convert cast to numbers when you retrieve the values otherwise the variables will remain as strings and you ll see concatenation instead of the value being incremented .", "If the data I was storing was not confidential I would definitely consider using local-storage or cookies but after a lot of research I have found it s not recommended to store information such as passwords in local-storage or cookies .", "So i was searching around ways to either block access of indexDb and Local Storage I also check this Stack Overflow Question : Can local-storage ever be considered secure", "Everywhere it is stated that the extension can only see the DOM but I do not think most people think that this also include web-storage", "On the command-line type in : localStorage .. . .. . For development you can also edit local-storage in Firebug using dot notation .", "I get the message .. . .. . .. . Do you want to allow bogushost.bogusdomain.com to use additional storage on your computer", "I tried to find where IE 11 stores HTML storage on physical hard drive but could not find it .", "However I ve searched on the internet some people says that the storage is saved to : LOCALAPPDATA Microsoft Internet Explorer DOMStore on their Windows 7 .", "All the local-storage mechanisms with JS APIs are sandboxed and accessible only to the browser that created them .", "And there are two types : LocalStorage persists beyond the current session and session-storage which does not persist beyond the current session .", "memorystorage https : download.github.io memorystorage is a little library I wrote that follows the Web Storage API http : www.w3.org TR webstorage but just stores everything in memory .", "Update : .. . .. . Quoting : .. . .. . data about user activity in some social networks fb vk google+ .. . .. . Detect the web-storage features using libraries like mordernizr http : modernizr.com and if does not exists fall back to cookie method .", "The above is what I m reading from W3C and from wikipedia but Head First HTML5 Programming Freeman Robinson describes LocalStorage in depth then has Web Storage with info on Cache Manifest in the appendix things we aren t covering .", "There s also local-storage but I want users to automatically be logged out when they close their browser and I m also a little uneasy about tokens sitting around in the storage even though I expire them server-side .", "Can anyone tell me sample of Ext JS provider a specially if it intends to use any HTML 5 storage mechanism .", "Then you will have direct access to the WebView s storage via the WebStorage http : developer.android.com reference android webkit WebStorage.html class .", "You might want to take a look at Dive into HTML5 http : diveintohtml5.info storage.html Chapter 7 Local Storage .", "This may not be entirely true there is a method for updating a single key to an object housed in local-storage and the code is below .", "It s clear that the question is about sharing a variable reference when saving in local-storage ." ] }
{ "confidence": [ 58.55145263671875, 58.08531188964844, 55.835853576660156, 52.33893585205078, 52.05665588378906, 51.65911865234375, 51.22111511230469, 50.28345489501953, 49.99052810668945, 49.845638275146484, 48.41524887084961, 48.4008674621582, 48.321044921875, 47.866634368896484, 47.6728630065918, 47.411128997802734, 47.03432846069336, 45.94707489013672, 44.605892181396484, 44.583229064941406 ], "content": [ "Question : My application receives data from the another server using API with limited number of requests . Data changing rarely but may be necessary even after refresh page . 1 . What s the best solution this problem using cookie or HTML5 WebStorage 2 . And may be have other way to solve this task .. . Answer : As much as cross-browser compatibility matters cookie is the only choice rather than web-storage . But the question really depends on what kind of data you are caching .. . .. . For what you are trying cookie and web-storage might not be needed at all . Cookies are used to store configuration related information rather than actual data itself . Web storage supports persistent data-storage similar to cookies but with a greatly enhanced capacity and no information stored in the HTTP request header . 1 http : en.wikipedia.org wiki Web storage .. . .. . I would rather say it would be stupid to cache the entire page as cookie or web-storage both . For these purposes server-side caching options might be the better way . Update : .. . .. . Quoting : .. . .. . data about user activity in some social networks fb vk google+ .. . .. . Detect the web-storage features using libraries like mordernizr http : modernizr.com and if does not exists fall back to cookie method . A simple example .. . .. . .. . .. . 1 : http : en.wikipedia.org wiki Web storage Comment : What kind of data.. . hmmm . For example data about user activity in some social networks fb vk google+ . Caching data on server-side for me very bad way because so many data Cross browser compatibility for this app not main task this app made for modern browsers . Comment : @artzub Check my update Comment : Thx i look it Comment : Why use Modernizr if you can just do if localStorage Comment : @JanDvorak This was answer relevant to the web during 2012 :", "Question : I ve stored some strings in web-storage session and or local and am wondering if it is possible to check for such stored strings on page load or init on the server-side asp.net c in my case .. . So for example I will know not to re-fetch data from the db and use what is already resident in the browser from the last page load . Comment : Would a cookie work for you or do you need to store a larger volume of data Comment : Are the values stored in local-storage or server-side session .. . Answer : No that s not possible . sessionStorage lives on the client . If you want to access it on the server you will have to write javascript that reads the value puts it in a hidden-field so that it is sent to the server . Or javascript that will read the value from the storage and redirect to the server passing it as query-string parameter . There s absolutely no way for the server accessing directly this storage . That s one of the drawbacks of sessionStorage vs cookies . Comment : Hmmm that makes sense though your hidden-field idea would solve my particular problem actually . Thanks Comment : Couldn t he just check whether the value exists in session on Page Load and fetch from the DB if not Comment : Server side session has nothing to do with local-storage .", "Question : By Web Storage I am referring to : http : www.w3.org TR webstorage .. . .. . Since Web Storage is client-side will it still work without a current internet-connection Provided all scripts etc . were already loaded if the user then lost connection or set their browser to offline mode would any web-storage processing still work e.g . getting and setting keys in local session-storage Comment : I know what it is.. . that wasn t the question Comment : i didn t have patience to read complete question...your question is invalid that s not possible . Comment : @susheel How can a question be invalid Why isn t it possible Comment : so you are expecting cache to do your work Comment : @susheel yes that s what I was asking .. . Answer : Yes . To get and set local-storage session-storage or cookies the computer must be connected to itself . That doesn t require an internet-connection . So if the everything you need is downloaded like in cache you have everything you need . Everything is on the computer .", "Question : My core question is what are the possible methods to delete window.localStorage data not window.sessionStorage from the client s browser . One way that I know is by going to the client s console and type localStorage.clear . .. . .. . I m building a web app that uses HTML-local-storage to replace PHP sessions and cookies . I have a web app that does the following : .. . .. . 1 . User requests a web page from the server .. . 2 . Server responses a page with JavaScript to remove client s local-storage data email and password The password is actually a GUID string . 3 . The JavaScript script then sends as a post-request with the email and password to the Server . The email and password variables could be empty if the user is new or may contain values if the user is a returning user . 4 . The server checks if user exists or doesn t exist . 5 . If user does not exist then server sends the login page .. . 6 . If user exists then server sends the requested page .. . 7 . Once the user is good to go every time the user requests any web-page from the web server two things happens : 1 Every time the user requests a page the request will contain the user s local-storage data email and password 2 Every time the user requests a page the server does a query to the database to check if user exists . My questions are : 1 What are the security issues 2 Is there are a better way I don t want to use Sessions or cookies . Comment : sounds like a lot of extra credential passing . look into tokens . localStorage itself is not bad . Comment : Why don t you want to use sessions or cookies They could handle those requirements just fine . Plus you wouldn t have the overhead of authenticating at every request . Comment : If you want to implement this securely you ll find yourself re-inventing sessions . Comment : I don t see how this question is too broad . It outlines the problem in detail asks clear and specific question and as a follow-on question asks for a full explanation of the answer . .. . Answer : I m building a web app that uses HTML-local-storage to replace PHP sessions and cookies . Local storage is a solution aimed at replacing neither . Local storage is for storing data client-side . Cookies are for identifying clients at the HTTP level . PHP sessions are meant for storing data server-side usually keyed by a cookie . The password is actually a GUID string . GUIDs are not really random . Depending on the algorithm used part of the GUID is the MAC address of the server generating . Next the timestamp is also used . You re left with not much entropy . See also : Are GUIDs good passwords http : stackoverflow.com q 804456 362536 .. . .. . The JavaScript script then sends as a post-request with the email and password to the Server . .. . .. . .. . Every time the user requests a page the request will contain the user s local-storage data email and password .. . .. . The thing with sending the password over the wire like this is is that you are giving attackers a predictable and frequent passing of the credentials . At a minimum this has to be done over a secure channel HTTPS . At that point though your security isn t terrible . The trick will be preventing others from accessing the local-storage . Be very aware of what scripts you include on your page . If you include some analytics or ad script for example it will have access to that local-storage data . And again use HTTPS to prevent people from fiddling with the page in-transit . A better way would be to use sessions with a rotating session ID . The password becomes the session ID and it changes for each request . This is much more secure than expecting a weak password from a user which rarely changes . The actual user s username and password are only sent over the wire once .", "Question : Web Storage Local and Session and IndexedDB are both client-side storage mechanisms . And they both quite rightly adhere to the Same Origin Policy . But if I have a web site consisting of http and https pages that prevents me from reading data written on my http pages in my https pages and vice versa . That is the correct behavior and the reasons for that behavior are obvious but.. . .. . .. . ...well it can be a bit frustrating at times . If I wanted to store non-sensitive data to be available across http and https pages then it would be really nice to be able to do that without resorting to cookies . I don t think there is any way to accomplish that but I thought I would just throw it out there in case I have overlooked something . Many Thanks .. . .. . Paul .. . Answer : If https data were able to read by http it is a weak link in security chain . Cookie api was a mistake . Also there is little reason to use http .", "Question : I m getting a bit confused by the varied terminology for HTML5 offline storage . I think that AppCache is another name for Web Storage and you specify what will be stored offline via the Cache Manifest . And there are two types : LocalStorage persists beyond the current session and session-storage which does not persist beyond the current session . The above is what I m reading from W3C and from wikipedia but Head First HTML5 Programming Freeman Robinson describes LocalStorage in depth then has Web Storage with info on Cache Manifest in the appendix things we aren t covering . Am I understanding this correctly .. . Answer : WebStorage is the possibility in HTML5 to store data on client-side think of it like cookies but with usually 5 MB available space . The re two ways to store that data scope : .. . .. . 1 . Just for a session until the browser get closed SessionStorage .. . 2 . For a longtime period even if the browser get closed and the host s shutdown .. . .. . http : diveintohtml5.info storage.html .. . .. . .. . .. . AppCache is the HTML5-ability to store the whole web-app pages images css JavaScript in the browser to make it available even if the client has no internet-connection at all . http : appcache.offline.technology .. . .. . Comment : The AppCacheFacts.info site is GREAT", "Question : From what I ve read of web-storage in HTML5 there are a number of different storage options with varying support across different browsers . Are there any popular libraries for abstraction of web-storage in HTML5 applications .. . Answer : There are a couple of YUI-based libraries for abstracting the underlying storage away : .. . .. . YUI 2 : Storage Utility http : developer.yahoo.com yui storage .. . YUI 3 : Storage Lite http : yuilibrary.com gallery show storage-lite .. . .. . You d need to port them if you wanted to use them with another library though it looks like someone has already done that for jQuery https : github.com tarellel jquery.Storage .", "Question : I want to build an offline browser-based app using HTML and javascript to collect survey data on Android tablets . The app would consist of some static pages with forms for users to enter data which would then be stored locally using Web Storage or IndexedDB . However I also want to build a small native Android app which would grab this data and transfer it to other devices . Is this possible and if so how would I go about it Specifically I want to understand if and how the native app would access the browser s data store I can manage the rest . I would prefer to use the Android browser but can use any other if that makes it easier . I have found this blog post http : www.aaron-powell.com posts 2012-10-05-indexeddb-storage.html which suggests that it might be possible but I would appreciate some pointers as to where the data is stored by the Android browser and how easily it can be accessed by another app . Comment : I m not sure you can do it easily the way in which you are asking but you can probably use these examples to create an app that both displays the web page and manages the data using normal android data-storage rather than browser based data-storage by passing data from js to the native app . stackoverflow.com questions 6357191 http : stackoverflow.com questions 6357191 how-to-pass-data-from-javascript-to-android-webview-in-this-case stackoverflow.com questions 5264489 http : stackoverflow.com questions 5264489 how-do-i-pass-return-values-from-a-javascript-function-to-android .. . Answer : Unfortunately I don t think the data flow can work the way you want it . In the Chromium WebKit implementation IDB stores data in levelDB files that you should not be able to access by design . So how do we get Java and JavaScript to play nice together That s a great question As I see it the only good way to transform Java data into IDB data is via the client-side . I ve got good IDB chops but my Android experience is non-production . From what I understand of it here s a proposed solution : .. . .. . collect data via native application views .. . write a string to a file in your sandbox with the data stored as a JSON blob or in an .html script attached to a JavaScript global .. . load a webview that can access a local URI like file : android asset blah.json and then run some IDB code to bulk insert it into IDB .. . use your IDB store to drive your web-based views .. . .. . So the answer to if and how the native app would access the browser s data store would be : try the opposite . Architect it to let your browser access your native app data store . Comment : Thanks for this . I can see that having a separate native app and offline web app probably won t work and I should use webviews within a native app instead . But in that case why use the IDB at all Won t it be better to do all the data-storage work in the native app Comment : Yes probably . There s only one good reason to use IDB and it s if you need indexed key-value stores at scale on the web . If you re going native I d use a native data store such as sqllite http : developer.android.com reference android-database sqlite package-summary.html . In fact that s how Firefox implements IDB : atop SQL . Comment : I m trying to think about an option for web- native data flow : you could have your client-side code create data URIs that Java can consume . Current stumper : how do you pass off these URIs from client-side to native unless they share a filesystem Can they share a fs via FileWriter API", "Question : Indexeddb is the way to go for a reliable option to store big amounts of data just in the browser . But one limitation of this is that the data stored in one browser e.g Chrome is locked there and cannot be accessed from another browser e.g Firefox . So if I open my application in Chrome make some changes Create some data and then open this application in Firefox I will be with a fresh database . My question is : Is there any way to store data locally and make it available to all browsers without using a backend web service Comment : No. . Most people only use one browser anyway and most services have a persistence layer so this hasn t been discussed before as far as I know . .. . Answer : No . All the local-storage mechanisms with JS APIs are sandboxed and accessible only to the browser that created them . Comment : and to honest this a very good thing", "Question : Using Internet Explorer 11 to access my company s internal web application which uses web-storage it appears it exceeds the default limits of the browser then prompts me to allow to exceed . I get the message .. . .. . .. . Do you want to allow bogushost.bogusdomain.com to use additional storage on your computer .. . .. . .. . at which point I click a button Yes and it will continue to run correctly . If I choose the button Not for this site the application does not run because it was pre-emptively cut off . What controls the limits and how to I adjust for my specific site in Internet Explorer 11 I would like to increase the limits across the domain so users do not receive such a question . .. . Answer : Well based on an answer by Rob at social.technet.microsoft.com http : social.technet.microsoft.com Forums en-US 419350ab-84d2-4b63-97ee-439b59749b05 do-you-want-to-allow-outlookcom-to-use-additional-storage-on-your-computer forum ieitprocurrentver the paraphrased answer is as follows.. . .. . .. . For security reasons MSIE browsers initially allow a maximum of 10Mb of local-storage per website... . Other browsers are yet to mitigate this possible security flaw . Tools Internet Options General tab Browsing History section Settings button Website Databases and caching . Either increase the allowed storage limit or uncheck the option to allow websites to use local-storage .", "Question : I have a form that via AJAX validates login credentials from an external php script and database . I am attempting to password protect pages of a Squarespace website . I am wondering if there is a way to securely store some kind of token returned when the user logs in using the login form that can be checked on each page the user attempts to access and redirects them or allows the to stay on the page based on if they successfully logged in . I have looked into using cookies web-storage local-storage window.name and several other methods that other people have used but none actually seem secure and I am not able to use php . Is there a secure way to do this Comment : HTML5 local-storage http : www.html5rocks.com en features storage could do it . Comment : Depends what you call secure . localStorage and cookies are designed so that other websites can t access them regardless of any encryption . They just aren t allowed by the browser . But if you also want encryption you ll have to do it yourself . Comment : Encryption alone isn t the solution when you re dealing with login tokens . It also has to do with not allowing me to guess the value . What you store in the cookie localStorage should be a cryptographically secure-random number so that I can t easily guess the value of someone else s cookie . For example if we re just encrypting the password what if you and I have the same password If I update the cookie to use your username I might be able to login as you . That s why the value stored is also important not just how it is encrypted . Most Session management systems use a token as the storage . Comment : I had looked into local-storage but it is not secure enough for my purposes for example an XSS attack would be able to display what is stored . If the data I was storing was not confidential I would definitely consider using local-storage or cookies but after a lot of research I have found it s not recommended to store information such as passwords in local-storage or cookies . Comment : There is no client-storage that would be secure by the definition above . If your javascript can get to it so can malicious javascript injected into the page . .. . Answer : Well it depends on what you mean by Secure . By default for example PHP s built-in Session feature will use either a query-string or cookies . The same is true for ASP.NET s Session feature . These are used on millions of websites and I d say it is secure . The question is what are you storing in the cookie If you set a cookie like IsLoggedIn with a value of 1 that s not secure . However if you do like PHP ASP.NET do and store some random string ideally a cryptographically secure-random string which is validated server-side to a list of logged in random strings you re good . But that begs the question why aren t you just using PHP sessions to store this information See http : php.net manual en features.sessions.php Then you d store the IsLoggedIn in the session object which is stored server-side not client-side and you re secure . Comment : I have experience using php sessions and would definitely use them if I could . My issue is that I am limited by Squarespace as it does not support php . I am only able to basically inject code into page headers or in code blocks .", "Question : How can I view HTML5 web-storage in Chrome and Firefox What are the best tools available .. . Answer : try the inspector in Chrome . Comment : I think it shows up under Resources - Local Storage Comment : Ctrl + Shift + I keyboard shortcut Firefox and Chrome Comment : Is this just for the current website or everything", "Question : null .. . Answer : Is it possible to request for more localStorage of the Web Storage API on chrome Can the requestQuota method be used with localStorage PS : Chrome allows me to store upto 5MB before saying quota exceeded . Comment : I would like to direct you to this answer http : stackoverflow.com a 6281947 3565383 . Comment : Thanks but that answer talks about the Web SQL API . I would like to know about the Web Storage API Comment : Related discussion about localStorage limits : code.google.com p chromium issues detail id 58985 https : code.google.com p chromium issues detail id 58985 We don t want people to store large amounts of information in LocalStorage . The API can block a page and any other pages in your same renderer process while it loads LocalStorage into memory because it s a synchronous API . Honestly we d just plain not support it if we could but too many developers sites rely on it . So this is the compromise .", "Question : I m getting a bit confused by the varied terminology for HTML5 offline storage . I think that AppCache is another name for Web Storage and you specify what will be stored offline via the Cache Manifest . And there are two types : LocalStorage persists beyond the current session and session-storage which does not persist beyond the current session . The above is what I m reading from W3C and from wikipedia but Head First HTML5 Programming Freeman Robinson describes LocalStorage in depth then has Web Storage with info on Cache Manifest in the appendix things we aren t covering . Am I understanding this correctly .. . Answer : LocalStorage : .. . .. . 1 . LocalStorage is used to save intermediate data in client-side without using cookies . 2 . Saves data in the form of key-value pairs .. . 3 . Saved data persists in the browser until it is explicitly removed . If not removed it will be available for years . 4 . Memory 5Mb .. . .. . AppCache : .. . .. . 1 . HTML5 applications offers offline application feature by saving html page and related files css js. . locally in appCache . These files will be used to render page when network connection is not available . Application will have manifest file containing list of files to be dowloaded to render offline application feature . If there is a change in manifest file any file is added removed from application then new set of files will be downloaded . Old file will be replaced by new the ones once reload is clicked . 2 . Saves files as data - html js css etc .. . 3 . Saved data will be available until reload is clicked or until browser is closed . 4 . Memory varies based on browser . See http : grinninggecko.com 2011 02 24 developing-cross-platform-html5-offline-app-1", "Question : This is not a question if a web application can be safe secure to use But if I have a session or encryption key and like to hide it as good as possible on the client-side with javascript - what is the best approach I wanted to use sessionStorage until I found out that any extension can read this from the content-script at least in Chrome . In my view this is a big mistake from the developers as they hide the web pages javascript from the extension but allow it to see web-storage . Everywhere it is stated that the extension can only see the DOM but I do not think most people think that this also include web-storage So how can I secure a session key so it is away from reach of an extension Unable to encrypt it as I then just need to hide the key . The problem is that the session have to be valid for all pages of the site so I can not just keep it in javascript as it is refreshed on each page load . A cookie is in my view just as bad NB : Do not know if this is also a problem for other browsers .. . Answer : An extension given permission to access your page can do anything . A code injected as a script-tag from a content-script into the DOM will execute regardless of your CSP in the context of your page will full access to your JS context . That is not to even to mention chrome.debugger API . So no you cannot secure your client-side data from extensions that user consented to run on your page just as you can t secure your data from the browser itself . Comment : But it is quite strange then that the javascript code is protected . In my view web-storage should also be included to allow some sort of privacy Comment : It s not protected it s isolated by default to prevent clashes with code but an extension CAN break that barrier if desired in short : extensions are protected from web but not vice versa as it s their job to interact with sites that know nothing of extensions .", "Question : Web Storage Local and Session and IndexedDB are both client-side storage mechanisms . And they both quite rightly adhere to the Same Origin Policy . But if I have a web site consisting of http and https pages that prevents me from reading data written on my http pages in my https pages and vice versa . That is the correct behavior and the reasons for that behavior are obvious but.. . .. . .. . ...well it can be a bit frustrating at times . If I wanted to store non-sensitive data to be available across http and https pages then it would be really nice to be able to do that without resorting to cookies . I don t think there is any way to accomplish that but I thought I would just throw it out there in case I have overlooked something . Many Thanks .. . .. . Paul .. . Answer : This is a great question Paul There s no circumvention of hostname restrictions and you re right to note this is by design . I would implement your IDB stores on a page served from the secure domain then talk to it across protocols via postMessage . That way you can use your IDB store on both http and https pages . Obviously doing this the otherway around would result in an insecure content warning . I ve not tried this myself but had great success sending data back and forth between Web Worker and client so I imagine a postMessage interface not to be much different . Although there s a limitation in what data types you can pass via postMessage all data in IDB has to be able to be structured cloned https : developer.mozilla.org en-US docs Web Guide API DOM The structured clone algorithm anyways meaning you can t store functions and such and wouldn t be missing out here . Comment : Thank you - a very helpful answer . +1 . Comment : I m sure a few of us here on the IDB tag would love to see more great questions like these . Keep them coming .", "Question : Is there a library to help storing the javascript and css files at client for speed up the pages Is webstorage HTML5 def usefull for this case Comment : Your static CSS JS files should be cached by the browser already .. . Answer : HTTP resources like stylesheet and script files are cached IETF https : tools.ietf.org html rfc2616 section-13 by the browser if not modified status 304 https : en.wikipedia.org wiki List of HTTP status codes 304 for that no library is needed . On the other hand feel free to make extensive use of the Storage interface https : developer.mozilla.org en docs Web API Storage . Depending on your use-case it could be advisable to store large custom data like the data for a result page as stringified https : developer.mozilla.org en docs Web JavaScript Reference Global Objects JSON stringify JSON so that it can be displayed instantaneously while up-to-date data is fetched in the background . JavaScript data can be conveniently stored . Concerning CSS it might be a bit of a hassle . There s still more related HTML5 techniques like link prefetching https : developer.mozilla.org en-US docs Web HTTP Link prefetching FAQ or the app cache https : developer.mozilla.org en docs Web HTML Using the application cache using a resource manifest for offline apps .", "Question : Is there any difference between : .. . .. . and : .. . .. . From the point of view of storage requirements Is there any kind of value optimization carried out by the browser before actually storing data i.e . compression Please note that I m assuming that Local Storage can handle any type of data and not just strings . I m not sure about this . Comment : Note : Keep in mind that everything you store in any of the storages described in this page is converted to string using its .toString method before being stored . So trying to store a common object will result in string object Object to be stored instead of the object or its JSON representation . Using native JSON parsing and serialization methods provided by the browser is a good and common way for storing objects in string format . FROM : MDN Dom Storage https : developer.mozilla.org en-US docs Web Guide API DOM Storage .. . Answer : Any non-strings that you store in localStorage are converted to strings https : developer.mozilla.org en-US docs Web Guide API DOM Storage before being stored . So true would be stored as true and 1 would be stored as 1 .", "Question : I want to build an offline browser-based app using HTML and javascript to collect survey data on Android tablets . The app would consist of some static pages with forms for users to enter data which would then be stored locally using Web Storage or IndexedDB . However I also want to build a small native Android app which would grab this data and transfer it to other devices . Is this possible and if so how would I go about it Specifically I want to understand if and how the native app would access the browser s data store I can manage the rest . I would prefer to use the Android browser but can use any other if that makes it easier . I have found this blog post http : www.aaron-powell.com posts 2012-10-05-indexeddb-storage.html which suggests that it might be possible but I would appreciate some pointers as to where the data is stored by the Android browser and how easily it can be accessed by another app . Comment : I m not sure you can do it easily the way in which you are asking but you can probably use these examples to create an app that both displays the web page and manages the data using normal android data-storage rather than browser based data-storage by passing data from js to the native app . stackoverflow.com questions 6357191 http : stackoverflow.com questions 6357191 how-to-pass-data-from-javascript-to-android-webview-in-this-case stackoverflow.com questions 5264489 http : stackoverflow.com questions 5264489 how-do-i-pass-return-values-from-a-javascript-function-to-android .. . Answer : Easiest and most robust way to serialise all your records and load into your app when it first run . Comment : Thanks for the suggestion . Do you mean that the browser app would serialise the records and the user would then have to save this as a file which the native app would then access", "Question : I have made an advance functional prototype of a simple web application and delays have pushed this into the position of going live . At the moment it just uses HTML5 s localStorage facility to keep track of what s happening but due to paranoia we don t want it corrupted and losing data it certainly feels a bit sketchy never talking to a server.. . .. . .. . Where does Firefox keep it s localstorage database I think it s sqlite but I just can t find it.. . Comment : this Q A may be helpful though not about firefox specifically stackoverflow.com questions 23587074 http : stackoverflow.com questions 23587074 access-web-storage-or-indexeddb-from-outside-the-browser-in-android Comment : For a live web app I m guessing you have end users not programmers inputting data . So rather than have them find and backup a specific file on their machine why not add JavaScipt to the app that periodically syncs their localStorage contents to the server .. . Answer : The DOM storage data is stored in the webappsstore.sqlite file in the profile folder . localStorage http : developer.mozilla.org en-US docs Web Guide API DOM Storage localStorage" ] }
[ "yes-answer-long", "yes-answer-short" ]
session-storage
UNK_RELATION